]> granicus.if.org Git - php/commitdiff
Back out the last change by Andi which caused TSRM to be always configured.
authorSascha Schumann <sas@php.net>
Sun, 4 Jun 2000 15:34:31 +0000 (15:34 +0000)
committerSascha Schumann <sas@php.net>
Sun, 4 Jun 2000 15:34:31 +0000 (15:34 +0000)
This needs to be refined. It caused breakage on several platforms.

configure.in

index b52bbf44ad487913b78c66359b5ca570230ee6c3..d535ebe7dadcc7f947f9974123efb0cf064511d5 100644 (file)
@@ -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"