-# Threads
-
-if test "x$with_threads" = "xposix" || test "x$with_threads" = "xyes"; then
- AC_CHECK_LIB(pthread, pthread_attr_init,
- [AC_DEFINE(USE_PTHREADS)
- x_libs="$x_libs -lpthread"
- GTK_THREAD_FLAGS="-D_REENTRANT"],
- # AIX has libpthreads, cause they're special. Special friends (TM)
- AC_CHECK_LIB(pthreads, pthread_attr_init,
- [AC_DEFINE(USE_PTHREADS)
- x_libs="$x_libs -lpthreads"
- GTK_THREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE"]))
-fi
-