caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@lri.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] question: "autoconfiguration" of Ocaml code (checking for libraries)
Date: Thu, 30 Jan 2003 11:45:07 +0100	[thread overview]
Message-ID: <15929.563.492728.375388@lri.lri.fr> (raw)
In-Reply-To: <20030129225438.67089ae8.maxence.guesdon@inria.fr>


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


  reply	other threads:[~2003-01-30 10:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-29 19:58 Basile STARYNKEVITCH
2003-01-29 20:04 ` Will Benton
2003-01-29 20:15   ` Basile STARYNKEVITCH
2003-01-29 20:22     ` Will Benton
2003-01-29 21:54     ` Maxence Guesdon
2003-01-30 10:45       ` Jean-Christophe Filliatre [this message]
2003-01-30 13:59       ` Damien Doligez
2003-01-29 21:43 ` Gerd Stolpmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15929.563.492728.375388@lri.lri.fr \
    --to=jean-christophe.filliatre@lri.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).