]> granicus.if.org Git - php/commitdiff
Build the bundled mysqlclient library thread-safe in thread-safe mode.
authorSascha Schumann <sas@php.net>
Thu, 30 Mar 2000 19:02:52 +0000 (19:02 +0000)
committerSascha Schumann <sas@php.net>
Thu, 30 Mar 2000 19:02:52 +0000 (19:02 +0000)
configure.in

index 0ffc310c2621c4639aa6a8a923038e3a4936d560..238d789e6aecd15057810411f81c3a1cffe1e93e 100644 (file)
@@ -713,6 +713,12 @@ EOF
   chmod +x meta_ccld
 fi
 
+dnl This will go away, if we have a facility to run per-extension code
+dnl after the thread_safety decision was done
+if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then
+  CPPFLAGS="$CPPFLAGS -DTHREAD=1"
+fi
+
 AM_PROG_LIBTOOL
 if test "$enable_debug" != "yes"; then
   AM_SET_LIBTOOL_VARIABLE([--silent])