---- dwi-0.6.1/configure.in.orig 2004-07-29 15:49:36.000000000 +0200
-+++ dwi-0.6.1/configure.in 2006-02-22 11:40:41.000000000 +0100
-@@ -66,7 +66,7 @@
+--- dwi-0.6.2/configure.in.orig 2004-07-29 15:49:36.000000000 +0200
++++ dwi-0.6.2/configure.in 2006-02-22 11:40:41.000000000 +0100
+@@ -68,13 +68,16 @@
+ AC_SUBST(QOF_CFLAGS)
+ AC_SUBST(QOF_LIBS)
+
+-if test x$QOF_LIBS = x; then
++AC_ARG_WITH(qof, [ --without-qof disable qof support])
++if test "$with_qof" = "no"; then
++ QOF_LIBS=
++elif test x"$QOF_LIBS" = x; then
+ AC_MSG_WARN([****** QOF libs not found; build without QOF.])
+ else
AC_DEFINE(HAVE_QOF,,We Have Found QOF)
fi
-AM_CONDITIONAL(BUILD_QOF, [test x$HAVE_QOF = x])
-+AM_CONDITIONAL(BUILD_QOF, [test x$HAVE_QOF != x])
++AM_CONDITIONAL(BUILD_QOF, [test x"$QOF_LIBS" != x])
dnl **************************************************************
dnl If ODBC is found on the build system, then use it.