From 4bcc44f52b1a26930ce251992c2f4ad0c38d2ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Wed, 22 Jul 1998 17:13:12 -0700 Subject: [PATCH] updated tests for fpsetmask() Rev: src/configure.in:1.221 Rev: src/modules/math/configure.in:1.6 --- src/configure.in | 22 ++++++++++++++++++++-- src/modules/math/configure.in | 3 +-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/configure.in b/src/configure.in index c37c48db76..29fa3f132b 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1,4 +1,4 @@ -AC_REVISION("$Id: configure.in,v 1.220 1998/07/22 23:23:40 hubbe Exp $") +AC_REVISION("$Id: configure.in,v 1.221 1998/07/23 00:12:56 hubbe Exp $") AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h) @@ -1076,7 +1076,6 @@ AC_CHECK_FUNCS( \ finite \ signbit \ nice \ - fpsetmask \ ) if test x$pike_cv_sys_os = xWindows_NT ; then @@ -1418,6 +1417,24 @@ if test [$]pike_cv_func_$1 = yes; then AC_DEFINE(translit(HAVE_$1,[a-z],[A-Z])) fi]) +######################################################################## +MY_CHECK_FUNCTION(fpsetmask, +[ +#include <math.h> +#ifdef HAVE_FLOATINGPOINT_H +#include <floatingpoint.h> +#endif + +#ifdef HAVE_IEEEFP_H +#include <ieeefp.h> +#endif + +int main() +{ + fpsetmask(0); + exit(0); +} +]); ######################################################################## MY_CHECK_FUNCTION(dlopen, @@ -1429,6 +1446,7 @@ int main() exit(0); }]) +######################################################################## MY_CHECK_FUNCTION(ldexp, [ diff --git a/src/modules/math/configure.in b/src/modules/math/configure.in index 6e837935f7..82d9a86c44 100644 --- a/src/modules/math/configure.in +++ b/src/modules/math/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.5 1998/07/22 21:06:42 hubbe Exp $ +# $Id: configure.in,v 1.6 1998/07/23 00:13:12 hubbe Exp $ AC_INIT(math.c) @@ -11,7 +11,6 @@ if test "${ac_cv_lib_m}" = "no" -a "${pike_cv_sys_os}" = "Linux"; then fi AC_CHECK_HEADERS(ieeefp.h fp_class.h floatingpoint.h) -AC_CHECK_FUNCS(fpsetmask) AC_OUTPUT(Makefile,echo FOO >stamp-h ) -- GitLab