summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-03-20 00:39:28 +0000
committerfoobar <sniper@php.net>2002-03-20 00:39:28 +0000
commite8271cc71ebc57845156db353506e23c25ac68cb (patch)
treec896ab5a9c1ec98134b955c6d5e3e733a946f4a3
parent7990d742e5fc32d5b1c9c49b7aab2e41acd75d0f (diff)
downloadphp-git-e8271cc71ebc57845156db353506e23c25ac68cb.tar.gz
- Fix this without breaking BC
-rw-r--r--ext/fdf/config.m45
-rw-r--r--ext/fdf/php_fdf.h6
2 files changed, 9 insertions, 2 deletions
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 <fdftk.h>
+#if HAVE_FDFTK_H_LOWER
+# include <fdftk.h>
+#else
+# include <FdfTk.h>
+#endif
extern zend_module_entry fdf_module_entry;
#define fdf_module_ptr &fdf_module_entry