Tag
Hash :
2bdfa584
Author :
Date :
2000-03-19T21:53:11
For PR automake/45: * defs, acoutnoq.test, texinfo8.test, tagsub.test, subdir2.test, subdir.test, scripts.test, remake2.test, remake.test, pr2.test, parse.test, output4.test, output3.test, output2.test, output.test, libobj10.test, libobj9.test, libobj8.test, libobj7.test, libobj6.test, libobj2.test, libobj.test, fpinstall.test, fpinst2.test, depend3.test, confsub.test, config.test, confh4.test, confh3.test, confh2.test, confh.test, conf2.test, colon7.test, colon6.test, colon5.test, colon4.test, colon3.test, colon2.test, colon.test, acouttbs.test, acoutqnl.test, acoutput.test: Put AM_INIT_AUTOMAKE into configure.in.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
#! /bin/sh
# Test to make sure config.h works in a subdir.
# Report from Alexandre Oliva.
. $srcdir/defs || exit 1
cat > configure.in << 'END'
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
PACKAGE=nonesuch
VERSION=nonesuch
AC_ARG_PROGRAM
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AM_CONFIG_HEADER(include/config.h)
AC_OUTPUT(Makefile include/Makefile)
END
: > Makefile.am
: > acconfig.h
mkdir include
: > include/Makefile.am
: > include/config.h.in
$AUTOMAKE || exit 1
(sed -n -e '/^DIST_COMMON =.*\\$/ {
:loop
p
n
/\\$/ b loop
p
n
}' -e '/^DIST_COMMON =/ p' Makefile.in | grep acconfig.h) || exit 1
grep 'stamp-h.in:.*acconfig.h' include/Makefile.in || exit 1
# Make sure re-running automake in a different way generates same
# Makefile.in.
mv Makefile.in save
$AUTOMAKE Makefile || exit 1
cmp Makefile.in save