Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com> --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/configure.ac b/configure.ac index fc7d372..a01e605 100644 --- a/configure.ac +++ b/configure.ac @@ -258,6 +258,13 @@ if test "x$SSE41_SUPPORTED" = x1; then fi AM_CONDITIONAL([SSE41_SUPPORTED], [test x$SSE41_SUPPORTED = x1]) +AX_CHECK_COMPILE_FLAG([-msse2], [SSE2_SUPPORTED=1], [SSE2_SUPPORTED=0]) +if test "x$SSE2_SUPPORTED" = x1; then + DEFINES="$DEFINES -DUSE_SSE2" +fi +AM_CONDITIONAL([SSE2_SUPPORTED], [test x$SSE2_SUPPORTED = x1]) + + dnl Can't have static and shared libraries, default to static if user dnl explicitly requested. If both disabled, set to static since shared dnl was explicitly requested. -- 1.8.5.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev