Tag
Hash :
7c44803d
Author :
Date :
1999-04-10T23:27:06
* confh.test: Use `sed' to extract full definition of DIST_COMMON. Look for stamp-h.in rule in include/Makefile.in. * Makefile.am (XFAIL_TESTS): Removed confh.test.
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
#! /bin/sh
# Test to make sure config.h works in a subdir.
# Report from Alexandre Oliva.
. $srcdir/defs || exit 1
cat > configure.in << 'END'
PACKAGE=nonesuch
VERSION=nonesuch
AC_ARG_PROGRAM
AC_PROG_INSTALL
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