Clarify overriding of `*_DEPENDENCIES' in LIBOBJS node.
[automake/ericb.git] / tests / depdist.test
blob8afb60d470e739e81e37a166a708fd73a3ba6a3e
1 #! /bin/sh
2 # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Make sure depcomp is found for the distribution.
18 # From Eric Magnien.
20 . ./defs || Exit 1
22 rm -f configure.in
24 mkdir config
25 for i in *; do
26 if test $i != "config"; then
27 mv $i config
29 done
31 cat > configure.in << 'END'
32 AC_INIT(subdir/foo.c)
33 AC_CONFIG_AUX_DIR(config)
34 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
35 AC_PROG_CC
36 AC_OUTPUT(subdir/Makefile Makefile)
37 END
39 cat > Makefile.am << 'END'
40 SUBDIRS = subdir
41 END
43 mkdir subdir
44 : > subdir/foo.c
46 cat > subdir/Makefile.am << 'END'
47 bin_PROGRAMS = foo
48 foo_SOURCES = foo.c
49 END
51 set -e
53 $ACLOCAL
54 $AUTOMAKE --add-missing
55 $AUTOCONF
56 grep config/depcomp Makefile.in