# HG changeset patch # User Bruno Haible # Date 1136984200 0 # Node ID 1a65fb7ddbbbd6628df9c796c26e0f207fd18907 # Parent b32846b4d88de8848e2f060233a8d12b8286cafa Don't waste time in a recursive autoreconf. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-01-08 Bruno Haible + + * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New + variables. + (func_create_megatestdir): Call aclocal, autoconf, automake here, not + autoreconf. + 2006-01-11 Bruno Haible * gnulib-tool (func_import, func_create_testdir): Replace build-aux diff --git a/gnulib-tool b/gnulib-tool --- a/gnulib-tool +++ b/gnulib-tool @@ -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 @@ # ;; #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 @@ # 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 ) }