forked from enlightenment/efl
disable sse3 if immintrin.h not found.
SVN revision: 65980
This commit is contained in:
parent
112f992a0e
commit
70b6239ec3
|
@ -526,3 +526,8 @@
|
|||
and monitor GL state etc. and get it right sharing state with
|
||||
evas without having to rely specifically on a new GL context.
|
||||
|
||||
2011-12-07 Carsten Haitzler (The Rasterman)
|
||||
|
||||
* Fix build if gcc too old - if immintrin.h doesn't exist,
|
||||
don't enable SSE3.
|
||||
|
||||
|
|
|
@ -1271,9 +1271,16 @@ AC_ARG_ENABLE(cpu-sse3,
|
|||
AS_HELP_STRING([--enable-cpu-sse3], [enable sse3 code]),
|
||||
[
|
||||
if test "x$enableval" = "xyes" ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
|
||||
build_cpu_sse3="yes"
|
||||
AC_CHECK_HEADER(immintrin.h,
|
||||
[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
|
||||
build_cpu_sse3="yes"
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT(no)
|
||||
build_cpu_sse3="no"
|
||||
])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
build_cpu_sse3="no"
|
||||
|
@ -1282,7 +1289,16 @@ AC_ARG_ENABLE(cpu-sse3,
|
|||
[
|
||||
AC_MSG_RESULT($build_cpu_sse3)
|
||||
if test "x$build_cpu_sse3" = "xyes" ; then
|
||||
AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
|
||||
AC_CHECK_HEADER(immintrin.h,
|
||||
[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
|
||||
build_cpu_sse3="yes"
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT(no)
|
||||
build_cpu_sse3="no"
|
||||
])
|
||||
fi
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue