// $Id$ // // Windows configuration file for Berkeley DB extension for PHP // NOTE: Instructions are for a Release build. // 1. If the library name below (e.g. libdbXX.lib) does not match the // current version, replace it with the correct name. // 2. replace with the path to a built, release version of libdbXX.lib // e.g. C:/Programs/db-5.x.y/build_windows/Release // 3. replace with the path to a directory containing db.h, // e.g. C:/Programs/db-5.x.y/build_windows // 4. Instructions for building PHP from source must be used to build this module. See // http://us2.php.net/install.windows.building // // When using buildconf.js to generating the configure.js script, be sure to add // --add-modules-dir= // This module can then be enabled/built using the following options to configure.js: // --enable-db4=yes (build into php.exe) or // --enable-db4=shared (built as php_db4.dll extension module) // ARG_ENABLE("db4","Berkeley DB support","no,shared"); if (PHP_DB4 != "no") { EXTENSION("db4", "db4.cpp", null, "", "php_db4.dll"); CHECK_LIB("libdb51.lib", "db4", ";"); CHECK_HEADER_ADD_INCLUDE("db.h", "CFLAGS_DB4", ";../db4;"); ADD_FLAG("CFLAGS_DB4", "/EHsc"); }