Lines 13-23
Link Here
|
13 |
if test "$PHP_PDO_DBLIB" = "yes"; then |
13 |
if test "$PHP_PDO_DBLIB" = "yes"; then |
14 |
for i in /usr/local /usr; do |
14 |
for i in /usr/local /usr; do |
15 |
if test -f $i/include/tds.h; then |
15 |
if test -f $i/include/sybdb.h; then |
16 |
PDO_FREETDS_INSTALLATION_DIR=$i |
16 |
PDO_FREETDS_INSTALLATION_DIR=$i |
17 |
PDO_FREETDS_INCLUDE_DIR=$i/include |
17 |
PDO_FREETDS_INCLUDE_DIR=$i/include |
18 |
break |
18 |
break |
19 |
elif test -f $i/include/freetds/tds.h; then |
19 |
elif test -f $i/include/freetds/sybdb.h; then |
20 |
PDO_FREETDS_INSTALLATION_DIR=$i |
20 |
PDO_FREETDS_INSTALLATION_DIR=$i |
21 |
PDO_FREETDS_INCLUDE_DIR=$i/include/freetds |
21 |
PDO_FREETDS_INCLUDE_DIR=$i/include/freetds |
22 |
break; |
22 |
break; |
Lines 30-39
Link Here
|
30 |
elif test "$PHP_PDO_DBLIB" != "no"; then |
30 |
elif test "$PHP_PDO_DBLIB" != "no"; then |
31 |
if test -f $PHP_PDO_DBLIB/include/tds.h; then |
31 |
if test -f $PHP_PDO_DBLIB/include/sybdb.h; then |
32 |
PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB |
32 |
PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB |
33 |
PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include |
33 |
PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include |
34 |
elif test -f $PHP_PDO_DBLIB/include/freetds/tds.h; then |
34 |
elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then |
35 |
PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB |
35 |
PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB |
36 |
PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds |
36 |
PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds |
37 |
else |
37 |
else |
Lines 45-52
Link Here
|
45 |
PHP_LIBDIR=lib |
45 |
PHP_LIBDIR=lib |
46 |
fi |
46 |
fi |
47 |
if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.so"; then |
47 |
if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then |
48 |
AC_MSG_ERROR(Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.[a|so]) |
48 |
AC_MSG_ERROR(Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.[a|so]) |
49 |
fi |
49 |
fi |
50 |
PHP_ADD_INCLUDE($PDO_FREETDS_INCLUDE_DIR) |
50 |
PHP_ADD_INCLUDE($PDO_FREETDS_INCLUDE_DIR) |