about summary refs log tree commit diff
path: root/sysdeps/x86_64/configure
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64/configure')
-rwxr-xr-xsysdeps/x86_64/configure24
1 files changed, 24 insertions, 0 deletions
diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure
index 07bdd40a37..f22ea7c548 100755
--- a/sysdeps/x86_64/configure
+++ b/sysdeps/x86_64/configure
@@ -134,6 +134,30 @@ fi
 config_vars="$config_vars
 enable-cet = $enable_cet"
 
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -msse2avx" >&5
+printf %s "checking -msse2avx... " >&6; }
+if test ${libc_cv_cc_msse2avx+y}
+then :
+  printf %s "(cached) " >&6
+else $as_nop
+  if { ac_try='${CC-cc} -msse2avx -xc /dev/null -S -o /dev/null'
+  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; }
+then :
+  libc_cv_cc_msse2avx=-msse2avx
+else $as_nop
+  libc_cv_cc_msse2avx=
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_msse2avx" >&5
+printf "%s\n" "$libc_cv_cc_msse2avx" >&6; }
+config_vars="$config_vars
+config-cflags-msse2avx = $libc_cv_cc_msse2avx"
+
 # Check if -mamx-tile works properly.
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -mamx-tile works properly" >&5
 printf %s "checking whether -mamx-tile works properly... " >&6; }