Fix autoconf deprecation warnings

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Fix autoconf deprecation warnings
Date: 2015-02-25 04:14:56
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


When working with the autoconf rule for detecting __int128 I noticed we
get a lot of warnings like the below in the autconf trace output so I
decided to clean them up. All the macros we get complaints about seems
to have been made obsolete between 2000 and 2003, and since we have a
generated configure in the repository I personally think it is
reasonable to drop support for such ancient versions of autoconf. -1- _m4_warn([obsolete], [The macro
`AC_TRY_COMPILE' is obsolete.

The patch is split into four parts since there are several different
obsolete macros (AC_TRY_*, AC_LANG_SAVE/AC_LANG_RESTORE,
AC_DECL_SYS_SIGLIST) which I replace. Feel free to squash the patches
into one if you wish.

The second patch in the series removes a handful of empty main functions
from configure. As far as I can tell these cannot have any use, and with
the use of the AC_LANG_* macros they were easy to remove.

Andreas Karlsson

Attachment Content-Type Size
0001-Replace-obsolete-macros-AC_TRY_-with-AC_-_IFELSE.patch text/x-patch 22.9 KB
0002-Prefer-AC_LANG_SOURCE-over-AC_LANG_PROGRAM-where-mai.patch text/x-patch 3.6 KB
0003-Replace-obsolete-macros-AC_LANG_SAVE-AC_LANG_RESTORE.patch text/x-patch 1.3 KB
0004-Replace-obsolete-macro-AC_DECL_SYS_SIGLIST-with-AC_C.patch text/x-patch 1.6 KB


Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2015-02-25 05:53:55 Re: CATUPDATE confusion?
Previous Message Alvaro Herrera 2015-02-25 03:25:59 Re: pg_dump gets attributes from tables in extensions