HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

HylaFAX 4.0pl2: libtiff needs to link against libz



At least on my machine (Linux with kernel version 2.0.36, with various
libraries that I've compiled and installed myself), the TIFF libraries
depend on the Z libraries.  Therefore, in order to make the HylaFAX
configure script work properly, I had to move the block that checks
for TIFF support after the block that checks for Z support, and then
add the Z libraries to the link line when compiling the TIFF test
program.  I.e., here's a patch:

--- configure	1998/11/30 20:11:41	1.3
+++ configure	1998/11/30 20:30:13	1.4
@@ -2807,65 +2807,6 @@
 fi
 Note "Done checking system libraries."
 
-Note ""
-Note "Checking TIFF support."
-#
-# Verify library is compatible.
-#
-cat>t.c<<EOF
-#include "tiffio.h"
-main()
-{
-    if (TIFFLIB_VERSION < 19960307) {     /* check include file version */
-	printf("old include files: version %u\n", TIFFLIB_VERSION);
-        exit(-1);
-    }
-    if (strncmp(TIFFGetVersion(), "LIBTIFF, Version 3.4", 20) != 0) {
-	printf("old library: version %s\n", TIFFGetVersion());
-	exit(-1);
-    } else
-	exit(0);
-}
-EOF
-capture cat t.c
-if runMake t "t:; \${CC} \${CVERSION} -I${OTIFFINC} t.c ${LIBTIFF} ${MACHDEPLIBS}" && capture ./a.out; then
-    Note "Using TIFF include files from $OTIFFINC"
-    Note "Using pre-built TIFF library $LIBTIFF"
-else
-    cat 1>&2 <<EOF
-
-Incompatible/missing TIFF Library.
-
-Compilation or execution of the following test program failed:
-
-----------------------------------------------------------
-EOF
-    cat t.c 1>&2
-    cat 1>&2 <<EOF
-----------------------------------------------------------
-
-With:
-
-TIFFINC=${OTIFFINC}
-LIBTIFF=${LIBTIFF}
-
-The above program checks the version of the TIFF library to ensure it
-is suitable for use with HylaFAX.  HylaFAX ${VERSION} requires a recent
-TIFF software distribution; one distributed March 7, 1996 or later.  If
-you do not have up to date TIFF software on your system then you can
-retrieve it from the location where you obtained this software.
-Otherwise, if you have the right software, verify that you have the
-TIFFINC and LIBTIFF configuration parameters set correctly for your
-system (see above) and that any environment variables are setup that
-are needed to locate a libtiff DSO at runtime (e.g. LD_LIBRARY_PATH).
-Also be sure that any relative pathnames are made relative to the top
-of the build area.
-
-EOF
-    boom
-fi
-Note "Done checking TIFF support."
-
 if [ $ZLIB = no ]; then
     Note ""
     Note "Checking ZLIB support."
@@ -2926,6 +2867,65 @@
     fi
     Note "Done checking ZLIB support."
 fi
+
+Note ""
+Note "Checking TIFF support."
+#
+# Verify library is compatible.
+#
+cat>t.c<<EOF
+#include "tiffio.h"
+main()
+{
+    if (TIFFLIB_VERSION < 19960307) {     /* check include file version */
+	printf("old include files: version %u\n", TIFFLIB_VERSION);
+        exit(-1);
+    }
+    if (strncmp(TIFFGetVersion(), "LIBTIFF, Version 3.4", 20) != 0) {
+	printf("old library: version %s\n", TIFFGetVersion());
+	exit(-1);
+    } else
+	exit(0);
+}
+EOF
+capture cat t.c
+if runMake t "t:; \${CC} \${CVERSION} -I${OTIFFINC} t.c ${LIBTIFF} ${LIBZ} ${MACHDEPLIBS}" && capture ./a.out; then
+    Note "Using TIFF include files from $OTIFFINC"
+    Note "Using pre-built TIFF library $LIBTIFF"
+else
+    cat 1>&2 <<EOF
+
+Incompatible/missing TIFF Library.
+
+Compilation or execution of the following test program failed:
+
+----------------------------------------------------------
+EOF
+    cat t.c 1>&2
+    cat 1>&2 <<EOF
+----------------------------------------------------------
+
+With:
+
+TIFFINC=${OTIFFINC}
+LIBTIFF=${LIBTIFF}
+
+The above program checks the version of the TIFF library to ensure it
+is suitable for use with HylaFAX.  HylaFAX ${VERSION} requires a recent
+TIFF software distribution; one distributed March 7, 1996 or later.  If
+you do not have up to date TIFF software on your system then you can
+retrieve it from the location where you obtained this software.
+Otherwise, if you have the right software, verify that you have the
+TIFFINC and LIBTIFF configuration parameters set correctly for your
+system (see above) and that any environment variables are setup that
+are needed to locate a libtiff DSO at runtime (e.g. LD_LIBRARY_PATH).
+Also be sure that any relative pathnames are made relative to the top
+of the build area.
+
+EOF
+    boom
+fi
+Note "Done checking TIFF support."
 
 # NB: only check if we have the MLA tools
 if [ -f $SRCDIR/MLA/VERSION -a $DBLIB = no ]; then




Project hosted by iFAX Solutions