diff options
author | Kevin Harwell <kharwell@digium.com> | 2014-01-28 23:23:15 +0000 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2014-01-28 23:23:15 +0000 |
commit | ade5c8a2a47d2c2b1b0a4ab70eabd4bc095bd289 (patch) | |
tree | 24b1bfa3538e5486dceee618949f4cc43315df12 /configure.ac | |
parent | 01a537d515af85c50ae608eb8486f42da7b84101 (diff) |
cdr_radius, cel_radius: build agains libfreeradius-client
Asterisk's RADIUS module currently build against libradiusclient-ng, but this
project has been superseeded by libfreeradius-client. The API is 99% compatible
except that the header name has changed, the library name has changed, and
the configuration file location has changed.
(closes issue ASTERISK-22980)
Reported by: Jeremy Lainé
Patches:
freeradius-client.patch uploaded by sharky (license 6561)
........
Merged revisions 406801 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 406802 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 406803 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index fb14b2936..80fbcf59c 100644 --- a/configure.ac +++ b/configure.ac @@ -2134,7 +2134,14 @@ fi # Some distributions (like SuSE) remove the 5.1 suffix. AST_EXT_LIB_CHECK([LUA], [lua], [luaL_openlib], [lua.h], [-lm]) -AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h]) +# Accept either RADIUS client library, their APIs are fully compatible, +# 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]) +else + AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h]) +fi AST_EXT_LIB_CHECK([COROSYNC], [cpg], [cpg_join], [corosync/cpg.h], [-lcfg]) AST_EXT_LIB_CHECK([COROSYNC_CFG_STATE_TRACK], [cfg], [corosync_cfg_state_track], [corosync/cfg.h], [-lcfg]) |