From 97a75e3829e2e263da1828a06dad97b40c7ff32c Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sat, 12 Nov 2016 20:15:12 +0200 Subject: Add support for building RADIUS with radcli Radcli is yet another RADIUS client library, generally compatible with freeradius and radiusclient-ng. This commit adds autoconf option for detecting it as well and changes cdr_radius and cel_radius to use its header file in that case. ASTERISK-26540 #close Change-Id: I271f0715406334874865ffbce0b354b3a2ca148f --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ea55df416..3bdf14016 100644 --- a/configure.ac +++ b/configure.ac @@ -2364,9 +2364,17 @@ AST_EXT_LIB_CHECK([LUA], [lua], [luaL_openlib], [lua.h], [-lm]) # just different header filenames and different SONAMEs AST_EXT_LIB_CHECK([RADIUS], [freeradius-client], [rc_read_config], [freeradius-client.h]) if test "x${PBX_RADIUS}" = "x1"; then - AC_DEFINE(FREERADIUS_CLIENT, [], [Use the FreeRADIUS-client library]) + AC_DEFINE(RADIUS_HEADER_STR, [], [Name of RADIUS library include header]) else AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h]) + if test "x${PBX_RADIUS}" = "x1"; then + AC_DEFINE(RADIUS_HEADER_STR, [], [Name of RADIUS library include header]) + else + AST_EXT_LIB_CHECK([RADIUS], [radcli], [rc_read_config], [radcli/radcli.h]) + if test "x${PBX_RADIUS}" = "x1"; then + AC_DEFINE(RADIUS_HEADER_STR, [], [Name of RADIUS library include header]) + fi + fi fi AST_EXT_LIB_CHECK([CODEC2], [codec2], [codec2_create], [codec2/codec2.h]) -- cgit v1.2.3