summaryrefslogtreecommitdiff
path: root/build/buildcheck.sh
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2004-12-30 15:53:57 +0000
committerRasmus Lerdorf <rasmus@php.net>2004-12-30 15:53:57 +0000
commitb1db6ed28dd7a1231385b4ef866cdd3237022a5b (patch)
tree709baa2decf2e865320c6f09a43281d1f898ceca /build/buildcheck.sh
parent4cf9d27072171a300e9014695d1a29a61b693c5e (diff)
downloadphp-git-b1db6ed28dd7a1231385b4ef866cdd3237022a5b.tar.gz
Safer libtoolize version check
Diffstat (limited to 'build/buildcheck.sh')
-rwxr-xr-xbuild/buildcheck.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/buildcheck.sh b/build/buildcheck.sh
index 555cb35204..5ecbf432e9 100755
--- a/build/buildcheck.sh
+++ b/build/buildcheck.sh
@@ -16,7 +16,7 @@
# | Sascha Schumann <sascha@schumann.cx> |
# +----------------------------------------------------------------------+
#
-# $Id: buildcheck.sh,v 1.31 2004-12-20 20:23:57 sniper Exp $
+# $Id: buildcheck.sh,v 1.32 2004-12-30 15:53:57 rasmus Exp $
#
echo "buildconf: checking installation..."
@@ -54,7 +54,7 @@ fi
# libtoolize 1.4.3 or newer
# Prefer glibtoolize over libtoolize for Mac OS X compatibility
libtoolize=`./build/shtool path glibtoolize libtoolize 2> /dev/null`
-lt_pversion=`$libtoolize --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//'`
+lt_pversion=`$libtoolize --version 2>/dev/null|head -n 1|awk -F' ' '{print $NF}'`
if test "$lt_pversion" = ""; then
echo "buildconf: libtool not found."
echo " You need libtool version 1.4.3 or newer installed"