[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_DECL_SYS_SIGLIST is broken in latest autoconf
From: |
Akim Demaille |
Subject: |
Re: AC_DECL_SYS_SIGLIST is broken in latest autoconf |
Date: |
Sat, 17 May 2003 11:48:01 +0200 |
User-agent: |
Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux) |
| 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:
|
| --- 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>
| +/* NetBSD declares sys_siglist in unistd.h. */
| +#if HAVE_UNISTD_H
| +# include <unistd.h>
| +#endif])
| ])# AC_DECL_SYS_SIGLIST
I installed the following patch. Please, send bug reports to
bug-autoconf, not autoconf. Thanks!
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: AC_DECL_SYS_SIGLIST is broken in latest autoconf,
Akim Demaille <=