Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] question: "autoconfiguration" of Ocaml code (checking for libraries)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Gerd Stolpmann <info@g...>
Subject: Re: [Caml-list] question: "autoconfiguration" of Ocaml code (checking for libraries)
Am Mit, 2003-01-29 um 20.58 schrieb Basile STARYNKEVITCH:
> Dear All
> 
> (while working on Poesia - see www.poesia-filter.org for more)
> 
> Does anyone have some tricks or code (usable in a GPL-ed opensource
> project) to facilitate configuration (more precisely checking of
> installed tools & libraries) of Ocaml code.
> 
> I need something which checks that
> 
> Ocaml is installed, with version >= 3.06
> 
> ocamlfind is installed (both for bytecode & native)
> 
> [actually my wish would be that ocamlfind is part of ocaml, like
> camlp4 is]
> 
> xstr is installed (both bytecode & native)
> 
> netstring is installed (both bytecode & native)
> 
> ocamlnet is installed, at least version >= 0.92
> 
> etc..
> 
> (Unfortunately, I cannot do distribution specific stuff; I want a
> script usable on Linux Redhat, Mandrake, Debian, ....)

I am normally using self-written shell scripts for that purpose.
They are simple to write, easy to understand, and work for all
Unices.

As an example, here is the configure script of wdialog.
You can find code snippets for all the tests you have
mentioned:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wdialog/wdialog/code/configure?rev=3.6&content-type=text/vnd.viewcvs-markup

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
------------------------------------------------------------
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners