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.
83 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
84 # Local configure fragment for sysdeps/powerpc/powerpc32.
86 # See whether gas has R_PPC_REL16 relocs.
87 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for R_PPC_REL16 gas support" >&5
88 $as_echo_n "checking for R_PPC_REL16 gas support... " >&6; }
89 if ${libc_cv_ppc_rel16+:} false; then :
90 $as_echo_n "(cached) " >&6
92 cat > conftest.s <<\EOF
94 addis 11,30,_GLOBAL_OFFSET_TABLE_-.@ha
96 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
97 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101 test $ac_status = 0; }; }; then
102 libc_cv_ppc_rel16=yes
108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_rel16" >&5
109 $as_echo "$libc_cv_ppc_rel16" >&6; }
110 if test $libc_cv_ppc_rel16 = no; then
111 as_fn_error $? "R_PPC_REL16 is not supported. Binutils is too old." "$LINENO" 5
114 # See whether GCC uses -msecure-plt.
115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -msecure-plt by default" >&5
116 $as_echo_n "checking for -msecure-plt by default... " >&6; }
117 if ${libc_cv_ppc_secure_plt+:} false; then :
118 $as_echo_n "(cached) " >&6
120 echo 'int foo (void) { extern int bar; return bar; }' > conftest.c
121 libc_cv_ppc_secure_plt=no
122 if { ac_try='${CC-cc} -S $CFLAGS conftest.c -fpic -o conftest.s 1>&5'
123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
127 test $ac_status = 0; }; }; then
128 if grep '_GLOBAL_OFFSET_TABLE_-.*@ha' conftest.s > /dev/null 2>&1; then
129 libc_cv_ppc_secure_plt=yes
134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_secure_plt" >&5
135 $as_echo "$libc_cv_ppc_secure_plt" >&6; }
136 if test $libc_cv_ppc_secure_plt = yes; then
137 $as_echo "#define HAVE_PPC_SECURE_PLT 1" >>confdefs.h
141 # Check for support of thread-local storage handling in assembler and
143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powerpc32 TLS support" >&5
144 $as_echo_n "checking for powerpc32 TLS support... " >&6; }
145 if ${libc_cv_powerpc32_tls+:} false; then :
146 $as_echo_n "(cached) " >&6
148 cat > conftest.s <<\EOF
149 .section ".tdata","awT",@progbits
154 addi 3,31,x@got@tlsgd
155 addi 3,31,x1@got@tlsld
157 addis 9,3,x2@dtprel@ha
160 addis 9,3,x2@dtprel@ha
162 lwz 9,x3@got@tprel(31)
165 addis 9,2,x2@tprel@ha
168 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
173 test $ac_status = 0; }; }; then
174 libc_cv_powerpc32_tls=yes
176 libc_cv_powerpc32_tls=no
180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_powerpc32_tls" >&5
181 $as_echo "$libc_cv_powerpc32_tls" >&6; }
182 if test $libc_cv_powerpc32_tls = no; then
183 as_fn_error $? "the assembler must support TLS" "$LINENO" 5