bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_DECL_SYS_SIGLIST no longer works


From: Akim Demaille
Subject: Re: AC_DECL_SYS_SIGLIST no longer works
Date: Sat, 17 May 2003 11:47:11 +0200
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux)

| [autoconf 2.57]
| 
| With autoconf 2.54, a call to AC_DECL_SYS_SIGLIST gives
| 
|   checking for sys_siglist declaration in signal.h or unistd.h... yes
| 
| With 2.57, I get
| 
|   checking whether sys_siglist is declared... no
| 
| Reason is that `signal.h' is no longer included; only the default
| set of header files is used.
| 
| 
|     Werner

I installed this:

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * lib/autoconf/specific.m4: Include signal.h and unistd.h.
        * doc/autoconf.texi (Obsolete Macros): Adjust.
        Reported by Werner LEMBERG and Debian Bug 190886.

Index: NEWS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/NEWS,v
retrieving revision 1.293
diff -u -u -r1.293 NEWS
--- NEWS 14 May 2003 08:34:10 -0000 1.293
+++ NEWS 16 May 2003 10:07:44 -0000
@@ -3,6 +3,9 @@
 ** New macros
   AC_C_RESTRICT
 
+** AC_DECL_SYS_SIGLIST
+  Works again.
+
 ** Improve DJGPP portability
   The Autoconf tools and configure behave better under DJGPP.
 
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.733
diff -u -u -r1.733 autoconf.texi
--- doc/autoconf.texi 14 May 2003 08:29:04 -0000 1.733
+++ doc/autoconf.texi 16 May 2003 10:08:08 -0000
@@ -12723,7 +12723,17 @@
 @defmac AC_DECL_SYS_SIGLIST
 @acindex{DECL_SYS_SIGLIST}
 @cvindex SYS_SIGLIST_DECLARED
-Same as @samp{AC_CHECK_DECLS([sys_siglist])}.
+Same as:
+
address@hidden
+AC_CHECK_DECLS([sys_siglist],,,
+[#include <signal.h>
+/* NetBSD declares sys_siglist in unistd.h.  */
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+])
address@hidden example
 @end defmac
 
 @defmac AC_DECL_YYTEXT
Index: lib/autoconf/specific.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/specific.m4,v
retrieving revision 1.353
diff -u -u -r1.353 specific.m4
--- lib/autoconf/specific.m4 14 Jan 2003 17:53:12 -0000 1.353
+++ lib/autoconf/specific.m4 16 May 2003 10:08:10 -0000
@@ -60,7 +60,13 @@
 # -------------------
 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>
+/* NetBSD declares sys_siglist in unistd.h.  */
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+])
 ])# AC_DECL_SYS_SIGLIST
 
 




reply via email to

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