MAKE = @MAKE@
CC = @CC@
RANLIB = @RANLIB@
-IMACROS = -imacros ${top_srcdir}/src/freeradius-devel/autoconf.h
+IMACROS = -imacros ${top_srcdir}/src/freeradius-devel/autoconf.h -imacros ${top_srcdir}/src/freeradius-devel/features.h
INCLUDE = -I${top_srcdir} -I${top_srcdir}/src
CFLAGS = $(IMACROS) $(INCLUDE) @CFLAGS@
CPPFLAGS = @CPPFLAGS@
fi
-if test "x$WITH_THEADS" = "xyes"; then
+if test "x$WITH_THREADS" = "xyes"; then
$as_echo "#define WITH_THREADS 1" >>confdefs.h
)
fi
-if test "x$WITH_THEADS" = "xyes"; then
+if test "x$WITH_THREADS" = "xyes"; then
AC_DEFINE(WITH_THREADS, [1], [define if you want thread support])
fi
radpaths.h: build-radpaths-h
@/bin/sh ./build-radpaths-h
+#
+# This is hacky, feature defines should go away or be set with configure.in
+#
features.h:
- @grep -o "^\#define\s*WITH_.*" autoconf.h > features.h
+ @cp features-h features.h
+ @grep -o "^\#define\s*WITH_.*" autoconf.h >> features.h
autoconf.sed:
@grep ^#define autoconf.h | sed 's,/\*\*/,1,;' | awk '{print "\
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
-/* Include support for Ascend binary filter attributes */
-#undef ASCEND_BINARY
-
/* BSD-Style get*byaddr_r */
#undef BSDSTYLE
#endif
+/* Include support for Ascend binary filter attributes */
+#undef WITH_ASCEND_BINARY
+
/* define if you want DHCP support */
#undef WITH_DHCP
+/* define if you want TCP support (For RADSec et al) */
+#undef WITH_TCP
+
+/* define if you want thread support */
+#undef WITH_THREADS
+
/* define if you want udpfromto */
#undef WITH_UDPFROMTO