* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / subdir4.test
blob893e0784df517145ec6ae8c5991a0697c00c16b4
1 #! /bin/sh
3 # Make sure a top-level depcomp file is found when
4 # AC_CONFIG_AUX_DIR is not specified.
6 . $srcdir/defs || exit 1
8 mkdir lib src
10 cat > configure.in << 'END'
11 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
12 PACKAGE=nonesuch
13 VERSION=nonesuch
14 AC_ARG_PROGRAM
15 AC_PROG_MAKE_SET
16 AC_PROG_INSTALL
17 AC_PROG_RANLIB
18 AC_PROG_CC
19 AC_OUTPUT(Makefile lib/Makefile src/Makefile)
20 END
22 # Files required because we are using `--gnu'.
23 : > INSTALL
24 : > NEWS
25 : > README
26 : > COPYING
27 : > AUTHORS
28 : > ChangeLog
30 cat > Makefile.am << 'END'
31 SUBDIRS = lib src
32 END
34 cat > lib/Makefile.am << 'END'
35 pkgdata_DATA =
36 noinst_LIBRARIES = libfoo.a
37 libfoo_a_SOURCES = foo.c
38 END
40 cat > lib/foo.c << 'END'
41 int foo () {}
42 END
44 cat > src/Makefile.am << 'END'
45 pkgdata_DATA =
46 END
48 $ACLOCAL || exit 1
49 $AUTOMAKE --gnu || exit 1
51 # Make sure that depcomp is *not* included in the definition
52 # of DIST_COMMON in lib/Makefile.in. If you change this test
53 # so that more files are included in lib's DIST_COMMON definition,
54 # then you must handle the case in which depcomp is listed on a
55 # continued line.
56 grep '^DIST_COMMON.*depcomp' lib/Makefile.in && exit 1
58 exit 0