]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
If we use the cache, then we don't populate CPPFLAGS on the cache run...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 27 Apr 2022 20:30:43 +0000 (15:30 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 27 Apr 2022 20:32:35 +0000 (15:32 -0500)
configure
configure.ac

index 7927e01c4d055421c87e78c504d3b069d5b10b64..8a27c940e2e6301c648864080f10d78af087a4aa 100755 (executable)
--- a/configure
+++ b/configure
@@ -11204,8 +11204,7 @@ printf "%s\n" "$as_me: WARNING: talloc headers not found. Use --with-talloc-incl
   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
 fi
 
-if test "x$ac_cv_header_sys_event_h" != "xyes"; then
-  smart_try_dir="${kqueue_include_dir:-/usr/include/kqueue}"
+smart_try_dir="${kqueue_include_dir:-/usr/include/kqueue}"
 
 
 ac_safe=`echo "sys/event.h" | sed 'y%./+-%__pm%'`
 
 smart_prefix=
 
-  if test "x$ac_cv_header_sys_event_h" != "xyes"; then
-    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: kqueue headers not found. Use --with-kqueue-include-dir=<path>." >&5
+if test "x$ac_cv_header_sys_event_h" != "xyes"; then
+  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: kqueue headers not found. Use --with-kqueue-include-dir=<path>." >&5
 printf "%s\n" "$as_me: WARNING: kqueue headers not found. Use --with-kqueue-include-dir=<path>." >&2;}
-    as_fn_error $? "FreeRADIUS requires libkqueue (or system kqueue)" "$LINENO" 5
-  fi
+  as_fn_error $? "FreeRADIUS requires libkqueue (or system kqueue)" "$LINENO" 5
 fi
 
 case "$target" in
index 2fb748058df09605721b5cc6679f56687df28ba1..4148085075db227a7516cbad6f2734373beef11b 100644 (file)
@@ -1173,13 +1173,11 @@ fi
 dnl #
 dnl # Check for kqueue header files
 dnl #
+smart_try_dir="${kqueue_include_dir:-/usr/include/kqueue}"
+FR_SMART_CHECK_INCLUDE([sys/event.h])
 if test "x$ac_cv_header_sys_event_h" != "xyes"; then
-  smart_try_dir="${kqueue_include_dir:-/usr/include/kqueue}"
-  FR_SMART_CHECK_INCLUDE([sys/event.h])
-  if test "x$ac_cv_header_sys_event_h" != "xyes"; then
-    AC_MSG_WARN([kqueue headers not found. Use --with-kqueue-include-dir=<path>.])
-    AC_MSG_ERROR([FreeRADIUS requires libkqueue (or system kqueue)])
-  fi
+  AC_MSG_WARN([kqueue headers not found. Use --with-kqueue-include-dir=<path>.])
+  AC_MSG_ERROR([FreeRADIUS requires libkqueue (or system kqueue)])
 fi
 
 dnl #