Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] autoconf and caml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Yaron M. Minsky <yminsky@C...>
Subject: Re: [Caml-list] autoconf and caml
Yann Régis-Gianas wrote:
> On Fri, Sep 06, 2002 at 01:12:31PM +0300, Kenneth Oksanen wrote:
> 
> 	What about using camlp4 to transform config.h file into a
> valid Objective Caml module ? I'm using the autotools as a simple user
> but config.h is a sequence of #define, is'nt it ? So, we can transform these macros into values declaration. For example:
> 

Yes, but you actually don't really want simple values here, because 
sometimes you want to use those values to do conditional compilation, 
and ocaml values won't help you with that.

y

> 
> config.hh
> ---
> 
> /* The ocaml compiler */
> #define OCAMLC "ocamlc"
> 
> /* The ocaml includes path */
> #define OCAMLINCPATH "/usr/lib/ocaml/"
> 
> 
> Becomes:
> 
> config.ml
> ---
> 
> (* The ocaml compiler *)
> let ocamlc = "ocamlc"
> 
> (* The ocaml includes path *)
> let ocamlincpath = "/usr/lib/ocaml"
> 
> 
> 	Perhaps, I did not understand your problem but I think that
> autoconf is not the hardest autotool to bind to ocaml. For my part, I
> am currently studying the integration of ocaml in Automake. It is a
> real problem because of a lot of exotic features of ocaml development
> system like extensions, byte/native code mode, camlp4 ...
> 
> 


-------------------
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