blob: 3aae33393b8e0e220114080df43e712bd34e1bec [file] [log] [blame]
# run autogen.sh to generate the configure script.
AC_PREREQ(2.59)
AC_INIT(axis2, 1.0.0)
AC_CONFIG_SRCDIR([modules/common/src/axis2.c])
AC_CONFIG_AUX_DIR(conftools)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER(config.h)
AC_PROG_LIBTOOL
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
# Checks for libraries.
AC_CHECK_LIB(dl, dlopen)
#using libtool
AM_PROG_LIBTOOL
CFLAGS="$CFLAGS -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2"
#CFLAGS="$CFLAGS -Wall -ansi -Wshadow -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread"
LDFLAGS="$LDFLAGS -L${CUTEST_HOME}/lib/"
LIBS="-ldl"
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdio.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
#AC_CHECK_FUNCS([memmove])
AC_MSG_CHECKING(give the xml pull parser you wish to use. eg:libxml2)
AC_ARG_WITH(pull-parser,
[ --with-pull-parser[=PARSER] build the pull parser wrapper library. PARSER=libxml2/guththila],
[ case "$withval" in
no)
AC_MSG_RESULT(no)
want_parser=no
;;
*)
AC_MSG_RESULT(yes)
dnl pull parser to use
want_parser="$withval"
;;
esac ],
AC_MSG_RESULT(no)
want_parser="guththila"
)
PULL_PARSER=$want_parser
AC_SUBST(PULL_PARSER)
AC_CONFIG_FILES([Makefile \
modules/Makefile \
modules/core/Makefile \
modules/core/context/Makefile \
modules/core/context/src/Makefile \
modules/core/description/Makefile \
modules/core/description/src/Makefile \
modules/core/engine/Makefile \
modules/core/engine/src/Makefile \
modules/core/handlers/Makefile \
modules/core/handlers/src/Makefile \
modules/core/addr/Makefile \
modules/core/addr/src/Makefile \
modules/core/phaseresolver/Makefile \
modules/core/phaseresolver/src/Makefile \
modules/core/transport/Makefile \
modules/core/deployment/Makefile \
modules/core/deployment/src/Makefile \
modules/xml/Makefile \
modules/xml/parser/Makefile \
modules/xml/parser/guththila/Makefile \
modules/xml/parser/guththila/impl/Makefile \
modules/xml/parser/guththila/impl/src/Makefile \
modules/xml/parser/guththila/src/Makefile \
modules/xml/parser/libxml2/Makefile \
modules/xml/parser/libxml2/src/Makefile \
modules/xml/soap/Makefile \
modules/xml/soap/src/Makefile \
modules/xml/om/Makefile \
modules/xml/om/src/Makefile \
modules/common/Makefile \
modules/common/src/Makefile \
modules/util/Makefile \
modules/util/src/Makefile \
modules/wsdl/Makefile \
modules/wsdl/src/Makefile \
test/Makefile \
test/xml/Makefile \
test/xml/om/Makefile \
test/common/Makefile \
test/core/Makefile \
test/core/handlers/Makefile \
test/util/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/util/Makefile \
test/unit/xml/Makefile \
test/unit/xml/om/Makefile
])
AC_OUTPUT