<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Sven Panne wrote:
<blockquote cite="mid200508292315.07539.Sven.Panne@aedion.de"
 type="cite">
  <pre wrap="">Am Samstag, 27. August 2005 15:02 schrieb Seth Kurtzberg:
  </pre>
  <blockquote type="cite">
    <pre wrap="">[...]
I would suggest that, while configure does solve a problem, it isn't the
best way to solve the problem.  A properly abstracted and layered
implementation of O/S specific calls, with each environment supported by
an implementation file, is much closer to "doing the right thing."
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Well, I don't want to start a Jihad regarding the usefulness of autoconf, the 
autoconf documentation itself contains a rather good explanation why testing 
features is far superior than assuming a fixed (and probably much too small) 
set of platforms in advance.

I only want to point out that the autotools solve problems which go *far* 
beyond anything which could be achieved by writing simple abstractions for 
platform features: It can find out if your compiler/linker/library/header/... 
has a certain bug (the autoconf macros are full of examples for every 
category), which version of an API (which might have changed in a 
non-backwards-compatible way, see e.g. OpenAL) is actually contained in a 
library/header, which dozens of (often proprietary) linker options are needed 
to use a certain feature, how to create and use a dynamic library, etc. etc.  
Simply writing an abstraction layer would solve none of the problems 
mentioned above. Of course all these problems are bad and should not be there 
at all, but simply ignoring them means closing one's eyes before the current 
"state-of-the-art" in real-life computer science. And for a casual user, 
these are all *hard* problems! Trying to solve these problems without 
autotools, one usually ends up re-inventing the wheel (i.e. writing 
autotools-like code), but probably much, much worse (see e.g. qmake).

  </pre>
  <blockquote type="cite">
    <pre wrap="">[...] I do realize that this position is more or less tilting at windmills.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I'd really be happy to learn how the problems mentioned above could be solved 
without autotools or basically re-inventing autotools, seriously. I hate 
writing obscure lines in M4 and sh probably as much as you do, but I can't 
see a viable alternative. Rewriting all this stuff (plus all the utilities 
used in the macros!) in Haskell doesn't look very attractive and realistic...
  </pre>
</blockquote>
I'd have to turn the question around.&nbsp; In several major projects, I've
never come across a situation where any of the autoconf hacks are
necessary.&nbsp; I wouldn't reinvent autoconf.&nbsp; If I needed it, I would use
it.&nbsp; I just have never needed it.<br>
<br>
The problem with autoconf is that you have no idea, watching it run,
which of the many things it tests are actually used.&nbsp; It does all the
same tests for all programs.<br>
<br>
I did apply a tool to two large projects that automatically generated
autoconf support.&nbsp; It worked fine, but then since the code compiled
just fine without it, that doesn't really show anything one way or the
other.<br>
<br>
The without autoconf code was built on linux, freebsd, netbsd, solaris,
sunos, SGI's UNIX, and HP's UNIX, as well as, of course, win32.&nbsp; Of
course there was no win32-autoconf issue, because there was no autoconf
at all; just three files copied.&nbsp; The UNIX systems tested is a subset,
but a fairly large subset.&nbsp; It is possible that there are issues that
weren't exposed by that set of UNIX environments, but I haven't had any
reports of this.<br>
<br>
<br>
The interface files were, total, about 200 lines.&nbsp; The differences
among them were minor, but there were differences.<br>
<blockquote cite="mid200508292315.07539.Sven.Panne@aedion.de"
 type="cite">
  <pre wrap="">
Cheers,
   S.

  </pre>
</blockquote>
<br>
</body>
</html>