Kaydet (Commit) 19a6c484 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

configure.ac: working firebird version check with manual FIREBIRD_C/LDFLAGS

Change-Id: I511eb8bfcfab2d42073f43660518e1e8be0d5788
üst 61eed5f1
...@@ -8159,15 +8159,26 @@ if test "x$enable_firebird_sdbc" = "xyes"; then ...@@ -8159,15 +8159,26 @@ if test "x$enable_firebird_sdbc" = "xyes"; then
FIREBIRD_CFLAGS=`$FIREBIRDCONFIG --cflags` FIREBIRD_CFLAGS=`$FIREBIRDCONFIG --cflags`
FIREBIRD_LIBS=`$FIREBIRDCONFIG --embedlibs` FIREBIRD_LIBS=`$FIREBIRDCONFIG --embedlibs`
fi fi
AC_MSG_RESULT([includes `$FIREBIRD_CFLAGS', libraries `$FIREBIRD_LIBS'])
AC_MSG_CHECKING([Firebird version]) AC_MSG_CHECKING([Firebird version])
FIREBIRD_MAJOR=`echo $FIREBIRD_VERSION | cut -d"." -f1` if test -n "${FIREBIRD_VERSION}"; then
FIREBIRD_MINOR=`echo $FIREBIRD_VERSION | cut -d"." -f2` FIREBIRD_MAJOR=`echo $FIREBIRD_VERSION | cut -d"." -f1`
if test "$FIREBIRD_MAJOR" -eq "2" -a "$FIREBIRD_MINOR" -eq "5"; then FIREBIRD_MINOR=`echo $FIREBIRD_VERSION | cut -d"." -f2`
AC_MSG_RESULT([OK]) if test "$FIREBIRD_MAJOR" -eq "2" -a "$FIREBIRD_MINOR" -eq "5"; then
AC_MSG_RESULT([OK])
else
AC_MSG_ERROR([Ensure firebird 2.5.x is installed])
fi
else else
AC_MSG_ERROR([Ensure firebird 2.5.x is installed]) __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
#else
#error "Wrong Firebird API version"
#endif]])],AC_MSG_RESULT([OK]),AC_MSG_ERROR([Ensure firebird 2.5.x is installed]))
CFLAGS="${__save_CFLAGS}"
fi fi
AC_MSG_RESULT([includes $FIREBIRD_CFLAGS, libraries $FIREBIRD_LIBS])
ENABLE_FIREBIRD_SDBC="TRUE" ENABLE_FIREBIRD_SDBC="TRUE"
elif test "$enable_database_connectivity" != yes; then elif test "$enable_database_connectivity" != yes; then
AC_MSG_RESULT([none]) AC_MSG_RESULT([none])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment