diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2014-08-31 04:30:46 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-08-31 04:30:46 +0200 |
commit | 5d683513832e8bae4f6b00b7e198c4db0bf96f6b (patch) | |
tree | 9dc4952fd37444cc68e9043006796add5432a394 /configure.in.in | |
parent | 24dc60bea262b34cf7d3a6d09c10cd770869e2c0 (diff) | |
download | bibletime-5d683513832e8bae4f6b00b7e198c4db0bf96f6b.tar.gz bibletime-5d683513832e8bae4f6b00b7e198c4db0bf96f6b.zip |
Fix FTBFS with sword 1.7.x
Diffstat (limited to 'configure.in.in')
-rw-r--r-- | configure.in.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in index f91fc97..ad74532 100644 --- a/configure.in.in +++ b/configure.in.in @@ -78,6 +78,25 @@ CXXFLAGS="$cxx_flags_safe" CFLAGS="$cflags_safe" AC_LANG_RESTORE +dnl Check bibletime API version +AC_LANG_SAVE +AC_LANG_CPLUSPLUS +cxx_flags_safe="$CXXFLAGS" +cflags_safe="$CFLAGS" +CXXFLAGS="$CXXFLAGS -I$ac_cv_sword_incdir" +CFLAGS="$CFLAGS -I$ac_cv_sword_incdir" +AC_MSG_CHECKING([if Sword provides API 1.7.x]) +AC_TRY_COMPILE([#include <versekey.h> +static sword::VerseKey staticKey; +sword::VerseKey keyBound; +],[keyBound = staticKey.getUpperBound();], +[AC_MSG_RESULT(yes) +AC_DEFINE(SWORD_API_1_7,1,[Defined if sword api is 1.7.x or newer])], +AC_MSG_RESULT(no)) +CXXFLAGS="$cxx_flags_safe" +CFLAGS="$cflags_safe" +AC_LANG_RESTORE + dnl add here all your Makefiles. They are created by configure AC_CONFIG_FILES([ README ]) |