use PTHREADS_LIBADD for freebsd6 and newer
This commit is contained in:
@@ -29,9 +29,13 @@ case "$host" in
|
|||||||
dnl heim_threads.h knows this
|
dnl heim_threads.h knows this
|
||||||
PTHREADS_LIBS="-lpthread"
|
PTHREADS_LIBS="-lpthread"
|
||||||
;;
|
;;
|
||||||
*-*-freebsd[[56789]]*)
|
*-*-freebsd[[56]]*)
|
||||||
native_pthread_support=yes
|
native_pthread_support=yes
|
||||||
;;
|
;;
|
||||||
|
*-*-freebsd[[789]]*)
|
||||||
|
native_pthread_support=yes
|
||||||
|
PTHREADS_LIBADD="-lthr"
|
||||||
|
;;
|
||||||
*-*-openbsd*)
|
*-*-openbsd*)
|
||||||
native_pthread_support=yes
|
native_pthread_support=yes
|
||||||
PTHREADS_CFLAGS=-pthread
|
PTHREADS_CFLAGS=-pthread
|
||||||
@@ -81,10 +85,12 @@ if test "$enable_pthread_support" != no; then
|
|||||||
else
|
else
|
||||||
PTHREADS_CFLAGS=""
|
PTHREADS_CFLAGS=""
|
||||||
PTHREADS_LIBS=""
|
PTHREADS_LIBS=""
|
||||||
|
PTHREADS_LIBADD=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(PTHREADS_CFLAGS)
|
AC_SUBST(PTHREADS_CFLAGS)
|
||||||
AC_SUBST(PTHREADS_LIBS)
|
AC_SUBST(PTHREADS_LIBS)
|
||||||
|
AC_SUBST(PTHREADS_LIBADD)
|
||||||
|
|
||||||
AC_MSG_RESULT($enable_pthread_support)
|
AC_MSG_RESULT($enable_pthread_support)
|
||||||
])
|
])
|
||||||
|
Reference in New Issue
Block a user