summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMarko Karppinen <markonen@php.net>2002-01-24 23:31:45 +0000
committerMarko Karppinen <markonen@php.net>2002-01-24 23:31:45 +0000
commit99d36a7557abae4000737a396fbe520dba5a3547 (patch)
tree367a7652612ead600a9f8aee3cb3d1f16109b3f6 /build
parent449b53e34a687005eeba239f2ead360bd65c1b5a (diff)
downloadphp-git-99d36a7557abae4000737a396fbe520dba5a3547.tar.gz
Latest libtools output a multiline version info. Deal with that
Diffstat (limited to 'build')
-rwxr-xr-xbuild/buildcheck.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/buildcheck.sh b/build/buildcheck.sh
index 437d61be6f..9f8a499f7d 100755
--- a/build/buildcheck.sh
+++ b/build/buildcheck.sh
@@ -16,7 +16,7 @@
# | Sascha Schumann <sascha@schumann.cx> |
# +----------------------------------------------------------------------+
#
-# $Id: buildcheck.sh,v 1.13 2001-12-11 15:28:53 sebastian Exp $
+# $Id: buildcheck.sh,v 1.14 2002-01-24 23:31:45 markonen Exp $
#
echo "buildconf: checking installation..."
@@ -61,7 +61,7 @@ fi
# libtool 1.4 or newer
libtool=`which libtool`
if test ! -f "$libtool"; then libtool=`which glibtool`; fi
-lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/^[^0-9]*//' -e 's/[- ].*//'`
+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."
echo " You need libtool version 1.4 or newer installed"