autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Check for `mmap' fails on Cygwin/Windows


From: Corinna Vinschen
Subject: Re: Check for `mmap' fails on Cygwin/Windows
Date: Thu, 26 Oct 2000 10:28:20 +0200

Alexandre Oliva wrote:
> 
> On Oct 25, 2000, Akim Demaille <address@hidden> wrote:
> 
> > it is unclear how the test should be performed
> 
> IMO, we should deprecate AC_FUNC_MMAP and either create variants that
> test for certain features of mmap or just wait for them to show up in
> the macro archive and maybe incorporate them.  I don't like the idea
> of changing the meaning of an existing macro, though.  Programs that
> currently use this macro may rely on the fact that it tests for
> MAP_FIXED support, and, if we stop testing that, they'll just break.
> 
> Corinna, GCC's aclocal.m4 already has a modified version of this
> macro, and so does INN.  Your best bet is probably to pick one of
> them, or the modified AC_FUNC_MMAP, and try to get it into the
> autoconf macro repository or into the packages of interest.

This isn't the problem I'm addressing. I'm talking about many
existing packages which check for mmap and they all fail on
Cygwin because of the usage of a depricated functionality. This
is what I think is an error in autoconf _and_ in the packages
which use the MAP_FIXED flag.

> But there's still one issue: if the current test will return true on
> MS-Windows but it shouldn't, we may have to find some way to make it
> stricter.  Is that the case?

No, it's the other way around. It fails due to the usage of MAP_FIXED
so Cygwin is treated as having no mmap while it has.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                        mailto:address@hidden
Red Hat, Inc.
mailto:address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]