1
diff -Naur php-5.2.6.orig/ext/mssql/config.m4 php-5.2.6/ext/mssql/config.m4
2
--- php-5.2.6.orig/ext/mssql/config.m4 2007-07-03 13:25:34.000000000 -0400
3
+++ php-5.2.6/ext/mssql/config.m4 2008-08-12 13:14:20.000000000 -0400
6
if test "$PHP_MSSQL" = "yes"; then
7
for i in /usr/local /usr; do
8
- if test -f $i/include/tds.h; then
9
+ if test -f $i/include/sybdb.h; then
10
FREETDS_INSTALLATION_DIR=$i
11
FREETDS_INCLUDE_DIR=$i/include
13
- elif test -f $i/include/freetds/tds.h; then
14
+ elif test -f $i/include/freetds/sybdb.h; then
15
FREETDS_INSTALLATION_DIR=$i
16
FREETDS_INCLUDE_DIR=$i/include/freetds
20
elif test "$PHP_MSSQL" != "no"; then
22
- if test -f $PHP_MSSQL/include/tds.h; then
23
+ if test -f $PHP_MSSQL/include/sybdb.h; then
24
FREETDS_INSTALLATION_DIR=$PHP_MSSQL
25
FREETDS_INCLUDE_DIR=$PHP_MSSQL/include
26
- elif test -f $PHP_MSSQL/include/freetds/tds.h; then
27
+ elif test -f $PHP_MSSQL/include/freetds/sybdb.h; then
28
FREETDS_INSTALLATION_DIR=$PHP_MSSQL
29
FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds
35
- if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.so"; then
36
- AC_MSG_ERROR(Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.[a|so])
37
+ if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
38
+ AC_MSG_ERROR(Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.[a|so])
41
PHP_ADD_INCLUDE($FREETDS_INCLUDE_DIR)
42
diff -Naur php-5.2.6.orig/ext/pdo_dblib/config.m4 php-5.2.6/ext/pdo_dblib/config.m4
43
--- php-5.2.6.orig/ext/pdo_dblib/config.m4 2007-07-03 13:25:34.000000000 -0400
44
+++ php-5.2.6/ext/pdo_dblib/config.m4 2008-08-12 13:14:20.000000000 -0400
46
if test "$PHP_PDO_DBLIB" = "yes"; then
48
for i in /usr/local /usr; do
49
- if test -f $i/include/tds.h; then
50
+ if test -f $i/include/sybdb.h; then
51
PDO_FREETDS_INSTALLATION_DIR=$i
52
PDO_FREETDS_INCLUDE_DIR=$i/include
54
- elif test -f $i/include/freetds/tds.h; then
55
+ elif test -f $i/include/freetds/sybdb.h; then
56
PDO_FREETDS_INSTALLATION_DIR=$i
57
PDO_FREETDS_INCLUDE_DIR=$i/include/freetds
61
elif test "$PHP_PDO_DBLIB" != "no"; then
63
- if test -f $PHP_PDO_DBLIB/include/tds.h; then
64
+ if test -f $PHP_PDO_DBLIB/include/sybdb.h; then
65
PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
66
PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include
67
- elif test -f $PHP_PDO_DBLIB/include/freetds/tds.h; then
68
+ elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then
69
PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
70
PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds
76
- if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.so"; then
77
- AC_MSG_ERROR(Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.[a|so])
78
+ if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
79
+ AC_MSG_ERROR(Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.[a|so])
82
PHP_ADD_INCLUDE($PDO_FREETDS_INCLUDE_DIR)