xref: /OK3568_Linux_fs/buildroot/package/guile/0002-calculate-csqrt_manually.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Avoid using scm_from_complex_double(csqrt()) when building with uclibc.
2
3Signed-off-by: Pedro Aguilar <paguilar@paguilar.org>
4
5diff -Nau guile-2.0.11.orig/configure.ac guile-2.0.11/configure.ac
6--- guile-2.0.11.orig/configure.ac	2014-03-12 14:36:02.000000000 +0100
7+++ guile-2.0.11/configure.ac	2014-11-03 23:59:51.897267207 +0100
8@@ -862,7 +862,7 @@
9 }]])],
10     [guile_cv_use_csqrt=yes],
11     [guile_cv_use_csqrt="no, glibc 2.3 bug"],
12-    [guile_cv_use_csqrt="yes, hopefully (cross-compiling)"])])
13+    [guile_cv_use_csqrt="no (cross-compiling)"])])
14   case $guile_cv_use_csqrt in
15     yes*)
16       AC_DEFINE([HAVE_USABLE_CSQRT], 1, [Define to 1 if csqrt is bug-free])
17