diff options
author | Scott MacVicar <scottmac@php.net> | 2008-07-31 23:56:32 +0000 |
---|---|---|
committer | Scott MacVicar <scottmac@php.net> | 2008-07-31 23:56:32 +0000 |
commit | 06337965ae3eba6538bf1258565d6c83211347f5 (patch) | |
tree | 5f434e916054da2b1b36cb7ee4a5eeb434e9ddd3 /ext/pdo_sqlite | |
parent | 37c2511f8cb3f7c89a58e1dd259cbca735f84abc (diff) | |
download | php-git-06337965ae3eba6538bf1258565d6c83211347f5.tar.gz |
Still need defines so that sqlite3.h will match the lib that sqlite3 uses
Diffstat (limited to 'ext/pdo_sqlite')
-rw-r--r-- | ext/pdo_sqlite/config.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/config.m4 b/ext/pdo_sqlite/config.m4 index c3c1c22bce..b444c9624c 100644 --- a/ext/pdo_sqlite/config.m4 +++ b/ext/pdo_sqlite/config.m4 @@ -73,9 +73,17 @@ if test "$PHP_PDO_SQLITE" != "no"; then PHP_NEW_EXTENSION(pdo_sqlite, $php_pdo_sqlite_sources_core, $ext_shared,,-I$pdo_inc_path) else # use bundled libs + if test "$enable_maintainer_zts" = "yes"; then + threadsafe_flags="-DSQLITE_THREADSAFE=1" + else + threadsafe_flags="-DSQLITE_THREADSAFE=0" + fi + + other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1" + PHP_NEW_EXTENSION(pdo_sqlite, $php_pdo_sqlite_sources_core, - $ext_shared,,-DPDO_SQLITE_BUNDLED=1 -I$pdo_inc_path) + $ext_shared,,-DPDO_SQLITE_BUNDLED=1 $other_flags $threadsafe_flags -I$pdo_inc_path) PHP_SUBST(PDO_SQLITE_SHARED_LIBADD) PHP_ADD_EXTENSION_DEP(pdo_sqlite, sqlite3) |