diff --git a/config.h.in b/config.h.in index 633381a6..af0ef7c4 100644 --- a/config.h.in +++ b/config.h.in @@ -149,9 +149,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_PORT_H -/* Define if you have POSIX threads libraries and header files. */ -#undef HAVE_PTHREAD - /* Have PTHREAD_PRIO_INHERIT. */ #undef HAVE_PTHREAD_PRIO_INHERIT diff --git a/configure b/configure index f202a503..0eaa0dd6 100755 --- a/configure +++ b/configure @@ -15545,9 +15545,9 @@ test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$ax_pthread_ok" = xyes; then - -$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h - + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + CC="$PTHREAD_CC" : else ax_pthread_ok=no diff --git a/configure.ac b/configure.ac index f65cec5a..87cc9a66 100755 --- a/configure.ac +++ b/configure.ac @@ -267,7 +267,9 @@ AC_CHECK_LIB(socket, connect) dnl Checks for library functions. AC_CHECK_FUNCS([malloc memset socket]) -AX_PTHREAD(, AC_MSG_ERROR(Can not find pthreads. This is required.)) +AX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + CC="$PTHREAD_CC"], AC_MSG_ERROR(Can not find pthreads. This is required.)) AM_COND_IF([USE_SYSTEM_SHARED_LIB], [],