[Freeswitch-svn] [commit] r12979 - freeswitch/trunk

FreeSWITCH SVN mikej at freeswitch.org
Thu Apr 9 16:04:50 PDT 2009


Author: mikej
Date: Thu Apr  9 18:04:50 2009
New Revision: 12979

Log:
make libtool version detection more robust

Modified:
   freeswitch/trunk/configure.in

Modified: freeswitch/trunk/configure.in
==============================================================================
--- freeswitch/trunk/configure.in	(original)
+++ freeswitch/trunk/configure.in	Thu Apr  9 18:04:50 2009
@@ -132,7 +132,7 @@
 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/])



More information about the Freeswitch-svn mailing list