1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/x86_64.
4 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mprefer-vector-width=128" >&5
5 printf %s "checking -mprefer-vector-width=128... " >&6; }
6 if test ${libc_cv_cc_mprefer_vector_width+y}
8 printf %s "(cached) " >&6
10 if { ac_try='${CC-cc} -mprefer-vector-width=128 -xc /dev/null -S -o /dev/null'
11 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15 test $ac_status = 0; }; }
17 libc_cv_cc_mprefer_vector_width=yes
19 libc_cv_cc_mprefer_vector_width=no
23 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_mprefer_vector_width" >&5
24 printf "%s\n" "$libc_cv_cc_mprefer_vector_width" >&6; }
25 config_vars="$config_vars
26 config-cflags-mprefer-vector-width = $libc_cv_cc_mprefer_vector_width"
28 if test x"$build_mathvec" = xnotset; then
32 if test $enable_cet != no; then
33 # Check if CET can be enabled.
34 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CET can be enabled" >&5
35 printf %s "checking whether CET can be enabled... " >&6; }
36 if test ${libc_cv_x86_cet_available+y}
38 printf %s "(cached) " >&6
40 cat > conftest.c <<EOF
41 #if !defined __CET__ || __CET__ != 3
42 # error CET isn't available.
45 if { ac_try='${CC-cc} -c $CFLAGS -fcf-protection -include cet.h conftest.c 1>&5'
46 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
49 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50 test $ac_status = 0; }; }; then
51 libc_cv_x86_cet_available=yes
53 libc_cv_x86_cet_available=no
57 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_available" >&5
58 printf "%s\n" "$libc_cv_x86_cet_available" >&6; }
59 if test $libc_cv_x86_cet_available != yes; then
60 as_fn_error $? "$CC doesn't support CET" "$LINENO" 5
63 if test $enable_cet != no; then
64 # Check if assembler supports CET.
65 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CET" >&5
66 printf %s "checking whether assembler supports CET... " >&6; }
67 if test ${libc_cv_x86_cet_as+y}
69 printf %s "(cached) " >&6
71 cat > conftest.s <<EOF
74 if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest.o 1>&5'
75 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
78 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79 test $ac_status = 0; }; }; then
80 libc_cv_x86_cet_as=yes
86 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_as" >&5
87 printf "%s\n" "$libc_cv_x86_cet_as" >&6; }
88 if test $libc_cv_x86_cet_as = no; then
89 as_fn_error $? "$AS doesn't support CET" "$LINENO" 5
92 if test $enable_cet = yes; then
93 printf "%s\n" "#define DEFAULT_DL_X86_CET_CONTROL cet_elf_property" >>confdefs.h
95 elif test $enable_cet = permissive; then
96 printf "%s\n" "#define DEFAULT_DL_X86_CET_CONTROL cet_permissive" >>confdefs.h
99 config_vars="$config_vars
100 enable-cet = $enable_cet"
102 test -n "$critic_missing" && as_fn_error $? "
103 *** $critic_missing" "$LINENO" 5