dnl run autogen.sh to generate the configure script. AC_PREREQ(2.59) AC_INIT(axis2c-src, 0.92) AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) AC_PREFIX_DEFAULT(/usr/local/axis2c) dnl Checks for programs. AC_PROG_CC AC_PROG_CXX AC_PROG_CPP AM_PROG_LIBTOOL AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET dnl Checks for libraries. AC_CHECK_LIB(dl, dlopen) AC_CHECK_LIB(cutest, CuTestInit) AC_CHECK_LIB(z, inflate) #CFLAGS="$CFLAGS -ansi -Wall -D_LARGEFILE64_SOURCE -Wno-implicit-function-declaration" CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -ansi -Wall -Wno-implicit-function-declaration -Werror" fi LDFLAGS="-lpthread" dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdio.h stdlib.h string.h]) AC_CHECK_HEADERS([linux/if.h],[],[], [ #include ]) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl Checks for library functions. AC_FUNC_MALLOC AC_FUNC_REALLOC #AC_CHECK_FUNCS([memmove]) AC_MSG_CHECKING(whether to use apache2 as server transport) AC_ARG_WITH(apache2, [ --with-apache2[=PATH] use apache2 as server transport.], [ case "$withval" in no) AC_MSG_RESULT(no) APACHE2BUILD="" ;; *) AC_MSG_RESULT(yes) dnl Find apache2 include dir in the path pointed by APACHE2_HOME env variable if test -d $withval; then apache2inc="-I$withval" dnl else find the apache2 include dir in /usr/local/apache2 elif test -d '/usr/include/apache2'; then apache2inc="-I/usr/include/apache2" else AC_MSG_ERROR(could not find apache2. stop) fi APACHE2BUILD="apache2" ;; esac ], AC_MSG_RESULT(no) ) AC_MSG_CHECKING(whether to use apr. Note that if you build with apache2 you might need to do this.) AC_ARG_WITH(apr, [ --with-apr[=PATH] use apr.], [ case "$withval" in no) AC_MSG_RESULT(no) ;; *) AC_MSG_RESULT(yes) dnl Find apr include dir in the path if test -d $withval; then aprinc="-I$withval" dnl else find the apache2 include dir in /usr/local/apache2 elif test -d '/usr/include/apr-0'; then aprinc="-I/usr/include/apr-0" else AC_MSG_ERROR(could not find apr. stop) fi ;; esac ], AC_MSG_RESULT(no) ) AC_MSG_CHECKING(whether to build tests) AC_ARG_ENABLE(tests, [ --enable-tests build tests. default=no], [ case "${enableval}" in no) AC_MSG_RESULT(no) TESTDIR="" ;; *) AC_MSG_RESULT(yes) TESTDIR="test" ;; esac ], AC_MSG_RESULT(no) TESTDIR="" ) AC_MSG_CHECKING(whether to enable trace) AC_ARG_ENABLE(trace, [ --enable-trace enable trace. default=no], [ case "${enableval}" in no) AC_MSG_RESULT(no) CFLAGS="$CFLAGS" ;; *) AC_MSG_RESULT(yes) CFLAGS="$CFLAGS -DAXIS2_TRACE" ;; esac ], AC_MSG_RESULT(no) CFLAGS="$CFLAGS" ) AC_MSG_CHECKING(whether to enable multi threading) AC_ARG_ENABLE(multi-thread, [ --enable-multi-thread enable multi thread. default=yes], [ case "${enableval}" in no) AC_MSG_RESULT(no) CFLAGS="$CFLAGS" ;; *) AC_MSG_RESULT(yes) CFLAGS="$CFLAGS -DAXIS2_SVR_MULTI_THREADED" ;; esac ],[ AC_MSG_RESULT(yes) CFLAGS="$CFLAGS -DAXIS2_SVR_MULTI_THREADED"] ) AC_MSG_CHECKING(whether to use openssl) AC_ARG_ENABLE(openssl, [ --enable-openssl enable ssl. default=no], [ case "${enableval}" in no) AC_MSG_RESULT(no) CFLAGS="$CFLAGS" ssl_enabled=false ;; *) AC_MSG_RESULT(yes) CFLAGS="$CFLAGS -DAXIS2_SSL_ENABLED" ssl_enabled=true ;; esac ], AC_MSG_RESULT(no) CFLAGS="$CFLAGS" ) AC_MSG_CHECKING(whether to build dynamic invocation client library) AC_ARG_ENABLE(diclient, [ --enable-diclient build diclient library wrapper. default=no], [ case "${enableval}" in no) AC_MSG_RESULT(no) DICLIENT_DIR="" ;; *) AC_MSG_RESULT(yes) DICLIENT_DIR="diclient" ;; esac ], AC_MSG_RESULT(yes) DICLIENT_DIR="diclient" ) AC_MSG_CHECKING(To Use Axis2 C AXIOM. This is a compulsory module to build Axis2 C) AC_ARG_WITH(axiom, [ --with-axiom[=PATH] use axiom.], [ case "$withval" in no) AC_MSG_RESULT(no) ;; *) AC_MSG_RESULT(yes) dnl Find axiom include dir in the path if test -d $withval; then axiominc="-I$withval" dnl else find the axiom include dir in $(AXIS2C_HOME)/include elif test -d '$(AXIS2C_HOME)/include'; then axiominc="-I$(AXIS2C_HOME)/include" else AC_MSG_ERROR(could not find axiom. stop) fi ;; esac ], AC_MSG_RESULT(no) ) AC_MSG_CHECKING(To Use Axis2 C Util. This is a compulsory module to build Axis2 C) AC_ARG_WITH(axis2_util, [ --with-axis2_util[=PATH] use axis2_util.], [ case "$withval" in no) AC_MSG_RESULT(no) ;; *) AC_MSG_RESULT(yes) dnl Find axis2_util include dir in the path if test -d $withval; then axis2_utilinc="-I$withval" dnl else find the axis2_util include dir in $(AXIS2C_HOME)/include elif test -d '$(AXIS2C_HOME)/include'; then axis2_utilinc="-I$(AXIS2C_HOME)/include" else AC_MSG_ERROR(could not find axis2_util. stop) fi ;; esac ], AC_MSG_RESULT(no) ) APACHE2INC=$apache2inc AXIOMINC=$axiominc UTILINC=$axis2_utilinc APRINC=$aprinc AC_SUBST(APACHE2INC) AC_SUBST(APRINC) AC_SUBST(AXIOMINC) AC_SUBST(UTILINC) AC_SUBST(DICLIENT_DIR) AC_SUBST(TESTDIR) AC_SUBST(SAMPLES) AC_SUBST(APACHE2BUILD) AM_CONDITIONAL(AXIS2_SSL_ENABLED, test x$ssl_enabled = xtrue) AC_CONFIG_FILES([Makefile \ modules/Makefile \ modules/core/Makefile \ modules/core/description/Makefile \ modules/core/context/Makefile \ modules/core/engine/Makefile \ modules/core/addr/Makefile \ modules/core/phaseresolver/Makefile \ modules/core/transport/http/Makefile \ modules/core/transport/http/sender/Makefile \ modules/core/transport/http/receiver/Makefile \ modules/core/transport/http/server/simple_axis2_server/Makefile \ modules/core/transport/http/server/Makefile \ modules/core/transport/http/server/apache2/Makefile \ modules/core/deployment/Makefile \ modules/core/clientapi/Makefile \ modules/core/clientapi/diclient/Makefile \ modules/core/receivers/Makefile \ modules/core/util/Makefile \ modules/wsdl/Makefile \ modules/wsdl/builder/Makefile \ modules/mod_addr/Makefile \ test/Makefile \ test/wsdl/Makefile \ test/wsdl/builder/Makefile \ test/wsdl/builder/print/Makefile \ test/core/Makefile \ test/core/description/Makefile \ test/core/clientapi/Makefile \ test/core/deployment/Makefile \ test/core/context/Makefile \ test/core/engine/Makefile \ test/core/addr/Makefile \ test/unit/Makefile \ test/unit/core/Makefile \ test/unit/core/description/Makefile \ test/unit/core/engine/Makefile \ test/unit/core/context/Makefile \ test/unit/core/phaseresolver/Makefile \ test/unit/core/deployment/Makefile \ test/unit/wsdl/Makefile \ test/core/transport/Makefile\ test/core/transport/http/Makefile \ test/itest/Makefile \ test/itest/whitemesa/Makefile \ test/itest/whitemesa/round1/Makefile \ test/itest/whitemesa/round2/Makefile \ test/tools/Makefile \ ides/Makefile \ ides/anjuta/Makefile \ include/Makefile ]) AC_OUTPUT