diff options
author | Wez Furlong <wez@php.net> | 2005-03-12 01:14:21 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-03-12 01:14:21 +0000 |
commit | cbcd4271d20e116b3519cf5d519eaf580456240f (patch) | |
tree | 826f7dcb614e8b53d658e247f48ae7a8fb5766db /ext/sqlite | |
parent | 5985098b98cc624fd02b992afd4f08331862ef05 (diff) | |
download | php-git-cbcd4271d20e116b3519cf5d519eaf580456240f.tar.gz |
build sqlite2 pdo driver on win32
Diffstat (limited to 'ext/sqlite')
-rw-r--r-- | ext/sqlite/config.w32 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/sqlite/config.w32 b/ext/sqlite/config.w32 index 9646cb17ad..ad14e66bf3 100644 --- a/ext/sqlite/config.w32 +++ b/ext/sqlite/config.w32 @@ -12,9 +12,17 @@ if (PHP_SQLITE != "no") { FSO.CopyFile(configure_module_dirname + "\\libsqlite\\src\\sqlite_config.w32.h", configure_module_dirname + "\\libsqlite\\src\\config.h"); + + if (FSO.FileExists(configure_module_dirname + "\\..\\pdo\\php_pdo_driver.h")) { + PHP_SQLITE2_PDO_CFLAGS = " /DPHP_SQLITE2_HAVE_PDO=1 /I " + configure_module_dirname + "\\.."; + ADD_EXTENSION_DEP('sqlite', 'pdo') + } else { + PHP_SQLITE2_PDO_CFLAGS = ""; + } EXTENSION("sqlite", "sqlite.c sess_sqlite.c pdo_sqlite2.c", null, - "/D PHP_SQLITE_EXPORTS /I " + configure_module_dirname + "/libsqlite/src"); + "/D PHP_SQLITE_EXPORTS /I " + configure_module_dirname + "/libsqlite/src" + + PHP_SQLITE2_PDO_CFLAGS); ADD_SOURCES(configure_module_dirname + "/libsqlite/src", "opcodes.c parse.c encode.c \ |