sniper          Mon Jun 20 07:01:11 2005 EDT

  Modified files:              
    /php-src/ext/date/lib       timelib.m4 
  Log:
  - Added AC_TIMELIB_C_BIGENDIAN
  # No need to add it to config.m4, it's run in PHP configure.in already.
  # Only added here so that the  standalone configure.in (to be added later)
  # can use it.
  
  
http://cvs.php.net/diff.php/php-src/ext/date/lib/timelib.m4?r1=1.1&r2=1.2&ty=u
Index: php-src/ext/date/lib/timelib.m4
diff -u php-src/ext/date/lib/timelib.m4:1.1 php-src/ext/date/lib/timelib.m4:1.2
--- php-src/ext/date/lib/timelib.m4:1.1 Thu Jun 16 19:12:10 2005
+++ php-src/ext/date/lib/timelib.m4     Mon Jun 20 07:01:07 2005
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: timelib.m4,v 1.1 2005/06/16 23:12:10 sniper Exp $
+dnl $Id: timelib.m4,v 1.2 2005/06/20 11:01:07 sniper Exp $
 dnl
 dnl
 dnl TL_DEF_HAVE(what [, why])
@@ -33,6 +33,34 @@
 fi
 ])dnl
 
+dnl
+dnl AC_TIMELIB_C_BIGENDIAN
+dnl Replacement macro for AC_C_BIGENDIAN
+dnl
+AC_DEFUN([AC_TIMELIB_C_BIGENDIAN],
+[AC_CACHE_CHECK([whether byte ordering is bigendian], ac_cv_c_bigendian_php,
+ [
+  ac_cv_c_bigendian_php=unknown
+  AC_TRY_RUN(
+  [
+int main(void)
+{
+        short one = 1;
+        char *cp = (char *)&one;
+
+        if (*cp == 0) {
+                return(0);
+        } else {
+                return(1);
+        }
+} 
+  ], [ac_cv_c_bigendian_php=yes], [ac_cv_c_bigendian_php=no], 
[ac_cv_c_bigendian_php=unknown])
+ ])
+ if test $ac_cv_c_bigendian_php = yes; then
+   AC_DEFINE(WORDS_BIGENDIAN, [], [Define if processor uses big-endian word])
+ fi
+])dnl
+
 dnl Check for types, sizes, etc. needed by timelib
 AC_CHECK_SIZEOF(long, 8)
 AC_CHECK_SIZEOF(int, 4)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to