blob: 295703028dd758103ede97503605558c7eef0a54 [file] [log] [blame]
AC_INIT(axis-c-src, 1-3-beta-linux, BUG-REPORT-ADDRESS)
AM_INIT_AUTOMAKE(0.3)
AM_CONFIG_HEADER(config.h)
PACKAGE=axis-c-src
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/include"
dnl else find the apache2 include dir in /usr/local/apache2
elif test -d '/usr/local/apache2/include'; then
apache2inc="-I/usr/local/apache2/include"
else
AC_MSG_ERROR(could not find apache2. stop)
fi
APACHE2BUILD="apache2"
;;
esac ],
AC_MSG_RESULT(no)
)
AC_MSG_CHECKING(whether to user apache as server transport.)
AC_ARG_WITH(apache,
[ --with-apache[=PATH] use apache as server transport.],
[ case "$withval" in
no)
AC_MSG_RESULT(no)
APACHEBUILD=""
;;
*)
AC_MSG_RESULT(yes)
dnl Find apache include dir in the path pointed by APACHE_HOME env variable
if test -d $withval; then
apacheinc="-I$withval/include"
dnl else find the apache include dir in /usr/local/apache
elif test -d '/usr/local/apache/include'; then
apacheinc="-I/usr/local/apache/include"
else
AC_MSG_ERROR(could not find apache. stop)
exit
fi
APACHEBUILD="apache"
;;
esac ],
AC_MSG_RESULT(no)
)
AC_MSG_CHECKING(whether to build xercesc parser library.)
AC_ARG_WITH(xercesc,
[ --with-xercesc[=PATH] build xercesc parser library.],
[ case "$withval" in
no)
AC_MSG_RESULT(no)
XERCESCBUILD=""
;;
*)
AC_MSG_RESULT(yes)
dnl test for xercesc directory
if test -d $withval; then
xercescinc="-I$withval/include"
xercesclib="-L$withval/lib -lxerces-c -ldl"
else
AC_MSG_ERROR(could not find xercesc. stop)
fi
XERCESCBUILD="xerces"
;;
esac ],
AC_MSG_RESULT(no)
)
AC_MSG_CHECKING(whether to build tspp xml parser library)
AC_ARG_ENABLE(tspp, [ --enable-tspp build tspp xml parser library. default=no],
[ case "${enableval}" in
no)
AC_MSG_RESULT(no)
TSPPBUILD=""
;;
*)
AC_MSG_RESULT(yes)
TSPPBUILD="tspp"
;;
esac ],
AC_MSG_RESULT(no)
TSPPBUILD=""
)
AC_MSG_CHECKING(whether to build axis2 client transport library)
AC_ARG_ENABLE(axis2, [ --enable-axis2 build axis2 client transport library. default=no],
[ case "${enableval}" in
no)
AC_MSG_RESULT(no)
AXIS2BUILD=""
;;
*)
AC_MSG_RESULT(yes)
AXIS2BUILD="axis2"
;;
esac ],
AC_MSG_RESULT(no)
AXIS2BUILD=""
)
AC_MSG_CHECKING(whether to build test cases)
AC_ARG_ENABLE(testcases, [ --enable-testcases build test cases. default=no],
[ case "${enableval}" in
no)
AC_MSG_RESULT(no)
TESTCASESBUILD=""
;;
*)
AC_MSG_RESULT(yes)
TESTCASESBUILD="tests"
;;
esac ],
AC_MSG_RESULT(no)
TESTCASESBUILD=""
)
AC_MSG_CHECKING(whether to build cppunit tests.)
AC_ARG_WITH(cppunit,
[ --with-cppunit[=PATH] build cppunit tests.],
[ case "$withval" in
no)
AC_MSG_RESULT(no)
CPPUNITBUILD=""
;;
*)
AC_MSG_RESULT(yes)
dnl test whether testcases build enabled
if test tests != "$TESTCASESBUILD"; then
AC_MSG_ERROR("Tetcases are not enabled. stop")
fi
dnl test for cppunit directory
if test -d $withval; then
cppunitinc="-I$withval/include"
cppunitlib="-L$withval/lib -lcppunit -ldl"
echo "$cppunitinc"
else
AC_MSG_ERROR(could not find cppunit. stop)
fi
CPPUNITBUILD="unit_tests"
;;
esac ],
AC_MSG_RESULT(no)
)
AC_MSG_CHECKING(whether to build samples)
AC_ARG_ENABLE(samples, [ --enable-samples build samples. default=yes],
[ case "${enableval}" in
no)
AC_MSG_RESULT(no)
SAMPLESBUILD=""
;;
*)
AC_MSG_RESULT(yes)
SAMPLESBUILD="samples"
;;
esac ],
AC_MSG_RESULT(no)
SAMPLESBUILD="samples"
)
AC_MSG_CHECKING(whether write to log)
AC_ARG_ENABLE(log, [ --enable-log enable log facility.],
[ case "${enableval}" in
no)
AC_MSG_RESULT(no)
ENABLELOGGING=""
;;
*)
AC_MSG_RESULT(yes)
ENABLELOGGING="-DENABLE_AXISTRACE"
;;
esac ],
AC_MSG_RESULT(no)
ENABLELOGGING="-DENABLE_AXISTRACE"
)
AC_MSG_CHECKING(whether to build axis2 secure transport channel library.)
AC_ARG_WITH(axis2-ssl,
[ --with-axis2-ssl[=PATH] build transport secure channel library.],
[ case "$withval" in
no)
AC_MSG_RESULT(no)
SSLBUILD=""
;;
*)
AC_MSG_RESULT(yes)
dnl test whether axis2 build enabled
if test axis2 != "$AXIS2BUILD"; then
AC_MSG_ERROR("Axis2 transport is not enabled. stop")
fi
dnl test for ssl directory
if test -d $withval; then
sslinc="-I$withval/include"
ssllib="-L$withval/lib -lssl -L$withval/lib -lcrypto -ldl"
else
AC_MSG_ERROR(could not find ssl. stop)
fi
SSLBUILD="ssl"
;;
esac ],
AC_MSG_RESULT(no)
SSLBUILD=""
)
AC_MSG_CHECKING(whether to axis3 build secure transport channel library.)
AC_ARG_WITH(axis3-ssl,
[ --with-axis3-ssl[=PATH] build axis3 secure transport channel library.],
[ case "$withval" in
no)
AC_MSG_RESULT(no)
AXIS3SSLBUILD=""
;;
*)
AC_MSG_RESULT(yes)
dnl test for ssl directory
if test -d $withval; then
axis3sslinc="-I$withval/include"
axis3ssllib="-L$withval/lib -lssl -L$withval/lib -lcrypto -ldl"
else
AC_MSG_ERROR(could not find ssl. stop)
fi
AXIS3SSLBUILD="HTTPSSLChannel"
;;
esac ],
AC_MSG_RESULT(no)
AXIS3SSLBUILD=""
)
APACHE2INC=$apache2inc
APACHEINC=$apacheinc
XERCESCINC=$xercescinc
XERCESCLIB=$xercesclib
CPPUNITINC=$cppunitinc
CPPUNITLIB=$cppunitlib
EXPATINC=$expatinc
EXPATLIB=$expatlib
SSLINC=$sslinc
SSLLIB=$ssllib
AXIS3SSLINC=$axis3sslinc
AXIS3SSLLIB=$axis3ssllib
LINKCLIENTLIB="-L${AXISCPP_HOME}/src/engine/client -laxiscpp_client -ldl"
AC_SUBST(APACHE2INC)
AC_SUBST(APACHEINC)
AC_SUBST(XERCESCINC)
AC_SUBST(XERCESCLIB)
AC_SUBST(CPPUNITINC)
AC_SUBST(CPPUNITLIB)
AC_SUBST(EXPATINC)
AC_SUBST(EXPATLIB)
AC_SUBST(SSLINC)
AC_SUBST(SSLLIB)
AC_SUBST(AXIS3SSLINC)
AC_SUBST(AXIS3SSLLIB)
AC_SUBST(XERCESCBUILD)
AC_SUBST(EXPATBUILD)
AC_SUBST(APACHE2BUILD)
AC_SUBST(APACHEBUILD)
AC_SUBST(LINKCLIENTLIB)
AC_SUBST(TESTCASESBUILD)
AC_SUBST(CPPUNITBUILD)
AC_SUBST(SAMPLESBUILD)
AC_SUBST(AXIS2BUILD)
AC_SUBST(TSPPBUILD)
AC_SUBST(SSLBUILD)
AC_SUBST(AXIS3SSLBUILD)
CFLAGS="-Wall -Wshadow ${ENABLELOGGING}"
CPPFLAGS="-Wall -Wshadow ${ENABLELOGGING}"
LDFLAGS="-lstdc++"
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_OUTPUT(Makefile \
src/Makefile \
src/common/Makefile \
src/soap/Makefile \
src/wsdd/Makefile \
src/xml/Makefile \
src/transport/Makefile \
src/transport/axis2/Makefile \
src/transport/axis2/ssl/Makefile \
src/transport/axis2/ipv6/Makefile \
src/transport/axis3/Makefile \
src/transport/axis3/HTTPChannel/Makefile \
src/transport/axis3/HTTPSSLChannel/Makefile \
src/engine/Makefile \
src/engine/server/Makefile \
src/engine/client/Makefile \
src/server/Makefile \
src/server/apache2/Makefile \
src/server/apache/Makefile \
src/server/simple_axis_server/Makefile \
src/server/adminservice/Makefile \
src/client/Makefile \
src/client/adminclient/Makefile \
src/xml/xerces/Makefile \
src/xml/tspp/Makefile \
samples/Makefile \
samples/server/Makefile \
samples/server/interoptests/Makefile \
samples/server/interoptests/base/Makefile \
samples/server/interoptests/groupB/Makefile \
samples/server/interoptests/doclitbase/Makefile \
samples/server/interoptests/doclitgroupB/Makefile \
samples/server/simple/Makefile \
samples/server/array/Makefile \
samples/server/ref/Makefile \
samples/server/rpcfault/Makefile \
samples/server/doclitfault/Makefile \
samples/server/echoStringHeaderHandler/Makefile \
samples/client/Makefile \
samples/client/interoptests/Makefile \
samples/client/interoptests/base/Makefile \
samples/client/interoptests/groupB/Makefile \
samples/client/interoptests/doclitbase/Makefile \
samples/client/interoptests/doclitgroupB/Makefile \
samples/client/simple/Makefile \
samples/client/ssl_client/Makefile \
samples/client/array/Makefile \
samples/client/ref/Makefile \
samples/client/rpcfault/Makefile \
samples/client/doclitfault/Makefile \
samples/client/testHandler/Makefile \
tests/Makefile \
tests/unit_tests/Makefile \
tests/unit_tests/cppunit/Makefile \
tests/client/Makefile \
tests/client/stubTest/Makefile \
tests/client/stubTest/stubBase/Makefile \
tests/client/interop/Makefile \
tests/client/interop/round1/Makefile \
tests/client/interop/round1/gen_src/Makefile \
tests/client/threadSafe/Makefile \
tests/client/threadSafe/gen_src/Makefile
tests/client/fault_mapping/Makefile \
tests/client/fault_mapping/gen_src/Makefile \
tests/client/exceptionTest/Makefile \
tests/client/exceptionTest/gen_src/Makefile \
tests/client/soapHeader/Makefile \
tests/client/soapHeader/test1/Makefile \
tests/client/soapHeader/test1/rpc/Makefile \
tests/client/soapHeader/test2/Makefile \
tests/client/soapHeader/test2/rpc/Makefile \
tests/client/soapHeader/test3/Makefile \
tests/client/soapHeader/test3/rpc/Makefile \
tests/client/soapHeader/test4/Makefile \
tests/client/soapHeader/test4/rpc/Makefile \
tests/client/soapHeader/test6/Makefile \
tests/client/soapHeader/test6/rpc/Makefile \
tests/client/soapHeader/test8/Makefile \
tests/client/soapHeader/test8/rpc/Makefile \
tests/client/soapHeader/test9/Makefile \
tests/client/soapHeader/test9/rpc/Makefile \
tests/client/soapHeader/test10/Makefile \
tests/client/soapHeader/test10/rpc/Makefile \
tests/client/xsdAnyTest1/Makefile \
tests/client/xsdAnyTest1/gen_src/Makefile \
tests/client/httpHeader/Makefile \
tests/client/httpHeader/test1/Makefile \
tests/client/httpHeader/test1/rpc/Makefile \
tests/client/httpHeader/test2/Makefile \
tests/client/httpHeader/test2/rpc/Makefile \
tests/client/httpHeader/test3/Makefile \
tests/client/httpHeader/test3/rpc/Makefile \
tests/client/httpHeader/test4/Makefile \
tests/client/httpHeader/test4/rpc/Makefile \
tests/client/httpHeader/test5/Makefile \
tests/client/httpHeader/test5/rpc/Makefile \
tests/client/httpHeader/test7/Makefile \
tests/client/httpHeader/test7/rpc/Makefile \
tests/client/httpHeader/test8/Makefile \
tests/client/httpHeader/test8/rpc/Makefile \
tests/server/Makefile \
tests/server/exceptionTest/Makefile \
tests/server/exceptionTest/gen_src/Makefile \
tests/server/xsdAnyTest1/Makefile \
tests/server/xsdAnyTest1/gen_src/Makefile)