Fix: configure: support Autoconf 2.70
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 11 Jan 2021 17:09:05 +0000 (12:09 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 13 Jan 2021 15:12:27 +0000 (10:12 -0500)
commit4422005e3bc62f9103e964dceda7007bddb667ce
tree70f7fe24089c7d03b178d487352e4590c08b4ba6
parent5a6a15d886fa7fc6cd9e10b849a73d52516f8e00
Fix: configure: support Autoconf 2.70

The newly-released autoconf 2.70 introduces a number of breaking
changes [1] and is being rolled-out by some distros.

Amongst those changes, the AC_PROG_CC_STDC macro is marked as obsolete
and was merged into AC_PROG_CC, which we already use. On 2.70, this
results in a warning which we handle as an error.

A version check is added to invoke the AC_PROG_CC_STDC macro only when
running a pre-2.70 version of autoconf, fixing the issue.

[1] https://lwn.net/Articles/839395/

[ Backport by Mathieu Desnoyers: removed ax_pthread.m4 bits which are
  not present in stable-2.12 and prior. ]

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I2f4eac788638924aa4960b54374d09de73957925
configure.ac
This page took 0.028444 seconds and 4 git commands to generate.