Commit 1c27686a authored by Sam Hocevar's avatar Sam Hocevar

  * Fixed yesterday's pthread detection fix.
parent 38d1a266
This diff is collapsed.
...@@ -78,21 +78,20 @@ CPPFLAGS="${CPPFLAGS} -I/usr/local/include" ...@@ -78,21 +78,20 @@ CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
CFLAGS="${CFLAGS} -I/usr/local/include" CFLAGS="${CFLAGS} -I/usr/local/include"
dnl Check for pthreads - borrowed from XMMS dnl Check for pthreads - borrowed from XMMS
AC_CHECK_FUNC(pthread_attr_init,,[ THREAD_LIB=error
THREAD_LIB=error if test "x${THREAD_LIB}" = xerror; then
if test "x${THREAD_LIB}" = xerror; then AC_CHECK_LIB(pthread,pthread_attr_init,THREAD_LIB="-lpthread")
AC_CHECK_LIB(pthread,pthread_attr_init,THREAD_LIB="-lpthread") fi
fi if test "x${THREAD_LIB}" = xerror; then
if test "x${THREAD_LIB}" = xerror; then AC_CHECK_LIB(pthreads,pthread_attr_init,THREAD_LIB="-lpthreads")
AC_CHECK_LIB(pthreads,pthread_attr_init,THREAD_LIB="-lpthreads") fi
fi if test "x${THREAD_LIB}" = xerror; then
if test "x${THREAD_LIB}" = xerror; then AC_CHECK_LIB(c_r,pthread_attr_init,THREAD_LIB="-lc_r")
AC_CHECK_LIB(c_r,pthread_attr_init,THREAD_LIB="-lc_r") fi
fi if test "x${THREAD_LIB}" = xerror; then
if test "x${THREAD_LIB}" = xerror; then AC_CHECK_FUNC(pthread_attr_init)
THREAD_LIB="" THREAD_LIB=""
fi fi
])
dnl Check for cthreads under GNU/Hurd for instance dnl Check for cthreads under GNU/Hurd for instance
AC_CHECK_LIB(threads,cthread_fork,THREAD_LIB="-lthreads") AC_CHECK_LIB(threads,cthread_fork,THREAD_LIB="-lthreads")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment