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 RAA21446; Wed, 4 Sep 2002 17:20:56 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA21100 for ; Wed, 4 Sep 2002 17:20:55 +0200 (MET DST) Received: from hutcs.cs.hut.fi (hutcs.cs.hut.fi [130.233.192.7]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g84FKs925866 for ; Wed, 4 Sep 2002 17:20:54 +0200 (MET DST) Received: from cessu by hutcs.cs.hut.fi with local (Exim 4.04) id 17mbxe-0007W8-00 for caml-list@inria.fr; Wed, 04 Sep 2002 18:20:54 +0300 From: Kenneth Oksanen To: caml-list@inria.fr Subject: [Caml-list] autoconf and caml Message-Id: Date: Wed, 04 Sep 2002 18:20:54 +0300 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'm writing a piece of software using O'Caml and GNU autoconf (among others). In C the results of running `./configure' are conveniently accessed with `#include "config.h"'. My current solution is to preprocess also the O'Caml code, but this requires some clumsy hacks in Makefiles etc. Is there a better way? If not, then I'ld suggest some flag in O'Caml which would run the source files through cpp. -=- ; 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