-# sqrtl.m4 serial 8
-dnl Copyright (C) 2010-2012 Free Software Foundation, Inc.
+# sqrtl.m4 serial 9
+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.
if test $gl_cv_func_sqrtl_no_libm = yes \
|| test $gl_cv_func_sqrtl_in_libm = yes; then
dnl Also check whether it's declared.
- dnl MacOS X 10.3 has sqrtl() in libc but doesn't declare it in <math.h>.
+ dnl Mac OS X 10.3 has sqrtl() in libc but doesn't declare it in <math.h>.
AC_CHECK_DECL([sqrtl], , [HAVE_DECL_SQRTL=0], [[#include <math.h>]])
save_LIBS="$LIBS"
[AC_LANG_SOURCE([[
#include <float.h>
#include <math.h>
+#ifndef sqrtl /* for AIX */
extern
#ifdef __cplusplus
"C"
#endif
long double sqrtl (long double);
+#endif
static long double
my_ldexpl (long double x, int d)
{
[gl_cv_func_sqrtl_works=yes],
[gl_cv_func_sqrtl_works=no],
[case "$host_os" in
- osf*) gl_cv_func_sqrtl_works="guessing no";;
- *) gl_cv_func_sqrtl_works="guessing yes";;
+ openbsd*) gl_cv_func_sqrtl_works="guessing no";;
+ *) gl_cv_func_sqrtl_works="guessing yes";;
esac
])
])