$NetBSD: patch-ab,v 1.3 1999/07/07 20:47:43 tron Exp $

--- configure.orig	Sun Feb 28 05:56:14 1999
+++ configure	Wed Jul  7 22:40:36 1999
@@ -3630,7 +3630,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-ltiff  $LIBS"
+LIBS="-ltiff -ljpeg -lz $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 3636 "configure"
 #include "confdefs.h"
@@ -3666,7 +3666,7 @@
 if test "x$have_libtiff" = "x" ; then
         { echo "configure: error: Missing tiff library" 1>&2; exit 1; }        
 else
-	LIBS="$LIBS -ltiff"
+	LIBS="$LIBS -ltiff -ljpeg -lz"
 fi
 
 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
