]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make libtool version detection more robust
authorMichael Jerris <mike@jerris.com>
Thu, 9 Apr 2009 23:04:50 +0000 (23:04 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 9 Apr 2009 23:04:50 +0000 (23:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12979 d0543943-73ff-0310-b7d9-9358b9ac24b2

configure.in

index d5806e1bed31327927ec47ff9158790bb708a56e..0ffcbfea9174909e6e138840310fd6617f4e36f6 100644 (file)
@@ -132,7 +132,7 @@ 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}'`"
 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/])