Skip to content

Commit 35f64bb

Browse files
authored
Autotools: Trim redundant newlines in PHP_ADD_BUILD_DIR (#14946)
This reduces redundant newlines in the generated configure script while keeping possible 'dnl' usage before or after this macro call working as before (backwards compatible).
1 parent 808d5b3 commit 35f64bb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

build/php.m4

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -893,11 +893,7 @@ dnl When "create" is given, the provided "dirs" are created immediately upon
893893
dnl macro invocation, instead of deferring it to the PHP_GEN_BUILD_DIRS.
894894
dnl
895895
AC_DEFUN([PHP_ADD_BUILD_DIR],[
896-
ifelse($2,,[
897-
BUILD_DIR="$BUILD_DIR $1"
898-
], [
899-
$php_shtool mkdir -p $1
900-
])
896+
ifelse($2,,[BUILD_DIR="$BUILD_DIR $1"], [$php_shtool mkdir -p $1])
901897
])
902898

903899
dnl

0 commit comments

Comments
 (0)