CPPFLAGS->CFLAGS for detecting sse4.1 in preprocessor

Change-Id: I5ee839881c17c8f856aafad1ad2436179c5675d4
This commit is contained in:
Pascal Massimino 2015-03-25 23:41:55 -07:00
parent 94055503e3
commit 2fc8b658b7

View File

@ -99,13 +99,13 @@ AC_SUBST([AVX2_FLAGS])
TEST_AND_ADD_CFLAGS([SSE41_FLAGS], [-msse4.1])
AS_IF([test -n "$SSE41_FLAGS"], [
SAVED_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $SSE41_FLAGS"
SAVED_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $SSE41_FLAGS"
AC_CHECK_HEADER([smmintrin.h],
[AC_DEFINE(WEBP_HAVE_SSE41, [1],
[Set to 1 if SSE4.1 is supported])],
[SSE41_FLAGS=""])
CPPFLAGS=$SAVED_CPPFLAGS])
CFLAGS=$SAVED_CFLAGS])
AC_SUBST([SSE41_FLAGS])
TEST_AND_ADD_CFLAGS([SSE2_FLAGS], [-msse2])