[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cygwin -mno-cygwin AC_CHECK_SIZEOF
From: |
Eric Blake |
Subject: |
Re: cygwin -mno-cygwin AC_CHECK_SIZEOF |
Date: |
Fri, 01 Dec 2006 08:22:05 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Keith MARSHALL on 12/1/2006 7:56 AM:
>> checking for MAP_ANON in sys/mman.h... no
>> checking for /dev/zero... configure: error: cannot check for file
>> existence when cross compiling
>>
>> This comes from the
>> AC_CHECK_FILE(/dev/zero)
>
> That's because AC_CHECK_FILE tests a feature of the *host*, not the
> *build* environment. If you use AC_CHECK_FILE in your configure.ac,
> (or if you insist, configure.in) then you *cannot* cross compile the
> application. And, if you want to build MinGW apps under Cygwin, you
> *must* be able to cross compile.
One other thing you can do to try to still allow cross-compiling in this
case is to prepopulate the cache. Since mingw doesn't have /dev/zero, you
might be able to get away with running './configure ...
ac_cv_file_dev_zero=no'. But I also wonder why this application is
checking for /dev/zero - there are a number of unportable mmap checking
macros out there in the world, that should be improved to not even attempt
the AC_CHECK_FILE when cross-compiling.
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFcEic84KuGfSFAYARAjygAJ0QMVUGB7yx7R4R01LlIHSFwcy5wgCfe+4s
QhdzltQpYUXjHvNIoz2xCv4=
=28dT
-----END PGP SIGNATURE-----