From: foobar Date: Wed, 20 Mar 2002 00:40:53 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.2.0RC1~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5336747ecee26c6fe82d5c7972d39a2ec0a7f292;p=php MFH --- diff --git a/ext/fdf/config.m4 b/ext/fdf/config.m4 index b05770eeb6..6b4d72737d 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 f099662ad7..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