From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA32604; Fri, 6 Sep 2002 12:12:33 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA32487 for ; Fri, 6 Sep 2002 12:12:32 +0200 (MET DST) Received: from hutcs.cs.hut.fi (hutcs.cs.hut.fi [130.233.192.7]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g86ACW114751 for ; Fri, 6 Sep 2002 12:12:32 +0200 (MET DST) Received: from cessu by hutcs.cs.hut.fi with local (Exim 4.04) id 17nG6J-0005Bs-00; Fri, 06 Sep 2002 13:12:31 +0300 From: Kenneth Oksanen To: la@iki.fi CC: caml-list@inria.fr In-reply-to: <20020905161617.A29272@kruuna.Helsinki.FI> (message from Lauri Alanko on Thu, 5 Sep 2002 16:16:18 +0300) Subject: Re: [Caml-list] autoconf and caml References: <20020905135720.D5343@pauillac.inria.fr> <20020905161617.A29272@kruuna.Helsinki.FI> Message-Id: Date: Fri, 06 Sep 2002 13:12:31 +0300 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >On Thu, Sep 05, 2002 at 03:23:17PM +0300, Kenneth Oksanen wrote: >> ocamllex produces code that is not cpp-safe. >Can't you use m4 or some other (marginally) less brain-dead preprocessor? I could use m4 or camlp4 or whatever, if GNU autoconf and assorted auto* -tools would produce them. People seem to have missed the actual problem I have posed: what is the most convenient and hassle-free mechanism for transporting information produced by running ./configure to O'Caml source code? Such features include directory prefixes, auxiliary program paths, various constants, features {en,dis}abled with --enable-X and alike. I'm *NOT* trying to use the preprocessor for any weird syntactic abstractions or anything of that kind. >>From the answers I've seen so far, no common, truly convenient and completely hassle-free mechanism exists. Hopefully this problem will find a clean solution some day. In the meantime I can live with -pp cpp and bite a few small kludges, like adding a (*don't remove me*) ;-) -=- ; Kenneth Oksanen, email: cessu@iki.fi, http://www.iki.fi/~cessu ((lambda(a) (a a((lambda(a)(lambda()(set! a(+ a 1))a))1)))(lambda(a c) ((lambda(b) (newline)(write b)(a a((lambda(c)(lambda()(c c)))(lambda(a) ((lambda(c) (if(=(modulo c b)0)(a a)c))(c))))))(c)))) ; Scheme me! ------------------- 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