Solve conflict with mysql's readdir_r check. Both defined HAVE_READDIR_R,

but with different values.
This commit is contained in:
Sascha Schumann 2000-05-27 19:30:36 +00:00
parent fb39eda0d8
commit 2bd6846adc

View File

@ -5,7 +5,8 @@ dnl This file contains local autoconf functions.
sinclude(dynlib.m4)
AC_DEFUN(PHP_READDIR_R_TYPE,[
AC_CHECK_FUNCS(readdir_r)
dnl HAVE_READDIR_R is also defined by libmysql
AC_CHECK_FUNC(readdir_r,ac_cv_func_readdir_r=yes,ac_cv_func_readdir=no)
if test "$ac_cv_func_readdir_r" = "yes"; then
AC_CACHE_CHECK(for type of readdir_r, ac_cv_what_readdir_r,[
AC_TRY_RUN([