1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/x86.
4 if test x"$enable_cet" = xyes; then
5 # Check if CET can be enabled.
6 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CET can be enabled" >&5
7 $as_echo_n "checking whether CET can be enabled... " >&6; }
8 if ${libc_cv_x86_cet_available+:} false; then :
9 $as_echo_n "(cached) " >&6
11 cat > conftest.c <<EOF
12 #if !defined __CET__ || __CET__ != 3
13 # error CET isn't available.
16 if { ac_try='${CC-cc} -c $CFLAGS -fcf-protection -include cet.h conftest.c 1>&5'
17 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21 test $ac_status = 0; }; }; then
22 libc_cv_x86_cet_available=yes
24 libc_cv_x86_cet_available=no
28 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_available" >&5
29 $as_echo "$libc_cv_x86_cet_available" >&6; }
30 if test $libc_cv_x86_cet_available = yes; then
33 if test x"$enable_cet" = xdefault; then
36 as_fn_error $? "$CC doesn't support CET" "$LINENO" 5
40 if test $enable_cet = yes; then
41 # Check if assembler supports CET.
42 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS supports CET" >&5
43 $as_echo_n "checking whether $AS supports CET... " >&6; }
44 if ${libc_cv_x86_cet_as+:} false; then :
45 $as_echo_n "(cached) " >&6
47 cat > conftest.s <<EOF
50 if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest.o 1>&5'
51 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
54 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55 test $ac_status = 0; }; }; then
56 libc_cv_x86_cet_as=yes
62 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_as" >&5
63 $as_echo "$libc_cv_x86_cet_as" >&6; }
64 if test $libc_cv_x86_cet_as = no; then
65 as_fn_error $? "$AS doesn't support CET" "$LINENO" 5
68 config_vars="$config_vars
69 enable-cet = $enable_cet"