caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* autoconf input for ocaml applications
@ 2000-10-31 16:15 Jean-Christophe Filliatre
  2000-10-31 17:27 ` Michael Hicks
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe Filliatre @ 2000-10-31 16:15 UTC (permalink / raw)
  To: caml-list


Hello ocamlers,

I wrote an autoconf input  for ocaml applications that could be useful
for others. It is available here (together with a suggested Makefile):

    http://www.lri.fr/~filliatr/software.en.html

It checks for  ocaml compilers and tools and  determines the following
variables:

   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"
   OCAMLYACC     "ocamlyac"
   OCAMLLIB      the path to the ocaml standard library
   OCAMLVERSION  the ocaml version number

Then it  is easy  to write  a Makefile compiling  with the  best ocaml
compiler available without requiring the  user to specify which one it
is. (Similarly for installation issues.)

CREDITS: this  autoconf input was built  on one sent to  me by Georges
Mariano.

-- 
Jean-Christophe FILLIATRE
  mailto:Jean-Christophe.Filliatre@lri.fr
  http://www.lri.fr/~filliatr



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: autoconf input for ocaml applications
  2000-10-31 16:15 autoconf input for ocaml applications Jean-Christophe Filliatre
@ 2000-10-31 17:27 ` Michael Hicks
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Hicks @ 2000-10-31 17:27 UTC (permalink / raw)
  To: Jean-Christophe.Filliatre; +Cc: caml-list

> It checks for  ocaml compilers and tools and  determines the following
> variables:

   ...

Thanks for the excellent tool!

Another useful variable to check for, in the case of the byte-code compiler,
is whether it was compiled with native or user-level threads, as the Thread
interface differs for each (e.g. user-threads support the kill operation but
native threads don't), and there are some other, more subtle differences.

Mike

-- 
Michael Hicks
Ph.D. Candidate, the University of Pennsylvania
http://www.cis.upenn.edu/~mwh            mailto://mwh@dsl.cis.upenn.edu
*There was a man who entered a local paper's pun contest; He sent in ten
*different puns, in the hope that at least one of the puns would win.  
*Unfortunately, no pun in ten did.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-02 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-31 16:15 autoconf input for ocaml applications Jean-Christophe Filliatre
2000-10-31 17:27 ` Michael Hicks

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).