dnl #
dnl #############################################################
+dnl ############################################################
+dnl # Remove any conflicting definitions if autoconf.h
+dnl # is being included by a module.
+dnl #############################################################
+AH_BOTTOM([#include <freeradius-devel/automask.h>])
+
mysubdirs=""
if test "x$EXPERIMENTAL" = "xyes"; then
bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
/* define to something if you don't have ut_xtime in struct utmpx */
#undef ut_xtime
+
+#include <freeradius-devel/automask.h>
--- /dev/null
+/*
+ * C Preprocessor definitions we do *NOT* want to leave defined autoconf.h
+ * Which are dependent on where the header is being used.
+ *
+ * Version: $Id$
+ */
+
+
+/*
+ * If were building a module we may have local PACKAGE_* defines if
+ * AC_INIT() was called with full arguments.
+ */
+#ifdef IS_MODULE
+# undef PACKAGE_BUGREPORT
+# undef PACKAGE_NAME
+# undef PACKAGE_STRING
+# undef PACKAGE_TARNAME
+# undef PACKAGE_URL
+# undef PACKAGE_VERSION
+#endif
+
LT_OBJS += $(patsubst %.cxx,%.lo,$(filter %.cxx,$(SRCS)))
LT_OBJS += $(patsubst %.cpp,%.lo,$(filter %.cpp,$(SRCS)))
CFLAGS += -I$(top_builddir)/src $(INCLTDL)
+CFLAGS += -DIS_MODULE=1
+
#######################################################################
#