With the upload of DBD 0.9 to Debian unstable, the location of the DBD
modules has changed. This causes failures to compile GnuCash. The
attached patch fixes this.

Thanks,

-- 
 .''`.    Sébastien Villemot
: :' :    Debian Developer
`. `'     http://www.dynare.org/sebastien
  `-      GPG Key: 4096R/381A7594

From c909a207d99669e595b86f4c945aadd7cadeed77 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebast...@debian.org>
Date: Sun, 9 Feb 2014 16:09:09 +0100
Subject: [PATCH] Fix detection of DBD modules for multiarch setups.

On Debian unstable, the DBD modules are now under
/usr/lib/${MULTIARCH}/dbd (where MULTIARCH depends on the architecture). This
patch ensures that the DBD modules are correctly detected in that case, using
pkg-config.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index fa28a86..a900d17 100644
--- a/configure.ac
+++ b/configure.ac
@@ -604,7 +604,7 @@ then
       [[GNC_DBD_DIR="$with_dbi_dbd_dir"
        EXTRA_SEARCH_LIBS=$GNC_DBD_DIR]],
       [[GNC_DBD_DIR=""
-       EXTRA_SEARCH_LIBS="/usr/lib/dbd:/usr/lib64/dbd:${libdir}/dbd"]]
+       EXTRA_SEARCH_LIBS="/usr/lib/dbd:/usr/lib64/dbd:${libdir}/dbd:$(pkg-config --variable=libdir dbi)/dbd"]]
        )
     case $host_os in
        win32*|mingw*)
-- 
1.9.0.rc3

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to