Don't use a "config.h" file when it's not needed.
authornbk <nbk>
Mon, 12 Jun 2006 15:04:14 +0000 (15:04 +0000)
committernbk <nbk>
Mon, 12 Jun 2006 15:04:14 +0000 (15:04 +0000)
src/modules/rlm_sqlippool/config.h.in [deleted file]
src/modules/rlm_sqlippool/configure.in
src/modules/rlm_sqlippool/ip_set.c
src/modules/rlm_sqlippool/rlm_sqlippool.c

diff --git a/src/modules/rlm_sqlippool/config.h.in b/src/modules/rlm_sqlippool/config.h.in
deleted file mode 100644 (file)
index 0e9c8ee..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-/* config.h.in.  Generated automatically from configure.in by autoheader.  */
-
-/* do we need anything in here? */
index 5f26b56..67c6259 100644 (file)
@@ -1,11 +1,18 @@
+#
+# Autoconf input file.
+#
+# Version:     $Id$
+#
+
+AC_PREREQ([2.59])
 AC_INIT(rlm_sqlippool.c)
 AC_REVISION($Revision$)
 AC_DEFUN(modname,[rlm_sqlippool])
 
 if test x$with_[]modname != xno; then
 
-       AC_PROG_CC
-       AC_PROG_CPP
+       dnl  This module doesn't need any autoconf test which is not already
+       dnl  in top-level configure.
 
        targetname=modname
 else
@@ -13,20 +20,5 @@ else
        echo \*\*\* module modname is disabled.
 fi
 
-if test x"$fail" != x""; then
-       if test x"${enable_strict_dependencies}" = x"yes"; then
-               AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
-       else
-               AC_MSG_WARN([silently not building ]modname[.])
-               AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]); 
-               targetname=""
-       fi
-fi
-
-sqlippool_ldflags=$SMART_LIBS
-sqlippool_cflags=$SMART_CFLAGS
-AC_SUBST(sqlippool_ldflags)
-AC_SUBST(sqlippool_cflags)
 AC_SUBST(targetname)
-AC_CONFIG_HEADER(config.h)
 AC_OUTPUT(Makefile)
index e7deca8..146fa98 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 #if 0
-#include "config.h"
 #include <freeradius-devel/autoconf.h>
 #include <freeradius-devel/libradius.h>
 
index 5ea7b0b..c6ebf7a 100644 (file)
@@ -6,7 +6,6 @@
  * Copyright 2002  Globe.Net Communications Limited
  */
 
-#include "config.h"
 #include <freeradius-devel/autoconf.h>
 #include <freeradius-devel/libradius.h>