Commit 7f1e9a1e authored by Nils Goroll's avatar Nils Goroll

add back configure pthread support

This partly reverts my previous commit 78ac8836,
which was wrong:

Varnish is massively multithreaded, so all vmods must be thread-safe.

While it is possible to write thread-safe vmods without pthreads support,
some systems (like those of the Solaris-heritage) need additional compiler
flags for MT support (-D_REENTRANT -pthreads). To avoid weird potential
issues, we should, by default, include full MT support.

Also, libpthreads is available for vmods because varnishd itself links
against it, but, again, making this dependency explicit should be the right way.
parent d887eea9
......@@ -20,6 +20,12 @@ if test "x$ac_cv_prog_cc_c99" = xno; then
fi
AC_PROG_CPP
AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])])
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
LT_INIT([disable-static])
AC_PROG_INSTALL
AC_PROG_LIBTOOL
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment