comparison configure.in @ 185:34d316d5e744

Added support for the GNU Pth thread lib (thanks Mandin!)
author Sam Lantinga <slouken@libsdl.org>
date Fri, 14 Sep 2001 04:34:15 +0000
parents 1fc1a101bf23
children c151cfc43c07
comparison
equal deleted inserted replaced
184:3142d2ac11db 185:34d316d5e744
1129 esac 1129 esac
1130 fi 1130 fi
1131 AM_CONDITIONAL(USE_CLONE, test x$use_clone = xyes) 1131 AM_CONDITIONAL(USE_CLONE, test x$use_clone = xyes)
1132 } 1132 }
1133 1133
1134 dnl See if we can use GNU pth library for threads
1135 CheckPTH()
1136 {
1137 dnl Check for pth support
1138 AC_ARG_ENABLE(pth,
1139 [ --enable-pth use GNU pth library for multi-threading [default=yes]],
1140 , enable_pth=yes)
1141 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
1142 AC_PATH_PROG(PTH_CONFIG, pth-config, no)
1143 if test "$PTH_CONFIG" = "no"; then
1144 use_pth=no
1145 else
1146 PTH_CFLAGS=`$PTH_CONFIG --cflags`
1147 PTH_LIBS=`$PTH_CONFIG --libs`
1148 SDL_CFLAGS="$SDL_CFLAGS $PTH_CFLAGS"
1149 SDL_LIBS="$SDL_LIBS $PTH_LIBS"
1150 use_pth=yes
1151 fi
1152 AC_MSG_CHECKING(pth)
1153 if test "x$use_pth" = xyes; then
1154 AC_MSG_RESULT(yes)
1155 else
1156 AC_MSG_RESULT(no)
1157 fi
1158 fi
1159 }
1160
1134 dnl Determine whether the compiler can produce Win32 executables 1161 dnl Determine whether the compiler can produce Win32 executables
1135 CheckWIN32() 1162 CheckWIN32()
1136 { 1163 {
1137 AC_MSG_CHECKING(Win32 compiler) 1164 AC_MSG_CHECKING(Win32 compiler)
1138 have_win32_gcc=no 1165 have_win32_gcc=no