From: Bruno Haible Date: Wed, 13 Jun 2007 01:30:34 +0000 (+0000) Subject: Guess isnanl does not work when cross-compiling to ia64, x86_64, i386. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fa5cba96b009df44348336ff6a4c091a2f859c5;p=pspp Guess isnanl does not work when cross-compiling to ia64, x86_64, i386. --- diff --git a/ChangeLog b/ChangeLog index 458f3a5b18..3d8ed57ce8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-06-12 Bruno Haible + + * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling + to ia64, x86_64, i386. + Reported by Eric Blake. + 2007-06-12 Bruno Haible * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when diff --git a/m4/isnanl.m4 b/m4/isnanl.m4 index 7a73d4ea72..a02ded78b8 100644 --- a/m4/isnanl.m4 +++ b/m4/isnanl.m4 @@ -1,4 +1,4 @@ -# isnanl.m4 serial 4 +# isnanl.m4 serial 5 dnl Copyright (C) 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -200,9 +200,15 @@ int main () return 0; }], [gl_cv_func_isnanl_works=yes], [gl_cv_func_isnanl_works=no], - [case "$host_os" in - netbsd*) gl_cv_func_isnanl_works="guessing no";; - *) gl_cv_func_isnanl_works="guessing yes";; + [case "$host_cpu" in + # Guess no on ia64, x86_64, i386. + ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";; + *) + case "$host_os" in + netbsd*) gl_cv_func_isnanl_works="guessing no";; + *) gl_cv_func_isnanl_works="guessing yes";; + esac + ;; esac ]) ])