From: Sascha Schumann Date: Sun, 4 Jun 2000 15:34:31 +0000 (+0000) Subject: Back out the last change by Andi which caused TSRM to be always configured. X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=950e7224ad3d027b0bab191b28ed1d84386b23f0;p=php Back out the last change by Andi which caused TSRM to be always configured. This needs to be refined. It caused breakage on several platforms. --- diff --git a/configure.in b/configure.in index b52bbf44ad..d535ebe7da 100644 --- a/configure.in +++ b/configure.in @@ -642,13 +642,11 @@ PHP_CONFIGURE_PART(Configuring Zend) LIBZEND_BASIC_CHECKS LIBZEND_OTHER_CHECKS - -TSRM_LIB='TSRM/libtsrm.la' -TSRM_DIR=TSRM -INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM" - if test "$ZEND_EXPERIMENTAL_ZTS" = "yes"; then + TSRM_LIB='TSRM/libtsrm.la' + TSRM_DIR=TSRM AC_DEFINE(ZTS) + INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM" PHP_THREAD_SAFETY=yes else PHP_THREAD_SAFETY=no @@ -656,21 +654,24 @@ fi if test "$abs_srcdir" != "$abs_builddir"; then INCLUDES="$INCLUDES -I\$(top_srcdir)/Zend" - INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM" + if test "$PHP_THREAD_SAFETY" = "yes"; then + INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM" + fi fi EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS" LIBS="" LDFLAGS="" - -PHP_CONFIGURE_PART(Configuring TSRM) -TSRM_BASIC_CHECKS -TSRM_OTHER_CHECKS -EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS" -EXTRA_LIBS="$EXTRA_LIBS $LIBS" -LDFLAGS="" -LIBS="" -PHP_OUTPUT(TSRM/Makefile) +if test "$PHP_THREAD_SAFETY" = "yes"; then + PHP_CONFIGURE_PART(Configuring TSRM) + TSRM_BASIC_CHECKS + TSRM_OTHER_CHECKS + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS" + EXTRA_LIBS="$EXTRA_LIBS $LIBS" + LDFLAGS="" + LIBS="" + PHP_OUTPUT(TSRM/Makefile) +fi phplibdir="`pwd`/modules"