From 751c2894fb1cfc593584db13c100b5d2bc7b5ab5 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Mon, 10 Aug 2009 20:57:40 +0000 Subject: [PATCH] (Free)BSD sed is... strange..., fix for FSBUILD-184 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14479 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 818611785c..2c1dbfaf4e 100644 --- a/configure.in +++ b/configure.in @@ -131,7 +131,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 '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,1\}\([[0-9]]\{1,\}\)\..*/\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/])