summaryrefslogtreecommitdiff
path: root/ext/mssql
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-10-04 12:55:21 +0000
committerFelipe Pena <felipe@php.net>2008-10-04 12:55:21 +0000
commite1443682af1cf5647f24fa1031f462870b2eafde (patch)
tree928de1dd1650b03e00c8cf675cf2dfe0972b2afc /ext/mssql
parent892fb867c8cd0ee0ea9e42d611a9430c06c757e6 (diff)
downloadphp-git-e1443682af1cf5647f24fa1031f462870b2eafde.tar.gz
- MFH: Fixed bug #44991 (Compile Failure With freetds0.82) (patch by jklowden at freetds dot org)
Diffstat (limited to 'ext/mssql')
-rw-r--r--ext/mssql/config.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/mssql/config.m4 b/ext/mssql/config.m4
index 36a1feb75b..4231bb360a 100644
--- a/ext/mssql/config.m4
+++ b/ext/mssql/config.m4
@@ -10,11 +10,11 @@ if test "$PHP_MSSQL" != "no"; then
if test "$PHP_MSSQL" = "yes"; then
for i in /usr/local /usr; do
- if test -f $i/include/tds.h; then
+ if test -f $i/include/sybdb.h; then
FREETDS_INSTALLATION_DIR=$i
FREETDS_INCLUDE_DIR=$i/include
break
- elif test -f $i/include/freetds/tds.h; then
+ elif test -f $i/include/freetds/sybdb.h; then
FREETDS_INSTALLATION_DIR=$i
FREETDS_INCLUDE_DIR=$i/include/freetds
break
@@ -27,10 +27,10 @@ if test "$PHP_MSSQL" != "no"; then
elif test "$PHP_MSSQL" != "no"; then
- if test -f $PHP_MSSQL/include/tds.h; then
+ if test -f $PHP_MSSQL/include/sybdb.h; then
FREETDS_INSTALLATION_DIR=$PHP_MSSQL
FREETDS_INCLUDE_DIR=$PHP_MSSQL/include
- elif test -f $PHP_MSSQL/include/freetds/tds.h; then
+ elif test -f $PHP_MSSQL/include/freetds/sybdb.h; then
FREETDS_INSTALLATION_DIR=$PHP_MSSQL
FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds
else
@@ -38,8 +38,8 @@ if test "$PHP_MSSQL" != "no"; then
fi
fi
- if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.so"; then
- AC_MSG_ERROR(Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.[a|so])
+ if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
+ AC_MSG_ERROR(Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.[a|so])
fi
PHP_ADD_INCLUDE($FREETDS_INCLUDE_DIR)