]> git.ipfire.org Git - thirdparty/asterisk.git/commit
configure.ac: Check for unbound version >= 1.5
authorGeorge Joseph <gjoseph@digium.com>
Mon, 24 Sep 2018 22:56:07 +0000 (16:56 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 25 Sep 2018 19:32:12 +0000 (14:32 -0500)
commitcc8e0dfabd14e4bb74b53aa05ef7a943eb4e06bd
treecf3dc76f298aef8cd0287f60c29cf7b064b9074f
parent3ddfeccf35635e41d307e6d572faa7ca44939ea4
configure.ac:  Check for unbound version >= 1.5

In order to do this and provide good feedback, a new macro was
created (AST_EXT_LIB_EXTRA_CHECK) which does the normal check and
path setups for the library then compiles, links and runs a supplied
code fragment to do the final determination.  In this case, the
final code fragment compares UNBOUND_VERSION_MAJOR
and UNBOUND_VERSION_MINOR to determine if they're greater than or
equal to 1.5.

Since we require version 1.5, some code in res_resolver_unbound
was also simplified.

ASTERISK-28045
Reported by: Samuel Galarneau

Change-Id: Iee94ad543cd6f8b118df8c4c7afd9c4e2ca1fa72
autoconf/ast_ext_lib.m4
configure
configure.ac
include/asterisk/autoconfig.h.in
menuselect/configure
res/res_resolver_unbound.c