fmk             Tue Jan 18 01:32:12 2005 EDT

  Modified files:              
    /php-src/ext/mssql  config.w32 
  Log:
  add --with-freetds option to win32 build.
  TODO make it work when both mssql and freetds is included or bail out with an 
error
  
http://cvs.php.net/diff.php/php-src/ext/mssql/config.w32?r1=1.4&r2=1.5&ty=u
Index: php-src/ext/mssql/config.w32
diff -u php-src/ext/mssql/config.w32:1.4 php-src/ext/mssql/config.w32:1.5
--- php-src/ext/mssql/config.w32:1.4    Wed Dec  3 09:29:43 2003
+++ php-src/ext/mssql/config.w32        Tue Jan 18 01:32:11 2005
@@ -1,4 +1,4 @@
-// $Id: config.w32,v 1.4 2003/12/03 14:29:43 wez Exp $
+// $Id: config.w32,v 1.5 2005/01/18 06:32:11 fmk Exp $
 // vim:ft=javascript
 
 ARG_WITH("mssql", "mssql support", "no");
@@ -13,3 +13,17 @@
                WARNING("mssql not enabled; libraries and headers not found");
        }
 }
+
+ARG_WITH("freetds", "mssql support with freetds", "no");
+
+if (PHP_FREETDS == "yes") {
+       if (CHECK_LIB("sybdb.lib", "freetds", PHP_PHP_BUILD + "\\freetds") &&
+                       CHECK_HEADER_ADD_INCLUDE("sybfront.h", 
"CFLAGS_FREETDS", PHP_PHP_BUILD + "\\freetds;" + PHP_FREETDS)) {
+               EXTENSION("freetds", "php_mssql.c");
+               ADD_FLAG("CFLAGS_FREETDS", "/D DBNTWIN32=1 /D MSSQL70=1");
+               AC_DEFINE('HAVE_FREETDS', 1, 'Have MSSQL support');
+               ADD_FLAG("CFLAGS_FREETDS", "/D HAVE_MSSQL /D MSSQL_EXPORTS /D 
COMPILE_DL_MSSQL");
+       } else {
+               WARNING("freetds not enabled; libraries and headers not found");
+       }
+}

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to