X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fexp2l.m4;h=5d392e6b9c86ebe1844b0269130835c80157eafc;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=605cd14c76ca03241f315433240504176642f1be;hpb=aa42b5455c7a66de3882ba5870fee8abeb379498;p=gnulib.git diff --git a/m4/exp2l.m4 b/m4/exp2l.m4 index 605cd14c7..5d392e6b9 100644 --- a/m4/exp2l.m4 +++ b/m4/exp2l.m4 @@ -1,5 +1,5 @@ -# exp2l.m4 serial 2 -dnl Copyright (C) 2010-2012 Free Software Foundation, Inc. +# exp2l.m4 serial 3 +dnl Copyright (C) 2010-2014 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -28,6 +28,7 @@ AC_DEFUN([gl_FUNC_EXP2L], AC_CHECK_DECL([exp2l], , [HAVE_DECL_EXP2L=0], [[#include ]]) m4_ifdef([gl_FUNC_EXP2L_IEEE], [ if test $gl_exp2l_required = ieee && test $REPLACE_EXP2L = 0; then + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether exp2l works according to ISO C 99 with IEC 60559], [gl_cv_func_exp2l_ieee], [ @@ -62,7 +63,13 @@ int main (int argc, char *argv[]) ]])], [gl_cv_func_exp2l_ieee=yes], [gl_cv_func_exp2l_ieee=no], - [gl_cv_func_exp2l_ieee="guessing no"]) + [case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_exp2l_ieee="guessing yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_exp2l_ieee="guessing no" ;; + esac + ]) LIBS="$save_LIBS" ]) case "$gl_cv_func_exp2l_ieee" in