You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2026/08/28 13:34:09 UTC

svn commit: r1937570 - httpd/httpd/trunk

Author: jorton
Date: Fri Aug 28 13:34:09 2026
New Revision: 1937570

Log:
* 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) <no...@anthropic.com>
GitHub: PR #380

Modified:
   httpd/httpd/trunk/buildconf

Modified: httpd/httpd/trunk/buildconf
==============================================================================
--- httpd/httpd/trunk/buildconf	Fri Aug 28 13:34:02 2026	(r1937569)
+++ httpd/httpd/trunk/buildconf	Fri Aug 28 13:34:09 2026	(r1937570)
@@ -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