2 # as_fn_set_status STATUS
3 # -----------------------
4 # Set $? to STATUS, without forking.
12 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19 if expr a : '\(a\)' >/dev/null 2>&1 &&
20 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32 as_me=`$as_basename -- "$0" ||
33 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34 X"$0" : 'X\(//\)$' \| \
35 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37 sed '/^.*\/\([^/][^/]*\)\/*$/{
52 as_lineno_1=$LINENO as_lineno_1a=$LINENO
53 as_lineno_2=$LINENO as_lineno_2a=$LINENO
54 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
55 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
56 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
68 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
72 chmod +x "$as_me.lineno" ||
73 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
75 # Don't try to exec as it changes $[0], causing all sort of problems
76 # (the dirname of $[0] is not the place where we might find the
77 # original and so on. Autoconf is especially sensitive to this).
79 # Exit status is that of the last command.
84 # ac_fn_c_try_link LINENO
85 # -----------------------
86 # Try to link conftest.$ac_ext, and return whether this succeeded.
89 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
90 rm -f conftest.$ac_objext conftest$ac_exeext
91 if { { ac_try="$ac_link"
93 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94 *) ac_try_echo=$ac_try;;
96 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
97 $as_echo "$ac_try_echo"; } >&5
98 (eval "$ac_link") 2>conftest.err
100 if test -s conftest.err; then
101 grep -v '^ *+' conftest.err >conftest.er1
103 mv -f conftest.er1 conftest.err
105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106 test $ac_status = 0; } && {
107 test -z "$ac_c_werror_flag" ||
108 test ! -s conftest.err
109 } && test -s conftest$ac_exeext && {
110 test "$cross_compiling" = yes ||
111 $as_test_x conftest$ac_exeext
115 $as_echo "$as_me: failed program was:" >&5
116 sed 's/^/| /' conftest.$ac_ext >&5
120 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
121 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
122 # interfere with the next link command; also delete a directory that is
123 # left behind by Apple's compiler. We do this before executing the actions.
124 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
125 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
126 as_fn_set_status $ac_retval
129 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
131 if test "x$libc_cv_gcc___thread" != xyes; then
132 as_fn_error $? "compiler support for __thread is required" "$LINENO" 5
135 if test "x${libc_cv_visibility_attribute}" != xyes ||
136 test "x${libc_cv_broken_visibility_attribute}" != xno; then
137 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
140 if test "x$libc_cv_asm_cfi_directives" != xyes; then
141 case "$base_machine" in
142 i386 | x86_64 | powerpc | s390)
143 as_fn_error $? "CFI directive support in assembler is required" "$LINENO" 5 ;;
149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forced unwind support" >&5
150 $as_echo_n "checking for forced unwind support... " >&6; }
151 if test "${libc_cv_forced_unwind+set}" = set; then :
152 $as_echo_n "(cached) " >&6
154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
155 /* end confdefs.h. */
161 struct _Unwind_Exception exc;
162 struct _Unwind_Context *context;
163 _Unwind_GetCFA (context)
168 if ac_fn_c_try_link "$LINENO"; then :
169 libc_cv_forced_unwind=yes
171 libc_cv_forced_unwind=no
173 rm -f core conftest.err conftest.$ac_objext \
174 conftest$ac_exeext conftest.$ac_ext
176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_forced_unwind" >&5
177 $as_echo "$libc_cv_forced_unwind" >&6; }
178 if test $libc_cv_forced_unwind = yes; then
179 $as_echo "#define HAVE_FORCED_UNWIND 1" >>confdefs.h
182 CFLAGS="$CFLAGS -Werror -fexceptions"
183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C cleanup handling" >&5
184 $as_echo_n "checking for C cleanup handling... " >&6; }
185 if test "${libc_cv_c_cleanup+set}" = set; then :
186 $as_echo_n "(cached) " >&6
188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
189 /* end confdefs.h. */
192 void cl (void *a) { }
197 int a __attribute__ ((cleanup (cl)));
203 if ac_fn_c_try_link "$LINENO"; then :
204 libc_cv_c_cleanup=yes
208 rm -f core conftest.err conftest.$ac_objext \
209 conftest$ac_exeext conftest.$ac_ext
211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_cleanup" >&5
212 $as_echo "$libc_cv_c_cleanup" >&6; }
214 if test $libc_cv_c_cleanup = no; then
215 as_fn_error $? "the compiler must support C cleanup handling" "$LINENO" 5
218 as_fn_error $? "forced unwind support is required" "$LINENO" 5