bug-gnulib
[Top][All Lists]
Advanced

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

Re: gl_FUNC_FSTATAT doesn’t support cross-c ompilation


From: Eric Blake
Subject: Re: gl_FUNC_FSTATAT doesn’t support cross-c ompilation
Date: Wed, 09 Nov 2011 17:42:36 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15

On 11/09/2011 05:39 PM, Bruno Haible wrote:
Also, a minor nit: When I see configure output like

   checking whether fstatat (..., 0) works... cross-compiling

I wonder: does that count as a "yes" or as a "no"?

Here's a proposed followup patch:
@@ -36,16 +37,23 @@
              ]])],
           [gl_cv_func_fstatat_zero_flag=yes],
           [gl_cv_func_fstatat_zero_flag=no],
-         [gl_cv_func_fstatat_zero_flag=cross-compiling])])
+         [case "$host_os" in
+            linux*) gl_cv_func_fstatat_zero_flag="guessing yes";;
+            *)      gl_cv_func_fstatat_zero_flag="guessing no";;
+          esac

I like it, except that we also ought to guess yes on cygwin 1.7 and on Solaris 10 and newer, which we also know work.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

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