bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autoreconf is recursive


From: Bruno Haible
Subject: autoreconf is recursive
Date: Wed, 11 Jan 2006 13:48:02 +0100
User-agent: KMail/1.5.4

Hi Simon and Paul,

The func_create_megatestdir part of this patch

2004-09-18  Simon Josefsson  <address@hidden>
        and  Paul Eggert  <address@hidden>

        * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
        calls with autoreconf.  Define GL_LIB.

has the effect of nearly doubling the executing time of
"gnulib-tool --create-megatestdir --dir=/dev/shm/testdir".
4 hours vs. ca. 7 or 8 hours of CPU time - it matters. I'm reverting to
simple autoconf and automake calls for the toplevel directory.


2006-01-08  Bruno Haible  <address@hidden>

        * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
        variables.
        (func_create_megatestdir): Call aclocal, autoconf, automake here, not
        autoreconf.

*** gnulib-tool.bak     2006-01-07 19:41:07.000000000 +0100
--- gnulib-tool 2006-01-08 13:30:35.000000000 +0100
***************
*** 35,40 ****
--- 35,46 ----
  #    ;;
  #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
***************
*** 1619,1626 ****
  
    # Create autogenerated files.
    (cd "$megatestdir"
!    echo "executing ${AUTORECONF} --install"
!    ${AUTORECONF} --install
    )
  }
  
--- 1625,1641 ----
  
    # Create autogenerated files.
    (cd "$megatestdir"
!    # 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
    )
  }
  






reply via email to

[Prev in Thread] Current Thread [Next in Thread]