summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1997-03-19 07:42:37 +0000
committerTom Tromey <tromey@redhat.com>1997-03-19 07:42:37 +0000
commitc1bf7cf1850526431765c461ef198375ffe7f0cb (patch)
tree3088d30bf5b4b770d7448e9ccdbabcbf2066a9c0 /aclocal.m4
parentf8b80147fc2d9f91a8352dd26afb742f46cdaba5 (diff)
downloadautomake-c1bf7cf1850526431765c461ef198375ffe7f0cb.tar.gz
last-minute fixes
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m440
1 files changed, 36 insertions, 4 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 00e786cb9..adec624fb 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,4 +1,4 @@
-dnl aclocal.m4 generated automatically by aclocal 1.1g
+dnl aclocal.m4 generated automatically by aclocal 1.1m
# Do all the work for Automake. This macro actually does too much --
# some checks are only needed if your package does certain things.
@@ -19,6 +19,13 @@ AC_SUBST(VERSION)
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
AM_SANITY_CHECK
AC_ARG_PROGRAM
+dnl FIXME This is truly gross.
+missing_dir=`cd $ac_aux_dir && pwd`
+AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
+AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
+AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
+AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
+AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
AC_PROG_MAKE_SET])
@@ -37,9 +44,21 @@ AC_SUBST(INSTALL_SCRIPT)dnl
AC_DEFUN(AM_SANITY_CHECK,
[AC_MSG_CHECKING([whether build environment is sane])
echo timestamp > conftestfile
-# Do this in a subshell so we don't clobber the current shell's
-# arguments. FIXME: maybe try `-L' hack like GETLOADAVG test?
-if (set X `ls -t $srcdir/configure conftestfile`; test "[$]2" = conftestfile)
+# Just in case
+sleep 1
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
+ if test "$@" = "X"; then
+ # -L didn't work.
+ set X `ls -t $srcdir/configure conftestfile`
+ fi
+ test "[$]2" = conftestfile
+ )
then
# Ok.
:
@@ -50,3 +69,16 @@ fi
rm -f conftest*
AC_MSG_RESULT(yes)])
+dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
+dnl The program must properly implement --version.
+AC_DEFUN(AM_MISSING_PROG,
+[AC_MSG_CHECKING(for working $2)
+if $2 --version > /dev/null 2>&1; then
+ $1=$2
+ AC_MSG_RESULT(found)
+else
+ $1="$3/missing $2"
+ AC_MSG_RESULT(missing)
+fi
+AC_SUBST($1)])
+