]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
configure: Fix HAVE_PJSIP_EVSUB_GRP_LOCK not set with external pjproject 13/3113/1
authorGeorge Joseph <gjoseph@digium.com>
Thu, 30 Jun 2016 13:25:09 +0000 (07:25 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 30 Jun 2016 13:29:21 +0000 (08:29 -0500)
There was a typo in configure.ac preventing HAVE_PJSIP_EVSUB_GRP_LOCK
from getting set when using an external pjproject.

ASTERISK-26099 #close
Reported-by: Ross Beer
Change-Id: I709af70428e125fb5ccd44b171d25dd29141f0ae

configure
configure.ac

index 7f3d09c743eed0e3d7bc6673f9140340a7f8a6c3..5e5667c97d4804ff4690e20df1c9eec040deea1c 100755 (executable)
--- a/configure
+++ b/configure
@@ -25446,7 +25446,7 @@ if test "x${PBX_PJSIP_EVSUB_GRP_LOCK}" != "x1" -a "${USE_PJSIP_EVSUB_GRP_LOCK}"
          pbxlibdir="-L${PJSIP_EVSUB_GRP_LOCK_DIR}"
       fi
    fi
-   pbxfuncname="pjsip_evsub_add_lock"
+   pbxfuncname="pjsip_evsub_add_ref"
    if test "x${pbxfuncname}" = "x" ; then   # empty lib, assume only headers
       AST_PJSIP_EVSUB_GRP_LOCK_FOUND=yes
    else
index 0698834aaf1c642472907d4275e3ceaeddc3a161..6256ef7fb82e2e9f10a104e1757929276d327175 100644 (file)
@@ -2209,7 +2209,7 @@ if test "$USE_PJPROJECT" != "no" ; then
       LIBS="${saved_libs}"
       CPPFLAGS="${saved_cppflags}"
 
-      AST_EXT_LIB_CHECK([PJSIP_EVSUB_GRP_LOCK], [pjsip], [pjsip_evsub_add_lock], [pjsip.h], [$PJPROJECT_LIB], [$PJPROJECT_CFLAGS])
+      AST_EXT_LIB_CHECK([PJSIP_EVSUB_GRP_LOCK], [pjsip], [pjsip_evsub_add_ref], [pjsip.h], [$PJPROJECT_LIB], [$PJPROJECT_CFLAGS])
    fi
 fi