bug-libtool
[Top][All Lists]
Advanced

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

incorrect warning message about old aclocal.m4


From: Daniel R. Grayson
Subject: incorrect warning message about old aclocal.m4
Date: Sat, 14 Sep 2002 10:58:11 -0500 (CDT)

Automake 1.6.3 seems to make aclocal.m4 files that change slightly the line
that defines AC_PROG_LIBTOOL, so that it presents the name as
[AC_PROG_LIBTOOL], with brackets around it.  Later, when used, libtoolize
needlessly complains and asks that aclocal.m4 be updated by running aclocal.

Here is the fix:

diff -ur tmp/libtool-1.4.2/libtoolize.in libtool-1.4.2/libtoolize.in
--- tmp/libtool-1.4.2/libtoolize.in     2001-03-30 16:47:23.000000000 -0600
+++ libtool-1.4.2/libtoolize.in 2002-09-14 10:47:06.000000000 -0500
@@ -204,7 +204,7 @@
     updatemsg="add the contents of \`$libtool_m4' to \`aclocal.m4'"
   fi
 
-  if egrep '^AC_DEFUN\(A[MC]_PROG_LIBTOOL' aclocal.m4 >/dev/null 2>&1; then
+  if egrep '^AC_DEFUN\(\[?A[MC]_PROG_LIBTOOL' aclocal.m4 >/dev/null 2>&1; then
     # Check the version number on libtool.m4 and the one used in aclocal.m4.
     instserial=`grep '^# serial ' $libtool_m4 | grep 'A[MC]_PROG_LIBTOOL' | 
sed -e 's/^# serial \([0-9][0-9]*\).*$/\1/; q'`
 




reply via email to

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