* configure.in (LIB_PTHREAD): Prepend -lpthread to LIBS (Bug#9852)

if the library is found.  Otherwise, later configure-time tests,
such as the test for pthread_sigmask, generate the wrong results
on some platforms.  Problem reported for FreeBSD by Nali Toja.
This commit is contained in:
Paul Eggert 2011-10-23 19:40:23 -07:00
parent 08c7586636
commit e782cfabe7
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2011-10-24 Paul Eggert <eggert@cs.ucla.edu>
* configure.in (LIB_PTHREAD): Prepend -lpthread to LIBS (Bug#9852)
if the library is found. Otherwise, later configure-time tests,
such as the test for pthread_sigmask, generate the wrong results
on some platforms. Problem reported for FreeBSD by Nali Toja.
2011-10-20 Paul Eggert <eggert@cs.ucla.edu>
Time zone name fixes for non-ASCII locales (Bug#641, Bug#9794)

View file

@ -1723,7 +1723,8 @@ fi
if test "$HAVE_PTHREAD" = yes; then
case "${canonical}" in
*-hpux*) ;;
*) LIB_PTHREAD="-lpthread" ;;
*) LIB_PTHREAD="-lpthread"
LIBS="$LIB_PTHREAD $LIBS" ;;
esac
AC_DEFINE(HAVE_PTHREAD, 1, [Define to 1 if you have pthread (-lpthread).])
fi