--- a/configure
+++ b/configure
@@ -37,6 +37,7 @@ Usage: ./configure [options]
 --disable-iconv     disable iconv support
 --without-gnapplet  disable installation of gnapplet
 --without-completion disable installation of bash completion script
+--without-libdbi	disable libdbi support
 
 All enable params have their disable counterparts.
 
@@ -61,6 +62,7 @@ CMAKE_PYTHON=
 CMAKE_GNAP=
 CMAKE_COMPLETE=
 CMAKE_ICONV=
+CMAKE_LIBDBI=
 
 # process command line
 while [ "$#" -gt 0 ] ; do
@@ -117,6 +119,9 @@ while [ "$#" -gt 0 ] ; do
         --without-completion)
             CMAKE_COMPLETE="-DINSTALL_BASH_COMPLETION=OFF"
             ;;
+        --without-libdbi)
+            CMAKE_LIBDBI="-DWITH_LibDBI=OFF"
+            ;;
         --build=*)
             ;;
         --disable-dependency-tracking)
@@ -153,4 +158,4 @@ fi
 cd "$BUILD_DIR"
 
 # invoke cmake to do configuration
-cmake $SOURCE_DIR $CMAKE_ROOT $CMAKE_PREFIX $CMAKE_SHARED $CMAKE_DEBUG $CMAKE_BACKUP $CMAKE_CROSS $CMAKE_PROTECTION $CMAKE_GNAP $CMAKE_COMPLETE $CMAKE_ICONV
+cmake $SOURCE_DIR $CMAKE_ROOT $CMAKE_PREFIX $CMAKE_SHARED $CMAKE_DEBUG $CMAKE_BACKUP $CMAKE_CROSS $CMAKE_PROTECTION $CMAKE_GNAP $CMAKE_COMPLETE $CMAKE_ICONV $CMAKE_LIBDBI
