autoconf
[Top][All Lists]
Advanced

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

Re: AC_DECL_SYS_SIGLIST is broken in latest autoconf


From: Mike Castle
Subject: Re: AC_DECL_SYS_SIGLIST is broken in latest autoconf
Date: Tue, 29 Apr 2003 13:41:55 -0700

In article <address@hidden>,
Ben Pfaff  <address@hidden> wrote:
>AC_DECL_SYS_SIGLIST doesn't #include <signal.h> before testing
>for sys_siglist.  This breaks it on GNU/Linux and probably other
>systems.  Here's a patch:

But then it's not the same as AC_CHECK_DECL([sys_siglist]), and it's listed
as an obsolete macro anyway.


>--- autoconf-2.57.orig/lib/autoconf/specific.m4
>+++ autoconf-2.57/lib/autoconf/specific.m4
>@@ -60,7 +60,12 @@
> # -------------------
> AN_IDENTIFIER([sys_siglist],     [AC_CHECK_DECLS([sys_siglist])])
> AU_DEFUN([AC_DECL_SYS_SIGLIST],
>-[AC_CHECK_DECLS([sys_siglist])
>+[AC_CHECK_DECLS([sys_siglist],,,[
>+#include <signal.h>

I wrap the #include in #ifdef HAVE_SIGNAL_H myself.

mrc
-- 
     Mike Castle      address@hidden      www.netcom.com/~dalgoda/
    We are all of us living in the shadow of Manhattan.  -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc




reply via email to

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