]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
libtool detection code working now, put both checks together, add some info messages...
authorStefan Knoblich <stkn@freeswitch.org>
Mon, 6 Apr 2009 21:59:48 +0000 (21:59 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Mon, 6 Apr 2009 21:59:48 +0000 (21:59 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12929 d0543943-73ff-0310-b7d9-9358b9ac24b2

configure.in

index a90370e95bd2594e712ea9190fc3e9ae8c654be5..fc0894c6e18068dba9e486339f95ac73559de0cd 100644 (file)
@@ -76,9 +76,6 @@ m4_defun([_LT_AC_LANG_RC_CONFIG], [:])
 AM_PROG_CC_C_O
 AC_PROG_LIBTOOL
 
-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}'`
-
 #Check for compiler vendor
 AX_COMPILER_VENDOR
 
@@ -126,12 +123,23 @@ case "$host" in
     ;;
 esac
 
+##
+# detect libtool major version,
+# set libtool library extension based on this
+# to work around some brokeness when using 'la' with libtool-1.5
+#
+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}'`"
+AC_MSG_RESULT([${LIBTOOL_MAJOR_VERSION}])
 
 LIBTOOL_LIB_EXTEN="$DYNAMIC_LIB_EXTEN"
 
-if test "$LIBTOOL_MAJOR_VERSION" = "2"; then
+if test "${LIBTOOL_MAJOR_VERSION}" = "2" ; then
    LIBTOOL_LIB_EXTEN="la"
 fi
+AC_MSG_RESULT([using libtool library extension... ${LIBTOOL_LIB_EXTEN}])
+
 
 #  Enable 64 bit build
 AC_ARG_ENABLE(64,