X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be0872076f185e94b1a76c116ac4874af443c526..2695a14e85544fe0075f84d841893d612b62f530:/configure.in diff --git a/configure.in b/configure.in index 014e565706..d71e25eff0 100644 --- a/configure.in +++ b/configure.in @@ -1824,8 +1824,10 @@ if test "$wxUSE_SHARED" = "yes"; then AC_MSG_ERROR(unknown system type ${host}.) esac - dnl set target to shared - WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" + dnl set target to shared if not explicitly chose static before + if test "x$WX_TARGET_LIBRARY" = "x"; then + WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" + fi else dnl set target to static WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" @@ -2130,6 +2132,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 @@ -3000,6 +3009,7 @@ AC_OUTPUT([ samples/resource/Makefile samples/sashtest/Makefile samples/scroll/Makefile + samples/scrollsub/Makefile samples/splitter/Makefile samples/text/Makefile samples/thread/Makefile