diff options
author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2021-05-08 14:46:15 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2021-05-08 18:10:40 +0200 |
commit | 811ddc9ce722d6c2ca613dbb9ae4da8194d15256 (patch) | |
tree | f46f4c8d07b69a48edb8ba650c8e10d6c82248bb | |
parent | 81f1c8a41bd1427707f402450de8820816760fca (diff) |
Don't check for SSSE3 on non-x86 architectures.
-rwxr-xr-x | configure | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -994,8 +994,9 @@ EOF esac # Check for SSSE3 intrinsics - -cat > $test.c << EOF +case "${ARCH}" in + i386 | i486 | i586 | i686 | x86_64) + cat > $test.c << EOF #include <x86intrin.h> int main(void) { @@ -1007,13 +1008,15 @@ int main(void) return 0; } EOF -if try ${CC} ${CFLAGS} ${ssse3flag} $test.c; then - echo "Checking for SSSE3 intrinsics ... Yes." | tee -a configure.log - HAVE_SSSE3_INTRIN=1 -else - echo "Checking for SSSE3 intrinsics ... No." | tee -a configure.log - HAVE_SSSE3_INTRIN=0 -fi + if try ${CC} ${CFLAGS} ${ssse3flag} $test.c; then + echo "Checking for SSSE3 intrinsics ... Yes." | tee -a configure.log + HAVE_SSSE3_INTRIN=1 + else + echo "Checking for SSSE3 intrinsics ... No." | tee -a configure.log + HAVE_SSSE3_INTRIN=0 + fi + ;; +esac # Check for SSE4.2 CRC inline assembly case "${ARCH}" in |