]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/configure
* config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
[thirdparty/gcc.git] / libgcc / configure
CommitLineData
894a47b4 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
f00f02a3 3# Generated by GNU Autoconf 2.69 for GNU C Runtime Library 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cd9a469c 7#
894a47b4 8#
894a47b4 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
cd9a469c 11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
894a47b4 14
cd9a469c 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
894a47b4 18 emulate sh
19 NULLCMD=:
cd9a469c 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
894a47b4 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
cd9a469c 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
894a47b4 31fi
894a47b4 32
cd9a469c 33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
894a47b4 50else
cd9a469c 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
894a47b4 79fi
80
81
cd9a469c 82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
f00f02a3 90as_myself=
cd9a469c 91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
894a47b4 122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
cd9a469c 127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
f00f02a3 135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
cd9a469c 160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
f00f02a3 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
cd9a469c 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
a23b9c51 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
cd9a469c 200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
894a47b4 211do
cd9a469c 212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
f00f02a3 239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
cd9a469c 258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
894a47b4 266 else
cd9a469c 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
894a47b4 271 fi
cd9a469c 272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
f00f02a3 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cd9a469c 356
357
358} # as_fn_mkdir_p
f00f02a3 359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
cd9a469c 367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
f00f02a3 403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
cd9a469c 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
f00f02a3 407# script with STATUS, using 1 if that was 0.
cd9a469c 408as_fn_error ()
409{
f00f02a3 410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cd9a469c 414 fi
f00f02a3 415 $as_echo "$as_me: error: $2" >&2
cd9a469c 416 as_fn_exit $as_status
417} # as_fn_error
894a47b4 418
cd9a469c 419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
894a47b4 421 as_expr=expr
422else
423 as_expr=false
424fi
425
cd9a469c 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
894a47b4 427 as_basename=basename
428else
429 as_basename=false
430fi
431
cd9a469c 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
894a47b4 437
cd9a469c 438as_me=`$as_basename -- "$0" ||
894a47b4 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
cd9a469c 441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
894a47b4 456
bbdcab13 457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
f534b3b3 463
894a47b4 464
cd9a469c 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
894a47b4 474 sed '
cd9a469c 475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
894a47b4 479 N
cd9a469c 480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
894a47b4 482 t loop
cd9a469c 483 s/-\n.*//
894a47b4 484 ' >$as_me.lineno &&
cd9a469c 485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
894a47b4 487
f00f02a3 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
894a47b4 492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
cd9a469c 494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
894a47b4 496 # Exit status is that of the last command.
497 exit
498}
499
cd9a469c 500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
894a47b4 511esac
512
cd9a469c 513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
894a47b4 516else
cd9a469c 517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
894a47b4 519fi
cd9a469c 520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
bbdcab13 522 as_ln_s='ln -s'
cd9a469c 523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f00f02a3 526 # In both cases, we have to default to `cp -pR'.
cd9a469c 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 528 as_ln_s='cp -pR'
cd9a469c 529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
f00f02a3 532 as_ln_s='cp -pR'
bbdcab13 533 fi
894a47b4 534else
f00f02a3 535 as_ln_s='cp -pR'
894a47b4 536fi
cd9a469c 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
894a47b4 539
540if mkdir -p . 2>/dev/null; then
cd9a469c 541 as_mkdir_p='mkdir -p "$as_dir"'
894a47b4 542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
f00f02a3 547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
894a47b4 549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
f00f02a3 557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
894a47b4 559
560# Name of the host.
f00f02a3 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
894a47b4 562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
894a47b4 565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
cd9a469c 569ac_clean_files=
894a47b4 570ac_config_libobj_dir=.
cd9a469c 571LIBOBJS=
894a47b4 572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
bbdcab13 576
894a47b4 577# Identity of this package.
578PACKAGE_NAME='GNU C Runtime Library'
579PACKAGE_TARNAME='libgcc'
580PACKAGE_VERSION='1.0'
581PACKAGE_STRING='GNU C Runtime Library 1.0'
582PACKAGE_BUGREPORT=''
cd9a469c 583PACKAGE_URL='http://www.gnu.org/software/libgcc/'
894a47b4 584
585ac_unique_file="static-object.mk"
c05436a7 586ac_includes_default='/* none */'
cd9a469c 587ac_subst_vars='LTLIBOBJS
588LIBOBJS
c678023a 589md_unwind_header
590unwind_header
591enable_execute_stack
cd9a469c 592asm_hidden_op
593extra_parts
63abf89e 594cpu_type
0812bb06 595get_gcc_base_ver
017f22df 596thread_header
022a2799 597tm_defines
598tm_file
cd9a469c 599tmake_file
84600db5 600sfp_machine_header
8f0f72c0 601set_use_emutls
cd9a469c 602set_have_cc_tls
603vis_hide
e1f1a538 604solaris_ld_v2_maps
162f9d1e 605real_host_noncanonical
a3d93be3 606accel_dir_suffix
d0eb4a95 607force_explicit_eh_registry
5f42446c 608CET_FLAGS
cd9a469c 609fixed_point
610enable_decimal_float
611decimal_float
c905381f 612EGREP
613GREP
a23b9c51 614long_double_type_size
615double_type_size
f3b403a3 616CPP
617OBJEXT
618EXEEXT
619ac_ct_CC
620CPPFLAGS
621LDFLAGS
622CFLAGS
623CC
cd9a469c 624LN_S
625STRIP
626RANLIB
627NM
628LIPO
629AR
abfe0c5b 630toolexeclibdir
631toolexecdir
cd9a469c 632target_subdir
633host_subdir
634build_subdir
635build_libsubdir
abfe0c5b 636target_noncanonical
cd9a469c 637host_noncanonical
4dc4ff49 638AWK
639INSTALL_DATA
640INSTALL_SCRIPT
641INSTALL_PROGRAM
642MAINT
643slibdir
644PICFLAG
cd9a469c 645host_os
646host_vendor
647host_cpu
648host
649build_os
650build_vendor
651build_cpu
652build
4c87b50c 653with_aix_soname
b710ec85 654enable_vtable_verify
bab25aa4 655enable_gcov
cd9a469c 656enable_shared
657libgcc_topdir
658target_alias
659host_alias
660build_alias
661LIBS
662ECHO_T
663ECHO_N
664ECHO_C
665DEFS
666mandir
667localedir
668libdir
669psdir
670pdfdir
671dvidir
672htmldir
673infodir
674docdir
675oldincludedir
676includedir
677localstatedir
678sharedstatedir
679sysconfdir
680datadir
681datarootdir
682libexecdir
683sbindir
684bindir
685program_transform_name
686prefix
687exec_prefix
688PACKAGE_URL
689PACKAGE_BUGREPORT
690PACKAGE_STRING
691PACKAGE_VERSION
692PACKAGE_TARNAME
693PACKAGE_NAME
694PATH_SEPARATOR
695SHELL'
894a47b4 696ac_subst_files=''
cd9a469c 697ac_user_opts='
698enable_option_checking
699with_target_subdir
700with_cross_host
701with_ld
702enable_shared
bab25aa4 703enable_gcov
b710ec85 704enable_vtable_verify
4c87b50c 705with_aix_soname
cd9a469c 706enable_version_specific_runtime_libs
707with_slibdir
708enable_maintainer_mode
709with_build_libsubdir
27182bcd 710enable_largefile
cd9a469c 711enable_decimal_float
e59be7e3 712with_system_libunwind
5f42446c 713enable_cet
d0eb4a95 714enable_explicit_exception_frame_registration
0e36a0d7 715with_glibc_version
cd9a469c 716enable_tls
0812bb06 717with_gcc_major_version_only
cd9a469c 718'
719 ac_precious_vars='build_alias
720host_alias
721target_alias
722CC
723CFLAGS
724LDFLAGS
725LIBS
726CPPFLAGS
727CPP'
728
894a47b4 729
730# Initialize some variables set by options.
731ac_init_help=
732ac_init_version=false
cd9a469c 733ac_unrecognized_opts=
734ac_unrecognized_sep=
894a47b4 735# The variables have the same names as the options, with
736# dashes changed to underlines.
737cache_file=/dev/null
738exec_prefix=NONE
739no_create=
740no_recursion=
741prefix=NONE
742program_prefix=NONE
743program_suffix=NONE
744program_transform_name=s,x,x,
745silent=
746site=
747srcdir=
748verbose=
749x_includes=NONE
750x_libraries=NONE
751
752# Installation directory options.
753# These are left unexpanded so users can "make install exec_prefix=/foo"
754# and all the variables that are supposed to be based on exec_prefix
755# by default will actually change.
756# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 757# (The list follows the same order as the GNU Coding Standards.)
894a47b4 758bindir='${exec_prefix}/bin'
759sbindir='${exec_prefix}/sbin'
760libexecdir='${exec_prefix}/libexec'
cd9a469c 761datarootdir='${prefix}/share'
762datadir='${datarootdir}'
894a47b4 763sysconfdir='${prefix}/etc'
764sharedstatedir='${prefix}/com'
765localstatedir='${prefix}/var'
894a47b4 766includedir='${prefix}/include'
767oldincludedir='/usr/include'
cd9a469c 768docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
769infodir='${datarootdir}/info'
770htmldir='${docdir}'
771dvidir='${docdir}'
772pdfdir='${docdir}'
773psdir='${docdir}'
774libdir='${exec_prefix}/lib'
775localedir='${datarootdir}/locale'
776mandir='${datarootdir}/man'
894a47b4 777
778ac_prev=
cd9a469c 779ac_dashdash=
894a47b4 780for ac_option
781do
782 # If the previous option needs an argument, assign it.
783 if test -n "$ac_prev"; then
cd9a469c 784 eval $ac_prev=\$ac_option
894a47b4 785 ac_prev=
786 continue
787 fi
788
cd9a469c 789 case $ac_option in
f00f02a3 790 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
791 *=) ac_optarg= ;;
792 *) ac_optarg=yes ;;
cd9a469c 793 esac
894a47b4 794
795 # Accept the important Cygnus configure options, so we can diagnose typos.
796
cd9a469c 797 case $ac_dashdash$ac_option in
798 --)
799 ac_dashdash=yes ;;
894a47b4 800
801 -bindir | --bindir | --bindi | --bind | --bin | --bi)
802 ac_prev=bindir ;;
803 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 bindir=$ac_optarg ;;
805
806 -build | --build | --buil | --bui | --bu)
807 ac_prev=build_alias ;;
808 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
809 build_alias=$ac_optarg ;;
810
811 -cache-file | --cache-file | --cache-fil | --cache-fi \
812 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813 ac_prev=cache_file ;;
814 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816 cache_file=$ac_optarg ;;
817
818 --config-cache | -C)
819 cache_file=config.cache ;;
820
cd9a469c 821 -datadir | --datadir | --datadi | --datad)
894a47b4 822 ac_prev=datadir ;;
cd9a469c 823 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894a47b4 824 datadir=$ac_optarg ;;
825
cd9a469c 826 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827 | --dataroo | --dataro | --datar)
828 ac_prev=datarootdir ;;
829 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831 datarootdir=$ac_optarg ;;
832
894a47b4 833 -disable-* | --disable-*)
cd9a469c 834 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894a47b4 835 # Reject names that are not valid shell variable names.
cd9a469c 836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 837 as_fn_error $? "invalid feature name: $ac_useropt"
cd9a469c 838 ac_useropt_orig=$ac_useropt
839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840 case $ac_user_opts in
841 *"
842"enable_$ac_useropt"
843"*) ;;
844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
845 ac_unrecognized_sep=', ';;
846 esac
847 eval enable_$ac_useropt=no ;;
848
849 -docdir | --docdir | --docdi | --doc | --do)
850 ac_prev=docdir ;;
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852 docdir=$ac_optarg ;;
853
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 ac_prev=dvidir ;;
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857 dvidir=$ac_optarg ;;
894a47b4 858
859 -enable-* | --enable-*)
cd9a469c 860 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894a47b4 861 # Reject names that are not valid shell variable names.
cd9a469c 862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 863 as_fn_error $? "invalid feature name: $ac_useropt"
cd9a469c 864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
867 *"
868"enable_$ac_useropt"
869"*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
bbdcab13 872 esac
cd9a469c 873 eval enable_$ac_useropt=\$ac_optarg ;;
894a47b4 874
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
883
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
887
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
894
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
899
cd9a469c 900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
905
894a47b4 906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
912
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
917
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
922
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
929
cd9a469c 930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
934
894a47b4 935 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 936 | --localstate | --localstat | --localsta | --localst | --locals)
894a47b4 937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
894a47b4 940 localstatedir=$ac_optarg ;;
941
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
946
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
950
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
954
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
958
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
967
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
972
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
979
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
986
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1003
cd9a469c 1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1008
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1013
894a47b4 1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1017
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1023
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1034
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1039
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1044
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1051
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1056
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1059
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1062
1063 -with-* | --with-*)
cd9a469c 1064 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
894a47b4 1065 # Reject names that are not valid shell variable names.
cd9a469c 1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1067 as_fn_error $? "invalid package name: $ac_useropt"
cd9a469c 1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072"with_$ac_useropt"
1073"*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
bbdcab13 1076 esac
cd9a469c 1077 eval with_$ac_useropt=\$ac_optarg ;;
894a47b4 1078
1079 -without-* | --without-*)
cd9a469c 1080 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
894a47b4 1081 # Reject names that are not valid shell variable names.
cd9a469c 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1083 as_fn_error $? "invalid package name: $ac_useropt"
cd9a469c 1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1087 *"
1088"with_$ac_useropt"
1089"*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval with_$ac_useropt=no ;;
894a47b4 1094
1095 --x)
1096 # Obsolete; use --with-x.
1097 with_x=yes ;;
1098
1099 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1100 | --x-incl | --x-inc | --x-in | --x-i)
1101 ac_prev=x_includes ;;
1102 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1103 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1104 x_includes=$ac_optarg ;;
1105
1106 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1107 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1108 ac_prev=x_libraries ;;
1109 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1110 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1111 x_libraries=$ac_optarg ;;
1112
f00f02a3 1113 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1114Try \`$0 --help' for more information"
894a47b4 1115 ;;
1116
1117 *=*)
1118 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1119 # Reject names that are not valid shell variable names.
cd9a469c 1120 case $ac_envvar in #(
1121 '' | [0-9]* | *[!_$as_cr_alnum]* )
f00f02a3 1122 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cd9a469c 1123 esac
1124 eval $ac_envvar=\$ac_optarg
894a47b4 1125 export $ac_envvar ;;
1126
1127 *)
1128 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1129 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
894a47b4 1130 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1131 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f00f02a3 1132 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
894a47b4 1133 ;;
1134
1135 esac
1136done
1137
1138if test -n "$ac_prev"; then
1139 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f00f02a3 1140 as_fn_error $? "missing argument to $ac_option"
894a47b4 1141fi
1142
cd9a469c 1143if test -n "$ac_unrecognized_opts"; then
1144 case $enable_option_checking in
1145 no) ;;
f00f02a3 1146 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cd9a469c 1147 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bbdcab13 1148 esac
cd9a469c 1149fi
bbdcab13 1150
cd9a469c 1151# Check all directory arguments for consistency.
1152for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1153 datadir sysconfdir sharedstatedir localstatedir includedir \
1154 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1155 libdir localedir mandir
bbdcab13 1156do
cd9a469c 1157 eval ac_val=\$$ac_var
1158 # Remove trailing slashes.
1159 case $ac_val in
1160 */ )
1161 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1162 eval $ac_var=\$ac_val;;
1163 esac
1164 # Be sure to have absolute directory names.
bbdcab13 1165 case $ac_val in
cd9a469c 1166 [\\/$]* | ?:[\\/]* ) continue;;
1167 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
894a47b4 1168 esac
f00f02a3 1169 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
894a47b4 1170done
1171
1172# There might be people who depend on the old broken behavior: `$host'
1173# used to hold the argument of --host etc.
1174# FIXME: To remove some day.
1175build=$build_alias
1176host=$host_alias
1177target=$target_alias
1178
1179# FIXME: To remove some day.
1180if test "x$host_alias" != x; then
1181 if test "x$build_alias" = x; then
1182 cross_compiling=maybe
894a47b4 1183 elif test "x$build_alias" != "x$host_alias"; then
1184 cross_compiling=yes
1185 fi
1186fi
1187
1188ac_tool_prefix=
1189test -n "$host_alias" && ac_tool_prefix=$host_alias-
1190
1191test "$silent" = yes && exec 6>/dev/null
1192
1193
cd9a469c 1194ac_pwd=`pwd` && test -n "$ac_pwd" &&
1195ac_ls_di=`ls -di .` &&
1196ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f00f02a3 1197 as_fn_error $? "working directory cannot be determined"
cd9a469c 1198test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f00f02a3 1199 as_fn_error $? "pwd does not report name of working directory"
cd9a469c 1200
1201
894a47b4 1202# Find the source files, if location was not specified.
1203if test -z "$srcdir"; then
1204 ac_srcdir_defaulted=yes
cd9a469c 1205 # Try the directory containing this script, then the parent directory.
1206 ac_confdir=`$as_dirname -- "$as_myself" ||
1207$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1208 X"$as_myself" : 'X\(//\)[^/]' \| \
1209 X"$as_myself" : 'X\(//\)$' \| \
1210 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1211$as_echo X"$as_myself" |
1212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\/\)[^/].*/{
1217 s//\1/
1218 q
1219 }
1220 /^X\(\/\/\)$/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\).*/{
1225 s//\1/
1226 q
1227 }
1228 s/.*/./; q'`
894a47b4 1229 srcdir=$ac_confdir
cd9a469c 1230 if test ! -r "$srcdir/$ac_unique_file"; then
894a47b4 1231 srcdir=..
1232 fi
1233else
1234 ac_srcdir_defaulted=no
1235fi
cd9a469c 1236if test ! -r "$srcdir/$ac_unique_file"; then
1237 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f00f02a3 1238 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cd9a469c 1239fi
1240ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241ac_abs_confdir=`(
f00f02a3 1242 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cd9a469c 1243 pwd)`
1244# When building in place, set srcdir=.
1245if test "$ac_abs_confdir" = "$ac_pwd"; then
1246 srcdir=.
1247fi
1248# Remove unnecessary trailing slashes from srcdir.
1249# Double slashes in file names in object file debugging info
1250# mess up M-x gdb in Emacs.
1251case $srcdir in
1252*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1253esac
1254for ac_var in $ac_precious_vars; do
1255 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1256 eval ac_env_${ac_var}_value=\$${ac_var}
1257 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1259done
f534b3b3 1260
894a47b4 1261#
1262# Report the --help message.
1263#
1264if test "$ac_init_help" = "long"; then
1265 # Omit some internal or obsolete options to make the list less imposing.
1266 # This message is too long to be a string in the A/UX 3.1 sh.
1267 cat <<_ACEOF
1268\`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1269
1270Usage: $0 [OPTION]... [VAR=VALUE]...
1271
1272To assign environment variables (e.g., CC, CFLAGS...), specify them as
1273VAR=VALUE. See below for descriptions of some of the useful variables.
1274
1275Defaults for the options are specified in brackets.
1276
1277Configuration:
1278 -h, --help display this help and exit
1279 --help=short display options specific to this package
1280 --help=recursive display the short help of all the included packages
1281 -V, --version display version information and exit
f00f02a3 1282 -q, --quiet, --silent do not print \`checking ...' messages
894a47b4 1283 --cache-file=FILE cache test results in FILE [disabled]
1284 -C, --config-cache alias for \`--cache-file=config.cache'
1285 -n, --no-create do not create output files
1286 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1287
894a47b4 1288Installation directories:
1289 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1290 [$ac_default_prefix]
894a47b4 1291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1292 [PREFIX]
894a47b4 1293
1294By default, \`make install' will install all the files in
1295\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1296an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1297for instance \`--prefix=\$HOME'.
1298
1299For better control, use the options below.
1300
1301Fine tuning of the installation directories:
cd9a469c 1302 --bindir=DIR user executables [EPREFIX/bin]
1303 --sbindir=DIR system admin executables [EPREFIX/sbin]
1304 --libexecdir=DIR program executables [EPREFIX/libexec]
1305 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1306 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1307 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1308 --libdir=DIR object code libraries [EPREFIX/lib]
1309 --includedir=DIR C header files [PREFIX/include]
1310 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1311 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1312 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1313 --infodir=DIR info documentation [DATAROOTDIR/info]
1314 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1315 --mandir=DIR man documentation [DATAROOTDIR/man]
1316 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1317 --htmldir=DIR html documentation [DOCDIR]
1318 --dvidir=DIR dvi documentation [DOCDIR]
1319 --pdfdir=DIR pdf documentation [DOCDIR]
1320 --psdir=DIR ps documentation [DOCDIR]
894a47b4 1321_ACEOF
1322
1323 cat <<\_ACEOF
1324
1325System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328_ACEOF
1329fi
1330
1331if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1334 esac
1335 cat <<\_ACEOF
1336
1337Optional Features:
cd9a469c 1338 --disable-option-checking ignore unrecognized --enable/--with options
894a47b4 1339 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1340 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1341 --disable-shared don't provide a shared libgcc
bab25aa4 1342 --disable-gcov don't provide libgcov and related host tools
b710ec85 1343 --enable-vtable-verify Enable vtable verification feature
bbdcab13 1344 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
a2655af1 1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful (and
1347 sometimes confusing) to the casual installer
27182bcd 1348 --disable-largefile omit support for large files
10de71e1 1349 --enable-decimal-float={no,yes,bid,dpd}
1350 enable decimal float extension to C. Selecting 'bid'
1351 or 'dpd' choses which decimal floating point format
1352 to use
ee8fea81 1353 --enable-cet enable Intel CET in target libraries [default=no]
d0eb4a95 1354 --enable-explicit-exception-frame-registration
1355 register exception tables explicitly at module
1356 start, for use e.g. for compatibility with
1357 installations without PT_GNU_EH_FRAME support
e4cbe54f 1358 --enable-tls Use thread-local storage [default=yes]
894a47b4 1359
1360Optional Packages:
1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1363 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1364 --with-cross-host=HOST Configuring with a cross compiler
1365 --with-ld arrange to use the specified ld (full pathname)
4c87b50c 1366 --with-aix-soname=aix|svr4|both
1367 shared library versioning (aka "SONAME") variant to
1368 provide on AIX
894a47b4 1369 --with-slibdir=DIR shared libraries in DIR LIBDIR
f534b3b3 1370 --with-build-libsubdir=DIR Directory where to find libraries for build system
e59be7e3 1371 --with-system-libunwind use installed libunwind
0e36a0d7 1372 --with-glibc-version=M.N
1373 assume GCC used with glibc version M.N or later
0812bb06 1374 --with-gcc-major-version-only
1375 use only GCC major number in filesystem paths
894a47b4 1376
1377Some influential environment variables:
1378 CC C compiler command
1379 CFLAGS C compiler flags
1380 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1381 nonstandard directory <lib dir>
cd9a469c 1382 LIBS libraries to pass to the linker, e.g. -l<library>
f00f02a3 1383 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cd9a469c 1384 you have headers in a nonstandard directory <include dir>
894a47b4 1385 CPP C preprocessor
1386
1387Use these variables to override the choices made by `configure' or to help
1388it to find libraries and programs with nonstandard names/locations.
1389
cd9a469c 1390Report bugs to the package provider.
1391GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1392General help using GNU software: <http://www.gnu.org/gethelp/>.
894a47b4 1393_ACEOF
cd9a469c 1394ac_status=$?
894a47b4 1395fi
1396
1397if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
894a47b4 1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1400 test -d "$ac_dir" ||
1401 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1402 continue
894a47b4 1403 ac_builddir=.
1404
cd9a469c 1405case "$ac_dir" in
1406.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407*)
1408 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1409 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1411 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 esac ;;
1415esac
1416ac_abs_top_builddir=$ac_pwd
1417ac_abs_builddir=$ac_pwd$ac_dir_suffix
1418# for backward compatibility:
1419ac_top_builddir=$ac_top_build_prefix
894a47b4 1420
1421case $srcdir in
cd9a469c 1422 .) # We are building in place.
894a47b4 1423 ac_srcdir=.
cd9a469c 1424 ac_top_srcdir=$ac_top_builddir_sub
1425 ac_abs_top_srcdir=$ac_pwd ;;
1426 [\\/]* | ?:[\\/]* ) # Absolute name.
894a47b4 1427 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1428 ac_top_srcdir=$srcdir
1429 ac_abs_top_srcdir=$srcdir ;;
1430 *) # Relative name.
1431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1432 ac_top_srcdir=$ac_top_build_prefix$srcdir
1433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
894a47b4 1434esac
cd9a469c 1435ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436
1437 cd "$ac_dir" || { ac_status=$?; continue; }
1438 # Check for guested configure.
1439 if test -f "$ac_srcdir/configure.gnu"; then
1440 echo &&
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure" --help=recursive
894a47b4 1445 else
cd9a469c 1446 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 fi || ac_status=$?
1448 cd "$ac_pwd" || { ac_status=$?; break; }
894a47b4 1449 done
1450fi
1451
cd9a469c 1452test -n "$ac_init_help" && exit $ac_status
894a47b4 1453if $ac_init_version; then
1454 cat <<\_ACEOF
1455GNU C Runtime Library configure 1.0
f00f02a3 1456generated by GNU Autoconf 2.69
894a47b4 1457
f00f02a3 1458Copyright (C) 2012 Free Software Foundation, Inc.
894a47b4 1459This configure script is free software; the Free Software Foundation
1460gives unlimited permission to copy, distribute and modify it.
1461_ACEOF
cd9a469c 1462 exit
894a47b4 1463fi
cd9a469c 1464
1465## ------------------------ ##
1466## Autoconf initialization. ##
1467## ------------------------ ##
1468
1469# ac_fn_c_try_compile LINENO
1470# --------------------------
1471# Try to compile conftest.$ac_ext, and return whether this succeeded.
1472ac_fn_c_try_compile ()
1473{
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 rm -f conftest.$ac_objext
1476 if { { ac_try="$ac_compile"
1477case "(($ac_try" in
1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479 *) ac_try_echo=$ac_try;;
1480esac
1481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482$as_echo "$ac_try_echo"; } >&5
1483 (eval "$ac_compile") 2>conftest.err
1484 ac_status=$?
1485 if test -s conftest.err; then
1486 grep -v '^ *+' conftest.err >conftest.er1
1487 cat conftest.er1 >&5
1488 mv -f conftest.er1 conftest.err
1489 fi
1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491 test $ac_status = 0; } && {
1492 test -z "$ac_c_werror_flag" ||
1493 test ! -s conftest.err
1494 } && test -s conftest.$ac_objext; then :
1495 ac_retval=0
1496else
1497 $as_echo "$as_me: failed program was:" >&5
1498sed 's/^/| /' conftest.$ac_ext >&5
1499
1500 ac_retval=1
1501fi
f00f02a3 1502 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1503 as_fn_set_status $ac_retval
cd9a469c 1504
1505} # ac_fn_c_try_compile
1506
1507# ac_fn_c_try_cpp LINENO
1508# ----------------------
1509# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1510ac_fn_c_try_cpp ()
1511{
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 if { { ac_try="$ac_cpp conftest.$ac_ext"
1514case "(($ac_try" in
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1517esac
1518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519$as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1521 ac_status=$?
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1526 fi
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f00f02a3 1528 test $ac_status = 0; } > conftest.i && {
cd9a469c 1529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 }; then :
1532 ac_retval=0
1533else
1534 $as_echo "$as_me: failed program was:" >&5
1535sed 's/^/| /' conftest.$ac_ext >&5
1536
1537 ac_retval=1
1538fi
f00f02a3 1539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540 as_fn_set_status $ac_retval
cd9a469c 1541
1542} # ac_fn_c_try_cpp
a23b9c51 1543
1544# ac_fn_c_try_run LINENO
1545# ----------------------
1546# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1547# that executables *can* be run.
1548ac_fn_c_try_run ()
1549{
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if { { ac_try="$ac_link"
1552case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_link") 2>&5
1559 ac_status=$?
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1562 { { case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_try") 2>&5
1569 ac_status=$?
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; }; }; then :
1572 ac_retval=0
1573else
1574 $as_echo "$as_me: program exited with status $ac_status" >&5
1575 $as_echo "$as_me: failed program was:" >&5
1576sed 's/^/| /' conftest.$ac_ext >&5
1577
1578 ac_retval=$ac_status
1579fi
1580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
a23b9c51 1583
1584} # ac_fn_c_try_run
1585
1586# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1587# --------------------------------------------
1588# Tries to find the compile-time value of EXPR in a program that includes
1589# INCLUDES, setting VAR accordingly. Returns whether the value could be
1590# computed
1591ac_fn_c_compute_int ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if test "$cross_compiling" = yes; then
1595 # Depending upon the size, compute the lo and hi bounds.
1596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597/* end confdefs.h. */
1598$4
1599int
1600main ()
1601{
1602static int test_array [1 - 2 * !(($2) >= 0)];
f00f02a3 1603test_array [0] = 0;
1604return test_array [0];
a23b9c51 1605
1606 ;
1607 return 0;
1608}
1609_ACEOF
1610if ac_fn_c_try_compile "$LINENO"; then :
1611 ac_lo=0 ac_mid=0
1612 while :; do
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h. */
1615$4
1616int
1617main ()
1618{
1619static int test_array [1 - 2 * !(($2) <= $ac_mid)];
f00f02a3 1620test_array [0] = 0;
1621return test_array [0];
a23b9c51 1622
1623 ;
1624 return 0;
1625}
1626_ACEOF
1627if ac_fn_c_try_compile "$LINENO"; then :
1628 ac_hi=$ac_mid; break
1629else
1630 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1631 if test $ac_lo -le $ac_mid; then
1632 ac_lo= ac_hi=
1633 break
1634 fi
1635 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1636fi
1637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 done
1639else
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h. */
1642$4
1643int
1644main ()
1645{
1646static int test_array [1 - 2 * !(($2) < 0)];
f00f02a3 1647test_array [0] = 0;
1648return test_array [0];
a23b9c51 1649
1650 ;
1651 return 0;
1652}
1653_ACEOF
1654if ac_fn_c_try_compile "$LINENO"; then :
1655 ac_hi=-1 ac_mid=-1
1656 while :; do
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h. */
1659$4
1660int
1661main ()
1662{
1663static int test_array [1 - 2 * !(($2) >= $ac_mid)];
f00f02a3 1664test_array [0] = 0;
1665return test_array [0];
a23b9c51 1666
1667 ;
1668 return 0;
1669}
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_lo=$ac_mid; break
1673else
1674 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1675 if test $ac_mid -le $ac_hi; then
1676 ac_lo= ac_hi=
1677 break
1678 fi
1679 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1680fi
1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 done
1683else
1684 ac_lo= ac_hi=
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687fi
1688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689# Binary search between lo and hi bounds.
1690while test "x$ac_lo" != "x$ac_hi"; do
1691 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693/* end confdefs.h. */
1694$4
1695int
1696main ()
1697{
1698static int test_array [1 - 2 * !(($2) <= $ac_mid)];
f00f02a3 1699test_array [0] = 0;
1700return test_array [0];
a23b9c51 1701
1702 ;
1703 return 0;
1704}
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"; then :
1707 ac_hi=$ac_mid
1708else
1709 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1710fi
1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712done
1713case $ac_lo in #((
1714?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1715'') ac_retval=1 ;;
1716esac
1717 else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h. */
1720$4
1721static long int longval () { return $2; }
1722static unsigned long int ulongval () { return $2; }
1723#include <stdio.h>
1724#include <stdlib.h>
1725int
1726main ()
1727{
1728
1729 FILE *f = fopen ("conftest.val", "w");
1730 if (! f)
1731 return 1;
1732 if (($2) < 0)
1733 {
1734 long int i = longval ();
1735 if (i != ($2))
1736 return 1;
1737 fprintf (f, "%ld", i);
1738 }
1739 else
1740 {
1741 unsigned long int i = ulongval ();
1742 if (i != ($2))
1743 return 1;
1744 fprintf (f, "%lu", i);
1745 }
1746 /* Do not output a trailing newline, as this causes \r\n confusion
1747 on some platforms. */
1748 return ferror (f) || fclose (f) != 0;
1749
1750 ;
1751 return 0;
1752}
1753_ACEOF
1754if ac_fn_c_try_run "$LINENO"; then :
1755 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1756else
1757 ac_retval=1
1758fi
1759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1760 conftest.$ac_objext conftest.beam conftest.$ac_ext
1761rm -f conftest.val
1762
1763 fi
f00f02a3 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
a23b9c51 1766
1767} # ac_fn_c_compute_int
c905381f 1768
1769# ac_fn_c_check_header_preproc LINENO HEADER VAR
1770# ----------------------------------------------
1771# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1772ac_fn_c_check_header_preproc ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776$as_echo_n "checking for $2... " >&6; }
f00f02a3 1777if eval \${$3+:} false; then :
c905381f 1778 $as_echo_n "(cached) " >&6
1779else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h. */
1782#include <$2>
1783_ACEOF
1784if ac_fn_c_try_cpp "$LINENO"; then :
1785 eval "$3=yes"
1786else
1787 eval "$3=no"
1788fi
f00f02a3 1789rm -f conftest.err conftest.i conftest.$ac_ext
c905381f 1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
f00f02a3 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c905381f 1795
1796} # ac_fn_c_check_header_preproc
cd9a469c 1797cat >config.log <<_ACEOF
894a47b4 1798This file contains any messages produced by compilers while
1799running configure, to aid debugging if configure makes a mistake.
1800
1801It was created by GNU C Runtime Library $as_me 1.0, which was
f00f02a3 1802generated by GNU Autoconf 2.69. Invocation command line was
894a47b4 1803
1804 $ $0 $@
1805
1806_ACEOF
cd9a469c 1807exec 5>>config.log
894a47b4 1808{
1809cat <<_ASUNAME
1810## --------- ##
1811## Platform. ##
1812## --------- ##
1813
1814hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1815uname -m = `(uname -m) 2>/dev/null || echo unknown`
1816uname -r = `(uname -r) 2>/dev/null || echo unknown`
1817uname -s = `(uname -s) 2>/dev/null || echo unknown`
1818uname -v = `(uname -v) 2>/dev/null || echo unknown`
1819
1820/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1821/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1822
1823/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1824/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1825/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cd9a469c 1826/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
894a47b4 1827/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1828/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1829/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1830
1831_ASUNAME
1832
1833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834for as_dir in $PATH
1835do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
cd9a469c 1838 $as_echo "PATH: $as_dir"
1839 done
1840IFS=$as_save_IFS
894a47b4 1841
1842} >&5
1843
1844cat >&5 <<_ACEOF
1845
1846
1847## ----------- ##
1848## Core tests. ##
1849## ----------- ##
1850
1851_ACEOF
1852
1853
1854# Keep a trace of the command line.
1855# Strip out --no-create and --no-recursion so they do not pile up.
1856# Strip out --silent because we don't want to record it for future runs.
1857# Also quote any args containing shell meta-characters.
1858# Make two passes to allow for proper duplicate-argument suppression.
1859ac_configure_args=
1860ac_configure_args0=
1861ac_configure_args1=
894a47b4 1862ac_must_keep_next=false
1863for ac_pass in 1 2
1864do
1865 for ac_arg
1866 do
1867 case $ac_arg in
1868 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1870 | -silent | --silent | --silen | --sile | --sil)
1871 continue ;;
cd9a469c 1872 *\'*)
1873 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
894a47b4 1874 esac
1875 case $ac_pass in
cd9a469c 1876 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
894a47b4 1877 2)
cd9a469c 1878 as_fn_append ac_configure_args1 " '$ac_arg'"
894a47b4 1879 if test $ac_must_keep_next = true; then
1880 ac_must_keep_next=false # Got value, back to normal.
1881 else
1882 case $ac_arg in
1883 *=* | --config-cache | -C | -disable-* | --disable-* \
1884 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1885 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1886 | -with-* | --with-* | -without-* | --without-* | --x)
1887 case "$ac_configure_args0 " in
1888 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1889 esac
1890 ;;
1891 -* ) ac_must_keep_next=true ;;
1892 esac
1893 fi
cd9a469c 1894 as_fn_append ac_configure_args " '$ac_arg'"
894a47b4 1895 ;;
1896 esac
1897 done
1898done
cd9a469c 1899{ ac_configure_args0=; unset ac_configure_args0;}
1900{ ac_configure_args1=; unset ac_configure_args1;}
894a47b4 1901
1902# When interrupted or exit'd, cleanup temporary files, and complete
1903# config.log. We remove comments because anyway the quotes in there
1904# would cause problems or look ugly.
cd9a469c 1905# WARNING: Use '\'' to represent an apostrophe within the trap.
1906# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
894a47b4 1907trap 'exit_status=$?
1908 # Save into config.log some information that might help in debugging.
1909 {
1910 echo
1911
f00f02a3 1912 $as_echo "## ---------------- ##
894a47b4 1913## Cache variables. ##
f00f02a3 1914## ---------------- ##"
894a47b4 1915 echo
1916 # The following way of writing the cache mishandles newlines in values,
cd9a469c 1917(
1918 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1919 eval ac_val=\$$ac_var
1920 case $ac_val in #(
1921 *${as_nl}*)
1922 case $ac_var in #(
1923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1924$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1925 esac
1926 case $ac_var in #(
1927 _ | IFS | as_nl) ;; #(
1928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1929 *) { eval $ac_var=; unset $ac_var;} ;;
1930 esac ;;
1931 esac
1932 done
894a47b4 1933 (set) 2>&1 |
cd9a469c 1934 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1935 *${as_nl}ac_space=\ *)
894a47b4 1936 sed -n \
cd9a469c 1937 "s/'\''/'\''\\\\'\'''\''/g;
1938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1939 ;; #(
894a47b4 1940 *)
cd9a469c 1941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
894a47b4 1942 ;;
cd9a469c 1943 esac |
1944 sort
1945)
894a47b4 1946 echo
1947
f00f02a3 1948 $as_echo "## ----------------- ##
894a47b4 1949## Output variables. ##
f00f02a3 1950## ----------------- ##"
894a47b4 1951 echo
1952 for ac_var in $ac_subst_vars
1953 do
cd9a469c 1954 eval ac_val=\$$ac_var
1955 case $ac_val in
1956 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1957 esac
1958 $as_echo "$ac_var='\''$ac_val'\''"
894a47b4 1959 done | sort
1960 echo
1961
1962 if test -n "$ac_subst_files"; then
f00f02a3 1963 $as_echo "## ------------------- ##
cd9a469c 1964## File substitutions. ##
f00f02a3 1965## ------------------- ##"
894a47b4 1966 echo
1967 for ac_var in $ac_subst_files
1968 do
cd9a469c 1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
894a47b4 1974 done | sort
1975 echo
1976 fi
1977
1978 if test -s confdefs.h; then
f00f02a3 1979 $as_echo "## ----------- ##
894a47b4 1980## confdefs.h. ##
f00f02a3 1981## ----------- ##"
894a47b4 1982 echo
cd9a469c 1983 cat confdefs.h
894a47b4 1984 echo
1985 fi
1986 test "$ac_signal" != 0 &&
cd9a469c 1987 $as_echo "$as_me: caught signal $ac_signal"
1988 $as_echo "$as_me: exit $exit_status"
894a47b4 1989 } >&5
cd9a469c 1990 rm -f core *.core core.conftest.* &&
1991 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
894a47b4 1992 exit $exit_status
cd9a469c 1993' 0
894a47b4 1994for ac_signal in 1 2 13 15; do
cd9a469c 1995 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
894a47b4 1996done
1997ac_signal=0
1998
1999# confdefs.h avoids OS command line length limits that DEFS can exceed.
cd9a469c 2000rm -f -r conftest* confdefs.h
2001
2002$as_echo "/* confdefs.h */" > confdefs.h
894a47b4 2003
2004# Predefined preprocessor variables.
2005
2006cat >>confdefs.h <<_ACEOF
2007#define PACKAGE_NAME "$PACKAGE_NAME"
2008_ACEOF
2009
894a47b4 2010cat >>confdefs.h <<_ACEOF
2011#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2012_ACEOF
2013
894a47b4 2014cat >>confdefs.h <<_ACEOF
2015#define PACKAGE_VERSION "$PACKAGE_VERSION"
2016_ACEOF
2017
894a47b4 2018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_STRING "$PACKAGE_STRING"
2020_ACEOF
2021
894a47b4 2022cat >>confdefs.h <<_ACEOF
2023#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2024_ACEOF
2025
cd9a469c 2026cat >>confdefs.h <<_ACEOF
2027#define PACKAGE_URL "$PACKAGE_URL"
2028_ACEOF
2029
894a47b4 2030
2031# Let the site file select an alternate cache file if it wants to.
cd9a469c 2032# Prefer an explicitly selected file to automatically selected ones.
2033ac_site_file1=NONE
2034ac_site_file2=NONE
2035if test -n "$CONFIG_SITE"; then
f00f02a3 2036 # We do not want a PATH search for config.site.
2037 case $CONFIG_SITE in #((
2038 -*) ac_site_file1=./$CONFIG_SITE;;
2039 */*) ac_site_file1=$CONFIG_SITE;;
2040 *) ac_site_file1=./$CONFIG_SITE;;
2041 esac
cd9a469c 2042elif test "x$prefix" != xNONE; then
2043 ac_site_file1=$prefix/share/config.site
2044 ac_site_file2=$prefix/etc/config.site
2045else
2046 ac_site_file1=$ac_default_prefix/share/config.site
2047 ac_site_file2=$ac_default_prefix/etc/config.site
894a47b4 2048fi
cd9a469c 2049for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2050do
2051 test "x$ac_site_file" = xNONE && continue
f00f02a3 2052 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cd9a469c 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2054$as_echo "$as_me: loading site script $ac_site_file" >&6;}
894a47b4 2055 sed 's/^/| /' "$ac_site_file" >&5
f00f02a3 2056 . "$ac_site_file" \
2057 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2059as_fn_error $? "failed to load site script $ac_site_file
2060See \`config.log' for more details" "$LINENO" 5; }
894a47b4 2061 fi
2062done
2063
2064if test -r "$cache_file"; then
f00f02a3 2065 # Some versions of bash will fail to source /dev/null (special files
2066 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2067 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cd9a469c 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2069$as_echo "$as_me: loading cache $cache_file" >&6;}
894a47b4 2070 case $cache_file in
cd9a469c 2071 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2072 *) . "./$cache_file";;
894a47b4 2073 esac
2074 fi
2075else
cd9a469c 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2077$as_echo "$as_me: creating cache $cache_file" >&6;}
894a47b4 2078 >$cache_file
2079fi
2080
2081# Check that the precious variables saved in the cache have kept the same
2082# value.
2083ac_cache_corrupted=false
cd9a469c 2084for ac_var in $ac_precious_vars; do
894a47b4 2085 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2086 eval ac_new_set=\$ac_env_${ac_var}_set
cd9a469c 2087 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2088 eval ac_new_val=\$ac_env_${ac_var}_value
894a47b4 2089 case $ac_old_set,$ac_new_set in
2090 set,)
cd9a469c 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2092$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
894a47b4 2093 ac_cache_corrupted=: ;;
2094 ,set)
cd9a469c 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2096$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
894a47b4 2097 ac_cache_corrupted=: ;;
2098 ,);;
2099 *)
2100 if test "x$ac_old_val" != "x$ac_new_val"; then
cd9a469c 2101 # differences in whitespace do not lead to failure.
2102 ac_old_val_w=`echo x $ac_old_val`
2103 ac_new_val_w=`echo x $ac_new_val`
2104 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2106$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2107 ac_cache_corrupted=:
2108 else
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2110$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2111 eval $ac_var=\$ac_old_val
2112 fi
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2114$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2116$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
894a47b4 2117 fi;;
2118 esac
2119 # Pass precious variables to config.status.
2120 if test "$ac_new_set" = set; then
2121 case $ac_new_val in
cd9a469c 2122 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
894a47b4 2123 *) ac_arg=$ac_var=$ac_new_val ;;
2124 esac
2125 case " $ac_configure_args " in
2126 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cd9a469c 2127 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
894a47b4 2128 esac
2129 fi
2130done
2131if $ac_cache_corrupted; then
cd9a469c 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2135$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
f00f02a3 2136 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
894a47b4 2137fi
cd9a469c 2138## -------------------- ##
2139## Main body of script. ##
2140## -------------------- ##
894a47b4 2141
bbdcab13 2142ac_ext=c
2143ac_cpp='$CPP $CPPFLAGS'
2144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147
894a47b4 2148
2149
2150
2151
2152
2153
c05436a7 2154# The libgcc should not depend on any header files
2155
2156
894a47b4 2157
cd9a469c 2158# Check whether --with-target-subdir was given.
2159if test "${with_target_subdir+set}" = set; then :
2160 withval=$with_target_subdir;
2161fi
894a47b4 2162
2163
cd9a469c 2164# Check whether --with-cross-host was given.
2165if test "${with_cross_host+set}" = set; then :
2166 withval=$with_cross_host;
2167fi
894a47b4 2168
2169
cd9a469c 2170# Check whether --with-ld was given.
2171if test "${with_ld+set}" = set; then :
2172 withval=$with_ld;
2173fi
894a47b4 2174
2175
894a47b4 2176if test "${srcdir}" = "."; then
2177 if test -n "${with_build_subdir}"; then
2178 libgcc_topdir="${srcdir}/../.."
2179 with_target_subdir=
2180 elif test -z "${with_target_subdir}"; then
2181 libgcc_topdir="${srcdir}/.."
2182 else
2183 if test "${with_target_subdir}" != "."; then
2184 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2185 else
2186 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2187 fi
2188 fi
2189else
2190 libgcc_topdir="${srcdir}/.."
2191fi
2192
2193ac_aux_dir=
cd9a469c 2194for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
f00f02a3 2195 if test -f "$ac_dir/install-sh"; then
2196 ac_aux_dir=$ac_dir
2197 ac_install_sh="$ac_aux_dir/install-sh -c"
2198 break
2199 elif test -f "$ac_dir/install.sh"; then
2200 ac_aux_dir=$ac_dir
2201 ac_install_sh="$ac_aux_dir/install.sh -c"
2202 break
2203 elif test -f "$ac_dir/shtool"; then
2204 ac_aux_dir=$ac_dir
2205 ac_install_sh="$ac_aux_dir/shtool install -c"
2206 break
2207 fi
894a47b4 2208done
2209if test -z "$ac_aux_dir"; then
f00f02a3 2210 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
894a47b4 2211fi
cd9a469c 2212
2213# These three variables are undocumented and unsupported,
2214# and are intended to be withdrawn in a future Autoconf release.
2215# They can cause serious problems if a builder's source tree is in a directory
2216# whose full name contains unusual characters.
2217ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2218ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2219ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
894a47b4 2220
894a47b4 2221
98c9b52b 2222ac_config_headers="$ac_config_headers auto-target.h:config.in"
2223
bbdcab13 2224
f3b403a3 2225# Check whether --enable-shared was given.
2226if test "${enable_shared+set}" = set; then :
2227 enableval=$enable_shared;
2228 case $enable_shared in
2229 yes | no) ;;
2230 *)
2231 enable_shared=no
2232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2233 for pkg in $enableval; do
2234 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2235 enable_shared=yes
2236 fi
2237 done
2238 IFS="$ac_save_ifs"
2239 ;;
2240 esac
894a47b4 2241
2242else
f3b403a3 2243 enable_shared=yes
cd9a469c 2244fi
2245
bbdcab13 2246
2247
bab25aa4 2248# Check whether --enable-gcov was given.
2249if test "${enable_gcov+set}" = set; then :
2250 enableval=$enable_gcov;
2251else
2252 enable_gcov=yes
2253fi
2254
2255
2256
f3b403a3 2257# Check whether --enable-vtable-verify was given.
2258if test "${enable_vtable_verify+set}" = set; then :
2259 enableval=$enable_vtable_verify; case "$enableval" in
2260 yes) enable_vtable_verify=yes ;;
2261 no) enable_vtable_verify=no ;;
2262 *) enable_vtable_verify=no;;
2263 esac
b710ec85 2264else
f3b403a3 2265 enable_vtable_verify=no
b710ec85 2266fi
2267
f3b403a3 2268
2269
2270
2271# Check whether --with-aix-soname was given.
2272if test "${with_aix_soname+set}" = set; then :
2273 withval=$with_aix_soname; case "${host}:${enable_shared}" in
2274 power*-*-aix[5-9]*:yes)
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
2276$as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
2277 case ${withval} in
2278 aix|svr4|both) ;;
f00f02a3 2279 *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5;;
f3b403a3 2280 esac
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2282$as_echo "$withval" >&6; }
2283 ;;
2284 *) with_aix_soname=aix ;;
2285 esac
2286
4c87b50c 2287else
f3b403a3 2288 with_aix_soname=aix
4c87b50c 2289fi
2290
f3b403a3 2291
2292
2293# Make sure we can run config.sub.
2294$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
f00f02a3 2295 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
f3b403a3 2296
2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298$as_echo_n "checking build system type... " >&6; }
f00f02a3 2299if ${ac_cv_build+:} false; then :
4dc4ff49 2300 $as_echo_n "(cached) " >&6
2301else
f3b403a3 2302 ac_build_alias=$build_alias
2303test "x$ac_build_alias" = x &&
2304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305test "x$ac_build_alias" = x &&
f00f02a3 2306 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
f3b403a3 2307ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
f00f02a3 2308 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4dc4ff49 2309
2310fi
f3b403a3 2311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312$as_echo "$ac_cv_build" >&6; }
2313case $ac_cv_build in
2314*-*-*) ;;
f00f02a3 2315*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
f3b403a3 2316esac
2317build=$ac_cv_build
2318ac_save_IFS=$IFS; IFS='-'
2319set x $ac_cv_build
2320shift
2321build_cpu=$1
2322build_vendor=$2
2323shift; shift
2324# Remember, the first character of IFS is used to create $*,
2325# except with old shells:
2326build_os=$*
2327IFS=$ac_save_IFS
2328case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4dc4ff49 2329
c4533507 2330
f3b403a3 2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332$as_echo_n "checking host system type... " >&6; }
f00f02a3 2333if ${ac_cv_host+:} false; then :
c4533507 2334 $as_echo_n "(cached) " >&6
2335else
2336 if test "x$host_alias" = x; then
2337 ac_cv_host=$ac_cv_build
2338else
2339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
f00f02a3 2340 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
c4533507 2341fi
2342
2343fi
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4dc4ff49 2345$as_echo "$ac_cv_host" >&6; }
2346case $ac_cv_host in
2347*-*-*) ;;
f00f02a3 2348*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4dc4ff49 2349esac
2350host=$ac_cv_host
2351ac_save_IFS=$IFS; IFS='-'
2352set x $ac_cv_host
2353shift
2354host_cpu=$1
2355host_vendor=$2
2356shift; shift
2357# Remember, the first character of IFS is used to create $*,
2358# except with old shells:
2359host_os=$*
2360IFS=$ac_save_IFS
2361case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2362
2363
2364
2365
630d52ca 2366
4dc4ff49 2367
2368case "${host}" in
2369 # PIC is the default on some targets or must not be used.
2370 *-*-darwin*)
fb5ccd6d 2371 # For darwin, common symbols are not allowed in MH_DYLIB files
2372 case "${CFLAGS}" in
2373 # If we are using a compiler supporting mdynamic-no-pic
2374 # and the option has been tested as safe to add, then cancel
2375 # it here, since the code generated is incompatible with shared
cb7a0f1d 2376 # libs.
fb5ccd6d 2377 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
2378 *) PICFLAG=-fno-common ;;
2379 esac
4dc4ff49 2380 ;;
2381 alpha*-dec-osf5*)
2382 # PIC is the default.
2383 ;;
2384 hppa*64*-*-hpux*)
2385 # PIC is the default for 64-bit PA HP-UX.
2386 ;;
45d13ef4 2387 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2388 ;;
2389 i[34567]86-*-mingw* | x86_64-*-mingw*)
4dc4ff49 2390 ;;
cb7a0f1d 2391 i[34567]86-*-interix[3-9]*)
2392 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2393 # Instead, we relocate shared libraries at runtime.
2394 ;;
630d52ca 2395 i[34567]86-*-nto-qnx*)
4dc4ff49 2396 # QNX uses GNU C++, but need to define -shared option too, otherwise
2397 # it will coredump.
2398 PICFLAG='-fPIC -shared'
2399 ;;
630d52ca 2400 i[34567]86-pc-msdosdjgpp*)
4dc4ff49 2401 # DJGPP does not support shared libraries at all.
2402 ;;
2403 ia64*-*-hpux*)
2404 # On IA64 HP-UX, PIC is the default but the pic flag
2405 # sets the default TLS model and affects inlining.
4dc4ff49 2406 PICFLAG=-fPIC
2407 ;;
2408 mips-sgi-irix6*)
2409 # PIC is the default.
2410 ;;
2411 rs6000-ibm-aix* | powerpc-ibm-aix*)
2412 # All AIX code is PIC.
2413 ;;
2414
2415 # Some targets support both -fPIC and -fpic, but prefer the latter.
2416 # FIXME: Why?
630d52ca 2417 i[34567]86-*-* | x86_64-*-*)
4dc4ff49 2418 PICFLAG=-fpic
2419 ;;
4dc4ff49 2420 # FIXME: Override -fPIC default in libgcc only?
630d52ca 2421 sh-*-linux* | sh[2346lbe]*-*-linux*)
4dc4ff49 2422 PICFLAG=-fpic
2423 ;;
2424 # FIXME: Simplify to sh*-*-netbsd*?
cb7a0f1d 2425 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2426 sh64-*-netbsd* | sh64l*-*-netbsd*)
4dc4ff49 2427 PICFLAG=-fpic
2428 ;;
4dc4ff49 2429 # Default to -fPIC unless specified otherwise.
2430 *)
2431 PICFLAG=-fPIC
2432 ;;
2433esac
2434
630d52ca 2435# If the user explicitly uses -fpic/-fPIC, keep that.
2436case "${CFLAGS}" in
2437 *-fpic*)
2438 PICFLAG=-fpic
2439 ;;
2440 *-fPIC*)
2441 PICFLAG=-fPIC
2442 ;;
2443esac
2444
4dc4ff49 2445
2446
cd9a469c 2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2448$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2449# Check whether --enable-version-specific-runtime-libs was given.
2450if test "${enable_version_specific_runtime_libs+set}" = set; then :
2451 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
bbdcab13 2452 yes) version_specific_libs=yes ;;
2453 no) version_specific_libs=no ;;
f00f02a3 2454 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
bbdcab13 2455 esac
2456else
2457 version_specific_libs=no
cd9a469c 2458fi
2459
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2461$as_echo "$version_specific_libs" >&6; }
894a47b4 2462
f534b3b3 2463
cd9a469c 2464# Check whether --with-slibdir was given.
2465if test "${with_slibdir+set}" = set; then :
2466 withval=$with_slibdir; slibdir="$with_slibdir"
894a47b4 2467else
bbdcab13 2468 if test "${version_specific_libs}" = yes; then
894a47b4 2469 slibdir='$(libsubdir)'
bbdcab13 2470elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2471 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
894a47b4 2472else
2473 slibdir='$(libdir)'
2474fi
cd9a469c 2475fi
2476
894a47b4 2477
2478
a2655af1 2479# Command-line options.
2480# Very limited version of AC_MAINTAINER_MODE.
cd9a469c 2481# Check whether --enable-maintainer-mode was given.
2482if test "${enable_maintainer_mode+set}" = set; then :
2483 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
a2655af1 2484 yes) MAINT='' ;;
2485 no) MAINT='#' ;;
f00f02a3 2486 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
a2655af1 2487 esac
2488 maintainer_mode=${enableval}
2489else
2490 MAINT='#'
cd9a469c 2491fi
2492
a2655af1 2493
894a47b4 2494# Find a good install program. We prefer a C program (faster),
2495# so one script is as good as another. But avoid the broken or
2496# incompatible versions:
2497# SysV /etc/install, /usr/sbin/install
2498# SunOS /usr/etc/install
2499# IRIX /sbin/install
2500# AIX /bin/install
2501# AmigaOS /C/install, which installs bootblocks on floppy discs
2502# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2503# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2504# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2505# OS/2's system install, which has a completely different semantic
2506# ./install, which can be erroneously created by make from ./install.sh.
cd9a469c 2507# Reject install programs that cannot install multiple files.
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2509$as_echo_n "checking for a BSD-compatible install... " >&6; }
894a47b4 2510if test -z "$INSTALL"; then
f00f02a3 2511if ${ac_cv_path_install+:} false; then :
cd9a469c 2512 $as_echo_n "(cached) " >&6
894a47b4 2513else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
cd9a469c 2519 # Account for people who put trailing slashes in PATH elements.
2520case $as_dir/ in #((
2521 ./ | .// | /[cC]/* | \
894a47b4 2522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2523 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
894a47b4 2524 /usr/ucb/* ) ;;
2525 *)
2526 # OSF1 and SCO ODT 3.0 have their own names for install.
2527 # Don't use installbsd from OSF since it installs stuff as root
2528 # by default.
2529 for ac_prog in ginstall scoinst install; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2531 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
894a47b4 2532 if test $ac_prog = install &&
2533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # AIX install. It has an incompatible calling convention.
2535 :
2536 elif test $ac_prog = install &&
2537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # program-specific install script used by HP pwplus--don't use.
2539 :
2540 else
cd9a469c 2541 rm -rf conftest.one conftest.two conftest.dir
2542 echo one > conftest.one
2543 echo two > conftest.two
2544 mkdir conftest.dir
2545 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2546 test -s conftest.one && test -s conftest.two &&
2547 test -s conftest.dir/conftest.one &&
2548 test -s conftest.dir/conftest.two
2549 then
2550 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2551 break 3
2552 fi
894a47b4 2553 fi
2554 fi
2555 done
2556 done
2557 ;;
2558esac
894a47b4 2559
cd9a469c 2560 done
2561IFS=$as_save_IFS
2562
2563rm -rf conftest.one conftest.two conftest.dir
894a47b4 2564
2565fi
2566 if test "${ac_cv_path_install+set}" = set; then
2567 INSTALL=$ac_cv_path_install
2568 else
cd9a469c 2569 # As a last resort, use the slow shell script. Don't cache a
2570 # value for INSTALL within a source directory, because that will
894a47b4 2571 # break other packages using the cache if that directory is
cd9a469c 2572 # removed, or if the value is a relative name.
894a47b4 2573 INSTALL=$ac_install_sh
2574 fi
2575fi
cd9a469c 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2577$as_echo "$INSTALL" >&6; }
894a47b4 2578
2579# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2580# It thinks the first close brace ends the variable substitution.
2581test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2582
2583test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2584
2585test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2586
2587
2588for ac_prog in gawk mawk nawk awk
2589do
2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2591set dummy $ac_prog; ac_word=$2
cd9a469c 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2594if ${ac_cv_prog_AWK+:} false; then :
cd9a469c 2595 $as_echo_n "(cached) " >&6
894a47b4 2596else
2597 if test -n "$AWK"; then
2598 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2599else
2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601for as_dir in $PATH
2602do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
cd9a469c 2605 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 2607 ac_cv_prog_AWK="$ac_prog"
cd9a469c 2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 2609 break 2
2610 fi
2611done
cd9a469c 2612 done
2613IFS=$as_save_IFS
894a47b4 2614
2615fi
2616fi
2617AWK=$ac_cv_prog_AWK
2618if test -n "$AWK"; then
cd9a469c 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2620$as_echo "$AWK" >&6; }
894a47b4 2621else
cd9a469c 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623$as_echo "no" >&6; }
894a47b4 2624fi
2625
cd9a469c 2626
894a47b4 2627 test -n "$AWK" && break
2628done
2629
2630# We need awk; bail out if it's missing.
2631case ${AWK} in
f00f02a3 2632 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
894a47b4 2633esac
2634
894a47b4 2635
2636 case ${build_alias} in
2637 "") build_noncanonical=${build} ;;
2638 *) build_noncanonical=${build_alias} ;;
2639esac
2640
2641 case ${host_alias} in
2642 "") host_noncanonical=${build_noncanonical} ;;
2643 *) host_noncanonical=${host_alias} ;;
2644esac
2645
2646
2647
f534b3b3 2648 case ${target_alias} in
2649 "") target_noncanonical=${host_noncanonical} ;;
2650 *) target_noncanonical=${target_alias} ;;
2651esac
2652
2653
abfe0c5b 2654
2655
f534b3b3 2656# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2657# have matching libraries, they should use host libraries: Makefile.tpl
2658# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2659# However, they still use the build modules, because the corresponding
2660# host modules (e.g. bison) are only built for the host when bootstrap
2661# finishes. So:
2662# - build_subdir is where we find build modules, and never changes.
2663# - build_libsubdir is where we find build libraries, and can be overridden.
2664
2665# Prefix 'build-' so this never conflicts with target_subdir.
2666build_subdir="build-${build_noncanonical}"
2667
cd9a469c 2668# Check whether --with-build-libsubdir was given.
2669if test "${with_build_libsubdir+set}" = set; then :
2670 withval=$with_build_libsubdir; build_libsubdir="$withval"
f534b3b3 2671else
2672 build_libsubdir="$build_subdir"
cd9a469c 2673fi
2674
f534b3b3 2675# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2676if ( test $srcdir = . && test -d gcc ) \
2677 || test -d $srcdir/../host-${host_noncanonical}; then
2678 host_subdir="host-${host_noncanonical}"
2679else
2680 host_subdir=.
2681fi
2682# No prefix.
2683target_subdir=${target_noncanonical}
2684
894a47b4 2685
abfe0c5b 2686# Calculate toolexeclibdir
2687# Also toolexecdir, though it's only used in toolexeclibdir
2688case ${version_specific_libs} in
2689 yes)
2690 # Need the gcc compiler version to know where to install libraries
2691 # and header files if --enable-version-specific-runtime-libs option
2692 # is selected.
2693 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2694 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2695 ;;
2696 no)
2697 if test -n "$with_cross_host" &&
2698 test x"$with_cross_host" != x"no"; then
2699 # Install a library built with a cross compiler in tooldir, not libdir.
2700 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2701 toolexeclibdir='$(toolexecdir)/lib'
2702 else
2703 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2704 toolexeclibdir='$(libdir)'
2705 fi
2706 multi_os_directory=`$CC -print-multi-os-directory`
2707 case $multi_os_directory in
2708 .) ;; # Avoid trailing /.
2709 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2710 esac
2711 ;;
2712esac
2713
2714
2715
894a47b4 2716if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2718set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2721if ${ac_cv_prog_AR+:} false; then :
cd9a469c 2722 $as_echo_n "(cached) " >&6
894a47b4 2723else
2724 if test -n "$AR"; then
2725 ac_cv_prog_AR="$AR" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
cd9a469c 2732 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 2734 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 2736 break 2
2737 fi
2738done
cd9a469c 2739 done
2740IFS=$as_save_IFS
894a47b4 2741
2742fi
2743fi
2744AR=$ac_cv_prog_AR
2745if test -n "$AR"; then
cd9a469c 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2747$as_echo "$AR" >&6; }
894a47b4 2748else
cd9a469c 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
894a47b4 2751fi
2752
cd9a469c 2753
894a47b4 2754fi
2755if test -z "$ac_cv_prog_AR"; then
2756 ac_ct_AR=$AR
2757 # Extract the first word of "ar", so it can be a program name with args.
2758set dummy ar; ac_word=$2
cd9a469c 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2761if ${ac_cv_prog_ac_ct_AR+:} false; then :
cd9a469c 2762 $as_echo_n "(cached) " >&6
894a47b4 2763else
2764 if test -n "$ac_ct_AR"; then
2765 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2766else
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
cd9a469c 2772 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 2774 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 2776 break 2
2777 fi
2778done
cd9a469c 2779 done
2780IFS=$as_save_IFS
894a47b4 2781
2782fi
2783fi
2784ac_ct_AR=$ac_cv_prog_ac_ct_AR
2785if test -n "$ac_ct_AR"; then
cd9a469c 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2787$as_echo "$ac_ct_AR" >&6; }
894a47b4 2788else
cd9a469c 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790$as_echo "no" >&6; }
894a47b4 2791fi
2792
cd9a469c 2793 if test "x$ac_ct_AR" = x; then
2794 AR=""
2795 else
2796 case $cross_compiling:$ac_tool_warned in
2797yes:)
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2800ac_tool_warned=yes ;;
2801esac
2802 AR=$ac_ct_AR
2803 fi
894a47b4 2804else
2805 AR="$ac_cv_prog_AR"
2806fi
2807
2808if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2810set dummy ${ac_tool_prefix}lipo; ac_word=$2
cd9a469c 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2813if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 2814 $as_echo_n "(cached) " >&6
894a47b4 2815else
2816 if test -n "$LIPO"; then
2817 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
cd9a469c 2824 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 2826 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cd9a469c 2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 2828 break 2
2829 fi
2830done
cd9a469c 2831 done
2832IFS=$as_save_IFS
894a47b4 2833
2834fi
2835fi
2836LIPO=$ac_cv_prog_LIPO
2837if test -n "$LIPO"; then
cd9a469c 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2839$as_echo "$LIPO" >&6; }
894a47b4 2840else
cd9a469c 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842$as_echo "no" >&6; }
894a47b4 2843fi
2844
cd9a469c 2845
894a47b4 2846fi
2847if test -z "$ac_cv_prog_LIPO"; then
2848 ac_ct_LIPO=$LIPO
2849 # Extract the first word of "lipo", so it can be a program name with args.
2850set dummy lipo; ac_word=$2
cd9a469c 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2853if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cd9a469c 2854 $as_echo_n "(cached) " >&6
894a47b4 2855else
2856 if test -n "$ac_ct_LIPO"; then
2857 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
cd9a469c 2864 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 2866 ac_cv_prog_ac_ct_LIPO="lipo"
cd9a469c 2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 2868 break 2
2869 fi
2870done
cd9a469c 2871 done
2872IFS=$as_save_IFS
894a47b4 2873
894a47b4 2874fi
2875fi
2876ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2877if test -n "$ac_ct_LIPO"; then
cd9a469c 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2879$as_echo "$ac_ct_LIPO" >&6; }
894a47b4 2880else
cd9a469c 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882$as_echo "no" >&6; }
894a47b4 2883fi
2884
cd9a469c 2885 if test "x$ac_ct_LIPO" = x; then
2886 LIPO=":"
2887 else
2888 case $cross_compiling:$ac_tool_warned in
2889yes:)
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2892ac_tool_warned=yes ;;
2893esac
2894 LIPO=$ac_ct_LIPO
2895 fi
894a47b4 2896else
2897 LIPO="$ac_cv_prog_LIPO"
2898fi
2899
2900if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2902set dummy ${ac_tool_prefix}nm; ac_word=$2
cd9a469c 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2905if ${ac_cv_prog_NM+:} false; then :
cd9a469c 2906 $as_echo_n "(cached) " >&6
894a47b4 2907else
2908 if test -n "$NM"; then
2909 ac_cv_prog_NM="$NM" # Let the user override the test.
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
cd9a469c 2916 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 2918 ac_cv_prog_NM="${ac_tool_prefix}nm"
cd9a469c 2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 2920 break 2
2921 fi
2922done
cd9a469c 2923 done
2924IFS=$as_save_IFS
894a47b4 2925
2926fi
2927fi
2928NM=$ac_cv_prog_NM
2929if test -n "$NM"; then
cd9a469c 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2931$as_echo "$NM" >&6; }
894a47b4 2932else
cd9a469c 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
894a47b4 2935fi
2936
cd9a469c 2937
894a47b4 2938fi
2939if test -z "$ac_cv_prog_NM"; then
2940 ac_ct_NM=$NM
2941 # Extract the first word of "nm", so it can be a program name with args.
2942set dummy nm; ac_word=$2
cd9a469c 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2945if ${ac_cv_prog_ac_ct_NM+:} false; then :
cd9a469c 2946 $as_echo_n "(cached) " >&6
894a47b4 2947else
2948 if test -n "$ac_ct_NM"; then
2949 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
cd9a469c 2956 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 2958 ac_cv_prog_ac_ct_NM="nm"
cd9a469c 2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 2960 break 2
2961 fi
2962done
cd9a469c 2963 done
2964IFS=$as_save_IFS
894a47b4 2965
2966fi
2967fi
2968ac_ct_NM=$ac_cv_prog_ac_ct_NM
2969if test -n "$ac_ct_NM"; then
cd9a469c 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2971$as_echo "$ac_ct_NM" >&6; }
894a47b4 2972else
cd9a469c 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
894a47b4 2975fi
2976
cd9a469c 2977 if test "x$ac_ct_NM" = x; then
2978 NM=""
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981yes:)
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984ac_tool_warned=yes ;;
2985esac
2986 NM=$ac_ct_NM
2987 fi
894a47b4 2988else
2989 NM="$ac_cv_prog_NM"
2990fi
2991
2992if test -n "$ac_tool_prefix"; then
2993 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2994set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2997if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 2998 $as_echo_n "(cached) " >&6
894a47b4 2999else
3000 if test -n "$RANLIB"; then
3001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3002else
3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH
3005do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
cd9a469c 3008 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 3010 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 3012 break 2
3013 fi
3014done
cd9a469c 3015 done
3016IFS=$as_save_IFS
894a47b4 3017
3018fi
3019fi
3020RANLIB=$ac_cv_prog_RANLIB
3021if test -n "$RANLIB"; then
cd9a469c 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3023$as_echo "$RANLIB" >&6; }
894a47b4 3024else
cd9a469c 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026$as_echo "no" >&6; }
894a47b4 3027fi
3028
cd9a469c 3029
894a47b4 3030fi
3031if test -z "$ac_cv_prog_RANLIB"; then
3032 ac_ct_RANLIB=$RANLIB
3033 # Extract the first word of "ranlib", so it can be a program name with args.
3034set dummy ranlib; ac_word=$2
cd9a469c 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3037if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cd9a469c 3038 $as_echo_n "(cached) " >&6
894a47b4 3039else
3040 if test -n "$ac_ct_RANLIB"; then
3041 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3042else
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
cd9a469c 3048 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 3050 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 3052 break 2
3053 fi
3054done
cd9a469c 3055 done
3056IFS=$as_save_IFS
894a47b4 3057
894a47b4 3058fi
3059fi
3060ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3061if test -n "$ac_ct_RANLIB"; then
cd9a469c 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3063$as_echo "$ac_ct_RANLIB" >&6; }
894a47b4 3064else
cd9a469c 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066$as_echo "no" >&6; }
894a47b4 3067fi
3068
cd9a469c 3069 if test "x$ac_ct_RANLIB" = x; then
3070 RANLIB=":"
3071 else
3072 case $cross_compiling:$ac_tool_warned in
3073yes:)
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076ac_tool_warned=yes ;;
3077esac
3078 RANLIB=$ac_ct_RANLIB
3079 fi
894a47b4 3080else
3081 RANLIB="$ac_cv_prog_RANLIB"
3082fi
3083
3084if test -n "$ac_tool_prefix"; then
3085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3086set dummy ${ac_tool_prefix}strip; ac_word=$2
cd9a469c 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3089if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 3090 $as_echo_n "(cached) " >&6
894a47b4 3091else
3092 if test -n "$STRIP"; then
3093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
cd9a469c 3100 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 3102 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cd9a469c 3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 3104 break 2
3105 fi
3106done
cd9a469c 3107 done
3108IFS=$as_save_IFS
894a47b4 3109
3110fi
3111fi
3112STRIP=$ac_cv_prog_STRIP
3113if test -n "$STRIP"; then
cd9a469c 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3115$as_echo "$STRIP" >&6; }
894a47b4 3116else
cd9a469c 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
894a47b4 3119fi
3120
cd9a469c 3121
894a47b4 3122fi
3123if test -z "$ac_cv_prog_STRIP"; then
3124 ac_ct_STRIP=$STRIP
3125 # Extract the first word of "strip", so it can be a program name with args.
3126set dummy strip; ac_word=$2
cd9a469c 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3129if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cd9a469c 3130 $as_echo_n "(cached) " >&6
894a47b4 3131else
3132 if test -n "$ac_ct_STRIP"; then
3133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3134else
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
cd9a469c 3140 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 3142 ac_cv_prog_ac_ct_STRIP="strip"
cd9a469c 3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 3144 break 2
3145 fi
3146done
cd9a469c 3147 done
3148IFS=$as_save_IFS
894a47b4 3149
894a47b4 3150fi
3151fi
3152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3153if test -n "$ac_ct_STRIP"; then
cd9a469c 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3155$as_echo "$ac_ct_STRIP" >&6; }
894a47b4 3156else
cd9a469c 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
894a47b4 3159fi
3160
cd9a469c 3161 if test "x$ac_ct_STRIP" = x; then
3162 STRIP=":"
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165yes:)
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168ac_tool_warned=yes ;;
3169esac
3170 STRIP=$ac_ct_STRIP
3171 fi
894a47b4 3172else
3173 STRIP="$ac_cv_prog_STRIP"
3174fi
3175
cd9a469c 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3177$as_echo_n "checking whether ln -s works... " >&6; }
894a47b4 3178LN_S=$as_ln_s
3179if test "$LN_S" = "ln -s"; then
cd9a469c 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181$as_echo "yes" >&6; }
894a47b4 3182else
cd9a469c 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3184$as_echo "no, using $LN_S" >&6; }
894a47b4 3185fi
3186
3187
3188
3189ac_ext=c
3190ac_cpp='$CPP $CPPFLAGS'
3191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194if test -n "$ac_tool_prefix"; then
3195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3196set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3199if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3200 $as_echo_n "(cached) " >&6
894a47b4 3201else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204else
3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206for as_dir in $PATH
3207do
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
cd9a469c 3210 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 3212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 3214 break 2
3215 fi
3216done
cd9a469c 3217 done
3218IFS=$as_save_IFS
894a47b4 3219
3220fi
3221fi
3222CC=$ac_cv_prog_CC
3223if test -n "$CC"; then
cd9a469c 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225$as_echo "$CC" >&6; }
894a47b4 3226else
cd9a469c 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228$as_echo "no" >&6; }
894a47b4 3229fi
3230
cd9a469c 3231
894a47b4 3232fi
3233if test -z "$ac_cv_prog_CC"; then
3234 ac_ct_CC=$CC
3235 # Extract the first word of "gcc", so it can be a program name with args.
3236set dummy gcc; ac_word=$2
cd9a469c 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3239if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 3240 $as_echo_n "(cached) " >&6
894a47b4 3241else
3242 if test -n "$ac_ct_CC"; then
3243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3244else
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
cd9a469c 3250 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 3252 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 3254 break 2
3255 fi
3256done
cd9a469c 3257 done
3258IFS=$as_save_IFS
894a47b4 3259
3260fi
3261fi
3262ac_ct_CC=$ac_cv_prog_ac_ct_CC
3263if test -n "$ac_ct_CC"; then
cd9a469c 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3265$as_echo "$ac_ct_CC" >&6; }
894a47b4 3266else
cd9a469c 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268$as_echo "no" >&6; }
894a47b4 3269fi
3270
cd9a469c 3271 if test "x$ac_ct_CC" = x; then
3272 CC=""
3273 else
3274 case $cross_compiling:$ac_tool_warned in
3275yes:)
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3278ac_tool_warned=yes ;;
3279esac
3280 CC=$ac_ct_CC
3281 fi
894a47b4 3282else
3283 CC="$ac_cv_prog_CC"
3284fi
3285
3286if test -z "$CC"; then
cd9a469c 3287 if test -n "$ac_tool_prefix"; then
3288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
894a47b4 3289set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3292if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3293 $as_echo_n "(cached) " >&6
894a47b4 3294else
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC="$CC" # Let the user override the test.
3297else
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
cd9a469c 3303 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 3305 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 3307 break 2
3308 fi
3309done
cd9a469c 3310 done
3311IFS=$as_save_IFS
894a47b4 3312
3313fi
3314fi
3315CC=$ac_cv_prog_CC
3316if test -n "$CC"; then
cd9a469c 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318$as_echo "$CC" >&6; }
bbdcab13 3319else
cd9a469c 3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321$as_echo "no" >&6; }
bbdcab13 3322fi
3323
bbdcab13 3324
cd9a469c 3325 fi
894a47b4 3326fi
3327if test -z "$CC"; then
3328 # Extract the first word of "cc", so it can be a program name with args.
3329set dummy cc; ac_word=$2
cd9a469c 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3332if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3333 $as_echo_n "(cached) " >&6
894a47b4 3334else
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC="$CC" # Let the user override the test.
3337else
3338 ac_prog_rejected=no
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
cd9a469c 3344 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 3346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3347 ac_prog_rejected=yes
3348 continue
3349 fi
3350 ac_cv_prog_CC="cc"
cd9a469c 3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 3352 break 2
3353 fi
3354done
cd9a469c 3355 done
3356IFS=$as_save_IFS
894a47b4 3357
3358if test $ac_prog_rejected = yes; then
3359 # We found a bogon in the path, so make sure we never use it.
3360 set dummy $ac_cv_prog_CC
3361 shift
3362 if test $# != 0; then
3363 # We chose a different compiler from the bogus one.
3364 # However, it has the same basename, so the bogon will be chosen
3365 # first if we set CC to just the basename; use the full file name.
3366 shift
3367 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3368 fi
3369fi
3370fi
3371fi
3372CC=$ac_cv_prog_CC
3373if test -n "$CC"; then
cd9a469c 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375$as_echo "$CC" >&6; }
894a47b4 3376else
cd9a469c 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
894a47b4 3379fi
3380
cd9a469c 3381
894a47b4 3382fi
3383if test -z "$CC"; then
3384 if test -n "$ac_tool_prefix"; then
cd9a469c 3385 for ac_prog in cl.exe
894a47b4 3386 do
3387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3388set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3391if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3392 $as_echo_n "(cached) " >&6
894a47b4 3393else
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396else
3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398for as_dir in $PATH
3399do
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
cd9a469c 3402 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 3404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 3406 break 2
3407 fi
3408done
cd9a469c 3409 done
3410IFS=$as_save_IFS
894a47b4 3411
3412fi
3413fi
3414CC=$ac_cv_prog_CC
3415if test -n "$CC"; then
cd9a469c 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417$as_echo "$CC" >&6; }
894a47b4 3418else
cd9a469c 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420$as_echo "no" >&6; }
894a47b4 3421fi
3422
cd9a469c 3423
894a47b4 3424 test -n "$CC" && break
3425 done
3426fi
3427if test -z "$CC"; then
3428 ac_ct_CC=$CC
cd9a469c 3429 for ac_prog in cl.exe
894a47b4 3430do
3431 # Extract the first word of "$ac_prog", so it can be a program name with args.
3432set dummy $ac_prog; ac_word=$2
cd9a469c 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3435if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 3436 $as_echo_n "(cached) " >&6
894a47b4 3437else
3438 if test -n "$ac_ct_CC"; then
3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
cd9a469c 3446 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894a47b4 3448 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
894a47b4 3450 break 2
3451 fi
3452done
cd9a469c 3453 done
3454IFS=$as_save_IFS
894a47b4 3455
3456fi
3457fi
3458ac_ct_CC=$ac_cv_prog_ac_ct_CC
3459if test -n "$ac_ct_CC"; then
cd9a469c 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3461$as_echo "$ac_ct_CC" >&6; }
894a47b4 3462else
cd9a469c 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464$as_echo "no" >&6; }
c4533507 3465fi
894a47b4 3466
cd9a469c 3467
f3b403a3 3468 test -n "$ac_ct_CC" && break
3469done
3470
3471 if test "x$ac_ct_CC" = x; then
3472 CC=""
3473 else
3474 case $cross_compiling:$ac_tool_warned in
3475yes:)
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3478ac_tool_warned=yes ;;
3479esac
3480 CC=$ac_ct_CC
3481 fi
3482fi
3483
3484fi
3485
3486
3487test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3489as_fn_error $? "no acceptable C compiler found in \$PATH
3490See \`config.log' for more details" "$LINENO" 5; }
f3b403a3 3491
3492# Provide some information about the compiler.
3493$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3494set X $ac_compile
3495ac_compiler=$2
3496for ac_option in --version -v -V -qversion; do
3497 { { ac_try="$ac_compiler $ac_option >&5"
3498case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501esac
3502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503$as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3505 ac_status=$?
3506 if test -s conftest.err; then
3507 sed '10a\
3508... rest of stderr output deleted ...
3509 10q' conftest.err >conftest.er1
3510 cat conftest.er1 >&5
f3b403a3 3511 fi
f00f02a3 3512 rm -f conftest.er1 conftest.err
f3b403a3 3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }
3515done
3516
3517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h. */
3519
3520int
3521main ()
3522{
3523
3524 ;
3525 return 0;
3526}
3527_ACEOF
3528# FIXME: Cleanup?
3529if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3530 (eval $ac_link) 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 gcc_no_link=no
3535else
3536 gcc_no_link=yes
3537fi
3538if test x$gcc_no_link = xyes; then
3539 # Setting cross_compile will disable run tests; it will
3540 # also disable AC_CHECK_FILE but that's generally
3541 # correct if we can't link.
3542 cross_compiling=yes
3543 EXEEXT=
3544else
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h. */
3547
3548int
3549main ()
3550{
3551
3552 ;
3553 return 0;
3554}
3555_ACEOF
3556ac_clean_files_save=$ac_clean_files
f00f02a3 3557ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
f3b403a3 3558# Try to create an executable without -o first, disregard a.out.
3559# It will help us diagnose broken compilers, and finding out an intuition
3560# of exeext.
f00f02a3 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3562$as_echo_n "checking whether the C compiler works... " >&6; }
f3b403a3 3563ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3564
3565# The possible output files:
3566ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3567
3568ac_rmfiles=
3569for ac_file in $ac_files
3570do
3571 case $ac_file in
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3573 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3574 esac
3575done
3576rm -f $ac_rmfiles
3577
3578if { { ac_try="$ac_link_default"
3579case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584$as_echo "$ac_try_echo"; } >&5
3585 (eval "$ac_link_default") 2>&5
3586 ac_status=$?
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }; then :
3589 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3590# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3591# in a Makefile. We should not override ac_cv_exeext if it was cached,
3592# so that the user can short-circuit this test for compilers unknown to
3593# Autoconf.
3594for ac_file in $ac_files ''
3595do
3596 test -f "$ac_file" || continue
3597 case $ac_file in
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3599 ;;
3600 [ab].out )
3601 # We found the default executable, but exeext='' is most
3602 # certainly right.
3603 break;;
3604 *.* )
3605 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3606 then :; else
3607 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3608 fi
3609 # We set ac_cv_exeext here because the later test for it is not
3610 # safe: cross compilers may not add the suffix if given an `-o'
3611 # argument, so we may need to know it at that point already.
3612 # Even if this section looks crufty: it has the advantage of
3613 # actually working.
3614 break;;
3615 * )
3616 break;;
3617 esac
3618done
3619test "$ac_cv_exeext" = no && ac_cv_exeext=
3620
3621else
3622 ac_file=''
3623fi
f3b403a3 3624if test -z "$ac_file"; then :
f00f02a3 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626$as_echo "no" >&6; }
3627$as_echo "$as_me: failed program was:" >&5
f3b403a3 3628sed 's/^/| /' conftest.$ac_ext >&5
3629
3630{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3632as_fn_error 77 "C compiler cannot create executables
3633See \`config.log' for more details" "$LINENO" 5; }
3634else
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3636$as_echo "yes" >&6; }
f3b403a3 3637fi
f00f02a3 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3639$as_echo_n "checking for C compiler default output file name... " >&6; }
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3641$as_echo "$ac_file" >&6; }
f3b403a3 3642ac_exeext=$ac_cv_exeext
3643
f00f02a3 3644rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
f3b403a3 3645ac_clean_files=$ac_clean_files_save
f3b403a3 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3647$as_echo_n "checking for suffix of executables... " >&6; }
3648if { { ac_try="$ac_link"
3649case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
c4533507 3652esac
f3b403a3 3653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654$as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_link") 2>&5
3656 ac_status=$?
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; then :
3659 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3660# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3661# work properly (i.e., refer to `conftest.exe'), while it won't with
3662# `rm'.
3663for ac_file in conftest.exe conftest conftest.*; do
3664 test -f "$ac_file" || continue
3665 case $ac_file in
3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3667 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3668 break;;
3669 * ) break;;
3670 esac
3671done
3672else
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3675as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3676See \`config.log' for more details" "$LINENO" 5; }
894a47b4 3677fi
f00f02a3 3678rm -f conftest conftest$ac_cv_exeext
f3b403a3 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3680$as_echo "$ac_cv_exeext" >&6; }
894a47b4 3681
f3b403a3 3682rm -f conftest.$ac_ext
3683EXEEXT=$ac_cv_exeext
3684ac_exeext=$EXEEXT
f00f02a3 3685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h. */
3687#include <stdio.h>
3688int
3689main ()
3690{
3691FILE *f = fopen ("conftest.out", "w");
3692 return ferror (f) || fclose (f) != 0;
3693
3694 ;
3695 return 0;
3696}
3697_ACEOF
3698ac_clean_files="$ac_clean_files conftest.out"
3699# Check that the compiler produces executables we can run. If not, either
3700# the compiler is broken, or we cross compile.
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3702$as_echo_n "checking whether we are cross compiling... " >&6; }
3703if test "$cross_compiling" != yes; then
3704 { { ac_try="$ac_link"
3705case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708esac
3709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710$as_echo "$ac_try_echo"; } >&5
3711 (eval "$ac_link") 2>&5
3712 ac_status=$?
3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test $ac_status = 0; }
3715 if { ac_try='./conftest$ac_cv_exeext'
3716 { { case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719esac
3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721$as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_try") 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; }; then
3726 cross_compiling=no
3727 else
3728 if test "$cross_compiling" = maybe; then
3729 cross_compiling=yes
3730 else
3731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733as_fn_error $? "cannot run C compiled programs.
3734If you meant to cross compile, use \`--host'.
3735See \`config.log' for more details" "$LINENO" 5; }
3736 fi
3737 fi
3738fi
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3740$as_echo "$cross_compiling" >&6; }
3741
3742rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3743ac_clean_files=$ac_clean_files_save
894a47b4 3744fi
f3b403a3 3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3746$as_echo_n "checking for suffix of object files... " >&6; }
f00f02a3 3747if ${ac_cv_objext+:} false; then :
f3b403a3 3748 $as_echo_n "(cached) " >&6
3749else
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h. */
894a47b4 3752
f3b403a3 3753int
3754main ()
3755{
894a47b4 3756
f3b403a3 3757 ;
3758 return 0;
3759}
3760_ACEOF
3761rm -f conftest.o conftest.obj
3762if { { ac_try="$ac_compile"
cd9a469c 3763case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766esac
3767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768$as_echo "$ac_try_echo"; } >&5
f3b403a3 3769 (eval "$ac_compile") 2>&5
894a47b4 3770 ac_status=$?
cd9a469c 3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f3b403a3 3772 test $ac_status = 0; }; then :
3773 for ac_file in conftest.o conftest.obj conftest.*; do
3774 test -f "$ac_file" || continue;
3775 case $ac_file in
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3778 break;;
3779 esac
894a47b4 3780done
f3b403a3 3781else
3782 $as_echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
894a47b4 3784
f3b403a3 3785{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3787as_fn_error $? "cannot compute suffix of object files: cannot compile
3788See \`config.log' for more details" "$LINENO" 5; }
f3b403a3 3789fi
3790rm -f conftest.$ac_cv_objext conftest.$ac_ext
3791fi
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3793$as_echo "$ac_cv_objext" >&6; }
3794OBJEXT=$ac_cv_objext
3795ac_objext=$OBJEXT
cd9a469c 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3797$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 3798if ${ac_cv_c_compiler_gnu+:} false; then :
cd9a469c 3799 $as_echo_n "(cached) " >&6
894a47b4 3800else
cd9a469c 3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
894a47b4 3802/* end confdefs.h. */
3803
3804int
3805main ()
3806{
3807#ifndef __GNUC__
3808 choke me
3809#endif
3810
3811 ;
3812 return 0;
3813}
3814_ACEOF
cd9a469c 3815if ac_fn_c_try_compile "$LINENO"; then :
894a47b4 3816 ac_compiler_gnu=yes
3817else
cd9a469c 3818 ac_compiler_gnu=no
894a47b4 3819fi
cd9a469c 3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
894a47b4 3821ac_cv_c_compiler_gnu=$ac_compiler_gnu
3822
3823fi
cd9a469c 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3825$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3826if test $ac_compiler_gnu = yes; then
3827 GCC=yes
3828else
3829 GCC=
3830fi
894a47b4 3831ac_test_CFLAGS=${CFLAGS+set}
3832ac_save_CFLAGS=$CFLAGS
cd9a469c 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3834$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 3835if ${ac_cv_prog_cc_g+:} false; then :
cd9a469c 3836 $as_echo_n "(cached) " >&6
3837else
3838 ac_save_c_werror_flag=$ac_c_werror_flag
3839 ac_c_werror_flag=yes
3840 ac_cv_prog_cc_g=no
3841 CFLAGS="-g"
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
894a47b4 3843/* end confdefs.h. */
3844
3845int
3846main ()
3847{
3848
3849 ;
3850 return 0;
3851}
3852_ACEOF
cd9a469c 3853if ac_fn_c_try_compile "$LINENO"; then :
894a47b4 3854 ac_cv_prog_cc_g=yes
3855else
cd9a469c 3856 CFLAGS=""
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h. */
3859
3860int
3861main ()
3862{
3863
3864 ;
3865 return 0;
3866}
3867_ACEOF
3868if ac_fn_c_try_compile "$LINENO"; then :
3869
3870else
3871 ac_c_werror_flag=$ac_save_c_werror_flag
3872 CFLAGS="-g"
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h. */
3875
3876int
3877main ()
3878{
894a47b4 3879
cd9a469c 3880 ;
3881 return 0;
3882}
3883_ACEOF
3884if ac_fn_c_try_compile "$LINENO"; then :
3885 ac_cv_prog_cc_g=yes
3886fi
3887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
894a47b4 3888fi
cd9a469c 3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
894a47b4 3890fi
cd9a469c 3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3895$as_echo "$ac_cv_prog_cc_g" >&6; }
894a47b4 3896if test "$ac_test_CFLAGS" = set; then
3897 CFLAGS=$ac_save_CFLAGS
3898elif test $ac_cv_prog_cc_g = yes; then
3899 if test "$GCC" = yes; then
3900 CFLAGS="-g -O2"
3901 else
3902 CFLAGS="-g"
3903 fi
3904else
3905 if test "$GCC" = yes; then
3906 CFLAGS="-O2"
3907 else
3908 CFLAGS=
3909 fi
3910fi
cd9a469c 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3912$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 3913if ${ac_cv_prog_cc_c89+:} false; then :
cd9a469c 3914 $as_echo_n "(cached) " >&6
894a47b4 3915else
cd9a469c 3916 ac_cv_prog_cc_c89=no
894a47b4 3917ac_save_CC=$CC
cd9a469c 3918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
894a47b4 3919/* end confdefs.h. */
3920#include <stdarg.h>
3921#include <stdio.h>
f00f02a3 3922struct stat;
894a47b4 3923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3924struct buf { int x; };
3925FILE * (*rcsopen) (struct buf *, struct stat *, int);
3926static char *e (p, i)
3927 char **p;
3928 int i;
3929{
3930 return p[i];
3931}
3932static char *f (char * (*g) (char **, int), char **p, ...)
3933{
3934 char *s;
3935 va_list v;
3936 va_start (v,p);
3937 s = g (p, va_arg (v,int));
3938 va_end (v);
3939 return s;
3940}
3941
3942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3943 function prototypes and stuff, but not '\xHH' hex character constants.
3944 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 3945 as 'x'. The following induces an error, until -std is added to get
894a47b4 3946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3947 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 3948 that's true only with -std. */
894a47b4 3949int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3950
cd9a469c 3951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3952 inside strings and character constants. */
3953#define FOO(x) 'x'
3954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3955
894a47b4 3956int test (int i, double x);
3957struct s1 {int (*f) (int a);};
3958struct s2 {int (*f) (double a);};
3959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3960int argc;
3961char **argv;
3962int
3963main ()
3964{
3965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3966 ;
3967 return 0;
3968}
3969_ACEOF
cd9a469c 3970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
894a47b4 3972do
3973 CC="$ac_save_CC $ac_arg"
cd9a469c 3974 if ac_fn_c_try_compile "$LINENO"; then :
3975 ac_cv_prog_cc_c89=$ac_arg
894a47b4 3976fi
cd9a469c 3977rm -f core conftest.err conftest.$ac_objext
3978 test "x$ac_cv_prog_cc_c89" != "xno" && break
894a47b4 3979done
cd9a469c 3980rm -f conftest.$ac_ext
894a47b4 3981CC=$ac_save_CC
3982
3983fi
cd9a469c 3984# AC_CACHE_VAL
3985case "x$ac_cv_prog_cc_c89" in
3986 x)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3988$as_echo "none needed" >&6; } ;;
3989 xno)
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3991$as_echo "unsupported" >&6; } ;;
894a47b4 3992 *)
cd9a469c 3993 CC="$CC $ac_cv_prog_cc_c89"
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
894a47b4 3996esac
cd9a469c 3997if test "x$ac_cv_prog_cc_c89" != xno; then :
894a47b4 3998
bbdcab13 3999fi
bbdcab13 4000
894a47b4 4001ac_ext=c
4002ac_cpp='$CPP $CPPFLAGS'
4003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
f3b403a3 4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4013$as_echo_n "checking how to run the C preprocessor... " >&6; }
4014# On Suns, sometimes $CPP names a directory.
4015if test -n "$CPP" && test -d "$CPP"; then
4016 CPP=
4017fi
4018if test -z "$CPP"; then
f00f02a3 4019 if ${ac_cv_prog_CPP+:} false; then :
f3b403a3 4020 $as_echo_n "(cached) " >&6
4021else
4022 # Double quotes because CPP needs to be expanded
4023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024 do
4025 ac_preproc_ok=false
4026for ac_c_preproc_warn_flag in '' yes
4027do
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h. */
4036#ifdef __STDC__
4037# include <limits.h>
4038#else
4039# include <assert.h>
4040#endif
4041 Syntax error
4042_ACEOF
4043if ac_fn_c_try_cpp "$LINENO"; then :
4044
4045else
4046 # Broken: fails on valid input.
4047continue
4048fi
f00f02a3 4049rm -f conftest.err conftest.i conftest.$ac_ext
f3b403a3 4050
4051 # OK, works on sane cases. Now check whether nonexistent headers
4052 # can be detected and how.
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h. */
4055#include <ac_nonexistent.h>
4056_ACEOF
4057if ac_fn_c_try_cpp "$LINENO"; then :
4058 # Broken: success on invalid input.
4059continue
4060else
4061 # Passes both tests.
4062ac_preproc_ok=:
4063break
4064fi
f00f02a3 4065rm -f conftest.err conftest.i conftest.$ac_ext
f3b403a3 4066
4067done
4068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 4069rm -f conftest.i conftest.err conftest.$ac_ext
f3b403a3 4070if $ac_preproc_ok; then :
4071 break
4072fi
4073
4074 done
4075 ac_cv_prog_CPP=$CPP
4076
4077fi
4078 CPP=$ac_cv_prog_CPP
4079else
4080 ac_cv_prog_CPP=$CPP
4081fi
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4083$as_echo "$CPP" >&6; }
4084ac_preproc_ok=false
4085for ac_c_preproc_warn_flag in '' yes
4086do
4087 # Use a header file that comes with gcc, so configuring glibc
4088 # with a fresh cross-compiler works.
4089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090 # <limits.h> exists even on freestanding compilers.
4091 # On the NeXT, cc -E runs the code through the compiler's parser,
4092 # not just through cpp. "Syntax error" is here to catch this case.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h. */
4095#ifdef __STDC__
4096# include <limits.h>
4097#else
4098# include <assert.h>
4099#endif
4100 Syntax error
4101_ACEOF
4102if ac_fn_c_try_cpp "$LINENO"; then :
4103
4104else
4105 # Broken: fails on valid input.
4106continue
4107fi
f00f02a3 4108rm -f conftest.err conftest.i conftest.$ac_ext
f3b403a3 4109
4110 # OK, works on sane cases. Now check whether nonexistent headers
4111 # can be detected and how.
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h. */
4114#include <ac_nonexistent.h>
4115_ACEOF
4116if ac_fn_c_try_cpp "$LINENO"; then :
4117 # Broken: success on invalid input.
4118continue
4119else
4120 # Passes both tests.
4121ac_preproc_ok=:
4122break
4123fi
f00f02a3 4124rm -f conftest.err conftest.i conftest.$ac_ext
f3b403a3 4125
4126done
4127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 4128rm -f conftest.i conftest.err conftest.$ac_ext
f3b403a3 4129if $ac_preproc_ok; then :
4130
4131else
4132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4134as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4135See \`config.log' for more details" "$LINENO" 5; }
f3b403a3 4136fi
4137
4138ac_ext=c
4139ac_cpp='$CPP $CPPFLAGS'
4140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
894a47b4 4144
4145ac_c_preproc_warn_flag=yes
4146
f3b403a3 4147
27182bcd 4148# Check whether --enable-largefile was given.
4149if test "${enable_largefile+set}" = set; then :
4150 enableval=$enable_largefile;
4151fi
4152
4153if test "$enable_largefile" != no; then
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4156$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
f00f02a3 4157if ${ac_cv_sys_largefile_CC+:} false; then :
27182bcd 4158 $as_echo_n "(cached) " >&6
4159else
4160 ac_cv_sys_largefile_CC=no
4161 if test "$GCC" != yes; then
4162 ac_save_CC=$CC
4163 while :; do
4164 # IRIX 6.2 and later do not support large files by default,
4165 # so use the C compiler's -n32 option if that helps.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h. */
4168#include <sys/types.h>
4169 /* Check that off_t can represent 2**63 - 1 correctly.
4170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4171 since some C++ compilers masquerading as C compilers
4172 incorrectly reject 9223372036854775807. */
4173#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4175 && LARGE_OFF_T % 2147483647 == 1)
4176 ? 1 : -1];
4177int
4178main ()
4179{
4180
4181 ;
4182 return 0;
4183}
4184_ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 break
4187fi
4188rm -f core conftest.err conftest.$ac_objext
4189 CC="$CC -n32"
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_sys_largefile_CC=' -n32'; break
4192fi
4193rm -f core conftest.err conftest.$ac_objext
4194 break
4195 done
4196 CC=$ac_save_CC
4197 rm -f conftest.$ac_ext
4198 fi
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4201$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4202 if test "$ac_cv_sys_largefile_CC" != no; then
4203 CC=$CC$ac_cv_sys_largefile_CC
4204 fi
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4207$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
f00f02a3 4208if ${ac_cv_sys_file_offset_bits+:} false; then :
27182bcd 4209 $as_echo_n "(cached) " >&6
4210else
4211 while :; do
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h. */
4214#include <sys/types.h>
4215 /* Check that off_t can represent 2**63 - 1 correctly.
4216 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4217 since some C++ compilers masquerading as C compilers
4218 incorrectly reject 9223372036854775807. */
4219#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4221 && LARGE_OFF_T % 2147483647 == 1)
4222 ? 1 : -1];
4223int
4224main ()
4225{
4226
4227 ;
4228 return 0;
4229}
4230_ACEOF
4231if ac_fn_c_try_compile "$LINENO"; then :
4232 ac_cv_sys_file_offset_bits=no; break
4233fi
4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236/* end confdefs.h. */
4237#define _FILE_OFFSET_BITS 64
4238#include <sys/types.h>
4239 /* Check that off_t can represent 2**63 - 1 correctly.
4240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4241 since some C++ compilers masquerading as C compilers
4242 incorrectly reject 9223372036854775807. */
4243#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4245 && LARGE_OFF_T % 2147483647 == 1)
4246 ? 1 : -1];
4247int
4248main ()
4249{
4250
4251 ;
4252 return 0;
4253}
4254_ACEOF
4255if ac_fn_c_try_compile "$LINENO"; then :
4256 ac_cv_sys_file_offset_bits=64; break
4257fi
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 ac_cv_sys_file_offset_bits=unknown
4260 break
4261done
4262fi
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4264$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4265case $ac_cv_sys_file_offset_bits in #(
4266 no | unknown) ;;
4267 *)
4268cat >>confdefs.h <<_ACEOF
4269#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4270_ACEOF
4271;;
4272esac
4273rm -rf conftest*
4274 if test $ac_cv_sys_file_offset_bits = unknown; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4276$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
f00f02a3 4277if ${ac_cv_sys_large_files+:} false; then :
27182bcd 4278 $as_echo_n "(cached) " >&6
4279else
4280 while :; do
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h. */
4283#include <sys/types.h>
4284 /* Check that off_t can represent 2**63 - 1 correctly.
4285 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4286 since some C++ compilers masquerading as C compilers
4287 incorrectly reject 9223372036854775807. */
4288#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4289 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4290 && LARGE_OFF_T % 2147483647 == 1)
4291 ? 1 : -1];
4292int
4293main ()
4294{
4295
4296 ;
4297 return 0;
4298}
4299_ACEOF
4300if ac_fn_c_try_compile "$LINENO"; then :
4301 ac_cv_sys_large_files=no; break
4302fi
4303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305/* end confdefs.h. */
4306#define _LARGE_FILES 1
4307#include <sys/types.h>
4308 /* Check that off_t can represent 2**63 - 1 correctly.
4309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4310 since some C++ compilers masquerading as C compilers
4311 incorrectly reject 9223372036854775807. */
4312#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4314 && LARGE_OFF_T % 2147483647 == 1)
4315 ? 1 : -1];
4316int
4317main ()
4318{
4319
4320 ;
4321 return 0;
4322}
4323_ACEOF
4324if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_sys_large_files=1; break
4326fi
4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 ac_cv_sys_large_files=unknown
4329 break
4330done
4331fi
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4333$as_echo "$ac_cv_sys_large_files" >&6; }
4334case $ac_cv_sys_large_files in #(
4335 no | unknown) ;;
4336 *)
4337cat >>confdefs.h <<_ACEOF
4338#define _LARGE_FILES $ac_cv_sys_large_files
4339_ACEOF
4340;;
4341esac
4342rm -rf conftest*
4343 fi
f00f02a3 4344
4345
27182bcd 4346fi
4347
4348
f3b403a3 4349
a23b9c51 4350# The cast to long int works around a bug in the HP C Compiler
4351# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4352# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4353# This bug is HP SR number 8606223364.
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4355$as_echo_n "checking size of double... " >&6; }
f00f02a3 4356if ${ac_cv_sizeof_double+:} false; then :
a23b9c51 4357 $as_echo_n "(cached) " >&6
4358else
4359 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4360
4361else
4362 if test "$ac_cv_type_double" = yes; then
4363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4365as_fn_error 77 "cannot compute sizeof (double)
4366See \`config.log' for more details" "$LINENO" 5; }
a23b9c51 4367 else
4368 ac_cv_sizeof_double=0
4369 fi
4370fi
4371
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4374$as_echo "$ac_cv_sizeof_double" >&6; }
4375
4376
4377
4378cat >>confdefs.h <<_ACEOF
4379#define SIZEOF_DOUBLE $ac_cv_sizeof_double
4380_ACEOF
4381
4382
4383# The cast to long int works around a bug in the HP C Compiler
4384# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4385# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4386# This bug is HP SR number 8606223364.
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4388$as_echo_n "checking size of long double... " >&6; }
f00f02a3 4389if ${ac_cv_sizeof_long_double+:} false; then :
a23b9c51 4390 $as_echo_n "(cached) " >&6
4391else
4392 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4393
4394else
4395 if test "$ac_cv_type_long_double" = yes; then
4396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4398as_fn_error 77 "cannot compute sizeof (long double)
4399See \`config.log' for more details" "$LINENO" 5; }
a23b9c51 4400 else
4401 ac_cv_sizeof_long_double=0
4402 fi
4403fi
4404
4405fi
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4407$as_echo "$ac_cv_sizeof_long_double" >&6; }
4408
4409
4410
4411cat >>confdefs.h <<_ACEOF
4412#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4413_ACEOF
4414
4415
4416as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4417as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4418
4419
4420
c905381f 4421
4422for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
4423 unistd.h sys/stat.h sys/types.h \
4424 string.h strings.h memory.h
4425do :
4426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4427ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
f00f02a3 4428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
c905381f 4429 cat >>confdefs.h <<_ACEOF
4430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4431_ACEOF
4432
4433fi
4434done
4435
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4437$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
f00f02a3 4438if ${ac_cv_path_GREP+:} false; then :
c905381f 4439 $as_echo_n "(cached) " >&6
4440else
4441 if test -z "$GREP"; then
4442 ac_path_GREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in grep ggrep; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 4452 as_fn_executable_p "$ac_path_GREP" || continue
c905381f 4453# Check for GNU ac_path_GREP and select it if it is found.
4454 # Check for GNU $ac_path_GREP
4455case `"$ac_path_GREP" --version 2>&1` in
4456*GNU*)
4457 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4458*)
4459 ac_count=0
4460 $as_echo_n 0123456789 >"conftest.in"
4461 while :
4462 do
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'GREP' >> "conftest.nl"
4467 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 as_fn_arith $ac_count + 1 && ac_count=$as_val
4470 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_GREP="$ac_path_GREP"
4473 ac_path_GREP_max=$ac_count
4474 fi
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479esac
4480
4481 $ac_path_GREP_found && break 3
4482 done
4483 done
4484 done
4485IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_GREP"; then
f00f02a3 4487 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
c905381f 4488 fi
4489else
4490 ac_cv_path_GREP=$GREP
4491fi
4492
4493fi
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4495$as_echo "$ac_cv_path_GREP" >&6; }
4496 GREP="$ac_cv_path_GREP"
4497
4498
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4500$as_echo_n "checking for egrep... " >&6; }
f00f02a3 4501if ${ac_cv_path_EGREP+:} false; then :
c905381f 4502 $as_echo_n "(cached) " >&6
4503else
4504 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4505 then ac_cv_path_EGREP="$GREP -E"
4506 else
4507 if test -z "$EGREP"; then
4508 ac_path_EGREP_found=false
4509 # Loop through the user's path and test for each of PROGNAME-LIST
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_prog in egrep; do
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 4518 as_fn_executable_p "$ac_path_EGREP" || continue
c905381f 4519# Check for GNU ac_path_EGREP and select it if it is found.
4520 # Check for GNU $ac_path_EGREP
4521case `"$ac_path_EGREP" --version 2>&1` in
4522*GNU*)
4523 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4524*)
4525 ac_count=0
4526 $as_echo_n 0123456789 >"conftest.in"
4527 while :
4528 do
4529 cat "conftest.in" "conftest.in" >"conftest.tmp"
4530 mv "conftest.tmp" "conftest.in"
4531 cp "conftest.in" "conftest.nl"
4532 $as_echo 'EGREP' >> "conftest.nl"
4533 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535 as_fn_arith $ac_count + 1 && ac_count=$as_val
4536 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4537 # Best one so far, save it but keep looking for a better one
4538 ac_cv_path_EGREP="$ac_path_EGREP"
4539 ac_path_EGREP_max=$ac_count
4540 fi
4541 # 10*(2^10) chars as input seems more than enough
4542 test $ac_count -gt 10 && break
4543 done
4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545esac
4546
4547 $ac_path_EGREP_found && break 3
4548 done
4549 done
4550 done
4551IFS=$as_save_IFS
4552 if test -z "$ac_cv_path_EGREP"; then
f00f02a3 4553 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
c905381f 4554 fi
4555else
4556 ac_cv_path_EGREP=$EGREP
4557fi
4558
4559 fi
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4562$as_echo "$ac_cv_path_EGREP" >&6; }
4563 EGREP="$ac_cv_path_EGREP"
4564
4565
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4567$as_echo_n "checking for ANSI C header files... " >&6; }
f00f02a3 4568if ${ac_cv_header_stdc+:} false; then :
c905381f 4569 $as_echo_n "(cached) " >&6
4570else
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572/* end confdefs.h. */
4573#include <stdlib.h>
4574#include <stdarg.h>
4575#include <string.h>
4576#include <float.h>
4577
4578int
4579main ()
4580{
4581
4582 ;
4583 return 0;
4584}
4585_ACEOF
4586if ac_fn_c_try_compile "$LINENO"; then :
4587 ac_cv_header_stdc=yes
4588else
4589 ac_cv_header_stdc=no
4590fi
4591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592
4593if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596/* end confdefs.h. */
4597#include <string.h>
4598
4599_ACEOF
4600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4601 $EGREP "memchr" >/dev/null 2>&1; then :
4602
4603else
4604 ac_cv_header_stdc=no
4605fi
4606rm -f conftest*
4607
4608fi
4609
4610if test $ac_cv_header_stdc = yes; then
4611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h. */
4614#include <stdlib.h>
4615
4616_ACEOF
4617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618 $EGREP "free" >/dev/null 2>&1; then :
4619
4620else
4621 ac_cv_header_stdc=no
4622fi
4623rm -f conftest*
4624
4625fi
4626
4627if test $ac_cv_header_stdc = yes; then
4628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4629 if test "$cross_compiling" = yes; then :
4630 :
4631else
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h. */
4634#include <ctype.h>
4635#include <stdlib.h>
4636#if ((' ' & 0x0FF) == 0x020)
4637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4639#else
4640# define ISLOWER(c) \
4641 (('a' <= (c) && (c) <= 'i') \
4642 || ('j' <= (c) && (c) <= 'r') \
4643 || ('s' <= (c) && (c) <= 'z'))
4644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4645#endif
4646
4647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4648int
4649main ()
4650{
4651 int i;
4652 for (i = 0; i < 256; i++)
4653 if (XOR (islower (i), ISLOWER (i))
4654 || toupper (i) != TOUPPER (i))
4655 return 2;
4656 return 0;
4657}
4658_ACEOF
4659if ac_fn_c_try_run "$LINENO"; then :
4660
4661else
4662 ac_cv_header_stdc=no
4663fi
4664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4665 conftest.$ac_objext conftest.beam conftest.$ac_ext
4666fi
4667
4668fi
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4671$as_echo "$ac_cv_header_stdc" >&6; }
4672if test $ac_cv_header_stdc = yes; then
4673
4674$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4675
4676fi
4677
4678
a23b9c51 4679# Check for decimal float support.
cd9a469c 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4681$as_echo_n "checking whether decimal floating point is supported... " >&6; }
f00f02a3 4682if ${libgcc_cv_dfp+:} false; then :
cd9a469c 4683 $as_echo_n "(cached) " >&6
894a47b4 4684else
cd9a469c 4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686/* end confdefs.h. */
96ddb284 4687
4688#include <fenv.h>
4689
4690int
4691main ()
4692{
4693
894a47b4 4694_Decimal32 x;
96ddb284 4695int fe_except =
4696 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4697
4698 ;
4699 return 0;
4700}
894a47b4 4701_ACEOF
cd9a469c 4702if ac_fn_c_try_compile "$LINENO"; then :
894a47b4 4703 libgcc_cv_dfp=yes
4704else
cd9a469c 4705 libgcc_cv_dfp=no
894a47b4 4706fi
cd9a469c 4707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
894a47b4 4708fi
cd9a469c 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4710$as_echo "$libgcc_cv_dfp" >&6; }
894a47b4 4711decimal_float=$libgcc_cv_dfp
4712
4713
2b181794 4714
cd9a469c 4715# Check whether --enable-decimal-float was given.
4716if test "${enable_decimal_float+set}" = set; then :
4717 enableval=$enable_decimal_float;
10de71e1 4718 case $enable_decimal_float in
a87eb011 4719 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
f00f02a3 4720 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
cd9a469c 4721Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
10de71e1 4722 esac
4723
4724else
4725
2968d68c 4726 case $host in
19aace05 4727 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4e9be08f 4728 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
70fbcd6d 4729 i?86*-*-mingw* | x86_64*-*-mingw* | \
45d13ef4 4730 i?86*-*-cygwin* | x86_64*-*-cygwin*)
10de71e1 4731 enable_decimal_float=yes
4732 ;;
4733 *)
e6425baf 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4735$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
10de71e1 4736 enable_decimal_float=no
4737 ;;
4738 esac
4739
cd9a469c 4740fi
4741
10de71e1 4742
4743# x86's use BID format instead of DPD
2b181794 4744case x$enable_decimal_float in
4745 xyes)
4746 case $host in
4747 i?86*-*-* | x86_64*-*-*)
4748 enable_decimal_float=bid
4749 ;;
4750 *)
4751 enable_decimal_float=dpd
4752 ;;
4753 esac
a87eb011 4754 default_decimal_float=$enable_decimal_float
2b181794 4755 ;;
4756 xno)
4757 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4758 # dependency on libdecnumber.
a87eb011 4759 default_decimal_float=dpd
2b181794 4760 ;;
4761esac
4762
4763
10de71e1 4764
4765
3ac0842f 4766# Check for fixed-point support.
cd9a469c 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4768$as_echo_n "checking whether fixed-point is supported... " >&6; }
f00f02a3 4769if ${libgcc_cv_fixed_point+:} false; then :
cd9a469c 4770 $as_echo_n "(cached) " >&6
3ac0842f 4771else
cd9a469c 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h. */
3ac0842f 4774_Sat _Fract x;
4775_ACEOF
cd9a469c 4776if ac_fn_c_try_compile "$LINENO"; then :
3ac0842f 4777 libgcc_cv_fixed_point=yes
4778else
cd9a469c 4779 libgcc_cv_fixed_point=no
3ac0842f 4780fi
cd9a469c 4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ac0842f 4782fi
cd9a469c 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4784$as_echo "$libgcc_cv_fixed_point" >&6; }
3ac0842f 4785fixed_point=$libgcc_cv_fixed_point
4786
4787
e59be7e3 4788# For platforms with the unwind ABI which includes an unwind library,
4789# libunwind, we can choose to use the system libunwind.
4790# config.gcc also contains tests of with_system_libunwind.
4791
4792
4793# Check whether --with-system-libunwind was given.
4794if test "${with_system_libunwind+set}" = set; then :
4795 withval=$with_system_libunwind;
4796fi
4797
4798 # If system-libunwind was not specifically set, pick a default setting.
4799 if test x$with_system_libunwind = x; then
4800 case ${target} in
4801 ia64-*-hpux*) with_system_libunwind=yes ;;
4802 *) with_system_libunwind=no ;;
4803 esac
4804 fi
4805 # Based on system-libunwind and target, do we have ipinfo?
4806 if test x$with_system_libunwind = xyes; then
4807 case ${target} in
4808 ia64-*-*) have_unwind_getipinfo=no ;;
4809 *) have_unwind_getipinfo=yes ;;
4810 esac
4811 else
4812 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4813
4814 case ${target} in
4815 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4816 *) have_unwind_getipinfo=yes ;;
4817 esac
4818
4819 fi
4820
4821 if test x$have_unwind_getipinfo = xyes; then
4822
4823$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4824
4825 fi
4826
4827
177cc56c 4828# Check if the compiler is configured for setjmp/longjmp exceptions.
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
4830$as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
f00f02a3 4831if ${ac_cv_sjlj_exceptions+:} false; then :
a997b0d8 4832 $as_echo_n "(cached) " >&6
4833else
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h. */
177cc56c 4836#ifdef __USING_SJLJ_EXCEPTIONS__
4837 this will fail
4838 #endif
4839int
4840main ()
a997b0d8 4841{
177cc56c 4842int i;
4843 ;
4844 return 0;
a997b0d8 4845}
a997b0d8 4846_ACEOF
177cc56c 4847if ac_fn_c_try_compile "$LINENO"; then :
4848 ac_cv_sjlj_exceptions=no
4849else
4850 ac_cv_sjlj_exceptions=yes
a997b0d8 4851fi
177cc56c 4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a997b0d8 4853fi
177cc56c 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
4855$as_echo "$ac_cv_sjlj_exceptions" >&6; }
a997b0d8 4856
5f42446c 4857 # Check whether --enable-cet was given.
4858if test "${enable_cet+set}" = set; then :
4859 enableval=$enable_cet;
4860 case "$enableval" in
ee8fea81 4861 yes|no|auto) ;;
f00f02a3 4862 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5f42446c 4863 esac
4864
4865else
ee8fea81 4866 enable_cet=no
5f42446c 4867fi
4868
4869
5611e648 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4871$as_echo_n "checking for CET support... " >&6; }
4872
5f42446c 4873case "$host" in
4874 i[34567]86-*-linux* | x86_64-*-linux*)
4875 case "$enable_cet" in
ee8fea81 4876 auto)
5611e648 4877 # Check if target supports multi-byte NOPs
4878 # and if assembler supports CET insn.
5f42446c 4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h. */
4881
4882int
4883main ()
4884{
5611e648 4885
4886#if !defined(__SSE2__)
4887#error target does not support multi-byte NOPs
4888#else
5f42446c 4889asm ("setssbsy");
5611e648 4890#endif
4891
5f42446c 4892 ;
4893 return 0;
4894}
4895_ACEOF
4896if ac_fn_c_try_compile "$LINENO"; then :
4897 enable_cet=yes
4898else
4899 enable_cet=no
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 ;;
4903 yes)
4904 # Check if assembler supports CET.
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h. */
4907
4908int
4909main ()
4910{
4911asm ("setssbsy");
4912 ;
4913 return 0;
4914}
4915_ACEOF
4916if ac_fn_c_try_compile "$LINENO"; then :
4917
4918else
f00f02a3 4919 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5f42446c 4920fi
4921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 ;;
4923 esac
4924 ;;
4925 *)
4926 enable_cet=no
4927 ;;
4928esac
4929if test x$enable_cet = xyes; then
6726651f 4930 CET_FLAGS="-fcf-protection -mshstk"
5611e648 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4932$as_echo "yes" >&6; }
4933else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935$as_echo "no" >&6; }
5f42446c 4936fi
4937
4938
4939
d0eb4a95 4940# Check whether --enable-explicit-exception-frame-registration was given.
4941if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4942 enableval=$enable_explicit_exception_frame_registration;
4943force_explicit_eh_registry=
4944if test "$enable_explicit_exception_frame_registration" = yes; then
177cc56c 4945 if test $ac_cv_sjlj_exceptions = yes; then
f00f02a3 4946 as_fn_error $? "Can't --enable-explicit-exception-frame-registration
177cc56c 4947 with setjmp/longjmp exceptions" "$LINENO" 5
d0eb4a95 4948 fi
4949 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
4950fi
4951
4952fi
4953
4954
4955
63abf89e 4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4957$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
f00f02a3 4958if ${acl_cv_prog_gnu_ld+:} false; then :
63abf89e 4959 $as_echo_n "(cached) " >&6
4960else
4961 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4962if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4963 acl_cv_prog_gnu_ld=yes
4964else
4965 acl_cv_prog_gnu_ld=no
4966fi
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4969$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4970with_gnu_ld=$acl_cv_prog_gnu_ld
4971
4972
541346b9 4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4974$as_echo_n "checking for thread model used by GCC... " >&6; }
4975target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4977$as_echo "$target_thread_file" >&6; }
4978
c9b3ebc5 4979# Check for assembler CFI support.
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4981$as_echo_n "checking whether assembler supports CFI directives... " >&6; }
f00f02a3 4982if ${libgcc_cv_cfi+:} false; then :
c9b3ebc5 4983 $as_echo_n "(cached) " >&6
4984else
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986/* end confdefs.h. */
78ca2689 4987asm("\n\
4988 .text\n\
4989 .cfi_startproc\n\
4990 .cfi_personality 0, symbol\n\
4991 .cfi_endproc");
c9b3ebc5 4992_ACEOF
4993if ac_fn_c_try_compile "$LINENO"; then :
4994 libgcc_cv_cfi=yes
4995else
4996 libgcc_cv_cfi=no
4997fi
4998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999fi
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
5001$as_echo "$libgcc_cv_cfi" >&6; }
5002
9bcbf352 5003# Check 32bit or 64bit. In the case of MIPS, this really determines the
5004# word size rather than the address size.
f3223c0b 5005cat > conftest.c <<EOF
9bcbf352 5006#if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
5007 || defined(__mips64)
b3fd46a0 5008host_address=64
5009#else
5010host_address=32
5011#endif
5012EOF
f3223c0b 5013eval `${CC-cc} -E conftest.c | grep host_address=`
5014rm -f conftest.c
b3fd46a0 5015
4b366ca9 5016case ${host} in
5017mips*-*-*)
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
5019$as_echo_n "checking whether the target is hard-float... " >&6; }
f00f02a3 5020if ${libgcc_cv_mips_hard_float+:} false; then :
4b366ca9 5021 $as_echo_n "(cached) " >&6
5022else
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h. */
5025#ifndef __mips_hard_float
5026 #error FOO
5027 #endif
f00f02a3 5028
4b366ca9 5029_ACEOF
5030if ac_fn_c_try_compile "$LINENO"; then :
5031 libgcc_cv_mips_hard_float=yes
5032else
5033 libgcc_cv_mips_hard_float=no
5034fi
5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
5038$as_echo "$libgcc_cv_mips_hard_float" >&6; }
5039esac
5040
ba24ad38 5041case ${host} in
5042*-*-solaris2*)
9273bda7 5043 # Check for system-provided CRTs on Solaris 11.4.
ba24ad38 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
5045$as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
f00f02a3 5046if ${libgcc_cv_solaris_crts+:} false; then :
ba24ad38 5047 $as_echo_n "(cached) " >&6
5048else
5049 libgcc_cv_solaris_crts=no
5050 libgcc_sysroot="`${CC} -print-sysroot`"
5051 libgcc_libdir="$libgcc_sysroot/usr/lib"
5052 # At the time they were added, gcrt1.o became a symlink for backwards
5053 # compatibility on x86, while crt1.o was added on sparc, so check for that.
5054 case ${host} in
5055 i?86-*-solaris2* | x86_64-*-solaris2*)
5056 if test -h "$libgcc_libdir/gcrt1.o"; then libgcc_cv_solaris_crts=yes; fi
5057 ;;
5058 sparc*-*-solaris2*)
5059 if test -f "$libgcc_libdir/crt1.o"; then libgcc_cv_solaris_crts=yes; fi
5060 ;;
5061 esac
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_solaris_crts" >&5
5064$as_echo "$libgcc_cv_solaris_crts" >&6; }
5065 if test $libgcc_cv_solaris_crts = yes; then
5066
5067$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
5068
5069 fi
5070 ;;
5071esac
5072
0e36a0d7 5073# Determine the version of glibc, if any, used on the target.
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
5075$as_echo_n "checking for target glibc version... " >&6; }
5076
5077# Check whether --with-glibc-version was given.
5078if test "${with_glibc_version+set}" = set; then :
5079 withval=$with_glibc_version;
5080if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
5081 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
5082 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
5083else
f00f02a3 5084 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
0e36a0d7 5085fi
5086else
5087
5088if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
5089
5090else
5091 glibc_version_major=0
5092fi
5093
5094if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
5095
5096else
5097 glibc_version_minor=0
5098fi
5099
5100fi
5101
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
5103$as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
5104
fd1eaa27 5105# Determine floating-point type for powerpc*-*-linux*.
5106# Single-precision-only FPRs are not a supported configuration for
5107# this target, so are not allowed for in this test.
5108case ${host} in
5109powerpc*-*-linux*)
5110 cat > conftest.c <<EOF
5111#ifdef __powerpc64__
5112ppc_fp_type=64
5113#elif defined _SOFT_FLOAT
5114ppc_fp_type=soft
5115#elif defined _SOFT_DOUBLE
5116ppc_fp_type=e500v1
5117#elif defined __NO_FPRS__
5118ppc_fp_type=e500v2
5119#else
5120ppc_fp_type=hard
5121#endif
5122EOF
5123eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
5124rm -f conftest.c
0e36a0d7 5125# glibc 2.19 and later provide all the soft-fp functions, with proper
5126# interactions with <fenv.h> exception and rounding mode handling, so
5127# make libgcc's versions into compat symbols if a recent enough glibc
5128# version is being used.
5129ppc_fp_compat=
5130case ${ppc_fp_type} in
5131soft|e500v1|e500v2)
5132 if test $glibc_version_major -gt 2 \
5133 || ( test $glibc_version_major -eq 2 \
5134 && test $glibc_version_minor -ge 19 ); then
5135 ppc_fp_compat="t-softfp-compat"
5136 fi
5137 ;;
5138esac
fd1eaa27 5139;;
5140esac
5141
d99eec2c 5142case ${host} in
9f6dc184 5143# At present, we cannot turn -mfloat128 on via #pragma GCC target, so just
5144# check if we have VSX (ISA 2.06) support to build the software libraries, and
5145# whether the assembler can handle xsaddqp for hardware support. Also check if
5146# a new glibc is being used so that __builtin_cpu_supports can be used.
d99eec2c 5147powerpc*-*-linux*)
8828c0f0 5148 saved_CFLAGS="$CFLAGS"
5149 CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128"
62735984 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5
5151$as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; }
f00f02a3 5152if ${libgcc_cv_powerpc_float128+:} false; then :
d99eec2c 5153 $as_echo_n "(cached) " >&6
5154else
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156/* end confdefs.h. */
8828c0f0 5157vector double dadd (vector double a, vector double b) { return a + b; }
d99eec2c 5158_ACEOF
5159if ac_fn_c_try_compile "$LINENO"; then :
5160 libgcc_cv_powerpc_float128=yes
5161else
5162 libgcc_cv_powerpc_float128=no
5163fi
5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165fi
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5
5167$as_echo "$libgcc_cv_powerpc_float128" >&6; }
5168
8828c0f0 5169 CFLAGS="$CFLAGS -mpower9-vector -mfloat128-hardware"
62735984 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5
5171$as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; }
f00f02a3 5172if ${libgcc_cv_powerpc_float128_hw+:} false; then :
d99eec2c 5173 $as_echo_n "(cached) " >&6
5174else
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176/* end confdefs.h. */
8828c0f0 5177#include <sys/auxv.h>
d99eec2c 5178 #ifndef AT_PLATFORM
5179 #error "AT_PLATFORM is not defined"
5180 #endif
9f6dc184 5181 #ifndef __BUILTIN_CPU_SUPPORTS__
5182 #error "__builtin_cpu_supports is not available"
5183 #endif
8828c0f0 5184 vector unsigned char add (vector unsigned char a, vector unsigned char b)
d99eec2c 5185 {
62735984 5186 vector unsigned char ret;
d99eec2c 5187 __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b));
5188 return ret;
5189 }
5190 void *add_resolver (void) { return (void *) add; }
5191 __float128 add_ifunc (__float128, __float128)
5192 __attribute__ ((__ifunc__ ("add_resolver")));
5193_ACEOF
5194if ac_fn_c_try_compile "$LINENO"; then :
5195 libgcc_cv_powerpc_float128_hw=yes
5196else
5197 libgcc_cv_powerpc_float128_hw=no
5198fi
5199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200fi
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5
5202$as_echo "$libgcc_cv_powerpc_float128_hw" >&6; }
8828c0f0 5203 CFLAGS="$saved_CFLAGS"
d99eec2c 5204esac
5205
894a47b4 5206# Collect host-machine-specific information.
5207. ${srcdir}/config.host
5208
a3d93be3 5209# Used for constructing correct paths for offload compilers.
5210accel_dir_suffix=
162f9d1e 5211real_host_noncanonical=${host_noncanonical}
a3d93be3 5212if test x"$enable_as_accelerator_for" != x; then
5213 accel_dir_suffix=/accel/${target_noncanonical}
162f9d1e 5214 real_host_noncanonical=${enable_as_accelerator_for}
a3d93be3 5215fi
5216
5217
162f9d1e 5218
a3d93be3 5219if test x"$enable_offload_targets" != x; then
e59c8b12 5220 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o"
a3d93be3 5221fi
5222
03150a33 5223# Check if Solaris/x86 linker supports ZERO terminator unwind entries.
5224# This is after config.host so we can augment tmake_file.
5225# Link with -nostartfiles -nodefaultlibs since neither are present while
5226# building libgcc.
5227case ${host} in
14f27bc6 5228i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
03150a33 5229 cat > conftest.s <<EOF
5230 .section .eh_frame,"a",@unwind
5231 .zero 4
5232 .section .jcr,"aw",@progbits
5233 .zero 8
5234EOF
5235 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
cd9a469c 5236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
03150a33 5237 (eval $ac_try) 2>&5
5238 ac_status=$?
cd9a469c 5239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5240 test $ac_status = 0; }; }; then
367b55f3 5241 tmake_file="${tmake_file} i386/t-crtstuff"
03150a33 5242 fi
5243 ;;
5244esac
5245
e1f1a538 5246# Check if Solaris linker support v2 linker mapfile syntax.
5247# Link with -nostartfiles -nodefaultlibs since neither are present while
5248# building libgcc.
5249case ${host} in
5250*-*-solaris2*)
5251 solaris_ld_v2_maps=no
5252 echo 'int main(void) {return 0;}' > conftest.c
5253 echo '$mapfile_version 2' > conftest.map
5254 if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5'
5255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5256 (eval $ac_try) 2>&5
5257 ac_status=$?
5258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259 test $ac_status = 0; }; }; then
5260 solaris_ld_v2_maps=yes
5261 fi
5262 ;;
5263esac
5264
5265
b89c671b 5266# Check if xtensa target is configured for windowed ABI and thus needs to use
5267# custom unwind code.
5268# This is after config.host so we can augment tmake_file.
5269case ${host} in
5270xtensa*-*)
5271 cat > conftest.c <<EOF
5272 #ifdef __XTENSA_CALL0_ABI__
5273 #error
5274 #endif
5275EOF
5276 if { ac_try='${CC-cc} -E -o conftest.i conftest.c 1>&5'
5277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5281 test $ac_status = 0; }; }; then
5282 tmake_file="${tmake_file} xtensa/t-windowed"
5283 fi
5284 ;;
5285esac
5286
894a47b4 5287# Check for visibility support. This is after config.host so that
5288# we can check for asm_hidden_op.
cd9a469c 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
5290$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
f00f02a3 5291if ${libgcc_cv_hidden_visibility_attribute+:} false; then :
cd9a469c 5292 $as_echo_n "(cached) " >&6
894a47b4 5293else
5294
5295 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
5296 libgcc_cv_hidden_visibility_attribute=no
5297 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
cd9a469c 5298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
894a47b4 5299 (eval $ac_try) 2>&5
5300 ac_status=$?
cd9a469c 5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }; }; then
894a47b4 5303 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
5304 libgcc_cv_hidden_visibility_attribute=yes
5305 fi
5306 fi
5307 rm -f conftest.*
5308
5309fi
cd9a469c 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
5311$as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
894a47b4 5312
5313if test $libgcc_cv_hidden_visibility_attribute = yes; then
5314 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
0b118d5b 5315
5316cat >>confdefs.h <<_ACEOF
5317#define AS_HIDDEN_DIRECTIVE $asm_hidden_op
5318_ACEOF
5319
894a47b4 5320else
5321 vis_hide=
5322fi
5323
5324
0b118d5b 5325# Check for .cfi_sections .debug_frame support.
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5
5327$as_echo_n "checking for .cfi_sections .debug_frame... " >&6; }
f00f02a3 5328if ${libgcc_cv_cfi_sections_directive+:} false; then :
0b118d5b 5329 $as_echo_n "(cached) " >&6
5330else
5331
5332 echo 'int foo (int, char *);' > conftest.c
5333 echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c
5334 libgcc_cv_cfi_sections_directive=no
5335 if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5'
5336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5340 test $ac_status = 0; }; }; then
5341 if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then
5342 libgcc_cv_cfi_sections_directive=yes
5343 fi
5344 fi
5345 rm -f conftest.*
5346
5347fi
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5
5349$as_echo "$libgcc_cv_cfi_sections_directive" >&6; }
5350if test $libgcc_cv_cfi_sections_directive = yes; then
5351
5352$as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h
5353
5354fi
5355
e4cbe54f 5356# See if we have thread-local storage. We can only test assembler
e1c346e5 5357# since link-time and run-time tests require the newly built
e4cbe54f 5358# gcc, which can't be used to build executable due to that libgcc
5359# is yet to be built here.
5360
cd9a469c 5361 # Check whether --enable-tls was given.
5362if test "${enable_tls+set}" = set; then :
5363 enableval=$enable_tls;
e4cbe54f 5364 case "$enableval" in
5365 yes|no) ;;
f00f02a3 5366 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
e4cbe54f 5367 esac
5368
5369else
5370 enable_tls=yes
cd9a469c 5371fi
e4cbe54f 5372
cd9a469c 5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
5375$as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
f00f02a3 5376if ${gcc_cv_have_cc_tls+:} false; then :
cd9a469c 5377 $as_echo_n "(cached) " >&6
e4cbe54f 5378else
5379
cd9a469c 5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381/* end confdefs.h. */
e4cbe54f 5382__thread int a; int b; int main() { return a = b; }
5383_ACEOF
cd9a469c 5384if ac_fn_c_try_compile "$LINENO"; then :
f11b4169 5385 gcc_cv_have_cc_tls=yes
e4cbe54f 5386else
cd9a469c 5387 gcc_cv_have_cc_tls=no
e4cbe54f 5388fi
cd9a469c 5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e4cbe54f 5390
5391fi
cd9a469c 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
5393$as_echo "$gcc_cv_have_cc_tls" >&6; }
db1c99de 5394set_have_cc_tls=
f11b4169 5395if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
e4cbe54f 5396 set_have_cc_tls="-DHAVE_CC_TLS"
5397fi
5398
5399
8f0f72c0 5400# See if we have emulated thread-local storage.
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
5403$as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
f00f02a3 5404if ${gcc_cv_use_emutls+:} false; then :
8f0f72c0 5405 $as_echo_n "(cached) " >&6
5406else
5407
5408 gcc_cv_use_emutls=no
5409 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
5410 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
5411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5412 (eval $ac_try) 2>&5
5413 ac_status=$?
5414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5415 test $ac_status = 0; }; }; then
5416 if grep __emutls_get_address conftest.s > /dev/null; then
5417 gcc_cv_use_emutls=yes
5418 fi
5419 fi
5420 rm -f conftest.*
5421
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
5424$as_echo "$gcc_cv_use_emutls" >&6; }
5425 if test "$gcc_cv_use_emutls" = "yes" ; then
5426
5427$as_echo "#define USE_EMUTLS 1" >>confdefs.h
5428
5429 fi
5430set_use_emutls=
5431if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
5432 set_use_emutls="-DUSE_EMUTLS"
5433fi
5434
5435
4d6bb87e 5436
5437
5438case "${target}" in
5439i[34567]86-*-* | x86_64-*-*)
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
5441$as_echo_n "checking if the assembler supports AVX... " >&6; }
f00f02a3 5442if ${libgcc_cv_as_avx+:} false; then :
4d6bb87e 5443 $as_echo_n "(cached) " >&6
5444else
5445
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h. */
5448
5449int
5450main ()
5451{
5452asm("vzeroupper");
5453 ;
5454 return 0;
5455}
5456_ACEOF
5457if ac_fn_c_try_compile "$LINENO"; then :
5458 libgcc_cv_as_avx=yes
5459else
5460 libgcc_cv_as_avx=no
5461fi
5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463
5464fi
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_avx" >&5
5466$as_echo "$libgcc_cv_as_avx" >&6; }
5467 if test x$libgcc_cv_as_avx = xyes; then
5468
5469$as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
5470
5471 fi
5472 ;;
5473esac
5474
98c9b52b 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
5476$as_echo_n "checking for init priority support... " >&6; }
f00f02a3 5477if ${libgcc_cv_init_priority+:} false; then :
98c9b52b 5478 $as_echo_n "(cached) " >&6
5479else
5480
5481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h. */
5483
5484int
5485main ()
5486{
5487void ip (void) __attribute__ ((constructor (1)));
5488 ;
5489 return 0;
5490}
5491_ACEOF
5492if ac_fn_c_try_compile "$LINENO"; then :
5493 libgcc_cv_init_priority=yes
5494else
5495 libgcc_cv_init_priority=no
5496fi
5497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498fi
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
5500$as_echo "$libgcc_cv_init_priority" >&6; }
5501if test $libgcc_cv_init_priority = yes; then
5502
5503$as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
5504
5505fi
5506
84600db5 5507# Conditionalize the sfp-machine.h header for this target machine.
5508if test -z "${sfp_machine_header}"; then
5509 sfp_machine_header=$cpu_type/sfp-machine.h
5510 if test -f ${srcdir}/config/${sfp_machine_header}; then
5511 :
5512 else
5513 sfp_machine_header=no-sfp-machine.h
5514 fi
5515fi
5516
5517
894a47b4 5518# Conditionalize the makefile for this target machine.
5519tmake_file_=
5520for f in ${tmake_file}
5521do
5522 if test -f ${srcdir}/config/$f
5523 then
5524 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
5525 fi
5526done
5527tmake_file="${tmake_file_}"
5528
5529
022a2799 5530# Likewise export definitions for libgcc_tm.h
5531tm_file_=
5532for f in ${tm_file}
5533do
5534 tm_file_="${tm_file_} \$(srcdir)/config/$f"
5535done
5536tm_file="${tm_file_}"
5537
5538
5539
630d52ca 5540# Map from thread model to thread header.
017f22df 5541
630d52ca 5542case $target_thread_file in
5543 aix) thread_header=config/rs6000/gthr-aix.h ;;
5544 dce) thread_header=config/pa/gthr-dce.h ;;
5545 lynx) thread_header=config/gthr-lynx.h ;;
5546 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
7336fab9 5547 posix) thread_header=gthr-posix.h ;;
630d52ca 5548 rtems) thread_header=config/gthr-rtems.h ;;
5549 single) thread_header=gthr-single.h ;;
5550 tpf) thread_header=config/s390/gthr-tpf.h ;;
5551 vxworks) thread_header=config/gthr-vxworks.h ;;
5552 win32) thread_header=config/i386/gthr-win32.h ;;
5553esac
5554
017f22df 5555
5556
0812bb06 5557# Determine what GCC version number to use in filesystem paths.
5558
5559 get_gcc_base_ver="cat"
5560
5561# Check whether --with-gcc-major-version-only was given.
5562if test "${with_gcc_major_version_only+set}" = set; then :
5563 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
124c259e 5564 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
0812bb06 5565 fi
5566
5567fi
5568
5569
5570
5571
894a47b4 5572# Substitute configuration variables
5573
5574
5575
a6f06169 5576
e59be7e3 5577
1e53920f 5578
84600db5 5579
630d52ca 5580
63abf89e 5581
894a47b4 5582# We need multilib support.
cd9a469c 5583ac_config_files="$ac_config_files Makefile"
894a47b4 5584
cd9a469c 5585ac_config_commands="$ac_config_commands default"
894a47b4 5586
5587cat >confcache <<\_ACEOF
5588# This file is a shell script that caches the results of configure
5589# tests run on this system so they can be shared between configure
5590# scripts and configure runs, see configure's option --config-cache.
5591# It is not useful on other systems. If it contains results you don't
5592# want to keep, you may remove or edit it.
5593#
5594# config.status only pays attention to the cache file if you give it
5595# the --recheck option to rerun configure.
5596#
5597# `ac_cv_env_foo' variables (set or unset) will be overridden when
5598# loading this file, other *unset* `ac_cv_foo' will be assigned the
5599# following values.
5600
5601_ACEOF
5602
5603# The following way of writing the cache mishandles newlines in values,
5604# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 5605# So, we kill variables containing newlines.
894a47b4 5606# Ultrix sh set writes to stderr and can't be redirected directly,
5607# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 5608(
5609 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5610 eval ac_val=\$$ac_var
5611 case $ac_val in #(
5612 *${as_nl}*)
5613 case $ac_var in #(
5614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5615$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5616 esac
5617 case $ac_var in #(
5618 _ | IFS | as_nl) ;; #(
5619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5620 *) { eval $ac_var=; unset $ac_var;} ;;
5621 esac ;;
5622 esac
5623 done
5624
894a47b4 5625 (set) 2>&1 |
cd9a469c 5626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5627 *${as_nl}ac_space=\ *)
5628 # `set' does not quote correctly, so add quotes: double-quote
5629 # substitution turns \\\\ into \\, and sed turns \\ into \.
894a47b4 5630 sed -n \
5631 "s/'/'\\\\''/g;
5632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 5633 ;; #(
894a47b4 5634 *)
5635 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 5636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
894a47b4 5637 ;;
cd9a469c 5638 esac |
5639 sort
5640) |
894a47b4 5641 sed '
cd9a469c 5642 /^ac_cv_env_/b end
894a47b4 5643 t clear
cd9a469c 5644 :clear
894a47b4 5645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5646 t end
cd9a469c 5647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5648 :end' >>confcache
5649if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5650 if test -w "$cache_file"; then
f00f02a3 5651 if test "x$cache_file" != "x/dev/null"; then
cd9a469c 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5653$as_echo "$as_me: updating cache $cache_file" >&6;}
f00f02a3 5654 if test ! -f "$cache_file" || test -h "$cache_file"; then
5655 cat confcache >"$cache_file"
5656 else
5657 case $cache_file in #(
5658 */* | ?:*)
5659 mv -f confcache "$cache_file"$$ &&
5660 mv -f "$cache_file"$$ "$cache_file" ;; #(
5661 *)
5662 mv -f confcache "$cache_file" ;;
5663 esac
5664 fi
5665 fi
894a47b4 5666 else
cd9a469c 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5668$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
894a47b4 5669 fi
5670fi
5671rm -f confcache
5672
5673test "x$prefix" = xNONE && prefix=$ac_default_prefix
5674# Let make expand exec_prefix.
5675test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5676
98c9b52b 5677DEFS=-DHAVE_CONFIG_H
894a47b4 5678
5679ac_libobjs=
5680ac_ltlibobjs=
f00f02a3 5681U=
894a47b4 5682for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5683 # 1. Remove the extension, and $U if already installed.
cd9a469c 5684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5687 # will be set to the directory where LIBOBJS objects are built.
5688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
894a47b4 5690done
5691LIBOBJS=$ac_libobjs
5692
5693LTLIBOBJS=$ac_ltlibobjs
5694
5695
5696
f00f02a3 5697: "${CONFIG_STATUS=./config.status}"
cd9a469c 5698ac_write_fail=0
894a47b4 5699ac_clean_files_save=$ac_clean_files
5700ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5702$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5703as_write_fail=0
5704cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
894a47b4 5705#! $SHELL
5706# Generated by $as_me.
5707# Run this file to recreate the current configuration.
5708# Compiler output produced by configure, useful for debugging
5709# configure, is in config.log if it exists.
5710
5711debug=false
5712ac_cs_recheck=false
5713ac_cs_silent=false
894a47b4 5714
cd9a469c 5715SHELL=\${CONFIG_SHELL-$SHELL}
5716export SHELL
5717_ASEOF
5718cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5719## -------------------- ##
5720## M4sh Initialization. ##
5721## -------------------- ##
5722
5723# Be more Bourne compatible
5724DUALCASE=1; export DUALCASE # for MKS sh
5725if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
894a47b4 5726 emulate sh
5727 NULLCMD=:
cd9a469c 5728 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
894a47b4 5729 # is contrary to our usage. Disable this feature.
5730 alias -g '${1+"$@"}'='"$@"'
cd9a469c 5731 setopt NO_GLOB_SUBST
5732else
5733 case `(set -o) 2>/dev/null` in #(
5734 *posix*) :
5735 set -o posix ;; #(
5736 *) :
5737 ;;
5738esac
894a47b4 5739fi
894a47b4 5740
cd9a469c 5741
5742as_nl='
5743'
5744export as_nl
5745# Printing a long string crashes Solaris 7 /usr/bin/printf.
5746as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5747as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5748as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5749# Prefer a ksh shell builtin over an external printf program on Solaris,
5750# but without wasting forks for bash or zsh.
5751if test -z "$BASH_VERSION$ZSH_VERSION" \
5752 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5753 as_echo='print -r --'
5754 as_echo_n='print -rn --'
5755elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5756 as_echo='printf %s\n'
5757 as_echo_n='printf %s'
894a47b4 5758else
cd9a469c 5759 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5760 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5761 as_echo_n='/usr/ucb/echo -n'
5762 else
5763 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5764 as_echo_n_body='eval
5765 arg=$1;
5766 case $arg in #(
5767 *"$as_nl"*)
5768 expr "X$arg" : "X\\(.*\\)$as_nl";
5769 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5770 esac;
5771 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5772 '
5773 export as_echo_n_body
5774 as_echo_n='sh -c $as_echo_n_body as_echo'
5775 fi
5776 export as_echo_body
5777 as_echo='sh -c $as_echo_body as_echo'
5778fi
5779
5780# The user is always right.
5781if test "${PATH_SEPARATOR+set}" != set; then
5782 PATH_SEPARATOR=:
5783 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5784 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5785 PATH_SEPARATOR=';'
5786 }
894a47b4 5787fi
5788
5789
cd9a469c 5790# IFS
5791# We need space, tab and new line, in precisely that order. Quoting is
5792# there to prevent editors from complaining about space-tab.
5793# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5794# splitting by setting IFS to empty value.)
5795IFS=" "" $as_nl"
5796
5797# Find who we are. Look in the path if we contain no directory separator.
f00f02a3 5798as_myself=
cd9a469c 5799case $0 in #((
5800 *[\\/]* ) as_myself=$0 ;;
5801 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5807 done
5808IFS=$as_save_IFS
5809
5810 ;;
5811esac
5812# We did not find ourselves, most probably we were run as `sh COMMAND'
5813# in which case we are not to be found in the path.
5814if test "x$as_myself" = x; then
5815 as_myself=$0
5816fi
5817if test ! -f "$as_myself"; then
5818 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5819 exit 1
5820fi
5821
5822# Unset variables that we do not need and which cause bugs (e.g. in
5823# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5824# suppresses any "Segmentation fault" message there. '((' could
5825# trigger a bug in pdksh 5.2.14.
5826for as_var in BASH_ENV ENV MAIL MAILPATH
5827do eval test x\${$as_var+set} = xset \
5828 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5829done
894a47b4 5830PS1='$ '
5831PS2='> '
5832PS4='+ '
5833
5834# NLS nuisances.
cd9a469c 5835LC_ALL=C
5836export LC_ALL
5837LANGUAGE=C
5838export LANGUAGE
5839
5840# CDPATH.
5841(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5842
5843
f00f02a3 5844# as_fn_error STATUS ERROR [LINENO LOG_FD]
5845# ----------------------------------------
cd9a469c 5846# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5847# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
f00f02a3 5848# script with STATUS, using 1 if that was 0.
cd9a469c 5849as_fn_error ()
5850{
f00f02a3 5851 as_status=$1; test $as_status -eq 0 && as_status=1
5852 if test "$4"; then
5853 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5854 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
894a47b4 5855 fi
f00f02a3 5856 $as_echo "$as_me: error: $2" >&2
cd9a469c 5857 as_fn_exit $as_status
5858} # as_fn_error
5859
894a47b4 5860
cd9a469c 5861# as_fn_set_status STATUS
5862# -----------------------
5863# Set $? to STATUS, without forking.
5864as_fn_set_status ()
5865{
5866 return $1
5867} # as_fn_set_status
5868
5869# as_fn_exit STATUS
5870# -----------------
5871# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5872as_fn_exit ()
5873{
5874 set +e
5875 as_fn_set_status $1
5876 exit $1
5877} # as_fn_exit
5878
5879# as_fn_unset VAR
5880# ---------------
5881# Portably unset VAR.
5882as_fn_unset ()
5883{
5884 { eval $1=; unset $1;}
5885}
5886as_unset=as_fn_unset
5887# as_fn_append VAR VALUE
5888# ----------------------
5889# Append the text in VALUE to the end of the definition contained in VAR. Take
5890# advantage of any shell optimizations that allow amortized linear growth over
5891# repeated appends, instead of the typical quadratic growth present in naive
5892# implementations.
5893if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5894 eval 'as_fn_append ()
5895 {
5896 eval $1+=\$2
5897 }'
5898else
5899 as_fn_append ()
5900 {
5901 eval $1=\$$1\$2
5902 }
5903fi # as_fn_append
5904
5905# as_fn_arith ARG...
5906# ------------------
5907# Perform arithmetic evaluation on the ARGs, and store the result in the
5908# global $as_val. Take advantage of shells that can avoid forks. The arguments
5909# must be portable across $(()) and expr.
5910if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5911 eval 'as_fn_arith ()
5912 {
5913 as_val=$(( $* ))
5914 }'
5915else
5916 as_fn_arith ()
5917 {
5918 as_val=`expr "$@" || test $? -eq 1`
5919 }
5920fi # as_fn_arith
5921
5922
5923if expr a : '\(a\)' >/dev/null 2>&1 &&
5924 test "X`expr 00001 : '.*\(...\)'`" = X001; then
894a47b4 5925 as_expr=expr
5926else
5927 as_expr=false
5928fi
5929
cd9a469c 5930if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
894a47b4 5931 as_basename=basename
5932else
5933 as_basename=false
5934fi
5935
cd9a469c 5936if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5937 as_dirname=dirname
5938else
5939 as_dirname=false
5940fi
894a47b4 5941
cd9a469c 5942as_me=`$as_basename -- "$0" ||
894a47b4 5943$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5944 X"$0" : 'X\(//\)$' \| \
cd9a469c 5945 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5946$as_echo X/"$0" |
5947 sed '/^.*\/\([^/][^/]*\)\/*$/{
5948 s//\1/
5949 q
5950 }
5951 /^X\/\(\/\/\)$/{
5952 s//\1/
5953 q
5954 }
5955 /^X\/\(\/\).*/{
5956 s//\1/
5957 q
5958 }
5959 s/.*/./; q'`
894a47b4 5960
bbdcab13 5961# Avoid depending upon Character Ranges.
5962as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5963as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5964as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5965as_cr_digits='0123456789'
5966as_cr_alnum=$as_cr_Letters$as_cr_digits
894a47b4 5967
cd9a469c 5968ECHO_C= ECHO_N= ECHO_T=
5969case `echo -n x` in #(((((
5970-n*)
5971 case `echo 'xy\c'` in
5972 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5973 xy) ECHO_C='\c';;
5974 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5975 ECHO_T=' ';;
5976 esac;;
5977*)
5978 ECHO_N='-n';;
894a47b4 5979esac
5980
cd9a469c 5981rm -f conf$$ conf$$.exe conf$$.file
5982if test -d conf$$.dir; then
5983 rm -f conf$$.dir/conf$$.file
894a47b4 5984else
cd9a469c 5985 rm -f conf$$.dir
5986 mkdir conf$$.dir 2>/dev/null
894a47b4 5987fi
cd9a469c 5988if (echo >conf$$.file) 2>/dev/null; then
5989 if ln -s conf$$.file conf$$ 2>/dev/null; then
bbdcab13 5990 as_ln_s='ln -s'
cd9a469c 5991 # ... but there are two gotchas:
5992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f00f02a3 5994 # In both cases, we have to default to `cp -pR'.
cd9a469c 5995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 5996 as_ln_s='cp -pR'
cd9a469c 5997 elif ln conf$$.file conf$$ 2>/dev/null; then
5998 as_ln_s=ln
5999 else
f00f02a3 6000 as_ln_s='cp -pR'
bbdcab13 6001 fi
894a47b4 6002else
f00f02a3 6003 as_ln_s='cp -pR'
894a47b4 6004fi
cd9a469c 6005rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6006rmdir conf$$.dir 2>/dev/null
6007
6008
6009# as_fn_mkdir_p
6010# -------------
6011# Create "$as_dir" as a directory, including parents if necessary.
6012as_fn_mkdir_p ()
6013{
6014
6015 case $as_dir in #(
6016 -*) as_dir=./$as_dir;;
6017 esac
6018 test -d "$as_dir" || eval $as_mkdir_p || {
6019 as_dirs=
6020 while :; do
6021 case $as_dir in #(
6022 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6023 *) as_qdir=$as_dir;;
6024 esac
6025 as_dirs="'$as_qdir' $as_dirs"
6026 as_dir=`$as_dirname -- "$as_dir" ||
6027$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6028 X"$as_dir" : 'X\(//\)[^/]' \| \
6029 X"$as_dir" : 'X\(//\)$' \| \
6030 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6031$as_echo X"$as_dir" |
6032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6033 s//\1/
6034 q
6035 }
6036 /^X\(\/\/\)[^/].*/{
6037 s//\1/
6038 q
6039 }
6040 /^X\(\/\/\)$/{
6041 s//\1/
6042 q
6043 }
6044 /^X\(\/\).*/{
6045 s//\1/
6046 q
6047 }
6048 s/.*/./; q'`
6049 test -d "$as_dir" && break
6050 done
6051 test -z "$as_dirs" || eval "mkdir $as_dirs"
f00f02a3 6052 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
894a47b4 6053
cd9a469c 6054
6055} # as_fn_mkdir_p
894a47b4 6056if mkdir -p . 2>/dev/null; then
cd9a469c 6057 as_mkdir_p='mkdir -p "$as_dir"'
894a47b4 6058else
6059 test -d ./-p && rmdir ./-p
6060 as_mkdir_p=false
6061fi
6062
f00f02a3 6063
6064# as_fn_executable_p FILE
6065# -----------------------
6066# Test if FILE is an executable regular file.
6067as_fn_executable_p ()
6068{
6069 test -f "$1" && test -x "$1"
6070} # as_fn_executable_p
6071as_test_x='test -x'
6072as_executable_p=as_fn_executable_p
894a47b4 6073
6074# Sed expression to map a string onto a valid CPP name.
6075as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6076
6077# Sed expression to map a string onto a valid variable name.
6078as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6079
6080
894a47b4 6081exec 6>&1
cd9a469c 6082## ----------------------------------- ##
6083## Main body of $CONFIG_STATUS script. ##
6084## ----------------------------------- ##
6085_ASEOF
6086test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6087
6088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6089# Save the log message, to keep $0 and so on meaningful, and to
894a47b4 6090# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 6091# values after options handling.
6092ac_log="
894a47b4 6093This file was extended by GNU C Runtime Library $as_me 1.0, which was
f00f02a3 6094generated by GNU Autoconf 2.69. Invocation command line was
894a47b4 6095
6096 CONFIG_FILES = $CONFIG_FILES
6097 CONFIG_HEADERS = $CONFIG_HEADERS
6098 CONFIG_LINKS = $CONFIG_LINKS
6099 CONFIG_COMMANDS = $CONFIG_COMMANDS
6100 $ $0 $@
6101
cd9a469c 6102on `(hostname || uname -n) 2>/dev/null | sed 1q`
6103"
6104
894a47b4 6105_ACEOF
6106
cd9a469c 6107case $ac_config_files in *"
6108"*) set x $ac_config_files; shift; ac_config_files=$*;;
6109esac
894a47b4 6110
98c9b52b 6111case $ac_config_headers in *"
6112"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6113esac
bbdcab13 6114
bbdcab13 6115
cd9a469c 6116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6117# Files that config.status was made for.
6118config_files="$ac_config_files"
98c9b52b 6119config_headers="$ac_config_headers"
cd9a469c 6120config_commands="$ac_config_commands"
894a47b4 6121
cd9a469c 6122_ACEOF
bbdcab13 6123
cd9a469c 6124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
894a47b4 6125ac_cs_usage="\
cd9a469c 6126\`$as_me' instantiates files and other configuration actions
6127from templates according to the current configuration. Unless the files
6128and actions are specified as TAGs, all are instantiated by default.
894a47b4 6129
cd9a469c 6130Usage: $0 [OPTION]... [TAG]...
894a47b4 6131
6132 -h, --help print this help, then exit
cd9a469c 6133 -V, --version print version number and configuration settings, then exit
f00f02a3 6134 --config print configuration, then exit
cd9a469c 6135 -q, --quiet, --silent
6136 do not print progress messages
894a47b4 6137 -d, --debug don't remove temporary files
6138 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 6139 --file=FILE[:TEMPLATE]
6140 instantiate the configuration file FILE
98c9b52b 6141 --header=FILE[:TEMPLATE]
6142 instantiate the configuration header FILE
894a47b4 6143
6144Configuration files:
6145$config_files
6146
98c9b52b 6147Configuration headers:
6148$config_headers
6149
894a47b4 6150Configuration commands:
6151$config_commands
6152
cd9a469c 6153Report bugs to the package provider.
6154GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
6155General help using GNU software: <http://www.gnu.org/gethelp/>."
bbdcab13 6156
cd9a469c 6157_ACEOF
6158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 6159ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
894a47b4 6160ac_cs_version="\\
6161GNU C Runtime Library config.status 1.0
f00f02a3 6162configured by $0, generated by GNU Autoconf 2.69,
6163 with options \\"\$ac_cs_config\\"
894a47b4 6164
f00f02a3 6165Copyright (C) 2012 Free Software Foundation, Inc.
894a47b4 6166This config.status script is free software; the Free Software Foundation
6167gives unlimited permission to copy, distribute and modify it."
cd9a469c 6168
6169ac_pwd='$ac_pwd'
6170srcdir='$srcdir'
6171INSTALL='$INSTALL'
6172AWK='$AWK'
6173test -n "\$AWK" || AWK=awk
894a47b4 6174_ACEOF
6175
cd9a469c 6176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6177# The default lists apply if the user does not specify any file.
894a47b4 6178ac_need_defaults=:
6179while test $# != 0
6180do
6181 case $1 in
f00f02a3 6182 --*=?*)
cd9a469c 6183 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6184 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
894a47b4 6185 ac_shift=:
6186 ;;
f00f02a3 6187 --*=)
6188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6189 ac_optarg=
6190 ac_shift=:
6191 ;;
cd9a469c 6192 *)
894a47b4 6193 ac_option=$1
6194 ac_optarg=$2
6195 ac_shift=shift
6196 ;;
894a47b4 6197 esac
6198
6199 case $ac_option in
6200 # Handling of the options.
894a47b4 6201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6202 ac_cs_recheck=: ;;
cd9a469c 6203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6204 $as_echo "$ac_cs_version"; exit ;;
f00f02a3 6205 --config | --confi | --conf | --con | --co | --c )
6206 $as_echo "$ac_cs_config"; exit ;;
cd9a469c 6207 --debug | --debu | --deb | --de | --d | -d )
894a47b4 6208 debug=: ;;
6209 --file | --fil | --fi | --f )
6210 $ac_shift
cd9a469c 6211 case $ac_optarg in
6212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f00f02a3 6213 '') as_fn_error $? "missing file argument" ;;
cd9a469c 6214 esac
6215 as_fn_append CONFIG_FILES " '$ac_optarg'"
bbdcab13 6216 ac_need_defaults=false;;
98c9b52b 6217 --header | --heade | --head | --hea )
6218 $ac_shift
6219 case $ac_optarg in
6220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6221 esac
6222 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6223 ac_need_defaults=false;;
6224 --he | --h)
6225 # Conflict between --help and --header
f00f02a3 6226 as_fn_error $? "ambiguous option: \`$1'
98c9b52b 6227Try \`$0 --help' for more information.";;
6228 --help | --hel | -h )
cd9a469c 6229 $as_echo "$ac_cs_usage"; exit ;;
894a47b4 6230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6232 ac_cs_silent=: ;;
6233
6234 # This is an error.
f00f02a3 6235 -*) as_fn_error $? "unrecognized option: \`$1'
cd9a469c 6236Try \`$0 --help' for more information." ;;
894a47b4 6237
cd9a469c 6238 *) as_fn_append ac_config_targets " $1"
6239 ac_need_defaults=false ;;
894a47b4 6240
6241 esac
6242 shift
6243done
6244
6245ac_configure_extra_args=
6246
6247if $ac_cs_silent; then
6248 exec 6>/dev/null
6249 ac_configure_extra_args="$ac_configure_extra_args --silent"
6250fi
6251
6252_ACEOF
cd9a469c 6253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
894a47b4 6254if \$ac_cs_recheck; then
f00f02a3 6255 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cd9a469c 6256 shift
6257 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6258 CONFIG_SHELL='$SHELL'
6259 export CONFIG_SHELL
6260 exec "\$@"
894a47b4 6261fi
6262
6263_ACEOF
cd9a469c 6264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6265exec 5>>config.log
6266{
6267 echo
6268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6269## Running $as_me. ##
6270_ASBOX
6271 $as_echo "$ac_log"
6272} >&5
894a47b4 6273
cd9a469c 6274_ACEOF
6275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
894a47b4 6276#
cd9a469c 6277# INIT-COMMANDS
894a47b4 6278#
894a47b4 6279srcdir=${srcdir}
6280host=${host}
894a47b4 6281with_target_subdir=${with_target_subdir}
6282with_multisubdir=${with_multisubdir}
6283ac_configure_args="--enable-multilib ${ac_configure_args}"
6284CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6285libgcc_topdir=${libgcc_topdir}
6286CC="${CC}"
6287
6288
6289_ACEOF
6290
cd9a469c 6291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f534b3b3 6292
cd9a469c 6293# Handling of arguments.
894a47b4 6294for ac_config_target in $ac_config_targets
6295do
cd9a469c 6296 case $ac_config_target in
98c9b52b 6297 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
cd9a469c 6298 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6299 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6300
f00f02a3 6301 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
894a47b4 6302 esac
6303done
6304
cd9a469c 6305
894a47b4 6306# If the user did not use the arguments to specify the items to instantiate,
6307# then the envvar interface is used. Set only those that are not.
6308# We use the long form for the default assignment because of an extremely
6309# bizarre bug on SunOS 4.1.3.
6310if $ac_need_defaults; then
6311 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
98c9b52b 6312 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
894a47b4 6313 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6314fi
6315
6316# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 6317# simply because there is no reason against having it here, and in addition,
894a47b4 6318# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 6319# Hook for its removal unless debugging.
6320# Note that there is a small window in which the directory will not be cleaned:
6321# after its creation but before its name has been assigned to `$tmp'.
894a47b4 6322$debug ||
6323{
f00f02a3 6324 tmp= ac_tmp=
cd9a469c 6325 trap 'exit_status=$?
f00f02a3 6326 : "${ac_tmp:=$tmp}"
6327 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cd9a469c 6328' 0
6329 trap 'as_fn_exit 1' 1 2 13 15
894a47b4 6330}
894a47b4 6331# Create a (secure) tmp directory for tmp files.
6332
6333{
cd9a469c 6334 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f00f02a3 6335 test -d "$tmp"
894a47b4 6336} ||
6337{
cd9a469c 6338 tmp=./conf$$-$RANDOM
6339 (umask 077 && mkdir "$tmp")
f00f02a3 6340} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6341ac_tmp=$tmp
cd9a469c 6342
6343# Set up the scripts for CONFIG_FILES section.
6344# No need to generate them if there are no CONFIG_FILES.
6345# This happens for instance with `./config.status config.h'.
6346if test -n "$CONFIG_FILES"; then
6347
6348
6349ac_cr=`echo X | tr X '\015'`
6350# On cygwin, bash can eat \r inside `` if the user requested igncr.
6351# But we know of no other shell where ac_cr would be empty at this
6352# point, so we can use a bashism as a fallback.
6353if test "x$ac_cr" = x; then
6354 eval ac_cr=\$\'\\r\'
6355fi
6356ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6357if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
f00f02a3 6358 ac_cs_awk_cr='\\r'
cd9a469c 6359else
6360 ac_cs_awk_cr=$ac_cr
6361fi
6362
f00f02a3 6363echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cd9a469c 6364_ACEOF
6365
6366
6367{
6368 echo "cat >conf$$subs.awk <<_ACEOF" &&
6369 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6370 echo "_ACEOF"
6371} >conf$$subs.sh ||
f00f02a3 6372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6373ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cd9a469c 6374ac_delim='%!_!# '
6375for ac_last_try in false false false false false :; do
6376 . ./conf$$subs.sh ||
f00f02a3 6377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 6378
6379 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6380 if test $ac_delim_n = $ac_delim_num; then
6381 break
6382 elif $ac_last_try; then
f00f02a3 6383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 6384 else
6385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6386 fi
6387done
6388rm -f conf$$subs.sh
6389
6390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 6391cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cd9a469c 6392_ACEOF
6393sed -n '
6394h
6395s/^/S["/; s/!.*/"]=/
6396p
6397g
6398s/^[^!]*!//
6399:repl
6400t repl
6401s/'"$ac_delim"'$//
6402t delim
6403:nl
6404h
f00f02a3 6405s/\(.\{148\}\)..*/\1/
cd9a469c 6406t more1
6407s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6408p
6409n
6410b repl
6411:more1
6412s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6413p
6414g
6415s/.\{148\}//
6416t nl
6417:delim
6418h
f00f02a3 6419s/\(.\{148\}\)..*/\1/
cd9a469c 6420t more2
6421s/["\\]/\\&/g; s/^/"/; s/$/"/
6422p
6423b
6424:more2
6425s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6426p
6427g
6428s/.\{148\}//
6429t delim
6430' <conf$$subs.awk | sed '
6431/^[^""]/{
6432 N
6433 s/\n//
6434}
6435' >>$CONFIG_STATUS || ac_write_fail=1
6436rm -f conf$$subs.awk
6437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6438_ACAWK
f00f02a3 6439cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cd9a469c 6440 for (key in S) S_is_set[key] = 1
6441 FS = "\a"
6442
6443}
894a47b4 6444{
cd9a469c 6445 line = $ 0
6446 nfields = split(line, field, "@")
6447 substed = 0
6448 len = length(field[1])
6449 for (i = 2; i < nfields; i++) {
6450 key = field[i]
6451 keylen = length(key)
6452 if (S_is_set[key]) {
6453 value = S[key]
6454 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6455 len += length(value) + length(field[++i])
6456 substed = 1
6457 } else
6458 len += 1 + keylen
6459 }
6460
6461 print line
894a47b4 6462}
6463
cd9a469c 6464_ACAWK
6465_ACEOF
6466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6467if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6468 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6469else
6470 cat
f00f02a3 6471fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6472 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
bbdcab13 6473_ACEOF
6474
f00f02a3 6475# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6476# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cd9a469c 6477# trailing colons and then remove the whole line if VPATH becomes empty
6478# (actually we leave an empty line to preserve line numbers).
6479if test "x$srcdir" = x.; then
f00f02a3 6480 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6481h
6482s///
6483s/^/:/
6484s/[ ]*$/:/
6485s/:\$(srcdir):/:/g
6486s/:\${srcdir}:/:/g
6487s/:@srcdir@:/:/g
6488s/^:*//
cd9a469c 6489s/:*$//
f00f02a3 6490x
6491s/\(=[ ]*\).*/\1/
6492G
6493s/\n//
cd9a469c 6494s/^[^=]*=[ ]*$//
6495}'
6496fi
bbdcab13 6497
cd9a469c 6498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6499fi # test -n "$CONFIG_FILES"
894a47b4 6500
98c9b52b 6501# Set up the scripts for CONFIG_HEADERS section.
6502# No need to generate them if there are no CONFIG_HEADERS.
6503# This happens for instance with `./config.status Makefile'.
6504if test -n "$CONFIG_HEADERS"; then
f00f02a3 6505cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
98c9b52b 6506BEGIN {
6507_ACEOF
6508
6509# Transform confdefs.h into an awk script `defines.awk', embedded as
6510# here-document in config.status, that substitutes the proper values into
6511# config.h.in to produce config.h.
6512
6513# Create a delimiter string that does not exist in confdefs.h, to ease
6514# handling of long lines.
6515ac_delim='%!_!# '
6516for ac_last_try in false false :; do
f00f02a3 6517 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6518 if test -z "$ac_tt"; then
98c9b52b 6519 break
6520 elif $ac_last_try; then
f00f02a3 6521 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
98c9b52b 6522 else
6523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6524 fi
6525done
894a47b4 6526
98c9b52b 6527# For the awk script, D is an array of macro values keyed by name,
6528# likewise P contains macro parameters if any. Preserve backslash
6529# newline sequences.
6530
6531ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6532sed -n '
6533s/.\{148\}/&'"$ac_delim"'/g
6534t rset
6535:rset
6536s/^[ ]*#[ ]*define[ ][ ]*/ /
6537t def
6538d
6539:def
6540s/\\$//
6541t bsnl
6542s/["\\]/\\&/g
6543s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6544D["\1"]=" \3"/p
6545s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6546d
6547:bsnl
6548s/["\\]/\\&/g
6549s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6550D["\1"]=" \3\\\\\\n"\\/p
6551t cont
6552s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6553t cont
6554d
6555:cont
6556n
6557s/.\{148\}/&'"$ac_delim"'/g
6558t clear
6559:clear
6560s/\\$//
6561t bsnlc
6562s/["\\]/\\&/g; s/^/"/; s/$/"/p
6563d
6564:bsnlc
6565s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6566b cont
6567' <confdefs.h | sed '
6568s/'"$ac_delim"'/"\\\
6569"/g' >>$CONFIG_STATUS || ac_write_fail=1
6570
6571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6572 for (key in D) D_is_set[key] = 1
6573 FS = "\a"
6574}
6575/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6576 line = \$ 0
6577 split(line, arg, " ")
6578 if (arg[1] == "#") {
6579 defundef = arg[2]
6580 mac1 = arg[3]
6581 } else {
6582 defundef = substr(arg[1], 2)
6583 mac1 = arg[2]
6584 }
6585 split(mac1, mac2, "(") #)
6586 macro = mac2[1]
6587 prefix = substr(line, 1, index(line, defundef) - 1)
6588 if (D_is_set[macro]) {
6589 # Preserve the white space surrounding the "#".
6590 print prefix "define", macro P[macro] D[macro]
6591 next
6592 } else {
6593 # Replace #undef with comments. This is necessary, for example,
6594 # in the case of _POSIX_SOURCE, which is predefined and required
6595 # on some systems where configure will not decide to define it.
6596 if (defundef == "undef") {
6597 print "/*", prefix defundef, macro, "*/"
6598 next
6599 }
6600 }
6601}
6602{ print }
6603_ACAWK
6604_ACEOF
6605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f00f02a3 6606 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
98c9b52b 6607fi # test -n "$CONFIG_HEADERS"
6608
6609
c678023a 6610eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
cd9a469c 6611shift
6612for ac_tag
6613do
6614 case $ac_tag in
6615 :[FHLC]) ac_mode=$ac_tag; continue;;
6616 esac
6617 case $ac_mode$ac_tag in
6618 :[FHL]*:*);;
f00f02a3 6619 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cd9a469c 6620 :[FH]-) ac_tag=-:-;;
6621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6622 esac
6623 ac_save_IFS=$IFS
6624 IFS=:
6625 set x $ac_tag
6626 IFS=$ac_save_IFS
6627 shift
6628 ac_file=$1
6629 shift
894a47b4 6630
cd9a469c 6631 case $ac_mode in
6632 :L) ac_source=$1;;
6633 :[FH])
6634 ac_file_inputs=
6635 for ac_f
6636 do
6637 case $ac_f in
f00f02a3 6638 -) ac_f="$ac_tmp/stdin";;
cd9a469c 6639 *) # Look for the file first in the build tree, then in the source tree
6640 # (if the path is not absolute). The absolute path cannot be DOS-style,
6641 # because $ac_f cannot contain `:'.
6642 test -f "$ac_f" ||
6643 case $ac_f in
6644 [\\/$]*) false;;
6645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6646 esac ||
f00f02a3 6647 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cd9a469c 6648 esac
6649 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6650 as_fn_append ac_file_inputs " '$ac_f'"
6651 done
6652
6653 # Let's still pretend it is `configure' which instantiates (i.e., don't
6654 # use $as_me), people would be surprised to read:
6655 # /* config.h. Generated by config.status. */
6656 configure_input='Generated from '`
6657 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6658 `' by configure.'
6659 if test x"$ac_file" != x-; then
6660 configure_input="$ac_file. $configure_input"
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6662$as_echo "$as_me: creating $ac_file" >&6;}
bbdcab13 6663 fi
cd9a469c 6664 # Neutralize special characters interpreted by sed in replacement strings.
6665 case $configure_input in #(
6666 *\&* | *\|* | *\\* )
6667 ac_sed_conf_input=`$as_echo "$configure_input" |
6668 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6669 *) ac_sed_conf_input=$configure_input;;
6670 esac
f534b3b3 6671
cd9a469c 6672 case $ac_tag in
f00f02a3 6673 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cd9a469c 6675 esac
6676 ;;
f534b3b3 6677 esac
6678
cd9a469c 6679 ac_dir=`$as_dirname -- "$ac_file" ||
894a47b4 6680$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6681 X"$ac_file" : 'X\(//\)[^/]' \| \
6682 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 6683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6684$as_echo X"$ac_file" |
6685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6686 s//\1/
6687 q
6688 }
6689 /^X\(\/\/\)[^/].*/{
6690 s//\1/
6691 q
6692 }
6693 /^X\(\/\/\)$/{
6694 s//\1/
6695 q
6696 }
6697 /^X\(\/\).*/{
6698 s//\1/
6699 q
6700 }
6701 s/.*/./; q'`
6702 as_dir="$ac_dir"; as_fn_mkdir_p
894a47b4 6703 ac_builddir=.
6704
cd9a469c 6705case "$ac_dir" in
6706.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6707*)
6708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6709 # A ".." for each directory in $ac_dir_suffix.
6710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6711 case $ac_top_builddir_sub in
6712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6714 esac ;;
6715esac
6716ac_abs_top_builddir=$ac_pwd
6717ac_abs_builddir=$ac_pwd$ac_dir_suffix
6718# for backward compatibility:
6719ac_top_builddir=$ac_top_build_prefix
894a47b4 6720
6721case $srcdir in
cd9a469c 6722 .) # We are building in place.
894a47b4 6723 ac_srcdir=.
cd9a469c 6724 ac_top_srcdir=$ac_top_builddir_sub
6725 ac_abs_top_srcdir=$ac_pwd ;;
6726 [\\/]* | ?:[\\/]* ) # Absolute name.
894a47b4 6727 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 6728 ac_top_srcdir=$srcdir
6729 ac_abs_top_srcdir=$srcdir ;;
6730 *) # Relative name.
6731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6732 ac_top_srcdir=$ac_top_build_prefix$srcdir
6733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
894a47b4 6734esac
cd9a469c 6735ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
894a47b4 6736
894a47b4 6737
cd9a469c 6738 case $ac_mode in
6739 :F)
6740 #
6741 # CONFIG_FILE
6742 #
894a47b4 6743
6744 case $INSTALL in
6745 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 6746 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
894a47b4 6747 esac
cd9a469c 6748_ACEOF
f534b3b3 6749
cd9a469c 6750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6751# If the template does not know about datarootdir, expand it.
6752# FIXME: This hack should be removed a few years after 2.60.
6753ac_datarootdir_hack=; ac_datarootdir_seen=
6754ac_sed_dataroot='
6755/datarootdir/ {
6756 p
6757 q
6758}
6759/@datadir@/p
6760/@docdir@/p
6761/@infodir@/p
6762/@localedir@/p
6763/@mandir@/p'
6764case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6765*datarootdir*) ac_datarootdir_seen=yes;;
6766*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6768$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6769_ACEOF
6770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6771 ac_datarootdir_hack='
6772 s&@datadir@&$datadir&g
6773 s&@docdir@&$docdir&g
6774 s&@infodir@&$infodir&g
6775 s&@localedir@&$localedir&g
6776 s&@mandir@&$mandir&g
6777 s&\\\${datarootdir}&$datarootdir&g' ;;
6778esac
894a47b4 6779_ACEOF
cd9a469c 6780
6781# Neutralize VPATH when `$srcdir' = `.'.
6782# Shell code in configure.ac might set extrasub.
6783# FIXME: do we really want to maintain this feature?
6784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6785ac_sed_extra="$ac_vpsub
894a47b4 6786$extrasub
6787_ACEOF
cd9a469c 6788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
894a47b4 6789:t
6790/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 6791s|@configure_input@|$ac_sed_conf_input|;t t
6792s&@top_builddir@&$ac_top_builddir_sub&;t t
6793s&@top_build_prefix@&$ac_top_build_prefix&;t t
6794s&@srcdir@&$ac_srcdir&;t t
6795s&@abs_srcdir@&$ac_abs_srcdir&;t t
6796s&@top_srcdir@&$ac_top_srcdir&;t t
6797s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6798s&@builddir@&$ac_builddir&;t t
6799s&@abs_builddir@&$ac_abs_builddir&;t t
6800s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6801s&@INSTALL@&$ac_INSTALL&;t t
6802$ac_datarootdir_hack
6803"
f00f02a3 6804eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6805 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 6806
6807test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
f00f02a3 6808 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6810 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cd9a469c 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 6812which seems to be undefined. Please make sure it is defined" >&5
cd9a469c 6813$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 6814which seems to be undefined. Please make sure it is defined" >&2;}
cd9a469c 6815
f00f02a3 6816 rm -f "$ac_tmp/stdin"
cd9a469c 6817 case $ac_file in
f00f02a3 6818 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6819 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cd9a469c 6820 esac \
f00f02a3 6821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 6822 ;;
98c9b52b 6823 :H)
6824 #
6825 # CONFIG_HEADER
6826 #
6827 if test x"$ac_file" != x-; then
6828 {
6829 $as_echo "/* $configure_input */" \
f00f02a3 6830 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6831 } >"$ac_tmp/config.h" \
6832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6833 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
98c9b52b 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6835$as_echo "$as_me: $ac_file is unchanged" >&6;}
6836 else
6837 rm -f "$ac_file"
f00f02a3 6838 mv "$ac_tmp/config.h" "$ac_file" \
6839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
98c9b52b 6840 fi
6841 else
6842 $as_echo "/* $configure_input */" \
f00f02a3 6843 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6844 || as_fn_error $? "could not create -" "$LINENO" 5
98c9b52b 6845 fi
6846 ;;
bbdcab13 6847
cd9a469c 6848 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6849$as_echo "$as_me: executing $ac_file commands" >&6;}
6850 ;;
6851 esac
bbdcab13 6852
6853
cd9a469c 6854 case $ac_file$ac_mode in
6855 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
894a47b4 6856if test -n "$CONFIG_FILES"; then
6857 # FIXME: We shouldn't need to set ac_file
6858 ac_file=Makefile
6859 . ${libgcc_topdir}/config-ml.in
6860fi ;;
cd9a469c 6861
894a47b4 6862 esac
cd9a469c 6863done # for ac_tag
894a47b4 6864
894a47b4 6865
cd9a469c 6866as_fn_exit 0
894a47b4 6867_ACEOF
894a47b4 6868ac_clean_files=$ac_clean_files_save
6869
cd9a469c 6870test $ac_write_fail = 0 ||
f00f02a3 6871 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cd9a469c 6872
894a47b4 6873
6874# configure is writing to config.log, and then calls config.status.
6875# config.status does its own redirection, appending to config.log.
6876# Unfortunately, on DOS this fails, as config.log is still kept open
6877# by configure, so config.status won't be able to write to it; its
6878# output is simply discarded. So we exec the FD to /dev/null,
6879# effectively closing config.log, so it can be properly (re)opened and
6880# appended to by config.status. When coming back to configure, we
6881# need to make the FD available again.
6882if test "$no_create" != yes; then
6883 ac_cs_success=:
6884 ac_config_status_args=
6885 test "$silent" = yes &&
6886 ac_config_status_args="$ac_config_status_args --quiet"
6887 exec 5>/dev/null
6888 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6889 exec 5>>config.log
6890 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6891 # would make configure fail if this is the last instruction.
f00f02a3 6892 $ac_cs_success || as_fn_exit 1
cd9a469c 6893fi
6894if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6896$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
894a47b4 6897fi
6898