X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Flog.m4;h=31a6adf89f539ff958e1ec95a395a33474cddfb6;hb=a0f402b76e57d57abd1961f20683a25d46179297;hp=d5d5664621b3ebaf12402d87022ac2a23908116d;hpb=810183441d657ca09f906ee4d916ac55a1b6127f;p=gnulib.git diff --git a/m4/log.m4 b/m4/log.m4 index d5d566462..31a6adf89 100644 --- a/m4/log.m4 +++ b/m4/log.m4 @@ -1,5 +1,5 @@ -# log.m4 serial 3 -dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. +# log.m4 serial 4 +dnl Copyright (C) 2011-2013 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. @@ -23,6 +23,7 @@ AC_DEFUN([gl_FUNC_LOG], m4_ifdef([gl_FUNC_LOG_IEEE], [ if test $gl_log_required = ieee && test $REPLACE_LOG = 0; then + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether log works according to ISO C 99 with IEC 60559], [gl_cv_func_log_ieee], [ @@ -56,7 +57,13 @@ int main (int argc, char *argv[]) ]])], [gl_cv_func_log_ieee=yes], [gl_cv_func_log_ieee=no], - [gl_cv_func_log_ieee="guessing no"]) + [case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_log_ieee="guessing yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_log_ieee="guessing no" ;; + esac + ]) LIBS="$save_LIBS" ]) case "$gl_cv_func_log_ieee" in