diff -r 000000000000 -r fe592b4168f3 configure.ac --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configure.ac Wed Oct 10 22:58:48 2012 +0100 @@ -0,0 +1,80 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_INIT([libxexpr],[1.0],[ali@juiblex.co.uk]) +AC_PREREQ(2.59) +AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_AUX_DIR([config]) +AC_CONFIG_SRCDIR([libxexpr/xexpr.h]) +AC_CONFIG_HEADER([config.h]) +AC_CONFIG_FILES([Makefile +libxexpr/Makefile +libxexpr/libxexpr.pc +src/Makefile +test/Makefile +test/spec/Makefile +test/idb/Makefile +test/libxexpr/Makefile +docs/reference/Makefile +docs/reference/version.xml +]) +AM_INIT_AUTOMAKE(no-define) +AC_CANONICAL_HOST +AC_SUBST(HOST_OS,$host_os) +AC_SUBST(HOST_CPU,$host_cpu) + +# libtool versioning for libxexpr. For a release one of the following +# must apply: +# +# - If interfaces have been changed or added, but binary compatibility has +# been preserved, increment CURRENT and AGE and set REVISION to 0. +# - If binary compatibility has been broken (eg removed or changed interfaces), +# increment CURRENT and set AGE and REVISION to 0. +# - If the interface is the same as the previous version, increment REVISION. +# +lt_current=0 +lt_revision=0 +lt_age=0 +LIBXEXPR_LT_VERSION_INFO="$lt_current:$lt_revision:$lt_age" +AC_SUBST(LIBXEXPR_LT_VERSION_INFO) + +################################################## +# Checks for programs. +################################################## +AC_PROG_CC +AC_LIBTOOL_WIN32_DLL +AC_PROG_LIBTOOL +PKG_PROG_PKG_CONFIG +GTK_DOC_CHECK([1.11],[--flavour no-tmpl]) + +################################################## +# Checks for header files. +################################################## +AC_HEADER_STDC + +################################################## +# Checks for typedefs, structures, and compiler characteristics. +################################################## + +################################################## +# Checks for libraries. +################################################## +PKG_CHECK_MODULES(GLIB,[glib-2.0]) +PKG_CHECK_MODULES(LIBXML,[libxml-2.0]) +LIBXEXPR_CFLAGS="$LIBXML_CFLAGS $GLIB_CFLAGS" +LIBXEXPR_LIBS="$LIBXML_LIBS $GLIB_LIBS" +AC_SUBST(LIBXEXPR_CFLAGS) +AC_SUBST(LIBXEXPR_LIBS) + +################################################## +# Checks for library functions. +################################################## + +################################################## +# Checks for processor independent files. +################################################## + +################################################## +# Generate the various configured files +################################################## +AC_OUTPUT