configure: require pthreads for POSIX builds
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 6 Mar 2015 16:54:57 +0000 (16:54 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 11 Mar 2015 23:28:25 +0000 (23:28 +0000)
This has been an implicit rule for building mesa for a long time. Let's
make it official and just bail out at configure time. This way we can
cleaning up some of our glx code.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
configure.ac

index 2954f80b401b37f250c1b6394fbac2e424320769..a3b0ebd6cf91e96a8ff79a3b65523c719a4aa80b 100644 (file)
@@ -658,6 +658,9 @@ mingw*)
     ;;
 *)
     AX_PTHREAD
+    if test "x$ax_pthread_ok" = xno; then
+        AC_MSG_ERROR([Building mesa on this platform requires pthreads])
+    fi
     ;;
 esac
 dnl AX_PTHREADS leaves PTHREAD_LIBS empty for gcc and sets PTHREAD_CFLAGS