S390: Optimize wmemset.
[glibc.git] / sysdeps / s390 / configure
blob0fa54c3061ab65a586e929c13a60789aaaeac196
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/s390.
4 $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
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
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
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; }
46   test -n "$AS" && break
47 done
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;;
62   esac
63   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
64 $as_echo "$ac_prog_version" >&6; }
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."
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 ()
81   if (__builtin_tbegin (0) == _HTM_TBEGIN_STARTED)
82     {
83       __builtin_tend ();
84     }
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
98 rm -f conftest*
100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_tbegin" >&5
101 $as_echo "$libc_cv_gcc_builtin_tbegin" >&6; }
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."
108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S390 vector instruction support" >&5
109 $as_echo_n "checking for S390 vector instruction support... " >&6; }
110 if ${libc_cv_asm_s390_vx+:} false; then :
111   $as_echo_n "(cached) " >&6
112 else
113   cat > conftest.c <<\EOF
114 void testvecinsn ()
116     __asm__ (".machine \"z13\" \n\t"
117              ".machinemode \"zarch_nohighgprs\" \n\t"
118              "vistrbs %%v16,%%v17 \n\t"
119              "locghie %%r1,0" : :);
122 if { ac_try='${CC-cc} --shared conftest.c -o conftest.o &> /dev/null'
123   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
124   (eval $ac_try) 2>&5
125   ac_status=$?
126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
127   test $ac_status = 0; }; } ;
128 then
129   libc_cv_asm_s390_vx=yes
130 else
131   libc_cv_asm_s390_vx=no
133 rm -f conftest*
135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_vx" >&5
136 $as_echo "$libc_cv_asm_s390_vx" >&6; }
138 if test "$libc_cv_asm_s390_vx" = yes ;
139 then
140   $as_echo "#define HAVE_S390_VX_ASM_SUPPORT 1" >>confdefs.h
142 else
143   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use binutils with vector-support in order to use optimized implementations." >&5
144 $as_echo "$as_me: WARNING: Use binutils with vector-support in order to use optimized implementations." >&2;}
148 test -n "$critic_missing" && as_fn_error $? "
149 *** $critic_missing" "$LINENO" 5