diff options
Diffstat (limited to 'm4/logb.m4')
-rw-r--r-- | m4/logb.m4 | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/m4/logb.m4 b/m4/logb.m4 index 1e0fb30982..1f6a7deb90 100644 --- a/m4/logb.m4 +++ b/m4/logb.m4 @@ -1,4 +1,4 @@ -# logb.m4 serial 6 +# logb.m4 serial 7 dnl Copyright (C) 2010-2017 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -117,8 +117,17 @@ int main () [gl_cv_func_logb_works=yes], [gl_cv_func_logb_works=no], [case "$host_os" in - *gnu* | solaris* | cygwin*) gl_cv_func_logb_works="guessing no";; - *) gl_cv_func_logb_works="guessing yes";; + *gnu* | solaris* | cygwin*) gl_cv_func_logb_works="guessing no" ;; + mingw*) # Guess yes on MSVC, no on mingw. + AC_EGREP_CPP([Known], [ +#ifdef _MSC_VER + Known +#endif + ], + [gl_cv_func_logb_works="guessing yes"], + [gl_cv_func_logb_works="guessing no"]) + ;; + *) gl_cv_func_logb_works="guessing yes" ;; esac ]) ]) |