summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorBruce Momjian2007-01-28 01:12:05 +0000
committerBruce Momjian2007-01-28 01:12:05 +0000
commit82480fc2542fc92bdbc917060b0d578120e9997d (patch)
tree134525a3b173b03ae93ac8b95c3bf07e27d3ae7c /configure.in
parent3ec7ae1b67da4e9094eaad5781e0f39ecc395546 (diff)
Use sys_siglist[] to print out signal names for signal exits, rather
than just numbers.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 4d3fb93f68..b625787f5b 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.497 2007/01/18 14:07:31 petere Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.498 2007/01/28 01:12:05 momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -1059,6 +1059,15 @@ AC_TRY_LINK([#include <setjmp.h>],
AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
+AC_CACHE_CHECK([for sys_siglist], pgac_cv_var_sys_siglist,
+[AC_TRY_LINK([#include <signal.h>],
+ [extern char *sys_siglist[]; (void)sys_siglist[0];],
+ [pgac_cv_var_sys_siglist=yes],
+ [pgac_cv_var_sys_siglist=no])])
+if test x"$pgac_cv_var_sys_siglist" = x"yes"; then
+ AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define to 1 if you have the global variable 'char *sys_siglist[]'.])
+fi
+
AC_CHECK_FUNC(syslog,
[AC_CHECK_HEADER(syslog.h,
[AC_DEFINE(HAVE_SYSLOG, 1, [Define to 1 if you have the syslog interface.])])])