1
# ---------------------------------------------------------------------
3
# ---------------------------------------------------------------------
5
# Version change: Change line 8 only !
6
# Change it immediately after a release
8
AC_INIT(swordbindings, 1.5.9, sword-bugs@crosswire.org)
9
AC_CONFIG_SRCDIR([flatapi.cpp])
11
AC_REVISION($Revision$)
16
#AM_CONFIG_HEADER(include/config.h)
19
# ---------------------------------------------------------------------
21
# ---------------------------------------------------------------------
31
# ---------------------------------------------------------------------
33
# ---------------------------------------------------------------------
39
# ---------------------------------------------------------------------
41
# ---------------------------------------------------------------------
42
AC_ARG_WITH(tomcathome,
43
AC_HELP_STRING([--with-tomcathome],
44
[tomcat home directory (default=[/usr/local/tomcat])]),,
45
with_tomcathome=[/usr/local/tomcat])
48
# ---------------------------------------------------------------------
50
# ---------------------------------------------------------------------
52
AC_HELP_STRING([--enable-corba],[build swordorbserver (default=no)]),,enable_corba=no)
56
# ---------------------------------------------------------------------
58
# ---------------------------------------------------------------------
60
# ---------------------------------------------------------------------
62
# ---------------------------------------------------------------------
64
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
65
if test x$PKG_CONFIG = xno ; then
66
AC_MSG_WARN([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/])
67
AC_MSG_ERROR([not using pkg-config])
71
if $PKG_CONFIG --atleast-pkgconfig-version 0.14 ; then
74
AC_MSG_WARN([*** pkg-config too old; version 0.14 or better required.])
75
AC_MSG_ERROR([not using pkg-config])
79
# ---------------------------------------------------------------------
81
# ---------------------------------------------------------------------
84
if test x$use_pkgconfig = xyes ; then
85
SWORD_LIBS=`$PKG_CONFIG --libs sword`
86
SWORD_CFLAGS=`$PKG_CONFIG --cflags sword`
89
# ---------------------------------------------------------------------
90
# Tomcat install directories
91
# ---------------------------------------------------------------------
92
TOMCAT_HOME=$with_tomcathome
94
# ---------------------------------------------------------------------
96
# ---------------------------------------------------------------------
99
if test x$enable_corba = xyes ; then
100
if test x$use_pkgconfig = xyes ; then
101
ORBIT_LIBS+=`$PKG_CONFIG --libs ORBit-2.0-cpp`
102
ORBIT_CFLAGS+=`$PKG_CONFIG --cflags ORBit-2.0`
103
ORBIT_CXXFLAGS+=`$PKG_CONFIG --cflags ORBit-2.0-cpp`
107
# ---------------------------------------------------------------------
108
# Substitute variables into makefiles
109
# ---------------------------------------------------------------------
111
AC_SUBST(SWORD_CFLAGS)
113
AC_SUBST(ORBIT_CFLAGS)
114
AC_SUBST(ORBIT_CXXFLAGS)
115
AC_SUBST(TOMCAT_HOME)
117
# ---------------------------------------------------------------------
118
# Conditional variables
119
# ---------------------------------------------------------------------
120
AM_CONDITIONAL(CORBA, test x$enable_corba = xyes)
122
# ---------------------------------------------------------------------
124
# ---------------------------------------------------------------------
125
AC_CONFIG_FILES(Makefile corba/Makefile corba/orbitcpp/Makefile corba/java/Makefile)