diff options
author | JP Rosevear <jpr@ximian.com> | 2001-06-12 03:21:04 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-06-12 03:21:04 +0800 |
commit | f13fc0022f330641710829db83d3668441df0ad1 (patch) | |
tree | cb7da80fe7bc97d4b0447d0e75c48e64c2d9caf5 | |
parent | e3e33f6f0bdc6b7fd02b7f0266bb891cb0a85752 (diff) | |
download | gsoc2013-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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 39 |
2 files changed, 42 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2001-06-11 JP Rosevear <jpr@ximian.com> + + * configure.in: Update configure checks for RedHat. /me beats a + sleep cat to death + 2001-06-09 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped required version of gal to 0.8.99.2. 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 |