$OpenBSD: patch-configure,v 1.3 2003/12/23 23:43:22 brad Exp $
--- configure.orig	2002-10-01 10:05:55.000000000 -0400
+++ configure	2003-12-23 18:40:24.000000000 -0500
@@ -37,10 +37,10 @@
 #
 # Setup general configuration parameters.
 #
-DIR_BIN=/usr/local/bin
-DIR_SBIN=/usr/local/sbin
-DIR_LIBDATA=/usr/local/lib/fax
-DIR_LIB=/usr/local/lib
+DIR_BIN=${PREFIX}/bin
+DIR_SBIN=${PREFIX}/sbin
+DIR_LIBDATA=${PREFIX}/lib/fax
+DIR_LIB=${PREFIX}/lib
 DIR_LIBEXEC=$DIR_SBIN
 DIR_SPOOL=/var/spool/hylafax
 DIR_HTML=/var/httpd/htdocs/hylafax
@@ -72,8 +72,8 @@ DPS=no
 GS=no
 IMP=no
 UTMP=auto
-LIBTIFF="-L/usr/local/lib -ltiff"
-TIFFINC=/usr/local/include
+LIBTIFF="-L${LOCALBASE}/lib -ltiff -ljpeg -lz"
+TIFFINC=${LOCALBASE}/include
 TIFFBIN=
 LIBZ=
 ZLIBINC=
@@ -81,8 +81,8 @@ REGEX=yes
 LIBREGEX='-L${DEPTH}/regex -lregex'
 REGEXINC='${DEPTH}/${TOPSRCDIR}/regex'
 DBLIB=no
-LIBDB="-L/usr/local/lib -ldb"
-DBLIBINC=/usr/local/include
+LIBDB="-L${LOCALBASE}/lib -ldb"
+DBLIBINC=${LOCALBASE}/include
 FAXD=
 LIBFAXSERVER='libfaxserver.${DSO}'
 LIBUTIL='${UTIL}/libfaxutil.${DSO}'
@@ -2314,7 +2314,7 @@ EOF
 	if [ ${header_ver} -ge 19960307 ]; then
 	    if [ "${lib_ver}" = "3.4" ]; then
 		tiff_runlen_t="uint16"
-	    elif [ "${lib_ver}" = "3.5" ]; then
+	    elif [ "${lib_ver}" = "3.5" -o "${lib_ver}" = "3.6" ]; then
 		tiff_runlen_t="uint32"
 	    fi
 	fi
@@ -2351,9 +2351,10 @@ EOF
 
 Incompatible TIFF Library.
 
-HylaFAX ${VERSION} requires TIFF software distribution ver 3.4 or 3.5.
-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.
+HylaFAX ${VERSION} requires TIFF software distribution ver 3.4, 3.5, or
+3.6.  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.
+The Home Page for version 3.5 and later is http://www.libtiff.org
 EOF
 	boom
 	return 1
