[AArch64][committed] Fix gcc.target/aarch64/spellcheck_1.c and spellcheck_4.c
[official-gcc.git] / libgcc / configure
blobf0b6116e192ce8c13fee590833c5a5e7fa67b39b
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 solaris_ld_v2_maps
574 real_host_noncanonical
575 accel_dir_suffix
576 force_explicit_eh_registry
577 CET_FLAGS
578 fixed_point
579 enable_decimal_float
580 decimal_float
581 EGREP
582 GREP
583 long_double_type_size
584 double_type_size
586 OBJEXT
587 EXEEXT
588 ac_ct_CC
589 CPPFLAGS
590 LDFLAGS
591 CFLAGS
593 LN_S
594 STRIP
595 RANLIB
597 LIPO
599 toolexeclibdir
600 toolexecdir
601 target_subdir
602 host_subdir
603 build_subdir
604 build_libsubdir
605 target_noncanonical
606 host_noncanonical
608 INSTALL_DATA
609 INSTALL_SCRIPT
610 INSTALL_PROGRAM
611 MAINT
612 slibdir
613 PICFLAG
614 host_os
615 host_vendor
616 host_cpu
617 host
618 build_os
619 build_vendor
620 build_cpu
621 build
622 with_aix_soname
623 enable_vtable_verify
624 enable_gcov
625 enable_shared
626 libgcc_topdir
627 target_alias
628 host_alias
629 build_alias
630 LIBS
631 ECHO_T
632 ECHO_N
633 ECHO_C
634 DEFS
635 mandir
636 localedir
637 libdir
638 psdir
639 pdfdir
640 dvidir
641 htmldir
642 infodir
643 docdir
644 oldincludedir
645 includedir
646 localstatedir
647 sharedstatedir
648 sysconfdir
649 datadir
650 datarootdir
651 libexecdir
652 sbindir
653 bindir
654 program_transform_name
655 prefix
656 exec_prefix
657 PACKAGE_URL
658 PACKAGE_BUGREPORT
659 PACKAGE_STRING
660 PACKAGE_VERSION
661 PACKAGE_TARNAME
662 PACKAGE_NAME
663 PATH_SEPARATOR
664 SHELL'
665 ac_subst_files=''
666 ac_user_opts='
667 enable_option_checking
668 with_target_subdir
669 with_cross_host
670 with_ld
671 enable_shared
672 enable_gcov
673 enable_vtable_verify
674 with_aix_soname
675 enable_version_specific_runtime_libs
676 with_slibdir
677 enable_maintainer_mode
678 with_build_libsubdir
679 enable_largefile
680 enable_decimal_float
681 with_system_libunwind
682 enable_cet
683 enable_explicit_exception_frame_registration
684 with_glibc_version
685 enable_tls
686 with_gcc_major_version_only
688 ac_precious_vars='build_alias
689 host_alias
690 target_alias
692 CFLAGS
693 LDFLAGS
694 LIBS
695 CPPFLAGS
696 CPP'
699 # Initialize some variables set by options.
700 ac_init_help=
701 ac_init_version=false
702 ac_unrecognized_opts=
703 ac_unrecognized_sep=
704 # The variables have the same names as the options, with
705 # dashes changed to underlines.
706 cache_file=/dev/null
707 exec_prefix=NONE
708 no_create=
709 no_recursion=
710 prefix=NONE
711 program_prefix=NONE
712 program_suffix=NONE
713 program_transform_name=s,x,x,
714 silent=
715 site=
716 srcdir=
717 verbose=
718 x_includes=NONE
719 x_libraries=NONE
721 # Installation directory options.
722 # These are left unexpanded so users can "make install exec_prefix=/foo"
723 # and all the variables that are supposed to be based on exec_prefix
724 # by default will actually change.
725 # Use braces instead of parens because sh, perl, etc. also accept them.
726 # (The list follows the same order as the GNU Coding Standards.)
727 bindir='${exec_prefix}/bin'
728 sbindir='${exec_prefix}/sbin'
729 libexecdir='${exec_prefix}/libexec'
730 datarootdir='${prefix}/share'
731 datadir='${datarootdir}'
732 sysconfdir='${prefix}/etc'
733 sharedstatedir='${prefix}/com'
734 localstatedir='${prefix}/var'
735 includedir='${prefix}/include'
736 oldincludedir='/usr/include'
737 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
738 infodir='${datarootdir}/info'
739 htmldir='${docdir}'
740 dvidir='${docdir}'
741 pdfdir='${docdir}'
742 psdir='${docdir}'
743 libdir='${exec_prefix}/lib'
744 localedir='${datarootdir}/locale'
745 mandir='${datarootdir}/man'
747 ac_prev=
748 ac_dashdash=
749 for ac_option
751 # If the previous option needs an argument, assign it.
752 if test -n "$ac_prev"; then
753 eval $ac_prev=\$ac_option
754 ac_prev=
755 continue
758 case $ac_option in
759 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760 *) ac_optarg=yes ;;
761 esac
763 # Accept the important Cygnus configure options, so we can diagnose typos.
765 case $ac_dashdash$ac_option in
767 ac_dashdash=yes ;;
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
770 ac_prev=bindir ;;
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 bindir=$ac_optarg ;;
774 -build | --build | --buil | --bui | --bu)
775 ac_prev=build_alias ;;
776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777 build_alias=$ac_optarg ;;
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev=cache_file ;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784 cache_file=$ac_optarg ;;
786 --config-cache | -C)
787 cache_file=config.cache ;;
789 -datadir | --datadir | --datadi | --datad)
790 ac_prev=datadir ;;
791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
792 datadir=$ac_optarg ;;
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev=datarootdir ;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir=$ac_optarg ;;
801 -disable-* | --disable-*)
802 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
805 as_fn_error "invalid feature name: $ac_useropt"
806 ac_useropt_orig=$ac_useropt
807 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
808 case $ac_user_opts in
810 "enable_$ac_useropt"
811 "*) ;;
812 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
813 ac_unrecognized_sep=', ';;
814 esac
815 eval enable_$ac_useropt=no ;;
817 -docdir | --docdir | --docdi | --doc | --do)
818 ac_prev=docdir ;;
819 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820 docdir=$ac_optarg ;;
822 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823 ac_prev=dvidir ;;
824 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825 dvidir=$ac_optarg ;;
827 -enable-* | --enable-*)
828 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831 as_fn_error "invalid feature name: $ac_useropt"
832 ac_useropt_orig=$ac_useropt
833 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834 case $ac_user_opts in
836 "enable_$ac_useropt"
837 "*) ;;
838 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
839 ac_unrecognized_sep=', ';;
840 esac
841 eval enable_$ac_useropt=\$ac_optarg ;;
843 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
844 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
845 | --exec | --exe | --ex)
846 ac_prev=exec_prefix ;;
847 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
848 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
849 | --exec=* | --exe=* | --ex=*)
850 exec_prefix=$ac_optarg ;;
852 -gas | --gas | --ga | --g)
853 # Obsolete; use --with-gas.
854 with_gas=yes ;;
856 -help | --help | --hel | --he | -h)
857 ac_init_help=long ;;
858 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
859 ac_init_help=recursive ;;
860 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
861 ac_init_help=short ;;
863 -host | --host | --hos | --ho)
864 ac_prev=host_alias ;;
865 -host=* | --host=* | --hos=* | --ho=*)
866 host_alias=$ac_optarg ;;
868 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
869 ac_prev=htmldir ;;
870 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
871 | --ht=*)
872 htmldir=$ac_optarg ;;
874 -includedir | --includedir | --includedi | --included | --include \
875 | --includ | --inclu | --incl | --inc)
876 ac_prev=includedir ;;
877 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
878 | --includ=* | --inclu=* | --incl=* | --inc=*)
879 includedir=$ac_optarg ;;
881 -infodir | --infodir | --infodi | --infod | --info | --inf)
882 ac_prev=infodir ;;
883 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
884 infodir=$ac_optarg ;;
886 -libdir | --libdir | --libdi | --libd)
887 ac_prev=libdir ;;
888 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 libdir=$ac_optarg ;;
891 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
892 | --libexe | --libex | --libe)
893 ac_prev=libexecdir ;;
894 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
895 | --libexe=* | --libex=* | --libe=*)
896 libexecdir=$ac_optarg ;;
898 -localedir | --localedir | --localedi | --localed | --locale)
899 ac_prev=localedir ;;
900 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
901 localedir=$ac_optarg ;;
903 -localstatedir | --localstatedir | --localstatedi | --localstated \
904 | --localstate | --localstat | --localsta | --localst | --locals)
905 ac_prev=localstatedir ;;
906 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
907 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
908 localstatedir=$ac_optarg ;;
910 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
911 ac_prev=mandir ;;
912 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 mandir=$ac_optarg ;;
915 -nfp | --nfp | --nf)
916 # Obsolete; use --without-fp.
917 with_fp=no ;;
919 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
920 | --no-cr | --no-c | -n)
921 no_create=yes ;;
923 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
924 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 no_recursion=yes ;;
927 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
928 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
929 | --oldin | --oldi | --old | --ol | --o)
930 ac_prev=oldincludedir ;;
931 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
932 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
933 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
934 oldincludedir=$ac_optarg ;;
936 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
937 ac_prev=prefix ;;
938 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 prefix=$ac_optarg ;;
941 -program-prefix | --program-prefix | --program-prefi | --program-pref \
942 | --program-pre | --program-pr | --program-p)
943 ac_prev=program_prefix ;;
944 -program-prefix=* | --program-prefix=* | --program-prefi=* \
945 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
946 program_prefix=$ac_optarg ;;
948 -program-suffix | --program-suffix | --program-suffi | --program-suff \
949 | --program-suf | --program-su | --program-s)
950 ac_prev=program_suffix ;;
951 -program-suffix=* | --program-suffix=* | --program-suffi=* \
952 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
953 program_suffix=$ac_optarg ;;
955 -program-transform-name | --program-transform-name \
956 | --program-transform-nam | --program-transform-na \
957 | --program-transform-n | --program-transform- \
958 | --program-transform | --program-transfor \
959 | --program-transfo | --program-transf \
960 | --program-trans | --program-tran \
961 | --progr-tra | --program-tr | --program-t)
962 ac_prev=program_transform_name ;;
963 -program-transform-name=* | --program-transform-name=* \
964 | --program-transform-nam=* | --program-transform-na=* \
965 | --program-transform-n=* | --program-transform-=* \
966 | --program-transform=* | --program-transfor=* \
967 | --program-transfo=* | --program-transf=* \
968 | --program-trans=* | --program-tran=* \
969 | --progr-tra=* | --program-tr=* | --program-t=*)
970 program_transform_name=$ac_optarg ;;
972 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
973 ac_prev=pdfdir ;;
974 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 pdfdir=$ac_optarg ;;
977 -psdir | --psdir | --psdi | --psd | --ps)
978 ac_prev=psdir ;;
979 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 psdir=$ac_optarg ;;
982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
983 | -silent | --silent | --silen | --sile | --sil)
984 silent=yes ;;
986 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
987 ac_prev=sbindir ;;
988 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
989 | --sbi=* | --sb=*)
990 sbindir=$ac_optarg ;;
992 -sharedstatedir | --sharedstatedir | --sharedstatedi \
993 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
994 | --sharedst | --shareds | --shared | --share | --shar \
995 | --sha | --sh)
996 ac_prev=sharedstatedir ;;
997 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
998 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
999 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1000 | --sha=* | --sh=*)
1001 sharedstatedir=$ac_optarg ;;
1003 -site | --site | --sit)
1004 ac_prev=site ;;
1005 -site=* | --site=* | --sit=*)
1006 site=$ac_optarg ;;
1008 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1009 ac_prev=srcdir ;;
1010 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1011 srcdir=$ac_optarg ;;
1013 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1014 | --syscon | --sysco | --sysc | --sys | --sy)
1015 ac_prev=sysconfdir ;;
1016 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1017 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1018 sysconfdir=$ac_optarg ;;
1020 -target | --target | --targe | --targ | --tar | --ta | --t)
1021 ac_prev=target_alias ;;
1022 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1023 target_alias=$ac_optarg ;;
1025 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 verbose=yes ;;
1028 -version | --version | --versio | --versi | --vers | -V)
1029 ac_init_version=: ;;
1031 -with-* | --with-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error "invalid package name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "with_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval with_$ac_useropt=\$ac_optarg ;;
1047 -without-* | --without-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error "invalid package name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "with_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval with_$ac_useropt=no ;;
1063 --x)
1064 # Obsolete; use --with-x.
1065 with_x=yes ;;
1067 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1068 | --x-incl | --x-inc | --x-in | --x-i)
1069 ac_prev=x_includes ;;
1070 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1071 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1072 x_includes=$ac_optarg ;;
1074 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1075 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1076 ac_prev=x_libraries ;;
1077 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1078 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1079 x_libraries=$ac_optarg ;;
1081 -*) as_fn_error "unrecognized option: \`$ac_option'
1082 Try \`$0 --help' for more information."
1085 *=*)
1086 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1087 # Reject names that are not valid shell variable names.
1088 case $ac_envvar in #(
1089 '' | [0-9]* | *[!_$as_cr_alnum]* )
1090 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1091 esac
1092 eval $ac_envvar=\$ac_optarg
1093 export $ac_envvar ;;
1096 # FIXME: should be removed in autoconf 3.0.
1097 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1100 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1103 esac
1104 done
1106 if test -n "$ac_prev"; then
1107 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1108 as_fn_error "missing argument to $ac_option"
1111 if test -n "$ac_unrecognized_opts"; then
1112 case $enable_option_checking in
1113 no) ;;
1114 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1115 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1116 esac
1119 # Check all directory arguments for consistency.
1120 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
1125 eval ac_val=\$$ac_var
1126 # Remove trailing slashes.
1127 case $ac_val in
1128 */ )
1129 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1130 eval $ac_var=\$ac_val;;
1131 esac
1132 # Be sure to have absolute directory names.
1133 case $ac_val in
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136 esac
1137 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1138 done
1140 # There might be people who depend on the old broken behavior: `$host'
1141 # used to hold the argument of --host etc.
1142 # FIXME: To remove some day.
1143 build=$build_alias
1144 host=$host_alias
1145 target=$target_alias
1147 # FIXME: To remove some day.
1148 if test "x$host_alias" != x; then
1149 if test "x$build_alias" = x; then
1150 cross_compiling=maybe
1151 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1152 If a cross compiler is detected then cross compile mode will be used." >&2
1153 elif test "x$build_alias" != "x$host_alias"; then
1154 cross_compiling=yes
1158 ac_tool_prefix=
1159 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1161 test "$silent" = yes && exec 6>/dev/null
1164 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1165 ac_ls_di=`ls -di .` &&
1166 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1167 as_fn_error "working directory cannot be determined"
1168 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 as_fn_error "pwd does not report name of working directory"
1172 # Find the source files, if location was not specified.
1173 if test -z "$srcdir"; then
1174 ac_srcdir_defaulted=yes
1175 # Try the directory containing this script, then the parent directory.
1176 ac_confdir=`$as_dirname -- "$as_myself" ||
1177 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1178 X"$as_myself" : 'X\(//\)[^/]' \| \
1179 X"$as_myself" : 'X\(//\)$' \| \
1180 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1181 $as_echo X"$as_myself" |
1182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1183 s//\1/
1186 /^X\(\/\/\)[^/].*/{
1187 s//\1/
1190 /^X\(\/\/\)$/{
1191 s//\1/
1194 /^X\(\/\).*/{
1195 s//\1/
1198 s/.*/./; q'`
1199 srcdir=$ac_confdir
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1201 srcdir=..
1203 else
1204 ac_srcdir_defaulted=no
1206 if test ! -r "$srcdir/$ac_unique_file"; then
1207 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1208 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1210 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1211 ac_abs_confdir=`(
1212 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1213 pwd)`
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1221 case $srcdir in
1222 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 esac
1224 for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 done
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1247 Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1293 cat <<\_ACEOF
1295 System types:
1296 --build=BUILD configure for building on BUILD [guessed]
1297 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1298 _ACEOF
1301 if test -n "$ac_init_help"; then
1302 case $ac_init_help in
1303 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1304 esac
1305 cat <<\_ACEOF
1307 Optional Features:
1308 --disable-option-checking ignore unrecognized --enable/--with options
1309 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1310 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1311 --disable-shared don't provide a shared libgcc
1312 --disable-gcov don't provide libgcov and related host tools
1313 --enable-vtable-verify Enable vtable verification feature
1314 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1315 --enable-maintainer-mode
1316 enable make rules and dependencies not useful (and
1317 sometimes confusing) to the casual installer
1318 --disable-largefile omit support for large files
1319 --enable-decimal-float={no,yes,bid,dpd}
1320 enable decimal float extension to C. Selecting 'bid'
1321 or 'dpd' choses which decimal floating point format
1322 to use
1323 --enable-cet enable Intel CET in target libraries [default=no]
1324 --enable-explicit-exception-frame-registration
1325 register exception tables explicitly at module
1326 start, for use e.g. for compatibility with
1327 installations without PT_GNU_EH_FRAME support
1328 --enable-tls Use thread-local storage [default=yes]
1330 Optional Packages:
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1334 --with-cross-host=HOST Configuring with a cross compiler
1335 --with-ld arrange to use the specified ld (full pathname)
1336 --with-aix-soname=aix|svr4|both
1337 shared library versioning (aka "SONAME") variant to
1338 provide on AIX
1339 --with-slibdir=DIR shared libraries in DIR LIBDIR
1340 --with-build-libsubdir=DIR Directory where to find libraries for build system
1341 --with-system-libunwind use installed libunwind
1342 --with-glibc-version=M.N
1343 assume GCC used with glibc version M.N or later
1344 --with-gcc-major-version-only
1345 use only GCC major number in filesystem paths
1347 Some influential environment variables:
1348 CC C compiler command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1351 nonstandard directory <lib dir>
1352 LIBS libraries to pass to the linker, e.g. -l<library>
1353 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1354 you have headers in a nonstandard directory <include dir>
1355 CPP C preprocessor
1357 Use these variables to override the choices made by `configure' or to help
1358 it to find libraries and programs with nonstandard names/locations.
1360 Report bugs to the package provider.
1361 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1362 General help using GNU software: <http://www.gnu.org/gethelp/>.
1363 _ACEOF
1364 ac_status=$?
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" ||
1371 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1372 continue
1373 ac_builddir=.
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 GNU C Runtime Library configure 1.0
1426 generated by GNU Autoconf 2.64
1428 Copyright (C) 2009 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1431 _ACEOF
1432 exit
1435 ## ------------------------ ##
1436 ## Autoconf initialization. ##
1437 ## ------------------------ ##
1439 # ac_fn_c_try_compile LINENO
1440 # --------------------------
1441 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1442 ac_fn_c_try_compile ()
1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445 rm -f conftest.$ac_objext
1446 if { { ac_try="$ac_compile"
1447 case "(($ac_try" in
1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449 *) ac_try_echo=$ac_try;;
1450 esac
1451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452 $as_echo "$ac_try_echo"; } >&5
1453 (eval "$ac_compile") 2>conftest.err
1454 ac_status=$?
1455 if test -s conftest.err; then
1456 grep -v '^ *+' conftest.err >conftest.er1
1457 cat conftest.er1 >&5
1458 mv -f conftest.er1 conftest.err
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } && {
1462 test -z "$ac_c_werror_flag" ||
1463 test ! -s conftest.err
1464 } && test -s conftest.$ac_objext; then :
1465 ac_retval=0
1466 else
1467 $as_echo "$as_me: failed program was:" >&5
1468 sed 's/^/| /' conftest.$ac_ext >&5
1470 ac_retval=1
1472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1473 return $ac_retval
1475 } # ac_fn_c_try_compile
1477 # ac_fn_c_try_cpp LINENO
1478 # ----------------------
1479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_c_try_cpp ()
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 if { { ac_try="$ac_cpp conftest.$ac_ext"
1484 case "(($ac_try" in
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1487 esac
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 $as_echo "$ac_try_echo"; } >&5
1490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1491 ac_status=$?
1492 if test -s conftest.err; then
1493 grep -v '^ *+' conftest.err >conftest.er1
1494 cat conftest.er1 >&5
1495 mv -f conftest.er1 conftest.err
1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498 test $ac_status = 0; } >/dev/null && {
1499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1500 test ! -s conftest.err
1501 }; then :
1502 ac_retval=0
1503 else
1504 $as_echo "$as_me: failed program was:" >&5
1505 sed 's/^/| /' conftest.$ac_ext >&5
1507 ac_retval=1
1509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1510 return $ac_retval
1512 } # ac_fn_c_try_cpp
1514 # ac_fn_c_try_run LINENO
1515 # ----------------------
1516 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1517 # that executables *can* be run.
1518 ac_fn_c_try_run ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 if { { ac_try="$ac_link"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_link") 2>&5
1529 ac_status=$?
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1532 { { case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_try") 2>&5
1539 ac_status=$?
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; }; }; then :
1542 ac_retval=0
1543 else
1544 $as_echo "$as_me: program exited with status $ac_status" >&5
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1548 ac_retval=$ac_status
1550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552 return $ac_retval
1554 } # ac_fn_c_try_run
1556 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1557 # --------------------------------------------
1558 # Tries to find the compile-time value of EXPR in a program that includes
1559 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1560 # computed
1561 ac_fn_c_compute_int ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 if test "$cross_compiling" = yes; then
1565 # Depending upon the size, compute the lo and hi bounds.
1566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1567 /* end confdefs.h. */
1570 main ()
1572 static int test_array [1 - 2 * !(($2) >= 0)];
1573 test_array [0] = 0
1576 return 0;
1578 _ACEOF
1579 if ac_fn_c_try_compile "$LINENO"; then :
1580 ac_lo=0 ac_mid=0
1581 while :; do
1582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583 /* end confdefs.h. */
1586 main ()
1588 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1589 test_array [0] = 0
1592 return 0;
1594 _ACEOF
1595 if ac_fn_c_try_compile "$LINENO"; then :
1596 ac_hi=$ac_mid; break
1597 else
1598 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1599 if test $ac_lo -le $ac_mid; then
1600 ac_lo= ac_hi=
1601 break
1603 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 done
1607 else
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1612 main ()
1614 static int test_array [1 - 2 * !(($2) < 0)];
1615 test_array [0] = 0
1618 return 0;
1620 _ACEOF
1621 if ac_fn_c_try_compile "$LINENO"; then :
1622 ac_hi=-1 ac_mid=-1
1623 while :; do
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1628 main ()
1630 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1631 test_array [0] = 0
1634 return 0;
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 ac_lo=$ac_mid; break
1639 else
1640 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1641 if test $ac_mid -le $ac_hi; then
1642 ac_lo= ac_hi=
1643 break
1645 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 done
1649 else
1650 ac_lo= ac_hi=
1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 # Binary search between lo and hi bounds.
1656 while test "x$ac_lo" != "x$ac_hi"; do
1657 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1662 main ()
1664 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1665 test_array [0] = 0
1668 return 0;
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_hi=$ac_mid
1673 else
1674 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 done
1678 case $ac_lo in #((
1679 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1680 '') ac_retval=1 ;;
1681 esac
1682 else
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1686 static long int longval () { return $2; }
1687 static unsigned long int ulongval () { return $2; }
1688 #include <stdio.h>
1689 #include <stdlib.h>
1691 main ()
1694 FILE *f = fopen ("conftest.val", "w");
1695 if (! f)
1696 return 1;
1697 if (($2) < 0)
1699 long int i = longval ();
1700 if (i != ($2))
1701 return 1;
1702 fprintf (f, "%ld", i);
1704 else
1706 unsigned long int i = ulongval ();
1707 if (i != ($2))
1708 return 1;
1709 fprintf (f, "%lu", i);
1711 /* Do not output a trailing newline, as this causes \r\n confusion
1712 on some platforms. */
1713 return ferror (f) || fclose (f) != 0;
1716 return 0;
1718 _ACEOF
1719 if ac_fn_c_try_run "$LINENO"; then :
1720 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1721 else
1722 ac_retval=1
1724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1725 conftest.$ac_objext conftest.beam conftest.$ac_ext
1726 rm -f conftest.val
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 return $ac_retval
1732 } # ac_fn_c_compute_int
1734 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1735 # ----------------------------------------------
1736 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_preproc ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_cpp "$LINENO"; then :
1750 eval "$3=yes"
1751 else
1752 eval "$3=no"
1754 rm -f conftest.err conftest.$ac_ext
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 } # ac_fn_c_check_header_preproc
1762 cat >config.log <<_ACEOF
1763 This file contains any messages produced by compilers while
1764 running configure, to aid debugging if configure makes a mistake.
1766 It was created by GNU C Runtime Library $as_me 1.0, which was
1767 generated by GNU Autoconf 2.64. Invocation command line was
1769 $ $0 $@
1771 _ACEOF
1772 exec 5>>config.log
1774 cat <<_ASUNAME
1775 ## --------- ##
1776 ## Platform. ##
1777 ## --------- ##
1779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1786 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1788 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1789 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1791 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1792 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1793 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1794 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1796 _ASUNAME
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 $as_echo "PATH: $as_dir"
1804 done
1805 IFS=$as_save_IFS
1807 } >&5
1809 cat >&5 <<_ACEOF
1812 ## ----------- ##
1813 ## Core tests. ##
1814 ## ----------- ##
1816 _ACEOF
1819 # Keep a trace of the command line.
1820 # Strip out --no-create and --no-recursion so they do not pile up.
1821 # Strip out --silent because we don't want to record it for future runs.
1822 # Also quote any args containing shell meta-characters.
1823 # Make two passes to allow for proper duplicate-argument suppression.
1824 ac_configure_args=
1825 ac_configure_args0=
1826 ac_configure_args1=
1827 ac_must_keep_next=false
1828 for ac_pass in 1 2
1830 for ac_arg
1832 case $ac_arg in
1833 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1835 | -silent | --silent | --silen | --sile | --sil)
1836 continue ;;
1837 *\'*)
1838 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1839 esac
1840 case $ac_pass in
1841 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1843 as_fn_append ac_configure_args1 " '$ac_arg'"
1844 if test $ac_must_keep_next = true; then
1845 ac_must_keep_next=false # Got value, back to normal.
1846 else
1847 case $ac_arg in
1848 *=* | --config-cache | -C | -disable-* | --disable-* \
1849 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1850 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1851 | -with-* | --with-* | -without-* | --without-* | --x)
1852 case "$ac_configure_args0 " in
1853 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1854 esac
1856 -* ) ac_must_keep_next=true ;;
1857 esac
1859 as_fn_append ac_configure_args " '$ac_arg'"
1861 esac
1862 done
1863 done
1864 { ac_configure_args0=; unset ac_configure_args0;}
1865 { ac_configure_args1=; unset ac_configure_args1;}
1867 # When interrupted or exit'd, cleanup temporary files, and complete
1868 # config.log. We remove comments because anyway the quotes in there
1869 # would cause problems or look ugly.
1870 # WARNING: Use '\'' to represent an apostrophe within the trap.
1871 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1872 trap 'exit_status=$?
1873 # Save into config.log some information that might help in debugging.
1875 echo
1877 cat <<\_ASBOX
1878 ## ---------------- ##
1879 ## Cache variables. ##
1880 ## ---------------- ##
1881 _ASBOX
1882 echo
1883 # The following way of writing the cache mishandles newlines in values,
1885 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1886 eval ac_val=\$$ac_var
1887 case $ac_val in #(
1888 *${as_nl}*)
1889 case $ac_var in #(
1890 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1891 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1892 esac
1893 case $ac_var in #(
1894 _ | IFS | as_nl) ;; #(
1895 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1896 *) { eval $ac_var=; unset $ac_var;} ;;
1897 esac ;;
1898 esac
1899 done
1900 (set) 2>&1 |
1901 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1902 *${as_nl}ac_space=\ *)
1903 sed -n \
1904 "s/'\''/'\''\\\\'\'''\''/g;
1905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1906 ;; #(
1908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1910 esac |
1911 sort
1913 echo
1915 cat <<\_ASBOX
1916 ## ----------------- ##
1917 ## Output variables. ##
1918 ## ----------------- ##
1919 _ASBOX
1920 echo
1921 for ac_var in $ac_subst_vars
1923 eval ac_val=\$$ac_var
1924 case $ac_val in
1925 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1926 esac
1927 $as_echo "$ac_var='\''$ac_val'\''"
1928 done | sort
1929 echo
1931 if test -n "$ac_subst_files"; then
1932 cat <<\_ASBOX
1933 ## ------------------- ##
1934 ## File substitutions. ##
1935 ## ------------------- ##
1936 _ASBOX
1937 echo
1938 for ac_var in $ac_subst_files
1940 eval ac_val=\$$ac_var
1941 case $ac_val in
1942 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1943 esac
1944 $as_echo "$ac_var='\''$ac_val'\''"
1945 done | sort
1946 echo
1949 if test -s confdefs.h; then
1950 cat <<\_ASBOX
1951 ## ----------- ##
1952 ## confdefs.h. ##
1953 ## ----------- ##
1954 _ASBOX
1955 echo
1956 cat confdefs.h
1957 echo
1959 test "$ac_signal" != 0 &&
1960 $as_echo "$as_me: caught signal $ac_signal"
1961 $as_echo "$as_me: exit $exit_status"
1962 } >&5
1963 rm -f core *.core core.conftest.* &&
1964 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1965 exit $exit_status
1967 for ac_signal in 1 2 13 15; do
1968 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1969 done
1970 ac_signal=0
1972 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1973 rm -f -r conftest* confdefs.h
1975 $as_echo "/* confdefs.h */" > confdefs.h
1977 # Predefined preprocessor variables.
1979 cat >>confdefs.h <<_ACEOF
1980 #define PACKAGE_NAME "$PACKAGE_NAME"
1981 _ACEOF
1983 cat >>confdefs.h <<_ACEOF
1984 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1985 _ACEOF
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1989 _ACEOF
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_STRING "$PACKAGE_STRING"
1993 _ACEOF
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1997 _ACEOF
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_URL "$PACKAGE_URL"
2001 _ACEOF
2004 # Let the site file select an alternate cache file if it wants to.
2005 # Prefer an explicitly selected file to automatically selected ones.
2006 ac_site_file1=NONE
2007 ac_site_file2=NONE
2008 if test -n "$CONFIG_SITE"; then
2009 ac_site_file1=$CONFIG_SITE
2010 elif test "x$prefix" != xNONE; then
2011 ac_site_file1=$prefix/share/config.site
2012 ac_site_file2=$prefix/etc/config.site
2013 else
2014 ac_site_file1=$ac_default_prefix/share/config.site
2015 ac_site_file2=$ac_default_prefix/etc/config.site
2017 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2019 test "x$ac_site_file" = xNONE && continue
2020 if test -r "$ac_site_file"; then
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2022 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2023 sed 's/^/| /' "$ac_site_file" >&5
2024 . "$ac_site_file"
2026 done
2028 if test -r "$cache_file"; then
2029 # Some versions of bash will fail to source /dev/null (special
2030 # files actually), so we avoid doing that.
2031 if test -f "$cache_file"; then
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2033 $as_echo "$as_me: loading cache $cache_file" >&6;}
2034 case $cache_file in
2035 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2036 *) . "./$cache_file";;
2037 esac
2039 else
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2041 $as_echo "$as_me: creating cache $cache_file" >&6;}
2042 >$cache_file
2045 # Check that the precious variables saved in the cache have kept the same
2046 # value.
2047 ac_cache_corrupted=false
2048 for ac_var in $ac_precious_vars; do
2049 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2050 eval ac_new_set=\$ac_env_${ac_var}_set
2051 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2052 eval ac_new_val=\$ac_env_${ac_var}_value
2053 case $ac_old_set,$ac_new_set in
2054 set,)
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2056 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2057 ac_cache_corrupted=: ;;
2058 ,set)
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2060 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2061 ac_cache_corrupted=: ;;
2062 ,);;
2064 if test "x$ac_old_val" != "x$ac_new_val"; then
2065 # differences in whitespace do not lead to failure.
2066 ac_old_val_w=`echo x $ac_old_val`
2067 ac_new_val_w=`echo x $ac_new_val`
2068 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2070 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2071 ac_cache_corrupted=:
2072 else
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2074 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2075 eval $ac_var=\$ac_old_val
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2078 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2080 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2081 fi;;
2082 esac
2083 # Pass precious variables to config.status.
2084 if test "$ac_new_set" = set; then
2085 case $ac_new_val in
2086 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 *) ac_arg=$ac_var=$ac_new_val ;;
2088 esac
2089 case " $ac_configure_args " in
2090 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2091 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2092 esac
2094 done
2095 if $ac_cache_corrupted; then
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2099 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2100 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2102 ## -------------------- ##
2103 ## Main body of script. ##
2104 ## -------------------- ##
2106 ac_ext=c
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 # The libgcc should not depend on any header files
2122 # Check whether --with-target-subdir was given.
2123 if test "${with_target_subdir+set}" = set; then :
2124 withval=$with_target_subdir;
2128 # Check whether --with-cross-host was given.
2129 if test "${with_cross_host+set}" = set; then :
2130 withval=$with_cross_host;
2134 # Check whether --with-ld was given.
2135 if test "${with_ld+set}" = set; then :
2136 withval=$with_ld;
2140 if test "${srcdir}" = "."; then
2141 if test -n "${with_build_subdir}"; then
2142 libgcc_topdir="${srcdir}/../.."
2143 with_target_subdir=
2144 elif test -z "${with_target_subdir}"; then
2145 libgcc_topdir="${srcdir}/.."
2146 else
2147 if test "${with_target_subdir}" != "."; then
2148 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2149 else
2150 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2153 else
2154 libgcc_topdir="${srcdir}/.."
2157 ac_aux_dir=
2158 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2159 for ac_t in install-sh install.sh shtool; do
2160 if test -f "$ac_dir/$ac_t"; then
2161 ac_aux_dir=$ac_dir
2162 ac_install_sh="$ac_aux_dir/$ac_t -c"
2163 break 2
2165 done
2166 done
2167 if test -z "$ac_aux_dir"; then
2168 as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2171 # These three variables are undocumented and unsupported,
2172 # and are intended to be withdrawn in a future Autoconf release.
2173 # They can cause serious problems if a builder's source tree is in a directory
2174 # whose full name contains unusual characters.
2175 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2176 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2177 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2180 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2183 # Check whether --enable-shared was given.
2184 if test "${enable_shared+set}" = set; then :
2185 enableval=$enable_shared;
2186 case $enable_shared in
2187 yes | no) ;;
2189 enable_shared=no
2190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2191 for pkg in $enableval; do
2192 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2193 enable_shared=yes
2195 done
2196 IFS="$ac_save_ifs"
2198 esac
2200 else
2201 enable_shared=yes
2206 # Check whether --enable-gcov was given.
2207 if test "${enable_gcov+set}" = set; then :
2208 enableval=$enable_gcov;
2209 else
2210 enable_gcov=yes
2215 # Check whether --enable-vtable-verify was given.
2216 if test "${enable_vtable_verify+set}" = set; then :
2217 enableval=$enable_vtable_verify; case "$enableval" in
2218 yes) enable_vtable_verify=yes ;;
2219 no) enable_vtable_verify=no ;;
2220 *) enable_vtable_verify=no;;
2221 esac
2222 else
2223 enable_vtable_verify=no
2229 # Check whether --with-aix-soname was given.
2230 if test "${with_aix_soname+set}" = set; then :
2231 withval=$with_aix_soname; case "${host}:${enable_shared}" in
2232 power*-*-aix[5-9]*:yes)
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
2234 $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
2235 case ${withval} in
2236 aix|svr4|both) ;;
2237 *) as_fn_error "Unknown argument to --with-aix-soname" "$LINENO" 5;;
2238 esac
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2240 $as_echo "$withval" >&6; }
2242 *) with_aix_soname=aix ;;
2243 esac
2245 else
2246 with_aix_soname=aix
2251 # Make sure we can run config.sub.
2252 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2253 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2256 $as_echo_n "checking build system type... " >&6; }
2257 if test "${ac_cv_build+set}" = set; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 ac_build_alias=$build_alias
2261 test "x$ac_build_alias" = x &&
2262 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2263 test "x$ac_build_alias" = x &&
2264 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2265 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2266 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2270 $as_echo "$ac_cv_build" >&6; }
2271 case $ac_cv_build in
2272 *-*-*) ;;
2273 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2274 esac
2275 build=$ac_cv_build
2276 ac_save_IFS=$IFS; IFS='-'
2277 set x $ac_cv_build
2278 shift
2279 build_cpu=$1
2280 build_vendor=$2
2281 shift; shift
2282 # Remember, the first character of IFS is used to create $*,
2283 # except with old shells:
2284 build_os=$*
2285 IFS=$ac_save_IFS
2286 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2290 $as_echo_n "checking host system type... " >&6; }
2291 if test "${ac_cv_host+set}" = set; then :
2292 $as_echo_n "(cached) " >&6
2293 else
2294 if test "x$host_alias" = x; then
2295 ac_cv_host=$ac_cv_build
2296 else
2297 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2298 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2303 $as_echo "$ac_cv_host" >&6; }
2304 case $ac_cv_host in
2305 *-*-*) ;;
2306 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2307 esac
2308 host=$ac_cv_host
2309 ac_save_IFS=$IFS; IFS='-'
2310 set x $ac_cv_host
2311 shift
2312 host_cpu=$1
2313 host_vendor=$2
2314 shift; shift
2315 # Remember, the first character of IFS is used to create $*,
2316 # except with old shells:
2317 host_os=$*
2318 IFS=$ac_save_IFS
2319 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2326 case "${host}" in
2327 # PIC is the default on some targets or must not be used.
2328 *-*-darwin*)
2329 # For darwin, common symbols are not allowed in MH_DYLIB files
2330 case "${CFLAGS}" in
2331 # If we are using a compiler supporting mdynamic-no-pic
2332 # and the option has been tested as safe to add, then cancel
2333 # it here, since the code generated is incompatible with shared
2334 # libs.
2335 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
2336 *) PICFLAG=-fno-common ;;
2337 esac
2339 alpha*-dec-osf5*)
2340 # PIC is the default.
2342 hppa*64*-*-hpux*)
2343 # PIC is the default for 64-bit PA HP-UX.
2345 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2347 i[34567]86-*-mingw* | x86_64-*-mingw*)
2349 i[34567]86-*-interix[3-9]*)
2350 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2351 # Instead, we relocate shared libraries at runtime.
2353 i[34567]86-*-nto-qnx*)
2354 # QNX uses GNU C++, but need to define -shared option too, otherwise
2355 # it will coredump.
2356 PICFLAG='-fPIC -shared'
2358 i[34567]86-pc-msdosdjgpp*)
2359 # DJGPP does not support shared libraries at all.
2361 ia64*-*-hpux*)
2362 # On IA64 HP-UX, PIC is the default but the pic flag
2363 # sets the default TLS model and affects inlining.
2364 PICFLAG=-fPIC
2366 mips-sgi-irix6*)
2367 # PIC is the default.
2369 rs6000-ibm-aix* | powerpc-ibm-aix*)
2370 # All AIX code is PIC.
2373 # Some targets support both -fPIC and -fpic, but prefer the latter.
2374 # FIXME: Why?
2375 i[34567]86-*-* | x86_64-*-*)
2376 PICFLAG=-fpic
2378 # FIXME: Override -fPIC default in libgcc only?
2379 sh-*-linux* | sh[2346lbe]*-*-linux*)
2380 PICFLAG=-fpic
2382 # FIXME: Simplify to sh*-*-netbsd*?
2383 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2384 sh64-*-netbsd* | sh64l*-*-netbsd*)
2385 PICFLAG=-fpic
2387 # Default to -fPIC unless specified otherwise.
2389 PICFLAG=-fPIC
2391 esac
2393 # If the user explicitly uses -fpic/-fPIC, keep that.
2394 case "${CFLAGS}" in
2395 *-fpic*)
2396 PICFLAG=-fpic
2398 *-fPIC*)
2399 PICFLAG=-fPIC
2401 esac
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2406 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2407 # Check whether --enable-version-specific-runtime-libs was given.
2408 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2409 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2410 yes) version_specific_libs=yes ;;
2411 no) version_specific_libs=no ;;
2412 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2413 esac
2414 else
2415 version_specific_libs=no
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2419 $as_echo "$version_specific_libs" >&6; }
2422 # Check whether --with-slibdir was given.
2423 if test "${with_slibdir+set}" = set; then :
2424 withval=$with_slibdir; slibdir="$with_slibdir"
2425 else
2426 if test "${version_specific_libs}" = yes; then
2427 slibdir='$(libsubdir)'
2428 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2429 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2430 else
2431 slibdir='$(libdir)'
2437 # Command-line options.
2438 # Very limited version of AC_MAINTAINER_MODE.
2439 # Check whether --enable-maintainer-mode was given.
2440 if test "${enable_maintainer_mode+set}" = set; then :
2441 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2442 yes) MAINT='' ;;
2443 no) MAINT='#' ;;
2444 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2445 esac
2446 maintainer_mode=${enableval}
2447 else
2448 MAINT='#'
2452 # Find a good install program. We prefer a C program (faster),
2453 # so one script is as good as another. But avoid the broken or
2454 # incompatible versions:
2455 # SysV /etc/install, /usr/sbin/install
2456 # SunOS /usr/etc/install
2457 # IRIX /sbin/install
2458 # AIX /bin/install
2459 # AmigaOS /C/install, which installs bootblocks on floppy discs
2460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2463 # OS/2's system install, which has a completely different semantic
2464 # ./install, which can be erroneously created by make from ./install.sh.
2465 # Reject install programs that cannot install multiple files.
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2467 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2468 if test -z "$INSTALL"; then
2469 if test "${ac_cv_path_install+set}" = set; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 # Account for people who put trailing slashes in PATH elements.
2478 case $as_dir/ in #((
2479 ./ | .// | /[cC]/* | \
2480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2481 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2482 /usr/ucb/* ) ;;
2484 # OSF1 and SCO ODT 3.0 have their own names for install.
2485 # Don't use installbsd from OSF since it installs stuff as root
2486 # by default.
2487 for ac_prog in ginstall scoinst install; do
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2490 if test $ac_prog = install &&
2491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # AIX install. It has an incompatible calling convention.
2494 elif test $ac_prog = install &&
2495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496 # program-specific install script used by HP pwplus--don't use.
2498 else
2499 rm -rf conftest.one conftest.two conftest.dir
2500 echo one > conftest.one
2501 echo two > conftest.two
2502 mkdir conftest.dir
2503 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2504 test -s conftest.one && test -s conftest.two &&
2505 test -s conftest.dir/conftest.one &&
2506 test -s conftest.dir/conftest.two
2507 then
2508 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2509 break 3
2513 done
2514 done
2516 esac
2518 done
2519 IFS=$as_save_IFS
2521 rm -rf conftest.one conftest.two conftest.dir
2524 if test "${ac_cv_path_install+set}" = set; then
2525 INSTALL=$ac_cv_path_install
2526 else
2527 # As a last resort, use the slow shell script. Don't cache a
2528 # value for INSTALL within a source directory, because that will
2529 # break other packages using the cache if that directory is
2530 # removed, or if the value is a relative name.
2531 INSTALL=$ac_install_sh
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2535 $as_echo "$INSTALL" >&6; }
2537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2538 # It thinks the first close brace ends the variable substitution.
2539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2543 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2546 for ac_prog in gawk mawk nawk awk
2548 # Extract the first word of "$ac_prog", so it can be a program name with args.
2549 set dummy $ac_prog; ac_word=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if test "${ac_cv_prog_AWK+set}" = set; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test -n "$AWK"; then
2556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 ac_cv_prog_AWK="$ac_prog"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2569 done
2570 done
2571 IFS=$as_save_IFS
2575 AWK=$ac_cv_prog_AWK
2576 if test -n "$AWK"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2578 $as_echo "$AWK" >&6; }
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2585 test -n "$AWK" && break
2586 done
2588 # We need awk; bail out if it's missing.
2589 case ${AWK} in
2590 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
2591 esac
2594 case ${build_alias} in
2595 "") build_noncanonical=${build} ;;
2596 *) build_noncanonical=${build_alias} ;;
2597 esac
2599 case ${host_alias} in
2600 "") host_noncanonical=${build_noncanonical} ;;
2601 *) host_noncanonical=${host_alias} ;;
2602 esac
2606 case ${target_alias} in
2607 "") target_noncanonical=${host_noncanonical} ;;
2608 *) target_noncanonical=${target_alias} ;;
2609 esac
2614 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2615 # have matching libraries, they should use host libraries: Makefile.tpl
2616 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2617 # However, they still use the build modules, because the corresponding
2618 # host modules (e.g. bison) are only built for the host when bootstrap
2619 # finishes. So:
2620 # - build_subdir is where we find build modules, and never changes.
2621 # - build_libsubdir is where we find build libraries, and can be overridden.
2623 # Prefix 'build-' so this never conflicts with target_subdir.
2624 build_subdir="build-${build_noncanonical}"
2626 # Check whether --with-build-libsubdir was given.
2627 if test "${with_build_libsubdir+set}" = set; then :
2628 withval=$with_build_libsubdir; build_libsubdir="$withval"
2629 else
2630 build_libsubdir="$build_subdir"
2633 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2634 if ( test $srcdir = . && test -d gcc ) \
2635 || test -d $srcdir/../host-${host_noncanonical}; then
2636 host_subdir="host-${host_noncanonical}"
2637 else
2638 host_subdir=.
2640 # No prefix.
2641 target_subdir=${target_noncanonical}
2644 # Calculate toolexeclibdir
2645 # Also toolexecdir, though it's only used in toolexeclibdir
2646 case ${version_specific_libs} in
2647 yes)
2648 # Need the gcc compiler version to know where to install libraries
2649 # and header files if --enable-version-specific-runtime-libs option
2650 # is selected.
2651 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2652 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2655 if test -n "$with_cross_host" &&
2656 test x"$with_cross_host" != x"no"; then
2657 # Install a library built with a cross compiler in tooldir, not libdir.
2658 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2659 toolexeclibdir='$(toolexecdir)/lib'
2660 else
2661 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2662 toolexeclibdir='$(libdir)'
2664 multi_os_directory=`$CC -print-multi-os-directory`
2665 case $multi_os_directory in
2666 .) ;; # Avoid trailing /.
2667 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2668 esac
2670 esac
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2676 set dummy ${ac_tool_prefix}ar; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if test "${ac_cv_prog_AR+set}" = set; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test -n "$AR"; then
2683 ac_cv_prog_AR="$AR" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_AR="${ac_tool_prefix}ar"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2698 IFS=$as_save_IFS
2702 AR=$ac_cv_prog_AR
2703 if test -n "$AR"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2705 $as_echo "$AR" >&6; }
2706 else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2713 if test -z "$ac_cv_prog_AR"; then
2714 ac_ct_AR=$AR
2715 # Extract the first word of "ar", so it can be a program name with args.
2716 set dummy ar; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$ac_ct_AR"; then
2723 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_ac_ct_AR="ar"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2736 done
2737 done
2738 IFS=$as_save_IFS
2742 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2743 if test -n "$ac_ct_AR"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2745 $as_echo "$ac_ct_AR" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2751 if test "x$ac_ct_AR" = x; then
2752 AR=""
2753 else
2754 case $cross_compiling:$ac_tool_warned in
2755 yes:)
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758 ac_tool_warned=yes ;;
2759 esac
2760 AR=$ac_ct_AR
2762 else
2763 AR="$ac_cv_prog_AR"
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if test "${ac_cv_prog_LIPO+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test -n "$LIPO"; then
2775 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2788 done
2789 done
2790 IFS=$as_save_IFS
2794 LIPO=$ac_cv_prog_LIPO
2795 if test -n "$LIPO"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2797 $as_echo "$LIPO" >&6; }
2798 else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2805 if test -z "$ac_cv_prog_LIPO"; then
2806 ac_ct_LIPO=$LIPO
2807 # Extract the first word of "lipo", so it can be a program name with args.
2808 set dummy lipo; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$ac_ct_LIPO"; then
2815 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_ac_ct_LIPO="lipo"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2828 done
2829 done
2830 IFS=$as_save_IFS
2834 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2835 if test -n "$ac_ct_LIPO"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2837 $as_echo "$ac_ct_LIPO" >&6; }
2838 else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2843 if test "x$ac_ct_LIPO" = x; then
2844 LIPO=":"
2845 else
2846 case $cross_compiling:$ac_tool_warned in
2847 yes:)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850 ac_tool_warned=yes ;;
2851 esac
2852 LIPO=$ac_ct_LIPO
2854 else
2855 LIPO="$ac_cv_prog_LIPO"
2858 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2860 set dummy ${ac_tool_prefix}nm; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if test "${ac_cv_prog_NM+set}" = set; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 if test -n "$NM"; then
2867 ac_cv_prog_NM="$NM" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_NM="${ac_tool_prefix}nm"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2880 done
2881 done
2882 IFS=$as_save_IFS
2886 NM=$ac_cv_prog_NM
2887 if test -n "$NM"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2889 $as_echo "$NM" >&6; }
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2897 if test -z "$ac_cv_prog_NM"; then
2898 ac_ct_NM=$NM
2899 # Extract the first word of "nm", so it can be a program name with args.
2900 set dummy nm; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 if test -n "$ac_ct_NM"; then
2907 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916 ac_cv_prog_ac_ct_NM="nm"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2920 done
2921 done
2922 IFS=$as_save_IFS
2926 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2927 if test -n "$ac_ct_NM"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2929 $as_echo "$ac_ct_NM" >&6; }
2930 else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2935 if test "x$ac_ct_NM" = x; then
2936 NM=""
2937 else
2938 case $cross_compiling:$ac_tool_warned in
2939 yes:)
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942 ac_tool_warned=yes ;;
2943 esac
2944 NM=$ac_ct_NM
2946 else
2947 NM="$ac_cv_prog_NM"
2950 if test -n "$ac_tool_prefix"; then
2951 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2952 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$RANLIB"; then
2959 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2972 done
2973 done
2974 IFS=$as_save_IFS
2978 RANLIB=$ac_cv_prog_RANLIB
2979 if test -n "$RANLIB"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2981 $as_echo "$RANLIB" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2989 if test -z "$ac_cv_prog_RANLIB"; then
2990 ac_ct_RANLIB=$RANLIB
2991 # Extract the first word of "ranlib", so it can be a program name with args.
2992 set dummy ranlib; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 if test -n "$ac_ct_RANLIB"; then
2999 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008 ac_cv_prog_ac_ct_RANLIB="ranlib"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3012 done
3013 done
3014 IFS=$as_save_IFS
3018 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3019 if test -n "$ac_ct_RANLIB"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3021 $as_echo "$ac_ct_RANLIB" >&6; }
3022 else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3027 if test "x$ac_ct_RANLIB" = x; then
3028 RANLIB=":"
3029 else
3030 case $cross_compiling:$ac_tool_warned in
3031 yes:)
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036 RANLIB=$ac_ct_RANLIB
3038 else
3039 RANLIB="$ac_cv_prog_RANLIB"
3042 if test -n "$ac_tool_prefix"; then
3043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3044 set dummy ${ac_tool_prefix}strip; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_STRIP+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 if test -n "$STRIP"; then
3051 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 break 2
3064 done
3065 done
3066 IFS=$as_save_IFS
3070 STRIP=$ac_cv_prog_STRIP
3071 if test -n "$STRIP"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3073 $as_echo "$STRIP" >&6; }
3074 else
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3081 if test -z "$ac_cv_prog_STRIP"; then
3082 ac_ct_STRIP=$STRIP
3083 # Extract the first word of "strip", so it can be a program name with args.
3084 set dummy strip; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test -n "$ac_ct_STRIP"; then
3091 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 ac_cv_prog_ac_ct_STRIP="strip"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3104 done
3105 done
3106 IFS=$as_save_IFS
3110 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3111 if test -n "$ac_ct_STRIP"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3113 $as_echo "$ac_ct_STRIP" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3119 if test "x$ac_ct_STRIP" = x; then
3120 STRIP=":"
3121 else
3122 case $cross_compiling:$ac_tool_warned in
3123 yes:)
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3126 ac_tool_warned=yes ;;
3127 esac
3128 STRIP=$ac_ct_STRIP
3130 else
3131 STRIP="$ac_cv_prog_STRIP"
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3135 $as_echo_n "checking whether ln -s works... " >&6; }
3136 LN_S=$as_ln_s
3137 if test "$LN_S" = "ln -s"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 $as_echo "yes" >&6; }
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3142 $as_echo "no, using $LN_S" >&6; }
3147 ac_ext=c
3148 ac_cpp='$CPP $CPPFLAGS'
3149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152 if test -n "$ac_tool_prefix"; then
3153 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3154 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if test "${ac_cv_prog_CC+set}" = set; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 if test -n "$CC"; then
3161 ac_cv_prog_CC="$CC" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 break 2
3174 done
3175 done
3176 IFS=$as_save_IFS
3180 CC=$ac_cv_prog_CC
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3191 if test -z "$ac_cv_prog_CC"; then
3192 ac_ct_CC=$CC
3193 # Extract the first word of "gcc", so it can be a program name with args.
3194 set dummy gcc; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 if test -n "$ac_ct_CC"; then
3201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_ac_ct_CC="gcc"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3214 done
3215 done
3216 IFS=$as_save_IFS
3220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221 if test -n "$ac_ct_CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3223 $as_echo "$ac_ct_CC" >&6; }
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3229 if test "x$ac_ct_CC" = x; then
3230 CC=""
3231 else
3232 case $cross_compiling:$ac_tool_warned in
3233 yes:)
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3236 ac_tool_warned=yes ;;
3237 esac
3238 CC=$ac_ct_CC
3240 else
3241 CC="$ac_cv_prog_CC"
3244 if test -z "$CC"; then
3245 if test -n "$ac_tool_prefix"; then
3246 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3247 set dummy ${ac_tool_prefix}cc; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if test "${ac_cv_prog_CC+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 if test -n "$CC"; then
3254 ac_cv_prog_CC="$CC" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3263 ac_cv_prog_CC="${ac_tool_prefix}cc"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3267 done
3268 done
3269 IFS=$as_save_IFS
3273 CC=$ac_cv_prog_CC
3274 if test -n "$CC"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276 $as_echo "$CC" >&6; }
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3285 if test -z "$CC"; then
3286 # Extract the first word of "cc", so it can be a program name with args.
3287 set dummy cc; ac_word=$2
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if test "${ac_cv_prog_CC+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 else
3296 ac_prog_rejected=no
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3304 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3305 ac_prog_rejected=yes
3306 continue
3308 ac_cv_prog_CC="cc"
3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 break 2
3312 done
3313 done
3314 IFS=$as_save_IFS
3316 if test $ac_prog_rejected = yes; then
3317 # We found a bogon in the path, so make sure we never use it.
3318 set dummy $ac_cv_prog_CC
3319 shift
3320 if test $# != 0; then
3321 # We chose a different compiler from the bogus one.
3322 # However, it has the same basename, so the bogon will be chosen
3323 # first if we set CC to just the basename; use the full file name.
3324 shift
3325 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3330 CC=$ac_cv_prog_CC
3331 if test -n "$CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3341 if test -z "$CC"; then
3342 if test -n "$ac_tool_prefix"; then
3343 for ac_prog in cl.exe
3345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if test "${ac_cv_prog_CC+set}" = set; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 if test -n "$CC"; then
3353 ac_cv_prog_CC="$CC" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 break 2
3366 done
3367 done
3368 IFS=$as_save_IFS
3372 CC=$ac_cv_prog_CC
3373 if test -n "$CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3376 else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3382 test -n "$CC" && break
3383 done
3385 if test -z "$CC"; then
3386 ac_ct_CC=$CC
3387 for ac_prog in cl.exe
3389 # Extract the first word of "$ac_prog", so it can be a program name with args.
3390 set dummy $ac_prog; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 if test -n "$ac_ct_CC"; then
3397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406 ac_cv_prog_ac_ct_CC="$ac_prog"
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 break 2
3410 done
3411 done
3412 IFS=$as_save_IFS
3416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417 if test -n "$ac_ct_CC"; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3419 $as_echo "$ac_ct_CC" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3426 test -n "$ac_ct_CC" && break
3427 done
3429 if test "x$ac_ct_CC" = x; then
3430 CC=""
3431 else
3432 case $cross_compiling:$ac_tool_warned in
3433 yes:)
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3436 ac_tool_warned=yes ;;
3437 esac
3438 CC=$ac_ct_CC
3445 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error "no acceptable C compiler found in \$PATH
3448 See \`config.log' for more details." "$LINENO" 5; }
3450 # Provide some information about the compiler.
3451 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3452 set X $ac_compile
3453 ac_compiler=$2
3454 for ac_option in --version -v -V -qversion; do
3455 { { ac_try="$ac_compiler $ac_option >&5"
3456 case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3463 ac_status=$?
3464 if test -s conftest.err; then
3465 sed '10a\
3466 ... rest of stderr output deleted ...
3467 10q' conftest.err >conftest.er1
3468 cat conftest.er1 >&5
3469 rm -f conftest.er1 conftest.err
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }
3473 done
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3479 main ()
3483 return 0;
3485 _ACEOF
3486 # FIXME: Cleanup?
3487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3488 (eval $ac_link) 2>&5
3489 ac_status=$?
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }; then :
3492 gcc_no_link=no
3493 else
3494 gcc_no_link=yes
3496 if test x$gcc_no_link = xyes; then
3497 # Setting cross_compile will disable run tests; it will
3498 # also disable AC_CHECK_FILE but that's generally
3499 # correct if we can't link.
3500 cross_compiling=yes
3501 EXEEXT=
3502 else
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3507 main ()
3511 return 0;
3513 _ACEOF
3514 ac_clean_files_save=$ac_clean_files
3515 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3516 # Try to create an executable without -o first, disregard a.out.
3517 # It will help us diagnose broken compilers, and finding out an intuition
3518 # of exeext.
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3520 $as_echo_n "checking for C compiler default output file name... " >&6; }
3521 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3523 # The possible output files:
3524 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3526 ac_rmfiles=
3527 for ac_file in $ac_files
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3532 esac
3533 done
3534 rm -f $ac_rmfiles
3536 if { { ac_try="$ac_link_default"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_link_default") 2>&5
3544 ac_status=$?
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }; then :
3547 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3548 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3549 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3550 # so that the user can short-circuit this test for compilers unknown to
3551 # Autoconf.
3552 for ac_file in $ac_files ''
3554 test -f "$ac_file" || continue
3555 case $ac_file in
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3558 [ab].out )
3559 # We found the default executable, but exeext='' is most
3560 # certainly right.
3561 break;;
3562 *.* )
3563 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3564 then :; else
3565 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3567 # We set ac_cv_exeext here because the later test for it is not
3568 # safe: cross compilers may not add the suffix if given an `-o'
3569 # argument, so we may need to know it at that point already.
3570 # Even if this section looks crufty: it has the advantage of
3571 # actually working.
3572 break;;
3574 break;;
3575 esac
3576 done
3577 test "$ac_cv_exeext" = no && ac_cv_exeext=
3579 else
3580 ac_file=''
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3583 $as_echo "$ac_file" >&6; }
3584 if test -z "$ac_file"; then :
3585 $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 { as_fn_set_status 77
3591 as_fn_error "C compiler cannot create executables
3592 See \`config.log' for more details." "$LINENO" 5; }; }
3594 ac_exeext=$ac_cv_exeext
3596 # Check that the compiler produces executables we can run. If not, either
3597 # the compiler is broken, or we cross compile.
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3599 $as_echo_n "checking whether the C compiler works... " >&6; }
3600 # If not cross compiling, check that we can run a simple program.
3601 if test "$cross_compiling" != yes; then
3602 if { ac_try='./$ac_file'
3603 { { case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_try") 2>&5
3610 ac_status=$?
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }; }; then
3613 cross_compiling=no
3614 else
3615 if test "$cross_compiling" = maybe; then
3616 cross_compiling=yes
3617 else
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error "cannot run C compiled programs.
3621 If you meant to cross compile, use \`--host'.
3622 See \`config.log' for more details." "$LINENO" 5; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627 $as_echo "yes" >&6; }
3629 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3630 ac_clean_files=$ac_clean_files_save
3631 # Check that the compiler produces executables we can run. If not, either
3632 # the compiler is broken, or we cross compile.
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3634 $as_echo_n "checking whether we are cross compiling... " >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3636 $as_echo "$cross_compiling" >&6; }
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3639 $as_echo_n "checking for suffix of executables... " >&6; }
3640 if { { ac_try="$ac_link"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 $as_echo "$ac_try_echo"; } >&5
3647 (eval "$ac_link") 2>&5
3648 ac_status=$?
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }; then :
3651 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3652 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3653 # work properly (i.e., refer to `conftest.exe'), while it won't with
3654 # `rm'.
3655 for ac_file in conftest.exe conftest conftest.*; do
3656 test -f "$ac_file" || continue
3657 case $ac_file in
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660 break;;
3661 * ) break;;
3662 esac
3663 done
3664 else
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error "cannot compute suffix of executables: cannot compile and link
3668 See \`config.log' for more details." "$LINENO" 5; }
3670 rm -f conftest$ac_cv_exeext
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3672 $as_echo "$ac_cv_exeext" >&6; }
3674 rm -f conftest.$ac_ext
3675 EXEEXT=$ac_cv_exeext
3676 ac_exeext=$EXEEXT
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3679 $as_echo_n "checking for suffix of object files... " >&6; }
3680 if test "${ac_cv_objext+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3687 main ()
3691 return 0;
3693 _ACEOF
3694 rm -f conftest.o conftest.obj
3695 if { { ac_try="$ac_compile"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701 $as_echo "$ac_try_echo"; } >&5
3702 (eval "$ac_compile") 2>&5
3703 ac_status=$?
3704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705 test $ac_status = 0; }; then :
3706 for ac_file in conftest.o conftest.obj conftest.*; do
3707 test -f "$ac_file" || continue;
3708 case $ac_file in
3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3710 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3711 break;;
3712 esac
3713 done
3714 else
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error "cannot compute suffix of object files: cannot compile
3721 See \`config.log' for more details." "$LINENO" 5; }
3723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3726 $as_echo "$ac_cv_objext" >&6; }
3727 OBJEXT=$ac_cv_objext
3728 ac_objext=$OBJEXT
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3730 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3731 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3738 main ()
3740 #ifndef __GNUC__
3741 choke me
3742 #endif
3745 return 0;
3747 _ACEOF
3748 if ac_fn_c_try_compile "$LINENO"; then :
3749 ac_compiler_gnu=yes
3750 else
3751 ac_compiler_gnu=no
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3758 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3759 if test $ac_compiler_gnu = yes; then
3760 GCC=yes
3761 else
3762 GCC=
3764 ac_test_CFLAGS=${CFLAGS+set}
3765 ac_save_CFLAGS=$CFLAGS
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3767 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3768 if test "${ac_cv_prog_cc_g+set}" = set; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 ac_save_c_werror_flag=$ac_c_werror_flag
3772 ac_c_werror_flag=yes
3773 ac_cv_prog_cc_g=no
3774 CFLAGS="-g"
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3779 main ()
3783 return 0;
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"; then :
3787 ac_cv_prog_cc_g=yes
3788 else
3789 CFLAGS=""
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3794 main ()
3798 return 0;
3800 _ACEOF
3801 if ac_fn_c_try_compile "$LINENO"; then :
3803 else
3804 ac_c_werror_flag=$ac_save_c_werror_flag
3805 CFLAGS="-g"
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3810 main ()
3814 return 0;
3816 _ACEOF
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818 ac_cv_prog_cc_g=yes
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 ac_c_werror_flag=$ac_save_c_werror_flag
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3828 $as_echo "$ac_cv_prog_cc_g" >&6; }
3829 if test "$ac_test_CFLAGS" = set; then
3830 CFLAGS=$ac_save_CFLAGS
3831 elif test $ac_cv_prog_cc_g = yes; then
3832 if test "$GCC" = yes; then
3833 CFLAGS="-g -O2"
3834 else
3835 CFLAGS="-g"
3837 else
3838 if test "$GCC" = yes; then
3839 CFLAGS="-O2"
3840 else
3841 CFLAGS=
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3845 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3846 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 ac_cv_prog_cc_c89=no
3850 ac_save_CC=$CC
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853 #include <stdarg.h>
3854 #include <stdio.h>
3855 #include <sys/types.h>
3856 #include <sys/stat.h>
3857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3858 struct buf { int x; };
3859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3860 static char *e (p, i)
3861 char **p;
3862 int i;
3864 return p[i];
3866 static char *f (char * (*g) (char **, int), char **p, ...)
3868 char *s;
3869 va_list v;
3870 va_start (v,p);
3871 s = g (p, va_arg (v,int));
3872 va_end (v);
3873 return s;
3876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3877 function prototypes and stuff, but not '\xHH' hex character constants.
3878 These don't provoke an error unfortunately, instead are silently treated
3879 as 'x'. The following induces an error, until -std is added to get
3880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3881 array size at least. It's necessary to write '\x00'==0 to get something
3882 that's true only with -std. */
3883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3885 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3886 inside strings and character constants. */
3887 #define FOO(x) 'x'
3888 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3890 int test (int i, double x);
3891 struct s1 {int (*f) (int a);};
3892 struct s2 {int (*f) (double a);};
3893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3894 int argc;
3895 char **argv;
3897 main ()
3899 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3901 return 0;
3903 _ACEOF
3904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3907 CC="$ac_save_CC $ac_arg"
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv_prog_cc_c89=$ac_arg
3911 rm -f core conftest.err conftest.$ac_objext
3912 test "x$ac_cv_prog_cc_c89" != "xno" && break
3913 done
3914 rm -f conftest.$ac_ext
3915 CC=$ac_save_CC
3918 # AC_CACHE_VAL
3919 case "x$ac_cv_prog_cc_c89" in
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3922 $as_echo "none needed" >&6; } ;;
3923 xno)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3925 $as_echo "unsupported" >&6; } ;;
3927 CC="$CC $ac_cv_prog_cc_c89"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3929 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3930 esac
3931 if test "x$ac_cv_prog_cc_c89" != xno; then :
3935 ac_ext=c
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941 ac_ext=c
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3947 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3948 # On Suns, sometimes $CPP names a directory.
3949 if test -n "$CPP" && test -d "$CPP"; then
3950 CPP=
3952 if test -z "$CPP"; then
3953 if test "${ac_cv_prog_CPP+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3955 else
3956 # Double quotes because CPP needs to be expanded
3957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3959 ac_preproc_ok=false
3960 for ac_c_preproc_warn_flag in '' yes
3962 # Use a header file that comes with gcc, so configuring glibc
3963 # with a fresh cross-compiler works.
3964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3965 # <limits.h> exists even on freestanding compilers.
3966 # On the NeXT, cc -E runs the code through the compiler's parser,
3967 # not just through cpp. "Syntax error" is here to catch this case.
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970 #ifdef __STDC__
3971 # include <limits.h>
3972 #else
3973 # include <assert.h>
3974 #endif
3975 Syntax error
3976 _ACEOF
3977 if ac_fn_c_try_cpp "$LINENO"; then :
3979 else
3980 # Broken: fails on valid input.
3981 continue
3983 rm -f conftest.err conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether nonexistent headers
3986 # can be detected and how.
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989 #include <ac_nonexistent.h>
3990 _ACEOF
3991 if ac_fn_c_try_cpp "$LINENO"; then :
3992 # Broken: success on invalid input.
3993 continue
3994 else
3995 # Passes both tests.
3996 ac_preproc_ok=:
3997 break
3999 rm -f conftest.err conftest.$ac_ext
4001 done
4002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4003 rm -f conftest.err conftest.$ac_ext
4004 if $ac_preproc_ok; then :
4005 break
4008 done
4009 ac_cv_prog_CPP=$CPP
4012 CPP=$ac_cv_prog_CPP
4013 else
4014 ac_cv_prog_CPP=$CPP
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4017 $as_echo "$CPP" >&6; }
4018 ac_preproc_ok=false
4019 for ac_c_preproc_warn_flag in '' yes
4021 # Use a header file that comes with gcc, so configuring glibc
4022 # with a fresh cross-compiler works.
4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024 # <limits.h> exists even on freestanding compilers.
4025 # On the NeXT, cc -E runs the code through the compiler's parser,
4026 # not just through cpp. "Syntax error" is here to catch this case.
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4029 #ifdef __STDC__
4030 # include <limits.h>
4031 #else
4032 # include <assert.h>
4033 #endif
4034 Syntax error
4035 _ACEOF
4036 if ac_fn_c_try_cpp "$LINENO"; then :
4038 else
4039 # Broken: fails on valid input.
4040 continue
4042 rm -f conftest.err conftest.$ac_ext
4044 # OK, works on sane cases. Now check whether nonexistent headers
4045 # can be detected and how.
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 #include <ac_nonexistent.h>
4049 _ACEOF
4050 if ac_fn_c_try_cpp "$LINENO"; then :
4051 # Broken: success on invalid input.
4052 continue
4053 else
4054 # Passes both tests.
4055 ac_preproc_ok=:
4056 break
4058 rm -f conftest.err conftest.$ac_ext
4060 done
4061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4062 rm -f conftest.err conftest.$ac_ext
4063 if $ac_preproc_ok; then :
4065 else
4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4068 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4069 See \`config.log' for more details." "$LINENO" 5; }
4072 ac_ext=c
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 ac_c_preproc_warn_flag=yes
4082 # Check whether --enable-largefile was given.
4083 if test "${enable_largefile+set}" = set; then :
4084 enableval=$enable_largefile;
4087 if test "$enable_largefile" != no; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4090 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4091 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4092 $as_echo_n "(cached) " >&6
4093 else
4094 ac_cv_sys_largefile_CC=no
4095 if test "$GCC" != yes; then
4096 ac_save_CC=$CC
4097 while :; do
4098 # IRIX 6.2 and later do not support large files by default,
4099 # so use the C compiler's -n32 option if that helps.
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102 #include <sys/types.h>
4103 /* Check that off_t can represent 2**63 - 1 correctly.
4104 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4105 since some C++ compilers masquerading as C compilers
4106 incorrectly reject 9223372036854775807. */
4107 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4108 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4109 && LARGE_OFF_T % 2147483647 == 1)
4110 ? 1 : -1];
4112 main ()
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 break
4122 rm -f core conftest.err conftest.$ac_objext
4123 CC="$CC -n32"
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_cv_sys_largefile_CC=' -n32'; break
4127 rm -f core conftest.err conftest.$ac_objext
4128 break
4129 done
4130 CC=$ac_save_CC
4131 rm -f conftest.$ac_ext
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4135 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4136 if test "$ac_cv_sys_largefile_CC" != no; then
4137 CC=$CC$ac_cv_sys_largefile_CC
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4141 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4142 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 while :; do
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148 #include <sys/types.h>
4149 /* Check that off_t can represent 2**63 - 1 correctly.
4150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4151 since some C++ compilers masquerading as C compilers
4152 incorrectly reject 9223372036854775807. */
4153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4155 && LARGE_OFF_T % 2147483647 == 1)
4156 ? 1 : -1];
4158 main ()
4162 return 0;
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_cv_sys_file_offset_bits=no; break
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #define _FILE_OFFSET_BITS 64
4172 #include <sys/types.h>
4173 /* Check that off_t can represent 2**63 - 1 correctly.
4174 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4175 since some C++ compilers masquerading as C compilers
4176 incorrectly reject 9223372036854775807. */
4177 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4178 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4179 && LARGE_OFF_T % 2147483647 == 1)
4180 ? 1 : -1];
4182 main ()
4186 return 0;
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190 ac_cv_sys_file_offset_bits=64; break
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_cv_sys_file_offset_bits=unknown
4194 break
4195 done
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4198 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4199 case $ac_cv_sys_file_offset_bits in #(
4200 no | unknown) ;;
4202 cat >>confdefs.h <<_ACEOF
4203 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4204 _ACEOF
4206 esac
4207 rm -rf conftest*
4208 if test $ac_cv_sys_file_offset_bits = unknown; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4210 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4211 if test "${ac_cv_sys_large_files+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 while :; do
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #include <sys/types.h>
4218 /* Check that off_t can represent 2**63 - 1 correctly.
4219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4220 since some C++ compilers masquerading as C compilers
4221 incorrectly reject 9223372036854775807. */
4222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4224 && LARGE_OFF_T % 2147483647 == 1)
4225 ? 1 : -1];
4227 main ()
4231 return 0;
4233 _ACEOF
4234 if ac_fn_c_try_compile "$LINENO"; then :
4235 ac_cv_sys_large_files=no; break
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #define _LARGE_FILES 1
4241 #include <sys/types.h>
4242 /* Check that off_t can represent 2**63 - 1 correctly.
4243 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4244 since some C++ compilers masquerading as C compilers
4245 incorrectly reject 9223372036854775807. */
4246 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4247 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4248 && LARGE_OFF_T % 2147483647 == 1)
4249 ? 1 : -1];
4251 main ()
4255 return 0;
4257 _ACEOF
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259 ac_cv_sys_large_files=1; break
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 ac_cv_sys_large_files=unknown
4263 break
4264 done
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4267 $as_echo "$ac_cv_sys_large_files" >&6; }
4268 case $ac_cv_sys_large_files in #(
4269 no | unknown) ;;
4271 cat >>confdefs.h <<_ACEOF
4272 #define _LARGE_FILES $ac_cv_sys_large_files
4273 _ACEOF
4275 esac
4276 rm -rf conftest*
4282 # The cast to long int works around a bug in the HP C Compiler
4283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4285 # This bug is HP SR number 8606223364.
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4287 $as_echo_n "checking size of double... " >&6; }
4288 if test "${ac_cv_sizeof_double+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4293 else
4294 if test "$ac_cv_type_double" = yes; then
4295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4297 { as_fn_set_status 77
4298 as_fn_error "cannot compute sizeof (double)
4299 See \`config.log' for more details." "$LINENO" 5; }; }
4300 else
4301 ac_cv_sizeof_double=0
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4307 $as_echo "$ac_cv_sizeof_double" >&6; }
4311 cat >>confdefs.h <<_ACEOF
4312 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4313 _ACEOF
4316 # The cast to long int works around a bug in the HP C Compiler
4317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4319 # This bug is HP SR number 8606223364.
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4321 $as_echo_n "checking size of long double... " >&6; }
4322 if test "${ac_cv_sizeof_long_double+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4327 else
4328 if test "$ac_cv_type_long_double" = yes; then
4329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4331 { as_fn_set_status 77
4332 as_fn_error "cannot compute sizeof (long double)
4333 See \`config.log' for more details." "$LINENO" 5; }; }
4334 else
4335 ac_cv_sizeof_long_double=0
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4341 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4345 cat >>confdefs.h <<_ACEOF
4346 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4347 _ACEOF
4350 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4351 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4356 for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
4357 unistd.h sys/stat.h sys/types.h \
4358 string.h strings.h memory.h
4359 do :
4360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4361 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
4362 eval as_val=\$$as_ac_Header
4363 if test "x$as_val" = x""yes; then :
4364 cat >>confdefs.h <<_ACEOF
4365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366 _ACEOF
4369 done
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4372 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4373 if test "${ac_cv_path_GREP+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 if test -z "$GREP"; then
4377 ac_path_GREP_found=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_prog in grep ggrep; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4388 # Check for GNU ac_path_GREP and select it if it is found.
4389 # Check for GNU $ac_path_GREP
4390 case `"$ac_path_GREP" --version 2>&1` in
4391 *GNU*)
4392 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4394 ac_count=0
4395 $as_echo_n 0123456789 >"conftest.in"
4396 while :
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 $as_echo 'GREP' >> "conftest.nl"
4402 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404 as_fn_arith $ac_count + 1 && ac_count=$as_val
4405 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_GREP="$ac_path_GREP"
4408 ac_path_GREP_max=$ac_count
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4412 done
4413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414 esac
4416 $ac_path_GREP_found && break 3
4417 done
4418 done
4419 done
4420 IFS=$as_save_IFS
4421 if test -z "$ac_cv_path_GREP"; then
4422 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4424 else
4425 ac_cv_path_GREP=$GREP
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4430 $as_echo "$ac_cv_path_GREP" >&6; }
4431 GREP="$ac_cv_path_GREP"
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4435 $as_echo_n "checking for egrep... " >&6; }
4436 if test "${ac_cv_path_EGREP+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4440 then ac_cv_path_EGREP="$GREP -E"
4441 else
4442 if test -z "$EGREP"; then
4443 ac_path_EGREP_found=false
4444 # Loop through the user's path and test for each of PROGNAME-LIST
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_prog in egrep; do
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4453 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4454 # Check for GNU ac_path_EGREP and select it if it is found.
4455 # Check for GNU $ac_path_EGREP
4456 case `"$ac_path_EGREP" --version 2>&1` in
4457 *GNU*)
4458 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4460 ac_count=0
4461 $as_echo_n 0123456789 >"conftest.in"
4462 while :
4464 cat "conftest.in" "conftest.in" >"conftest.tmp"
4465 mv "conftest.tmp" "conftest.in"
4466 cp "conftest.in" "conftest.nl"
4467 $as_echo 'EGREP' >> "conftest.nl"
4468 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4470 as_fn_arith $ac_count + 1 && ac_count=$as_val
4471 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4472 # Best one so far, save it but keep looking for a better one
4473 ac_cv_path_EGREP="$ac_path_EGREP"
4474 ac_path_EGREP_max=$ac_count
4476 # 10*(2^10) chars as input seems more than enough
4477 test $ac_count -gt 10 && break
4478 done
4479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4480 esac
4482 $ac_path_EGREP_found && break 3
4483 done
4484 done
4485 done
4486 IFS=$as_save_IFS
4487 if test -z "$ac_cv_path_EGREP"; then
4488 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490 else
4491 ac_cv_path_EGREP=$EGREP
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4497 $as_echo "$ac_cv_path_EGREP" >&6; }
4498 EGREP="$ac_cv_path_EGREP"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4502 $as_echo_n "checking for ANSI C header files... " >&6; }
4503 if test "${ac_cv_header_stdc+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 #include <stdlib.h>
4509 #include <stdarg.h>
4510 #include <string.h>
4511 #include <float.h>
4514 main ()
4518 return 0;
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522 ac_cv_header_stdc=yes
4523 else
4524 ac_cv_header_stdc=no
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 if test $ac_cv_header_stdc = yes; then
4529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 #include <string.h>
4534 _ACEOF
4535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4536 $EGREP "memchr" >/dev/null 2>&1; then :
4538 else
4539 ac_cv_header_stdc=no
4541 rm -f conftest*
4545 if test $ac_cv_header_stdc = yes; then
4546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4549 #include <stdlib.h>
4551 _ACEOF
4552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4553 $EGREP "free" >/dev/null 2>&1; then :
4555 else
4556 ac_cv_header_stdc=no
4558 rm -f conftest*
4562 if test $ac_cv_header_stdc = yes; then
4563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4564 if test "$cross_compiling" = yes; then :
4566 else
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 #include <ctype.h>
4570 #include <stdlib.h>
4571 #if ((' ' & 0x0FF) == 0x020)
4572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4574 #else
4575 # define ISLOWER(c) \
4576 (('a' <= (c) && (c) <= 'i') \
4577 || ('j' <= (c) && (c) <= 'r') \
4578 || ('s' <= (c) && (c) <= 'z'))
4579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4580 #endif
4582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4584 main ()
4586 int i;
4587 for (i = 0; i < 256; i++)
4588 if (XOR (islower (i), ISLOWER (i))
4589 || toupper (i) != TOUPPER (i))
4590 return 2;
4591 return 0;
4593 _ACEOF
4594 if ac_fn_c_try_run "$LINENO"; then :
4596 else
4597 ac_cv_header_stdc=no
4599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4600 conftest.$ac_objext conftest.beam conftest.$ac_ext
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4606 $as_echo "$ac_cv_header_stdc" >&6; }
4607 if test $ac_cv_header_stdc = yes; then
4609 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4614 # Check for decimal float support.
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4616 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4617 if test "${libgcc_cv_dfp+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4623 #include <fenv.h>
4626 main ()
4629 _Decimal32 x;
4630 int fe_except =
4631 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4634 return 0;
4636 _ACEOF
4637 if ac_fn_c_try_compile "$LINENO"; then :
4638 libgcc_cv_dfp=yes
4639 else
4640 libgcc_cv_dfp=no
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4645 $as_echo "$libgcc_cv_dfp" >&6; }
4646 decimal_float=$libgcc_cv_dfp
4650 # Check whether --enable-decimal-float was given.
4651 if test "${enable_decimal_float+set}" = set; then :
4652 enableval=$enable_decimal_float;
4653 case $enable_decimal_float in
4654 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4655 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4656 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4657 esac
4659 else
4661 case $host in
4662 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4663 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
4664 i?86*-*-mingw* | x86_64*-*-mingw* | \
4665 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4666 enable_decimal_float=yes
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4670 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4671 enable_decimal_float=no
4673 esac
4678 # x86's use BID format instead of DPD
4679 case x$enable_decimal_float in
4680 xyes)
4681 case $host in
4682 i?86*-*-* | x86_64*-*-*)
4683 enable_decimal_float=bid
4686 enable_decimal_float=dpd
4688 esac
4689 default_decimal_float=$enable_decimal_float
4691 xno)
4692 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4693 # dependency on libdecnumber.
4694 default_decimal_float=dpd
4696 esac
4701 # Check for fixed-point support.
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4703 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4704 if test "${libgcc_cv_fixed_point+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 _Sat _Fract x;
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712 libgcc_cv_fixed_point=yes
4713 else
4714 libgcc_cv_fixed_point=no
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4719 $as_echo "$libgcc_cv_fixed_point" >&6; }
4720 fixed_point=$libgcc_cv_fixed_point
4723 # For platforms with the unwind ABI which includes an unwind library,
4724 # libunwind, we can choose to use the system libunwind.
4725 # config.gcc also contains tests of with_system_libunwind.
4728 # Check whether --with-system-libunwind was given.
4729 if test "${with_system_libunwind+set}" = set; then :
4730 withval=$with_system_libunwind;
4733 # If system-libunwind was not specifically set, pick a default setting.
4734 if test x$with_system_libunwind = x; then
4735 case ${target} in
4736 ia64-*-hpux*) with_system_libunwind=yes ;;
4737 *) with_system_libunwind=no ;;
4738 esac
4740 # Based on system-libunwind and target, do we have ipinfo?
4741 if test x$with_system_libunwind = xyes; then
4742 case ${target} in
4743 ia64-*-*) have_unwind_getipinfo=no ;;
4744 *) have_unwind_getipinfo=yes ;;
4745 esac
4746 else
4747 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4749 case ${target} in
4750 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4751 *) have_unwind_getipinfo=yes ;;
4752 esac
4756 if test x$have_unwind_getipinfo = xyes; then
4758 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4763 # Check if the compiler is configured for setjmp/longjmp exceptions.
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
4765 $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
4766 if test "${ac_cv_sjlj_exceptions+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771 #ifdef __USING_SJLJ_EXCEPTIONS__
4772 this will fail
4773 #endif
4775 main ()
4777 int i;
4779 return 0;
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4783 ac_cv_sjlj_exceptions=no
4784 else
4785 ac_cv_sjlj_exceptions=yes
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
4790 $as_echo "$ac_cv_sjlj_exceptions" >&6; }
4792 # Check whether --enable-cet was given.
4793 if test "${enable_cet+set}" = set; then :
4794 enableval=$enable_cet;
4795 case "$enableval" in
4796 yes|no|auto) ;;
4797 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4798 esac
4800 else
4801 enable_cet=no
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4806 $as_echo_n "checking for CET support... " >&6; }
4808 case "$host" in
4809 i[34567]86-*-linux* | x86_64-*-linux*)
4810 case "$enable_cet" in
4811 auto)
4812 # Check if target supports multi-byte NOPs
4813 # and if assembler supports CET insn.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4818 main ()
4821 #if !defined(__SSE2__)
4822 #error target does not support multi-byte NOPs
4823 #else
4824 asm ("setssbsy");
4825 #endif
4828 return 0;
4830 _ACEOF
4831 if ac_fn_c_try_compile "$LINENO"; then :
4832 enable_cet=yes
4833 else
4834 enable_cet=no
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 yes)
4839 # Check if assembler supports CET.
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4844 main ()
4846 asm ("setssbsy");
4848 return 0;
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4853 else
4854 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 esac
4861 enable_cet=no
4863 esac
4864 if test x$enable_cet = xyes; then
4865 CET_FLAGS="-fcf-protection -mshstk"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4867 $as_echo "yes" >&6; }
4868 else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4875 # Check whether --enable-explicit-exception-frame-registration was given.
4876 if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4877 enableval=$enable_explicit_exception_frame_registration;
4878 force_explicit_eh_registry=
4879 if test "$enable_explicit_exception_frame_registration" = yes; then
4880 if test $ac_cv_sjlj_exceptions = yes; then
4881 as_fn_error "Can't --enable-explicit-exception-frame-registration
4882 with setjmp/longjmp exceptions" "$LINENO" 5
4884 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4892 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4893 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4897 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4898 acl_cv_prog_gnu_ld=yes
4899 else
4900 acl_cv_prog_gnu_ld=no
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4904 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4905 with_gnu_ld=$acl_cv_prog_gnu_ld
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4909 $as_echo_n "checking for thread model used by GCC... " >&6; }
4910 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4912 $as_echo "$target_thread_file" >&6; }
4914 # Check for assembler CFI support.
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4916 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
4917 if test "${libgcc_cv_cfi+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 asm("\n\
4923 .text\n\
4924 .cfi_startproc\n\
4925 .cfi_personality 0, symbol\n\
4926 .cfi_endproc");
4927 _ACEOF
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929 libgcc_cv_cfi=yes
4930 else
4931 libgcc_cv_cfi=no
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
4936 $as_echo "$libgcc_cv_cfi" >&6; }
4938 # Check 32bit or 64bit. In the case of MIPS, this really determines the
4939 # word size rather than the address size.
4940 cat > conftest.c <<EOF
4941 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
4942 || defined(__mips64)
4943 host_address=64
4944 #else
4945 host_address=32
4946 #endif
4948 eval `${CC-cc} -E conftest.c | grep host_address=`
4949 rm -f conftest.c
4951 case ${host} in
4952 mips*-*-*)
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
4954 $as_echo_n "checking whether the target is hard-float... " >&6; }
4955 if test "${libgcc_cv_mips_hard_float+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 #ifndef __mips_hard_float
4961 #error FOO
4962 #endif
4963 _ACEOF
4964 if ac_fn_c_try_compile "$LINENO"; then :
4965 libgcc_cv_mips_hard_float=yes
4966 else
4967 libgcc_cv_mips_hard_float=no
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
4972 $as_echo "$libgcc_cv_mips_hard_float" >&6; }
4973 esac
4975 case ${host} in
4976 *-*-solaris2*)
4977 # Check for system-provided CRTs on Solaris 11.4.
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
4979 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
4980 if test "${libgcc_cv_solaris_crts+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 libgcc_cv_solaris_crts=no
4984 libgcc_sysroot="`${CC} -print-sysroot`"
4985 libgcc_libdir="$libgcc_sysroot/usr/lib"
4986 # At the time they were added, gcrt1.o became a symlink for backwards
4987 # compatibility on x86, while crt1.o was added on sparc, so check for that.
4988 case ${host} in
4989 i?86-*-solaris2* | x86_64-*-solaris2*)
4990 if test -h "$libgcc_libdir/gcrt1.o"; then libgcc_cv_solaris_crts=yes; fi
4992 sparc*-*-solaris2*)
4993 if test -f "$libgcc_libdir/crt1.o"; then libgcc_cv_solaris_crts=yes; fi
4995 esac
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_solaris_crts" >&5
4998 $as_echo "$libgcc_cv_solaris_crts" >&6; }
4999 if test $libgcc_cv_solaris_crts = yes; then
5001 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
5005 esac
5007 # Determine the version of glibc, if any, used on the target.
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
5009 $as_echo_n "checking for target glibc version... " >&6; }
5011 # Check whether --with-glibc-version was given.
5012 if test "${with_glibc_version+set}" = set; then :
5013 withval=$with_glibc_version;
5014 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
5015 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
5016 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
5017 else
5018 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
5020 else
5022 if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
5024 else
5025 glibc_version_major=0
5028 if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
5030 else
5031 glibc_version_minor=0
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
5037 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
5039 # Determine floating-point type for powerpc*-*-linux*.
5040 # Single-precision-only FPRs are not a supported configuration for
5041 # this target, so are not allowed for in this test.
5042 case ${host} in
5043 powerpc*-*-linux*)
5044 cat > conftest.c <<EOF
5045 #ifdef __powerpc64__
5046 ppc_fp_type=64
5047 #elif defined _SOFT_FLOAT
5048 ppc_fp_type=soft
5049 #elif defined _SOFT_DOUBLE
5050 ppc_fp_type=e500v1
5051 #elif defined __NO_FPRS__
5052 ppc_fp_type=e500v2
5053 #else
5054 ppc_fp_type=hard
5055 #endif
5057 eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
5058 rm -f conftest.c
5059 # glibc 2.19 and later provide all the soft-fp functions, with proper
5060 # interactions with <fenv.h> exception and rounding mode handling, so
5061 # make libgcc's versions into compat symbols if a recent enough glibc
5062 # version is being used.
5063 ppc_fp_compat=
5064 case ${ppc_fp_type} in
5065 soft|e500v1|e500v2)
5066 if test $glibc_version_major -gt 2 \
5067 || ( test $glibc_version_major -eq 2 \
5068 && test $glibc_version_minor -ge 19 ); then
5069 ppc_fp_compat="t-softfp-compat"
5072 esac
5074 esac
5076 case ${host} in
5077 # At present, we cannot turn -mfloat128 on via #pragma GCC target, so just
5078 # check if we have VSX (ISA 2.06) support to build the software libraries, and
5079 # whether the assembler can handle xsaddqp for hardware support. Also check if
5080 # a new glibc is being used so that __builtin_cpu_supports can be used.
5081 powerpc*-*-linux*)
5082 saved_CFLAGS="$CFLAGS"
5083 CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5
5085 $as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; }
5086 if test "${libgcc_cv_powerpc_float128+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091 vector double dadd (vector double a, vector double b) { return a + b; }
5092 _ACEOF
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094 libgcc_cv_powerpc_float128=yes
5095 else
5096 libgcc_cv_powerpc_float128=no
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5
5101 $as_echo "$libgcc_cv_powerpc_float128" >&6; }
5103 CFLAGS="$CFLAGS -mpower9-vector -mfloat128-hardware"
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5
5105 $as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; }
5106 if test "${libgcc_cv_powerpc_float128_hw+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 #include <sys/auxv.h>
5112 #ifndef AT_PLATFORM
5113 #error "AT_PLATFORM is not defined"
5114 #endif
5115 #ifndef __BUILTIN_CPU_SUPPORTS__
5116 #error "__builtin_cpu_supports is not available"
5117 #endif
5118 vector unsigned char add (vector unsigned char a, vector unsigned char b)
5120 vector unsigned char ret;
5121 __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b));
5122 return ret;
5124 void *add_resolver (void) { return (void *) add; }
5125 __float128 add_ifunc (__float128, __float128)
5126 __attribute__ ((__ifunc__ ("add_resolver")));
5127 _ACEOF
5128 if ac_fn_c_try_compile "$LINENO"; then :
5129 libgcc_cv_powerpc_float128_hw=yes
5130 else
5131 libgcc_cv_powerpc_float128_hw=no
5133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5
5136 $as_echo "$libgcc_cv_powerpc_float128_hw" >&6; }
5137 CFLAGS="$saved_CFLAGS"
5138 esac
5140 # Collect host-machine-specific information.
5141 . ${srcdir}/config.host
5143 # Used for constructing correct paths for offload compilers.
5144 accel_dir_suffix=
5145 real_host_noncanonical=${host_noncanonical}
5146 if test x"$enable_as_accelerator_for" != x; then
5147 accel_dir_suffix=/accel/${target_noncanonical}
5148 real_host_noncanonical=${enable_as_accelerator_for}
5153 if test x"$enable_offload_targets" != x; then
5154 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o"
5157 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
5158 # This is after config.host so we can augment tmake_file.
5159 # Link with -nostartfiles -nodefaultlibs since neither are present while
5160 # building libgcc.
5161 case ${host} in
5162 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
5163 cat > conftest.s <<EOF
5164 .section .eh_frame,"a",@unwind
5165 .zero 4
5166 .section .jcr,"aw",@progbits
5167 .zero 8
5169 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
5170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; }; }; then
5175 tmake_file="${tmake_file} i386/t-crtstuff"
5178 esac
5180 # Check if Solaris linker support v2 linker mapfile syntax.
5181 # Link with -nostartfiles -nodefaultlibs since neither are present while
5182 # building libgcc.
5183 case ${host} in
5184 *-*-solaris2*)
5185 solaris_ld_v2_maps=no
5186 echo 'int main(void) {return 0;}' > conftest.c
5187 echo '$mapfile_version 2' > conftest.map
5188 if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5'
5189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5193 test $ac_status = 0; }; }; then
5194 solaris_ld_v2_maps=yes
5197 esac
5200 # Check if xtensa target is configured for windowed ABI and thus needs to use
5201 # custom unwind code.
5202 # This is after config.host so we can augment tmake_file.
5203 case ${host} in
5204 xtensa*-*)
5205 cat > conftest.c <<EOF
5206 #ifdef __XTENSA_CALL0_ABI__
5207 #error
5208 #endif
5210 if { ac_try='${CC-cc} -E -o conftest.i conftest.c 1>&5'
5211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5212 (eval $ac_try) 2>&5
5213 ac_status=$?
5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215 test $ac_status = 0; }; }; then
5216 tmake_file="${tmake_file} xtensa/t-windowed"
5219 esac
5221 # Check for visibility support. This is after config.host so that
5222 # we can check for asm_hidden_op.
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
5224 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
5225 if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5229 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
5230 libgcc_cv_hidden_visibility_attribute=no
5231 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5236 test $ac_status = 0; }; }; then
5237 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
5238 libgcc_cv_hidden_visibility_attribute=yes
5241 rm -f conftest.*
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
5245 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
5247 if test $libgcc_cv_hidden_visibility_attribute = yes; then
5248 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
5250 cat >>confdefs.h <<_ACEOF
5251 #define AS_HIDDEN_DIRECTIVE $asm_hidden_op
5252 _ACEOF
5254 else
5255 vis_hide=
5259 # Check for .cfi_sections .debug_frame support.
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5
5261 $as_echo_n "checking for .cfi_sections .debug_frame... " >&6; }
5262 if test "${libgcc_cv_cfi_sections_directive+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5266 echo 'int foo (int, char *);' > conftest.c
5267 echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c
5268 libgcc_cv_cfi_sections_directive=no
5269 if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5'
5270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5274 test $ac_status = 0; }; }; then
5275 if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then
5276 libgcc_cv_cfi_sections_directive=yes
5279 rm -f conftest.*
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5
5283 $as_echo "$libgcc_cv_cfi_sections_directive" >&6; }
5284 if test $libgcc_cv_cfi_sections_directive = yes; then
5286 $as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h
5290 # See if we have thread-local storage. We can only test assembler
5291 # since link-time and run-time tests require the newly built
5292 # gcc, which can't be used to build executable due to that libgcc
5293 # is yet to be built here.
5295 # Check whether --enable-tls was given.
5296 if test "${enable_tls+set}" = set; then :
5297 enableval=$enable_tls;
5298 case "$enableval" in
5299 yes|no) ;;
5300 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
5301 esac
5303 else
5304 enable_tls=yes
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
5309 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
5310 if test "${gcc_cv_have_cc_tls+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 __thread int a; int b; int main() { return a = b; }
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 gcc_cv_have_cc_tls=yes
5320 else
5321 gcc_cv_have_cc_tls=no
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
5327 $as_echo "$gcc_cv_have_cc_tls" >&6; }
5328 set_have_cc_tls=
5329 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
5330 set_have_cc_tls="-DHAVE_CC_TLS"
5334 # See if we have emulated thread-local storage.
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
5337 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
5338 if test "${gcc_cv_use_emutls+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5342 gcc_cv_use_emutls=no
5343 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
5344 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
5345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5349 test $ac_status = 0; }; }; then
5350 if grep __emutls_get_address conftest.s > /dev/null; then
5351 gcc_cv_use_emutls=yes
5354 rm -f conftest.*
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
5358 $as_echo "$gcc_cv_use_emutls" >&6; }
5359 if test "$gcc_cv_use_emutls" = "yes" ; then
5361 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
5364 set_use_emutls=
5365 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
5366 set_use_emutls="-DUSE_EMUTLS"
5372 case "${target}" in
5373 i[34567]86-*-* | x86_64-*-*)
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
5375 $as_echo_n "checking if the assembler supports AVX... " >&6; }
5376 if test "${libgcc_cv_as_avx+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5384 main ()
5386 asm("vzeroupper");
5388 return 0;
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 libgcc_cv_as_avx=yes
5393 else
5394 libgcc_cv_as_avx=no
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_avx" >&5
5400 $as_echo "$libgcc_cv_as_avx" >&6; }
5401 if test x$libgcc_cv_as_avx = xyes; then
5403 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
5407 esac
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
5410 $as_echo_n "checking for init priority support... " >&6; }
5411 if test "${libgcc_cv_init_priority+set}" = set; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5419 main ()
5421 void ip (void) __attribute__ ((constructor (1)));
5423 return 0;
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 libgcc_cv_init_priority=yes
5428 else
5429 libgcc_cv_init_priority=no
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
5434 $as_echo "$libgcc_cv_init_priority" >&6; }
5435 if test $libgcc_cv_init_priority = yes; then
5437 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
5441 # Conditionalize the sfp-machine.h header for this target machine.
5442 if test -z "${sfp_machine_header}"; then
5443 sfp_machine_header=$cpu_type/sfp-machine.h
5444 if test -f ${srcdir}/config/${sfp_machine_header}; then
5446 else
5447 sfp_machine_header=no-sfp-machine.h
5452 # Conditionalize the makefile for this target machine.
5453 tmake_file_=
5454 for f in ${tmake_file}
5456 if test -f ${srcdir}/config/$f
5457 then
5458 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
5460 done
5461 tmake_file="${tmake_file_}"
5464 # Likewise export definitions for libgcc_tm.h
5465 tm_file_=
5466 for f in ${tm_file}
5468 tm_file_="${tm_file_} \$(srcdir)/config/$f"
5469 done
5470 tm_file="${tm_file_}"
5474 # Map from thread model to thread header.
5476 case $target_thread_file in
5477 aix) thread_header=config/rs6000/gthr-aix.h ;;
5478 dce) thread_header=config/pa/gthr-dce.h ;;
5479 lynx) thread_header=config/gthr-lynx.h ;;
5480 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
5481 posix) thread_header=gthr-posix.h ;;
5482 rtems) thread_header=config/gthr-rtems.h ;;
5483 single) thread_header=gthr-single.h ;;
5484 tpf) thread_header=config/s390/gthr-tpf.h ;;
5485 vxworks) thread_header=config/gthr-vxworks.h ;;
5486 win32) thread_header=config/i386/gthr-win32.h ;;
5487 esac
5491 # Determine what GCC version number to use in filesystem paths.
5493 get_gcc_base_ver="cat"
5495 # Check whether --with-gcc-major-version-only was given.
5496 if test "${with_gcc_major_version_only+set}" = set; then :
5497 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5498 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5506 # Substitute configuration variables
5516 # We need multilib support.
5517 ac_config_files="$ac_config_files Makefile"
5519 ac_config_commands="$ac_config_commands default"
5521 cat >confcache <<\_ACEOF
5522 # This file is a shell script that caches the results of configure
5523 # tests run on this system so they can be shared between configure
5524 # scripts and configure runs, see configure's option --config-cache.
5525 # It is not useful on other systems. If it contains results you don't
5526 # want to keep, you may remove or edit it.
5528 # config.status only pays attention to the cache file if you give it
5529 # the --recheck option to rerun configure.
5531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5533 # following values.
5535 _ACEOF
5537 # The following way of writing the cache mishandles newlines in values,
5538 # but we know of no workaround that is simple, portable, and efficient.
5539 # So, we kill variables containing newlines.
5540 # Ultrix sh set writes to stderr and can't be redirected directly,
5541 # and sets the high bit in the cache file unless we assign to the vars.
5543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5544 eval ac_val=\$$ac_var
5545 case $ac_val in #(
5546 *${as_nl}*)
5547 case $ac_var in #(
5548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5550 esac
5551 case $ac_var in #(
5552 _ | IFS | as_nl) ;; #(
5553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5554 *) { eval $ac_var=; unset $ac_var;} ;;
5555 esac ;;
5556 esac
5557 done
5559 (set) 2>&1 |
5560 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5561 *${as_nl}ac_space=\ *)
5562 # `set' does not quote correctly, so add quotes: double-quote
5563 # substitution turns \\\\ into \\, and sed turns \\ into \.
5564 sed -n \
5565 "s/'/'\\\\''/g;
5566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5567 ;; #(
5569 # `set' quotes correctly as required by POSIX, so do not add quotes.
5570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5572 esac |
5573 sort
5575 sed '
5576 /^ac_cv_env_/b end
5577 t clear
5578 :clear
5579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5580 t end
5581 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5582 :end' >>confcache
5583 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5584 if test -w "$cache_file"; then
5585 test "x$cache_file" != "x/dev/null" &&
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5587 $as_echo "$as_me: updating cache $cache_file" >&6;}
5588 cat confcache >$cache_file
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5591 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5594 rm -f confcache
5596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5597 # Let make expand exec_prefix.
5598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5600 DEFS=-DHAVE_CONFIG_H
5602 ac_libobjs=
5603 ac_ltlibobjs=
5604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5605 # 1. Remove the extension, and $U if already installed.
5606 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5607 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5608 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5609 # will be set to the directory where LIBOBJS objects are built.
5610 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5611 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5612 done
5613 LIBOBJS=$ac_libobjs
5615 LTLIBOBJS=$ac_ltlibobjs
5619 : ${CONFIG_STATUS=./config.status}
5620 ac_write_fail=0
5621 ac_clean_files_save=$ac_clean_files
5622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5624 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5625 as_write_fail=0
5626 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5627 #! $SHELL
5628 # Generated by $as_me.
5629 # Run this file to recreate the current configuration.
5630 # Compiler output produced by configure, useful for debugging
5631 # configure, is in config.log if it exists.
5633 debug=false
5634 ac_cs_recheck=false
5635 ac_cs_silent=false
5637 SHELL=\${CONFIG_SHELL-$SHELL}
5638 export SHELL
5639 _ASEOF
5640 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5641 ## -------------------- ##
5642 ## M4sh Initialization. ##
5643 ## -------------------- ##
5645 # Be more Bourne compatible
5646 DUALCASE=1; export DUALCASE # for MKS sh
5647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5648 emulate sh
5649 NULLCMD=:
5650 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5651 # is contrary to our usage. Disable this feature.
5652 alias -g '${1+"$@"}'='"$@"'
5653 setopt NO_GLOB_SUBST
5654 else
5655 case `(set -o) 2>/dev/null` in #(
5656 *posix*) :
5657 set -o posix ;; #(
5658 *) :
5660 esac
5664 as_nl='
5666 export as_nl
5667 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5668 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5671 # Prefer a ksh shell builtin over an external printf program on Solaris,
5672 # but without wasting forks for bash or zsh.
5673 if test -z "$BASH_VERSION$ZSH_VERSION" \
5674 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5675 as_echo='print -r --'
5676 as_echo_n='print -rn --'
5677 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5678 as_echo='printf %s\n'
5679 as_echo_n='printf %s'
5680 else
5681 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5682 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5683 as_echo_n='/usr/ucb/echo -n'
5684 else
5685 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5686 as_echo_n_body='eval
5687 arg=$1;
5688 case $arg in #(
5689 *"$as_nl"*)
5690 expr "X$arg" : "X\\(.*\\)$as_nl";
5691 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5692 esac;
5693 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5695 export as_echo_n_body
5696 as_echo_n='sh -c $as_echo_n_body as_echo'
5698 export as_echo_body
5699 as_echo='sh -c $as_echo_body as_echo'
5702 # The user is always right.
5703 if test "${PATH_SEPARATOR+set}" != set; then
5704 PATH_SEPARATOR=:
5705 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5706 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5707 PATH_SEPARATOR=';'
5712 # IFS
5713 # We need space, tab and new line, in precisely that order. Quoting is
5714 # there to prevent editors from complaining about space-tab.
5715 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5716 # splitting by setting IFS to empty value.)
5717 IFS=" "" $as_nl"
5719 # Find who we are. Look in the path if we contain no directory separator.
5720 case $0 in #((
5721 *[\\/]* ) as_myself=$0 ;;
5722 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5728 done
5729 IFS=$as_save_IFS
5732 esac
5733 # We did not find ourselves, most probably we were run as `sh COMMAND'
5734 # in which case we are not to be found in the path.
5735 if test "x$as_myself" = x; then
5736 as_myself=$0
5738 if test ! -f "$as_myself"; then
5739 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5740 exit 1
5743 # Unset variables that we do not need and which cause bugs (e.g. in
5744 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5745 # suppresses any "Segmentation fault" message there. '((' could
5746 # trigger a bug in pdksh 5.2.14.
5747 for as_var in BASH_ENV ENV MAIL MAILPATH
5748 do eval test x\${$as_var+set} = xset \
5749 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5750 done
5751 PS1='$ '
5752 PS2='> '
5753 PS4='+ '
5755 # NLS nuisances.
5756 LC_ALL=C
5757 export LC_ALL
5758 LANGUAGE=C
5759 export LANGUAGE
5761 # CDPATH.
5762 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5765 # as_fn_error ERROR [LINENO LOG_FD]
5766 # ---------------------------------
5767 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5768 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5769 # script with status $?, using 1 if that was 0.
5770 as_fn_error ()
5772 as_status=$?; test $as_status -eq 0 && as_status=1
5773 if test "$3"; then
5774 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5775 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5777 $as_echo "$as_me: error: $1" >&2
5778 as_fn_exit $as_status
5779 } # as_fn_error
5782 # as_fn_set_status STATUS
5783 # -----------------------
5784 # Set $? to STATUS, without forking.
5785 as_fn_set_status ()
5787 return $1
5788 } # as_fn_set_status
5790 # as_fn_exit STATUS
5791 # -----------------
5792 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5793 as_fn_exit ()
5795 set +e
5796 as_fn_set_status $1
5797 exit $1
5798 } # as_fn_exit
5800 # as_fn_unset VAR
5801 # ---------------
5802 # Portably unset VAR.
5803 as_fn_unset ()
5805 { eval $1=; unset $1;}
5807 as_unset=as_fn_unset
5808 # as_fn_append VAR VALUE
5809 # ----------------------
5810 # Append the text in VALUE to the end of the definition contained in VAR. Take
5811 # advantage of any shell optimizations that allow amortized linear growth over
5812 # repeated appends, instead of the typical quadratic growth present in naive
5813 # implementations.
5814 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5815 eval 'as_fn_append ()
5817 eval $1+=\$2
5819 else
5820 as_fn_append ()
5822 eval $1=\$$1\$2
5824 fi # as_fn_append
5826 # as_fn_arith ARG...
5827 # ------------------
5828 # Perform arithmetic evaluation on the ARGs, and store the result in the
5829 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5830 # must be portable across $(()) and expr.
5831 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5832 eval 'as_fn_arith ()
5834 as_val=$(( $* ))
5836 else
5837 as_fn_arith ()
5839 as_val=`expr "$@" || test $? -eq 1`
5841 fi # as_fn_arith
5844 if expr a : '\(a\)' >/dev/null 2>&1 &&
5845 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5846 as_expr=expr
5847 else
5848 as_expr=false
5851 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5852 as_basename=basename
5853 else
5854 as_basename=false
5857 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5858 as_dirname=dirname
5859 else
5860 as_dirname=false
5863 as_me=`$as_basename -- "$0" ||
5864 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5865 X"$0" : 'X\(//\)$' \| \
5866 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5867 $as_echo X/"$0" |
5868 sed '/^.*\/\([^/][^/]*\)\/*$/{
5869 s//\1/
5872 /^X\/\(\/\/\)$/{
5873 s//\1/
5876 /^X\/\(\/\).*/{
5877 s//\1/
5880 s/.*/./; q'`
5882 # Avoid depending upon Character Ranges.
5883 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5884 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5885 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5886 as_cr_digits='0123456789'
5887 as_cr_alnum=$as_cr_Letters$as_cr_digits
5889 ECHO_C= ECHO_N= ECHO_T=
5890 case `echo -n x` in #(((((
5891 -n*)
5892 case `echo 'xy\c'` in
5893 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5894 xy) ECHO_C='\c';;
5895 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5896 ECHO_T=' ';;
5897 esac;;
5899 ECHO_N='-n';;
5900 esac
5902 rm -f conf$$ conf$$.exe conf$$.file
5903 if test -d conf$$.dir; then
5904 rm -f conf$$.dir/conf$$.file
5905 else
5906 rm -f conf$$.dir
5907 mkdir conf$$.dir 2>/dev/null
5909 if (echo >conf$$.file) 2>/dev/null; then
5910 if ln -s conf$$.file conf$$ 2>/dev/null; then
5911 as_ln_s='ln -s'
5912 # ... but there are two gotchas:
5913 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5914 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5915 # In both cases, we have to default to `cp -p'.
5916 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5917 as_ln_s='cp -p'
5918 elif ln conf$$.file conf$$ 2>/dev/null; then
5919 as_ln_s=ln
5920 else
5921 as_ln_s='cp -p'
5923 else
5924 as_ln_s='cp -p'
5926 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5927 rmdir conf$$.dir 2>/dev/null
5930 # as_fn_mkdir_p
5931 # -------------
5932 # Create "$as_dir" as a directory, including parents if necessary.
5933 as_fn_mkdir_p ()
5936 case $as_dir in #(
5937 -*) as_dir=./$as_dir;;
5938 esac
5939 test -d "$as_dir" || eval $as_mkdir_p || {
5940 as_dirs=
5941 while :; do
5942 case $as_dir in #(
5943 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5944 *) as_qdir=$as_dir;;
5945 esac
5946 as_dirs="'$as_qdir' $as_dirs"
5947 as_dir=`$as_dirname -- "$as_dir" ||
5948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5949 X"$as_dir" : 'X\(//\)[^/]' \| \
5950 X"$as_dir" : 'X\(//\)$' \| \
5951 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5952 $as_echo X"$as_dir" |
5953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5954 s//\1/
5957 /^X\(\/\/\)[^/].*/{
5958 s//\1/
5961 /^X\(\/\/\)$/{
5962 s//\1/
5965 /^X\(\/\).*/{
5966 s//\1/
5969 s/.*/./; q'`
5970 test -d "$as_dir" && break
5971 done
5972 test -z "$as_dirs" || eval "mkdir $as_dirs"
5973 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5976 } # as_fn_mkdir_p
5977 if mkdir -p . 2>/dev/null; then
5978 as_mkdir_p='mkdir -p "$as_dir"'
5979 else
5980 test -d ./-p && rmdir ./-p
5981 as_mkdir_p=false
5984 if test -x / >/dev/null 2>&1; then
5985 as_test_x='test -x'
5986 else
5987 if ls -dL / >/dev/null 2>&1; then
5988 as_ls_L_option=L
5989 else
5990 as_ls_L_option=
5992 as_test_x='
5993 eval sh -c '\''
5994 if test -d "$1"; then
5995 test -d "$1/.";
5996 else
5997 case $1 in #(
5998 -*)set "./$1";;
5999 esac;
6000 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6001 ???[sx]*):;;*)false;;esac;fi
6002 '\'' sh
6005 as_executable_p=$as_test_x
6007 # Sed expression to map a string onto a valid CPP name.
6008 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6010 # Sed expression to map a string onto a valid variable name.
6011 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6014 exec 6>&1
6015 ## ----------------------------------- ##
6016 ## Main body of $CONFIG_STATUS script. ##
6017 ## ----------------------------------- ##
6018 _ASEOF
6019 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6022 # Save the log message, to keep $0 and so on meaningful, and to
6023 # report actual input values of CONFIG_FILES etc. instead of their
6024 # values after options handling.
6025 ac_log="
6026 This file was extended by GNU C Runtime Library $as_me 1.0, which was
6027 generated by GNU Autoconf 2.64. Invocation command line was
6029 CONFIG_FILES = $CONFIG_FILES
6030 CONFIG_HEADERS = $CONFIG_HEADERS
6031 CONFIG_LINKS = $CONFIG_LINKS
6032 CONFIG_COMMANDS = $CONFIG_COMMANDS
6033 $ $0 $@
6035 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6038 _ACEOF
6040 case $ac_config_files in *"
6041 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6042 esac
6044 case $ac_config_headers in *"
6045 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6046 esac
6049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6050 # Files that config.status was made for.
6051 config_files="$ac_config_files"
6052 config_headers="$ac_config_headers"
6053 config_commands="$ac_config_commands"
6055 _ACEOF
6057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6058 ac_cs_usage="\
6059 \`$as_me' instantiates files and other configuration actions
6060 from templates according to the current configuration. Unless the files
6061 and actions are specified as TAGs, all are instantiated by default.
6063 Usage: $0 [OPTION]... [TAG]...
6065 -h, --help print this help, then exit
6066 -V, --version print version number and configuration settings, then exit
6067 -q, --quiet, --silent
6068 do not print progress messages
6069 -d, --debug don't remove temporary files
6070 --recheck update $as_me by reconfiguring in the same conditions
6071 --file=FILE[:TEMPLATE]
6072 instantiate the configuration file FILE
6073 --header=FILE[:TEMPLATE]
6074 instantiate the configuration header FILE
6076 Configuration files:
6077 $config_files
6079 Configuration headers:
6080 $config_headers
6082 Configuration commands:
6083 $config_commands
6085 Report bugs to the package provider.
6086 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
6087 General help using GNU software: <http://www.gnu.org/gethelp/>."
6089 _ACEOF
6090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6091 ac_cs_version="\\
6092 GNU C Runtime Library config.status 1.0
6093 configured by $0, generated by GNU Autoconf 2.64,
6094 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6096 Copyright (C) 2009 Free Software Foundation, Inc.
6097 This config.status script is free software; the Free Software Foundation
6098 gives unlimited permission to copy, distribute and modify it."
6100 ac_pwd='$ac_pwd'
6101 srcdir='$srcdir'
6102 INSTALL='$INSTALL'
6103 AWK='$AWK'
6104 test -n "\$AWK" || AWK=awk
6105 _ACEOF
6107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6108 # The default lists apply if the user does not specify any file.
6109 ac_need_defaults=:
6110 while test $# != 0
6112 case $1 in
6113 --*=*)
6114 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6115 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6116 ac_shift=:
6119 ac_option=$1
6120 ac_optarg=$2
6121 ac_shift=shift
6123 esac
6125 case $ac_option in
6126 # Handling of the options.
6127 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6128 ac_cs_recheck=: ;;
6129 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6130 $as_echo "$ac_cs_version"; exit ;;
6131 --debug | --debu | --deb | --de | --d | -d )
6132 debug=: ;;
6133 --file | --fil | --fi | --f )
6134 $ac_shift
6135 case $ac_optarg in
6136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6137 esac
6138 as_fn_append CONFIG_FILES " '$ac_optarg'"
6139 ac_need_defaults=false;;
6140 --header | --heade | --head | --hea )
6141 $ac_shift
6142 case $ac_optarg in
6143 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6144 esac
6145 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6146 ac_need_defaults=false;;
6147 --he | --h)
6148 # Conflict between --help and --header
6149 as_fn_error "ambiguous option: \`$1'
6150 Try \`$0 --help' for more information.";;
6151 --help | --hel | -h )
6152 $as_echo "$ac_cs_usage"; exit ;;
6153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6155 ac_cs_silent=: ;;
6157 # This is an error.
6158 -*) as_fn_error "unrecognized option: \`$1'
6159 Try \`$0 --help' for more information." ;;
6161 *) as_fn_append ac_config_targets " $1"
6162 ac_need_defaults=false ;;
6164 esac
6165 shift
6166 done
6168 ac_configure_extra_args=
6170 if $ac_cs_silent; then
6171 exec 6>/dev/null
6172 ac_configure_extra_args="$ac_configure_extra_args --silent"
6175 _ACEOF
6176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6177 if \$ac_cs_recheck; then
6178 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6179 shift
6180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6181 CONFIG_SHELL='$SHELL'
6182 export CONFIG_SHELL
6183 exec "\$@"
6186 _ACEOF
6187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6188 exec 5>>config.log
6190 echo
6191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6192 ## Running $as_me. ##
6193 _ASBOX
6194 $as_echo "$ac_log"
6195 } >&5
6197 _ACEOF
6198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6200 # INIT-COMMANDS
6202 srcdir=${srcdir}
6203 host=${host}
6204 with_target_subdir=${with_target_subdir}
6205 with_multisubdir=${with_multisubdir}
6206 ac_configure_args="--enable-multilib ${ac_configure_args}"
6207 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6208 libgcc_topdir=${libgcc_topdir}
6209 CC="${CC}"
6212 _ACEOF
6214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6216 # Handling of arguments.
6217 for ac_config_target in $ac_config_targets
6219 case $ac_config_target in
6220 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
6221 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6222 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6224 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6225 esac
6226 done
6229 # If the user did not use the arguments to specify the items to instantiate,
6230 # then the envvar interface is used. Set only those that are not.
6231 # We use the long form for the default assignment because of an extremely
6232 # bizarre bug on SunOS 4.1.3.
6233 if $ac_need_defaults; then
6234 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6235 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6239 # Have a temporary directory for convenience. Make it in the build tree
6240 # simply because there is no reason against having it here, and in addition,
6241 # creating and moving files from /tmp can sometimes cause problems.
6242 # Hook for its removal unless debugging.
6243 # Note that there is a small window in which the directory will not be cleaned:
6244 # after its creation but before its name has been assigned to `$tmp'.
6245 $debug ||
6247 tmp=
6248 trap 'exit_status=$?
6249 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6251 trap 'as_fn_exit 1' 1 2 13 15
6253 # Create a (secure) tmp directory for tmp files.
6256 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6257 test -n "$tmp" && test -d "$tmp"
6258 } ||
6260 tmp=./conf$$-$RANDOM
6261 (umask 077 && mkdir "$tmp")
6262 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6264 # Set up the scripts for CONFIG_FILES section.
6265 # No need to generate them if there are no CONFIG_FILES.
6266 # This happens for instance with `./config.status config.h'.
6267 if test -n "$CONFIG_FILES"; then
6270 ac_cr=`echo X | tr X '\015'`
6271 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6272 # But we know of no other shell where ac_cr would be empty at this
6273 # point, so we can use a bashism as a fallback.
6274 if test "x$ac_cr" = x; then
6275 eval ac_cr=\$\'\\r\'
6277 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6278 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6279 ac_cs_awk_cr='\r'
6280 else
6281 ac_cs_awk_cr=$ac_cr
6284 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6285 _ACEOF
6289 echo "cat >conf$$subs.awk <<_ACEOF" &&
6290 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6291 echo "_ACEOF"
6292 } >conf$$subs.sh ||
6293 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6294 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6295 ac_delim='%!_!# '
6296 for ac_last_try in false false false false false :; do
6297 . ./conf$$subs.sh ||
6298 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6300 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6301 if test $ac_delim_n = $ac_delim_num; then
6302 break
6303 elif $ac_last_try; then
6304 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6305 else
6306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6308 done
6309 rm -f conf$$subs.sh
6311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6312 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6313 _ACEOF
6314 sed -n '
6316 s/^/S["/; s/!.*/"]=/
6319 s/^[^!]*!//
6320 :repl
6321 t repl
6322 s/'"$ac_delim"'$//
6323 t delim
6326 s/\(.\{148\}\).*/\1/
6327 t more1
6328 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6331 b repl
6332 :more1
6333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6336 s/.\{148\}//
6337 t nl
6338 :delim
6340 s/\(.\{148\}\).*/\1/
6341 t more2
6342 s/["\\]/\\&/g; s/^/"/; s/$/"/
6345 :more2
6346 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6349 s/.\{148\}//
6350 t delim
6351 ' <conf$$subs.awk | sed '
6352 /^[^""]/{
6354 s/\n//
6356 ' >>$CONFIG_STATUS || ac_write_fail=1
6357 rm -f conf$$subs.awk
6358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6359 _ACAWK
6360 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6361 for (key in S) S_is_set[key] = 1
6362 FS = "\a"
6366 line = $ 0
6367 nfields = split(line, field, "@")
6368 substed = 0
6369 len = length(field[1])
6370 for (i = 2; i < nfields; i++) {
6371 key = field[i]
6372 keylen = length(key)
6373 if (S_is_set[key]) {
6374 value = S[key]
6375 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6376 len += length(value) + length(field[++i])
6377 substed = 1
6378 } else
6379 len += 1 + keylen
6382 print line
6385 _ACAWK
6386 _ACEOF
6387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6388 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6389 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6390 else
6392 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6393 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6394 _ACEOF
6396 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6397 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6398 # trailing colons and then remove the whole line if VPATH becomes empty
6399 # (actually we leave an empty line to preserve line numbers).
6400 if test "x$srcdir" = x.; then
6401 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6402 s/:*\$(srcdir):*/:/
6403 s/:*\${srcdir}:*/:/
6404 s/:*@srcdir@:*/:/
6405 s/^\([^=]*=[ ]*\):*/\1/
6406 s/:*$//
6407 s/^[^=]*=[ ]*$//
6411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6412 fi # test -n "$CONFIG_FILES"
6414 # Set up the scripts for CONFIG_HEADERS section.
6415 # No need to generate them if there are no CONFIG_HEADERS.
6416 # This happens for instance with `./config.status Makefile'.
6417 if test -n "$CONFIG_HEADERS"; then
6418 cat >"$tmp/defines.awk" <<\_ACAWK ||
6419 BEGIN {
6420 _ACEOF
6422 # Transform confdefs.h into an awk script `defines.awk', embedded as
6423 # here-document in config.status, that substitutes the proper values into
6424 # config.h.in to produce config.h.
6426 # Create a delimiter string that does not exist in confdefs.h, to ease
6427 # handling of long lines.
6428 ac_delim='%!_!# '
6429 for ac_last_try in false false :; do
6430 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6431 if test -z "$ac_t"; then
6432 break
6433 elif $ac_last_try; then
6434 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6435 else
6436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6438 done
6440 # For the awk script, D is an array of macro values keyed by name,
6441 # likewise P contains macro parameters if any. Preserve backslash
6442 # newline sequences.
6444 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6445 sed -n '
6446 s/.\{148\}/&'"$ac_delim"'/g
6447 t rset
6448 :rset
6449 s/^[ ]*#[ ]*define[ ][ ]*/ /
6450 t def
6452 :def
6453 s/\\$//
6454 t bsnl
6455 s/["\\]/\\&/g
6456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6457 D["\1"]=" \3"/p
6458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6460 :bsnl
6461 s/["\\]/\\&/g
6462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6463 D["\1"]=" \3\\\\\\n"\\/p
6464 t cont
6465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6466 t cont
6468 :cont
6470 s/.\{148\}/&'"$ac_delim"'/g
6471 t clear
6472 :clear
6473 s/\\$//
6474 t bsnlc
6475 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6477 :bsnlc
6478 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6479 b cont
6480 ' <confdefs.h | sed '
6481 s/'"$ac_delim"'/"\\\
6482 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6485 for (key in D) D_is_set[key] = 1
6486 FS = "\a"
6488 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6489 line = \$ 0
6490 split(line, arg, " ")
6491 if (arg[1] == "#") {
6492 defundef = arg[2]
6493 mac1 = arg[3]
6494 } else {
6495 defundef = substr(arg[1], 2)
6496 mac1 = arg[2]
6498 split(mac1, mac2, "(") #)
6499 macro = mac2[1]
6500 prefix = substr(line, 1, index(line, defundef) - 1)
6501 if (D_is_set[macro]) {
6502 # Preserve the white space surrounding the "#".
6503 print prefix "define", macro P[macro] D[macro]
6504 next
6505 } else {
6506 # Replace #undef with comments. This is necessary, for example,
6507 # in the case of _POSIX_SOURCE, which is predefined and required
6508 # on some systems where configure will not decide to define it.
6509 if (defundef == "undef") {
6510 print "/*", prefix defundef, macro, "*/"
6511 next
6515 { print }
6516 _ACAWK
6517 _ACEOF
6518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6519 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6520 fi # test -n "$CONFIG_HEADERS"
6523 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6524 shift
6525 for ac_tag
6527 case $ac_tag in
6528 :[FHLC]) ac_mode=$ac_tag; continue;;
6529 esac
6530 case $ac_mode$ac_tag in
6531 :[FHL]*:*);;
6532 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6533 :[FH]-) ac_tag=-:-;;
6534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6535 esac
6536 ac_save_IFS=$IFS
6537 IFS=:
6538 set x $ac_tag
6539 IFS=$ac_save_IFS
6540 shift
6541 ac_file=$1
6542 shift
6544 case $ac_mode in
6545 :L) ac_source=$1;;
6546 :[FH])
6547 ac_file_inputs=
6548 for ac_f
6550 case $ac_f in
6551 -) ac_f="$tmp/stdin";;
6552 *) # Look for the file first in the build tree, then in the source tree
6553 # (if the path is not absolute). The absolute path cannot be DOS-style,
6554 # because $ac_f cannot contain `:'.
6555 test -f "$ac_f" ||
6556 case $ac_f in
6557 [\\/$]*) false;;
6558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6559 esac ||
6560 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6561 esac
6562 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6563 as_fn_append ac_file_inputs " '$ac_f'"
6564 done
6566 # Let's still pretend it is `configure' which instantiates (i.e., don't
6567 # use $as_me), people would be surprised to read:
6568 # /* config.h. Generated by config.status. */
6569 configure_input='Generated from '`
6570 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6571 `' by configure.'
6572 if test x"$ac_file" != x-; then
6573 configure_input="$ac_file. $configure_input"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6575 $as_echo "$as_me: creating $ac_file" >&6;}
6577 # Neutralize special characters interpreted by sed in replacement strings.
6578 case $configure_input in #(
6579 *\&* | *\|* | *\\* )
6580 ac_sed_conf_input=`$as_echo "$configure_input" |
6581 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6582 *) ac_sed_conf_input=$configure_input;;
6583 esac
6585 case $ac_tag in
6586 *:-:* | *:-) cat >"$tmp/stdin" \
6587 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6588 esac
6590 esac
6592 ac_dir=`$as_dirname -- "$ac_file" ||
6593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6594 X"$ac_file" : 'X\(//\)[^/]' \| \
6595 X"$ac_file" : 'X\(//\)$' \| \
6596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6597 $as_echo X"$ac_file" |
6598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6599 s//\1/
6602 /^X\(\/\/\)[^/].*/{
6603 s//\1/
6606 /^X\(\/\/\)$/{
6607 s//\1/
6610 /^X\(\/\).*/{
6611 s//\1/
6614 s/.*/./; q'`
6615 as_dir="$ac_dir"; as_fn_mkdir_p
6616 ac_builddir=.
6618 case "$ac_dir" in
6619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6622 # A ".." for each directory in $ac_dir_suffix.
6623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6624 case $ac_top_builddir_sub in
6625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6627 esac ;;
6628 esac
6629 ac_abs_top_builddir=$ac_pwd
6630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6631 # for backward compatibility:
6632 ac_top_builddir=$ac_top_build_prefix
6634 case $srcdir in
6635 .) # We are building in place.
6636 ac_srcdir=.
6637 ac_top_srcdir=$ac_top_builddir_sub
6638 ac_abs_top_srcdir=$ac_pwd ;;
6639 [\\/]* | ?:[\\/]* ) # Absolute name.
6640 ac_srcdir=$srcdir$ac_dir_suffix;
6641 ac_top_srcdir=$srcdir
6642 ac_abs_top_srcdir=$srcdir ;;
6643 *) # Relative name.
6644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6645 ac_top_srcdir=$ac_top_build_prefix$srcdir
6646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6647 esac
6648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6651 case $ac_mode in
6654 # CONFIG_FILE
6657 case $INSTALL in
6658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6660 esac
6661 _ACEOF
6663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6664 # If the template does not know about datarootdir, expand it.
6665 # FIXME: This hack should be removed a few years after 2.60.
6666 ac_datarootdir_hack=; ac_datarootdir_seen=
6667 ac_sed_dataroot='
6668 /datarootdir/ {
6672 /@datadir@/p
6673 /@docdir@/p
6674 /@infodir@/p
6675 /@localedir@/p
6676 /@mandir@/p'
6677 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6678 *datarootdir*) ac_datarootdir_seen=yes;;
6679 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6681 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6682 _ACEOF
6683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6684 ac_datarootdir_hack='
6685 s&@datadir@&$datadir&g
6686 s&@docdir@&$docdir&g
6687 s&@infodir@&$infodir&g
6688 s&@localedir@&$localedir&g
6689 s&@mandir@&$mandir&g
6690 s&\\\${datarootdir}&$datarootdir&g' ;;
6691 esac
6692 _ACEOF
6694 # Neutralize VPATH when `$srcdir' = `.'.
6695 # Shell code in configure.ac might set extrasub.
6696 # FIXME: do we really want to maintain this feature?
6697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6698 ac_sed_extra="$ac_vpsub
6699 $extrasub
6700 _ACEOF
6701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6704 s|@configure_input@|$ac_sed_conf_input|;t t
6705 s&@top_builddir@&$ac_top_builddir_sub&;t t
6706 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6707 s&@srcdir@&$ac_srcdir&;t t
6708 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6709 s&@top_srcdir@&$ac_top_srcdir&;t t
6710 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6711 s&@builddir@&$ac_builddir&;t t
6712 s&@abs_builddir@&$ac_abs_builddir&;t t
6713 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6714 s&@INSTALL@&$ac_INSTALL&;t t
6715 $ac_datarootdir_hack
6717 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6718 || as_fn_error "could not create $ac_file" "$LINENO" 5
6720 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6721 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6722 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6724 which seems to be undefined. Please make sure it is defined." >&5
6725 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6726 which seems to be undefined. Please make sure it is defined." >&2;}
6728 rm -f "$tmp/stdin"
6729 case $ac_file in
6730 -) cat "$tmp/out" && rm -f "$tmp/out";;
6731 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6732 esac \
6733 || as_fn_error "could not create $ac_file" "$LINENO" 5
6737 # CONFIG_HEADER
6739 if test x"$ac_file" != x-; then
6741 $as_echo "/* $configure_input */" \
6742 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6743 } >"$tmp/config.h" \
6744 || as_fn_error "could not create $ac_file" "$LINENO" 5
6745 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6747 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6748 else
6749 rm -f "$ac_file"
6750 mv "$tmp/config.h" "$ac_file" \
6751 || as_fn_error "could not create $ac_file" "$LINENO" 5
6753 else
6754 $as_echo "/* $configure_input */" \
6755 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6756 || as_fn_error "could not create -" "$LINENO" 5
6760 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6761 $as_echo "$as_me: executing $ac_file commands" >&6;}
6763 esac
6766 case $ac_file$ac_mode in
6767 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6768 if test -n "$CONFIG_FILES"; then
6769 # FIXME: We shouldn't need to set ac_file
6770 ac_file=Makefile
6771 . ${libgcc_topdir}/config-ml.in
6772 fi ;;
6774 esac
6775 done # for ac_tag
6778 as_fn_exit 0
6779 _ACEOF
6780 ac_clean_files=$ac_clean_files_save
6782 test $ac_write_fail = 0 ||
6783 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6786 # configure is writing to config.log, and then calls config.status.
6787 # config.status does its own redirection, appending to config.log.
6788 # Unfortunately, on DOS this fails, as config.log is still kept open
6789 # by configure, so config.status won't be able to write to it; its
6790 # output is simply discarded. So we exec the FD to /dev/null,
6791 # effectively closing config.log, so it can be properly (re)opened and
6792 # appended to by config.status. When coming back to configure, we
6793 # need to make the FD available again.
6794 if test "$no_create" != yes; then
6795 ac_cs_success=:
6796 ac_config_status_args=
6797 test "$silent" = yes &&
6798 ac_config_status_args="$ac_config_status_args --quiet"
6799 exec 5>/dev/null
6800 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6801 exec 5>>config.log
6802 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6803 # would make configure fail if this is the last instruction.
6804 $ac_cs_success || as_fn_exit $?
6806 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6808 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}