2 AC_INIT(dirac_parser,1.0)
5 dnl -----------------------------------------------
6 dnl Package name and version number (user defined)
7 dnl -----------------------------------------------
9 DIRAC_PARSER_MAJORMINOR=1.0
10 AC_SUBST(DIRAC_PARSER_MAJORMINOR)
12 AC_CONFIG_HEADERS(config.h)
19 dnl -----------------------------------------------
20 dnl Check if static libraries to be used on non-Windows platforms
21 dnl -----------------------------------------------
22 AM_CONDITIONAL(USE_STATIC, test x"$enable_static" = "xyes")
24 ############################
26 ############################
27 AC_ARG_ENABLE(cppunit, AS_HELP_STRING([--enable-cppunit],[disable cppunit support (default=disabled)]))
28 if test "x$enable_cppunit" == xyes
30 PKG_CHECK_MODULES(CPPUNIT, cppunit > 0, HAVE_CPPUNIT=yes, HAVE_CPPUNIT=no)
31 if test "x${HAVE_CPPUNIT}" != xyes ; then
32 AC_MSG_ERROR([cppunit is required])
34 AC_DEFINE(HAVE_CPPUNIT, 1, [Support for Cppunit])
39 AM_CONDITIONAL(HAVE_CPPUNIT, test "x$HAVE_CPPUNIT" = "xyes")
40 AC_SUBST(CPPUNIT_CFLAGS)
41 AC_SUBST(CPPUNIT_LIBS)
45 dnl When updating this don't forget the SUBDIRS= list in each Makefile.am down
46 AC_CONFIG_FILES([ Makefile \
52 src/unittest/Makefile \