summaryrefslogtreecommitdiff
path: root/libquadmath/configure
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-19 19:01:38 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-19 19:01:38 +0000
commit5edfcfbde8d0198a1cb845fbc5e7c6e6173e4ddf (patch)
treedb01227b632db0c2224ca36d3088c47e9a6ae426 /libquadmath/configure
parent0229467ff29056f3aba7dc0348613c8564e28df6 (diff)
downloadgcc-5edfcfbde8d0198a1cb845fbc5e7c6e6173e4ddf.tar.gz
2010-12-19 Tobias Burnus <burnus@net-b.de>
PR fortran/46520 * configure.ac: Do not call AC_CHECK_LIB for gcc_no_link. * configure: Regenerate git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168069 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libquadmath/configure')
-rwxr-xr-xlibquadmath/configure19
1 files changed, 17 insertions, 2 deletions
diff --git a/libquadmath/configure b/libquadmath/configure
index eb370580beb..078b4101ab4 100755
--- a/libquadmath/configure
+++ b/libquadmath/configure
@@ -11748,7 +11748,10 @@ esac
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
+# If available, sqrtl and cbrtl speed up the calculation -
+# but they are not required
+if test x$gcc_no_link != xyes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
$as_echo_n "checking for sqrtl in -lm... " >&6; }
if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
$as_echo_n "(cached) " >&6
@@ -11793,7 +11796,7 @@ $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
$as_echo_n "checking for cbrtl in -lm... " >&6; }
if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
$as_echo_n "(cached) " >&6
@@ -11838,6 +11841,18 @@ $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
fi
+else
+ if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
+
+$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
+
+ fi
+ if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
+
+$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
+
+ fi
+fi
# Check for symbol versioning (copied from libssp).
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5