git: 586bdc6f7555 - stable/14 - bsd.mkopt.mk: Avoid warning from makeman

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 28 Feb 2025 18:20:01 UTC
The branch stable/14 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=586bdc6f755514519f0d2da1ac8e4c7b8077999c

commit 586bdc6f755514519f0d2da1ac8e4c7b8077999c
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-02-24 14:51:31 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-02-28 18:19:50 +0000

    bsd.mkopt.mk: Avoid warning from makeman
    
    Setting WITHOUT_X where X is a __REQUIRED_OPTION produces a warning.
    
    This occurred during makeman's `make showconfig` invocatation, but the
    warning serves no purpose there, and clutters makeman's output.  Skip
    the warning for the showconfig target used by makeman.
    
    Reviewed by:    brooks
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D49123
    
    (cherry picked from commit 085c0641a2ea0dee2c58b5bc6e62790a164ebd52)
---
 share/mk/bsd.mkopt.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/mk/bsd.mkopt.mk b/share/mk/bsd.mkopt.mk
index 7d43e91b042d..6ddb7af5fc0d 100644
--- a/share/mk/bsd.mkopt.mk
+++ b/share/mk/bsd.mkopt.mk
@@ -58,7 +58,7 @@ MK_${var}:=	yes
 # step towards removing the options entirely.
 #
 .for var in ${__REQUIRED_OPTIONS}
-.if defined(WITHOUT_${var})
+.if defined(WITHOUT_${var}) && !make(showconfig)
 .warning WITHOUT_${var} option ignored: it is no longer supported
 .endif
 MK_${var}:=	yes