Browse code

Makefile.radius: option to use freeradius-client library

- using FREERADIUS=1 turns on usage of freeradius-client library instead
of radiusclient-ng
- kamailio radius modules have support for freeradius-client, library
which is included in opensuse instead of radiusclient-ng

Daniel-Constantin Mierla authored on 31/03/2011 12:08:37
Showing 1 changed files
... ...
@@ -6,9 +6,11 @@
6 6
 #
7 7
 # (To be included from Makefiles of radius related modules)
8 8
 #
9
-# The purpose of this makefile is to perform radiusclient library
10
-# detection and setup library and include paths in DEFS and LIBS
11
-# variables. In addition RADIUSCLIENT_NG_4 will be defined when
9
+# The purpose of this makefile is to perform RADIUS client library
10
+# selection (radiusclient-ng or freeradius-client) and setup
11
+# library and include paths in DEFS and LIBS variables.
12
+#
13
+# In addition RADIUSCLIENT_NG_4 will be defined when
12 14
 # libradiusclient-ng version 4 is detected. That means the module
13 15
 # should include radiusclient.h, otherwise radiusclient-ng.h
14 16
 # should be included. Variable RADIUSCLIENT_LIB contains the
... ...
@@ -21,6 +23,15 @@
21 23
 #
22 24
 INCLUDES+=-I$(LOCALBASE)/include
23 25
 
26
+ifeq ($(FREERADIUS),1)
27
+
28
+# - freeradius-client library
29
+DEFS+= -DUSE_FREERADIUS
30
+RADIUSCLIENT_LIB=freeradius-client
31
+
32
+else
33
+
34
+# - radiusclient-ng v5 or v4 library
24 35
 ifneq ($(radiusclient_ng), 4)
25 36
 
26 37
 # radiusclient-ng 5+
... ...
@@ -34,4 +45,6 @@ RADIUSCLIENT_LIB=radiusclient
34 45
 
35 46
 endif
36 47
 
48
+endif
49
+
37 50
 LIBS=-L$(LOCALBASE)/lib -l$(RADIUSCLIENT_LIB)