[Dev-luatex] Rationale for using putenv?

David Kastrup dak at gnu.org
Mon Apr 2 15:41:53 CEST 2007

Taco Hoekwater <taco at elvenkind.com> writes:

> David Kastrup wrote:
>> Maybe there are strict Posix systems without XSI (?) around, in
>> which case one would need to use setenv.
> That is true, we just haven't found one yet.
>> Perhaps a case for autoconf?
> I much prefer to have a target-specific compiles via the makefile,
> like lua itself does. Autotools is a disaster unless you are willing
> to ignore all commercial platforms (including quite a few unices).

Hm?  The GNU stuff is portable across a lot of platforms, not least
because of using autoconf.

> But I have not gotten around to setting that up, so for the moment I
> simply write adhoc code with a few ifdefs.

The problem with the ifdefs is that the person writing a particular
line of code rarely has access to the dozen or more platforms where it
might need to run on.  So he does not necessarily know what to put in
that ifdef.

Autoconf might not be the prettiest system around, but as far as I can
see, it does its job.

David Kastrup

More information about the dev-luatex mailing list