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