$OpenBSD: patch-configure,v 1.4 2009/01/12 21:17:07 sthen Exp $
--- configure.orig	Sun Dec 28 10:41:33 2008
+++ configure	Tue Jan  6 12:45:22 2009
@@ -4008,7 +4008,7 @@ echo "${ECHO_T}no" >&6; }
 fi
 
 
-if test ! -e $CXX; then
+if test ! -e `which $CXX`; then
    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
 echo "$as_me: error: Unable to find C++ compiler" >&2;}
    { (exit 1); exit 1; }; }
@@ -29981,6 +29981,7 @@ openbsd)
 	    platforms/openbsd/bacula-fd \
 	    platforms/openbsd/bacula-sd \
 	    platforms/openbsd/bacula-dir"
+	largefile_support="yes"
   ;;
 redhat)
 	if test -f /etc/whitebox-release ; then
@@ -31765,7 +31766,7 @@ if test "${support_bat}" = "yes" ; then
   QMAKEBIN="qmake"
 
   if test "x$QMAKEQT4" != "xnone"; then
-    QMAKEBIN=qmake-qt4
+    QMAKEBIN=${QMAKEQT4}
   fi
 
 
