diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2017-01-05 12:58:26 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2017-01-05 13:00:40 +0100 |
commit | 860ecb9e583627ab43097784ad98b41afd983ff6 (patch) | |
tree | 23c44c69ee83d1b0937b6e84eebf3ea527d3778a /configure.ac | |
parent | bfa5bdf415fb9765139cc4d1eb040132ee484946 (diff) |
require firebird 3.0 for build (don't allow 2.5)
Keep firebird_integer_x64le.odb around for a future 3.x firebird that
will allow opening Firebird 2.5 databases, so that we can test this
capacity in our tests.
Change-Id: I05dbef51284bdb25132ff6cb661659430eea6a92
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac index 4e0d5cb08c63..9f266a89ae1a 100644 --- a/configure.ac +++ b/configure.ac @@ -8672,28 +8672,20 @@ if test "$enable_firebird_sdbc" = "yes" ; then if test -n "${FIREBIRD_VERSION}"; then FIREBIRD_MAJOR=`echo $FIREBIRD_VERSION | cut -d"." -f1` FIREBIRD_MINOR=`echo $FIREBIRD_VERSION | cut -d"." -f2` - if test "$FIREBIRD_MAJOR" -eq "2" -a "$FIREBIRD_MINOR" -eq "5"; then - AC_MSG_RESULT([OK]) - elif test "$FIREBIRD_MAJOR" -eq "3" -a "$FIREBIRD_MINOR" -eq "0"; then - AC_DEFINE(HAVE_FIREBIRD_30, 1) + if test "$FIREBIRD_MAJOR" -eq "3" -a "$FIREBIRD_MINOR" -eq "0"; then AC_MSG_RESULT([OK]) else - AC_MSG_ERROR([Ensure firebird 2.5.x or 3.0.x is installed]) + AC_MSG_ERROR([Ensure firebird 3.0.x is installed]) fi else __save_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} ${FIREBIRD_CFLAGS}" AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <ibase.h> -#if defined(FB_API_VER) && FB_API_VER == 25 -int fb_api_is_25(void) { return 0; } -#elif defined(FB_API_VER) && FB_API_VER == 30 +#if defined(FB_API_VER) && FB_API_VER == 30 int fb_api_is_30(void) { return 0; } #else #error "Wrong Firebird API version" -#endif]])],AC_MSG_RESULT([OK]),AC_MSG_ERROR([Ensure firebird 2.5.x or 3.0.x is installed])) - if nm conftest.$OBJEXT | grep fb_api_is_30; then - AC_DEFINE(HAVE_FIREBIRD_30, 1) - fi +#endif]])],AC_MSG_RESULT([OK]),AC_MSG_ERROR([Ensure firebird 3.0.x is installed])) CFLAGS="${__save_CFLAGS}" fi ENABLE_FIREBIRD_SDBC="TRUE" @@ -8752,7 +8744,6 @@ AC_SUBST(LIBATOMIC_OPS_LIBS) AC_SUBST(SYSTEM_FIREBIRD) AC_SUBST(FIREBIRD_CFLAGS) AC_SUBST(FIREBIRD_LIBS) -AC_SUBST(HAVE_FIREBIRD_30) AC_SUBST([TOMMATH_CFLAGS]) AC_SUBST([TOMMATH_LIBS]) |