]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* configure.in: Run the Autoconf test in a subdirectory, then
authorAlexandre Duret-Lutz <adl@gnu.org>
Mon, 7 Jan 2002 21:10:26 +0000 (21:10 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Mon, 7 Jan 2002 21:10:26 +0000 (21:10 +0000)
erase this directory.

ChangeLog
configure
configure.in

index a3cdaeb1a60004bb3124caed82b435b05a497812..33c36a74d57dbe1194633d00cc0c8a47ab21a01f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
+
+       * configure.in: Run the Autoconf test in a subdirectory, then
+       erase this directory.
+
 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        * configure.in (AUTOMAKE): Create m4/amversion.m4.
index 0754b60c80ef6645701eab4398a69573e43e931f..d8e76d0c041db0ff1f8cc62a865791597725afca 100755 (executable)
--- a/configure
+++ b/configure
@@ -1517,9 +1517,13 @@ echo "$as_me: error: perl 5.005 or better is required" >&2;}
    { (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
+# Test for Autoconf.  We run Autoconf in a subdirectory to ease
+# deletion of any files created (such as those added to
+# autom4te.cache).
+mkdir conftest
+echo 'AC''_PREREQ(2.52)' > conftest/conftest.ac
+{ echo "$as_me:$LINENO: cd conftest && eval $AUTOCONF -o /dev/null conftest.ac" >&5
+   (cd conftest && eval $AUTOCONF -o /dev/null conftest.ac) >&5 2>&5
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); } || {
@@ -1527,7 +1531,7 @@ echo 'AC''_PREREQ(2.52)' > conftest.ac
 echo "$as_me: error: Autoconf 2.52 or better is required" >&2;}
    { (exit 1); exit 1; }; }
 }
-rm conftest.ac
+rm -rf conftest
 
 ac_config_files="$ac_config_files automake"
 
index c1027ab4a7c7ed006507783bda6878d9dbc26e5d..b02095612107b18c1c6ec773c6b6801b1ec94801 100644 (file)
@@ -40,11 +40,15 @@ $PERL -e 'require 5.005;' || {
    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]) || {
+# Test for Autoconf.  We run Autoconf in a subdirectory to ease
+# deletion of any files created (such as those added to
+# autom4te.cache).
+mkdir conftest
+echo 'AC''_PREREQ(2.52)' > conftest/conftest.ac
+AM_RUN_LOG([cd conftest && eval $AUTOCONF -o /dev/null conftest.ac]) || {
    AC_MSG_ERROR([Autoconf 2.52 or better is required])
 }
-rm conftest.ac
+rm -rf conftest
 
 AC_CONFIG_FILES([automake], [chmod +x automake])
 AC_CONFIG_FILES([aclocal], [chmod +x aclocal])