From: Julian Andres Klode Date: Fri, 5 Aug 2016 23:51:41 +0000 (+0200) Subject: configure.ac: Re-enable pthread support for thread-local _error X-Git-Tag: 1.3_pre3+cmake1~14 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/313a7b1d9130a6a70853f04b8b4e73c678241d3f?ds=inline configure.ac: Re-enable pthread support for thread-local _error This was disabled in 1999 by jgg due to "glibc bugs". Let's hope those are fixed now, 17 years later. --- diff --git a/configure.ac b/configure.ac index d030dc632..ce547ab74 100644 --- a/configure.ac +++ b/configure.ac @@ -55,12 +55,12 @@ SOCKETLIBS="$LIBS" AC_SUBST(SOCKETLIBS) LIBS="$SAVE_LIBS" -dnl Checks for pthread -- disabled due to glibc bugs jgg -dnl AC_CHECK_LIB(pthread, pthread_create,[AC_DEFINE(HAVE_PTHREAD) PTHREADLIB="-lpthread"]) +dnl Checks for pthread +AC_CHECK_LIB(pthread, pthread_create,[AC_DEFINE(HAVE_PTHREAD) PTHREADLIB="-lpthread"]) AC_SUBST(PTHREADLIB) -dnl if test "$PTHREADLIB" != "-lpthread"; then -dnl AC_MSG_ERROR(failed: I need posix threads, pthread) -dnl fi +if test "$PTHREADLIB" != "-lpthread"; then + AC_MSG_ERROR(failed: I need posix threads, pthread) +fi dnl Check for BDB saveLIBS="$LIBS"