|
|
|
@ -56,9 +56,28 @@ if test "x$enable_howto" = xyes; then
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST(HOWTODIR)
|
|
|
|
|
|
|
|
|
|
dnl Chek for the used distribution
|
|
|
|
|
dnl Check for the used distribution
|
|
|
|
|
AC_CHECK_DISTRIBUTION
|
|
|
|
|
|
|
|
|
|
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 the old API])
|
|
|
|
|
AC_TRY_COMPILE([#include <versekey.h>
|
|
|
|
|
static sword::VerseKey staticKey;
|
|
|
|
|
sword::sbook current_book;
|
|
|
|
|
],[current_book = staticKey.books[1][1];],
|
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
|
[AC_MSG_RESULT(no)
|
|
|
|
|
AC_DEFINE(SWORD_MULTIVERSE,1,[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 ])
|
|
|
|
|