Skip to content

Commit 73415c9

Browse files
author
foobar
committed
- Unbundle libxml and expat. Now this compiles too..
1 parent a432df5 commit 73415c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+120
-129877
lines changed

acinclude.m4

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -578,23 +578,6 @@ AC_ARG_ENABLE($1,[$3],$5=[$]enableval,
578578
PHP_ARG_ANALYZE($5,[$2],$6)
579579
])
580580

581-
AC_DEFUN([PHP_ARG_BUNDLE],[
582-
PHP_REAL_ARG_BUNDLE([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z-,A-Z_),[ifelse($5,,yes,$5)])
583-
])
584-
585-
AC_DEFUN([PHP_REAL_ARG_BUNDLE],[
586-
ifelse([$2],,,[AC_MSG_CHECKING([$2])])
587-
AC_ARG_WITH($1,[$3],$5=[$]withval,
588-
[
589-
$5=ifelse($4,,no,$4)
590-
591-
if test "$PHP_BUNDLE_ALL" && test "$6" = "yes"; then
592-
$5=$PHP_BUNDLE_ALL
593-
fi
594-
])
595-
PHP_ARG_ANALYZE($5,[$2],$6)
596-
])
597-
598581
AC_DEFUN([PHP_MODULE_PTR],[
599582
EXTRA_MODULE_PTRS="$EXTRA_MODULE_PTRS $1,"
600583
])
@@ -1717,6 +1700,41 @@ ifelse([$3],[],,[else $3])
17171700
fi
17181701
])
17191702

1703+
dnl
1704+
dnl PHP_SETUP_LIBXML(shared-add [, action-found [, action-not-found]])
1705+
dnl
1706+
dnl Common setup macro for libxml
1707+
dnl
1708+
AC_DEFUN([PHP_SETUP_LIBXML], [
1709+
1710+
for i in $PHP_LIBXML_DIR /usr/local /usr; do
1711+
if test -x "$i/bin/xml2-config"; then
1712+
XML2_CONFIG="$i/bin/xml2-config"
1713+
break
1714+
fi
1715+
done
1716+
1717+
if test -x "$XML2_CONFIG"; then
1718+
libxml_full_version=`$XML2_CONFIG --version`
1719+
ac_IFS=$IFS
1720+
IFS="."
1721+
set $libxml_full_version
1722+
IFS=$ac_IFS
1723+
LIBXML_VERSION=`expr [$]1 \* 1000000 + [$]2 \* 1000 + [$]3`
1724+
if test "$LIBXML_VERSION" -ge "2004014"; then
1725+
LIBXML_LIBS=`$XML2_CONFIG --libs`
1726+
LIBXML_INCS=`$XML2_CONFIG --cflags`
1727+
PHP_EVAL_LIBLINE($LIBXML_LIBS, $shared_lib_add)
1728+
PHP_EVAL_INCLINE($LIBXML_INCS)
1729+
AC_DEFINE(HAVE_LIBXML, 1, [ ])
1730+
$2
1731+
else
1732+
AC_MSG_ERROR([libxml2 version 2.4.14 or greater required.])
1733+
fi
1734+
ifelse([$3],[],,[else $3])
1735+
fi
1736+
])
1737+
17201738
AC_DEFUN([PHP_DEF_HAVE],[AC_DEFINE([HAVE_]translit($1,a-z_-,A-Z__), 1, [ ])])
17211739

17221740
dnl

build/build.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ generated_lists:
3636
@echo makefile_am_files = $(ZENDDIR)/Makefile.am \
3737
TSRM/Makefile.am > $@
3838
@echo config_h_files = $(ZENDDIR)/acconfig.h TSRM/acconfig.h >> $@
39-
@echo config_m4_files = $(ZENDDIR)/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 bundle/*/config*.m4 \
39+
@echo config_m4_files = $(ZENDDIR)/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 \
4040
$(ZENDDIR)/acinclude.m4 ext/*/config*.m4 sapi/*/config.m4 >> $@
4141

4242
$(STAMP): build/buildcheck.sh

bundle/expat/Changes

Lines changed: 0 additions & 99 deletions
This file was deleted.

bundle/expat/README

Lines changed: 0 additions & 72 deletions
This file was deleted.

bundle/expat/README.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

bundle/expat/ascii.h

Lines changed: 0 additions & 85 deletions
This file was deleted.

bundle/expat/asciitab.h

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)