# HG changeset patch # User Sam Lantinga # Date 1000442055 0 # Node ID 34d316d5e74419c15bec2d3b624bb762449466c7 # Parent 3142d2ac11dbd1e557abbe5669cbad7e7382c199 Added support for the GNU Pth thread lib (thanks Mandin!) diff -r 3142d2ac11db -r 34d316d5e744 configure.in --- a/configure.in Fri Sep 14 04:33:01 2001 +0000 +++ b/configure.in Fri Sep 14 04:34:15 2001 +0000 @@ -1131,6 +1131,33 @@ AM_CONDITIONAL(USE_CLONE, test x$use_clone = xyes) } +dnl See if we can use GNU pth library for threads +CheckPTH() +{ + dnl Check for pth support + AC_ARG_ENABLE(pth, +[ --enable-pth use GNU pth library for multi-threading [default=yes]], + , enable_pth=yes) + if test x$enable_threads = xyes -a x$enable_pth = xyes; then + AC_PATH_PROG(PTH_CONFIG, pth-config, no) + if test "$PTH_CONFIG" = "no"; then + use_pth=no + else + PTH_CFLAGS=`$PTH_CONFIG --cflags` + PTH_LIBS=`$PTH_CONFIG --libs` + SDL_CFLAGS="$SDL_CFLAGS $PTH_CFLAGS" + SDL_LIBS="$SDL_LIBS $PTH_LIBS" + use_pth=yes + fi + AC_MSG_CHECKING(pth) + if test "x$use_pth" = xyes; then + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi + fi +} + dnl Determine whether the compiler can produce Win32 executables CheckWIN32() { diff -r 3142d2ac11db -r 34d316d5e744 docs.html --- a/docs.html Fri Sep 14 04:33:01 2001 +0000 +++ b/docs.html Fri Sep 14 04:34:15 2001 +0000 @@ -16,6 +16,8 @@ Major changes since SDL 1.0.0: