Define IPTOS_CLASS_* macros according to RFC 2474.
[glibc.git] / nptl / sysdeps / pthread / configure
blob7768c5c741bf41acc84cea553a896419f69c7165
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
3 if test "x$libc_cv_gcc___thread" != xyes; then
4   { { $as_echo "$as_me:$LINENO: error: compiler support for __thread is required" >&5
5 $as_echo "$as_me: error: compiler support for __thread is required" >&2;}
6    { (exit 1); exit 1; }; }
7 fi
9 if test "x${libc_cv_visibility_attribute}" != xyes ||
10    test "x${libc_cv_broken_visibility_attribute}" != xno; then
11   { { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
12 $as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
13    { (exit 1); exit 1; }; }
16 if test "x$libc_cv_asm_cfi_directives" != xyes; then
17     case "$base_machine" in
18     i386 | x86_64 | powerpc | s390)
19       { { $as_echo "$as_me:$LINENO: error: CFI directive support in assembler is required" >&5
20 $as_echo "$as_me: error: CFI directive support in assembler is required" >&2;}
21    { (exit 1); exit 1; }; } ;;
22     *) ;;
23   esac
27 { $as_echo "$as_me:$LINENO: checking for forced unwind support" >&5
28 $as_echo_n "checking for forced unwind support... " >&6; }
29 if test "${libc_cv_forced_unwind+set}" = set; then
30   $as_echo_n "(cached) " >&6
31 else
32   cat >conftest.$ac_ext <<_ACEOF
33 /* confdefs.h.  */
34 _ACEOF
35 cat confdefs.h >>conftest.$ac_ext
36 cat >>conftest.$ac_ext <<_ACEOF
37 /* end confdefs.h.  */
38 #include <unwind.h>
39 int
40 main ()
43 struct _Unwind_Exception exc;
44 struct _Unwind_Context *context;
45 _Unwind_GetCFA (context)
46   ;
47   return 0;
49 _ACEOF
50 rm -f conftest.$ac_objext conftest$ac_exeext
51 if { (ac_try="$ac_link"
52 case "(($ac_try" in
53   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54   *) ac_try_echo=$ac_try;;
55 esac
56 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57 $as_echo "$ac_try_echo") >&5
58   (eval "$ac_link") 2>conftest.er1
59   ac_status=$?
60   grep -v '^ *+' conftest.er1 >conftest.err
61   rm -f conftest.er1
62   cat conftest.err >&5
63   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64   (exit $ac_status); } && {
65          test -z "$ac_c_werror_flag" ||
66          test ! -s conftest.err
67        } && test -s conftest$ac_exeext && {
68          test "$cross_compiling" = yes ||
69          $as_test_x conftest$ac_exeext
70        }; then
71   libc_cv_forced_unwind=yes
72 else
73   $as_echo "$as_me: failed program was:" >&5
74 sed 's/^/| /' conftest.$ac_ext >&5
76         libc_cv_forced_unwind=no
79 rm -rf conftest.dSYM
80 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
81       conftest$ac_exeext conftest.$ac_ext
83 { $as_echo "$as_me:$LINENO: result: $libc_cv_forced_unwind" >&5
84 $as_echo "$libc_cv_forced_unwind" >&6; }
85 if test $libc_cv_forced_unwind = yes; then
86   cat >>confdefs.h <<\_ACEOF
87 #define HAVE_FORCED_UNWIND 1
88 _ACEOF
90   old_CFLAGS="$CFLAGS"
91   CFLAGS="$CFLAGS -Werror -fexceptions"
92   { $as_echo "$as_me:$LINENO: checking for C cleanup handling" >&5
93 $as_echo_n "checking for C cleanup handling... " >&6; }
94 if test "${libc_cv_c_cleanup+set}" = set; then
95   $as_echo_n "(cached) " >&6
96 else
97     cat >conftest.$ac_ext <<_ACEOF
98 /* confdefs.h.  */
99 _ACEOF
100 cat confdefs.h >>conftest.$ac_ext
101 cat >>conftest.$ac_ext <<_ACEOF
102 /* end confdefs.h.  */
104 #include <stdio.h>
105 void cl (void *a) { }
107 main ()
110   int a __attribute__ ((cleanup (cl)));
111   puts ("test")
112   ;
113   return 0;
115 _ACEOF
116 rm -f conftest.$ac_objext conftest$ac_exeext
117 if { (ac_try="$ac_link"
118 case "(($ac_try" in
119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
120   *) ac_try_echo=$ac_try;;
121 esac
122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
123 $as_echo "$ac_try_echo") >&5
124   (eval "$ac_link") 2>conftest.er1
125   ac_status=$?
126   grep -v '^ *+' conftest.er1 >conftest.err
127   rm -f conftest.er1
128   cat conftest.err >&5
129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130   (exit $ac_status); } && {
131          test -z "$ac_c_werror_flag" ||
132          test ! -s conftest.err
133        } && test -s conftest$ac_exeext && {
134          test "$cross_compiling" = yes ||
135          $as_test_x conftest$ac_exeext
136        }; then
137   libc_cv_c_cleanup=yes
138 else
139   $as_echo "$as_me: failed program was:" >&5
140 sed 's/^/| /' conftest.$ac_ext >&5
142         libc_cv_c_cleanup=no
145 rm -rf conftest.dSYM
146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
147       conftest$ac_exeext conftest.$ac_ext
149 { $as_echo "$as_me:$LINENO: result: $libc_cv_c_cleanup" >&5
150 $as_echo "$libc_cv_c_cleanup" >&6; }
151   CFLAGS="$old_CFLAGS"
152   if test $libc_cv_c_cleanup = no; then
153     { { $as_echo "$as_me:$LINENO: error: the compiler must support C cleanup handling" >&5
154 $as_echo "$as_me: error: the compiler must support C cleanup handling" >&2;}
155    { (exit 1); exit 1; }; }
156   fi
157 else
158   { { $as_echo "$as_me:$LINENO: error: forced unwind support is required" >&5
159 $as_echo "$as_me: error: forced unwind support is required" >&2;}
160    { (exit 1); exit 1; }; }