Update preprocessor macros help texts for enchant and snmp extensions (#15255)

[skip ci]
This commit is contained in:
Peter Kokot 2024-08-06 23:22:28 +02:00 committed by GitHub
parent 84e1920c12
commit 5fc68d8bab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 9 deletions

View file

@ -12,7 +12,8 @@ if test "$PHP_ENCHANT" != "no"; then
PHP_EVAL_INCLINE([$ENCHANT2_CFLAGS])
PHP_EVAL_LIBLINE([$ENCHANT2_LIBS], [ENCHANT_SHARED_LIBADD])
AC_DEFINE([HAVE_ENCHANT_GET_VERSION], [1],
[enchant_get_version since 1.6.0])
[Define to 1 if Enchant library has the 'enchant_get_version' function
(available since 1.6.0).])
], [
AC_MSG_WARN([libenchant-2 not found trying with old libenchant])
PKG_CHECK_MODULES([ENCHANT], [enchant >= 1.4.2])
@ -21,14 +22,14 @@ if test "$PHP_ENCHANT" != "no"; then
PHP_EVAL_LIBLINE([$ENCHANT_LIBS], [ENCHANT_SHARED_LIBADD])
PHP_CHECK_LIBRARY([enchant], [enchant_get_version],
[AC_DEFINE([HAVE_ENCHANT_GET_VERSION], [1],
[enchant_get_version since 1.6.0])],
[AC_DEFINE([HAVE_ENCHANT_GET_VERSION], [1])],
[],
[$ENCHANT_LIBS])
PHP_CHECK_LIBRARY([enchant], [enchant_broker_set_param],
[AC_DEFINE([HAVE_ENCHANT_BROKER_SET_PARAM], [1],
[enchant_broker_set_param since 1.5.0 and removed in 2.x])],
[Define to 1 if Enchant library has the 'enchant_broker_set_param'
function (available since 1.5.0 and removed in 2.x).])],
[],
[$ENCHANT_LIBS])
])

View file

@ -9,7 +9,7 @@ if (PHP_ENCHANT == "yes") {
have_enchant = true;
} else if (CHECK_LIB("libenchant.lib", "enchant", PHP_ENCHANT)) {
have_enchant = true;
AC_DEFINE('HAVE_ENCHANT_BROKER_SET_PARAM', 1);
AC_DEFINE('HAVE_ENCHANT_BROKER_SET_PARAM', 1, "Define to 1 if Enchant library has the 'enchant_broker_set_param' function (available since 1.5.0 and removed in 2.x).");
} else {
have_enchant = false;
WARNING('Could not find libenchant.lib; skipping');
@ -17,7 +17,7 @@ if (PHP_ENCHANT == "yes") {
if (have_enchant) {
EXTENSION("enchant", "enchant.c");
AC_DEFINE('HAVE_ENCHANT', 1, "Define to 1 if the PHP extension 'enchant' is available.");
AC_DEFINE('HAVE_ENCHANT_GET_VERSION', 1);
AC_DEFINE('HAVE_ENCHANT_GET_VERSION', 1, "Define to 1 if Enchant library has the 'enchant_get_version' function (available since 1.6.0).");
}
} else {
WARNING('Could not find enchant.h; skipping');

View file

@ -45,19 +45,24 @@ if test "$PHP_SNMP" != "no"; then
dnl Check whether shutdown_snmp_logging() exists.
PHP_CHECK_LIBRARY([$SNMP_LIBNAME], [shutdown_snmp_logging],
[AC_DEFINE([HAVE_SHUTDOWN_SNMP_LOGGING], [1], [ ])],
[AC_DEFINE([HAVE_SHUTDOWN_SNMP_LOGGING], [1],
[Define to 1 if SNMP library has the 'shutdown_snmp_logging' function.])],
[],
[$SNMP_SHARED_LIBADD])
dnl Check whether usmHMAC192SHA256AuthProtocol exists.
PHP_CHECK_LIBRARY([$SNMP_LIBNAME], [usmHMAC192SHA256AuthProtocol],
[AC_DEFINE([HAVE_SNMP_SHA256], [1], [ ])],
[AC_DEFINE([HAVE_SNMP_SHA256], [1],
[Define to 1 if SNMP library has the 'usmHMAC192SHA256AuthProtocol'
array.])],
[],
[$SNMP_SHARED_LIBADD])
dnl Check whether usmHMAC384SHA512AuthProtocol exists.
PHP_CHECK_LIBRARY([$SNMP_LIBNAME], [usmHMAC384SHA512AuthProtocol],
[AC_DEFINE([HAVE_SNMP_SHA512], [1], [ ])],
[AC_DEFINE([HAVE_SNMP_SHA512], [1],
[Define to 1 if SNMP library has the 'usmHMAC384SHA512AuthProtocol'
array.])],
[],
[$SNMP_SHARED_LIBADD])