alexwaugh               Fri Jan  3 17:05:13 2003 EDT

  Modified files:              
    /php4       acinclude.m4 
  Log:
  Provide alternative for glibc brokenness test when cross compiling
  
  
Index: php4/acinclude.m4
diff -u php4/acinclude.m4:1.223 php4/acinclude.m4:1.224
--- php4/acinclude.m4:1.223     Thu Jan  2 14:20:57 2003
+++ php4/acinclude.m4   Fri Jan  3 17:05:12 2003
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.223 2003/01/02 19:20:57 iliaa Exp $
+dnl $Id: acinclude.m4,v 1.224 2003/01/03 22:05:12 alexwaugh Exp $
 dnl
 dnl This file contains local autoconf functions.
 
@@ -1457,6 +1457,7 @@
 
 AC_DEFUN([PHP_BROKEN_GLIBC_FOPEN_APPEND],[
   AC_MSG_CHECKING([for broken libc stdio])
+  AC_CACHE_VAL(have_broken_glibc_fopen_append,[
   AC_TRY_RUN([
 #include <stdio.h>
 int main(int argc, char *argv[])
@@ -1483,7 +1484,17 @@
 }
 ],
 [have_broken_glibc_fopen_append=no],
-[have_broken_glibc_fopen_append=yes ])
+[have_broken_glibc_fopen_append=yes ],
+AC_TRY_COMPILE([
+#include <features.h>
+],[
+#if !__GLIBC_PREREQ(2,2)
+choke me
+#endif
+],
+[have_broken_glibc_fopen_append=yes],
+[have_broken_glibc_fopen_append=no ])
+)])
 
   if test "$have_broken_glibc_fopen_append" = "yes"; then
        AC_MSG_RESULT(yes)



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

Reply via email to