Skip to content

Commit 7232636

Browse files
authored
Sync PHP_SUBST_OLD (#14746)
- All arguments quoted - PHP_VERSION, PHP_VERSION_ID, PHP_LDFLAGS are used only in templates with @...@ placeholders - These are not used in generated Makefile neither in templates: abs_builddir, abs_srcdir, DEBUG_CFLAGS - These are used only in generated Makefile: EXTRA_LDFLAGS, EXTRA_LDFLAGS_PROGRAM, ZEND_EXTRA_LIBS, INCLUDES, EXTRA_INCLUDES, INSTALL_IT, NATIVE_RPATHS
1 parent 042ae15 commit 7232636

File tree

2 files changed

+19
-24
lines changed

2 files changed

+19
-24
lines changed

build/php.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,8 +1532,8 @@ dnl .sl
15321532
dnl
15331533
AC_DEFUN([PHP_SHLIB_SUFFIX_NAMES],[
15341534
AC_REQUIRE([PHP_CANONICAL_HOST_TARGET])dnl
1535-
PHP_SUBST_OLD(SHLIB_SUFFIX_NAME)
1536-
PHP_SUBST_OLD(SHLIB_DL_SUFFIX_NAME)
1535+
PHP_SUBST_OLD([SHLIB_SUFFIX_NAME])
1536+
PHP_SUBST_OLD([SHLIB_DL_SUFFIX_NAME])
15371537
SHLIB_SUFFIX_NAME=so
15381538
SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
15391539
case $host_alias in
@@ -2068,8 +2068,8 @@ dnl
20682068
AC_DEFUN([PHP_CONFIG_NICE],[
20692069
AC_REQUIRE([AC_PROG_EGREP])
20702070
AC_REQUIRE([AC_PROG_SED])
2071-
PHP_SUBST_OLD(EGREP)
2072-
PHP_SUBST_OLD(SED)
2071+
PHP_SUBST_OLD([EGREP])
2072+
PHP_SUBST_OLD([SED])
20732073
test -f $1 && mv $1 $1.old
20742074
rm -f $1.old
20752075
cat >$1<<EOF

configure.ac

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,9 @@ AC_SUBST([EXPANDED_PHP_CONFIG_FILE_SCAN_DIR])
14531453
AC_SUBST([PHP_INSTALLED_SAPIS])
14541454
AC_SUBST([SAPI_LIBNAME_SHARED])
14551455
AC_SUBST([SAPI_LIBNAME_STATIC])
1456+
AC_SUBST([PHP_VERSION])
1457+
AC_SUBST([PHP_VERSION_ID])
1458+
AC_SUBST([PHP_LDFLAGS])
14561459

14571460
PHP_UTILIZE_RPATHS
14581461

@@ -1487,17 +1490,13 @@ PHP_SUBST(PHP_GLOBAL_OBJS)
14871490
PHP_SUBST(PHP_BINARIES)
14881491
PHP_SUBST(PHP_MODULES)
14891492
PHP_SUBST(PHP_ZEND_EX)
1490-
1491-
PHP_SUBST_OLD(abs_builddir)
1492-
PHP_SUBST_OLD(abs_srcdir)
1493-
14941493
PHP_SUBST(bindir)
14951494
PHP_SUBST(sbindir)
14961495
PHP_SUBST(exec_prefix)
1497-
PHP_SUBST_OLD(program_prefix)
1498-
PHP_SUBST_OLD(program_suffix)
1496+
PHP_SUBST_OLD([program_prefix])
1497+
PHP_SUBST_OLD([program_suffix])
14991498
PHP_SUBST(includedir)
1500-
PHP_SUBST_OLD(orig_libdir)
1499+
PHP_SUBST_OLD([orig_libdir])
15011500
PHP_SUBST(libdir)
15021501
PHP_SUBST(mandir)
15031502
PHP_SUBST(phptempdir)
@@ -1517,24 +1516,20 @@ PHP_SUBST(CPPFLAGS)
15171516
PHP_SUBST(CXX)
15181517
PHP_SUBST(CXXFLAGS)
15191518
PHP_SUBST(CXXFLAGS_CLEAN)
1520-
PHP_SUBST_OLD(DEBUG_CFLAGS)
1521-
PHP_SUBST_OLD(EXTENSION_DIR)
1522-
PHP_SUBST_OLD(EXTRA_LDFLAGS)
1523-
PHP_SUBST_OLD(EXTRA_LDFLAGS_PROGRAM)
1524-
PHP_SUBST_OLD(EXTRA_LIBS)
1525-
PHP_SUBST_OLD(ZEND_EXTRA_LIBS)
1526-
PHP_SUBST_OLD(INCLUDES)
1527-
PHP_SUBST_OLD(EXTRA_INCLUDES)
1528-
PHP_SUBST_OLD(INSTALL_IT)
1519+
PHP_SUBST_OLD([EXTENSION_DIR])
1520+
PHP_SUBST([EXTRA_LDFLAGS])
1521+
PHP_SUBST([EXTRA_LDFLAGS_PROGRAM])
1522+
PHP_SUBST_OLD([EXTRA_LIBS])
1523+
PHP_SUBST([ZEND_EXTRA_LIBS])
1524+
PHP_SUBST([INCLUDES])
1525+
PHP_SUBST([EXTRA_INCLUDES])
1526+
PHP_SUBST([INSTALL_IT])
15291527
PHP_SUBST(LIBTOOL)
15301528
PHP_SUBST(LN_S)
1531-
PHP_SUBST_OLD(NATIVE_RPATHS)
1532-
PHP_SUBST_OLD(PHP_LDFLAGS)
1529+
PHP_SUBST([NATIVE_RPATHS])
15331530
PHP_SUBST(OVERALL_TARGET)
15341531
PHP_SUBST(PHP_RPATHS)
15351532
PHP_SUBST(PHP_SAPI)
1536-
PHP_SUBST_OLD(PHP_VERSION)
1537-
PHP_SUBST_OLD(PHP_VERSION_ID)
15381533
PHP_SUBST(SHELL)
15391534
PHP_SUBST(PHP_FRAMEWORKS)
15401535
PHP_SUBST(PHP_FRAMEWORKPATH)

0 commit comments

Comments
 (0)