Suggest using AC_CHECK_DECLS instead.
+2002-10-11 Akim Demaille <akim@epita.fr>
+
+ * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
+ Suggest using AC_CHECK_DECLS instead.
+
2002-10-11 Akim Demaille <akim@epita.fr>
* tests/torture.at (AC_ARG_VAR): Have configure report the value
- New macros
AC_FUNC_MBRTOWC
+- Obsoleted
+ Obsoleted macros are kept for Autoconf backward compatibility, but
+ should be avoided in configure.ac. Running autoupdate is advised.
+ AC_DECL_SYS_SIGLIST.
+
** Bug Fixes
- Portability of the Autoconf package to Solaris.
@node Particular Declarations
@subsection Particular Declaration Checks
-The following macros check for certain declarations.
-
-@defmac AC_DECL_SYS_SIGLIST
-@acindex DECL_SYS_SIGLIST
-@cvindex SYS_SIGLIST_DECLARED
-Define @code{SYS_SIGLIST_DECLARED} if the variable @code{sys_siglist}
-is declared in a system header file, either @file{signal.h} or
-@file{unistd.h}.
-@end defmac
+There are no specific macros for declarations.
@node Generic Declarations
@subsection Generic Declaration Checks
not to use this macro.
@end defmac
+@defmac AC_DECL_SYS_SIGLIST
+@acindex DECL_SYS_SIGLIST
+@cvindex SYS_SIGLIST_DECLARED
+Same as @samp{AC_CHECK_DECLS([sys_siglist])}.
+@end defmac
+
@defmac AC_DECL_YYTEXT
@acindex DECL_YYTEXT
Does nothing, now integrated in @code{AC_PROG_LEX}.
# AC_DECL_SYS_SIGLIST
# -------------------
-AN_IDENTIFIER([sys_siglist], [AC_DECL_SYS_SIGLIST])
-AC_DEFUN([AC_DECL_SYS_SIGLIST],
-[AC_CACHE_CHECK([for sys_siglist declaration in signal.h or unistd.h],
- ac_cv_decl_sys_siglist,
-[AC_COMPILE_IFELSE(
-[AC_LANG_PROGRAM([#include <sys/types.h>
-#include <signal.h>
-/* NetBSD declares sys_siglist in unistd.h. */
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-], [char *msg = *(sys_siglist + 1);])],
- [ac_cv_decl_sys_siglist=yes],
- [ac_cv_decl_sys_siglist=no])])
-if test $ac_cv_decl_sys_siglist = yes; then
- AC_DEFINE(SYS_SIGLIST_DECLARED, 1,
- [Define to 1 if `sys_siglist' is declared by <signal.h>
- or <unistd.h>.])
-fi
+AN_IDENTIFIER([sys_siglist], [AC_CHECK_DECLS([sys_siglist])])
+AU_DEFUN([AC_DECL_SYS_SIGLIST],
+[AC_CHECK_DECLS([sys_siglist])
])# AC_DECL_SYS_SIGLIST
identifier: st_blksize AC_CHECK_MEMBERS([struct stat.st_blksize])
identifier: st_blocks AC_STRUCT_ST_BLOCKS
identifier: st_rdev AC_CHECK_MEMBERS([struct stat.st_rdev])
-identifier: sys_siglist AC_DECL_SYS_SIGLIST
+identifier: sys_siglist AC_CHECK_DECLS([sys_siglist])
identifier: timeval AC_HEADER_TIME
identifier: tm AC_STRUCT_TM
identifier: tm_zone AC_STRUCT_TIMEZONE
# Modern macros.
AT_CHECK_MACRO([AC_AIX])
-AT_CHECK_MACRO([AC_DECL_SYS_SIGLIST])
AT_CHECK_MACRO([AC_ISC_POSIX])
AT_CHECK_MACRO([AC_MINIX])
AT_CHECK_MACRO([AC_SYS_INTERPRETER])