From 28fc51c74731359b1cbf42f1543e12e2cd899f10 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Wed, 10 Feb 2021 08:10:17 -0500 Subject: [PATCH] [build] augment configure.ac msgs to remove FAM (#3068) augment configure.ac msgs to remove FAM on linux and *bsd x-ref: "stat-cache-fam feature appears disabled since 1.4.56" https://redmine.lighttpd.net/issues/3068 --- configure.ac | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1030fda8..9dc0205e 100644 --- a/configure.ac +++ b/configure.ac @@ -1064,7 +1064,13 @@ AC_ARG_WITH([fam], ) AC_MSG_RESULT([$WITH_FAM]) -if test "$HAVE_SYS_NOTIFY_H" != no; then +dnl "$ac_cv_func_kqueue" is set further below +case "$host_os" in +*bsd*|*darwin* ) WITH_FAM=no ;; +* ) ;; +esac + +if test "$ac_cv_header_sys_inotify_h" != no; then WITH_FAM=no fi @@ -1801,8 +1807,30 @@ lighty_track_feature "network-ipv6" "" \ lighty_track_feature "large-files" "" \ 'test "$ENABLE_LFS" = yes' +case "$host_os" in +*linux* ) +lighty_track_feature "stat-cache-inotify" "" \ + 'test "$ac_cv_header_sys_inotify_h" != no' + ;; +* ) ;; +esac + +case "$host_os" in +*bsd*|*darwin* ) +lighty_track_feature "stat-cache-kqueue" "" \ + 'test "$ac_cv_func_kqueue" != no' + ;; +* ) ;; +esac + +case "$host_os" in +*bsd*|*darwin*|*linux* ) + ;; +* ) lighty_track_feature "stat-cache-fam" "" \ 'test "$WITH_FAM" != no' + ;; +esac lighty_track_feature "webdav-properties" "" \ 'test "$WITH_WEBDAV_PROPS" != no'