[PATCH] rlm_caching module configure.in

Nathaniel McCallum nathaniel at haikulogic.com
Tue Jun 1 03:08:54 CEST 2010


It appears that although the rlm_caching module was merged, its 
configure.in was never merged.  I've attached a patch which creates a 
basic configure.in for the module.

--- /dev/null
+++ b/src/modules/rlm_caching/configure.in
@@ -0,0 +1,18 @@
+AC_PREREQ([2.53])
+AC_INIT(rlm_caching.c)
+AC_REVISION($Revision$)
+AC_DEFUN(modname,[rlm_caching])
+
+if test x$with_[]modname != xno && test ; then
+       AC_CHECK_HEADERS(gdbm.h)
+       targetname=modname
+       caching_ldflags=-lgdbm
+else
+       targetname=
+       echo \*\*\* module modname is disabled.
+fi
+
+AC_SUBST(caching_ldflags)
+AC_SUBST(caching_cflags)
+AC_SUBST(targetname)
+AC_OUTPUT(Makefile)
--- a/src/modules/rlm_caching/rlm_caching.c
+++ b/src/modules/rlm_caching/rlm_caching.c
@@ -30,8 +30,6 @@ RCSID("$Id$")

  #include <ctype.h>

-#include "config.h"
-
  #include <gdbm.h>
  #include <time.h>



More information about the Freeradius-Devel mailing list