This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH] Use C99 isfinite macro instead of finite when availab
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: tobias dot schlueter at physik dot uni-muenchen dot de
- Cc: dave at hiauly1 dot hia dot nrc dot ca, fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, stevenb at suse dot de
- Date: Mon, 27 Sep 2004 11:51:38 -0400 (EDT)
- Subject: Re: [PATCH] Use C99 isfinite macro instead of finite when availab
- References: <200409271507.i8RF7vjF016150@hiauly1.hia.nrc.ca> <4158330E.9070408@physik.uni-muenchen.de>
> 2004-09-27 Tobias Schlueter <tobias.schlueter@phyisk.uni-muenchen.de>
>
> PR libfortran/15960
> * configure.ac: Add autoconf test for isfinite.
> * config.h.in: Add HAVE_ISFINITE.
> * io/write.c (write_float): Use isfinite if present.
> +AC_CHECK_LIB([m],[isfinite],[AC_DEFINE([HAVE_ISFINITE],[1],[libm
> includes isfinite])])
But isn't `isfinite' often (always?) a macro? I thought
AC_CHECK_FUNCS won't find things if they're only a macro and not in
some library as a real function.
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu