From 4033a44b95cb3062f9319491c9c9fa642e9dbf79 Mon Sep 17 00:00:00 2001 From: Alex Waugh Date: Fri, 3 Jan 2003 22:07:05 +0000 Subject: [PATCH] MFH --- acinclude.m4 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/acinclude.m4 b/acinclude.m4 index 521c8f1fe0..51080a86f9 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1464,6 +1464,7 @@ int main(void) { 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 int main(int argc, char *argv[]) @@ -1490,7 +1491,17 @@ int main(int argc, char *argv[]) } ], [have_broken_glibc_fopen_append=no], -[have_broken_glibc_fopen_append=yes ]) +[have_broken_glibc_fopen_append=yes ], +AC_TRY_COMPILE([ +#include +],[ +#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) -- 2.50.1