]> git.pld-linux.org Git - packages/php-pecl-mdbtools.git/blame - php-pecl-mdbtools-paths.patch
- fix obsoletes version
[packages/php-pecl-mdbtools.git] / php-pecl-mdbtools-paths.patch
CommitLineData
5d044333
AG
1--- php-pecl-mdbtools-1.0.0/mdbtools-1.0.0/config.m4~ 2007-11-27 16:13:18.000000000 +0100
2+++ php-pecl-mdbtools-1.0.0/mdbtools-1.0.0/config.m4 2009-01-11 15:16:43.231780402 +0100
3@@ -26,24 +26,18 @@
4 LDFLAGS="$CFLAGS $GLIB_LIBS"
5
6
7-
8- if test -r "$PHP_MDBTOOLS/include/mdbtools.h"; then
9- PHP_MDBTOOLS_DIR="$PHP_MDBTOOLS"
10- else
11- AC_MSG_CHECKING(for mdbtools in default path)
12- for i in /usr /usr/local; do
13- if test -r "$i/include/mdbtools.h"; then
14- PHP_MDBTOOLS_DIR=$i
15- AC_MSG_RESULT(found in $i)
16- break
17- fi
18- done
19- if test "x" = "x$PHP_MDBTOOLS_DIR"; then
20- AC_MSG_ERROR(not found)
21+ AC_MSG_CHECKING(for mdbtools header files)
22+ for dir in $PHP_MDBTOOLS /usr/include /usr/include/mdb /usr/local/include /usr/local/include/mdb; do
23+ if test -r "$dir/mdbtools.h"; then
24+ AC_MSG_RESULT(found in $dir)
25+ PHP_MDBTOOLS_DIR=$dir
26 fi
27- fi
28+ done
29+ if test "x" = "x$PHP_MDBTOOLS_DIR"; then
30+ AC_MSG_ERROR(not found)
31+ fi
32
33- PHP_ADD_INCLUDE($PHP_MDBTOOLS_DIR/include)
34+ PHP_ADD_INCLUDE($PHP_MDBTOOLS_DIR)
35
36 export OLD_CPPFLAGS="$CPPFLAGS"
37 export CPPFLAGS="$CPPFLAGS $INCLUDES -DHAVE_MDBTOOLS"
38@@ -76,7 +76,7 @@
39 PHP_NEW_EXTENSION(mdbtools, mdbtools.c , $ext_shared)
40 AC_MSG_CHECKING([whether mdb_open() takes one or two parameters])
41 OLD_CFLAGS=$CFLAGS
42- CFLAGS="$CFLAGS -I$PHP_MDBTOOLS_DIR/include"
43+ CFLAGS="$CFLAGS -I$PHP_MDBTOOLS_DIR"
44 AC_TRY_COMPILE([#include <mdbtools.h>], [mdb_open("foo", MDB_NOFLAGS);], RESULT="two", RESULT="one")
45 if test "$RESULT" = "two"
46 then
47@@ -87,7 +87,7 @@
48
49 AC_MSG_CHECKING([whether mdb_bind_column() takes three or four parameters])
50 OLD_CFLAGS=$CFLAGS
51- CFLAGS="$CFLAGS -I$PHP_MDBTOOLS_DIR/include"
52+ CFLAGS="$CFLAGS -I$PHP_MDBTOOLS_DIR"
53 AC_TRY_COMPILE([#include <mdbtools.h>], [mdb_bind_column(NULL, 1, NULL, NULL);], RESULT="four", RESULT="three")
54 if test "$RESULT" = "four"
55 then
This page took 0.031677 seconds and 4 git commands to generate.