configure.ac: Check for fp_except and fp_except_t.
2013-06-24 Tobias Burnus <burnus@net-b.de> * configure.ac: Check for fp_except and fp_except_t. * config/fpu-sysv.h: Conditionally use either type. * configure: Regenerate. * config.h.in: Regenerate. From-SVN: r200360
This commit is contained in:
parent
e99008fc24
commit
7ae346c340
|
@ -1,3 +1,10 @@
|
|||
2013-06-24 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
* configure.ac: Check for fp_except and fp_except_t.
|
||||
* config/fpu-sysv.h: Conditionally use either type.
|
||||
* configure: Regenerate.
|
||||
* config.h.in: Regenerate.
|
||||
|
||||
2013-06-21 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* config/fpu-sysv.h (get_fpu_except_flags): Fix typo.
|
||||
|
|
|
@ -405,6 +405,12 @@
|
|||
/* fp_enable is present */
|
||||
#undef HAVE_FP_ENABLE
|
||||
|
||||
/* Define to 1 if the system has the type `fp_except'. */
|
||||
#undef HAVE_FP_EXCEPT
|
||||
|
||||
/* Define to 1 if the system has the type `fp_except_t'. */
|
||||
#undef HAVE_FP_EXCEPT_T
|
||||
|
||||
/* fp_trap is present */
|
||||
#undef HAVE_FP_TRAP
|
||||
|
||||
|
|
|
@ -85,7 +85,13 @@ int
|
|||
get_fpu_except_flags (void)
|
||||
{
|
||||
int result;
|
||||
#if HAVE_FP_EXCEPT
|
||||
fp_except set_excepts;
|
||||
#elif HAVE_FP_EXCEPT_T
|
||||
fp_except_t set_excepts;
|
||||
#else
|
||||
choke me
|
||||
#endif
|
||||
|
||||
result = 0;
|
||||
set_excepts = fpgetsticky ();
|
||||
|
|
|
@ -25977,6 +25977,27 @@ $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
|
|||
|
||||
fi
|
||||
|
||||
ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "#include <ieeefp.h>
|
||||
"
|
||||
if test "x$ac_cv_type_fp_except" = x""yes; then :
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_FP_EXCEPT 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
fi
|
||||
ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "#include <ieeefp.h>
|
||||
"
|
||||
if test "x$ac_cv_type_fp_except_t" = x""yes; then :
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_FP_EXCEPT_T 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
# Check for AIX fp_trap and fp_enable
|
||||
ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
|
||||
|
|
|
@ -498,6 +498,7 @@ fi
|
|||
|
||||
# Check for SysV fpsetmask
|
||||
LIBGFOR_CHECK_FPSETMASK
|
||||
AC_CHECK_TYPES([fp_except,fp_except_t], [], [], [[#include <ieeefp.h>]])
|
||||
|
||||
# Check for AIX fp_trap and fp_enable
|
||||
AC_CHECK_FUNC([fp_trap],[have_fp_trap=yes AC_DEFINE([HAVE_FP_TRAP],[1],[fp_trap is present])])
|
||||
|
|
Loading…
Reference in New Issue