[Pkg-libvirt-commits] [libguestfs] 194/384: configure: look for the oUnit OCaml module

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:56:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 1f5e525533f1f2d8c6f1f5cfe21271c0885dc6b5
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Thu Jan 22 17:39:23 2015 +0100

    configure: look for the oUnit OCaml module
    
    It will be used for the OCaml unit tests.
---
 README       | 3 +++
 configure.ac | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/README b/README
index 288cf1a..272a74c 100644
--- a/README
+++ b/README
@@ -241,6 +241,9 @@ The full requirements are described below.
 | perl-libintl |             | O | Perl module for localization.           |
 +--------------+-------------+---+-----------------------------------------+
 | bash-completion            | O | For tab-completion of commands in bash. |
++--------------+-------------+---+-----------------------------------------+
+| ocaml-ounit  |             | O | For the tests of the common OCaml       |
+|              |             |   | modules.                                |
 +==============+=============+===+=========================================+
                                R = Required
                                O = Optional
diff --git a/configure.ac b/configure.ac
index e0fb481..e360bbb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1120,6 +1120,7 @@ AS_IF([test "x$OCAMLC" != "xno"],[
 ])
 
 OCAML_PKG_gettext=no
+OCAML_PKG_oUnit=no
 AS_IF([test "x$OCAMLC" != "xno"],[
     # Create mllib/common_gettext.ml, gettext functions or stubs.
 
@@ -1128,9 +1129,13 @@ AS_IF([test "x$OCAMLC" != "xno"],[
     mkdir -p mllib
 
     GUESTFS_CREATE_COMMON_GETTEXT_ML([mllib/common_gettext.ml])
+
+    AC_CHECK_OCAML_PKG(oUnit)
 ])
 AM_CONDITIONAL([HAVE_OCAML_PKG_GETTEXT],
     [test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno" && test "x$OCAML_PKG_gettext" != "xno"])
+AM_CONDITIONAL([HAVE_OCAML_PKG_OUNIT],
+    [test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno" && test "x$OCAML_PKG_oUnit" != "xno"])
 
 AC_CHECK_PROG([OCAML_GETTEXT],[ocaml-gettext],[ocaml-gettext],[no])
 AM_CONDITIONAL([HAVE_OCAML_GETTEXT],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list