]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
configure: Utilize tiffcp exit value
authorAidan Van Dyk <aidan@ifax.com>
Fri, 11 May 2007 15:02:07 +0000 (15:02 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Fri, 11 May 2007 15:02:07 +0000 (15:02 +0000)
From Lee:
|  commit 6a8ca65e979bf39f16461e13b221ad6768e22b5b
|  Author: Lee Howard <faxguy@howardsilvan.com>
|  Date:   Thu Feb 15 23:36:39 2007 +0000
|
|    Utilize tiffcp exit value instead of output in configure check for
|    JBIG.

configure

index 14e3fe73822efae1224a6c71c2d4a02f0030a14f..71f09d5beb7180e6c245153f711cdfa2e7ee2401 100755 (executable)
--- a/configure
+++ b/configure
@@ -3252,8 +3252,9 @@ fi
 HAVE_JBIGTIFF="/*#define HAVE_JBIGTIFF 1*/"
 if [ "$DISABLE_JBIG" != "yes" ]; then
     Note "Checking JBIG-in-TIFF conversion support."
-    if [ -z "`$TIFFBIN/tiffcp -c g4 misc/jbig.tif misc/foo.tif 2>&1`" ]; then
-       $TIFFBIN/tiffcp misc/jbig.tif misc/foo.tif
+    $TIFFBIN/tiffcp -c g4 misc/jbig.tif misc/foo.tif > /dev/null 2>&1
+    if [ $? = 0 ]; then
+       $TIFFBIN/tiffcp misc/jbig.tif misc/foo.tif > /dev/null
        if [ -n "`$TIFFBIN/tiffinfo misc/foo.tif | grep 'Fax DCS'`" ]; then
            HAVE_JBIGTIFF="#define HAVE_JBIGTIFF 1"
            Note "JBIG-in-TIFF conversion support found."