summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2009-03-05 17:29:38 +0000
committerjdolecek <jdolecek@pkgsrc.org>2009-03-05 17:29:38 +0000
commita992cf18bb321fabf57595d8708f1ae7df6c0c4a (patch)
tree5ba74f41f80f50b89947712b06aae6c49341e713 /databases
parent22ab4a3233855e4c65f0fd4d488f93645fb17b01 (diff)
downloadpkgsrc-a992cf18bb321fabf57595d8708f1ae7df6c0c4a.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)