$OpenBSD: patch-configure,v 1.2 2005/05/28 19:49:18 avsm Exp $
--- configure.orig	Sat Oct  2 16:51:07 2004
+++ configure	Sat May 28 20:32:24 2005
@@ -5096,7 +5096,7 @@ if test "${ac_cv_lib_tiff_TIFFOpen+set}"
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-ltiff  $LIBS"
+LIBS="-ltiff -ljpeg -lz $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 #include "confdefs.h"
