Am Mittwoch, den 09.09.2015, 15:44 +0200 schrieb Sébastien Hinderer: > Dear Xavier, > > Many thanks for your response. > > > You can't get more precise than the configure script of OCaml :-) > > Sure! > > > > Is there a way for a configure script to programmatically determine the > > > availability of the feature on one given platform? > > > > Just check for the presence of dynlink.cmxa in OCaml's standard > > library directory. > > OK! Quitesimple,thanks. > > So am I correct that the question ``is Dynlink supported'' only makes > sense when one compiles a native-code program, because this always works > for byte-code? The question makes also a lot of sense for bytecode, because not all platforms can load dll's. Bytecode that does not need additional dll's can always be loaded. On the command-line you can check with something like echo '' | ocaml unix.cma -stdin (unchecked, let's hope the error is correctly propagated). E.g. an unsupported platform used to be Cygwin. Gerd -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de My OCaml site: http://www.camlcity.org Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------