Module Configurator

type t
val create : ?dest_dir:Base.string ‑> ?ocamlc:Base.string ‑> ?log:(Base.string ‑> Base.unit) ‑> Base.string ‑> t
val ocaml_config_var : t ‑> Base.string ‑> Base.string Base.option

Return the value associated to a variable in the output of ocamlc -config

val ocaml_config_var_exn : t ‑> Base.string ‑> Base.string
val c_test : t ‑> ?c_flags:Base.string Base.list ‑> ?link_flags:Base.string Base.list ‑> Base.string ‑> Base.bool

c_test t ?c_flags ?link_flags c_code try to compile and link the C code given in c_code. Return whether compilation was successful.

module C_define : sig ... end
module Pkg_config : sig ... end with type configurator := t
val main : ?args:(Caml.Arg.key * Caml.Arg.spec * Caml.Arg.doc) Base.list ‑> name:Base.string ‑> (t ‑> Base.unit) ‑> Base.unit

Typical entry point for configurator programs

val die : ('aBase.unitBase.string'bBase.format4 ‑> 'a

Abort execution. If raised from within main, the argument of die is printed as Error: <message>.