diff options
author | Scott MacVicar <scottmac@php.net> | 2009-01-12 19:03:07 +0000 |
---|---|---|
committer | Scott MacVicar <scottmac@php.net> | 2009-01-12 19:03:07 +0000 |
commit | dba82da304ebd4ef594df9153bdcf6dff82df962 (patch) | |
tree | 46b39106817429b1794c27701621dc38f7b5856e /ext/pdo_sqlite | |
parent | 4bdf8de92928110a927f05e29569c2078a1bb230 (diff) | |
download | php-git-dba82da304ebd4ef594df9153bdcf6dff82df962.tar.gz |
MFH Fix building of pdo_sqlite without sqlite3
Diffstat (limited to 'ext/pdo_sqlite')
-rw-r--r-- | ext/pdo_sqlite/config.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pdo_sqlite/config.m4 b/ext/pdo_sqlite/config.m4 index b444c9624c..fb06fd79e3 100644 --- a/ext/pdo_sqlite/config.m4 +++ b/ext/pdo_sqlite/config.m4 @@ -81,6 +81,10 @@ if test "$PHP_PDO_SQLITE" != "no"; then other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1" + if test "$PHP_SQLITE3" != "yes"; then + PHP_ADD_SOURCES(PHP_EXT_DIR(sqlite3), libsqlite/sqlite3.c) + fi + PHP_NEW_EXTENSION(pdo_sqlite, $php_pdo_sqlite_sources_core, $ext_shared,,-DPDO_SQLITE_BUNDLED=1 $other_flags $threadsafe_flags -I$pdo_inc_path) |