aboutsummaryrefslogtreecommitdiff
path: root/libgcc-math/configure.ac
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-02-01 10:30:43 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-02-01 10:30:43 +0000
commit36cbd091c564540e008703e1abc1707194beb5b4 (patch)
treec30e66a064809facf023ce1ded0881049b3b0adc /libgcc-math/configure.ac
parent916b63c37110524381d529d8b82c9ef79615fc8b (diff)
downloadgcc-36cbd091c564540e008703e1abc1707194beb5b4.zip
gcc-36cbd091c564540e008703e1abc1707194beb5b4.tar.gz
gcc-36cbd091c564540e008703e1abc1707194beb5b4.tar.bz2
re PR bootstrap/26055 (libgcc-math declaration of __isinf conflicts with system header, fails bootstrap)
2006-02-01 Richard Guenther <rguenther@suse.de> PR bootstrap/26055 * configure.ac: Disable libgcc-math if we cannot mix declaration of __isinf and math.h inclusion. * configure: Re-generate. From-SVN: r110469
Diffstat (limited to 'libgcc-math/configure.ac')
-rw-r--r--libgcc-math/configure.ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/libgcc-math/configure.ac b/libgcc-math/configure.ac
index 3928552..7fa9e72 100644
--- a/libgcc-math/configure.ac
+++ b/libgcc-math/configure.ac
@@ -124,6 +124,25 @@ else
fi
+# Check for target library dependencies
+cannot_build=no
+
+AC_MSG_CHECKING([whether math.h conflicts with defining __isinf])
+AC_TRY_LINK([
+#include "math.h"
+int __isinf (double x)
+{
+}
+], [
+return __isinf (1.0);
+], [
+AC_MSG_RESULT([no])
+], [
+AC_MSG_RESULT([yes])
+cannot_build=yes
+])
+
+
# Now check which parts we include in the library.
arch_subdirs=
@@ -141,6 +160,9 @@ esac
AC_SUBST(arch_subdirs)
AC_SUBST(arch_libraries)
AC_SUBST(arch_maps)
+if test "$cannot_build" = "yes"; then
+ arch_subdirs=
+fi
AM_CONDITIONAL(BUILD_LIBGCC_MATH, [test "x$arch_subdirs" != x])