Switch to AC_CHECK_DECLS instead of WX_CHECK_DECLS.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2006-08-22 21:55:01 +00:00
parent 7317857df7
commit 82a2636b8c
2 changed files with 28 additions and 29 deletions

View File

@@ -4666,7 +4666,7 @@ AC_CHECK_FUNCS(uname gethostname, break)
SAVE_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -D_REENTRANT"
WX_CHECK_DECLS(strtok_r, string.h)
AC_CHECK_DECLS(strtok_r, AC_DEFINE(HAVE_STRTOK_R))
CPPFLAGS="$SAVE_CPPFLAGS"
dnl check for inet_addr and inet_aton (these may live either in libc, or in
@@ -5142,7 +5142,7 @@ if test "$wxUSE_THREADS" = "yes"; then
else
dnl on some systems, _REENTRANT should be defined if we want to use any _r()
dnl functions - add tests for other functions here as well
if test "$wx_cv_decl_strtok_r" = "yes"; then
if test "$ac_cv_have_decl_strtok_r" = "yes"; then
AC_MSG_CHECKING(if -D_REENTRANT is needed)
if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"