Don't waste time in a recursive autoreconf.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2006 12:56:40 +0000 (12:56 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2006 12:56:40 +0000 (12:56 +0000)
ChangeLog
gnulib-tool

index 5427de848bbc78a37fff147fb38d8236e35bf6b4..45f3b942b1226fd4c1fd33258f3d88289735b302 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-01-08  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
+       variables.
+       (func_create_megatestdir): Call aclocal, autoconf, automake here, not
+       autoreconf.
+
 2006-01-11  Bruno Haible  <bruno@clisp.org>
 
        * gnulib-tool (func_import, func_create_testdir): Replace build-aux
index d3f13423575f01644772553a1c12fe183a5ac351..51951716340cb1abf4be286f115d5aed50dfc839 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2006-01-11 12:24:28 $'
+cvsdatestamp='$Date: 2006-01-11 12:56:40 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -35,6 +35,12 @@ AUTOCONFPATH=
 #    ;;
 #esac
 
+# You can set AUTOMAKEPATH to empty if automake 1.9.x is already in your PATH.
+AUTOMAKEPATH=
+
+AUTOCONF="${AUTOCONFPATH}autoconf"
+ACLOCAL="${AUTOMAKEPATH}aclocal"
+AUTOMAKE="${AUTOMAKEPATH}automake"
 AUTORECONF="${AUTOCONFPATH}autoreconf"
 
 # func_usage
@@ -1646,8 +1652,17 @@ func_create_megatestdir ()
 
   # Create autogenerated files.
   (cd "$megatestdir"
-   echo "executing ${AUTORECONF} --install"
-   ${AUTORECONF} --install
+   # Do not use "${AUTORECONF} --install", because autoreconf operates
+   # recursively, but the subdirectories are already finished, therefore
+   # calling autoreconf here would only waste lots of CPU time.
+   echo "executing ${ACLOCAL}"
+   ${ACLOCAL}
+   echo "executing mkdir build-aux"
+   mkdir build-aux
+   echo "executing ${AUTOCONF}"
+   ${AUTOCONF}
+   echo "executing ${AUTOMAKE} --add-missing --copy"
+   ${AUTOMAKE} --add-missing --copy
   )
 }