configure.ac: Forbid AX_-prefixed patterns more selectively

We want to make autoconf fail early and with a user-comprehensible
message if autoconf-archive isn't installed, rather than generating
a configure script with syntax errors, or a configure script that runs
successfully but doesn't do what we intended.

However, autoconf-archive doesn't actually guarantee not to use
AX_-prefixed shell variable names without m4_pattern_allow'ing them
(unlike Autoconf, Automake, Libtool and pkg-config, which explicitly use
m4_pattern_allow for variables with AC_, AM_, LT_ and PKG_ prefixes), so
it isn't safe to assume that they won't be used. In particular, recent
versions of AX_CHECK_GNU_MAKE appear to be using
$AX_CHECK_GNU_MAKE_HEADLINE as a shell variable.

Instead, specifically forbid the names of the finite list of macros
that we actually use.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Resolves: #249
12 jobs for ax-missing in 42 seconds (queued for 3 minutes and 8 seconds)
Status Job ID Name Coverage
  Build
manual #86120
allowed to fail manual
build:buster
failed #86114
build:cmake

00:00:05

failed #86111
build:debug

00:00:05

manual #86116
allowed to fail manual
build:i686-w64-mingw32-cmake
failed #86115
build:i686-w64-mingw32-debug

00:00:05

manual #86119
allowed to fail manual
build:jessie
manual #86113
allowed to fail manual
build:legacy
failed #86110
build:production

00:00:15

manual #86112
allowed to fail manual
build:reduced
failed #86117
build:x86_64-w64-mingw32

00:00:05

failed #86118
build:x86_64-w64-mingw32-cmake-debug

00:00:05

manual #86121
allowed to fail manual
build:xenial
 
Name Stage Failure
failed
build:x86_64-w64-mingw32-cmake-debug Build
Using Docker executor with image debian:stretch-slim ...
Pulling docker image debian:stretch-slim ...
Using docker image sha256:bd04d03c4529ec362343b104702005679c5b98b0c7c33fb13e8fbc3def342fa4 for debian:stretch-slim ...
Running on runner-81280d8f-project-1187-concurrent-0 via fdo-gitlab-gce-runner3...
Fetching changes...
HEAD is now at 470d3f9d Merge branch 'fix-ctest-runtime-path-issue' into 'master'
Checking out ee09cc0a as ax-missing...
fatal: reference is not a tree: ee09cc0acdc1c34e8ae999adf9922f3d0d66f407
ERROR: Job failed: exit code 1
failed
build:x86_64-w64-mingw32 Build
Using Docker executor with image debian:stretch-slim ...
Pulling docker image debian:stretch-slim ...
Using docker image sha256:bd04d03c4529ec362343b104702005679c5b98b0c7c33fb13e8fbc3def342fa4 for debian:stretch-slim ...
Running on runner-81280d8f-project-1187-concurrent-0 via fdo-gitlab-gce-runner3...
Fetching changes...
HEAD is now at 470d3f9d Merge branch 'fix-ctest-runtime-path-issue' into 'master'
Checking out ee09cc0a as ax-missing...
fatal: reference is not a tree: ee09cc0acdc1c34e8ae999adf9922f3d0d66f407
ERROR: Job failed: exit code 1
failed
build:i686-w64-mingw32-debug Build
Using Docker executor with image debian:stretch-slim ...
Pulling docker image debian:stretch-slim ...
Using docker image sha256:bd04d03c4529ec362343b104702005679c5b98b0c7c33fb13e8fbc3def342fa4 for debian:stretch-slim ...
Running on runner-81280d8f-project-1187-concurrent-0 via fdo-gitlab-gce-runner3...
Fetching changes...
HEAD is now at 470d3f9d Merge branch 'fix-ctest-runtime-path-issue' into 'master'
Checking out ee09cc0a as ax-missing...
fatal: reference is not a tree: ee09cc0acdc1c34e8ae999adf9922f3d0d66f407
ERROR: Job failed: exit code 1
failed
build:cmake Build
Using Docker executor with image debian:stretch-slim ...
Pulling docker image debian:stretch-slim ...
Using docker image sha256:bd04d03c4529ec362343b104702005679c5b98b0c7c33fb13e8fbc3def342fa4 for debian:stretch-slim ...
Running on runner-81280d8f-project-1187-concurrent-0 via fdo-gitlab-gce-runner3...
Fetching changes...
HEAD is now at 470d3f9d Merge branch 'fix-ctest-runtime-path-issue' into 'master'
Checking out ee09cc0a as ax-missing...
fatal: reference is not a tree: ee09cc0acdc1c34e8ae999adf9922f3d0d66f407
ERROR: Job failed: exit code 1
failed
build:debug Build
Using Docker executor with image debian:stretch-slim ...
Pulling docker image debian:stretch-slim ...
Using docker image sha256:bd04d03c4529ec362343b104702005679c5b98b0c7c33fb13e8fbc3def342fa4 for debian:stretch-slim ...
Running on runner-81280d8f-project-1187-concurrent-0 via fdo-gitlab-gce-runner3...
Fetching changes...
HEAD is now at 470d3f9d Merge branch 'fix-ctest-runtime-path-issue' into 'master'
Checking out ee09cc0a as ax-missing...
fatal: reference is not a tree: ee09cc0acdc1c34e8ae999adf9922f3d0d66f407
ERROR: Job failed: exit code 1
failed
build:production Build
Using Docker executor with image debian:stretch-slim ...
Pulling docker image debian:stretch-slim ...
Using docker image sha256:bd04d03c4529ec362343b104702005679c5b98b0c7c33fb13e8fbc3def342fa4 for debian:stretch-slim ...
Running on runner-81280d8f-project-1187-concurrent-0 via fdo-gitlab-gce-runner3...
Cloning repository...
Cloning into '/builds/dbus/dbus'...
Checking out ee09cc0a as ax-missing...
fatal: reference is not a tree: ee09cc0acdc1c34e8ae999adf9922f3d0d66f407
ERROR: Job failed: exit code 1