comparison configure.in @ 329:1d74ddc90cb2

Patrice's fixes for GNU Pthread support
author Sam Lantinga <slouken@libsdl.org>
date Mon, 01 Apr 2002 15:35:28 +0000
parents af42e7c4c860
children 6dd188952b9e
comparison
equal deleted inserted replaced
328:dc21fa30faa9 329:1d74ddc90cb2
1263 else 1263 else
1264 PTH_CFLAGS=`$PTH_CONFIG --cflags` 1264 PTH_CFLAGS=`$PTH_CONFIG --cflags`
1265 PTH_LIBS=`$PTH_CONFIG --libs --all` 1265 PTH_LIBS=`$PTH_CONFIG --libs --all`
1266 SDL_CFLAGS="$SDL_CFLAGS $PTH_CFLAGS" 1266 SDL_CFLAGS="$SDL_CFLAGS $PTH_CFLAGS"
1267 SDL_LIBS="$SDL_LIBS $PTH_LIBS" 1267 SDL_LIBS="$SDL_LIBS $PTH_LIBS"
1268 CFLAGS="$CFLAGS -DENABLE_PTH"
1268 use_pth=yes 1269 use_pth=yes
1269 fi 1270 fi
1270 AC_MSG_CHECKING(pth) 1271 AC_MSG_CHECKING(pth)
1271 if test "x$use_pth" = xyes; then 1272 if test "x$use_pth" = xyes; then
1272 AC_MSG_RESULT(yes) 1273 AC_MSG_RESULT(yes)
2293 # Set up files for the thread library 2294 # Set up files for the thread library
2294 if test x$enable_threads = xyes; then 2295 if test x$enable_threads = xyes; then
2295 if test x$enable_pth = xyes; then 2296 if test x$enable_pth = xyes; then
2296 COPY_ARCH_SRC(src/thread, pth, SDL_systhread.c) 2297 COPY_ARCH_SRC(src/thread, pth, SDL_systhread.c)
2297 COPY_ARCH_SRC(src/thread, pth, SDL_systhread_c.h) 2298 COPY_ARCH_SRC(src/thread, pth, SDL_systhread_c.h)
2299 COPY_ARCH_SRC(src/thread, pth, SDL_sysmutex.c)
2300 COPY_ARCH_SRC(src/thread, pth, SDL_sysmutex_c.h)
2301 COPY_ARCH_SRC(src/thread, pth, SDL_syscond.c)
2302 COPY_ARCH_SRC(src/thread, pth, SDL_syscond_c.h)
2298 else 2303 else
2299 COPY_ARCH_SRC(src/thread, generic, SDL_systhread.c) 2304 COPY_ARCH_SRC(src/thread, generic, SDL_systhread.c)
2300 COPY_ARCH_SRC(src/thread, generic, SDL_systhread_c.h) 2305 COPY_ARCH_SRC(src/thread, generic, SDL_systhread_c.h)
2301 fi 2306 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c)
2302 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c) 2307 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h)
2303 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h) 2308 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
2304 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) 2309 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
2310 fi
2311 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
2305 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) 2312 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
2306 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
2307 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
2308 fi 2313 fi
2309 # Set up files for the timer library 2314 # Set up files for the timer library
2310 if test x$enable_timers = xyes; then 2315 if test x$enable_timers = xyes; then
2311 COPY_ARCH_SRC(src/timer, mint, SDL_systimer.c) 2316 COPY_ARCH_SRC(src/timer, mint, SDL_systimer.c)
2312 COPY_ARCH_SRC(src/timer, mint, SDL_vbltimer.S) 2317 COPY_ARCH_SRC(src/timer, mint, SDL_vbltimer.S)