1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/configure.ac Wed Oct 10 22:58:48 2012 +0100
1.3 @@ -0,0 +1,80 @@
1.4 +# -*- Autoconf -*-
1.5 +# Process this file with autoconf to produce a configure script.
1.6 +
1.7 +AC_INIT([libxexpr],[1.0],[ali@juiblex.co.uk])
1.8 +AC_PREREQ(2.59)
1.9 +AC_CONFIG_MACRO_DIR([m4])
1.10 +AC_CONFIG_AUX_DIR([config])
1.11 +AC_CONFIG_SRCDIR([libxexpr/xexpr.h])
1.12 +AC_CONFIG_HEADER([config.h])
1.13 +AC_CONFIG_FILES([Makefile
1.14 +libxexpr/Makefile
1.15 +libxexpr/libxexpr.pc
1.16 +src/Makefile
1.17 +test/Makefile
1.18 +test/spec/Makefile
1.19 +test/idb/Makefile
1.20 +test/libxexpr/Makefile
1.21 +docs/reference/Makefile
1.22 +docs/reference/version.xml
1.23 +])
1.24 +AM_INIT_AUTOMAKE(no-define)
1.25 +AC_CANONICAL_HOST
1.26 +AC_SUBST(HOST_OS,$host_os)
1.27 +AC_SUBST(HOST_CPU,$host_cpu)
1.28 +
1.29 +# libtool versioning for libxexpr. For a release one of the following
1.30 +# must apply:
1.31 +#
1.32 +# - If interfaces have been changed or added, but binary compatibility has
1.33 +# been preserved, increment CURRENT and AGE and set REVISION to 0.
1.34 +# - If binary compatibility has been broken (eg removed or changed interfaces),
1.35 +# increment CURRENT and set AGE and REVISION to 0.
1.36 +# - If the interface is the same as the previous version, increment REVISION.
1.37 +#
1.38 +lt_current=0
1.39 +lt_revision=0
1.40 +lt_age=0
1.41 +LIBXEXPR_LT_VERSION_INFO="$lt_current:$lt_revision:$lt_age"
1.42 +AC_SUBST(LIBXEXPR_LT_VERSION_INFO)
1.43 +
1.44 +##################################################
1.45 +# Checks for programs.
1.46 +##################################################
1.47 +AC_PROG_CC
1.48 +AC_LIBTOOL_WIN32_DLL
1.49 +AC_PROG_LIBTOOL
1.50 +PKG_PROG_PKG_CONFIG
1.51 +GTK_DOC_CHECK([1.11],[--flavour no-tmpl])
1.52 +
1.53 +##################################################
1.54 +# Checks for header files.
1.55 +##################################################
1.56 +AC_HEADER_STDC
1.57 +
1.58 +##################################################
1.59 +# Checks for typedefs, structures, and compiler characteristics.
1.60 +##################################################
1.61 +
1.62 +##################################################
1.63 +# Checks for libraries.
1.64 +##################################################
1.65 +PKG_CHECK_MODULES(GLIB,[glib-2.0])
1.66 +PKG_CHECK_MODULES(LIBXML,[libxml-2.0])
1.67 +LIBXEXPR_CFLAGS="$LIBXML_CFLAGS $GLIB_CFLAGS"
1.68 +LIBXEXPR_LIBS="$LIBXML_LIBS $GLIB_LIBS"
1.69 +AC_SUBST(LIBXEXPR_CFLAGS)
1.70 +AC_SUBST(LIBXEXPR_LIBS)
1.71 +
1.72 +##################################################
1.73 +# Checks for library functions.
1.74 +##################################################
1.75 +
1.76 +##################################################
1.77 +# Checks for processor independent files.
1.78 +##################################################
1.79 +
1.80 +##################################################
1.81 +# Generate the various configured files
1.82 +##################################################
1.83 +AC_OUTPUT