$OpenBSD: patch-configure,v 1.2 2010/04/30 09:41:20 jasper Exp $ --- configure.orig Tue Dec 15 23:36:26 2009 +++ configure Fri Apr 30 11:39:15 2010 @@ -24397,13 +24397,13 @@ rm -f core conftest.err conftest.$ac_objext conftest_i if test -n "$gl_have_pthread"; then # The program links fine without libpthread. But it may actually # need to link with libpthread in order to create multiple threads. - { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5 -$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } + { $as_echo "$as_me:$LINENO: checking for pthread_kill in -pthread" >&5 +$as_echo_n "checking for pthread_kill in -pthread... " >&6; } if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-pthread $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -24463,7 +24463,7 @@ fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then - LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread + LIBMULTITHREAD=-pthread LTLIBMULTITHREAD=-pthread # On Solaris and HP-UX, most pthread functions exist also in libc. # Therefore pthread_in_use() needs to actually try to create a # thread: pthread_create from libc will fail, whereas @@ -24481,13 +24481,13 @@ fi else # Some library is needed. Try libpthread and libc_r. - { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5 -$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } + { $as_echo "$as_me:$LINENO: checking for pthread_kill in -pthread" >&5 +$as_echo_n "checking for pthread_kill in -pthread... " >&6; } if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-pthread $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -24548,8 +24548,8 @@ fi $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then gl_have_pthread=yes - LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread - LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread + LIBTHREAD=-pthread LTLIBTHREAD=-pthread + LIBMULTITHREAD=-pthread LTLIBMULTITHREAD=-pthread fi if test -z "$gl_have_pthread"; then