diff configure.ac @ 4401:01970033faa6

Configure fixes from Hans de Graaff, as used in Gentoo. 2008-01-17 Aidan Kehoe <kehoea@parhasard.net> * configure.ac: If using a version of the gdbm library that sticks dbm_open in libgdbm_compat.so, also link to that library. Correct a thinko with DBM version 4 checks. Both from Hans de Graaff, in http://mid.gmane.org/20050812092756.6850.qmail@graaff.xs4all.nl and http://mid.gmane.org/pan.2007.06.24.10.10.57@gentoo.org; thank you Hans! * configure: Regenerate.
author Aidan Kehoe <kehoea@parhasard.net>
date Thu, 17 Jan 2008 11:52:45 +0100
parents 50889296c05c
children 2f000e022a8b fd8a9a4d81d9
line wrap: on
line diff
--- a/configure.ac	Wed Jan 16 15:43:01 2008 +0100
+++ b/configure.ac	Thu Jan 17 11:52:45 2008 +0100
@@ -5408,10 +5408,13 @@
 if test "$enable_database_gdbm" != "no"; then
   AC_CHECK_LIB(gdbm, dbm_open, [
    enable_database_gdbm=yes enable_database_dbm=no libdbm=-lgdbm], [
+       AC_CHECK_LIB(gdbm_compat, dbm_open, [
+       enable_database_gdbm=yes enable_database_dbm=no libdbm="-lgdbm_compat -lgdbm"], [
    if test "$enable_database_gdbm" = "yes"; then
      XE_DIE("Required GNU DBM support cannot be provided.")
    fi
-   enable_database_gdbm=no])
+   enable_database_gdbm=no], -lgdbm)
+  ])
 fi
 
 dnl Check for DBM support in libc and libdbm.
@@ -5492,7 +5495,7 @@
   fi
 
   dnl Berk db 4.1 decorates public functions with version information
-  if test "$enable_database_berkdb" != "yes" -a "$dbver" = "4"; then
+  if test "$enable_database_berkdb" = "yes" -a "$dbver" = "4"; then
     rm -f $tempcname
     echo "#include <$db_h_file>" > $tempcname
     echo "configure___ dbfunc=db_create" >> $tempcname