]> granicus.if.org Git - php/commitdiff
Implement #64517: Add AC_ARG_PROGRAM macro
authorPeter Kokot <peterkokot@gmail.com>
Sat, 25 Aug 2018 18:52:28 +0000 (20:52 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Wed, 29 Aug 2018 00:04:48 +0000 (02:04 +0200)
The AC_ARG_PROGRAM Autoconf macro provides program name transformations
when installing. This patch implements #64517 and prepares the
implementation for the request #60518.

In ./configure --help it additionally outputs --program-prefix=PREFIX,
--program-suffix=SUFFIX and the upcoming --program-transform-name=PROGRAM
option.

Macro AC_ARG_PROGRAM is available since Autoconf 2.0 and needs to be
called after the AC_CANONICAL_TARGET macro.

Refs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Transforming-Names.html

UPGRADING.INTERNALS
configure.ac

index 0968b76620fea3da405444790787acde0f9eb500..a7399d16d4f9ec4e6ebc479502c73e3acb678afd 100644 (file)
@@ -27,6 +27,8 @@ PHP 7.4 INTERNALS UPGRADE NOTES
 ========================
 
   a. Unix build system changes
+    - configure --help now also outputs --program-suffix and --program-prefix
+      information by using the Autoconf AC_ARG_PROGRAM macro.
 
   b. Windows build system changes
 
index 8ec2ee2369b998d0ed55ef9e01996fa85d0689c7..7249f59f966a4c25cc2dd65f8e9e337dc2ed7c1d 100644 (file)
@@ -1207,6 +1207,8 @@ EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS"
 EXTRA_LIBS="$EXTRA_LIBS $LIBS"
 unset LIBS LDFLAGS
 
+AC_ARG_PROGRAM
+
 test "$prefix" = "NONE" && prefix=/usr/local
 test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
 test "$program_prefix" = "NONE" && program_prefix=