summaryrefslogtreecommitdiff
path: root/ext/fdf
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-10-23 02:46:09 +0000
committerfoobar <sniper@php.net>2002-10-23 02:46:09 +0000
commitd313b3c2855052c6b87bd67ddaa2f794fd112d0e (patch)
tree9860bd1895e16a3794fb83b61125dc2a4d73cda9 /ext/fdf
parentd253364a13ac863772ff3e051a9376c58929f06f (diff)
downloadphp-git-d313b3c2855052c6b87bd67ddaa2f794fd112d0e.tar.gz
- No tabs, no echoing, no unnecessary code
Diffstat (limited to 'ext/fdf')
-rw-r--r--ext/fdf/config.m410
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/fdf/config.m4 b/ext/fdf/config.m4
index a1beb573cc..31d3e2d70f 100644
--- a/ext/fdf/config.m4
+++ b/ext/fdf/config.m4
@@ -28,7 +28,6 @@ if test "$PHP_FDFTK" != "no"; then
for dir in $PHP_FDFTK; do
for subdir in include HeadersAndLibraries/headers; do
- echo checking for $dir/$subdir/FdfTk.h
if test -r $dir/$subdir/FdfTk.h; then
FDFTK_DIR=$dir
FDFTK_H_DIR=$dir/$subdir
@@ -54,7 +53,7 @@ if test "$PHP_FDFTK" != "no"; then
if test -r $dir/lib$file.so; then
PHP_CHECK_LIBRARY($file, FDFOpen, [FDFLIBRARY=$file], [], [-L$dir -lm])
if test "$FDFLIBRARY"; then
- PHP_CHECK_LIBRARY($file, FDFGetFDFVersion, [HAVE_FDFTK_5=yes], [], [-L$dir -lm])
+ PHP_CHECK_LIBRARY($file, FDFGetFDFVersion, [AC_DEFINE(HAVE_FDFTK_5,1,[ ])], [], [-L$dir -lm])
FDFTK_LIB_DIR=$dir
break 2
fi
@@ -66,12 +65,9 @@ if test "$PHP_FDFTK" != "no"; then
AC_MSG_ERROR(no usable fdf library found)
fi
- AC_DEFINE(HAVE_FDFLIB,1,[ ])
- if test "$HAVE_FDFTK_5" = "yes"; then
- AC_DEFINE(HAVE_FDFTK_5,1,[ ])
- fi
PHP_ADD_LIBRARY_WITH_PATH($FDFLIBRARY, $FDFTK_LIB_DIR, FDFTK_SHARED_LIBADD)
- PHP_SUBST(FDFTK_SHARED_LIBADD)
PHP_NEW_EXTENSION(fdf, fdf.c, $ext_shared)
+ PHP_SUBST(FDFTK_SHARED_LIBADD)
+ AC_DEFINE(HAVE_FDFLIB,1,[ ])
fi