From 814190848c182942cefeb48be7b5efdaaa61a367 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Fri, 28 Aug 2026 13:34:09 +0000 Subject: [PATCH] * buildconf: Strip the PACKAGE_* definitions from the generated ap_config_auto.h.in. AC_INIT is not given the package arguments so they are unused here, and only pollute the namespace of anything which includes the installed header. Co-Authored-By: Claude Opus 5 (1M context) GitHub: PR #380 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937570 13f79535-47bb-0310-9956-ffa450edef68 --- buildconf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buildconf b/buildconf index 74ad23c7a4..35de192664 100755 --- a/buildconf +++ b/buildconf @@ -310,6 +310,12 @@ else exit 1 fi +# The PACKAGE_* definitions are unused here since AC_INIT is not given +# the package arguments, and only pollute the namespace of anything +# which includes the installed header. +echo buildconf: removing PACKAGE_ definitions from $config_h_in +sed -i -e '/^#undef PACKAGE_/d' $config_h_in + echo buildconf: rebuilding configure rm -f config.cache if ${AUTOCONF:-autoconf} ${autoconf_args}; then