2
0
mirror of git://git.savannah.gnu.org/libtool.git synced 2025-03-19 15:50:25 +08:00

* libtoolize.in: search for A[MC]_PROG_LIBTOOL, not

AM_PROG_LIBTOOL
Reported by Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
Alexandre Oliva 1999-01-27 19:38:13 +00:00 committed by Alexandre Oliva
parent 2c993177db
commit baeca5233a
2 changed files with 10 additions and 4 deletions

@ -1,3 +1,9 @@
1999-01-27 Alexandre Oliva <oliva@dcc.unicamp.br>
* libtoolize.in: search for A[MC]_PROG_LIBTOOL, not
AM_PROG_LIBTOOL
Reported by Jeff Garzik <jgarzik@pobox.com>
1999-01-27 Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
* THANKS: Now that we have a policy, applied it to the existing

@ -184,7 +184,7 @@ else
fi
if test -z "$automake"; then
if egrep '^AM_PROG_LIBTOOL' configure.in >/dev/null 2>&1; then :
if egrep '^A[MC]_PROG_LIBTOOL' configure.in >/dev/null 2>&1; then :
else
echo "Remember to add \`AM_PROG_LIBTOOL' to \`configure.in'."
fi
@ -199,15 +199,15 @@ if test -z "$automake"; then
updatemsg="add the contents of \`$libtool_m4' to \`aclocal.m4'"
fi
if egrep '^AC_DEFUN\(AM_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 'AM_PROG_LIBTOOL' | sed -e 's/^# serial \([0-9][0-9]*\).*$/\1/; q'`
instserial=`grep '^# serial ' $libtool_m4 | grep 'A[MC]_PROG_LIBTOOL' | sed -e 's/^# serial \([0-9][0-9]*\).*$/\1/; q'`
if test -z "$instserial"; then
echo "$progname: warning: no serial number on \`$libtool_m4'" 1>&2
else
# If the local macro has no serial number, we assume it's ancient.
localserial=`grep '^# serial ' aclocal.m4 | grep 'AM_PROG_LIBTOOL' | sed -e 's/^# serial \([0-9][0-9]*\).*$/\1/; q'`
localserial=`grep '^# serial ' aclocal.m4 | grep 'A[MC]_PROG_LIBTOOL' | sed -e 's/^# serial \([0-9][0-9]*\).*$/\1/; q'`
test -z "$localserial" && localserial=0