[PATCH] Prefer glibtool over libtool
| From: | Justin Erenkrantz | Date: | Sun, 05 May 2002 08:21:40 +0000 |
| Subject: | [PATCH] Prefer glibtool over libtool | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-83708@lists.php.net to get a copy of this message | ||
This patch switches buildcheck.sh so that it prefers glibtool
over libtool. This is especially needed on Darwin systems
because their libtool isn't GNU libtool.
Since a libtool does exist, but it isn't GNU libtool, it fails
the lt_pversion test. So, if we prefer glibtool over libtool,
we avoid this situation.
Thanks! -- justin
Index: build/buildcheck.sh
===================================================================
RCS file: /repository/php4/build/buildcheck.sh,v
retrieving revision 1.16
diff -u -r1.16 buildcheck.sh
--- build/buildcheck.sh 4 Mar 2002 08:28:57 -0000 1.16
+++ build/buildcheck.sh 5 May 2002 08:10:10 -0000
@@ -60,8 +60,8 @@
fi
# libtool 1.4 or newer
-libtool=
which libtool
-if test ! -f "$libtool"; then libtool=which glibtool; fi
+libtool=which glibtool
+if test ! -f "$libtool"; then libtool=which libtool; fi
lt_pversion=$libtool --version 2>/dev/null|sed -n -e 's/^[^0-9]*//' -e
1's/[- ].*//p'
if test "$lt_pversion" = ""; then
echo "buildconf: libtool not found."