cvs: /php4/ext/xml config.m4
| From: | Sascha Schumann | Date: | Sat, 12 Feb 2000 15:09:02 +0000 |
| Subject: | cvs: /php4/ext/xml config.m4 | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10170@lists.php.net to get a copy of this message | ||
sas Sat Feb 12 07:09:02 2000 EDT
Modified files:
/php4/ext/xml config.m4
Log:
Tell expat the byte order
Index: php4/ext/xml/config.m4
diff -u php4/ext/xml/config.m4:1.17 php4/ext/xml/config.m4:1.18
--- php4/ext/xml/config.m4:1.17 Sat Feb 12 06:28:49 2000
+++ php4/ext/xml/config.m4 Sat Feb 12 07:08:32 2000
@@ -1,11 +1,17 @@
# $Source: /local/repository/php4/ext/xml/config.m4,v $
-# $Id: config.m4,v 1.17 2000/02/12 14:28:49 sas Exp $
+# $Id: config.m4,v 1.18 2000/02/12 15:08:32 sas Exp $
dnl Fallback for --with-xml[=DIR]
AC_ARG_WITH(xml,[],enable_xml=$withval)
AC_C_BIGENDIAN
-
+
+if test "$ac_cv_c_bigendian" = "yes"; then
+ order=21
+else
+ order=12
+fi
+
AC_MSG_CHECKING(for XML support)
AC_ARG_ENABLE(xml,
[ --enable-xml Include XML support using bundled expat lib],[
@@ -17,6 +23,7 @@
if test "$PHP_XML" != "no"; then
AC_DEFINE(HAVE_LIBEXPAT, 1, [ ])
+ CPPFLAGS="$CPPFLAGS -DXML_BYTE_ORDER=$order"
if test "$PHP_XML" = "shared"; then
shared=yes
else