diff options
author | Andrey Hristov <andrey@php.net> | 2008-01-29 18:13:12 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2008-01-29 18:13:12 +0000 |
commit | 508841bb5c1a995c1b87f59e5b5383c4d5a5ce32 (patch) | |
tree | 09606c7163dce16b25f1ae75f9245bb09853d914 /ext/mysqlnd/config9.m4 | |
parent | ea88b098d92e3a05e126ebe1e6f015e33b85b59c (diff) | |
download | php-git-508841bb5c1a995c1b87f59e5b5383c4d5a5ce32.tar.gz |
Fix the build, add a missing file
Diffstat (limited to 'ext/mysqlnd/config9.m4')
-rw-r--r-- | ext/mysqlnd/config9.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/mysqlnd/config9.m4 b/ext/mysqlnd/config9.m4 index 619685f417..83b3b019e8 100644 --- a/ext/mysqlnd/config9.m4 +++ b/ext/mysqlnd/config9.m4 @@ -2,6 +2,11 @@ dnl dnl $Id$ dnl config.m4 for mysqlnd driver + +PHP_ARG_ENABLE(mysqlnd_threading, whether to enable threaded fetch in mysqlnd, +[ --enable-mysqlnd-threading mysqlnd: Enable threaded fetch], no, no) + + dnl If some extension uses mysqlnd it will get compiled in PHP core if test "$PHP_MYSQLND_ENABLED" = "yes"; then mysqlnd_sources="mysqlnd.c mysqlnd_charset.c mysqlnd_wireprotocol.c \ @@ -16,6 +21,13 @@ if test "$PHP_MYSQLND_ENABLED" = "yes"; then PHP_INSTALL_HEADERS([$ext_builddir/php_mysqlnd_config.h]) AC_DEFINE([HAVE_MYSQLND], 1, [Whether mysqlnd is enabled]) + dnl Windows uses config.w32 thus this code is safe for now + if test "$PHP_MYSQLND_THREADING" = "yes"; then + PHP_BUILD_THREAD_SAFE + AC_DEFINE([MYSQLND_THREADED], 1, [Whether mysqlnd threading is enabled]) + fi + + dnl This creates a file so it has to be after above macros PHP_CHECK_TYPES([int8 uint8 int16 uint16 int32 uint32 uchar ulong int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t], [ $ext_builddir/php_mysqlnd_config.h |