[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Supressing output from AC_CHECK_DECL

From: Noah Misch
Subject: Re: Supressing output from AC_CHECK_DECL
Date: Tue, 8 May 2007 06:42:14 -0700
User-agent: Mutt/1.5.9i

On Tue, May 08, 2007 at 02:46:53PM +0200, address@hidden wrote:
> When I use AC_CHECK_DECL, how can I prevent it from outputting to the console 
> for a specific message only? I don't want to supress all messages, only one 
> specific message (and replace it with my own, more complex reusable macro).

I would write your test in terms of the lower-level AC_COMPILE_IFELSE; a check
functionally similar to AC_CHECK_DECL looks like this:

[#ifndef SYMBOL
  (void) SYMBOL;

> In the end, I've done:
> pushdef([AS_MESSAGE_FD], [/dev/null])
> popdef([AS_MESSAGE_FD])

This is a decent approach, too.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]