]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
build: use `AS_IF` consistently in configure.ac
authorJeremy Sowden <jeremy@azazel.net>
Sun, 14 Nov 2021 15:52:31 +0000 (15:52 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 16 Nov 2021 11:34:56 +0000 (12:34 +0100)
commitc00261d674dc4344c0feecba630eab794b6234a4
tree252aa12ec80a4e0a2c6b500e2d79ede843cea289
parenta322152d105344912889c696cbc080bcbe751a33
build: use `AS_IF` consistently in configure.ac

configure.ac contains a mix of `AS_IF` and `if` conditionals.  Prefer
the portable M4sh `AS_IF` macro.  In some cases, where there are both
`AS_IF` and `if` conditionals evaluating the same predicates, the latter
are merged into the former.

Replace three instance of `test -n "$var"` with the usual, more portable,
autoconf idiom: `test "x$var" != "x"`.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
configure.ac