diff --git a/ext/date/config.w32 b/ext/date/config.w32 index 23af2f7d65871..b053e27aae354 100644 --- a/ext/date/config.w32 +++ b/ext/date/config.w32 @@ -20,4 +20,4 @@ tl_config.WriteLine("#define timelib_free efree"); tl_config.Close(); PHP_INSTALL_HEADERS("ext/date", "php_date.h lib/timelib.h lib/timelib_config.h"); -AC_DEFINE('HAVE_TIMELIB_CONFIG_H', 1, 'Have timelib_config.h') +AC_DEFINE('HAVE_TIMELIB_CONFIG_H', 1, 'Define to 1 if you have the header file.'); diff --git a/ext/date/config0.m4 b/ext/date/config0.m4 index 1f091215be3ed..5af6be13faf71 100644 --- a/ext/date/config0.m4 +++ b/ext/date/config0.m4 @@ -22,7 +22,8 @@ PHP_ADD_INCLUDE([$ext_builddir/lib]) PHP_ADD_INCLUDE([$ext_srcdir/lib]) PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_config.h]) -AC_DEFINE([HAVE_TIMELIB_CONFIG_H], [1], [Have timelib_config.h]) +AC_DEFINE([HAVE_TIMELIB_CONFIG_H], [1], + [Define to 1 if you have the header file.]) cat > $ext_builddir/lib/timelib_config.h <]) diff --git a/ext/posix/config.m4 b/ext/posix/config.m4 index b5c45dd1c899e..ac70068bac8f6 100644 --- a/ext/posix/config.m4 +++ b/ext/posix/config.m4 @@ -58,7 +58,7 @@ dnl (first argument is not validated and has different error). [php_cv_func_ttyname_r=yes], [php_cv_func_ttyname_r=no])])]) AS_VAR_IF([php_cv_func_ttyname_r], [yes], [AC_DEFINE([HAVE_TTYNAME_R], [1], - [Define to 1 if you have a working ttyname_r.])], + [Define to 1 if you have a working 'ttyname_r' function.])], [AC_MSG_NOTICE([posix_ttyname() will be thread-unsafe])]) AC_CHECK_MEMBERS([struct utsname.domainname],,,[ diff --git a/ext/session/config.m4 b/ext/session/config.m4 index 3bdab7de1c4c1..c3121b2f03dea 100644 --- a/ext/session/config.m4 +++ b/ext/session/config.m4 @@ -45,5 +45,5 @@ if test "$PHP_MM" != "no"; then [SESSION_SHARED_LIBADD]) PHP_ADD_INCLUDE([$MM_DIR/include]) PHP_INSTALL_HEADERS([ext/session], [mod_mm.h]) - AC_DEFINE(HAVE_LIBMM, 1, [Whether you have libmm]) + AC_DEFINE([HAVE_LIBMM], [1], [Define to 1 if the system has the 'mm' library.]) fi diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index dc5dc1b472b48..b3e3e975a8172 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -324,9 +324,9 @@ case "$PHP_SAPI" in ;; esac -if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then - AC_DEFINE(ENABLE_CHROOT_FUNC, 1, [Whether to enable chroot() function]) -fi +AS_VAR_IF([PHP_ENABLE_CHROOT_FUNC], [yes], + [AC_DEFINE([ENABLE_CHROOT_FUNC], [1], + [Define to 1 to enable the 'chroot' function.])]) dnl dnl Detect library functions needed by php dns_xxx functions @@ -370,7 +370,8 @@ if test "$PHP_PASSWORD_ARGON2" != "no"; then PHP_EVAL_INCLINE([$ARGON2_CFLAGS]) PHP_EVAL_LIBLINE([$ARGON2_LIBS]) - AC_DEFINE(HAVE_ARGON2LIB, 1, [ ]) + AC_DEFINE([HAVE_ARGON2LIB], [1], + [Define to 1 if the system has the 'libargon2' library.]) fi dnl diff --git a/ext/standard/config.w32 b/ext/standard/config.w32 index 282189c52dade..4740b6930ce9d 100644 --- a/ext/standard/config.w32 +++ b/ext/standard/config.w32 @@ -8,7 +8,7 @@ if (PHP_PASSWORD_ARGON2 != "no") { if (!CHECK_FUNC_IN_HEADER("argon2.h", "argon2id_hash_raw", PHP_PHP_BUILD + "\\include", "CFLAGS")) { ERROR("Please verify that Argon2 header and libraries >= 20161029 are installed"); } - AC_DEFINE('HAVE_ARGON2LIB', 1); + AC_DEFINE('HAVE_ARGON2LIB', 1, "Define to 1 if the system has the 'libargon2' library."); } else { WARNING("Argon2 not enabled; libraries and headers not found"); } diff --git a/ext/xsl/config.m4 b/ext/xsl/config.m4 index 9f0bbe021a2d9..c7e59bc4074f8 100644 --- a/ext/xsl/config.m4 +++ b/ext/xsl/config.m4 @@ -23,7 +23,7 @@ if test "$PHP_XSL" != "no"; then PHP_EVAL_INCLINE([$EXSLT_CFLAGS]) PHP_EVAL_LIBLINE([$EXSLT_LIBS], [XSL_SHARED_LIBADD]) AC_DEFINE([HAVE_XSL_EXSLT], [1], - [Define to 1 if system has the EXSLT extension library for XSLT.]) + [Define to 1 if the system has the EXSLT extension library for XSLT.]) ], [ ]) AC_DEFINE([HAVE_XSL], [1], diff --git a/ext/xsl/config.w32 b/ext/xsl/config.w32 index fadf7ced01d7c..4990c3c5bd073 100644 --- a/ext/xsl/config.w32 +++ b/ext/xsl/config.w32 @@ -28,7 +28,7 @@ if (PHP_XSL != "no") { if (ext_xsl_lib_found && CHECK_HEADER_ADD_INCLUDE("libxslt\\xslt.h", "CFLAGS_XSL")) { if (ext_exslt_lib_found) { if (CHECK_HEADER_ADD_INCLUDE("libexslt\\exslt.h", "CFLAGS_XSL")) { - AC_DEFINE("HAVE_XSL_EXSLT", 1, "Define to 1 if system has the EXSLT extension library for XSLT."); + AC_DEFINE("HAVE_XSL_EXSLT", 1, "Define to 1 if the system has the EXSLT extension library for XSLT."); } } EXTENSION("xsl", "php_xsl.c xsltprocessor.c", PHP_XSL_SHARED); diff --git a/sapi/cgi/config9.m4 b/sapi/cgi/config9.m4 index 15fca6e34a3bf..eaae5f7441084 100644 --- a/sapi/cgi/config9.m4 +++ b/sapi/cgi/config9.m4 @@ -14,7 +14,7 @@ if test "$PHP_CGI" != "no"; then SunOS\ 5.*) AC_MSG_RESULT([yes]) AC_DEFINE([USE_LOCKING], [1], - [Define if cross-process locking is required by accept()]) + [Define to 1 if cross-process locking is required by 'accept()'.]) ;; *) AC_MSG_RESULT([no]) diff --git a/sapi/phpdbg/config.m4 b/sapi/phpdbg/config.m4 index b65fc940ee1f7..936a2c96f9206 100644 --- a/sapi/phpdbg/config.m4 +++ b/sapi/phpdbg/config.m4 @@ -32,7 +32,8 @@ if test "$PHP_PHPDBG" != "no"; then AC_MSG_CHECKING([for phpdbg and readline integration]) if test "$PHP_PHPDBG_READLINE" = "yes"; then if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then - AC_DEFINE(HAVE_PHPDBG_READLINE, 1, [ ]) + AC_DEFINE([HAVE_PHPDBG_READLINE], [1], + [Define to 1 if the phpdbg SAPI has libedit/readline integration.]) PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS" AC_MSG_RESULT([ok]) else