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 MAA00116; Fri, 6 Sep 2002 12:26:57 +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 MAA00345 for ; Fri, 6 Sep 2002 12:26:56 +0200 (MET DST) Received: from madiran.inria.fr (madiran.inria.fr [128.93.8.77]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g86APs115310; Fri, 6 Sep 2002 12:25:54 +0200 (MET DST) Received: from localhost (madiran.inria.fr [128.93.8.77]) by madiran.inria.fr (Postfix) with ESMTP id 6446DA78C9; Fri, 6 Sep 2002 12:25:54 +0200 (CEST) Date: Fri, 06 Sep 2002 12:25:54 +0200 (CEST) Message-Id: <20020906.122554.115917058.Jun.Furuse@inria.fr> To: cessu@hutcs.cs.hut.fi Cc: la@iki.fi, caml-list@inria.fr Subject: Re: [Caml-list] autoconf and caml From: "Jun P.FURUSE" In-Reply-To: References: <20020905161617.A29272@kruuna.Helsinki.FI> X-URL: http://pauillac.inria.fr/~furuse/ X-Face: %NBEt80q,?D$3WNc|UEDB(`B%4yRMn~m!-wQF`!QA@=cZ~?MZJwomF~)69N/W6e/n1),d X-Mailer: Mew version 2.2 on XEmacs 21.4.6 (Common Lisp) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, > 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*) ;-) Do not AC_SUBST(VAR) and AC_OUTPUT(config.ml) solve your problem ? You can find such examples of the combination of configure script and .ml files like camlimages or advi: http://pauillac.inria.fr/camlimages/ http://pauillac.inria.fr/advi/ Hopes this helps. Jun ------------------- 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