------- Comment #11 from aldot at gcc dot gnu dot org 2008-06-24 11:21 ------- libdecnumber hunk could look like this:
Index: libdecnumber/configure.ac =================================================================== --- libdecnumber/configure.ac (revision 137059) +++ libdecnumber/configure.ac (working copy) @@ -49,6 +49,7 @@ ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual] # Checks for header files. AC_CHECK_HEADERS(ctype.h stddef.h string.h stdio.h) +AC_CHECK_HEADER([fenv.h],[],[libdecnumber_cv_fenv=no]) GCC_HEADER_STDINT(gstdint.h) # Checks for typedefs, structures, and compiler characteristics. @@ -99,10 +100,13 @@ Valid choices are 'yes', 'bid', 'dpd', a esac ]) +if test x$libdecnumber_cv_fenv = xno; then + enable_decimal_float=no +elif test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then # x86's use BID format instead of DPD # In theory --enable-decimal-float=no should not compile anything # For the sake of simplicity, just use the default format in this directory -if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then + case $target in i?86*-*-linux* | x86_64*-*-linux*) enable_decimal_float=bid -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34484