diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-04-27 16:38:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-04-27 16:38:11 +0000 |
commit | 324612b351f925889304177e6e370463c506a595 (patch) | |
tree | 26d61005e47dff95eea087e52ca9229168459419 /libgo/configure | |
parent | 6c88c77ec7b29cc5ab216e867bd1967e6c9aa8e0 (diff) | |
download | gcc-324612b351f925889304177e6e370463c506a595.tar.gz |
re PR go/52358 (math FAILs on Solaris 8 and 9)
PR go/52358
configure, runtime: Provide i386 long double math functions if needed.
From-SVN: r186915
Diffstat (limited to 'libgo/configure')
-rwxr-xr-x | libgo/configure | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libgo/configure b/libgo/configure index 24b05b9271b..1f797d4deeb 100755 --- a/libgo/configure +++ b/libgo/configure @@ -14649,6 +14649,23 @@ _ACEOF fi +LIBS_hold="$LIBS" +LIBS="$LIBS -lm" +for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +LIBS="$LIBS_hold" + CFLAGS_hold="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS_hold="$LIBS" |