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:
Stefan Knoblich 2008-01-06 18:03:32 +00:00
parent 3375896456
commit 73cbaf9eb8
1 changed files with 3 additions and 1 deletions

View File

@ -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],