# Process this file with autoconf to produce a configure script.
-# Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
# Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
-AC_PREREQ(2.54)
+AC_PREREQ(2.57b)
AC_INIT([GNU Automake], [1.7a], [bug-automake@gnu.org])
AC_CONFIG_SRCDIR(automake.in)
AC_CONFIG_AUX_DIR(lib)
+AC_CANONICAL_BUILD
+
# Save the AUTOCONF setting before AM_INIT_AUTOMAKE overrides it;
# this way we can run Autoconf tests from configure without being
# bothered by `missing'.
AC_SUBST(pkgvdatadir)
# $AUTOMAKE and $ACLOCAL are always run after a `cd $top_srcdir',
-# hence `.' is really what we want for perllibdir and libdir.
-ACLOCAL="perllibdir=./lib `pwd`/aclocal --acdir=m4 -I `pwd`/m4"
-AUTOMAKE="perllibdir=./lib `pwd`/automake --libdir=lib"
+# hence `.' is really what we want for perllibdir, libdir, and acdir.
+ACLOCAL="perllibdir=`pwd`/lib:./lib `pwd`/aclocal --acdir=m4"
+AUTOMAKE="perllibdir=`pwd`/lib:./lib `pwd`/automake --libdir=lib"
AC_PATH_PROG(PERL, perl)
if test -z "$PERL"; then
test "x$am_cv_prog_ln" = xln && result=yes
AC_MSG_RESULT([$result])
+# The amount we should wait after modifying files depends on the platform.
+# On Windows '95, '98 and ME, files modifications have 2-seconds
+# granularity and can be up to 3 seconds in the future w.r.t. the
+# system clock. When it is important to ensure one file is older
+# than another we wait at least 5 seconds between creations.
+case $build in
+ *-pc-msdosdjgpp) MODIFICATION_DELAY=5;;
+ *) MODIFICATION_DELAY=2;;
+esac
+AC_SUBST([MODIFICATION_DELAY])
+
# Test for things needed by the test suite.
AC_PROG_EGREP
AC_PROG_FGREP
lib/Makefile
lib/am/Makefile
m4/Makefile
- m4/amversion.m4:m4/amversion.in
tests/Makefile
tests/defs
])