From f21bc46e825657c5a3e7dbad8b922feda0e7be43 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 9 Jun 2005 06:45:54 +0000 Subject: Modified to use 'head -n 1' instead of 'head -1' since some versions of head complains and claims this is deprecated. --- buildconf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/buildconf b/buildconf index 52f96439a..709434f49 100755 --- a/buildconf +++ b/buildconf @@ -24,7 +24,7 @@ findtool(){ # autoconf 2.57 or newer # need_autoconf="2.57" -ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|head -1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'` +ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|head -n 1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'` if test -z "$ac_version"; then echo "buildconf: autoconf not found." echo " You need autoconf version $need_autoconf or newer installed." @@ -45,7 +45,7 @@ echo "buildconf: autoconf version $ac_version (ok)" #-------------------------------------------------------------------------- # autoheader 2.50 or newer # -ah_version=`${AUTOHEADER:-autoheader} --version 2>/dev/null|head -1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'` +ah_version=`${AUTOHEADER:-autoheader} --version 2>/dev/null|head -n 1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'` if test -z "$ah_version"; then echo "buildconf: autoheader not found." echo " You need autoheader version 2.50 or newer installed." @@ -67,7 +67,7 @@ echo "buildconf: autoheader version $ah_version (ok)" # automake 1.7 or newer # need_automake="1.7" -am_version=`${AUTOMAKE:-automake} --version 2>/dev/null|head -1| sed -e 's/^.* \([0-9]\)/\1/' -e 's/[a-z]* *$//' -e 's/\(.*\)\(-p.*\)/\1/'` +am_version=`${AUTOMAKE:-automake} --version 2>/dev/null|head -n 1| sed -e 's/^.* \([0-9]\)/\1/' -e 's/[a-z]* *$//' -e 's/\(.*\)\(-p.*\)/\1/'` if test -z "$am_version"; then echo "buildconf: automake not found." echo " You need automake version $need_automake or newer installed." @@ -113,7 +113,7 @@ fi # set the LIBTOOLIZE here so that glibtoolize is used if glibtool was found LIBTOOLIZE="${libtool}ize" -lt_pversion=`$libtool --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'` +lt_pversion=`$libtool --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'` if test -z "$lt_pversion"; then echo "buildconf: libtool not found." echo " You need libtool version $LIBTOOL_WANTED_VERSION or newer installed" @@ -160,7 +160,7 @@ fi #-------------------------------------------------------------------------- # m4 check # -m4=`${M4:-m4} --version 2>/dev/null|head -1`; +m4=`${M4:-m4} --version 2>/dev/null|head -n 1`; m4_version=`echo $m4 | sed -e 's/^.* \([0-9]\)/\1/' -e 's/[a-z]* *$//'` if { echo $m4 | grep "GNU" >/dev/null 2>&1; } then -- cgit v1.2.3