diff -Naur php-5.2.5_old/acinclude.m4 php-5.2.5/acinclude.m4 --- php-5.2.5_old/acinclude.m4 2008-08-08 11:27:24.000000000 -0400 +++ php-5.2.5/acinclude.m4 2008-08-08 11:28:12.000000000 -0400 @@ -2006,22 +2006,22 @@ AC_DEFUN([PHP_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]) - ]) + ac_cv_c_bigendian_php=yes +dnl AC_TRY_RUN( +dnl [ +dnl int main(void) +dnl{ + dnl short one = 1; +dnl char *cp = (char *)&one; + + dnl if (*cp == 0) { + dnl return(0); +dnl } else { +dnl return(1); + dnl } +dnl} + dnl ], [ac_cv_c_bigendian_php=yes], [ac_cv_c_bigendian_php=no], [ac_cv_c_bigendian_php=unknown]) + dnl]) if test $ac_cv_c_bigendian_php = yes; then AC_DEFINE(WORDS_BIGENDIAN, [], [Define if processor uses big-endian word]) fi diff -Naur php-5.2.5_old/configure.in php-5.2.5/configure.in --- php-5.2.5_old/configure.in 2008-08-08 11:27:24.000000000 -0400 +++ php-5.2.5/configure.in 2008-08-08 11:28:06.000000000 -0400 @@ -431,15 +431,15 @@ PHP_STRUCT_FLOCK PHP_SOCKLEN_T -AC_CHECK_SIZEOF(size_t, 8) +AC_CHECK_SIZEOF(size_t, 4) AC_CHECK_SIZEOF(long long, 8) AC_CHECK_SIZEOF(long long int, 8) -AC_CHECK_SIZEOF(long, 8) +AC_CHECK_SIZEOF(long, 4) AC_CHECK_SIZEOF(int, 4) dnl These are defined elsewhere than stdio.h PHP_CHECK_SIZEOF(intmax_t, 0) -PHP_CHECK_SIZEOF(ssize_t, 8) +PHP_CHECK_SIZEOF(ssize_t, 4) PHP_CHECK_SIZEOF(ptrdiff_t, 8) dnl Check for members of the stat structure