dnl Process this file with autoconf to create configure. dnl ################################################################ dnl # Initialize autoconf dnl ################################################################ AC_INIT(gplate, 0.0.1mtn, guifications-devel@lists.guifications.org) AC_CONFIG_SRCDIR(config.h.in) AC_COPYRIGHT([Copyright 2007-2008 Gary Kramlich]) dnl ################################################################ dnl # Version information dnl ################################################################ GPLATE_VERSION=$GPLATE_MAJOR_VERSION.$GPLATE_MINOR_VERSION.$GPLATE_MICRO_VERSION if test "x$GPLATE_DEVEL_VERSION" != "x0"; then if test "x$GPLATE_MICRO_VERSION" = "x0"; then GPLATE_MICRO_VERSION=$GPLATE_DEVEL_VERSION GPLATE_VERSION=$GPLATE_MAJOR_VERSION.$GPLATE_MINOR_VERSION.$GPLATE_MICRO_VERSION GPLATE_VERSION=$GPLATE_VERSION.$GPLATE_DEVEL_VERSION AC_DEFINE_UNQUOTED(GPLATE_MAJOR_VERSION, $GPLATE_MAJOR_VERSION, [gflib major version.]) AC_DEFINE_UNQUOTED(GPLATE_MINOR_VERSION, $GPLATE_MINOR_VERSION, [gflib minor version.]) AC_DEFINE_UNQUOTED(GPLATE_MICRO_VERSION, $GPLATE_MICRO_VERSION, [gflib micro version.]) AC_DEFINE_UNQUOTED(GPLATE_VERSION, $GPLATE_VERSION, [gflib version]) AC_DEFINE_UNQUOTED(GPLATE_VERSION_S, "$GPLATE_VERSION", [gflib version string]) dnl ################################################################ dnl ################################################################ dnl # +1 : 0 : +1 == new interface that does not break old one. dnl # +1 : 0 : 0 == removed an interface. Breaks old apps. dnl # ? : +1 : ? == internal changes that doesn't break anything. dnl # CURRENT : REVISION : AGE LT_RELEASE=$GPLATE_MAJOR_VERSION.$GPLATE_MINOR_VERSION.$GPLATE_MICRO_VERSION dnl ################################################################ dnl # Initialize automake dnl ################################################################ AM_INIT_AUTOMAKE([foreign dist-bzip2]) dnl ################################################################ dnl ################################################################ AM_CONFIG_HEADER(config.h) dnl # Stash configure args AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments]) dnl ####################################################################### dnl # Make sure we have pkg-config dnl ####################################################################### dnl ####################################################################### dnl ####################################################################### LIBTOOL="$LIBTOOL --silent" dnl ####################################################################### dnl ####################################################################### AH_TOP([ /* our header */ dnl ####################################################################### dnl ####################################################################### AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used]) dnl ####################################################################### dnl # Look for the C compiler dnl ####################################################################### AC_MSG_CHECKING([useful C based html templating library so I don't have to write one]) AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) if test x"$enable_debug" = x"yes" ; then AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) if test x"$GCC" = x"yes"; then CFLAGS="$CFLAGS -Wall -g3" dnl ####################################################################### dnl # do we want to build the tests? dnl ####################################################################### AC_ARG_ENABLE(tests, [ --enable-tests build test programs],,enable_tests=no) if test x"$enable_tests" = x"yes" ; then PKG_CHECK_MODULES(CHECK, [check >= 0.9.4],enable_tests=yes,enable_tests=no) AM_CONDITIONAL(BUILD_TESTS, test x"$enable_tests" = x"yes") dnl ####################################################################### dnl # check for glib and other glib dependencies dnl ####################################################################### PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.14.0 gobject-2.0 >= 2.14.0]) GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0` AC_SUBST(GLIB_GENMARSHAL) dnl ####################################################################### dnl ####################################################################### dnl ####################################################################### dnl ####################################################################### AC_PATH_PROG(XSLTPROC, xsltproc, [yes], [no]) AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" = x"yes") dnl ####################################################################### dnl ####################################################################### dnl ####################################################################### dnl ####################################################################### echo AC_PACKAGE_NAME AC_PACKAGE_VERSION Configuration complete echo Debugging enabled................: $enable_debug echo Build tests......................: $enable_tests echo Type make to compile