From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32380 invoked by alias); 14 Jul 2005 09:47:40 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 32369 invoked by uid 22791); 14 Jul 2005 09:47:34 -0000 Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 14 Jul 2005 09:47:34 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id A229B1D94E; Thu, 14 Jul 2005 11:47:32 +0200 (CEST) From: Andreas Schwab To: Jakub Jelinek Cc: Hiroshi Fujishima , Michael Veksler , Eric Botcazou , gcc@gcc.gnu.org, Joe Buck Subject: Re: isinf References: <7c3bqhkaad.fsf@gmail.com> <20050714093542.GS4740@sunsite.mff.cuni.cz> X-Yow: Will it improve my CASH FLOW? Date: Thu, 14 Jul 2005 09:47:00 -0000 In-Reply-To: <20050714093542.GS4740@sunsite.mff.cuni.cz> (Jakub Jelinek's message of "Thu, 14 Jul 2005 11:35:42 +0200") Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-07/txt/msg00590.txt.bz2 Jakub Jelinek writes: > Guess that's because AC_HAVE_FUNCS(isinf) is wrong. > isinf/isfinite/fpclassify are all documented as macros in ISO C99. > So > [AC_MSG_CHECKING(for isinf with ) > AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include > volatile int x; volatile float f;]], [[x = isinf(f)]])],[AC_MSG_RESULT(yes) > AC_DEFINE(HAVE_ISINF)],[AC_MSG_RESULT(no)])]) > should be reasonably safe for now. Perhaps it should just check whether the macro isinf exists (but still use AC_CHECK_FUNCS(isinf) for pre-C99 hosts). Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."