summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-03-18 23:24:15 +0000
committerfoobar <sniper@php.net>2005-03-18 23:24:15 +0000
commitfd03f4f056ba59c2fcacc83a04617f2a991c6428 (patch)
treec1341efa08ef3e7370795bdbd04054578b4b4cdc
parent23b3d1ca24792f0d0c2719d789e4016691e29346 (diff)
downloadphp-git-fd03f4f056ba59c2fcacc83a04617f2a991c6428.tar.gz
Added config.w32 (modified version, original by: Grant.Croker at ca dot com)
-rw-r--r--ext/ingres_ii/config.w3236
1 files changed, 36 insertions, 0 deletions
diff --git a/ext/ingres_ii/config.w32 b/ext/ingres_ii/config.w32
new file mode 100644
index 0000000000..b62a0023b2
--- /dev/null
+++ b/ext/ingres_ii/config.w32
@@ -0,0 +1,36 @@
+// $Id$
+// vim:ft=javascript ts=4 sw=4
+
+ARG_WITH("ingres", "Ingres support", "no");
+
+if (PHP_INGRES != "no") {
+ if (PHP_INGRES == "yes") {
+ // no path was supplied to --with-ingres
+ // Find Ingres header files and libaries through %II_SYSTEM%
+ var ii_system=WshShell.Environment("Process").Item("II_SYSTEM");
+
+ if (ii_system != "") {
+ if (CHECK_HEADER_ADD_INCLUDE("iiapi.h", "CFLAGS_INGRES", ii_system + "\\ingres\\files;" + PHP_INGRES) &&
+ CHECK_LIB("iilibapi.lib", "ingres", ii_system + "\\ingres\\lib;" + PHP_INGRES)) {
+ AC_DEFINE('HAVE_II', 1);
+ EXTENSION("ingres_ii","ii.c");
+ } else {
+ // ingres is missing files
+ WARNING("Ingres not enabled; libraries and headers not found in " + ii_system);
+ }
+ } else {
+ // %II_SYSTEM% is not set
+ WARNING("Ingres not enabled; %II_SYSTEM% has not been defined");
+ }
+ } else {
+ // path supplied to --with-ingres
+ if (CHECK_HEADER_ADD_INCLUDE("iiapi.h", "CFLAGS_INGRES", PHP_INGRES + "\\ingres\\files;") &&
+ CHECK_LIB("iilibapi.lib", "ingres", PHP_INGRES + "\\ingres\\lib;")) {
+ AC_DEFINE('HAVE_II', 1);
+ EXTENSION("ingres","ii.c");
+ } else {
+ // cannot find files in supplied path
+ WARNING("Ingres not enabled; libraries and headers not found");
+ }
+ }
+}