Updated Posix threads tests for FreeBSD

This commit is contained in:
Michiel Broek 2003-11-29 15:07:04 +00:00
parent be9fe37bcb
commit d03acf0726
2 changed files with 1046 additions and 1536 deletions

2552
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -130,16 +130,24 @@ if test "$result" = "yes"; then
AC_CHECK_HEADERS(sys/types.h) AC_CHECK_HEADERS(sys/types.h)
fi fi
ZLIBSUP=No
AC_CHECK_LIB(z,compress2,result=yes,result=no) AC_CHECK_LIB(z,compress2,result=yes,result=no)
if test "$result" = "yes"; then if test "$result" = "yes"; then
LIBS="$LIBS -lz" LIBS="$LIBS -lz"
AC_CHECK_HEADERS(zlib.h,ZLIBSUP=Yes,ZLIBSUP=No) AC_CHECK_HEADERS(zlib.h,ZLIBSUP=Yes,ZLIBSUP=No)
fi fi
PTHREADS=No
AC_CHECK_LIB(pthread,pthread_create,result=yes,result=no) AC_CHECK_LIB(pthread,pthread_create,result=yes,result=no)
if test "$result" = "yes"; then if test "$result" = "yes"; then
LIBS="$LIBS -lpthread" LIBS="$LIBS -lpthread"
AC_CHECK_HEADERS(pthread.h,PTHREADS=Yes,PTHREADS=No) AC_CHECK_HEADERS(pthread.h,PTHREADS=Yes,PTHREADS=No)
else
AC_CHECK_LIB(c_r,pthread_create,result=yes,result=no)
if test "$result" = "yes"; then
LIBS="$LIBS -lc_r"
AC_CHECK_HEADERS(pthread.h,PTHREADS=Yes,PTHREADS=No)
fi
fi fi
dnl Checks for header files. dnl Checks for header files.