Permalink
Browse files

- MFH: Fixed bug #44991 (Compile Failure With freetds0.82) (patch by …

…jklowden at freetds dot org)
  • Loading branch information...
1 parent 892fb86 commit e1443682af1cf5647f24fa1031f462870b2eafde @felipensp felipensp committed Oct 4, 2008
Showing with 6 additions and 6 deletions.
  1. +6 −6 ext/mssql/config.m4
View
@@ -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,19 +27,19 @@ 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
AC_MSG_ERROR(Directory $PHP_MSSQL is not a FreeTDS installation directory)
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)

0 comments on commit e144368

Please sign in to comment.