1
1
PHP_ARG_WITH([ xmlrpc] ,
2
- [ for XMLRPC-EPI support] ,
2
+ [ whether to build with XMLRPC-EPI support] ,
3
3
[ AS_HELP_STRING ( [ [ --with-xmlrpc[ =DIR] ] ] ,
4
4
[ Include XMLRPC-EPI support] ) ] )
5
5
6
- PHP_ARG_WITH([ libexpat-dir ] ,
7
- [ libexpat dir for XMLRPC-EPI ] ,
8
- [ AS_HELP_STRING ( [ --with-libexpat-dir=DIR ] ,
9
- [ XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated) ] ) ] ,
6
+ PHP_ARG_WITH([ expat ] ,
7
+ [ whether to build with expat support ] ,
8
+ [ AS_HELP_STRING ( [ --with-expat ] ,
9
+ [ XMLRPC-EPI: use expat instead of libxml2 ] ) ] ,
10
10
[ no] ,
11
11
[ no] )
12
12
@@ -24,9 +24,9 @@ if test "$PHP_XMLRPC" != "no"; then
24
24
AC_DEFINE ( HAVE_XMLRPC ,1 ,[ ] )
25
25
26
26
dnl
27
- dnl Default to libxml2 if --with-libexpat-dir is not used
27
+ dnl Default to libxml2 if --with-expat is not specified.
28
28
dnl
29
- if test "$PHP_LIBEXPAT_DIR " = "no"; then
29
+ if test "$PHP_EXPAT " = "no"; then
30
30
31
31
if test "$PHP_LIBXML" = "no"; then
32
32
AC_MSG_ERROR ( [ XML-RPC extension requires LIBXML extension, add --with-libxml] )
@@ -39,20 +39,7 @@ if test "$PHP_XMLRPC" != "no"; then
39
39
fi
40
40
] )
41
41
else
42
- testval=no
43
- for i in $PHP_LIBEXPAT_DIR $XMLRPC_DIR /usr/local /usr; do
44
- if test -f $i/$PHP_LIBDIR/libexpat.a || test -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then
45
- AC_DEFINE ( HAVE_LIBEXPAT ,1 ,[ ] )
46
- PHP_ADD_LIBRARY_WITH_PATH(expat, $i/$PHP_LIBDIR, XMLRPC_SHARED_LIBADD)
47
- PHP_ADD_INCLUDE($i/include)
48
- testval=yes
49
- break
50
- fi
51
- done
52
-
53
- if test "$testval" = "no"; then
54
- AC_MSG_ERROR ( [ XML-RPC support requires libexpat. Use --with-libexpat-dir=<DIR> (deprecated!)] )
55
- fi
42
+ PHP_SETUP_EXPAT([ XMLRPC_SHARED_LIBADD] )
56
43
fi
57
44
58
45
dnl if iconv is shared or missing then we should build iconv ourselves
0 commit comments