1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Autotools: Sync CS in enchant extension

This commit is contained in:
Peter Kokot
2024-07-30 07:54:32 +02:00
parent 8c18ae7899
commit 0970fd439a

View File

@@ -4,16 +4,16 @@ PHP_ARG_WITH([enchant],
[Include Enchant support])])
if test "$PHP_ENCHANT" != "no"; then
PKG_CHECK_MODULES([ENCHANT2], [enchant-2], [found_enchant_2=yes], [found_enchant_2=no])
if test "$found_enchant_2" = "yes"; then
PKG_CHECK_MODULES([ENCHANT2], [enchant-2],
[found_enchant_2=yes],
[found_enchant_2=no])
AS_VAR_IF([found_enchant_2], [yes], [
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 ])
else
AC_DEFINE([HAVE_ENCHANT_GET_VERSION], [1],
[enchant_get_version since 1.6.0])
], [
AC_MSG_WARN([libenchant-2 not found trying with old libenchant])
PKG_CHECK_MODULES([ENCHANT], [enchant >= 1.4.2])
@@ -22,7 +22,7 @@ if test "$PHP_ENCHANT" != "no"; then
PHP_CHECK_LIBRARY([enchant], [enchant_get_version],
[AC_DEFINE([HAVE_ENCHANT_GET_VERSION], [1],
[enchant_get_version since 1.6.0 ])],
[enchant_get_version since 1.6.0])],
[],
[$ENCHANT_LIBS])
@@ -31,7 +31,7 @@ if test "$PHP_ENCHANT" != "no"; then
[enchant_broker_set_param since 1.5.0 and removed in 2.x])],
[],
[$ENCHANT_LIBS])
fi
])
AC_DEFINE(HAVE_ENCHANT, 1, [ ])