Commit 19a9785d authored by Nils Goroll's avatar Nils Goroll

configure pthread support

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.
parent 4ea3aaa3
...@@ -24,7 +24,11 @@ Makefile.in ...@@ -24,7 +24,11 @@ Makefile.in
/ltmain.sh /ltmain.sh
/missing /missing
/stamp-h1 /stamp-h1
/m4/ /m4/libtool.m4
/m4/ltoptions.m4
/m4/ltsugar.m4
/m4/ltversion.m4
/m4/lt~obsolete.m4
/src/vcc_if.c /src/vcc_if.c
/src/vcc_if.h /src/vcc_if.h
......
...@@ -19,6 +19,12 @@ if test "x$ac_cv_prog_cc_c99" = xno; then ...@@ -19,6 +19,12 @@ if test "x$ac_cv_prog_cc_c99" = xno; then
fi fi
AC_PROG_CPP 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]) LT_INIT([disable-static])
AC_PROG_INSTALL AC_PROG_INSTALL
AC_PROG_LIBTOOL 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