From: Marko Karppinen Date: Thu, 24 Jan 2002 23:31:45 +0000 (+0000) Subject: Latest libtools output a multiline version info. Deal with that X-Git-Tag: PRE_ISSET_PATCH~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99d36a7557abae4000737a396fbe520dba5a3547;p=php Latest libtools output a multiline version info. Deal with that --- 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 | # +----------------------------------------------------------------------+ # -# $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"