diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-27 16:38:11 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-27 16:38:11 +0000 |
commit | 6217b5f495d89fa8fec9bfc3a2dbfb3cf4b8cf91 (patch) | |
tree | 26d61005e47dff95eea087e52ca9229168459419 /libgo/configure | |
parent | 3ff40a6bf4310e9e5bb398be2e590e3998fb203a (diff) | |
download | gcc-6217b5f495d89fa8fec9bfc3a2dbfb3cf4b8cf91.tar.gz |
PR go/52358
configure, runtime: Provide i386 long double math functions if needed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186915 138bc75d-0d04-0410-961f-82ee72b054a4
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" |