diff options
Diffstat (limited to 'sysdeps/x86_64/configure')
-rwxr-xr-x | sysdeps/x86_64/configure | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure index 04a534fa12..07bdd40a37 100755 --- a/sysdeps/x86_64/configure +++ b/sysdeps/x86_64/configure @@ -162,6 +162,38 @@ printf "%s\n" "$libc_cv_x86_have_amx_tile" >&6; } config_vars="$config_vars have-mamx-tile = $libc_cv_x86_have_amx_tile" +# Check if -mapxf is enabled. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -mapxf is enabled" >&5 +printf %s "checking whether -mapxf is enabled... " >&6; } +if test ${libc_cv_x86_have_apx+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat > conftest.c <<EOF +#ifndef __APX_F__ +# error APX isn't enabled +#endif +EOF + libc_cv_x86_have_apx=no + if { ac_try='${CC-cc} -c $CFLAGS conftest.c -o conftest.o 1>&5' + { { 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_x86_have_apx=yes + fi + rm -rf conftest* +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_have_apx" >&5 +printf "%s\n" "$libc_cv_x86_have_apx" >&6; } +if test $libc_cv_x86_have_apx = yes; then + printf "%s\n" "#define HAVE_X86_APX 1" >>confdefs.h + +fi +config_vars="$config_vars +have-x86-apx = $libc_cv_x86_have_apx" + test -n "$critic_missing" && as_fn_error $? " *** $critic_missing" "$LINENO" 5 |