* 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.
+2001-12-26 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * 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.
+
2001-12-14 Alexandre Duret-Lutz <duret_g@epita.fr>
* configure.in: Bump version to 1.5c.
-# Makefile.in generated by automake 1.5b from Makefile.am.
+# Makefile.in generated by automake 1.5c from Makefile.am.
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
$1_FALSE=
fi])
+# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+
+# AM_RUN_LOG(COMMAND)
+# -------------------
+# Run COMMAND, save the exit status in ac_status, and log it.
+# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
+AC_DEFUN([AM_RUN_LOG],
+[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ (exit $ac_status); }])
+
{ (exit 1); exit 1; }; }
}
+echo 'AC''_PREREQ(2.52)' > conftest.ac
+{ echo "$as_me:$LINENO: eval $AUTOCONF -o /dev/null conftest.ac" >&5
+ (eval $AUTOCONF -o /dev/null conftest.ac) >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } || {
+ { { echo "$as_me:1269: error: Autoconf 2.52 or better is required" >&5
+echo "$as_me: error: Autoconf 2.52 or better is required" >&2;}
+ { (exit 1); exit 1; }; }
+}
+rm conftest.ac
+
ac_config_files="$ac_config_files automake"
ac_config_files="$ac_config_files aclocal"
: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
-{ echo "$as_me:1377: creating $CONFIG_STATUS" >&5
+{ echo "$as_me:1389: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
echo "$ac_cs_version"; exit 0 ;;
--he | --h)
# Conflict between --help and --header
- { { echo "$as_me:1545: error: ambiguous option: $1
+ { { echo "$as_me:1557: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
ac_need_defaults=false;;
# This is an error.
- -*) { { echo "$as_me:1564: error: unrecognized option: $1
+ -*) { { echo "$as_me:1576: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
"lib/am/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/am/Makefile" ;;
"m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
"tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
- *) { { echo "$as_me:1607: error: invalid argument: $ac_config_target" >&5
+ *) { { echo "$as_me:1619: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
{ (exit 1); exit 1; }; };;
esac
esac
if test x"$ac_file" != x-; then
- { echo "$as_me:1821: creating $ac_file" >&5
+ { echo "$as_me:1833: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
rm -f "$ac_file"
fi
-) echo $tmp/stdin ;;
[\\/$]*)
# Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:1839: error: cannot find input file: $f" >&5
+ test -f "$f" || { { echo "$as_me:1851: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
echo $f;;
echo $srcdir/$f
else
# /dev/null tree
- { { echo "$as_me:1852: error: cannot find input file: $f" >&5
+ { { echo "$as_me:1864: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
fi;;
AC_MSG_ERROR([perl 5.005 or better is required])
}
+echo 'AC''_PREREQ(2.52)' > conftest.ac
+AM_RUN_LOG([eval $AUTOCONF -o /dev/null conftest.ac]) || {
+ AC_MSG_ERROR([Autoconf 2.52 or better is required])
+}
+rm conftest.ac
+
AC_CONFIG_FILES([automake], [chmod +x automake])
AC_CONFIG_FILES([aclocal], [chmod +x aclocal])
}
END
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 77
}
END
-$needs_autoconf
-
(gcc -v) > /dev/null 2>&1 || exit 77
set -e
}
END
-$needs_autoconf
gcc -v || exit 77
cat > Mycomp << 'END'
END
-$needs_autoconf
(gcc -v) > /dev/null 2>&1 || exit 77
# Ignore user CFLAGS.
bin_PROGRAMS = helldl
END
-$needs_autoconf
(gcc -v) > /dev/null 2>&1 || exit 77
# Ignore user CFLAGS.
bin_PROGRAMS = helldl
END
-$needs_autoconf
(gcc -v) > /dev/null 2>&1 || exit 77
# Ignore user CFLAGS.
bin_PROGRAMS = helldl
END
-$needs_autoconf
-
set -e
$ACLOCAL
@echo $(targ_OBJECTS)
END
-$needs_autoconf
-
$ACLOCAL || exit 1
$AUTOMAKE || exit 1
echo '$(this)'
END
-$needs_autoconf
-
$ACLOCAL \
&& $AUTOCONF \
&& $AUTOMAKE -a \
. $srcdir/defs || exit 1
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
# User can set which tools from Autoconf to use.
test -z "$AUTOCONF" && AUTOCONF=autoconf
-if ($AUTOCONF --version) >/dev/null 2>&1; then
- has_autoconf=:
- needs_autoconf=:
-else
- has_autoconf=false
- needs_autoconf='exit 77'
-fi
echo "=== Running test $0"
: > subdir/foo.c
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 77
. $srcdir/defs || exit 1
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
rm -f configure.in
mkdir config
}
END
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 77
echo "7 /file = _AM_DIRNAME([/file])"
END
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
$ACLOCAL || exit 1
# fail gracefully if autoconf didn't support support our regexps anyhow
$AUTOCONF || exit 77
set -e
-$needs_autoconf
-
$ACLOCAL
$AUTOCONF
$AUTOMAKE --include-deps --copy --add-missing
. $srcdir/defs || exit 1
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
echo AC_OUTPUT >> configure.in
cat > Makefile.am << 'END'
SUBDIRS = .
END
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
# Likewise for gzip.
(gzip --version) > /dev/null 2>&1 || exit 77
. $srcdir/defs || exit 1
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
# Likewise for GNU Make (we need VPATH support for `make distcheck').
$needs_gnu_make
: > Makefile.am
-$needs_autoconf
$needs_gnu_make
set -e
. $srcdir/defs || exit 1
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
cat >> configure.in <<'EOF'
AC_OUTPUT
EOF
AC_OUTPUT(Makefile `echo $subdirs | sed 's|\([a-z][a-z]*\)|\1/Makefile|g'`)
EOF
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 77
mkdir support
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
# Likewise for gzip.
(gzip --version) > /dev/null 2>&1 || exit 77
# Make sure stamp-h* files are created where we expect
. $srcdir/defs || exit 1
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
cat > configure.in << END
AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE($me, 1.0)
set -e
-$needs_autoconf
-
$ACLOCAL
$AUTOCONF
$AUTOMAKE --include-deps --copy --add-missing
. $srcdir/defs || exit 1
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
set -e
mkdir lib
}
END
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 77
set -e
-$needs_autoconf
-
$ACLOCAL
$AUTOCONF
$AUTOMAKE --include-deps --copy --add-missing
set -e
-$needs_autoconf
-
$ACLOCAL
$AUTOCONF
$AUTOMAKE --include-deps --copy --add-missing
bin_PROGRAMS = helldl
END
-$needs_autoconf
(gcc -v) > /dev/null 2>&1 || exit 77
# Ignore user CFLAGS.
#endif
END
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 77
. $srcdir/defs || exit 1
-# Fail gracefully if no autoconf.
-$needs_autoconf
# Likewise for some other tools.
(gcc -v) > /dev/null 2>&1 || exit 77
(bison -V) > /dev/null 2>&1 || exit 77
. $srcdir/defs || exit 1
$needs_gnu_make
-$needs_autoconf
cat > configure.in << 'END'
AC_INIT
. $srcdir/defs || exit 1
-# Fail gracefully if no autoconf.
-$needs_autoconf
# Likewise for some other tools.
(gcc -v) > /dev/null 2>&1 || exit 77
(bison -V) > /dev/null 2>&1 || exit 77