com php-src: Implement #64517: Add AC_ARG_PROGRAM macro : UPGRADING.INTERNALS configure.ac
| From: | Peter Kokot | Date: | Wed, 29 Aug 2018 00:04:48 +0000 |
| Subject: | com php-src: Implement #64517: Add AC_ARG_PROGRAM macro : UPGRADING.INTERNALS configure.ac | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102908@lists.php.net to get a copy of this message | ||
Commit: 3748d8070ffd7750c73c327e212d6dc4fc76d427
Author: Peter Kokot <peterkokot@gmail.com> Sat, 25 Aug 2018 20:52:28 +0200
Parents: 03fc3d85d8a0624c7a1171576db9cf44575763b0
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3748d8070ffd7750c73c327e212d6dc4fc76d427
Log:
Implement #64517: Add AC_ARG_PROGRAM macro
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
Bugs:
https://bugs.php.net/64517
https://bugs.php.net/60518
Changed paths:
M UPGRADING.INTERNALS
M configure.ac
Diff:
diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS
index 0968b76..a7399d1 100644
--- a/UPGRADING.INTERNALS
+++ b/UPGRADING.INTERNALS
@@ -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
diff --git a/configure.ac b/configure.ac
index 8ec2ee2..7249f59 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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=