|
|
|
@ -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 ])
|
|
|
|
|