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