Re: Fix autoconf deprecation warnings

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Andreas Karlsson <andreas(at)proxel(dot)se>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix autoconf deprecation warnings
Date: 2015-07-02 16:22:51
Message-ID: 5595655B.9080208@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 05/31/2015 05:22 AM, Andreas Karlsson wrote:
> I have attached new versions which apply on the current master.

Thanks, applied.

> --- a/configure.in
> +++ b/configure.in
> @@ -1473,7 +1473,7 @@ if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
> AC_DEFINE(HAVE_SIGSETJMP, 1, [Define to 1 if you have sigsetjmp().])
> fi
>
> -AC_DECL_SYS_SIGLIST
> +AC_CHECK_DECLS([sys_siglist])
>
> AC_CHECK_FUNC(syslog,
> [AC_CHECK_HEADER(syslog.h,

Hmm, according to the autoconf manual:

> Macro: AC_DECL_SYS_SIGLIST
>
> Same as:
>
> AC_CHECK_DECLS([sys_siglist], [], [],
> [#include <signal.h>
> /* NetBSD declares sys_siglist in unistd.h. */
> #ifdef HAVE_UNISTD_H
> # include <unistd.h>
> #endif
> ])
>
> See AC_CHECK_DECLS.

So I replaced AC_DECL_SYS_SIGLIST with that full snippet instead.

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2015-07-02 16:23:04 Re: Freeze avoidance of very large table.
Previous Message Peter Eisentraut 2015-07-02 16:13:54 Re: [PATCH] Reload SSL certificates on SIGHUP