source: trunk/essentials/sys-devel/automake-1.4/tests/confsub.test

Last change on this file was 3124, checked in by bird, 18 years ago

automake 1.4-p6

File size: 600 bytes
Line 
1#! /bin/sh
2
3# Test to make sure config.h can be in subdir.
4
5. $srcdir/defs || exit 1
6
7cat > configure.in << 'END'
8AC_PROG_MAKE_SET
9AM_CONFIG_HEADER(subdir/config.h)
10PACKAGE=nonesuch
11VERSION=nonesuch
12AC_PROG_CC
13AC_ARG_PROGRAM
14AC_PROG_INSTALL
15AC_OUTPUT(Makefile subdir/Makefile)
16END
17
18cat > Makefile.am << 'END'
19SUBDIRS = subdir
20END
21
22mkdir subdir
23cat > subdir/Makefile.am << 'END'
24bin_PROGRAMS = fred
25END
26
27: > subdir/config.h.in
28
29$AUTOMAKE || exit 1
30
31# Make sure subdir Makefile.in doesn't itself look in the subdir.
32(grep 'subdir/config.h' subdir/Makefile.in | grep -v CONFIG_HEADERS) && exit 1
33exit 0
Note: See TracBrowser for help on using the repository browser.