@@ -4,16 +4,16 @@ PHP_ARG_WITH([enchant],
4
4
[ Include Enchant support] ) ] )
5
5
6
6
if test "$PHP_ENCHANT" != "no"; then
7
- PKG_CHECK_MODULES([ ENCHANT2] , [ enchant-2] , [ found_enchant_2=yes ] , [ found_enchant_2=no ] )
8
-
9
- if test "$ found_enchant_2" = "yes"; then
7
+ PKG_CHECK_MODULES([ ENCHANT2] , [ enchant-2] ,
8
+ [ found_enchant_2=yes ] ,
9
+ [ found_enchant_2=no ] )
10
10
11
+ AS_VAR_IF ( [ found_enchant_2] , [ yes] , [
11
12
PHP_EVAL_INCLINE([ $ENCHANT2_CFLAGS] )
12
13
PHP_EVAL_LIBLINE([ $ENCHANT2_LIBS] , [ ENCHANT_SHARED_LIBADD] )
13
-
14
- AC_DEFINE ( HAVE_ENCHANT_GET_VERSION , 1 , [ enchant_get_version since 1.6.0 ] )
15
-
16
- else
14
+ AC_DEFINE ( [ HAVE_ENCHANT_GET_VERSION] , [ 1] ,
15
+ [ enchant_get_version since 1.6.0] )
16
+ ] , [
17
17
AC_MSG_WARN ( [ libenchant-2 not found trying with old libenchant] )
18
18
PKG_CHECK_MODULES([ ENCHANT] , [ enchant >= 1.4.2] )
19
19
@@ -22,7 +22,7 @@ if test "$PHP_ENCHANT" != "no"; then
22
22
23
23
PHP_CHECK_LIBRARY([ enchant] , [ enchant_get_version] ,
24
24
[ AC_DEFINE ( [ HAVE_ENCHANT_GET_VERSION] , [ 1] ,
25
- [ enchant_get_version since 1.6.0 ] ) ] ,
25
+ [ enchant_get_version since 1.6.0] ) ] ,
26
26
[ ] ,
27
27
[ $ENCHANT_LIBS] )
28
28
@@ -31,7 +31,7 @@ if test "$PHP_ENCHANT" != "no"; then
31
31
[ enchant_broker_set_param since 1.5.0 and removed in 2.x] ) ] ,
32
32
[ ] ,
33
33
[ $ENCHANT_LIBS] )
34
- fi
34
+ ] )
35
35
36
36
AC_DEFINE ( HAVE_ENCHANT , 1 , [ ] )
37
37
0 commit comments