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 LAA21876; Thu, 30 Jan 2003 11:52:19 +0100 (MET) 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 LAA16050 for ; Thu, 30 Jan 2003 11:52:18 +0100 (MET) Received: from lri.lri.fr (lri.lri.fr [129.175.15.1]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h0UAqIr19809 for ; Thu, 30 Jan 2003 11:52:18 +0100 (MET) Received: from pc8-123 (mail@pc8-123 [129.175.8.123]) by lri.lri.fr (8.11.6/jtpda-5.3.2) with ESMTP id h0UAj7P29601 for ; Thu, 30 Jan 2003 11:45:07 +0100 (MET) Received: from filliatr by pc8-123 with local (Exim 3.35 #1 (Debian)) id 18eCBv-0006KT-00 for ; Thu, 30 Jan 2003 11:45:07 +0100 From: Jean-Christophe Filliatre MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <15929.563.492728.375388@lri.lri.fr> Date: Thu, 30 Jan 2003 11:45:07 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] question: "autoconfiguration" of Ocaml code (checking for libraries) In-Reply-To: <20030129225438.67089ae8.maxence.guesdon@inria.fr> References: <15928.12917.484208.539720@hector.lesours> <20030129140434.A1219@cilantro.cs.wisc.edu> <15928.13894.193615.945673@hector.lesours> <20030129225438.67089ae8.maxence.guesdon@inria.fr> X-Mailer: VM 7.03 under Emacs 20.7.2 Reply-To: Jean-Christophe.Filliatre@lri.fr (Jean-Christophe Filliatre) X-MailScanner: Found to be clean Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I will not try to argue in favor of autoconf w.r.t to other methods but, as far as autoconf is concerned, I already wrote a configure.in for ocaml programs which sets the following variables (to be substituted in a Makefile or in any other file): # OCAMLC "ocamlc" if present in the path, or a failure # or "ocamlc.opt" if present with same version number as ocamlc # OCAMLOPT "ocamlopt" (or "ocamlopt.opt" if present), or "no" # OCAMLBEST either "byte" if no native compiler was found, # or "opt" otherwise # OCAMLDEP "ocamldep" # OCAMLLEX "ocamllex" (or "ocamllex.opt" if present) # OCAMLYACC "ocamlyac" # OCAMLLIB the path to the ocaml standard library # OCAMLVERSION the ocaml version number # OCAMLWEB "ocamlweb" (not mandatory) # OCAMLWIN32 "yes"/"no" depending on Sys.os_type = "Win32" # EXE ".exe" if OCAMLWIN32=yes, "" otherwise This configure.in can be fetched from http://www.lri.fr/~filliatr/software.en.html As already mentioned in this thread, adding checks for (caml) libraries is not difficult. Hope this helps, -- Jean-Christophe Filliātre (http://www.lri.fr/~filliatr) ------------------- 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