X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=e0b0f7adfbc5c514ad4f8f17056e7a2d2fece282;hb=8d4400eec2d49b540e79f787e1b4b7f90bfa5591;hp=5cb66f44cfe40b9f1e2f566a75f63f987411da87;hpb=d92842594f602cc60b199b7377862a10798dbb7a;p=ocaml-augeas.git diff --git a/configure.ac b/configure.ac index 5cb66f4..e0b0f7a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ -# Bitmatch syntax extension. -# Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones +# Augeas +# Copyright (C) 2008-2012 Red Hat Inc., Richard W.M. Jones # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -17,7 +17,9 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(ocaml-augeas,0.3) +AC_CONFIG_MACRO_DIR([m4]) + +AC_INIT(ocaml-augeas,0.5) dnl Check for basic C environment. AC_PROG_CC @@ -37,13 +39,11 @@ if test "x$OCAMLFIND" = "x"; then AC_MSG_ERROR([You must have ocaml and findlib installed]) fi +dnl Check for libxml2. +PKG_CHECK_MODULES([LIBXML2], [libxml-2.0]) + dnl Check for Augeas C library. -AC_CHECK_LIB(augeas,aug_init, - [], - AC_MSG_ERROR([You must install the Augeas library])) -AC_CHECK_HEADER([augeas.h], - [], - AC_MSG_ERROR([You must install the Augeas development package])) +PKG_CHECK_MODULES([AUGEAS], [augeas]) dnl Produce output files. AC_CONFIG_HEADERS([config.h])