Module Configurator.V1
val create : ?dest_dir:string -> ?ocamlc:string -> ?log:(string -> unit) -> string -> tval ocaml_config_var : t -> string -> string optionReturn the value associated to a variable in the output of
ocamlc -config
val ocaml_config_var_exn : t -> string -> stringval c_test : t -> ?c_flags:string list -> ?link_flags:string list -> string -> boolc_test t ?c_flags ?link_flags c_codetry to compile and link the C code given inc_code. Return whether compilation was successful.
module C_define : sig ... endmodule Pkg_config : sig ... end with type configurator := tmodule Flags : sig ... endval which : t -> string -> string optionwhich t progseekprogin the PATH and return the name of the program prefixed with the first path where it is found. ReturnNonethe the program is not found.
module Process : sig ... endExecute external programs.
val main : ?args:(Stdlib.Arg.key * Stdlib.Arg.spec * Stdlib.Arg.doc) list -> name:string -> (t -> unit) -> unitTypical entry point for configurator programs
val die : ('a, unit, string, 'b) Stdlib.format4 -> 'aAbort execution. If raised from within
main, the argument ofdieis printed asError: <message>.