[php-src] PR #14013: Fix erroneous dnl appended in configure
| From: | petk | Date: | Sat, 20 Apr 2024 00:24:40 +0000 |
| Subject: | [php-src] PR #14013: Fix erroneous dnl appended in configure | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25830@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14013
Author: petk
This is a backport of commit 03f15534a17c7031b89dac7aaa21d59474517321 to PHP-8.2 due to GH-14002 and
fixes the PHP_CXX_COMPILE_STDCXX check in ext/intl whether the specified C++ standard is mandatory
or optional.
The
dnl (Discard to Next Line) M4 macro in this combination of m4_if
macros and arguments isn't properly replaced and a literal dnl string is appended
in the configure script. The []dnl works ok.
The configure script diff before and after:
```diff
47520,47521c47520
< ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=truednl
< ac_ext=cpp
---
> ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true
> ac_ext=cpp
48373,48374c48372
< ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=truednl
< ac_ext=cpp
---
> ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
> ac_ext=cpp
```