aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-06-12 03:21:04 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-06-12 03:21:04 +0800
commitf13fc0022f330641710829db83d3668441df0ad1 (patch)
treecb7da80fe7bc97d4b0447d0e75c48e64c2d9caf5 /configure.in
parente3e33f6f0bdc6b7fd02b7f0266bb891cb0a85752 (diff)
downloadgsoc2013-evolution-f13fc0022f330641710829db83d3668441df0ad1.tar.gz
gsoc2013-evolution-f13fc0022f330641710829db83d3668441df0ad1.tar.zst
gsoc2013-evolution-f13fc0022f330641710829db83d3668441df0ad1.zip
Update db3 configure checks for RedHat. /me beats a sleep cat to death
2001-06-11 JP Rosevear <jpr@ximian.com> * configure.in: Update db3 configure checks for RedHat. /me beats a sleep cat to death svn path=/trunk/; revision=10188
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in39
1 files changed, 37 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 34339e3bf4..8fce4794a8 100644
--- a/configure.in
+++ b/configure.in
@@ -349,9 +349,44 @@ main (void)
LIBS="$LIBS_save"
CPPFLAGS="$CPPFLAGS_save"
])
+fi
+
+if test $ac_cv_db3_lib_check = yes; then
+ DB3_LDADD="$with_db3_libs/libdb3.a"
+else
+ AC_CACHE_CHECK([for -ldb-3.1 3.1.17], ac_cv_db3_lib_db31_check,
+ [
+ LIBS_save="$LIBS"
+ LIBS="$with_db3_libs/libdb-3.1.a $LIBS"
+ CPPFLAGS_save="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $DB3_CFLAGS"
+
+ AC_TRY_RUN([
+#if $HAVE_DB3_DB_H_INTERNAL
+#include <db3/db.h>
+#else
+#include <db.h>
+#endif
+int
+main (void)
+{
+ int major, minor, patch;
+ db_version (&major, &minor, &patch);
+ if (major == 3 &&
+ minor == 1 &&
+ patch == 17)
+ return 0;
+ else
+ return 1;
+}
+], ac_cv_db3_lib_db31_check=yes, ac_cv_db3_lib_db31_check=no)
+
+ LIBS="$LIBS_save"
+ CPPFLAGS="$CPPFLAGS_save"
+ ])
- if test $ac_cv_db3_lib_db3_check = yes; then
- DB3_LDADD="$with_db3_libs/libdb3.a"
+ if test $ac_cv_db3_lib_db31_check = yes; then
+ DB3_LDADD="$with_db3_libs/libdb-3.1.a"
else
AC_ERROR(Didn't find libdb 3.1.17 libraries. You must have libdb version 3.1.17 installed to compile evolution)
fi