1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/x86_64.
6 # Extract the first word of "$ac_prog", so it can be a program name with args.
7 set dummy $ac_prog; ac_word=$2
8 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9 $as_echo_n "checking for $ac_word... " >&6; }
10 if ${ac_cv_prog_AS+:} false; then :
11 $as_echo_n "(cached) " >&6
13 if test -n "$AS"; then
14 ac_cv_prog_AS="$AS" # Let the user override the test.
16 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20 test -z "$as_dir" && as_dir=.
21 for ac_exec_ext in '' $ac_executable_extensions; do
22 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23 ac_cv_prog_AS="$ac_prog"
24 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34 if test -n "$AS"; then
35 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
38 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43 test -n "$AS" && break
46 if test -z "$AS"; then
49 # Found it, now check the version.
50 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
51 $as_echo_n "checking version of $AS... " >&6; }
52 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
53 case $ac_prog_version in
54 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
55 2.2[4-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
56 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
57 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
60 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
61 $as_echo "$ac_prog_version" >&6; }
63 if test $ac_verc_fail = yes; then
64 critic_missing="$critic_missing The program AS is required in version >= 2.24 for target x86_64."
68 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512DQ support in assembler" >&5
69 $as_echo_n "checking for AVX512DQ support in assembler... " >&6; }
70 if ${libc_cv_asm_avx512dq+:} false; then :
71 $as_echo_n "(cached) " >&6
73 cat > conftest.s <<\EOF
74 vandpd (%rax), %zmm6, %zmm1
76 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
77 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
80 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81 test $ac_status = 0; }; }; then
82 libc_cv_asm_avx512dq=yes
84 libc_cv_asm_avx512dq=no
88 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_avx512dq" >&5
89 $as_echo "$libc_cv_asm_avx512dq" >&6; }
90 if test $libc_cv_asm_avx512dq = yes; then
91 $as_echo "#define HAVE_AVX512DQ_ASM_SUPPORT 1" >>confdefs.h
95 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512 support" >&5
96 $as_echo_n "checking for AVX512 support... " >&6; }
97 if ${libc_cv_cc_avx512+:} false; then :
98 $as_echo_n "(cached) " >&6
100 if { ac_try='${CC-cc} -mavx512f -xc /dev/null -S -o /dev/null'
101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
105 test $ac_status = 0; }; }; then :
106 libc_cv_cc_avx512=$libc_cv_asm_avx512dq
112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_avx512" >&5
113 $as_echo "$libc_cv_cc_avx512" >&6; }
114 if test $libc_cv_cc_avx512 = yes; then
115 $as_echo "#define HAVE_AVX512_SUPPORT 1" >>confdefs.h
118 config_vars="$config_vars
119 config-cflags-avx512 = $libc_cv_cc_avx512"
121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel MPX support" >&5
122 $as_echo_n "checking for Intel MPX support... " >&6; }
123 if ${libc_cv_asm_mpx+:} false; then :
124 $as_echo_n "(cached) " >&6
126 cat > conftest.s <<\EOF
129 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
134 test $ac_status = 0; }; }; then
141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_mpx" >&5
142 $as_echo "$libc_cv_asm_mpx" >&6; }
143 if test $libc_cv_asm_mpx = yes; then
144 $as_echo "#define HAVE_MPX_SUPPORT 1" >>confdefs.h
148 if test x"$build_mathvec" = xnotset; then
152 $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
155 test -n "$critic_missing" && as_fn_error $? "
156 *** $critic_missing" "$LINENO" 5