AM_INIT_AUTOMAKE([xmltooling], [1.0])
sinclude(acx_pthread.m4)
+sinclude(doxygen.m4)
+
+# Docygen features
+DX_HTML_FEATURE(ON)
+DX_CHM_FEATURE(OFF)
+DX_CHI_FEATURE(OFF)
+DX_MAN_FEATURE(OFF)
+DX_RTF_FEATURE(OFF)
+DX_XML_FEATURE(OFF)
+DX_PDF_FEATURE(OFF)
+DX_PS_FEATURE(OFF)
+DX_INIT_DOXYGEN(xmltooling, doxygen.cfg, doc/api)
AC_ARG_ENABLE(debug,
AC_HELP_STRING(--enable-debug, [Have GCC compile with symbols (Default = no)]),
enable_debug=$enableval, enable_debug=no)
if test "$enable_debug" = "yes" ; then
- GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
- GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
+ GCC_CFLAGS="$CFLAGS -Wall -g -D_DEBUG"
+ GCC_CXXFLAGS="$CXXFLAGS -Wall -g -D_DEBUG"
else
- GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
- GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
+ GCC_CFLAGS="$CFLAGS -Wall -O2 -DNDEBUG"
+ GCC_CXXFLAGS="$CXXFLAGS -Wall -O2 -DNDEBUG"
fi
AC_PROG_CC([gcc gcc3 cc])
# XML-Security settings
AC_ARG_WITH(xmlsec,
- AC_HELP_STRING([--with-xmlsec=PATH], [where xmlsec is installed]),
- [if test x_$with_xmlsec != x_/usr; then
- LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
- CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
- fi])
+ AC_HELP_STRING([--with-xmlsec=PATH], [where xmlsec is installed]),,
+ [with_xmlsec=/usr])
if test x_$with_xmlsec != x_no; then
if test x_$with_xmlsec != x_/usr; then
[AC_MSG_ERROR([unable to link with XML-Sec])])
else
AC_MSG_WARN([xmlsec disabled, building without signature/encryption support])
- [AC_DEFINE(XMLTOOLING_NO_XMLSEC,1,
- [Define if you wish to disable XML-Security-dependent features.])]
+ AC_DEFINE(XMLTOOLING_NO_XMLSEC,1,
+ [Define if you wish to disable XML-Security-dependent features.])
fi
AM_CONDITIONAL(BUILD_XMLSEC,test x_$with_xmlsec != x_no)
AC_SUBST(CXXTESTFLAGS)
AM_CONDITIONAL(BUILD_UNITTEST,test -f ${CXXTEST})
+LIBTOOL="$LIBTOOL --silent"
+
# output makefiles
AC_OUTPUT(Makefile xmltooling/Makefile xmltoolingtest/Makefile schemas/Makefile)