]> granicus.if.org Git - php/commitdiff
Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS
authorPeter Kokot <peterkokot@gmail.com>
Thu, 5 Jul 2018 01:06:06 +0000 (03:06 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 7 Jul 2018 10:10:53 +0000 (12:10 +0200)
Autoconf doesn't mention the AC_CONFIG_HEADER macro since the v2.13
released in 1999 anywhere in the documentation. Future of this macro is
unclear and commented as possible candidate for obsoletion in the
autoconf source code. Since it is just a wrapper around the main
AC_CONFIG_HEADERS macro, the functionality is the same, and also more
clear to find it in the autoconf documentation and avoid possible future
obsoletion.

configure.ac
scripts/phpize.m4

index a2445a5a8f0567fae1fc43e31f71afb726cf01e4..178a0893c0684e9148d0d07adac0fb6a2bfaaee6 100644 (file)
@@ -16,7 +16,7 @@ PHP_CONFIG_NICE(config.nice)
 
 PHP_CANONICAL_HOST_TARGET
 
-AC_CONFIG_HEADER(main/php_config.h)
+AC_CONFIG_HEADERS([main/php_config.h])
 AH_TOP([
 #ifndef PHP_CONFIG_H
 #define PHP_CONFIG_H
index 1094e2812c823e595332668a388b898a91d16a91..9609b181eb82a7a05c1851ec60960b5c4a7b84f1 100644 (file)
@@ -197,6 +197,6 @@ PHP_GEN_GLOBAL_MAKEFILE
 test -d modules || $php_shtool mkdir modules
 touch .deps
 
-AC_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS([config.h])
 
 AC_OUTPUT()