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