summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2009-03-05 17:29:38 +0000
committerjdolecek <jdolecek>2009-03-05 17:29:38 +0000
commit5d783a4ec054c09b18daa9c312bcd7893398fe61 (patch)
tree5ba74f41f80f50b89947712b06aae6c49341e713 /databases
parent3f0538f9ffd60820b544b0efac776ba2843a5052 (diff)
downloadpkgsrc-5d783a4ec054c09b18daa9c312bcd7893398fe61.tar.gz
make build with FreeTDS 0.82 - seems tds.h and libtds.* are no longer
instealled in the new FreeTDS version the configure test here now matches test done by databases/php-mssql module
Diffstat (limited to 'databases')
-rw-r--r--databases/php-pdo_dblib/patches/patch-aa28
1 files changed, 28 insertions, 0 deletions
diff --git a/databases/php-pdo_dblib/patches/patch-aa b/databases/php-pdo_dblib/patches/patch-aa
new file mode 100644
index 00000000000..07261d48fe1
--- /dev/null
+++ b/databases/php-pdo_dblib/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1 2009/03/05 17:29:38 jdolecek Exp $
+
+--- config.m4.orig 2009-03-05 18:16:44.000000000 +0100
++++ config.m4
+@@ -30,10 +30,10 @@ if test "$PHP_PDO_DBLIB" != "no"; then
+
+ elif test "$PHP_PDO_DBLIB" != "no"; then
+
+- if test -f $PHP_PDO_DBLIB/include/tds.h; then
++ if test -f $PHP_PDO_DBLIB/include/sybdb.h; then
+ PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
+ PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include
+- elif test -f $PHP_PDO_DBLIB/include/freetds/tds.h; then
++ elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then
+ PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
+ PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds
+ else
+@@ -45,8 +45,8 @@ if test "$PHP_PDO_DBLIB" != "no"; then
+ PHP_LIBDIR=lib
+ fi
+
+- if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.so"; then
+- AC_MSG_ERROR(Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.[a|so])
++ if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
++ AC_MSG_ERROR(Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.[a|so])
+ fi
+
+ PHP_ADD_INCLUDE($PDO_FREETDS_INCLUDE_DIR)