bug fixes
authorTom Tromey <tromey@redhat.com>
Fri, 8 Nov 1996 23:06:54 +0000 (23:06 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 8 Nov 1996 23:06:54 +0000 (23:06 +0000)
ChangeLog
aclocal.m4
configure
configure.in
m4/Makefile.in
m4/sanity.m4

index ed65fd3..0c44144 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 Fri Nov  8 09:49:09 1996  Tom Tromey  <tromey@cygnus.com>
 
+       * configure.in: Don't run AC_ARG_PROGRAM, AC_PROG_MAKE_SET.
+
        * m4/init.m4: Run AM_SANITY_CHECK.
 
        * m4/sanity.m4: New file.
index 269d3b2..00e786c 100644 (file)
@@ -1,4 +1,4 @@
-dnl aclocal.m4 generated automatically by aclocal 1.1f
+dnl aclocal.m4 generated automatically by aclocal 1.1g
 
 # Do all the work for Automake.  This macro actually does too much --
 # some checks are only needed if your package does certain things.
@@ -17,6 +17,7 @@ AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
 VERSION=[$2]
 AC_SUBST(VERSION)
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
+AM_SANITY_CHECK
 AC_ARG_PROGRAM
 AC_PROG_MAKE_SET])
 
@@ -29,3 +30,23 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 AC_SUBST(INSTALL_SCRIPT)dnl
 ])
 
+#
+# Check to make sure that the build environment is sane.
+#
+
+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)
+then
+   # Ok.
+   :
+else
+   AC_MSG_ERROR([newly created file is older than distributed files!
+Check your system clock])
+fi
+rm -f conftest*
+AC_MSG_RESULT(yes)])
+
index 6809a84..7717786 100755 (executable)
--- a/configure
+++ b/configure
@@ -607,6 +607,20 @@ cat >> confdefs.h <<EOF
 #define VERSION "$VERSION"
 EOF
 
+echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
+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)
+then
+   # Ok.
+   :
+else
+   { echo "configure: error: newly created file is older than distributed files!
+Check your system clock" 1>&2; exit 1; }
+fi
+rm -f conftest*
+echo "$ac_t""yes" 1>&6
 if test "$program_transform_name" = s,x,x,; then
   program_transform_name=
 else
@@ -653,52 +667,6 @@ else
 fi
 
 
-echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
-set dummy ${MAKE-make}; ac_make=`echo "$2" | tr './\055' '___'`
-if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftestmake <<\EOF
-all:
-       @echo 'ac_maketemp="${MAKE}"'
-EOF
-# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
-eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
-if test -n "$ac_maketemp"; then
-  eval ac_cv_prog_make_${ac_make}_set=yes
-else
-  eval ac_cv_prog_make_${ac_make}_set=no
-fi
-rm -f conftestmake
-fi
-if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  SET_MAKE=
-else
-  echo "$ac_t""no" 1>&6
-  SET_MAKE="MAKE=${MAKE-make}"
-fi
-
-if test "$program_transform_name" = s,x,x,; then
-  program_transform_name=
-else
-  # Double any \ or $.  echo might interpret backslashes.
-  cat <<\EOF_SED > conftestsed
-s,\\,\\\\,g; s,\$,$$,g
-EOF_SED
-  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
-  rm -f conftestsed
-fi
-test "$program_prefix" != NONE &&
-  program_transform_name="s,^,${program_prefix},; $program_transform_name"
-# Use a double $ so make ignores it.
-test "$program_suffix" != NONE &&
-  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
-
-# sed with no file args requires a program.
-test "$program_transform_name" = "" && program_transform_name="s,x,x,"
-
-
 # Extract the first word of "perl", so it can be a program name with args.
 set dummy perl; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
index 25ff81b..cfa7262 100644 (file)
@@ -3,9 +3,6 @@ AC_INIT(automake.in)
 
 AM_INIT_AUTOMAKE(automake, 1.1g)
 
-AC_PROG_MAKE_SET
-AC_ARG_PROGRAM
-
 AC_PATH_PROG(PERL, perl)
 if test -z "$PERL"; then
    echo "fatal error: perl not found" 1>&2
index f08158b..e37b383 100644 (file)
@@ -59,16 +59,14 @@ PACKAGE = @PACKAGE@
 VERSION = @VERSION@
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) \
-       $(TEXINFOS) $(INFOS) $(MANS) $(EXTRA_DIST)
-DEP_DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) \
-       $(TEXINFOS) $(INFO_DEPS) $(MANS) $(EXTRA_DIST)
+       $(TEXINFOS) $(MANS) $(EXTRA_DIST)
 
 TAR = tar
 default: all
 
 
 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in
-       cd $(top_srcdir) && automake $(subdir)/Makefile
+       cd $(top_srcdir) && automake --strictness=gnits $(subdir)/Makefile
 
 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in $(BUILT_SOURCES)
        cd $(top_builddir) \
@@ -96,11 +94,12 @@ TAGS:
 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
 
 subdir = m4
-distdir: $(DEP_DISTFILES)
-       @for file in `cd $(srcdir) && echo $(DISTFILES)`; do \
+distdir: $(DISTFILES)
+       @for file in $(DISTFILES); do \
+         d=$(srcdir); \
          test -f $(distdir)/$$file \
-         || ln $(srcdir)/$$file $(distdir)/$$file 2> /dev/null \
-         || cp -p $(srcdir)/$$file $(distdir)/$$file; \
+         || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
+         || cp -p $$d/$$file $(distdir)/$$file; \
        done
 info:
 dvi:
index 7c8abee..65ca999 100644 (file)
@@ -7,12 +7,12 @@ AC_DEFUN(AM_SANITY_CHECK,
 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)
+if (set X `ls -t $srcdir/configure conftestfile`; test "[$]2" = conftestfile)
 then
    # Ok.
    :
 else
-   AC_MSG_ERROR([configuration problem: newly created file is older than distributed files!
+   AC_MSG_ERROR([newly created file is older than distributed files!
 Check your system clock])
 fi
 rm -f conftest*