From: Stefan Knoblich Date: Sun, 6 Jan 2008 18:03:32 +0000 (+0000) Subject: Fix pthread configure check for js cli tool X-Git-Tag: v1.0-rc1~792 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73cbaf9eb83c17c794ca18e8eaf125029605db41;p=thirdparty%2Ffreeswitch.git Fix pthread configure check for js cli tool git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7108 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/js/configure.ac b/libs/js/configure.ac index a1ddbc4582..f4e0954d04 100644 --- a/libs/js/configure.ac +++ b/libs/js/configure.ac @@ -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]) if test ".$ac_cv_with_nspr" = ".yes"; then 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" LDFLAGS="$LDFLAGS -L./nsprpub/dist/lib" LIBS="$LIBS -lnspr4" 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 AC_DEFUN([AX_COMPILER_VENDOR],