Annotation of embedaddon/php/ext/sqlite/config.w32, revision 1.1.1.1
1.1 misho 1: // $Id: config.w32 242949 2007-09-26 15:44:16Z cvs2svn $
2: // vim:ft=javascript
3:
4: ARG_WITH("sqlite", "SQLite support", "no");
5:
6: if (PHP_SQLITE != "no") {
7: copy_and_subst(configure_module_dirname + "\\libsqlite\\src\\sqlite.h.in",
8: configure_module_dirname + "\\libsqlite\\src\\sqlite.h", new Array(
9: "--VERS--", file_get_contents(configure_module_dirname + "\\libsqlite\\VERSION").replace(new RegExp("[\r\n]+", "g"), ""),
10: "--ENCODING--", "ISO8859"
11: ));
12:
13: FSO.CopyFile(configure_module_dirname + "\\libsqlite\\src\\sqlite_config.w32.h",
14: configure_module_dirname + "\\libsqlite\\src\\config.h");
15:
16: if (FSO.FileExists(configure_module_dirname + "\\..\\pdo\\php_pdo_driver.h")) {
17: PHP_SQLITE2_PDO_CFLAGS = " /DPHP_SQLITE2_HAVE_PDO=1 /I " + configure_module_dirname + "\\..";
18: ADD_EXTENSION_DEP('sqlite', 'pdo')
19: } else {
20: PHP_SQLITE2_PDO_CFLAGS = "";
21: }
22:
23: EXTENSION("sqlite", "sqlite.c sess_sqlite.c pdo_sqlite2.c", null,
24: "/D PHP_SQLITE_EXPORTS /I " + configure_module_dirname + "/libsqlite/src" +
25: PHP_SQLITE2_PDO_CFLAGS);
26:
27:
28: ADD_SOURCES(configure_module_dirname + "/libsqlite/src", "opcodes.c parse.c encode.c \
29: auth.c btree.c build.c delete.c expr.c func.c hash.c insert.c \
30: main.c os.c pager.c printf.c random.c select.c table.c tokenize.c \
31: update.c util.c vdbe.c attach.c btree_rb.c pragma.c vacuum.c \
32: copy.c where.c trigger.c vdbeaux.c date.c", "sqlite");
33:
34: AC_DEFINE("HAVE_SQLITE", 1, "SQLite support");
35: if (!PHP_SQLITE_SHARED) {
36: ADD_DEF_FILE(configure_module_dirname + "\\php_sqlite.def");
37: }
38: ADD_EXTENSION_DEP('sqlite', 'spl')
39: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>