File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
pdo_dblib /
config.w32
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:41 2012 UTC (12 years, 5 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
// $Id: config.w32,v 1.1.1.2 2012/05/29 12:34:41 misho Exp $
// vim:ft=javascript
ARG_WITH("pdo-dblib", "freetds dblib (Sybase, MS-SQL) support for PDO", "no");
if (PHP_PDO_DBLIB != "no") {
/* if they pointed us to a freetds dir, pick that up,
* otherwise we'll poke around and look for MSSQL libs */
if (CHECK_LIB("sybdb.lib", "pdo_dblib", PHP_PDO_DBLIB) &&
CHECK_HEADER_ADD_INCLUDE("sybfront.h", "CFLAGS_PDO_DBLIB",
PHP_PDO_DBLIB, null, null, true))
{
EXTENSION("pdo_dblib", "pdo_dblib.c dblib_driver.c dblib_stmt.c");
ADD_FLAG('CFLAGS_PDO_DBLIB', "/D PDO_DBLIB_FLAVOUR=\\\"freetds\\\"");
ADD_EXTENSION_DEP('pdo_dblib', 'pdo');
} else {
WARNING("pdo_dblib not enabled, libraries or headers not found")
}
}
ARG_WITH("pdo-mssql", "Native MS-SQL support for PDO", "no");
if (PHP_PDO_MSSQL != "no") {
/* if they pointed us to a freetds dir, pick that up,
* otherwise we'll poke around and look for MSSQL libs */
pdo_mssql_locations = new Array(
PHP_PDO_MSSQL,
"\\Program Files\\Microsoft SQL Server\\80",
"\\MSSQL8",
"\\MSSQL7",
PHP_PHP_BUILD + "\\MSSQL80"
);
PDO_DBLIB_FLAVOUR = 0;
if (CHECK_LIB("sybdb.lib", "pdo_mssql", PHP_PDO_MSSQL) &&
CHECK_HEADER_ADD_INCLUDE("sybfront.h", "CFLAGS_PDO_MSSQL",
PHP_PDO_MSSQL, null, null, true)) {
/* smells like FreeTDS (or maybe native sybase dblib) */
PDO_DBLIB_FLAVOUR = "freetds";
} else {
for (i = 0; i < pdo_mssql_locations.length; i++) {
if (CHECK_LIB("ntwdblib.lib", "pdo_mssql",
pdo_mssql_locations[i] + "\\DevTools\\Lib") &&
CHECK_HEADER_ADD_INCLUDE("sqlfront.h", "CFLAGS_PDO_MSSQL",
pdo_mssql_locations[i] + "\\DevTools\\Include",
null, null, true)) {
if (pdo_mssql_locations[i] == 'yes') {
PDO_DBLIB_FLAVOUR = 70;
} else {
pdo_mssql_locations[i].match(new RegExp("(\\d)"));
PDO_DBLIB_FLAVOUR = RegExp.$1 + 0;
}
break;
}
}
}
if (PDO_DBLIB_FLAVOUR != 0) {
EXTENSION("pdo_mssql", "pdo_dblib.c dblib_driver.c dblib_stmt.c", null, null, null, "ext\\pdo_mssql");
if (PDO_DBLIB_FLAVOUR != "freetds") {
ADD_FLAG("CFLAGS_PDO_MSSQL", "/DPHP_DBLIB_IS_MSSQL=1 /DDBNTWIN32=1 /DMSSQL" + PDO_DBLIB_FLAVOUR + "0=1 /DMSSQL_VERSION=\\\"" + PDO_DBLIB_FLAVOUR + ".0\\\"");
ADD_FLAG("CFLAGS_PDO_MSSQL", "/DPDO_DBLIB_IS_MSSQL=" + PDO_DBLIB_FLAVOUR);
PDO_DBLIB_FLAVOUR = "MSSQL_" + PDO_DBLIB_FLAVOUR;
}
ADD_FLAG('CFLAGS_PDO_MSSQL', "/D PDO_DBLIB_FLAVOUR=\\\"" + PDO_DBLIB_FLAVOUR + "\\\"");
ADD_EXTENSION_DEP('pdo_mssql', 'pdo');
} else {
WARNING("pdo_mssql not enabled, libraries or headers not found")
}
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>