summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-11-13 12:41:09 +0000
committerSascha Schumann <sas@php.net>1999-11-13 12:41:09 +0000
commit3dc7757a99321d92fbe2e6a0cd2453a335d411f8 (patch)
treedae416f789f808e2fdaa972fb4c1ef3b2c848f5c /configure.in
parent7dd7f38003d5a9a94dcee717b24b8d461118c9c6 (diff)
downloadphp-git-3dc7757a99321d92fbe2e6a0cd2453a335d411f8.tar.gz
Remove the extra INCLUDES line from most automake Mafiles. This is not
necessary, because we can change the value of INCLUDES globally in one place (configure.in). Also add two defines in thread-safe mode (_REENTRANT and POSIX_PTHREAD_SEMANTICS)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index cbf3489673..89e354d534 100644
--- a/configure.in
+++ b/configure.in
@@ -154,7 +154,7 @@ if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then
LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
fi
-INCLUDES="-I\$(top_builddir)/libzend -I\$(top_builddir)/TSRM"
+INCLUDES="-I\$(top_builddir)/libzend -I\$(top_srcdir) -I\$(top_srcdir)/libzend"
AC_SUBST(INCLUDES)
AC_CHECK_LIB(nsl, gethostname, [
@@ -641,6 +641,8 @@ AC_ARG_ENABLE(thread-safety,
TSRM_LIB='TSRM/libtsrm.la'
TSRM_DIR=TSRM
AC_DEFINE(ZTS)
+ INCLUDES="$INCLUDES -I$\(top_builddir)/TSRM"
+ CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)