*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Tue, 11 Jun 2002 19:32:57 +0000
changeset 40119f9079728f9
parent 400 3dde0301f5f9
child 402 7efee6e36f00
*** empty log message ***
configure.in
     1.1 --- a/configure.in	Tue Jun 11 19:00:11 2002 +0000
     1.2 +++ b/configure.in	Tue Jun 11 19:32:57 2002 +0000
     1.3 @@ -1138,6 +1138,7 @@
     1.4      AC_ARG_ENABLE(pthread-sem,
     1.5  [  --enable-pthread-sem    use pthread semaphores [default=yes]],
     1.6                    , enable_pthread_sem=yes)
     1.7 +    ac_save_cflags="$CFLAGS"
     1.8      ac_save_libs="$LIBS"
     1.9      case "$target" in
    1.10          *-*-bsdi*)
    1.11 @@ -1186,6 +1187,7 @@
    1.12              pthread_lib="-lpthread"
    1.13              ;;
    1.14      esac
    1.15 +    CFLAGS="$CFLAGS $pthread_cflags"
    1.16      LIBS="$LIBS $pthread_lib"
    1.17      if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
    1.18          AC_MSG_CHECKING(for pthreads)
    1.19 @@ -1267,6 +1269,7 @@
    1.20              esac
    1.21          fi
    1.22      fi
    1.23 +    CFLAGS="$ac_save_cflags"
    1.24      LIBS="$ac_save_libs"
    1.25  
    1.26      AC_MSG_CHECKING(whether semun is defined in /usr/include/sys/sem.h)
    1.27 @@ -1782,6 +1785,9 @@
    1.28          fi
    1.29          # Set up files for the thread library
    1.30          if test x$enable_threads = xyes; then
    1.31 +            if test x$use_pthreads = xyes; then
    1.32 +                CFLAGS="$CFLAGS -D_POSIX_THREAD_SYSCALL_SOFT=1"
    1.33 +            fi
    1.34              CopyUnixThreadSource
    1.35          fi
    1.36          # Set up files for the timer library
    1.37 @@ -1789,7 +1795,7 @@
    1.38              COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
    1.39          fi
    1.40          # NetBSD does not define "unix"
    1.41 -        CFLAGS="$CFLAGS -Dunix -D_POSIX_THREAD_SYSCALL_SOFT=1"
    1.42 +        CFLAGS="$CFLAGS -Dunix"
    1.43          ;;
    1.44      *-*-openbsd*)
    1.45          ARCH=openbsd
    1.46 @@ -2412,7 +2418,7 @@
    1.47  fi
    1.48  
    1.49  case "$ARCH" in
    1.50 -  openbsd | bsdi)
    1.51 +  openbsd | netbsd | bsdi)
    1.52      SHARED_SYSTEM_LIBS="$SYSTEM_LIBS"
    1.53      ;;
    1.54    macosx)