pkgsrc/net/nprobe/patches/patch-aa
joerg 05367ea72f Correct pthread detection in configure. Has libtool, so annotate that.
Update source checksum, I have no idea what changed, but even
ftp.netbsd.org doesn't have the old version around. Remove the
interactive fetch, since it is normal GPL code and can be fetched
directly. Bump revision due to unclear status.
2006-05-12 09:19:54 +00:00

31 lines
1 KiB
Text

$NetBSD: patch-aa,v 1.1 2006/05/12 09:19:54 joerg Exp $
--- configure.orig 2006-05-12 09:05:13.000000000 +0000
+++ configure
@@ -3754,14 +3754,14 @@ EOF
;;
esac
-echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
-echo "configure:3759: checking for pthread_create in -lpthread" >&5
+echo $ac_n "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}""... $ac_c" 1>&6
+echo "configure:3759: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lpthread $LIBS"
+LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3767 "configure"
#include "confdefs.h"
@@ -3795,7 +3795,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_l
#define $ac_tr_lib 1
EOF
- LIBS="-lpthread $LIBS"
+ LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
else
echo "$ac_t""no" 1>&6