2 # Process this file with autoconf to produce a configure script.
4 AC_INIT([libxexpr],[1.0],[ali@juiblex.co.uk])
6 AC_CONFIG_MACRO_DIR([m4])
7 AC_CONFIG_AUX_DIR([config])
8 AC_CONFIG_SRCDIR([libxexpr/xexpr.h])
9 AC_CONFIG_HEADER([config.h])
10 AC_CONFIG_FILES([Makefile
17 test/libxexpr/Makefile
18 docs/reference/Makefile
19 docs/reference/version.xml
21 AM_INIT_AUTOMAKE(no-define)
23 AC_SUBST(HOST_OS,$host_os)
24 AC_SUBST(HOST_CPU,$host_cpu)
26 # libtool versioning for libxexpr. For a release one of the following
29 # - If interfaces have been changed or added, but binary compatibility has
30 # been preserved, increment CURRENT and AGE and set REVISION to 0.
31 # - If binary compatibility has been broken (eg removed or changed interfaces),
32 # increment CURRENT and set AGE and REVISION to 0.
33 # - If the interface is the same as the previous version, increment REVISION.
38 LIBXEXPR_LT_VERSION_INFO="$lt_current:$lt_revision:$lt_age"
39 AC_SUBST(LIBXEXPR_LT_VERSION_INFO)
41 ##################################################
42 # Checks for programs.
43 ##################################################
48 GTK_DOC_CHECK([1.11],[--flavour no-tmpl])
50 ##################################################
51 # Checks for header files.
52 ##################################################
55 ##################################################
56 # Checks for typedefs, structures, and compiler characteristics.
57 ##################################################
59 ##################################################
60 # Checks for libraries.
61 ##################################################
62 PKG_CHECK_MODULES(GLIB,[glib-2.0])
63 PKG_CHECK_MODULES(LIBXML,[libxml-2.0])
64 LIBXEXPR_CFLAGS="$LIBXML_CFLAGS $GLIB_CFLAGS"
65 LIBXEXPR_LIBS="$LIBXML_LIBS $GLIB_LIBS"
66 AC_SUBST(LIBXEXPR_CFLAGS)
67 AC_SUBST(LIBXEXPR_LIBS)
69 ##################################################
70 # Checks for library functions.
71 ##################################################
73 ##################################################
74 # Checks for processor independent files.
75 ##################################################
77 ##################################################
78 # Generate the various configured files
79 ##################################################