From: foobar Date: Wed, 20 Mar 2002 00:39:28 +0000 (+0000) Subject: - Fix this without breaking BC X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~1203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8271cc71ebc57845156db353506e23c25ac68cb;p=php - Fix this without breaking BC --- diff --git a/ext/fdf/config.m4 b/ext/fdf/config.m4 index c1ef0a81a3..8c2e7a0096 100644 --- a/ext/fdf/config.m4 +++ b/ext/fdf/config.m4 @@ -8,7 +8,10 @@ PHP_ARG_WITH(fdftk, for FDF support, if test "$PHP_FDFTK" != "no"; then for i in /usr /usr/local $PHP_FDFTK; do - if test -r $i/include/FdfTk.h -o -r $i/include/fdftk.h; then + if test -r $i/include/FdfTk.h; then + FDFTK_DIR=$i + elif test -r $i/include/fdftk.h; then + AC_DEFINE(HAVE_FDFTK_H_LOWER,1,[ ]) FDFTK_DIR=$i fi done diff --git a/ext/fdf/php_fdf.h b/ext/fdf/php_fdf.h index 2fb605fa0f..54eab5d25b 100644 --- a/ext/fdf/php_fdf.h +++ b/ext/fdf/php_fdf.h @@ -27,7 +27,11 @@ #define UNIX_DEV #endif -#include +#if HAVE_FDFTK_H_LOWER +# include +#else +# include +#endif extern zend_module_entry fdf_module_entry; #define fdf_module_ptr &fdf_module_entry