lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # This file is generated from configure.ac by Autoconf. DO NOT EDIT! |
| 2 | # Local configure fragment for sysdeps/s390. |
| 3 | |
| 4 | $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h |
| 5 | |
| 6 | |
| 7 | for ac_prog in $AS |
| 8 | do |
| 9 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10 | set dummy $ac_prog; ac_word=$2 |
| 11 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13 | if ${ac_cv_prog_AS+:} false; then : |
| 14 | $as_echo_n "(cached) " >&6 |
| 15 | else |
| 16 | if test -n "$AS"; then |
| 17 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 18 | else |
| 19 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20 | for as_dir in $PATH |
| 21 | do |
| 22 | IFS=$as_save_IFS |
| 23 | test -z "$as_dir" && as_dir=. |
| 24 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 25 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 26 | ac_cv_prog_AS="$ac_prog" |
| 27 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 28 | break 2 |
| 29 | fi |
| 30 | done |
| 31 | done |
| 32 | IFS=$as_save_IFS |
| 33 | |
| 34 | fi |
| 35 | fi |
| 36 | AS=$ac_cv_prog_AS |
| 37 | if test -n "$AS"; then |
| 38 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 39 | $as_echo "$AS" >&6; } |
| 40 | else |
| 41 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 42 | $as_echo "no" >&6; } |
| 43 | fi |
| 44 | |
| 45 | |
| 46 | test -n "$AS" && break |
| 47 | done |
| 48 | |
| 49 | if test -z "$AS"; then |
| 50 | ac_verc_fail=yes |
| 51 | else |
| 52 | # Found it, now check the version. |
| 53 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5 |
| 54 | $as_echo_n "checking version of $AS... " >&6; } |
| 55 | ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 56 | case $ac_prog_version in |
| 57 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 58 | 2.2[4-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*) |
| 59 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 60 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 61 | |
| 62 | esac |
| 63 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
| 64 | $as_echo "$ac_prog_version" >&6; } |
| 65 | fi |
| 66 | if test $ac_verc_fail = yes; then |
| 67 | critic_missing="$critic_missing The program AS is required in version >= 2.24 for target S390." |
| 68 | fi |
| 69 | |
| 70 | |
| 71 | |
| 72 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_tbegin" >&5 |
| 73 | $as_echo_n "checking for __builtin_tbegin... " >&6; } |
| 74 | if ${libc_cv_gcc_builtin_tbegin+:} false; then : |
| 75 | $as_echo_n "(cached) " >&6 |
| 76 | else |
| 77 | cat > conftest.c <<\EOF |
| 78 | #include <htmintrin.h> |
| 79 | void testtransaction () |
| 80 | { |
| 81 | if (__builtin_tbegin (0) == _HTM_TBEGIN_STARTED) |
| 82 | { |
| 83 | __builtin_tend (); |
| 84 | } |
| 85 | } |
| 86 | EOF |
| 87 | if { ac_try='${CC-cc} -mhtm -O2 -S conftest.c -o - | grep -w tbegin > /dev/null' |
| 88 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
| 89 | (eval $ac_try) 2>&5 |
| 90 | ac_status=$? |
| 91 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 92 | test $ac_status = 0; }; } ; |
| 93 | then |
| 94 | libc_cv_gcc_builtin_tbegin=yes |
| 95 | else |
| 96 | libc_cv_gcc_builtin_tbegin=no |
| 97 | fi |
| 98 | rm -f conftest* |
| 99 | fi |
| 100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_tbegin" >&5 |
| 101 | $as_echo "$libc_cv_gcc_builtin_tbegin" >&6; } |
| 102 | |
| 103 | if test "$enable_lock_elision" = yes && test "$libc_cv_gcc_builtin_tbegin" = no ; then |
| 104 | critic_missing="$critic_missing The used GCC has no support for __builtin_tbegin, which is needed for lock-elision on target S390." |
| 105 | fi |
| 106 | |
| 107 | test -n "$critic_missing" && as_fn_error $? " |
| 108 | *** $critic_missing" "$LINENO" 5 |