From: Tom Tromey Date: Fri, 8 Nov 1996 23:06:54 +0000 (+0000) Subject: bug fixes X-Git-Tag: Release-1-1g~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85fe4e7aefde3615ce62d6cbb832e473aced60cc;p=thirdparty%2Fautomake.git bug fixes --- diff --git a/ChangeLog b/ChangeLog index ed65fd36a..0c44144a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ Fri Nov 8 09:49:09 1996 Tom Tromey + * configure.in: Don't run AC_ARG_PROGRAM, AC_PROG_MAKE_SET. + * m4/init.m4: Run AM_SANITY_CHECK. * m4/sanity.m4: New file. diff --git a/aclocal.m4 b/aclocal.m4 index 269d3b29d..00e786cb9 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -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)]) + diff --git a/configure b/configure index 6809a84fb..7717786c5 100755 --- a/configure +++ b/configure @@ -607,6 +607,20 @@ cat >> confdefs.h <&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 diff --git a/configure.in b/configure.in index 25ff81bd0..cfa7262bf 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/m4/Makefile.in b/m4/Makefile.in index f08158b63..e37b383f5 100644 --- a/m4/Makefile.in +++ b/m4/Makefile.in @@ -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: diff --git a/m4/sanity.m4 b/m4/sanity.m4 index 7c8abee26..65ca99993 100644 --- a/m4/sanity.m4 +++ b/m4/sanity.m4 @@ -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*