From 1a4f9e9a5976529ff5ef0fc0469bfcaa25a43999 Mon Sep 17 00:00:00 2001 From: Kurt Miller Date: Thu, 20 Aug 2026 08:51:29 -0400 Subject: [PATCH] libnfs only requires gnutls on Linux Modify configure to only require gnutls on Linux when libnfs is >= 6. Signed-off-by: Kurt Miller --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 804db16782..2ab8337182 100755 --- a/configure +++ b/configure @@ -2400,9 +2400,9 @@ if test "$libnfs" != "no" ; then libnfs_cflags=$(pkg-config --cflags libnfs) libnfs_libs=$(pkg-config --libs libnfs) - # libnfs >= 6.0.0 requires gnutls for TLS support + # libnfs >= 6.0.0 on Linux requires gnutls for TLS support libnfs_version=$(pkg-config --modversion libnfs 2>/dev/null) - if test -n "$libnfs_version" ; then + if test -n "$libnfs_version" -a "$targetos" = "Linux" ; then libnfs_major=$(echo $libnfs_version | cut -d. -f1) if test "$libnfs_major" -ge 6 ; then if $(pkg-config gnutls > /dev/null 2>&1); then