[asterisk-commits] seanbright: branch 1.4 r142416 - in /branches/1.4: acinclude.m4 configure

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 10 14:05:47 CDT 2008


Author: seanbright
Date: Wed Sep 10 14:05:46 2008
New Revision: 142416

URL: http://svn.digium.com/view/asterisk?view=rev&rev=142416
Log:
Fix detection of PWLIB and OpenH323 version when spacing in the headers
isn't consistent.

(closes issue #13426)
Reported by: bamby
Patches:
      detect_openh323.diff uploaded by bamby (license 430)
      (Modified by me to use sed instead of tr)

Modified:
    branches/1.4/acinclude.m4
    branches/1.4/configure

Modified: branches/1.4/acinclude.m4
URL: http://svn.digium.com/view/asterisk/branches/1.4/acinclude.m4?view=diff&rev=142416&r1=142415&r2=142416
==============================================================================
--- branches/1.4/acinclude.m4 (original)
+++ branches/1.4/acinclude.m4 Wed Sep 10 14:05:46 2008
@@ -472,7 +472,7 @@
 AC_DEFUN(
 [AST_CHECK_PWLIB_VERSION], [
 	if test "${HAS_$2:-unset}" != "unset"; then
-		$2_VERSION=`grep "$2_VERSION" ${$2_INCDIR}/$3 | cut -f2 -d ' ' | sed -e 's/"//g'`
+		$2_VERSION=`grep "$2_VERSION" ${$2_INCDIR}/$3 | sed -e 's/[[[:space:]]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
 		$2_MAJOR_VERSION=`echo ${$2_VERSION} | cut -f1 -d.`
 		$2_MINOR_VERSION=`echo ${$2_VERSION} | cut -f2 -d.`
 		$2_BUILD_NUMBER=`echo ${$2_VERSION} | cut -f3 -d.`




More information about the asterisk-commits mailing list