Fix invalid file descriptor reuse while sending DNS query (BZ #15946)
[glibc.git] / sysdeps / s390 / configure.ac
blob493e9a469c886c865f1513f65bef95671848a332
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/s390.
4 dnl It is always possible to access static and hidden symbols in an
5 dnl position independent way.
6 AC_DEFINE(PI_STATIC_AND_HIDDEN)
8 dnl Accept as 2.24 or newer.
9 AC_CHECK_PROG_VER(AS, $AS, --version,
10                   [GNU assembler.* \([0-9]*\.[0-9.]*\)],
11                   [2.2[4-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*], critic_missing="$critic_missing The program AS is required in version >= 2.24 for target S390.")
14 AC_CACHE_CHECK(for __builtin_tbegin, libc_cv_gcc_builtin_tbegin, [dnl
15 cat > conftest.c <<\EOF
16 #include <htmintrin.h>
17 void testtransaction ()
19   if (__builtin_tbegin (0) == _HTM_TBEGIN_STARTED)
20     {
21       __builtin_tend ();
22     }
24 EOF
25 dnl
26 dnl test, if the tbegin instruction is used by __builtin_tbegin
27 if AC_TRY_COMMAND([${CC-cc} -mhtm -O2 -S conftest.c -o - | grep -w tbegin > /dev/null]) ;
28 then
29   libc_cv_gcc_builtin_tbegin=yes
30 else
31   libc_cv_gcc_builtin_tbegin=no
33 rm -f conftest* ])
35 if test "$enable_lock_elision" = yes && test "$libc_cv_gcc_builtin_tbegin" = no ; then
36    critic_missing="$critic_missing The used GCC has no support for __builtin_tbegin, which is needed for lock-elision on target S390."
39 test -n "$critic_missing" && AC_MSG_ERROR([
40 *** $critic_missing])