AC_DEFUN([AX_XEN_OCAML_XENSTORE_CHECK], [
- AS_IF([test "x$OCAMLC" = "xno" || test "x$OCAMLFIND" = "xno"], [
+ AS_IF([test "$ocamltools" = "n"], [
AC_MSG_ERROR([Missing ocaml dependencies for oxenstored, try installing ocaml ocaml-compiler-libs ocaml-runtime ocaml-findlib])
])
])
AC_DEFUN([AX_XEN_OCAML_XENSTORE_DEFAULTS], [
xenstore="oxenstored"
xenstored=$sbindir/oxenstored
- AS_IF([test "x$OCAMLC" = "xno" || test "x$OCAMLFIND" = "xno"], [
+ AS_IF([test "$ocamltools" = "n"], [
xenstore="xenstored"
xenstored=$sbindir/xenstored
])
pyconfig
PYTHONPATH
CHECKPOLICY
-AWK
XENSTORED
+AWK
OCAMLFIND
OCAMLBUILD
OCAMLDOC
-
-
-
-
-
-
-
-
# systemd.m4 - Macros to check for and enable systemd -*- Autoconf -*-
#
# Copyright (C) 2014 Luis R. Rodriguez <mcgrof@suse.com>
-
-if test "x$XENSTORE" = "x"; then :
-
-
-# Check whether --with-xenstored was given.
-if test "${with_xenstored+set}" = set; then :
- withval=$with_xenstored;
- if test "x$withval" = "xxenstored"; then :
-
- xenstore=$withval
- xenstored=$sbindir/xenstored
-
-fi
- if test "x$withval" = "xoxenstored"; then :
-
- xenstore=$withval
- xenstored=$sbindir/oxenstored
-
- if test "x$OCAMLC" = "xno" || test "x$OCAMLFIND" = "xno"; then :
-
- as_fn_error $? "Missing ocaml dependencies for oxenstored, try installing ocaml ocaml-compiler-libs ocaml-runtime ocaml-findlib" "$LINENO" 5
-
-fi
-
-
-fi
- if test "x$withval" != "xoxenstored" && test "x$withval" != "xxenstored"; then :
-
- as_fn_error $? "Unsupported xenstored specified, supported types: oxenstored xenstored" "$LINENO" 5
-
-fi
-
-else
-
-
- xenstore="oxenstored"
- xenstored=$sbindir/oxenstored
- if test "x$OCAMLC" = "xno" || test "x$OCAMLFIND" = "xno"; then :
-
- xenstore="xenstored"
- xenstored=$sbindir/xenstored
-
-fi
-
-
-fi
-
-
-fi
-
-
- XENSTORE=$xenstore
-
- if test "x$XENSTORED" = "x"; then :
-
- XENSTORED=$xenstored
-
-fi
-
-
-
for ac_prog in gawk mawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
fi
fi
+
+
+
+
+
+
+
+
+
+
+if test "x$XENSTORE" = "x"; then :
+
+
+# Check whether --with-xenstored was given.
+if test "${with_xenstored+set}" = set; then :
+ withval=$with_xenstored;
+ if test "x$withval" = "xxenstored"; then :
+
+ xenstore=$withval
+ xenstored=$sbindir/xenstored
+
+fi
+ if test "x$withval" = "xoxenstored"; then :
+
+ xenstore=$withval
+ xenstored=$sbindir/oxenstored
+
+ if test "$ocamltools" = "n"; then :
+
+ as_fn_error $? "Missing ocaml dependencies for oxenstored, try installing ocaml ocaml-compiler-libs ocaml-runtime ocaml-findlib" "$LINENO" 5
+
+fi
+
+
+fi
+ if test "x$withval" != "xoxenstored" && test "x$withval" != "xxenstored"; then :
+
+ as_fn_error $? "Unsupported xenstored specified, supported types: oxenstored xenstored" "$LINENO" 5
+
+fi
+
+else
+
+
+ xenstore="oxenstored"
+ xenstored=$sbindir/oxenstored
+ if test "$ocamltools" = "n"; then :
+
+ xenstore="xenstored"
+ xenstored=$sbindir/xenstored
+
+fi
+
+
+fi
+
+
+fi
+
+
+ XENSTORE=$xenstore
+
+ if test "x$XENSTORED" = "x"; then :
+
+ XENSTORED=$xenstored
+
+fi
+
+
+
if test "x$xsmpolicy" = "xy"; then :
# check for a checkpolicy binary with support for -t xen
m4_include([../m4/fetcher.m4])
m4_include([../m4/ax_compare_version.m4])
m4_include([../m4/paths.m4])
-m4_include([../m4/xenstored.m4])
m4_include([../m4/systemd.m4])
AX_XEN_EXPAND_CONFIG()
AC_PROG_OCAML
AC_PROG_FINDLIB
-AX_XENSTORE_OPTIONS
-AX_XENSTORE_SET
-
AS_IF([test "x$ocamltools" = "xy"], [
AS_IF([test "x$OCAMLC" = "xno" || test "x$OCAMLFIND" = "xno"], [
AS_IF([test "x$enable_ocamltools" = "xyes"], [
])
])
])
+
+m4_include([../m4/xenstored.m4])
+AX_XENSTORE_OPTIONS
+AX_XENSTORE_SET
+
AS_IF([test "x$xsmpolicy" = "xy"], [
AC_PROG_CHECKPOLICY
AS_IF([test "x$CHECKPOLICY" = "xno"], [