]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Also include PTHREAD_LIBS and PTHREAD_CFLAGS for SQLite 3, as it's needed on some...
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 17 Dec 2010 21:03:06 +0000 (21:03 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 17 Dec 2010 21:03:06 +0000 (21:03 +0000)
(closes issue #18493)
 Reported by: pprindeville
 Patches:
       asterisk-1.8-sqlite3.patch uploaded by pprindeville (license 347)
 Tested by: pprindeville

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@298817 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configure
configure.ac

index 74e2a1885d3c61ca3937e48f58870bcd816d003b..83e8d19346a161fe267e50f12e9e917b50c4c6ca 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 296533 .
+# From configure.ac Revision: 298050 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.65 for asterisk 1.6.2.
 #
@@ -22654,7 +22654,7 @@ if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
       AST_SQLITE3_FOUND=yes
    else
       ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
-      CFLAGS="${CFLAGS} "
+      CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
       as_ac_Lib=`$as_echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite3" >&5
 $as_echo_n "checking for ${pbxfuncname} in -lsqlite3... " >&6; }
@@ -22662,7 +22662,7 @@ if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsqlite3 ${pbxlibdir}  $LIBS"
+LIBS="-lsqlite3 ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
 
    # now check for the header.
    if test "${AST_SQLITE3_FOUND}" = "yes"; then
-      SQLITE3_LIB="${pbxlibdir} -lsqlite3 "
+      SQLITE3_LIB="${pbxlibdir} -lsqlite3 ${PTHREAD_LIBS}"
       # if --with-SQLITE3=DIR has been specified, use it.
       if test "x${SQLITE3_DIR}" != "x"; then
          SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
       fi
-      SQLITE3_INCLUDE="${SQLITE3_INCLUDE} "
+      SQLITE3_INCLUDE="${SQLITE3_INCLUDE} ${PTHREAD_CFLAGS}"
       if test "xsqlite3.h" = "x" ; then        # no header, assume found
          SQLITE3_HEADER_FOUND="1"
       else                             # check for the header
index e4b600a74507120a425544ddf40013e1cdff580b..5a8924e5091ca09f7c6ea0f4aaa59fde75963c0b 100644 (file)
@@ -1699,7 +1699,7 @@ AC_SUBST(PBX_SPEEX_PREPROCESS)
 
 AST_EXT_LIB_CHECK([SQLITE], [sqlite], [sqlite_exec], [sqlite.h])
 
-AST_EXT_LIB_CHECK([SQLITE3], [sqlite3], [sqlite3_open], [sqlite3.h])
+AST_EXT_LIB_CHECK([SQLITE3], [sqlite3], [sqlite3_open], [sqlite3.h], [${PTHREAD_LIBS}], [${PTHREAD_CFLAGS}])
 
 AST_EXT_LIB_CHECK([CRYPTO], [crypto], [AES_encrypt], [openssl/aes.h])