From: Michael Jerris Date: Tue, 23 Jun 2009 22:32:06 +0000 (+0000) Subject: make libtool version detection more portable X-Git-Tag: v1.0.4~355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df33a43acf7a320a06e059847e9e16a5324cd065;p=thirdparty%2Ffreeswitch.git make libtool version detection more portable git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13926 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/configure.in b/configure.in index 9a814ee1ac..d918967c2e 100644 --- a/configure.in +++ b/configure.in @@ -129,9 +129,9 @@ esac # AC_MSG_CHECKING([libtool major version]) libtool="${switch_builddir}/libtool" -LIBTOOL_MAJOR_VERSION="`$libtool --version 2>/dev/null| sed -e 's/([[^)]]*)//g;s/^[[^0-9]]*//;s/[[- ]].*//g;q'| awk -F . '{print $1}'`" +LIBTOOL_MAJOR_VERSION="`$libtool --version 2>/dev/null| sed -e 's/([[^)]]*)//g;s/^[[^0-9]]*//;s/[[- ]].*//g;q'| awk 'BEGIN { FS = "." } { print $1 }' `" if test -z "$LIBTOOL_MAJOR_VERSION" ; then - LIBTOOL_MAJOR_VERSION="`sed -n -e '/^VERSION/{s/^.*=\"\?\([[0-9]]\+\)\..\+/\1/;p}' ${switch_srcdir}/build/config/ltmain.sh`" + LIBTOOL_MAJOR_VERSION="`sed -n -e '/^VERSION/{s/^.*=\"\?\([[0-9]]\+\)\..\+/\1/;p;}' ${switch_srcdir}/build/config/ltmain.sh`" fi if test -z "$LIBTOOL_MAJOR_VERSION" ; then AC_MSG_ERROR([Failed to detect your libtool version, please open a bug report on http://jira.freeswitch.org/])