$NetBSD: patch-fa,v 1.2 2008/06/21 15:45:16 drochner Exp $ --- m4/pthreads.m4.orig 2008-06-15 01:15:00.000000000 +0200 +++ m4/pthreads.m4 @@ -43,6 +43,9 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [ fi fi +dnl compensate for pkgsrc pthread.bl3 smartness + PTHREAD_LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" + AC_CACHE_CHECK([if $CC supports Pthread], AS_TR_SH([cc_cv_pthreads]), [ac_save_CFLAGS="$CFLAGS"