Tag
Hash :
57a6006e
Author :
Date :
2002-01-07T20:25:24
* configure.in (AUTOMAKE): Create m4/amversion.m4. * m4/amversion.in: New file. * m4/Makefile.am (m4data_DATA, EXTRA_DIST): Replace by ... (dist_m4data_DATA): ... this. (nodist_m4data_DATA, DISTCLEANFILES): Add amversion.m4. * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_CURRENT_AUTOMAKE_VERSION. * automake.in (seen_automake_version): New variable. (scan_autoconf_traces, scan_one_autoconf_file, scan_autoconf_files): Scan for AM_AUTOMAKE_VERSION and complain when the version used in aclocal.m4 differs from Automake's. * tests/defs (ACLOCAL): Look in ../m4 too. * tests/installsh.test (ACLOCAL): Likewise. * tests/installdir.test (installdirs-local): Run $ACLOCAL.
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
#! /bin/sh
# Test for this bug:
# automake: Makefile.am: required file "../../install-sh" not found; installing
# This also makes sure that install-sh is created in the correct directory.
. $srcdir/defs || exit 1
: > Makefile.am
rm -f install-sh
# Since the default path includes '../..', we must run this test in
# yet another subdir.
mkdir frob
mv Makefile.am configure.in mkinstalldirs frob/
cd frob
# If srcdir is relative, we need to modify it.
case "$srcdir" in
[\\/]* | ?:[\\/]*)
;;
*)
srcdir="../$srcdir"
;;
esac
AUTOMAKE="$PERL ../../../automake --libdir=$srcdir/../lib --foreign --Werror"
ACLOCAL="$PERL ../../../aclocal -I ../../../m4 --acdir=$srcdir/../m4"
# Now we proceed with the test
$ACLOCAL || exit 1
$AUTOMAKE --add-missing > output 2>&1 \
|| exit 1
# Only one `/' should appear in the output.
grep '/.*/' output \
&& exit 1
test -f install-sh