ocaml-autoconf patches
Hello,
I have a small patches concerning ocaml-autoconf attached to this mail.
It just adds CHECK_PROG_OCAMLBUILD.
I also want to extend other PROG_* macro to support a default
if-found/if-not-found action rather than testing the value of the
attached variable.
What do you think about it ?
Regards
Sylvain Le Gall
ps: sorry for the non-debian relative noise
>From 0669f8bd842a478c2001c83920ad1b790e90fa75 Mon Sep 17 00:00:00 2001
From: Sylvain Le Gall <gildor@debian.org>
Date: Mon, 9 Feb 2009 19:31:08 +0100
Subject: [PATCH] Add AC_PROG_OCAMLBUILD
---
ocaml.m4 | 7 +++++++
ocaml.m4.pod | 5 +++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/ocaml.m4 b/ocaml.m4
index 254d255..696dcb1 100644
--- a/ocaml.m4
+++ b/ocaml.m4
@@ -146,6 +146,13 @@ AC_DEFUN([AC_PROG_FINDLIB],
AC_SUBST([OCAMLFIND])
])
+AC_DEFUN([AC_PROG_OCAMLBUILD],
+[dnl
+
+ # checking for ocamlbuild
+ AC_CHECK_TOOL([OCAMLBUILD],[ocamlbuild],[no])
+ AC_SUBST([OCAMLBUILD])
+])
dnl Thanks to Jim Meyering for working this next bit out for us.
dnl XXX We should define AS_TR_SH if it's not defined already
diff --git a/ocaml.m4.pod b/ocaml.m4.pod
index 9552967..8dbe940 100644
--- a/ocaml.m4.pod
+++ b/ocaml.m4.pod
@@ -123,6 +123,11 @@ respective variable names is as follows:
camlp4r CAMLP4R
camlp4rf CAMLP4RF
+=head1 AC_PROG_OCAMLBUILD
+
+This checks for ocamlbuild program and sets C<OCAMLBUILD> to the name
+of the program or C<no> if not found.
+
=head1 AC_CHECK_OCAML_PKG
This is the main macro that can be used to detect the presence of
--
1.5.6.5
Reply to: