Hash :
3ce01340
Author :
Date :
2001-12-26T08:22:06
* configure.in: Test for Autoconf >= 2.52. * tests/defs (needs_autoconf, has_autoconf): Delete definition. * tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test, tests/cond4.test, tests/cond9.test, tests/cond16.test, tests/cond18.test, tests/cond19.test, tests/cond20.test, tests/confsub.test, tests/depcomp2.test, tests/depdist.test, tests/depend2.test, tests/dirname.test, tests/distname.test, tests/extra5.test, tests/install2.test, tests/lex3.test, tests/make.test, tests/nobase.test, tests/pr9.test, tests/pr87.test, tests/stamph2.test, tests/subdir5.test, tests/subdirbuiltsources.test, tests/subobj3.test, tests/subobj5.test, tests/subobj6.test, tests/substref.test, tests/target-cflags.test, tests/yacc4.test, tests/yacc7.test, tests/yaccvpath.test: Do not use $needs_autoconf.
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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
# -*- shell-script -*-
# Defines for Automake testing environment.
# Tom Tromey <tromey@cygnus.com>
# Ensure $srcdir set correctly.
test -f $srcdir/defs || {
echo "defs: installation error" 1>&2
exit 1
}
me=`echo "$0" | sed -e 's,.*[\\/],,;s/\.test$//'`
# See how redirections should work. User can set VERBOSE to see all
# output.
test -z "$VERBOSE" && {
exec > /dev/null 2>&1
}
if test -n "$required"
then
for tool in $required
do
echo "$me: running $tool --version"
( $tool --version ) || exit 77
done
fi
# Always use an absolute srcdir. Otherwise symlinks made in subdirs
# of the test dir just won't work.
case "$srcdir" in
[\\/]* | ?:[\\/]*)
;;
*)
srcdir=`CDPATH=: && cd "$srcdir" && pwd`
;;
esac
chmod -R a+rwx testSubDir > /dev/null 2>&1
rm -rf testSubDir > /dev/null 2>&1
mkdir testSubDir
# Copy in some files we need.
for file in install-sh mkinstalldirs missing depcomp; do
cp $srcdir/../lib/$file testSubDir/$file || exit 1
done
cd ./testSubDir
# Build appropriate environment in test directory. Eg create
# configure.in, touch all necessary files, etc.
# Don't use AC_OUTPUT, but AC_CONFIG_FILES so that appending
# still produces a valid configure.ac. But then, tests running
# config.status really need to append AC_OUTPUT.
cat > configure.in << END
AC_INIT
AM_INIT_AUTOMAKE($me, 1.0)
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_CONFIG_FILES(Makefile)
END
# User can set PERL to change the perl interpreter used.
test -z "$PERL" && PERL=perl
# User can set MAKE to choose which make to use. Must use GNU make.
test -z "$MAKE" && MAKE=make
# Unset some MAKE... variables that may cause $MAKE to act like a
# recursively invoked sub-make. Any $MAKE invocation in a test is
# conceptually an independent invocation, not part of the main
# 'automake' build.
unset MFLAGS
unset MAKEFLAGS
unset MAKELEVEL
if ($MAKE --version) > /dev/null 2>&1; then
needs_gnu_make=:
else
needs_gnu_make='exit 77'
fi
# User can set which tools from Autoconf to use.
test -z "$AUTOCONF" && AUTOCONF=autoconf
echo "=== Running test $0"
# See how Automake should be run. We put --foreign as the default
# strictness to avoid having to create lots and lots of files. A test
# can override this by specifying a different strictness.
if test -z "$AUTOMAKE"; then
perllibdir=$srcdir/../lib
export perllibdir
AUTOMAKE="$PERL ../../automake --libdir=$srcdir/../lib --foreign --Werror"
fi
# See how aclocal should be run.
if test -z "$ACLOCAL"; then
perllibdir=$srcdir/../lib
export perllibdir
ACLOCAL="$PERL ../../aclocal --acdir=$srcdir/../m4"
fi
# We might need extra macros, e.g., from Libtool or Gettext.
# Find them on the system.
# Use `-I $srcdir/../m4' in addition to `--acdir', because the
# other `-I' directories added for libtool and gettext might contain
# files from an old version of Automake that we don't want to use.
aclocaldir=`(aclocal --print-ac-dir) 2>/dev/null`
case $required in
*libtool* )
test -f "$aclocaldir/libtool.m4" || exit 77
ACLOCAL="$ACLOCAL -I $srcdir/../m4 -I $aclocaldir"
;;
*gettext* )
test -f "$aclocaldir/gettext.m4" || exit 77
ACLOCAL="$ACLOCAL -I $srcdir/../m4 -I $aclocaldir"
;;
esac
# Turn on shell traces when VERBOSE=x.
if test "x$VERBOSE" = xx; then
set -x
else
:
fi