do not give warnings for a windows build using --disable-pthread
[privoxy.git] / configure.in
index 3ec78e0..b1527b4 100644 (file)
@@ -459,7 +459,7 @@ AC_ARG_ENABLE(pthread,
 [  --disable-pthread               Don't use POSIX threads (pthreads)],
 [if test $enableval = no; then
   # Disable pthreads
-  if test $have_pthread = yes; then
+  if test $have_pthread = yes -a $target_type != mingw; then
      AC_MSG_WARN([pthreads seem to be available but you are using --disable-pthread.])
      AC_MSG_WARN([This is almost always a mistake and can render Privoxy unacceptable slow.])
      AC_MSG_WARN([Also various Privoxy features only work when using threads and won't even compile without them.])