caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Will Benton <willb@cs.wisc.edu>
To: Basile STARYNKEVITCH <basile@starynkevitch.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] question: "autoconfiguration" of Ocaml code (checking for libraries)
Date: Wed, 29 Jan 2003 14:22:54 -0600	[thread overview]
Message-ID: <20030129142253.D1219@cilantro.cs.wisc.edu> (raw)
In-Reply-To: <15928.13894.193615.945673@hector.lesours>; from basile@starynkevitch.net on Wed, Jan 29, 2003 at 09:15:02PM +0100

On Wed, Jan 29, 2003 at 09:15:02PM +0100, Basile STARYNKEVITCH wrote:

> Thanks. I know about autoconf, but would like to avoid it. Apparently,
> the Ocaml team don't like it neither, since they don't use it in
> Ocaml.
>
> I was seeking for something simpler. I'm not very fond of m4 macros
> (even if I did hack several years ago such stuff).

That's certainly fair.  There is a steep learning curve, but the
advantage is portability and not having to write all of the corner
cases yourself.

> In my opinion, autoconf was suited for the problem of configuring C
> code for lots of Unix variants. This is not what I need (in particular
> Ocaml has a unique implementation).

Autoconf has a lot of built-in macros for C/UNIX code, for sure, but
to say that you can't use it for Ocaml code is like saying that you
can't use GNU make for Ocaml projects (or csound code, or LaTeX
documents).  It is a particularly general-purpose tool, although it
will want to be able to preprocess the configurable files somehow.  In
C, this is trivial -- m4 macros for the Makefile which define
preprocessor constants.  In other language contexts, you will have to
use m4 macros.

> Maybe my perception of autoconf is wrong, but the mere fact that my
> Debian distribution (ok it is sid, a.k.a unstable) requires several
> versions of it makes me really feel uneasy.

I don't understand your concern.  The autoconf package generates a
configure script, which is portable to any system, even one without any
autoconf installed.  The reason to have multiple versions of autoconf
installed is that different development versions of packages are
relying on different versions of autoconf's macros/behaviors *to
generate* the configure script.



best,
wb

-- 
Will Benton
willb@acm.org 
-------------------
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-29 20:22 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 [this message]
2003-01-29 21:54     ` Maxence Guesdon
2003-01-30 10:45       ` Jean-Christophe Filliatre
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=20030129142253.D1219@cilantro.cs.wisc.edu \
    --to=willb@cs.wisc.edu \
    --cc=basile@starynkevitch.net \
    --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).