on some systems (HP-UX), strtok_r() needs _REENTRANT to be defined

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-10-15 17:35:14 +00:00
parent 80810ca399
commit d64af447da
2 changed files with 207 additions and 189 deletions

389
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -2130,6 +2130,13 @@ if test "$wxUSE_THREADS" = "yes"; then
CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
else
dnl on some systems, _REENTRANT should bedefined if we want to use any _r()
dnl functions - add tests for other functions here as well
if test "$ac_cv_func_strtok_r" = "yes"; then
CFLAGS="${CFLAGS} -D_REENTRANT"
CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
fi
fi
if test "$WXGTK12" = 1 ; then