module Sconf: sig .. end
Stuff for detecting ocaml, tools and libraries, to use in the configuration
process of your own developments.
module OCaml_conf: sig .. end
Main configuration detection module.
Some useful functions to check or detect libraries
val check_lablgtk2 : ?modes:[ `Byte | `Opt ] list -> OCaml_conf.ocaml_conf -> unit
check_lablgtk2 conf checks that we can link with Lablgtk2, using
"+lablgtk2" as include directory.
Call
!fatal_error if the test fails.
Author(s): Maxence Guesdon
Version: 0.1

OCaml_conf.check_lablgtk2
modes : can be used to indicate the compilation modes to test.
Default is [`Byte;`Opt].
val detect_lablgtk2 : ?modes:[ `Byte | `Opt ] list ->
OCaml_conf.ocaml_conf -> string list * string list
detect_lablgtk2 conf checks that we can link with LablGtk2, trying first
with ocamlfind installation directory, then with default installation directory.
Return
(include directories, list of libraries) if the function was able to link, orelse
([], []).
The libraries returned are with ".cma" extension. One can use the
byte_ext_to_opt function to convert to ".cmxa" extensions.
Author(s): Maxence Guesdon
Version: 0.3

OCaml_conf.detect_lablgtk2
modes : can be used to indicate the compilation modes to test.
Default is [`Byte;`Opt].
val check_xml_light : ?modes:[ `Byte | `Opt ] list -> OCaml_conf.ocaml_conf -> unit
check_xml_light conf checks that we can link with Xml-light.
Call
!fatal_error if the test fails.
Author(s): Maxence Guesdon
Version: 0.1

OCaml_conf.check_xml_light
modes : can be used to indicate the compilation modes to test.
Default is [`Byte;`Opt].
val detect_xml_light : ?modes:[ `Byte | `Opt ] list ->
OCaml_conf.ocaml_conf -> string list * string list
detect_xml_light conf checks that we can link with Xml-light, trying first
with ocamlfind installation directory, then with default installation directory, then
in +xml-light directory (for debian installations).
Return
(include directories, list of libraries) if the function was able to link, orelse
([], []).
The libraries returned are with ".cma" extension. One can use the
byte_ext_to_opt function to convert to ".cmxa" extensions.
Author(s): Maxence Guesdon
Version: 0.3

OCaml_conf.detect_xml_light
modes : can be used to indicate the compilation modes to test.
Default is [`Byte;`Opt].
val detect_lablgl : ?modes:[ `Byte | `Opt ] list ->
OCaml_conf.ocaml_conf -> string list * string list
detect_lablgl conf checks that we can link with LablGL, trying first
with Togl, then with Glut. Returns
(include directories, list of libraries) if
the function was able to link, orelse
([], []).
The libraries returned are with ".cma" extension. One can use the
byte_ext_to_opt function to convert to ".cmxa" extensions.
Author(s): Maxence Guesdon
Version: 0.2

OCaml_conf.detect_lablgl
modes : can be used to indicate the compilation modes to test.
Default is [`Byte;`Opt].
val cameleon2_libdir : unit -> string list
cameleon2_libdir () checks that the
cam-config2.x tool is in the PATH,
then runs it with the
-l option to retrieve the directory of Cameleon2 libraries.
If
cam-config2.x is not found or any error occurs, the function returns [].
Author(s): Maxence Guesdon
Version: 0.2

OCaml_conf.cameleon2_libdir
val check_gmp : ?modes:[ `Byte | `Opt ] list -> OCaml_conf.ocaml_conf -> unit
check_gmp conf checks that we can link with Gmp, using "+gmp" as include directory.
Call
!fatal_error if the test fails.
Author(s): Maxence Guesdon
Version: 0.2

OCaml_conf.check_gmp
modes : can be used to indicate the compilation modes to test.
Default is [`Byte;`Opt].
val check_mlgraph : ?modes:[ `Byte | `Opt ] list -> OCaml_conf.ocaml_conf -> unit
check_mlgraph conf checks that we can link with Mlgraph, using "+mlgraph" as include directory.
Call
!fatal_error if the test fails.
Author(s): Maxence Guesdon
Version: 0.2

OCaml_conf.check_mlgraph
modes : can be used to indicate the compilation modes to test.
Default is [`Byte;`Opt].
val check_ocaml_gnuplot : ?modes:[ `Byte | `Opt ] list -> OCaml_conf.ocaml_conf -> unit
check_gnuplot conf checks that we can link with OCaml-gnuplot, using "+gnuplot" as include directory.
Author(s): Maxence Guesdon
Version: 0.3

OCaml_conf.check_gnuplot
modes : can be used to indicate the compilation modes to test.
Call !fatal_error if the test fails.
Default is [`Byte;`Opt].
val check_gnuplot_has_boxes : OCaml_conf.ocaml_conf -> bool
gnuplot_has_boxes conf returns whether the OCaml gnuplot library
defines a Boxes constructor, using "+gnuplot" as include directory.
Author(s): Maxence Guesdon
Version: 0.2

OCaml_conf.gnuplot_has_boxes
val check_cryptokit : ?modes:[ `Byte | `Opt ] list -> OCaml_conf.ocaml_conf -> unit
check_cryptokit conf checks that we can link with Cryptokit.
Call
!fatal_error if the test fails.
Author(s): Maxence Guesdon
Version: 0.2

OCaml_conf.check_cryptokit
modes : can be used to indicate the compilation modes to test.
Default is [`Byte;`Opt].
val detect_mysql : ?modes:[ `Byte | `Opt ] list -> OCaml_conf.ocaml_conf -> string list
detect_mysql conf checks that we can link with OCaml-MySQL, using
ocamlfind query mysql to retrieve the include directories.
If so, the function returns the include directories.
Call
!fatal_error if the test fails.
Author(s): Maxence Guesdon
Version: 0.2

OCaml_conf.detect_mysql
modes : can be used to indicate the compilation modes to test.
Default is [`Byte;`Opt].
val check_ocgi : ?modes:[ `Byte | `Opt ] list -> OCaml_conf.ocaml_conf -> unit
check_ocgi conf checks that we can link with Ocgi.
Call
!fatal_error if the test fails.
Author(s): Maxence Guesdon
Version: 0.2

OCaml_conf.check_ocgi
modes : can be used to indicate the compilation modes to test.
Default is [`Byte;`Opt].
: ?modes:[ `Byte | `Opt ] list ->
string list -> OCaml_conf.ocaml_conf -> string list * string list
detect_lablgtkextras conf lablgtk_includes checks that we can link with
LablGtk-extras, trying first
with ocamlfind installation directory, then with default installation directory.
Return
(include directories, list of libraries) if the function was able to link, orelse
([], []).
The libraries returned are with ".cma" extension. One can use the
byte_ext_to_opt function to convert to ".cmxa" extensions.
Author(s): Maxence Guesdon
Version: 0.1

OCaml_conf.detect_lablgtkextras
modes : can be used to indicate the compilation modes to test.
Default is [`Byte;`Opt].