[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnulib-bug
Subject:    [Bug-gnulib] Re: gnulib-tool fixes
From:       Simon Josefsson <jas () extundo ! com>
Date:       2004-08-23 8:54:14
Message-ID: ilupt5i9qvd.fsf () latte ! josefsson ! org
[Download RAW message or body]

Oskar Liljeblad <oskar@osk.mine.nu> writes:

> Use aclocal instead of aclocal-1.7 and
> automake instead of automake-1.7.

Shouldn't gnulib-tool use autoreconf?

And couldn't Bruno set AUTOCONFPATH to
/packages/gnu-inst-autoconf/2.57/bin in his ~/.bashrc? :-)

When generating the patch below, I noticed a small fix to --import I
forgot to send earlier.

Thanks.

2004-08-23  Simon Josefsson  <jas@extundo.com>

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

Index: gnulib-tool
===================================================================
RCS file: /cvsroot/gnulib/gnulib/gnulib-tool,v
retrieving revision 1.15
diff -u -p -u -w -r1.15 gnulib-tool
--- gnulib-tool	17 Aug 2004 23:36:21 -0000	1.15
+++ gnulib-tool	23 Aug 2004 08:49:44 -0000
@@ -26,19 +26,7 @@ cvsdatestamp='$Date: 2004/08/17 23:36:21
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
-# You can set AUTOCONFPATH to empty if autoconf 2.57 is already in your PATH.
-AUTOCONFPATH=
-case $USER in
-  bruno )
-    AUTOCONFBINDIR=/packages/gnu-inst-autoconf/2.57/bin
-    AUTOCONFPATH="eval env PATH=${AUTOCONFBINDIR}:\$PATH "
-    ;;
-esac
-
-AUTOCONF="${AUTOCONFPATH}autoconf"
-AUTOHEADER="${AUTOCONFPATH}autoheader"
-AUTOMAKE="${AUTOCONFPATH}automake-1.7"
-ACLOCAL="aclocal-1.7"
+AUTORECONF="${AUTOCONFPATH}${AUTORECONF:-autoreconf}"
 
 # func_usage
 # outputs to stdout the --help usage message.
@@ -499,14 +487,8 @@ func_create_testdir ()
 
   # Create autogenerated files.
   (cd "$testdir"
-   echo "executing ${ACLOCAL} -I m4"
-   ${ACLOCAL} -I m4
-   echo "executing ${AUTOHEADER}"
-   ${AUTOHEADER}
-   echo "executing ${AUTOCONF}"
-   ${AUTOCONF}
-   echo "executing ${AUTOMAKE} --add-missing --copy"
-   ${AUTOMAKE} --add-missing --copy
+   echo "executing ${AUTORECONF} --force --install"
+   ${AUTORECONF} --force --install
   )
   if grep '^BUILT_SOURCES *+=' "$testdir/lib/Makefile.am" > /dev/null; then
     (cd "$testdir"
@@ -564,12 +546,8 @@ func_create_megatestdir ()
 
   # Create autogenerated files.
   (cd "$megatestdir"
-   echo "executing ${ACLOCAL}"
-   ${ACLOCAL}
-   echo "executing ${AUTOCONF}"
-   ${AUTOCONF}
-   echo "executing ${AUTOMAKE} --add-missing --copy Makefile"
-   ${AUTOMAKE} --add-missing --copy Makefile
+   echo "executing ${AUTORECONF} --force --install"
+   ${AUTORECONF} --force --install
   )
 }
 
@@ -807,6 +785,9 @@ case $mode in
 	    echo "dnl Usage: gl_M4_BASE(DIR)"
 	    echo "AC_DEFUN([gl_M4_BASE], [])"
 	    echo
+	    echo "dnl Usage: gl_LIB(LIBNAME)"
+	    echo "AC_DEFUN([gl_LIB], [])"
+	    echo
 	    echo "# gnulib.m4 ends here"
 	)
 	echo "Finished."




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic