summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/libgdamm/files/3.99.16-bdb_automagic.patch')
-rw-r--r--dev-cpp/libgdamm/files/3.99.16-bdb_automagic.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-cpp/libgdamm/files/3.99.16-bdb_automagic.patch b/dev-cpp/libgdamm/files/3.99.16-bdb_automagic.patch
new file mode 100644
index 0000000..051fdcb
--- /dev/null
+++ b/dev-cpp/libgdamm/files/3.99.16-bdb_automagic.patch
@@ -0,0 +1,30 @@
+--- libgdamm-3.99.12/configure.in.orig 2009-03-04 17:36:22.959570120 +0100
++++ libgdamm-3.99.12/configure.in 2009-03-04 17:38:53.180360200 +0100
+@@ -117,6 +117,18 @@
+ AC_SUBST(LIBGDAMM_CFLAGS)
+ AC_SUBST(LIBGDAMM_LIBS)
+
++dnl Test for Berkeley DB
++try_bdb=true
++AC_ARG_WITH(bdb,
++[ --with-bdb use bdb library],[
++if test $withval = no
++then
++ try_bdb=false
++fi
++])
++
++if test $try_bdb = true
++then
+ PKG_CHECK_MODULES(LIBGDAMM_BDB, libgda-bdb-4.0 >= $LIBGDA_REQUIRED,
+ [have_bdb="yes"],
+ [have_bdb="no"])
+@@ -125,6 +137,8 @@
+ LIBGDAMM_CFLAGS="$LIBGDAMM_CFLAGS -DHAVE_BDB"
+ fi
+
++fi
++
+ AM_CONDITIONAL(HAVE_BDB, [test x$have_bdb = xyes])
+
+ GLIBMM_LIBDIR=`pkg-config --variable=libdir glibmm-2.4`