Skip to content

Commit 3748d80

Browse files
committed
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
1 parent 03fc3d8 commit 3748d80

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

UPGRADING.INTERNALS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ PHP 7.4 INTERNALS UPGRADE NOTES
2727
========================
2828

2929
a. Unix build system changes
30+
- configure --help now also outputs --program-suffix and --program-prefix
31+
information by using the Autoconf AC_ARG_PROGRAM macro.
3032

3133
b. Windows build system changes
3234

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,8 @@ EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS"
12071207
EXTRA_LIBS="$EXTRA_LIBS $LIBS"
12081208
unset LIBS LDFLAGS
12091209

1210+
AC_ARG_PROGRAM
1211+
12101212
test "$prefix" = "NONE" && prefix=/usr/local
12111213
test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
12121214
test "$program_prefix" = "NONE" && program_prefix=

0 commit comments

Comments
 (0)