[Devel] patch for compiling acc with radius/diam support
Ovidiu Sas
sip.nslu at gmail.com
Wed Apr 11 16:25:16 CEST 2007
Hi all,
Here's a small patch against 1.2 branch for controlling the
diameter/radius support for the acc module (instead of modifying the
Makefile, just set the ENABLE_RADIUS_ACC/ENABLE_DIAMETER_ACC to true):
--- Makefile (revision 1991)
+++ Makefile (working copy)
@@ -13,11 +13,15 @@
# uncomment the next line if you wish to enable SQL accounting
DEFS+=-DSQL_ACC
-# uncomment the next two lines if you wish to enable RADIUS accounting
-#DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
-#LIBS=-L$(LOCALBASE)/lib $(RADIUS_LIB)
+# set ENABLE_RADIUS_ACC) to true if you wish to enable RADIUS accounting
+ifeq ($(ENABLE_RADIUS_ACC),true)
+ DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
+ LIBS=-L$(LOCALBASE)/lib $(RADIUS_LIB)
+endif
-# uncomment the next two lines if you wish to enable DIAMETER accounting
-#DEFS+=-DDIAM_ACC
+# set ENABLE_DIAMETER_ACC to true if you wish to enable DIAMETER accounting
+ifeq ($(ENABLE_DIAMETER_ACC),true)
+ DEFS+=-DDIAM_ACC
+endif
include ../../Makefile.modules
Enable DIAMETER in acc:
ENABLE_RADIUS_ACC=true make include_modules="avp_radius auth_radius
group_radius uri_radius" all
Best regards,
Ovidiu Sas
More information about the Devel
mailing list