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

FreeSWITCH SVN stkn at freeswitch.org
Mon Apr 6 16:29:41 PDT 2009


Author: stkn
Date: Mon Apr  6 18:29:41 2009
New Revision: 12933

Log:
Add a fallback check in case libtool is not yet available in the builddir (get the version from build/config/ltmain.sh instead). print an error message and exit configure if that fails too

Modified:
   freeswitch/trunk/configure.in

Modified: freeswitch/trunk/configure.in
==============================================================================
--- freeswitch/trunk/configure.in	(original)
+++ freeswitch/trunk/configure.in	Mon Apr  6 18:29:41 2009
@@ -131,6 +131,12 @@
 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`"
+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/])
+fi
 AC_MSG_RESULT([${LIBTOOL_MAJOR_VERSION}])
 
 LIBTOOL_LIB_EXTEN="$DYNAMIC_LIB_EXTEN"



More information about the Freeswitch-svn mailing list