Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

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

 



-----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             ebb9@xxxxxxx
-----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-----


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux