mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 18:13:27 +00:00
Fix pthread configure check for js cli tool
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7108 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
3375896456
commit
73cbaf9eb8
@ -178,11 +178,13 @@ AC_ARG_WITH(nspr,
|
|||||||
AC_CACHE_CHECK([whether to build with NSPR], [ac_cv_with_nspr], [ac_cv_with_nspr=no])
|
AC_CACHE_CHECK([whether to build with NSPR], [ac_cv_with_nspr], [ac_cv_with_nspr=no])
|
||||||
if test ".$ac_cv_with_nspr" = ".yes"; then
|
if test ".$ac_cv_with_nspr" = ".yes"; then
|
||||||
sinclude(nsprpub/config/nspr.m4)
|
sinclude(nsprpub/config/nspr.m4)
|
||||||
|
|
||||||
|
AC_CHECK_LIB(pthread, pthread_create, [CLI_LIBS="$CLI_LIBS -lpthread"])
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS -DJS_THREADSAFE=1 -Insprpub/dist/include/nspr -Insprpub/pr/include"
|
CPPFLAGS="$CPPFLAGS -DJS_THREADSAFE=1 -Insprpub/dist/include/nspr -Insprpub/pr/include"
|
||||||
LDFLAGS="$LDFLAGS -L./nsprpub/dist/lib"
|
LDFLAGS="$LDFLAGS -L./nsprpub/dist/lib"
|
||||||
LIBS="$LIBS -lnspr4"
|
LIBS="$LIBS -lnspr4"
|
||||||
LIBPATH="LD_LIBRARY_PATH=./nsprpub/dist/lib DYLD_LIBRARY_PATH=./nsprpub/dist/lib"
|
LIBPATH="LD_LIBRARY_PATH=./nsprpub/dist/lib DYLD_LIBRARY_PATH=./nsprpub/dist/lib"
|
||||||
AC_CHECK_LIB(pthread, pthread_create, [CLI_LIBS="$CLI_LIBS -lpthread"])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_DEFUN([AX_COMPILER_VENDOR],
|
AC_DEFUN([AX_COMPILER_VENDOR],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user