Bibletime – a bible study tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.3KB

  1. AC_INIT(acinclude.m4) dnl a source file from your sub dir
  2. dnl This is so we can use kde-common
  3. AC_CONFIG_AUX_DIR(admin)
  4. dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
  5. unset CDPATH
  6. dnl Checking host/target/build systems, for make, install etc.
  7. AC_CANONICAL_SYSTEM
  8. dnl Perform program name transformation
  9. AC_ARG_PROGRAM
  10. dnl Automake doc recommends to do this only here. (Janos)
  11. AM_INIT_AUTOMAKE(bibletime, 1.6.6.0) dnl searches for some needed programs
  12. KDE_SET_PREFIX
  13. KDE_USE_QT(3.0)
  14. dnl generate the config header
  15. AM_CONFIG_HEADER([config.h]) dnl at the distribution this done
  16. dnl Checks for programs.
  17. AC_CHECK_COMPILERS
  18. CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS"
  19. AC_ENABLE_SHARED(no)
  20. AC_ENABLE_STATIC(yes)
  21. KDE_PROG_LIBTOOL
  22. AM_MAINTAINER_MODE
  23. dnl for NLS support. Call them in this order!
  24. dnl WITH_NLS is for the po files
  25. AM_KDE_WITH_NLS
  26. AC_PATH_KDE
  27. dnl in this space add everything you want to check for;
  28. dnl examples are specific headers, libraries, etc.
  29. dnl everything to compile and run a KDE program is already checked
  30. CPPFLAGS="$CPPFLAGS -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE -Wall -I\$(top_srcdir)/ -I\$(top_srcdir)/bibletime -I\$(top_builddir)/bibletime"
  31. AC_CHECK_STATIC_LINKING(ac_use_static)
  32. AC_CHECK_SWORD(1.5.9, [$ac_use_static])
  33. AC_CHECK_CLUCENE([$ac_use_static])
  34. AC_ARG_ENABLE(howto,
  35. AC_HELP_STRING([--enable-howto],
  36. [install Bible Study Howto (default=yes)]),
  37. ,
  38. enable_howto=yes
  39. )
  40. HOWTODIR=""
  41. if test "x$enable_howto" = xyes; then
  42. HOWTODIR="howto"
  43. fi
  44. AC_SUBST(HOWTODIR)
  45. dnl Check for the used distribution
  46. AC_CHECK_DISTRIBUTION
  47. dnl Check bibletime API version
  48. AC_LANG_SAVE
  49. AC_LANG_CPLUSPLUS
  50. cxx_flags_safe="$CXXFLAGS"
  51. cflags_safe="$CFLAGS"
  52. CXXFLAGS="$CXXFLAGS -I$ac_cv_sword_incdir"
  53. CFLAGS="$CFLAGS -I$ac_cv_sword_incdir"
  54. AC_MSG_CHECKING([if Sword provides the old API])
  55. AC_TRY_COMPILE([#include <versekey.h>
  56. static sword::VerseKey staticKey;
  57. sword::sbook current_book;
  58. ],[current_book = staticKey.books[1][1];],
  59. AC_MSG_RESULT(yes),
  60. [AC_MSG_RESULT(no)
  61. AC_DEFINE(SWORD_MULTIVERSE,1,[no])])
  62. CXXFLAGS="$cxx_flags_safe"
  63. CFLAGS="$cflags_safe"
  64. AC_LANG_RESTORE
  65. dnl add here all your Makefiles. They are created by configure
  66. AC_CONFIG_FILES([ README ])
  67. AC_CONFIG_FILES([ INSTALL ])
  68. AC_CONFIG_FILES([ bibletime.lsm ])
  69. AC_CONFIG_FILES([ bibletime.spec ])
  70. AC_CONFIG_FILES([ bibletime.desktop ])