mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
Update configure script to be compatible with ptlib 2.10.9
With ptlib 2.10.9, the configure script fails due to grep returning multiple matches for the pattern it searches for. This patch updates the pattern matching to return only the actual version for the symbol searched for, PTLIB_VERSION. (closes issue ASTERISK-20980) Reported by: Stefan Reuter patches: ASTERISK-20980-1.patch uploaded by Stefan Reuter (license 5339) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@380297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -198,7 +198,7 @@ AC_DEFUN([AST_CHECK_PWLIB_VERSION], [
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "${HAS_$2:-unset}" != "unset"; then
|
if test "${HAS_$2:-unset}" != "unset"; then
|
||||||
$2_VERSION=`grep "$VNAME" ${$2_INCDIR}/$3 | sed -e 's/[[[:space:]]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
|
$2_VERSION=`grep "$VNAME \"" ${$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_MAJOR_VERSION=`echo ${$2_VERSION} | cut -f1 -d.`
|
||||||
$2_MINOR_VERSION=`echo ${$2_VERSION} | cut -f2 -d.`
|
$2_MINOR_VERSION=`echo ${$2_VERSION} | cut -f2 -d.`
|
||||||
$2_BUILD_NUMBER=`echo ${$2_VERSION} | cut -f3 -d.`
|
$2_BUILD_NUMBER=`echo ${$2_VERSION} | cut -f3 -d.`
|
||||||
|
|||||||
6
configure
vendored
6
configure
vendored
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.ac Revision: 375189 .
|
# From configure.ac Revision: 379547 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.68 for asterisk trunk.
|
# Generated by GNU Autoconf 2.68 for asterisk trunk.
|
||||||
#
|
#
|
||||||
@@ -25523,7 +25523,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "${HAS_PWLIB:-unset}" != "unset"; then
|
if test "${HAS_PWLIB:-unset}" != "unset"; then
|
||||||
PWLIB_VERSION=`grep "$VNAME" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
|
PWLIB_VERSION=`grep "$VNAME \"" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
|
||||||
PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
|
PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
|
||||||
PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
|
PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
|
||||||
PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
|
PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
|
||||||
@@ -25856,7 +25856,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "${HAS_OPENH323:-unset}" != "unset"; then
|
if test "${HAS_OPENH323:-unset}" != "unset"; then
|
||||||
OPENH323_VERSION=`grep "$VNAME" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
|
OPENH323_VERSION=`grep "$VNAME \"" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
|
||||||
OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
|
OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
|
||||||
OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
|
OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
|
||||||
OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
|
OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
|
||||||
|
|||||||
Reference in New Issue
Block a user