git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f383e8
)
improved cross compilation detection (#252)
author
Andrew Aladjev
<aladjev.andrew@gmail.com>
Sun, 7 Nov 2021 19:45:49 +0000
(22:45 +0300)
committer
GitHub
<noreply@github.com>
Sun, 7 Nov 2021 19:45:49 +0000
(11:45 -0800)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index fbdd17d834d20fbc418b40244e5a8972e594e157..9e7338cfce2516bcc24d04be8d49255f8094a4f1 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-264,7
+264,7
@@
if test x"$enable_simd" != x"no"; then
# For x86-64 SIMD, g++ >=5 or clang++ >=7 is required
if test x"$host_cpu" = x"x86_64" || test x"$host_cpu" = x"amd64"; then
AC_LANG(C++)
- if test x"$host
_cpu" = x"$build_cpu
"; then
+ if test x"$host
" = x"$build
"; then
AC_RUN_IFELSE([AC_LANG_PROGRAM([SIMD_X86_64_TEST],[[if (test_ssse3(42) != 42 || test_sse2(42) != 42 || test_avx2(42) != 42) exit(1);]])],
[CXX_OK=yes],[CXX_OK=no])
else