* cp-demangle.c (cplus_demangle_operators): Add *_cast.
[official-gcc.git] / libgcc / configure
bloba226f8116595c1eba6f9a1c0e42da32c1e0f7824
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 asm_hidden_op
559 extra_parts
560 cpu_type
561 tm_defines
562 tm_file
563 tmake_file
564 sfp_machine_header
565 set_use_emutls
566 set_have_cc_tls
567 vis_hide
568 fixed_point
569 enable_decimal_float
570 decimal_float
571 long_double_type_size
572 double_type_size
574 OBJEXT
575 EXEEXT
576 ac_ct_CC
577 CPPFLAGS
578 LDFLAGS
579 CFLAGS
581 LN_S
582 STRIP
583 RANLIB
585 LIPO
587 toolexeclibdir
588 toolexecdir
589 target_subdir
590 host_subdir
591 build_subdir
592 build_libsubdir
593 target_noncanonical
594 host_noncanonical
596 INSTALL_DATA
597 INSTALL_SCRIPT
598 INSTALL_PROGRAM
599 MAINT
600 slibdir
601 PICFLAG
602 host_os
603 host_vendor
604 host_cpu
605 host
606 build_os
607 build_vendor
608 build_cpu
609 build
610 enable_shared
611 libgcc_topdir
612 target_alias
613 host_alias
614 build_alias
615 LIBS
616 ECHO_T
617 ECHO_N
618 ECHO_C
619 DEFS
620 mandir
621 localedir
622 libdir
623 psdir
624 pdfdir
625 dvidir
626 htmldir
627 infodir
628 docdir
629 oldincludedir
630 includedir
631 localstatedir
632 sharedstatedir
633 sysconfdir
634 datadir
635 datarootdir
636 libexecdir
637 sbindir
638 bindir
639 program_transform_name
640 prefix
641 exec_prefix
642 PACKAGE_URL
643 PACKAGE_BUGREPORT
644 PACKAGE_STRING
645 PACKAGE_VERSION
646 PACKAGE_TARNAME
647 PACKAGE_NAME
648 PATH_SEPARATOR
649 SHELL'
650 ac_subst_files=''
651 ac_user_opts='
652 enable_option_checking
653 with_target_subdir
654 with_cross_host
655 with_ld
656 enable_shared
657 enable_version_specific_runtime_libs
658 with_slibdir
659 enable_maintainer_mode
660 with_build_libsubdir
661 enable_decimal_float
662 with_system_libunwind
663 enable_sjlj_exceptions
664 enable_tls
666 ac_precious_vars='build_alias
667 host_alias
668 target_alias
670 CFLAGS
671 LDFLAGS
672 LIBS
673 CPPFLAGS
674 CPP'
677 # Initialize some variables set by options.
678 ac_init_help=
679 ac_init_version=false
680 ac_unrecognized_opts=
681 ac_unrecognized_sep=
682 # The variables have the same names as the options, with
683 # dashes changed to underlines.
684 cache_file=/dev/null
685 exec_prefix=NONE
686 no_create=
687 no_recursion=
688 prefix=NONE
689 program_prefix=NONE
690 program_suffix=NONE
691 program_transform_name=s,x,x,
692 silent=
693 site=
694 srcdir=
695 verbose=
696 x_includes=NONE
697 x_libraries=NONE
699 # Installation directory options.
700 # These are left unexpanded so users can "make install exec_prefix=/foo"
701 # and all the variables that are supposed to be based on exec_prefix
702 # by default will actually change.
703 # Use braces instead of parens because sh, perl, etc. also accept them.
704 # (The list follows the same order as the GNU Coding Standards.)
705 bindir='${exec_prefix}/bin'
706 sbindir='${exec_prefix}/sbin'
707 libexecdir='${exec_prefix}/libexec'
708 datarootdir='${prefix}/share'
709 datadir='${datarootdir}'
710 sysconfdir='${prefix}/etc'
711 sharedstatedir='${prefix}/com'
712 localstatedir='${prefix}/var'
713 includedir='${prefix}/include'
714 oldincludedir='/usr/include'
715 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
716 infodir='${datarootdir}/info'
717 htmldir='${docdir}'
718 dvidir='${docdir}'
719 pdfdir='${docdir}'
720 psdir='${docdir}'
721 libdir='${exec_prefix}/lib'
722 localedir='${datarootdir}/locale'
723 mandir='${datarootdir}/man'
725 ac_prev=
726 ac_dashdash=
727 for ac_option
729 # If the previous option needs an argument, assign it.
730 if test -n "$ac_prev"; then
731 eval $ac_prev=\$ac_option
732 ac_prev=
733 continue
736 case $ac_option in
737 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
738 *) ac_optarg=yes ;;
739 esac
741 # Accept the important Cygnus configure options, so we can diagnose typos.
743 case $ac_dashdash$ac_option in
745 ac_dashdash=yes ;;
747 -bindir | --bindir | --bindi | --bind | --bin | --bi)
748 ac_prev=bindir ;;
749 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
750 bindir=$ac_optarg ;;
752 -build | --build | --buil | --bui | --bu)
753 ac_prev=build_alias ;;
754 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
755 build_alias=$ac_optarg ;;
757 -cache-file | --cache-file | --cache-fil | --cache-fi \
758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
759 ac_prev=cache_file ;;
760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
762 cache_file=$ac_optarg ;;
764 --config-cache | -C)
765 cache_file=config.cache ;;
767 -datadir | --datadir | --datadi | --datad)
768 ac_prev=datadir ;;
769 -datadir=* | --datadir=* | --datadi=* | --datad=*)
770 datadir=$ac_optarg ;;
772 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
773 | --dataroo | --dataro | --datar)
774 ac_prev=datarootdir ;;
775 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
776 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
777 datarootdir=$ac_optarg ;;
779 -disable-* | --disable-*)
780 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
783 as_fn_error "invalid feature name: $ac_useropt"
784 ac_useropt_orig=$ac_useropt
785 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
786 case $ac_user_opts in
788 "enable_$ac_useropt"
789 "*) ;;
790 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
791 ac_unrecognized_sep=', ';;
792 esac
793 eval enable_$ac_useropt=no ;;
795 -docdir | --docdir | --docdi | --doc | --do)
796 ac_prev=docdir ;;
797 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
798 docdir=$ac_optarg ;;
800 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
801 ac_prev=dvidir ;;
802 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
803 dvidir=$ac_optarg ;;
805 -enable-* | --enable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
814 "enable_$ac_useropt"
815 "*) ;;
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
818 esac
819 eval enable_$ac_useropt=\$ac_optarg ;;
821 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
822 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
823 | --exec | --exe | --ex)
824 ac_prev=exec_prefix ;;
825 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
826 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
827 | --exec=* | --exe=* | --ex=*)
828 exec_prefix=$ac_optarg ;;
830 -gas | --gas | --ga | --g)
831 # Obsolete; use --with-gas.
832 with_gas=yes ;;
834 -help | --help | --hel | --he | -h)
835 ac_init_help=long ;;
836 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
837 ac_init_help=recursive ;;
838 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
839 ac_init_help=short ;;
841 -host | --host | --hos | --ho)
842 ac_prev=host_alias ;;
843 -host=* | --host=* | --hos=* | --ho=*)
844 host_alias=$ac_optarg ;;
846 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
847 ac_prev=htmldir ;;
848 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
849 | --ht=*)
850 htmldir=$ac_optarg ;;
852 -includedir | --includedir | --includedi | --included | --include \
853 | --includ | --inclu | --incl | --inc)
854 ac_prev=includedir ;;
855 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
856 | --includ=* | --inclu=* | --incl=* | --inc=*)
857 includedir=$ac_optarg ;;
859 -infodir | --infodir | --infodi | --infod | --info | --inf)
860 ac_prev=infodir ;;
861 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
862 infodir=$ac_optarg ;;
864 -libdir | --libdir | --libdi | --libd)
865 ac_prev=libdir ;;
866 -libdir=* | --libdir=* | --libdi=* | --libd=*)
867 libdir=$ac_optarg ;;
869 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
870 | --libexe | --libex | --libe)
871 ac_prev=libexecdir ;;
872 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
873 | --libexe=* | --libex=* | --libe=*)
874 libexecdir=$ac_optarg ;;
876 -localedir | --localedir | --localedi | --localed | --locale)
877 ac_prev=localedir ;;
878 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
879 localedir=$ac_optarg ;;
881 -localstatedir | --localstatedir | --localstatedi | --localstated \
882 | --localstate | --localstat | --localsta | --localst | --locals)
883 ac_prev=localstatedir ;;
884 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
885 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
886 localstatedir=$ac_optarg ;;
888 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
889 ac_prev=mandir ;;
890 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
891 mandir=$ac_optarg ;;
893 -nfp | --nfp | --nf)
894 # Obsolete; use --without-fp.
895 with_fp=no ;;
897 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
898 | --no-cr | --no-c | -n)
899 no_create=yes ;;
901 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
902 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
903 no_recursion=yes ;;
905 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
906 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
907 | --oldin | --oldi | --old | --ol | --o)
908 ac_prev=oldincludedir ;;
909 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
910 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
911 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
912 oldincludedir=$ac_optarg ;;
914 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
915 ac_prev=prefix ;;
916 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
917 prefix=$ac_optarg ;;
919 -program-prefix | --program-prefix | --program-prefi | --program-pref \
920 | --program-pre | --program-pr | --program-p)
921 ac_prev=program_prefix ;;
922 -program-prefix=* | --program-prefix=* | --program-prefi=* \
923 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
924 program_prefix=$ac_optarg ;;
926 -program-suffix | --program-suffix | --program-suffi | --program-suff \
927 | --program-suf | --program-su | --program-s)
928 ac_prev=program_suffix ;;
929 -program-suffix=* | --program-suffix=* | --program-suffi=* \
930 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
931 program_suffix=$ac_optarg ;;
933 -program-transform-name | --program-transform-name \
934 | --program-transform-nam | --program-transform-na \
935 | --program-transform-n | --program-transform- \
936 | --program-transform | --program-transfor \
937 | --program-transfo | --program-transf \
938 | --program-trans | --program-tran \
939 | --progr-tra | --program-tr | --program-t)
940 ac_prev=program_transform_name ;;
941 -program-transform-name=* | --program-transform-name=* \
942 | --program-transform-nam=* | --program-transform-na=* \
943 | --program-transform-n=* | --program-transform-=* \
944 | --program-transform=* | --program-transfor=* \
945 | --program-transfo=* | --program-transf=* \
946 | --program-trans=* | --program-tran=* \
947 | --progr-tra=* | --program-tr=* | --program-t=*)
948 program_transform_name=$ac_optarg ;;
950 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
951 ac_prev=pdfdir ;;
952 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
953 pdfdir=$ac_optarg ;;
955 -psdir | --psdir | --psdi | --psd | --ps)
956 ac_prev=psdir ;;
957 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
958 psdir=$ac_optarg ;;
960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
961 | -silent | --silent | --silen | --sile | --sil)
962 silent=yes ;;
964 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
965 ac_prev=sbindir ;;
966 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
967 | --sbi=* | --sb=*)
968 sbindir=$ac_optarg ;;
970 -sharedstatedir | --sharedstatedir | --sharedstatedi \
971 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
972 | --sharedst | --shareds | --shared | --share | --shar \
973 | --sha | --sh)
974 ac_prev=sharedstatedir ;;
975 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
976 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
977 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
978 | --sha=* | --sh=*)
979 sharedstatedir=$ac_optarg ;;
981 -site | --site | --sit)
982 ac_prev=site ;;
983 -site=* | --site=* | --sit=*)
984 site=$ac_optarg ;;
986 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
987 ac_prev=srcdir ;;
988 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
989 srcdir=$ac_optarg ;;
991 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
992 | --syscon | --sysco | --sysc | --sys | --sy)
993 ac_prev=sysconfdir ;;
994 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
995 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
996 sysconfdir=$ac_optarg ;;
998 -target | --target | --targe | --targ | --tar | --ta | --t)
999 ac_prev=target_alias ;;
1000 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1001 target_alias=$ac_optarg ;;
1003 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1004 verbose=yes ;;
1006 -version | --version | --versio | --versi | --vers | -V)
1007 ac_init_version=: ;;
1009 -with-* | --with-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error "invalid package name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "with_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval with_$ac_useropt=\$ac_optarg ;;
1025 -without-* | --without-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error "invalid package name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "with_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval with_$ac_useropt=no ;;
1041 --x)
1042 # Obsolete; use --with-x.
1043 with_x=yes ;;
1045 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1046 | --x-incl | --x-inc | --x-in | --x-i)
1047 ac_prev=x_includes ;;
1048 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1049 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1050 x_includes=$ac_optarg ;;
1052 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1053 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1054 ac_prev=x_libraries ;;
1055 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1056 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1057 x_libraries=$ac_optarg ;;
1059 -*) as_fn_error "unrecognized option: \`$ac_option'
1060 Try \`$0 --help' for more information."
1063 *=*)
1064 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1065 # Reject names that are not valid shell variable names.
1066 case $ac_envvar in #(
1067 '' | [0-9]* | *[!_$as_cr_alnum]* )
1068 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1069 esac
1070 eval $ac_envvar=\$ac_optarg
1071 export $ac_envvar ;;
1074 # FIXME: should be removed in autoconf 3.0.
1075 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1076 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1078 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1081 esac
1082 done
1084 if test -n "$ac_prev"; then
1085 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1086 as_fn_error "missing argument to $ac_option"
1089 if test -n "$ac_unrecognized_opts"; then
1090 case $enable_option_checking in
1091 no) ;;
1092 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1093 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1094 esac
1097 # Check all directory arguments for consistency.
1098 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1099 datadir sysconfdir sharedstatedir localstatedir includedir \
1100 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1101 libdir localedir mandir
1103 eval ac_val=\$$ac_var
1104 # Remove trailing slashes.
1105 case $ac_val in
1106 */ )
1107 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1108 eval $ac_var=\$ac_val;;
1109 esac
1110 # Be sure to have absolute directory names.
1111 case $ac_val in
1112 [\\/$]* | ?:[\\/]* ) continue;;
1113 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1114 esac
1115 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1116 done
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1121 build=$build_alias
1122 host=$host_alias
1123 target=$target_alias
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x; then
1127 if test "x$build_alias" = x; then
1128 cross_compiling=maybe
1129 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1132 cross_compiling=yes
1136 ac_tool_prefix=
1137 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1139 test "$silent" = yes && exec 6>/dev/null
1142 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di=`ls -di .` &&
1144 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1145 as_fn_error "working directory cannot be determined"
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 as_fn_error "pwd does not report name of working directory"
1150 # Find the source files, if location was not specified.
1151 if test -z "$srcdir"; then
1152 ac_srcdir_defaulted=yes
1153 # Try the directory containing this script, then the parent directory.
1154 ac_confdir=`$as_dirname -- "$as_myself" ||
1155 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156 X"$as_myself" : 'X\(//\)[^/]' \| \
1157 X"$as_myself" : 'X\(//\)$' \| \
1158 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1159 $as_echo X"$as_myself" |
1160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 s//\1/
1164 /^X\(\/\/\)[^/].*/{
1165 s//\1/
1168 /^X\(\/\/\)$/{
1169 s//\1/
1172 /^X\(\/\).*/{
1173 s//\1/
1176 s/.*/./; q'`
1177 srcdir=$ac_confdir
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1179 srcdir=..
1181 else
1182 ac_srcdir_defaulted=no
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1185 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1186 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1188 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1189 ac_abs_confdir=`(
1190 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1191 pwd)`
1192 # When building in place, set srcdir=.
1193 if test "$ac_abs_confdir" = "$ac_pwd"; then
1194 srcdir=.
1196 # Remove unnecessary trailing slashes from srcdir.
1197 # Double slashes in file names in object file debugging info
1198 # mess up M-x gdb in Emacs.
1199 case $srcdir in
1200 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1201 esac
1202 for ac_var in $ac_precious_vars; do
1203 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204 eval ac_env_${ac_var}_value=\$${ac_var}
1205 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207 done
1210 # Report the --help message.
1212 if test "$ac_init_help" = "long"; then
1213 # Omit some internal or obsolete options to make the list less imposing.
1214 # This message is too long to be a string in the A/UX 3.1 sh.
1215 cat <<_ACEOF
1216 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1218 Usage: $0 [OPTION]... [VAR=VALUE]...
1220 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221 VAR=VALUE. See below for descriptions of some of the useful variables.
1223 Defaults for the options are specified in brackets.
1225 Configuration:
1226 -h, --help display this help and exit
1227 --help=short display options specific to this package
1228 --help=recursive display the short help of all the included packages
1229 -V, --version display version information and exit
1230 -q, --quiet, --silent do not print \`checking...' messages
1231 --cache-file=FILE cache test results in FILE [disabled]
1232 -C, --config-cache alias for \`--cache-file=config.cache'
1233 -n, --no-create do not create output files
1234 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1236 Installation directories:
1237 --prefix=PREFIX install architecture-independent files in PREFIX
1238 [$ac_default_prefix]
1239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1240 [PREFIX]
1242 By default, \`make install' will install all the files in
1243 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1244 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245 for instance \`--prefix=\$HOME'.
1247 For better control, use the options below.
1249 Fine tuning of the installation directories:
1250 --bindir=DIR user executables [EPREFIX/bin]
1251 --sbindir=DIR system admin executables [EPREFIX/sbin]
1252 --libexecdir=DIR program executables [EPREFIX/libexec]
1253 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1254 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1255 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1256 --libdir=DIR object code libraries [EPREFIX/lib]
1257 --includedir=DIR C header files [PREFIX/include]
1258 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1259 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1260 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1261 --infodir=DIR info documentation [DATAROOTDIR/info]
1262 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1263 --mandir=DIR man documentation [DATAROOTDIR/man]
1264 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1265 --htmldir=DIR html documentation [DOCDIR]
1266 --dvidir=DIR dvi documentation [DOCDIR]
1267 --pdfdir=DIR pdf documentation [DOCDIR]
1268 --psdir=DIR ps documentation [DOCDIR]
1269 _ACEOF
1271 cat <<\_ACEOF
1273 System types:
1274 --build=BUILD configure for building on BUILD [guessed]
1275 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1276 _ACEOF
1279 if test -n "$ac_init_help"; then
1280 case $ac_init_help in
1281 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1282 esac
1283 cat <<\_ACEOF
1285 Optional Features:
1286 --disable-option-checking ignore unrecognized --enable/--with options
1287 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1288 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1289 --disable-shared don't provide a shared libgcc
1290 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1291 --enable-maintainer-mode
1292 enable make rules and dependencies not useful (and
1293 sometimes confusing) to the casual installer
1294 --enable-decimal-float={no,yes,bid,dpd}
1295 enable decimal float extension to C. Selecting 'bid'
1296 or 'dpd' choses which decimal floating point format
1297 to use
1298 --enable-sjlj-exceptions
1299 force use of builtin_setjmp for exceptions
1300 --enable-tls Use thread-local storage [default=yes]
1302 Optional Packages:
1303 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1304 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1305 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1306 --with-cross-host=HOST Configuring with a cross compiler
1307 --with-ld arrange to use the specified ld (full pathname)
1308 --with-slibdir=DIR shared libraries in DIR LIBDIR
1309 --with-build-libsubdir=DIR Directory where to find libraries for build system
1310 --with-system-libunwind use installed libunwind
1312 Some influential environment variables:
1313 CC C compiler command
1314 CFLAGS C compiler flags
1315 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1316 nonstandard directory <lib dir>
1317 LIBS libraries to pass to the linker, e.g. -l<library>
1318 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1319 you have headers in a nonstandard directory <include dir>
1320 CPP C preprocessor
1322 Use these variables to override the choices made by `configure' or to help
1323 it to find libraries and programs with nonstandard names/locations.
1325 Report bugs to the package provider.
1326 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1327 General help using GNU software: <http://www.gnu.org/gethelp/>.
1328 _ACEOF
1329 ac_status=$?
1332 if test "$ac_init_help" = "recursive"; then
1333 # If there are subdirs, report their specific --help.
1334 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1335 test -d "$ac_dir" ||
1336 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1337 continue
1338 ac_builddir=.
1340 case "$ac_dir" in
1341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1344 # A ".." for each directory in $ac_dir_suffix.
1345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1346 case $ac_top_builddir_sub in
1347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1349 esac ;;
1350 esac
1351 ac_abs_top_builddir=$ac_pwd
1352 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1353 # for backward compatibility:
1354 ac_top_builddir=$ac_top_build_prefix
1356 case $srcdir in
1357 .) # We are building in place.
1358 ac_srcdir=.
1359 ac_top_srcdir=$ac_top_builddir_sub
1360 ac_abs_top_srcdir=$ac_pwd ;;
1361 [\\/]* | ?:[\\/]* ) # Absolute name.
1362 ac_srcdir=$srcdir$ac_dir_suffix;
1363 ac_top_srcdir=$srcdir
1364 ac_abs_top_srcdir=$srcdir ;;
1365 *) # Relative name.
1366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1367 ac_top_srcdir=$ac_top_build_prefix$srcdir
1368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1369 esac
1370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1372 cd "$ac_dir" || { ac_status=$?; continue; }
1373 # Check for guested configure.
1374 if test -f "$ac_srcdir/configure.gnu"; then
1375 echo &&
1376 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1377 elif test -f "$ac_srcdir/configure"; then
1378 echo &&
1379 $SHELL "$ac_srcdir/configure" --help=recursive
1380 else
1381 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1382 fi || ac_status=$?
1383 cd "$ac_pwd" || { ac_status=$?; break; }
1384 done
1387 test -n "$ac_init_help" && exit $ac_status
1388 if $ac_init_version; then
1389 cat <<\_ACEOF
1390 GNU C Runtime Library configure 1.0
1391 generated by GNU Autoconf 2.64
1393 Copyright (C) 2009 Free Software Foundation, Inc.
1394 This configure script is free software; the Free Software Foundation
1395 gives unlimited permission to copy, distribute and modify it.
1396 _ACEOF
1397 exit
1400 ## ------------------------ ##
1401 ## Autoconf initialization. ##
1402 ## ------------------------ ##
1404 # ac_fn_c_try_compile LINENO
1405 # --------------------------
1406 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1407 ac_fn_c_try_compile ()
1409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1410 rm -f conftest.$ac_objext
1411 if { { ac_try="$ac_compile"
1412 case "(($ac_try" in
1413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1414 *) ac_try_echo=$ac_try;;
1415 esac
1416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1417 $as_echo "$ac_try_echo"; } >&5
1418 (eval "$ac_compile") 2>conftest.err
1419 ac_status=$?
1420 if test -s conftest.err; then
1421 grep -v '^ *+' conftest.err >conftest.er1
1422 cat conftest.er1 >&5
1423 mv -f conftest.er1 conftest.err
1425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1426 test $ac_status = 0; } && {
1427 test -z "$ac_c_werror_flag" ||
1428 test ! -s conftest.err
1429 } && test -s conftest.$ac_objext; then :
1430 ac_retval=0
1431 else
1432 $as_echo "$as_me: failed program was:" >&5
1433 sed 's/^/| /' conftest.$ac_ext >&5
1435 ac_retval=1
1437 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1438 return $ac_retval
1440 } # ac_fn_c_try_compile
1442 # ac_fn_c_try_cpp LINENO
1443 # ----------------------
1444 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1445 ac_fn_c_try_cpp ()
1447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1448 if { { ac_try="$ac_cpp conftest.$ac_ext"
1449 case "(($ac_try" in
1450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1451 *) ac_try_echo=$ac_try;;
1452 esac
1453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454 $as_echo "$ac_try_echo"; } >&5
1455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1456 ac_status=$?
1457 if test -s conftest.err; then
1458 grep -v '^ *+' conftest.err >conftest.er1
1459 cat conftest.er1 >&5
1460 mv -f conftest.er1 conftest.err
1462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463 test $ac_status = 0; } >/dev/null && {
1464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1465 test ! -s conftest.err
1466 }; then :
1467 ac_retval=0
1468 else
1469 $as_echo "$as_me: failed program was:" >&5
1470 sed 's/^/| /' conftest.$ac_ext >&5
1472 ac_retval=1
1474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1475 return $ac_retval
1477 } # ac_fn_c_try_cpp
1479 # ac_fn_c_try_run LINENO
1480 # ----------------------
1481 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1482 # that executables *can* be run.
1483 ac_fn_c_try_run ()
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 if { { ac_try="$ac_link"
1487 case "(($ac_try" in
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1490 esac
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_link") 2>&5
1494 ac_status=$?
1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1496 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1497 { { case "(($ac_try" in
1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1500 esac
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_try") 2>&5
1504 ac_status=$?
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; }; }; then :
1507 ac_retval=0
1508 else
1509 $as_echo "$as_me: program exited with status $ac_status" >&5
1510 $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1513 ac_retval=$ac_status
1515 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1517 return $ac_retval
1519 } # ac_fn_c_try_run
1521 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1522 # --------------------------------------------
1523 # Tries to find the compile-time value of EXPR in a program that includes
1524 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1525 # computed
1526 ac_fn_c_compute_int ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 if test "$cross_compiling" = yes; then
1530 # Depending upon the size, compute the lo and hi bounds.
1531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1532 /* end confdefs.h. */
1535 main ()
1537 static int test_array [1 - 2 * !(($2) >= 0)];
1538 test_array [0] = 0
1541 return 0;
1543 _ACEOF
1544 if ac_fn_c_try_compile "$LINENO"; then :
1545 ac_lo=0 ac_mid=0
1546 while :; do
1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548 /* end confdefs.h. */
1551 main ()
1553 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1554 test_array [0] = 0
1557 return 0;
1559 _ACEOF
1560 if ac_fn_c_try_compile "$LINENO"; then :
1561 ac_hi=$ac_mid; break
1562 else
1563 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1564 if test $ac_lo -le $ac_mid; then
1565 ac_lo= ac_hi=
1566 break
1568 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1571 done
1572 else
1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1577 main ()
1579 static int test_array [1 - 2 * !(($2) < 0)];
1580 test_array [0] = 0
1583 return 0;
1585 _ACEOF
1586 if ac_fn_c_try_compile "$LINENO"; then :
1587 ac_hi=-1 ac_mid=-1
1588 while :; do
1589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590 /* end confdefs.h. */
1593 main ()
1595 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1596 test_array [0] = 0
1599 return 0;
1601 _ACEOF
1602 if ac_fn_c_try_compile "$LINENO"; then :
1603 ac_lo=$ac_mid; break
1604 else
1605 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1606 if test $ac_mid -le $ac_hi; then
1607 ac_lo= ac_hi=
1608 break
1610 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1613 done
1614 else
1615 ac_lo= ac_hi=
1617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1620 # Binary search between lo and hi bounds.
1621 while test "x$ac_lo" != "x$ac_hi"; do
1622 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1627 main ()
1629 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1630 test_array [0] = 0
1633 return 0;
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"; then :
1637 ac_hi=$ac_mid
1638 else
1639 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642 done
1643 case $ac_lo in #((
1644 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1645 '') ac_retval=1 ;;
1646 esac
1647 else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1651 static long int longval () { return $2; }
1652 static unsigned long int ulongval () { return $2; }
1653 #include <stdio.h>
1654 #include <stdlib.h>
1656 main ()
1659 FILE *f = fopen ("conftest.val", "w");
1660 if (! f)
1661 return 1;
1662 if (($2) < 0)
1664 long int i = longval ();
1665 if (i != ($2))
1666 return 1;
1667 fprintf (f, "%ld", i);
1669 else
1671 unsigned long int i = ulongval ();
1672 if (i != ($2))
1673 return 1;
1674 fprintf (f, "%lu", i);
1676 /* Do not output a trailing newline, as this causes \r\n confusion
1677 on some platforms. */
1678 return ferror (f) || fclose (f) != 0;
1681 return 0;
1683 _ACEOF
1684 if ac_fn_c_try_run "$LINENO"; then :
1685 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1686 else
1687 ac_retval=1
1689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1690 conftest.$ac_objext conftest.beam conftest.$ac_ext
1691 rm -f conftest.val
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 return $ac_retval
1697 } # ac_fn_c_compute_int
1698 cat >config.log <<_ACEOF
1699 This file contains any messages produced by compilers while
1700 running configure, to aid debugging if configure makes a mistake.
1702 It was created by GNU C Runtime Library $as_me 1.0, which was
1703 generated by GNU Autoconf 2.64. Invocation command line was
1705 $ $0 $@
1707 _ACEOF
1708 exec 5>>config.log
1710 cat <<_ASUNAME
1711 ## --------- ##
1712 ## Platform. ##
1713 ## --------- ##
1715 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1716 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1717 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1718 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1719 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1721 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1722 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1724 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1725 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1726 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1727 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1728 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1729 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1730 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1732 _ASUNAME
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 for as_dir in $PATH
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 $as_echo "PATH: $as_dir"
1740 done
1741 IFS=$as_save_IFS
1743 } >&5
1745 cat >&5 <<_ACEOF
1748 ## ----------- ##
1749 ## Core tests. ##
1750 ## ----------- ##
1752 _ACEOF
1755 # Keep a trace of the command line.
1756 # Strip out --no-create and --no-recursion so they do not pile up.
1757 # Strip out --silent because we don't want to record it for future runs.
1758 # Also quote any args containing shell meta-characters.
1759 # Make two passes to allow for proper duplicate-argument suppression.
1760 ac_configure_args=
1761 ac_configure_args0=
1762 ac_configure_args1=
1763 ac_must_keep_next=false
1764 for ac_pass in 1 2
1766 for ac_arg
1768 case $ac_arg in
1769 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1771 | -silent | --silent | --silen | --sile | --sil)
1772 continue ;;
1773 *\'*)
1774 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 esac
1776 case $ac_pass in
1777 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1779 as_fn_append ac_configure_args1 " '$ac_arg'"
1780 if test $ac_must_keep_next = true; then
1781 ac_must_keep_next=false # Got value, back to normal.
1782 else
1783 case $ac_arg in
1784 *=* | --config-cache | -C | -disable-* | --disable-* \
1785 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1786 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1787 | -with-* | --with-* | -without-* | --without-* | --x)
1788 case "$ac_configure_args0 " in
1789 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1790 esac
1792 -* ) ac_must_keep_next=true ;;
1793 esac
1795 as_fn_append ac_configure_args " '$ac_arg'"
1797 esac
1798 done
1799 done
1800 { ac_configure_args0=; unset ac_configure_args0;}
1801 { ac_configure_args1=; unset ac_configure_args1;}
1803 # When interrupted or exit'd, cleanup temporary files, and complete
1804 # config.log. We remove comments because anyway the quotes in there
1805 # would cause problems or look ugly.
1806 # WARNING: Use '\'' to represent an apostrophe within the trap.
1807 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1808 trap 'exit_status=$?
1809 # Save into config.log some information that might help in debugging.
1811 echo
1813 cat <<\_ASBOX
1814 ## ---------------- ##
1815 ## Cache variables. ##
1816 ## ---------------- ##
1817 _ASBOX
1818 echo
1819 # The following way of writing the cache mishandles newlines in values,
1821 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1822 eval ac_val=\$$ac_var
1823 case $ac_val in #(
1824 *${as_nl}*)
1825 case $ac_var in #(
1826 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1827 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1828 esac
1829 case $ac_var in #(
1830 _ | IFS | as_nl) ;; #(
1831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1832 *) { eval $ac_var=; unset $ac_var;} ;;
1833 esac ;;
1834 esac
1835 done
1836 (set) 2>&1 |
1837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1838 *${as_nl}ac_space=\ *)
1839 sed -n \
1840 "s/'\''/'\''\\\\'\'''\''/g;
1841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1842 ;; #(
1844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1846 esac |
1847 sort
1849 echo
1851 cat <<\_ASBOX
1852 ## ----------------- ##
1853 ## Output variables. ##
1854 ## ----------------- ##
1855 _ASBOX
1856 echo
1857 for ac_var in $ac_subst_vars
1859 eval ac_val=\$$ac_var
1860 case $ac_val in
1861 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862 esac
1863 $as_echo "$ac_var='\''$ac_val'\''"
1864 done | sort
1865 echo
1867 if test -n "$ac_subst_files"; then
1868 cat <<\_ASBOX
1869 ## ------------------- ##
1870 ## File substitutions. ##
1871 ## ------------------- ##
1872 _ASBOX
1873 echo
1874 for ac_var in $ac_subst_files
1876 eval ac_val=\$$ac_var
1877 case $ac_val in
1878 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 esac
1880 $as_echo "$ac_var='\''$ac_val'\''"
1881 done | sort
1882 echo
1885 if test -s confdefs.h; then
1886 cat <<\_ASBOX
1887 ## ----------- ##
1888 ## confdefs.h. ##
1889 ## ----------- ##
1890 _ASBOX
1891 echo
1892 cat confdefs.h
1893 echo
1895 test "$ac_signal" != 0 &&
1896 $as_echo "$as_me: caught signal $ac_signal"
1897 $as_echo "$as_me: exit $exit_status"
1898 } >&5
1899 rm -f core *.core core.conftest.* &&
1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1901 exit $exit_status
1903 for ac_signal in 1 2 13 15; do
1904 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1905 done
1906 ac_signal=0
1908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1909 rm -f -r conftest* confdefs.h
1911 $as_echo "/* confdefs.h */" > confdefs.h
1913 # Predefined preprocessor variables.
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_NAME "$PACKAGE_NAME"
1917 _ACEOF
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1921 _ACEOF
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1925 _ACEOF
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_STRING "$PACKAGE_STRING"
1929 _ACEOF
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933 _ACEOF
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_URL "$PACKAGE_URL"
1937 _ACEOF
1940 # Let the site file select an alternate cache file if it wants to.
1941 # Prefer an explicitly selected file to automatically selected ones.
1942 ac_site_file1=NONE
1943 ac_site_file2=NONE
1944 if test -n "$CONFIG_SITE"; then
1945 ac_site_file1=$CONFIG_SITE
1946 elif test "x$prefix" != xNONE; then
1947 ac_site_file1=$prefix/share/config.site
1948 ac_site_file2=$prefix/etc/config.site
1949 else
1950 ac_site_file1=$ac_default_prefix/share/config.site
1951 ac_site_file2=$ac_default_prefix/etc/config.site
1953 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1955 test "x$ac_site_file" = xNONE && continue
1956 if test -r "$ac_site_file"; then
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1958 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1959 sed 's/^/| /' "$ac_site_file" >&5
1960 . "$ac_site_file"
1962 done
1964 if test -r "$cache_file"; then
1965 # Some versions of bash will fail to source /dev/null (special
1966 # files actually), so we avoid doing that.
1967 if test -f "$cache_file"; then
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1969 $as_echo "$as_me: loading cache $cache_file" >&6;}
1970 case $cache_file in
1971 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1972 *) . "./$cache_file";;
1973 esac
1975 else
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1977 $as_echo "$as_me: creating cache $cache_file" >&6;}
1978 >$cache_file
1981 # Check that the precious variables saved in the cache have kept the same
1982 # value.
1983 ac_cache_corrupted=false
1984 for ac_var in $ac_precious_vars; do
1985 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1986 eval ac_new_set=\$ac_env_${ac_var}_set
1987 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1988 eval ac_new_val=\$ac_env_${ac_var}_value
1989 case $ac_old_set,$ac_new_set in
1990 set,)
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1992 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1993 ac_cache_corrupted=: ;;
1994 ,set)
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1996 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
1998 ,);;
2000 if test "x$ac_old_val" != "x$ac_new_val"; then
2001 # differences in whitespace do not lead to failure.
2002 ac_old_val_w=`echo x $ac_old_val`
2003 ac_new_val_w=`echo x $ac_new_val`
2004 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2006 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007 ac_cache_corrupted=:
2008 else
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2010 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2011 eval $ac_var=\$ac_old_val
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2014 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2016 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2017 fi;;
2018 esac
2019 # Pass precious variables to config.status.
2020 if test "$ac_new_set" = set; then
2021 case $ac_new_val in
2022 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 *) ac_arg=$ac_var=$ac_new_val ;;
2024 esac
2025 case " $ac_configure_args " in
2026 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2027 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2028 esac
2030 done
2031 if $ac_cache_corrupted; then
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2035 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2036 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2038 ## -------------------- ##
2039 ## Main body of script. ##
2040 ## -------------------- ##
2042 ac_ext=c
2043 ac_cpp='$CPP $CPPFLAGS'
2044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054 # The libgcc should not depend on any header files
2058 # Check whether --with-target-subdir was given.
2059 if test "${with_target_subdir+set}" = set; then :
2060 withval=$with_target_subdir;
2064 # Check whether --with-cross-host was given.
2065 if test "${with_cross_host+set}" = set; then :
2066 withval=$with_cross_host;
2070 # Check whether --with-ld was given.
2071 if test "${with_ld+set}" = set; then :
2072 withval=$with_ld;
2076 if test "${srcdir}" = "."; then
2077 if test -n "${with_build_subdir}"; then
2078 libgcc_topdir="${srcdir}/../.."
2079 with_target_subdir=
2080 elif test -z "${with_target_subdir}"; then
2081 libgcc_topdir="${srcdir}/.."
2082 else
2083 if test "${with_target_subdir}" != "."; then
2084 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2085 else
2086 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2089 else
2090 libgcc_topdir="${srcdir}/.."
2093 ac_aux_dir=
2094 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2095 for ac_t in install-sh install.sh shtool; do
2096 if test -f "$ac_dir/$ac_t"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/$ac_t -c"
2099 break 2
2101 done
2102 done
2103 if test -z "$ac_aux_dir"; then
2104 as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2107 # These three variables are undocumented and unsupported,
2108 # and are intended to be withdrawn in a future Autoconf release.
2109 # They can cause serious problems if a builder's source tree is in a directory
2110 # whose full name contains unusual characters.
2111 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2112 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2113 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2116 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2119 # Check whether --enable-shared was given.
2120 if test "${enable_shared+set}" = set; then :
2121 enableval=$enable_shared;
2122 case $enable_shared in
2123 yes | no) ;;
2125 enable_shared=no
2126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2127 for pkg in $enableval; do
2128 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2129 enable_shared=yes
2131 done
2132 IFS="$ac_save_ifs"
2134 esac
2136 else
2137 enable_shared=yes
2142 # Make sure we can run config.sub.
2143 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2147 $as_echo_n "checking build system type... " >&6; }
2148 if test "${ac_cv_build+set}" = set; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 ac_build_alias=$build_alias
2152 test "x$ac_build_alias" = x &&
2153 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2154 test "x$ac_build_alias" = x &&
2155 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2156 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2157 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2161 $as_echo "$ac_cv_build" >&6; }
2162 case $ac_cv_build in
2163 *-*-*) ;;
2164 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2165 esac
2166 build=$ac_cv_build
2167 ac_save_IFS=$IFS; IFS='-'
2168 set x $ac_cv_build
2169 shift
2170 build_cpu=$1
2171 build_vendor=$2
2172 shift; shift
2173 # Remember, the first character of IFS is used to create $*,
2174 # except with old shells:
2175 build_os=$*
2176 IFS=$ac_save_IFS
2177 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2181 $as_echo_n "checking host system type... " >&6; }
2182 if test "${ac_cv_host+set}" = set; then :
2183 $as_echo_n "(cached) " >&6
2184 else
2185 if test "x$host_alias" = x; then
2186 ac_cv_host=$ac_cv_build
2187 else
2188 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2189 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2194 $as_echo "$ac_cv_host" >&6; }
2195 case $ac_cv_host in
2196 *-*-*) ;;
2197 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2198 esac
2199 host=$ac_cv_host
2200 ac_save_IFS=$IFS; IFS='-'
2201 set x $ac_cv_host
2202 shift
2203 host_cpu=$1
2204 host_vendor=$2
2205 shift; shift
2206 # Remember, the first character of IFS is used to create $*,
2207 # except with old shells:
2208 host_os=$*
2209 IFS=$ac_save_IFS
2210 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2217 case "${host}" in
2218 # PIC is the default on some targets or must not be used.
2219 *-*-darwin*)
2220 # PIC is the default on this platform
2221 # Common symbols not allowed in MH_DYLIB files
2222 PICFLAG=-fno-common
2224 alpha*-dec-osf5*)
2225 # PIC is the default.
2227 hppa*64*-*-hpux*)
2228 # PIC is the default for 64-bit PA HP-UX.
2230 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
2232 i[34567]86-*-interix[3-9]*)
2233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2234 # Instead, we relocate shared libraries at runtime.
2236 i[34567]86-*-nto-qnx*)
2237 # QNX uses GNU C++, but need to define -shared option too, otherwise
2238 # it will coredump.
2239 PICFLAG='-fPIC -shared'
2241 i[34567]86-pc-msdosdjgpp*)
2242 # DJGPP does not support shared libraries at all.
2244 ia64*-*-hpux*)
2245 # On IA64 HP-UX, PIC is the default but the pic flag
2246 # sets the default TLS model and affects inlining.
2247 PICFLAG=-fPIC
2249 mips-sgi-irix6*)
2250 # PIC is the default.
2252 rs6000-ibm-aix* | powerpc-ibm-aix*)
2253 # All AIX code is PIC.
2256 # Some targets support both -fPIC and -fpic, but prefer the latter.
2257 # FIXME: Why?
2258 i[34567]86-*-* | x86_64-*-*)
2259 PICFLAG=-fpic
2261 m68k-*-*)
2262 PICFLAG=-fpic
2264 # FIXME: Override -fPIC default in libgcc only?
2265 sh-*-linux* | sh[2346lbe]*-*-linux*)
2266 PICFLAG=-fpic
2268 # FIXME: Simplify to sh*-*-netbsd*?
2269 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2270 sh64-*-netbsd* | sh64l*-*-netbsd*)
2271 PICFLAG=-fpic
2273 # Default to -fPIC unless specified otherwise.
2275 PICFLAG=-fPIC
2277 esac
2279 # If the user explicitly uses -fpic/-fPIC, keep that.
2280 case "${CFLAGS}" in
2281 *-fpic*)
2282 PICFLAG=-fpic
2284 *-fPIC*)
2285 PICFLAG=-fPIC
2287 esac
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2292 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2293 # Check whether --enable-version-specific-runtime-libs was given.
2294 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2295 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2296 yes) version_specific_libs=yes ;;
2297 no) version_specific_libs=no ;;
2298 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2299 esac
2300 else
2301 version_specific_libs=no
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2305 $as_echo "$version_specific_libs" >&6; }
2308 # Check whether --with-slibdir was given.
2309 if test "${with_slibdir+set}" = set; then :
2310 withval=$with_slibdir; slibdir="$with_slibdir"
2311 else
2312 if test "${version_specific_libs}" = yes; then
2313 slibdir='$(libsubdir)'
2314 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2315 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2316 else
2317 slibdir='$(libdir)'
2323 # Command-line options.
2324 # Very limited version of AC_MAINTAINER_MODE.
2325 # Check whether --enable-maintainer-mode was given.
2326 if test "${enable_maintainer_mode+set}" = set; then :
2327 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2328 yes) MAINT='' ;;
2329 no) MAINT='#' ;;
2330 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2331 esac
2332 maintainer_mode=${enableval}
2333 else
2334 MAINT='#'
2338 # Find a good install program. We prefer a C program (faster),
2339 # so one script is as good as another. But avoid the broken or
2340 # incompatible versions:
2341 # SysV /etc/install, /usr/sbin/install
2342 # SunOS /usr/etc/install
2343 # IRIX /sbin/install
2344 # AIX /bin/install
2345 # AmigaOS /C/install, which installs bootblocks on floppy discs
2346 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2349 # OS/2's system install, which has a completely different semantic
2350 # ./install, which can be erroneously created by make from ./install.sh.
2351 # Reject install programs that cannot install multiple files.
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2353 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2354 if test -z "$INSTALL"; then
2355 if test "${ac_cv_path_install+set}" = set; then :
2356 $as_echo_n "(cached) " >&6
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 # Account for people who put trailing slashes in PATH elements.
2364 case $as_dir/ in #((
2365 ./ | .// | /[cC]/* | \
2366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2367 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2368 /usr/ucb/* ) ;;
2370 # OSF1 and SCO ODT 3.0 have their own names for install.
2371 # Don't use installbsd from OSF since it installs stuff as root
2372 # by default.
2373 for ac_prog in ginstall scoinst install; do
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2376 if test $ac_prog = install &&
2377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2378 # AIX install. It has an incompatible calling convention.
2380 elif test $ac_prog = install &&
2381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382 # program-specific install script used by HP pwplus--don't use.
2384 else
2385 rm -rf conftest.one conftest.two conftest.dir
2386 echo one > conftest.one
2387 echo two > conftest.two
2388 mkdir conftest.dir
2389 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2390 test -s conftest.one && test -s conftest.two &&
2391 test -s conftest.dir/conftest.one &&
2392 test -s conftest.dir/conftest.two
2393 then
2394 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2395 break 3
2399 done
2400 done
2402 esac
2404 done
2405 IFS=$as_save_IFS
2407 rm -rf conftest.one conftest.two conftest.dir
2410 if test "${ac_cv_path_install+set}" = set; then
2411 INSTALL=$ac_cv_path_install
2412 else
2413 # As a last resort, use the slow shell script. Don't cache a
2414 # value for INSTALL within a source directory, because that will
2415 # break other packages using the cache if that directory is
2416 # removed, or if the value is a relative name.
2417 INSTALL=$ac_install_sh
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2421 $as_echo "$INSTALL" >&6; }
2423 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2424 # It thinks the first close brace ends the variable substitution.
2425 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2427 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2429 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2432 for ac_prog in gawk mawk nawk awk
2434 # Extract the first word of "$ac_prog", so it can be a program name with args.
2435 set dummy $ac_prog; ac_word=$2
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437 $as_echo_n "checking for $ac_word... " >&6; }
2438 if test "${ac_cv_prog_AWK+set}" = set; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 if test -n "$AWK"; then
2442 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_AWK="$ac_prog"
2452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2455 done
2456 done
2457 IFS=$as_save_IFS
2461 AWK=$ac_cv_prog_AWK
2462 if test -n "$AWK"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2464 $as_echo "$AWK" >&6; }
2465 else
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467 $as_echo "no" >&6; }
2471 test -n "$AWK" && break
2472 done
2474 # We need awk; bail out if it's missing.
2475 case ${AWK} in
2476 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
2477 esac
2480 case ${build_alias} in
2481 "") build_noncanonical=${build} ;;
2482 *) build_noncanonical=${build_alias} ;;
2483 esac
2485 case ${host_alias} in
2486 "") host_noncanonical=${build_noncanonical} ;;
2487 *) host_noncanonical=${host_alias} ;;
2488 esac
2492 case ${target_alias} in
2493 "") target_noncanonical=${host_noncanonical} ;;
2494 *) target_noncanonical=${target_alias} ;;
2495 esac
2500 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2501 # have matching libraries, they should use host libraries: Makefile.tpl
2502 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2503 # However, they still use the build modules, because the corresponding
2504 # host modules (e.g. bison) are only built for the host when bootstrap
2505 # finishes. So:
2506 # - build_subdir is where we find build modules, and never changes.
2507 # - build_libsubdir is where we find build libraries, and can be overridden.
2509 # Prefix 'build-' so this never conflicts with target_subdir.
2510 build_subdir="build-${build_noncanonical}"
2512 # Check whether --with-build-libsubdir was given.
2513 if test "${with_build_libsubdir+set}" = set; then :
2514 withval=$with_build_libsubdir; build_libsubdir="$withval"
2515 else
2516 build_libsubdir="$build_subdir"
2519 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2520 if ( test $srcdir = . && test -d gcc ) \
2521 || test -d $srcdir/../host-${host_noncanonical}; then
2522 host_subdir="host-${host_noncanonical}"
2523 else
2524 host_subdir=.
2526 # No prefix.
2527 target_subdir=${target_noncanonical}
2530 # Calculate toolexeclibdir
2531 # Also toolexecdir, though it's only used in toolexeclibdir
2532 case ${version_specific_libs} in
2533 yes)
2534 # Need the gcc compiler version to know where to install libraries
2535 # and header files if --enable-version-specific-runtime-libs option
2536 # is selected.
2537 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2538 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2541 if test -n "$with_cross_host" &&
2542 test x"$with_cross_host" != x"no"; then
2543 # Install a library built with a cross compiler in tooldir, not libdir.
2544 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2545 toolexeclibdir='$(toolexecdir)/lib'
2546 else
2547 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2548 toolexeclibdir='$(libdir)'
2550 multi_os_directory=`$CC -print-multi-os-directory`
2551 case $multi_os_directory in
2552 .) ;; # Avoid trailing /.
2553 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2554 esac
2556 esac
2560 if test -n "$ac_tool_prefix"; then
2561 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2562 set dummy ${ac_tool_prefix}ar; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if test "${ac_cv_prog_AR+set}" = set; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test -n "$AR"; then
2569 ac_cv_prog_AR="$AR" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_AR="${ac_tool_prefix}ar"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2582 done
2583 done
2584 IFS=$as_save_IFS
2588 AR=$ac_cv_prog_AR
2589 if test -n "$AR"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2591 $as_echo "$AR" >&6; }
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2599 if test -z "$ac_cv_prog_AR"; then
2600 ac_ct_AR=$AR
2601 # Extract the first word of "ar", so it can be a program name with args.
2602 set dummy ar; ac_word=$2
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 if test -n "$ac_ct_AR"; then
2609 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_ac_ct_AR="ar"
2619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2622 done
2623 done
2624 IFS=$as_save_IFS
2628 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2629 if test -n "$ac_ct_AR"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2631 $as_echo "$ac_ct_AR" >&6; }
2632 else
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2637 if test "x$ac_ct_AR" = x; then
2638 AR=""
2639 else
2640 case $cross_compiling:$ac_tool_warned in
2641 yes:)
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2644 ac_tool_warned=yes ;;
2645 esac
2646 AR=$ac_ct_AR
2648 else
2649 AR="$ac_cv_prog_AR"
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_prog_LIPO+set}" = set; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$LIPO"; then
2661 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2674 done
2675 done
2676 IFS=$as_save_IFS
2680 LIPO=$ac_cv_prog_LIPO
2681 if test -n "$LIPO"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2683 $as_echo "$LIPO" >&6; }
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2691 if test -z "$ac_cv_prog_LIPO"; then
2692 ac_ct_LIPO=$LIPO
2693 # Extract the first word of "lipo", so it can be a program name with args.
2694 set dummy lipo; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$ac_ct_LIPO"; then
2701 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_ac_ct_LIPO="lipo"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2714 done
2715 done
2716 IFS=$as_save_IFS
2720 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2721 if test -n "$ac_ct_LIPO"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2723 $as_echo "$ac_ct_LIPO" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2729 if test "x$ac_ct_LIPO" = x; then
2730 LIPO=":"
2731 else
2732 case $cross_compiling:$ac_tool_warned in
2733 yes:)
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2736 ac_tool_warned=yes ;;
2737 esac
2738 LIPO=$ac_ct_LIPO
2740 else
2741 LIPO="$ac_cv_prog_LIPO"
2744 if test -n "$ac_tool_prefix"; then
2745 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2746 set dummy ${ac_tool_prefix}nm; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if test "${ac_cv_prog_NM+set}" = set; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 if test -n "$NM"; then
2753 ac_cv_prog_NM="$NM" # Let the user override the test.
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762 ac_cv_prog_NM="${ac_tool_prefix}nm"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2766 done
2767 done
2768 IFS=$as_save_IFS
2772 NM=$ac_cv_prog_NM
2773 if test -n "$NM"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2775 $as_echo "$NM" >&6; }
2776 else
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2783 if test -z "$ac_cv_prog_NM"; then
2784 ac_ct_NM=$NM
2785 # Extract the first word of "nm", so it can be a program name with args.
2786 set dummy nm; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 if test -n "$ac_ct_NM"; then
2793 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_ac_ct_NM="nm"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2806 done
2807 done
2808 IFS=$as_save_IFS
2812 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2813 if test -n "$ac_ct_NM"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2815 $as_echo "$ac_ct_NM" >&6; }
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2821 if test "x$ac_ct_NM" = x; then
2822 NM=""
2823 else
2824 case $cross_compiling:$ac_tool_warned in
2825 yes:)
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2828 ac_tool_warned=yes ;;
2829 esac
2830 NM=$ac_ct_NM
2832 else
2833 NM="$ac_cv_prog_NM"
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$RANLIB"; then
2845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2858 done
2859 done
2860 IFS=$as_save_IFS
2864 RANLIB=$ac_cv_prog_RANLIB
2865 if test -n "$RANLIB"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2867 $as_echo "$RANLIB" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2875 if test -z "$ac_cv_prog_RANLIB"; then
2876 ac_ct_RANLIB=$RANLIB
2877 # Extract the first word of "ranlib", so it can be a program name with args.
2878 set dummy ranlib; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$ac_ct_RANLIB"; then
2885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_ac_ct_RANLIB="ranlib"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2898 done
2899 done
2900 IFS=$as_save_IFS
2904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2905 if test -n "$ac_ct_RANLIB"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2907 $as_echo "$ac_ct_RANLIB" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2913 if test "x$ac_ct_RANLIB" = x; then
2914 RANLIB=":"
2915 else
2916 case $cross_compiling:$ac_tool_warned in
2917 yes:)
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920 ac_tool_warned=yes ;;
2921 esac
2922 RANLIB=$ac_ct_RANLIB
2924 else
2925 RANLIB="$ac_cv_prog_RANLIB"
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}strip; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_prog_STRIP+set}" = set; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$STRIP"; then
2937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2950 done
2951 done
2952 IFS=$as_save_IFS
2956 STRIP=$ac_cv_prog_STRIP
2957 if test -n "$STRIP"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2959 $as_echo "$STRIP" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2967 if test -z "$ac_cv_prog_STRIP"; then
2968 ac_ct_STRIP=$STRIP
2969 # Extract the first word of "strip", so it can be a program name with args.
2970 set dummy strip; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 if test -n "$ac_ct_STRIP"; then
2977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_ac_ct_STRIP="strip"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2990 done
2991 done
2992 IFS=$as_save_IFS
2996 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2997 if test -n "$ac_ct_STRIP"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2999 $as_echo "$ac_ct_STRIP" >&6; }
3000 else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3005 if test "x$ac_ct_STRIP" = x; then
3006 STRIP=":"
3007 else
3008 case $cross_compiling:$ac_tool_warned in
3009 yes:)
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3013 esac
3014 STRIP=$ac_ct_STRIP
3016 else
3017 STRIP="$ac_cv_prog_STRIP"
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3021 $as_echo_n "checking whether ln -s works... " >&6; }
3022 LN_S=$as_ln_s
3023 if test "$LN_S" = "ln -s"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3025 $as_echo "yes" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3028 $as_echo "no, using $LN_S" >&6; }
3033 ac_ext=c
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3040 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CC+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC="$CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3060 done
3061 done
3062 IFS=$as_save_IFS
3066 CC=$ac_cv_prog_CC
3067 if test -n "$CC"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3077 if test -z "$ac_cv_prog_CC"; then
3078 ac_ct_CC=$CC
3079 # Extract the first word of "gcc", so it can be a program name with args.
3080 set dummy gcc; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$ac_ct_CC"; then
3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_ac_ct_CC="gcc"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3102 IFS=$as_save_IFS
3106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3107 if test -n "$ac_ct_CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3109 $as_echo "$ac_ct_CC" >&6; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3115 if test "x$ac_ct_CC" = x; then
3116 CC=""
3117 else
3118 case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3123 esac
3124 CC=$ac_ct_CC
3126 else
3127 CC="$ac_cv_prog_CC"
3130 if test -z "$CC"; then
3131 if test -n "$ac_tool_prefix"; then
3132 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3133 set dummy ${ac_tool_prefix}cc; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_CC+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 if test -n "$CC"; then
3140 ac_cv_prog_CC="$CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_CC="${ac_tool_prefix}cc"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3153 done
3154 done
3155 IFS=$as_save_IFS
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3171 if test -z "$CC"; then
3172 # Extract the first word of "cc", so it can be a program name with args.
3173 set dummy cc; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if test "${ac_cv_prog_CC+set}" = set; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 else
3182 ac_prog_rejected=no
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3191 ac_prog_rejected=yes
3192 continue
3194 ac_cv_prog_CC="cc"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3198 done
3199 done
3200 IFS=$as_save_IFS
3202 if test $ac_prog_rejected = yes; then
3203 # We found a bogon in the path, so make sure we never use it.
3204 set dummy $ac_cv_prog_CC
3205 shift
3206 if test $# != 0; then
3207 # We chose a different compiler from the bogus one.
3208 # However, it has the same basename, so the bogon will be chosen
3209 # first if we set CC to just the basename; use the full file name.
3210 shift
3211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3216 CC=$ac_cv_prog_CC
3217 if test -n "$CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3219 $as_echo "$CC" >&6; }
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3227 if test -z "$CC"; then
3228 if test -n "$ac_tool_prefix"; then
3229 for ac_prog in cl.exe
3231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if test "${ac_cv_prog_CC+set}" = set; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 if test -n "$CC"; then
3239 ac_cv_prog_CC="$CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3252 done
3253 done
3254 IFS=$as_save_IFS
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3268 test -n "$CC" && break
3269 done
3271 if test -z "$CC"; then
3272 ac_ct_CC=$CC
3273 for ac_prog in cl.exe
3275 # Extract the first word of "$ac_prog", so it can be a program name with args.
3276 set dummy $ac_prog; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test -n "$ac_ct_CC"; then
3283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292 ac_cv_prog_ac_ct_CC="$ac_prog"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3296 done
3297 done
3298 IFS=$as_save_IFS
3302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3303 if test -n "$ac_ct_CC"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3305 $as_echo "$ac_ct_CC" >&6; }
3306 else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3312 test -n "$ac_ct_CC" && break
3313 done
3315 if test "x$ac_ct_CC" = x; then
3316 CC=""
3317 else
3318 case $cross_compiling:$ac_tool_warned in
3319 yes:)
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3322 ac_tool_warned=yes ;;
3323 esac
3324 CC=$ac_ct_CC
3331 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error "no acceptable C compiler found in \$PATH
3334 See \`config.log' for more details." "$LINENO" 5; }
3336 # Provide some information about the compiler.
3337 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3338 set X $ac_compile
3339 ac_compiler=$2
3340 for ac_option in --version -v -V -qversion; do
3341 { { ac_try="$ac_compiler $ac_option >&5"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3349 ac_status=$?
3350 if test -s conftest.err; then
3351 sed '10a\
3352 ... rest of stderr output deleted ...
3353 10q' conftest.err >conftest.er1
3354 cat conftest.er1 >&5
3355 rm -f conftest.er1 conftest.err
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }
3359 done
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3365 main ()
3369 return 0;
3371 _ACEOF
3372 # FIXME: Cleanup?
3373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3374 (eval $ac_link) 2>&5
3375 ac_status=$?
3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377 test $ac_status = 0; }; then :
3378 gcc_no_link=no
3379 else
3380 gcc_no_link=yes
3382 if test x$gcc_no_link = xyes; then
3383 # Setting cross_compile will disable run tests; it will
3384 # also disable AC_CHECK_FILE but that's generally
3385 # correct if we can't link.
3386 cross_compiling=yes
3387 EXEEXT=
3388 else
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3393 main ()
3397 return 0;
3399 _ACEOF
3400 ac_clean_files_save=$ac_clean_files
3401 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3402 # Try to create an executable without -o first, disregard a.out.
3403 # It will help us diagnose broken compilers, and finding out an intuition
3404 # of exeext.
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3406 $as_echo_n "checking for C compiler default output file name... " >&6; }
3407 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3409 # The possible output files:
3410 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3412 ac_rmfiles=
3413 for ac_file in $ac_files
3415 case $ac_file in
3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3417 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3418 esac
3419 done
3420 rm -f $ac_rmfiles
3422 if { { ac_try="$ac_link_default"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_link_default") 2>&5
3430 ac_status=$?
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }; then :
3433 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3434 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3435 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3436 # so that the user can short-circuit this test for compilers unknown to
3437 # Autoconf.
3438 for ac_file in $ac_files ''
3440 test -f "$ac_file" || continue
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3444 [ab].out )
3445 # We found the default executable, but exeext='' is most
3446 # certainly right.
3447 break;;
3448 *.* )
3449 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3450 then :; else
3451 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3453 # We set ac_cv_exeext here because the later test for it is not
3454 # safe: cross compilers may not add the suffix if given an `-o'
3455 # argument, so we may need to know it at that point already.
3456 # Even if this section looks crufty: it has the advantage of
3457 # actually working.
3458 break;;
3460 break;;
3461 esac
3462 done
3463 test "$ac_cv_exeext" = no && ac_cv_exeext=
3465 else
3466 ac_file=''
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3469 $as_echo "$ac_file" >&6; }
3470 if test -z "$ac_file"; then :
3471 $as_echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 { as_fn_set_status 77
3477 as_fn_error "C compiler cannot create executables
3478 See \`config.log' for more details." "$LINENO" 5; }; }
3480 ac_exeext=$ac_cv_exeext
3482 # Check that the compiler produces executables we can run. If not, either
3483 # the compiler is broken, or we cross compile.
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3485 $as_echo_n "checking whether the C compiler works... " >&6; }
3486 # If not cross compiling, check that we can run a simple program.
3487 if test "$cross_compiling" != yes; then
3488 if { ac_try='./$ac_file'
3489 { { case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_try") 2>&5
3496 ac_status=$?
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }; }; then
3499 cross_compiling=no
3500 else
3501 if test "$cross_compiling" = maybe; then
3502 cross_compiling=yes
3503 else
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error "cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details." "$LINENO" 5; }
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3513 $as_echo "yes" >&6; }
3515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3516 ac_clean_files=$ac_clean_files_save
3517 # Check that the compiler produces executables we can run. If not, either
3518 # the compiler is broken, or we cross compile.
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3520 $as_echo_n "checking whether we are cross compiling... " >&6; }
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3522 $as_echo "$cross_compiling" >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3525 $as_echo_n "checking for suffix of executables... " >&6; }
3526 if { { ac_try="$ac_link"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_link") 2>&5
3534 ac_status=$?
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3539 # work properly (i.e., refer to `conftest.exe'), while it won't with
3540 # `rm'.
3541 for ac_file in conftest.exe conftest conftest.*; do
3542 test -f "$ac_file" || continue
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546 break;;
3547 * ) break;;
3548 esac
3549 done
3550 else
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error "cannot compute suffix of executables: cannot compile and link
3554 See \`config.log' for more details." "$LINENO" 5; }
3556 rm -f conftest$ac_cv_exeext
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3558 $as_echo "$ac_cv_exeext" >&6; }
3560 rm -f conftest.$ac_ext
3561 EXEEXT=$ac_cv_exeext
3562 ac_exeext=$EXEEXT
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3565 $as_echo_n "checking for suffix of object files... " >&6; }
3566 if test "${ac_cv_objext+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3573 main ()
3577 return 0;
3579 _ACEOF
3580 rm -f conftest.o conftest.obj
3581 if { { ac_try="$ac_compile"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_compile") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 for ac_file in conftest.o conftest.obj conftest.*; do
3593 test -f "$ac_file" || continue;
3594 case $ac_file in
3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3597 break;;
3598 esac
3599 done
3600 else
3601 $as_echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error "cannot compute suffix of object files: cannot compile
3607 See \`config.log' for more details." "$LINENO" 5; }
3609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3612 $as_echo "$ac_cv_objext" >&6; }
3613 OBJEXT=$ac_cv_objext
3614 ac_objext=$OBJEXT
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3616 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3617 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3618 $as_echo_n "(cached) " >&6
3619 else
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3624 main ()
3626 #ifndef __GNUC__
3627 choke me
3628 #endif
3631 return 0;
3633 _ACEOF
3634 if ac_fn_c_try_compile "$LINENO"; then :
3635 ac_compiler_gnu=yes
3636 else
3637 ac_compiler_gnu=no
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3644 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3645 if test $ac_compiler_gnu = yes; then
3646 GCC=yes
3647 else
3648 GCC=
3650 ac_test_CFLAGS=${CFLAGS+set}
3651 ac_save_CFLAGS=$CFLAGS
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3653 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3654 if test "${ac_cv_prog_cc_g+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 ac_save_c_werror_flag=$ac_c_werror_flag
3658 ac_c_werror_flag=yes
3659 ac_cv_prog_cc_g=no
3660 CFLAGS="-g"
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3665 main ()
3669 return 0;
3671 _ACEOF
3672 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_cv_prog_cc_g=yes
3674 else
3675 CFLAGS=""
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3680 main ()
3684 return 0;
3686 _ACEOF
3687 if ac_fn_c_try_compile "$LINENO"; then :
3689 else
3690 ac_c_werror_flag=$ac_save_c_werror_flag
3691 CFLAGS="-g"
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3696 main ()
3700 return 0;
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704 ac_cv_prog_cc_g=yes
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 ac_c_werror_flag=$ac_save_c_werror_flag
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3714 $as_echo "$ac_cv_prog_cc_g" >&6; }
3715 if test "$ac_test_CFLAGS" = set; then
3716 CFLAGS=$ac_save_CFLAGS
3717 elif test $ac_cv_prog_cc_g = yes; then
3718 if test "$GCC" = yes; then
3719 CFLAGS="-g -O2"
3720 else
3721 CFLAGS="-g"
3723 else
3724 if test "$GCC" = yes; then
3725 CFLAGS="-O2"
3726 else
3727 CFLAGS=
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3731 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3732 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 ac_cv_prog_cc_c89=no
3736 ac_save_CC=$CC
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739 #include <stdarg.h>
3740 #include <stdio.h>
3741 #include <sys/types.h>
3742 #include <sys/stat.h>
3743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3744 struct buf { int x; };
3745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3746 static char *e (p, i)
3747 char **p;
3748 int i;
3750 return p[i];
3752 static char *f (char * (*g) (char **, int), char **p, ...)
3754 char *s;
3755 va_list v;
3756 va_start (v,p);
3757 s = g (p, va_arg (v,int));
3758 va_end (v);
3759 return s;
3762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3763 function prototypes and stuff, but not '\xHH' hex character constants.
3764 These don't provoke an error unfortunately, instead are silently treated
3765 as 'x'. The following induces an error, until -std is added to get
3766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3767 array size at least. It's necessary to write '\x00'==0 to get something
3768 that's true only with -std. */
3769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3771 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3772 inside strings and character constants. */
3773 #define FOO(x) 'x'
3774 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3776 int test (int i, double x);
3777 struct s1 {int (*f) (int a);};
3778 struct s2 {int (*f) (double a);};
3779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3780 int argc;
3781 char **argv;
3783 main ()
3785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3787 return 0;
3789 _ACEOF
3790 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3791 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3793 CC="$ac_save_CC $ac_arg"
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795 ac_cv_prog_cc_c89=$ac_arg
3797 rm -f core conftest.err conftest.$ac_objext
3798 test "x$ac_cv_prog_cc_c89" != "xno" && break
3799 done
3800 rm -f conftest.$ac_ext
3801 CC=$ac_save_CC
3804 # AC_CACHE_VAL
3805 case "x$ac_cv_prog_cc_c89" in
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3808 $as_echo "none needed" >&6; } ;;
3809 xno)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3811 $as_echo "unsupported" >&6; } ;;
3813 CC="$CC $ac_cv_prog_cc_c89"
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3815 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3816 esac
3817 if test "x$ac_cv_prog_cc_c89" != xno; then :
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3833 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3836 CPP=
3838 if test -z "$CPP"; then
3839 if test "${ac_cv_prog_CPP+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 # Double quotes because CPP needs to be expanded
3843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3845 ac_preproc_ok=false
3846 for ac_c_preproc_warn_flag in '' yes
3848 # Use a header file that comes with gcc, so configuring glibc
3849 # with a fresh cross-compiler works.
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851 # <limits.h> exists even on freestanding compilers.
3852 # On the NeXT, cc -E runs the code through the compiler's parser,
3853 # not just through cpp. "Syntax error" is here to catch this case.
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #ifdef __STDC__
3857 # include <limits.h>
3858 #else
3859 # include <assert.h>
3860 #endif
3861 Syntax error
3862 _ACEOF
3863 if ac_fn_c_try_cpp "$LINENO"; then :
3865 else
3866 # Broken: fails on valid input.
3867 continue
3869 rm -f conftest.err conftest.$ac_ext
3871 # OK, works on sane cases. Now check whether nonexistent headers
3872 # can be detected and how.
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875 #include <ac_nonexistent.h>
3876 _ACEOF
3877 if ac_fn_c_try_cpp "$LINENO"; then :
3878 # Broken: success on invalid input.
3879 continue
3880 else
3881 # Passes both tests.
3882 ac_preproc_ok=:
3883 break
3885 rm -f conftest.err conftest.$ac_ext
3887 done
3888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889 rm -f conftest.err conftest.$ac_ext
3890 if $ac_preproc_ok; then :
3891 break
3894 done
3895 ac_cv_prog_CPP=$CPP
3898 CPP=$ac_cv_prog_CPP
3899 else
3900 ac_cv_prog_CPP=$CPP
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3903 $as_echo "$CPP" >&6; }
3904 ac_preproc_ok=false
3905 for ac_c_preproc_warn_flag in '' yes
3907 # Use a header file that comes with gcc, so configuring glibc
3908 # with a fresh cross-compiler works.
3909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3910 # <limits.h> exists even on freestanding compilers.
3911 # On the NeXT, cc -E runs the code through the compiler's parser,
3912 # not just through cpp. "Syntax error" is here to catch this case.
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #ifdef __STDC__
3916 # include <limits.h>
3917 #else
3918 # include <assert.h>
3919 #endif
3920 Syntax error
3921 _ACEOF
3922 if ac_fn_c_try_cpp "$LINENO"; then :
3924 else
3925 # Broken: fails on valid input.
3926 continue
3928 rm -f conftest.err conftest.$ac_ext
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #include <ac_nonexistent.h>
3935 _ACEOF
3936 if ac_fn_c_try_cpp "$LINENO"; then :
3937 # Broken: success on invalid input.
3938 continue
3939 else
3940 # Passes both tests.
3941 ac_preproc_ok=:
3942 break
3944 rm -f conftest.err conftest.$ac_ext
3946 done
3947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3948 rm -f conftest.err conftest.$ac_ext
3949 if $ac_preproc_ok; then :
3951 else
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3955 See \`config.log' for more details." "$LINENO" 5; }
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965 ac_c_preproc_warn_flag=yes
3969 # The cast to long int works around a bug in the HP C Compiler
3970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3972 # This bug is HP SR number 8606223364.
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
3974 $as_echo_n "checking size of double... " >&6; }
3975 if test "${ac_cv_sizeof_double+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
3980 else
3981 if test "$ac_cv_type_double" = yes; then
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 { as_fn_set_status 77
3985 as_fn_error "cannot compute sizeof (double)
3986 See \`config.log' for more details." "$LINENO" 5; }; }
3987 else
3988 ac_cv_sizeof_double=0
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
3994 $as_echo "$ac_cv_sizeof_double" >&6; }
3998 cat >>confdefs.h <<_ACEOF
3999 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4000 _ACEOF
4003 # The cast to long int works around a bug in the HP C Compiler
4004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4006 # This bug is HP SR number 8606223364.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4008 $as_echo_n "checking size of long double... " >&6; }
4009 if test "${ac_cv_sizeof_long_double+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4014 else
4015 if test "$ac_cv_type_long_double" = yes; then
4016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 { as_fn_set_status 77
4019 as_fn_error "cannot compute sizeof (long double)
4020 See \`config.log' for more details." "$LINENO" 5; }; }
4021 else
4022 ac_cv_sizeof_long_double=0
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4028 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4032 cat >>confdefs.h <<_ACEOF
4033 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4034 _ACEOF
4037 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4038 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4042 # Check for decimal float support.
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4044 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4045 if test "${libgcc_cv_dfp+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050 _Decimal32 x;
4051 _ACEOF
4052 if ac_fn_c_try_compile "$LINENO"; then :
4053 libgcc_cv_dfp=yes
4054 else
4055 libgcc_cv_dfp=no
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4060 $as_echo "$libgcc_cv_dfp" >&6; }
4061 decimal_float=$libgcc_cv_dfp
4065 # Check whether --enable-decimal-float was given.
4066 if test "${enable_decimal_float+set}" = set; then :
4067 enableval=$enable_decimal_float;
4068 case $enable_decimal_float in
4069 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4070 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4071 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4072 esac
4074 else
4076 case $host in
4077 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4078 i?86*-*-mingw* | x86_64*-*-mingw* | \
4079 i?86*-*-cygwin*)
4080 enable_decimal_float=yes
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4084 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4085 enable_decimal_float=no
4087 esac
4092 # x86's use BID format instead of DPD
4093 case x$enable_decimal_float in
4094 xyes)
4095 case $host in
4096 i?86*-*-* | x86_64*-*-*)
4097 enable_decimal_float=bid
4100 enable_decimal_float=dpd
4102 esac
4103 default_decimal_float=$enable_decimal_float
4105 xno)
4106 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4107 # dependency on libdecnumber.
4108 default_decimal_float=dpd
4110 esac
4115 # Check for fixed-point support.
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4117 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4118 if test "${libgcc_cv_fixed_point+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 _Sat _Fract x;
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 libgcc_cv_fixed_point=yes
4127 else
4128 libgcc_cv_fixed_point=no
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4133 $as_echo "$libgcc_cv_fixed_point" >&6; }
4134 fixed_point=$libgcc_cv_fixed_point
4137 # For platforms with the unwind ABI which includes an unwind library,
4138 # libunwind, we can choose to use the system libunwind.
4139 # config.gcc also contains tests of with_system_libunwind.
4142 # Check whether --with-system-libunwind was given.
4143 if test "${with_system_libunwind+set}" = set; then :
4144 withval=$with_system_libunwind;
4147 # If system-libunwind was not specifically set, pick a default setting.
4148 if test x$with_system_libunwind = x; then
4149 case ${target} in
4150 ia64-*-hpux*) with_system_libunwind=yes ;;
4151 *) with_system_libunwind=no ;;
4152 esac
4154 # Based on system-libunwind and target, do we have ipinfo?
4155 if test x$with_system_libunwind = xyes; then
4156 case ${target} in
4157 ia64-*-*) have_unwind_getipinfo=no ;;
4158 *) have_unwind_getipinfo=yes ;;
4159 esac
4160 else
4161 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4163 case ${target} in
4164 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4165 *) have_unwind_getipinfo=yes ;;
4166 esac
4170 if test x$have_unwind_getipinfo = xyes; then
4172 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4177 # The sjlj test is almost duplicated here and in libgo/configure.ac (for C),
4178 # libstdc++-v3/acinclude.m4 and libjava/configure.ac (for C++), and
4179 # libobjc/configure.ac (for Objective-C).
4180 # FIXME: This should be centralized in config/sjlj.m4.
4181 # Check whether --enable-sjlj-exceptions was given.
4182 if test "${enable_sjlj_exceptions+set}" = set; then :
4183 enableval=$enable_sjlj_exceptions; case "$enableval" in
4184 yes|no|auto) ;;
4185 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
4186 esac
4187 else
4188 enable_sjlj_exceptions=auto
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
4193 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
4194 if test "${libgcc_cv_lib_sjlj_exceptions+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4200 void bar ();
4201 void clean (int *);
4202 void foo ()
4204 int i __attribute__ ((cleanup (clean)));
4205 bar();
4208 _ACEOF
4209 CFLAGS_hold=$CFLAGS
4210 CFLAGS="--save-temps -fexceptions"
4211 libgcc_cv_lib_sjlj_exceptions=unknown
4212 if ac_fn_c_try_compile; then :
4213 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
4214 libgcc_cv_lib_sjlj_exceptions=yes
4215 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
4216 libgcc_cv_lib_sjlj_exceptions=no
4219 CFLAGS=$CFLAGS_hold
4220 rm -f conftest*
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_lib_sjlj_exceptions" >&5
4224 $as_echo "$libgcc_cv_lib_sjlj_exceptions" >&6; }
4226 if test "$enable_sjlj_exceptions" = "auto"; then
4227 enable_sjlj_exceptions=$libgcc_cv_lib_sjlj_exceptions
4230 case $enable_sjlj_exceptions in
4231 yes)
4233 $as_echo "#define LIBGCC_SJLJ_EXCEPTIONS 1" >>confdefs.h
4239 as_fn_error "unable to detect exception model" "$LINENO" 5
4241 esac
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4244 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4245 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4249 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4250 acl_cv_prog_gnu_ld=yes
4251 else
4252 acl_cv_prog_gnu_ld=no
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4256 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4257 with_gnu_ld=$acl_cv_prog_gnu_ld
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4261 $as_echo_n "checking for thread model used by GCC... " >&6; }
4262 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4264 $as_echo "$target_thread_file" >&6; }
4266 # Check for assembler CFI support.
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4268 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
4269 if test "${libgcc_cv_cfi+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 asm("\n\
4275 .text\n\
4276 .cfi_startproc\n\
4277 .cfi_personality 0, symbol\n\
4278 .cfi_endproc");
4279 _ACEOF
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281 libgcc_cv_cfi=yes
4282 else
4283 libgcc_cv_cfi=no
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
4288 $as_echo "$libgcc_cv_cfi" >&6; }
4290 # Check 32bit or 64bit
4291 cat > conftest.c <<EOF
4292 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__))
4293 host_address=64
4294 #else
4295 host_address=32
4296 #endif
4298 eval `${CC-cc} -E conftest.c | grep host_address=`
4299 rm -f conftest.c
4301 # Collect host-machine-specific information.
4302 . ${srcdir}/config.host
4304 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
4305 # This is after config.host so we can augment tmake_file.
4306 # Link with -nostartfiles -nodefaultlibs since neither are present while
4307 # building libgcc.
4308 case ${host} in
4309 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
4310 cat > conftest.s <<EOF
4311 .section .eh_frame,"a",@unwind
4312 .zero 4
4313 .section .jcr,"aw",@progbits
4314 .zero 8
4316 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
4317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4318 (eval $ac_try) 2>&5
4319 ac_status=$?
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; }; }; then
4322 tmake_file="${tmake_file} i386/t-crtstuff"
4325 esac
4327 # Check for visibility support. This is after config.host so that
4328 # we can check for asm_hidden_op.
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
4330 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
4331 if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4335 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
4336 libgcc_cv_hidden_visibility_attribute=no
4337 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }; }; then
4343 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
4344 libgcc_cv_hidden_visibility_attribute=yes
4347 rm -f conftest.*
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
4351 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
4353 if test $libgcc_cv_hidden_visibility_attribute = yes; then
4354 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
4355 else
4356 vis_hide=
4360 # See if we have thread-local storage. We can only test assembler
4361 # since link-time and run-time tests require the newly built
4362 # gcc, which can't be used to build executable due to that libgcc
4363 # is yet to be built here.
4365 # Check whether --enable-tls was given.
4366 if test "${enable_tls+set}" = set; then :
4367 enableval=$enable_tls;
4368 case "$enableval" in
4369 yes|no) ;;
4370 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
4371 esac
4373 else
4374 enable_tls=yes
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
4379 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
4380 if test "${gcc_cv_have_cc_tls+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 __thread int a; int b; int main() { return a = b; }
4387 _ACEOF
4388 if ac_fn_c_try_compile "$LINENO"; then :
4389 gcc_cv_have_cc_tls=yes
4390 else
4391 gcc_cv_have_cc_tls=no
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
4397 $as_echo "$gcc_cv_have_cc_tls" >&6; }
4398 set_have_cc_tls=
4399 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
4400 set_have_cc_tls="-DHAVE_CC_TLS"
4404 # See if we have emulated thread-local storage.
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
4407 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
4408 if test "${gcc_cv_use_emutls+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4412 gcc_cv_use_emutls=no
4413 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
4414 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
4415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; }; }; then
4420 if grep __emutls_get_address conftest.s > /dev/null; then
4421 gcc_cv_use_emutls=yes
4424 rm -f conftest.*
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
4428 $as_echo "$gcc_cv_use_emutls" >&6; }
4429 if test "$gcc_cv_use_emutls" = "yes" ; then
4431 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
4434 set_use_emutls=
4435 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
4436 set_use_emutls="-DUSE_EMUTLS"
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
4441 $as_echo_n "checking for init priority support... " >&6; }
4442 if test "${libgcc_cv_init_priority+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4450 main ()
4452 void ip (void) __attribute__ ((constructor (1)));
4454 return 0;
4456 _ACEOF
4457 if ac_fn_c_try_compile "$LINENO"; then :
4458 libgcc_cv_init_priority=yes
4459 else
4460 libgcc_cv_init_priority=no
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
4465 $as_echo "$libgcc_cv_init_priority" >&6; }
4466 if test $libgcc_cv_init_priority = yes; then
4468 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
4472 # Conditionalize the sfp-machine.h header for this target machine.
4473 if test -z "${sfp_machine_header}"; then
4474 sfp_machine_header=$cpu_type/sfp-machine.h
4475 if test -f ${srcdir}/config/${sfp_machine_header}; then
4477 else
4478 sfp_machine_header=no-sfp-machine.h
4483 # Conditionalize the makefile for this target machine.
4484 tmake_file_=
4485 for f in ${tmake_file}
4487 if test -f ${srcdir}/config/$f
4488 then
4489 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
4491 done
4492 tmake_file="${tmake_file_}"
4495 # Likewise export definitions for libgcc_tm.h
4496 tm_file_=
4497 for f in ${tm_file}
4499 tm_file_="${tm_file_} \$(srcdir)/config/$f"
4500 done
4501 tm_file="${tm_file_}"
4505 # Map from thread model to thread header.
4506 case $target_thread_file in
4507 aix) thread_header=config/rs6000/gthr-aix.h ;;
4508 dce) thread_header=config/pa/gthr-dce.h ;;
4509 lynx) thread_header=config/gthr-lynx.h ;;
4510 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
4511 posix) thread_header=gthr-posix.h ;;
4512 rtems) thread_header=config/gthr-rtems.h ;;
4513 single) thread_header=gthr-single.h ;;
4514 tpf) thread_header=config/s390/gthr-tpf.h ;;
4515 vxworks) thread_header=config/gthr-vxworks.h ;;
4516 win32) thread_header=config/i386/gthr-win32.h ;;
4517 esac
4519 # Substitute configuration variables
4523 ac_config_links="$ac_config_links enable-execute-stack.c:$enable_execute_stack"
4525 ac_config_links="$ac_config_links unwind.h:$unwind_header"
4527 ac_config_links="$ac_config_links md-unwind-support.h:config/$md_unwind_header"
4529 ac_config_links="$ac_config_links sfp-machine.h:config/$sfp_machine_header"
4531 ac_config_links="$ac_config_links gthr-default.h:$thread_header"
4534 # We need multilib support.
4535 ac_config_files="$ac_config_files Makefile"
4537 ac_config_commands="$ac_config_commands default"
4539 cat >confcache <<\_ACEOF
4540 # This file is a shell script that caches the results of configure
4541 # tests run on this system so they can be shared between configure
4542 # scripts and configure runs, see configure's option --config-cache.
4543 # It is not useful on other systems. If it contains results you don't
4544 # want to keep, you may remove or edit it.
4546 # config.status only pays attention to the cache file if you give it
4547 # the --recheck option to rerun configure.
4549 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4550 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4551 # following values.
4553 _ACEOF
4555 # The following way of writing the cache mishandles newlines in values,
4556 # but we know of no workaround that is simple, portable, and efficient.
4557 # So, we kill variables containing newlines.
4558 # Ultrix sh set writes to stderr and can't be redirected directly,
4559 # and sets the high bit in the cache file unless we assign to the vars.
4561 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4562 eval ac_val=\$$ac_var
4563 case $ac_val in #(
4564 *${as_nl}*)
4565 case $ac_var in #(
4566 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4567 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4568 esac
4569 case $ac_var in #(
4570 _ | IFS | as_nl) ;; #(
4571 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4572 *) { eval $ac_var=; unset $ac_var;} ;;
4573 esac ;;
4574 esac
4575 done
4577 (set) 2>&1 |
4578 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4579 *${as_nl}ac_space=\ *)
4580 # `set' does not quote correctly, so add quotes: double-quote
4581 # substitution turns \\\\ into \\, and sed turns \\ into \.
4582 sed -n \
4583 "s/'/'\\\\''/g;
4584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4585 ;; #(
4587 # `set' quotes correctly as required by POSIX, so do not add quotes.
4588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4590 esac |
4591 sort
4593 sed '
4594 /^ac_cv_env_/b end
4595 t clear
4596 :clear
4597 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4598 t end
4599 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4600 :end' >>confcache
4601 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4602 if test -w "$cache_file"; then
4603 test "x$cache_file" != "x/dev/null" &&
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4605 $as_echo "$as_me: updating cache $cache_file" >&6;}
4606 cat confcache >$cache_file
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4609 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4612 rm -f confcache
4614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4615 # Let make expand exec_prefix.
4616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4618 DEFS=-DHAVE_CONFIG_H
4620 ac_libobjs=
4621 ac_ltlibobjs=
4622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4623 # 1. Remove the extension, and $U if already installed.
4624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4625 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4627 # will be set to the directory where LIBOBJS objects are built.
4628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4630 done
4631 LIBOBJS=$ac_libobjs
4633 LTLIBOBJS=$ac_ltlibobjs
4637 : ${CONFIG_STATUS=./config.status}
4638 ac_write_fail=0
4639 ac_clean_files_save=$ac_clean_files
4640 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4642 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4643 as_write_fail=0
4644 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4645 #! $SHELL
4646 # Generated by $as_me.
4647 # Run this file to recreate the current configuration.
4648 # Compiler output produced by configure, useful for debugging
4649 # configure, is in config.log if it exists.
4651 debug=false
4652 ac_cs_recheck=false
4653 ac_cs_silent=false
4655 SHELL=\${CONFIG_SHELL-$SHELL}
4656 export SHELL
4657 _ASEOF
4658 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4659 ## -------------------- ##
4660 ## M4sh Initialization. ##
4661 ## -------------------- ##
4663 # Be more Bourne compatible
4664 DUALCASE=1; export DUALCASE # for MKS sh
4665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4666 emulate sh
4667 NULLCMD=:
4668 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4669 # is contrary to our usage. Disable this feature.
4670 alias -g '${1+"$@"}'='"$@"'
4671 setopt NO_GLOB_SUBST
4672 else
4673 case `(set -o) 2>/dev/null` in #(
4674 *posix*) :
4675 set -o posix ;; #(
4676 *) :
4678 esac
4682 as_nl='
4684 export as_nl
4685 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4686 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4687 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4689 # Prefer a ksh shell builtin over an external printf program on Solaris,
4690 # but without wasting forks for bash or zsh.
4691 if test -z "$BASH_VERSION$ZSH_VERSION" \
4692 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4693 as_echo='print -r --'
4694 as_echo_n='print -rn --'
4695 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4696 as_echo='printf %s\n'
4697 as_echo_n='printf %s'
4698 else
4699 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4700 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4701 as_echo_n='/usr/ucb/echo -n'
4702 else
4703 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4704 as_echo_n_body='eval
4705 arg=$1;
4706 case $arg in #(
4707 *"$as_nl"*)
4708 expr "X$arg" : "X\\(.*\\)$as_nl";
4709 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4710 esac;
4711 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4713 export as_echo_n_body
4714 as_echo_n='sh -c $as_echo_n_body as_echo'
4716 export as_echo_body
4717 as_echo='sh -c $as_echo_body as_echo'
4720 # The user is always right.
4721 if test "${PATH_SEPARATOR+set}" != set; then
4722 PATH_SEPARATOR=:
4723 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4724 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4725 PATH_SEPARATOR=';'
4730 # IFS
4731 # We need space, tab and new line, in precisely that order. Quoting is
4732 # there to prevent editors from complaining about space-tab.
4733 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4734 # splitting by setting IFS to empty value.)
4735 IFS=" "" $as_nl"
4737 # Find who we are. Look in the path if we contain no directory separator.
4738 case $0 in #((
4739 *[\\/]* ) as_myself=$0 ;;
4740 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4746 done
4747 IFS=$as_save_IFS
4750 esac
4751 # We did not find ourselves, most probably we were run as `sh COMMAND'
4752 # in which case we are not to be found in the path.
4753 if test "x$as_myself" = x; then
4754 as_myself=$0
4756 if test ! -f "$as_myself"; then
4757 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4758 exit 1
4761 # Unset variables that we do not need and which cause bugs (e.g. in
4762 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4763 # suppresses any "Segmentation fault" message there. '((' could
4764 # trigger a bug in pdksh 5.2.14.
4765 for as_var in BASH_ENV ENV MAIL MAILPATH
4766 do eval test x\${$as_var+set} = xset \
4767 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4768 done
4769 PS1='$ '
4770 PS2='> '
4771 PS4='+ '
4773 # NLS nuisances.
4774 LC_ALL=C
4775 export LC_ALL
4776 LANGUAGE=C
4777 export LANGUAGE
4779 # CDPATH.
4780 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4783 # as_fn_error ERROR [LINENO LOG_FD]
4784 # ---------------------------------
4785 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4786 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4787 # script with status $?, using 1 if that was 0.
4788 as_fn_error ()
4790 as_status=$?; test $as_status -eq 0 && as_status=1
4791 if test "$3"; then
4792 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4793 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4795 $as_echo "$as_me: error: $1" >&2
4796 as_fn_exit $as_status
4797 } # as_fn_error
4800 # as_fn_set_status STATUS
4801 # -----------------------
4802 # Set $? to STATUS, without forking.
4803 as_fn_set_status ()
4805 return $1
4806 } # as_fn_set_status
4808 # as_fn_exit STATUS
4809 # -----------------
4810 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4811 as_fn_exit ()
4813 set +e
4814 as_fn_set_status $1
4815 exit $1
4816 } # as_fn_exit
4818 # as_fn_unset VAR
4819 # ---------------
4820 # Portably unset VAR.
4821 as_fn_unset ()
4823 { eval $1=; unset $1;}
4825 as_unset=as_fn_unset
4826 # as_fn_append VAR VALUE
4827 # ----------------------
4828 # Append the text in VALUE to the end of the definition contained in VAR. Take
4829 # advantage of any shell optimizations that allow amortized linear growth over
4830 # repeated appends, instead of the typical quadratic growth present in naive
4831 # implementations.
4832 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4833 eval 'as_fn_append ()
4835 eval $1+=\$2
4837 else
4838 as_fn_append ()
4840 eval $1=\$$1\$2
4842 fi # as_fn_append
4844 # as_fn_arith ARG...
4845 # ------------------
4846 # Perform arithmetic evaluation on the ARGs, and store the result in the
4847 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4848 # must be portable across $(()) and expr.
4849 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4850 eval 'as_fn_arith ()
4852 as_val=$(( $* ))
4854 else
4855 as_fn_arith ()
4857 as_val=`expr "$@" || test $? -eq 1`
4859 fi # as_fn_arith
4862 if expr a : '\(a\)' >/dev/null 2>&1 &&
4863 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4864 as_expr=expr
4865 else
4866 as_expr=false
4869 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4870 as_basename=basename
4871 else
4872 as_basename=false
4875 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4876 as_dirname=dirname
4877 else
4878 as_dirname=false
4881 as_me=`$as_basename -- "$0" ||
4882 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4883 X"$0" : 'X\(//\)$' \| \
4884 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4885 $as_echo X/"$0" |
4886 sed '/^.*\/\([^/][^/]*\)\/*$/{
4887 s//\1/
4890 /^X\/\(\/\/\)$/{
4891 s//\1/
4894 /^X\/\(\/\).*/{
4895 s//\1/
4898 s/.*/./; q'`
4900 # Avoid depending upon Character Ranges.
4901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4904 as_cr_digits='0123456789'
4905 as_cr_alnum=$as_cr_Letters$as_cr_digits
4907 ECHO_C= ECHO_N= ECHO_T=
4908 case `echo -n x` in #(((((
4909 -n*)
4910 case `echo 'xy\c'` in
4911 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4912 xy) ECHO_C='\c';;
4913 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4914 ECHO_T=' ';;
4915 esac;;
4917 ECHO_N='-n';;
4918 esac
4920 rm -f conf$$ conf$$.exe conf$$.file
4921 if test -d conf$$.dir; then
4922 rm -f conf$$.dir/conf$$.file
4923 else
4924 rm -f conf$$.dir
4925 mkdir conf$$.dir 2>/dev/null
4927 if (echo >conf$$.file) 2>/dev/null; then
4928 if ln -s conf$$.file conf$$ 2>/dev/null; then
4929 as_ln_s='ln -s'
4930 # ... but there are two gotchas:
4931 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4932 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4933 # In both cases, we have to default to `cp -p'.
4934 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4935 as_ln_s='cp -p'
4936 elif ln conf$$.file conf$$ 2>/dev/null; then
4937 as_ln_s=ln
4938 else
4939 as_ln_s='cp -p'
4941 else
4942 as_ln_s='cp -p'
4944 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4945 rmdir conf$$.dir 2>/dev/null
4948 # as_fn_mkdir_p
4949 # -------------
4950 # Create "$as_dir" as a directory, including parents if necessary.
4951 as_fn_mkdir_p ()
4954 case $as_dir in #(
4955 -*) as_dir=./$as_dir;;
4956 esac
4957 test -d "$as_dir" || eval $as_mkdir_p || {
4958 as_dirs=
4959 while :; do
4960 case $as_dir in #(
4961 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4962 *) as_qdir=$as_dir;;
4963 esac
4964 as_dirs="'$as_qdir' $as_dirs"
4965 as_dir=`$as_dirname -- "$as_dir" ||
4966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4967 X"$as_dir" : 'X\(//\)[^/]' \| \
4968 X"$as_dir" : 'X\(//\)$' \| \
4969 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4970 $as_echo X"$as_dir" |
4971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4972 s//\1/
4975 /^X\(\/\/\)[^/].*/{
4976 s//\1/
4979 /^X\(\/\/\)$/{
4980 s//\1/
4983 /^X\(\/\).*/{
4984 s//\1/
4987 s/.*/./; q'`
4988 test -d "$as_dir" && break
4989 done
4990 test -z "$as_dirs" || eval "mkdir $as_dirs"
4991 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4994 } # as_fn_mkdir_p
4995 if mkdir -p . 2>/dev/null; then
4996 as_mkdir_p='mkdir -p "$as_dir"'
4997 else
4998 test -d ./-p && rmdir ./-p
4999 as_mkdir_p=false
5002 if test -x / >/dev/null 2>&1; then
5003 as_test_x='test -x'
5004 else
5005 if ls -dL / >/dev/null 2>&1; then
5006 as_ls_L_option=L
5007 else
5008 as_ls_L_option=
5010 as_test_x='
5011 eval sh -c '\''
5012 if test -d "$1"; then
5013 test -d "$1/.";
5014 else
5015 case $1 in #(
5016 -*)set "./$1";;
5017 esac;
5018 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5019 ???[sx]*):;;*)false;;esac;fi
5020 '\'' sh
5023 as_executable_p=$as_test_x
5025 # Sed expression to map a string onto a valid CPP name.
5026 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5028 # Sed expression to map a string onto a valid variable name.
5029 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5032 exec 6>&1
5033 ## ----------------------------------- ##
5034 ## Main body of $CONFIG_STATUS script. ##
5035 ## ----------------------------------- ##
5036 _ASEOF
5037 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5040 # Save the log message, to keep $0 and so on meaningful, and to
5041 # report actual input values of CONFIG_FILES etc. instead of their
5042 # values after options handling.
5043 ac_log="
5044 This file was extended by GNU C Runtime Library $as_me 1.0, which was
5045 generated by GNU Autoconf 2.64. Invocation command line was
5047 CONFIG_FILES = $CONFIG_FILES
5048 CONFIG_HEADERS = $CONFIG_HEADERS
5049 CONFIG_LINKS = $CONFIG_LINKS
5050 CONFIG_COMMANDS = $CONFIG_COMMANDS
5051 $ $0 $@
5053 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5056 _ACEOF
5058 case $ac_config_files in *"
5059 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5060 esac
5062 case $ac_config_headers in *"
5063 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5064 esac
5067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5068 # Files that config.status was made for.
5069 config_files="$ac_config_files"
5070 config_headers="$ac_config_headers"
5071 config_links="$ac_config_links"
5072 config_commands="$ac_config_commands"
5074 _ACEOF
5076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5077 ac_cs_usage="\
5078 \`$as_me' instantiates files and other configuration actions
5079 from templates according to the current configuration. Unless the files
5080 and actions are specified as TAGs, all are instantiated by default.
5082 Usage: $0 [OPTION]... [TAG]...
5084 -h, --help print this help, then exit
5085 -V, --version print version number and configuration settings, then exit
5086 -q, --quiet, --silent
5087 do not print progress messages
5088 -d, --debug don't remove temporary files
5089 --recheck update $as_me by reconfiguring in the same conditions
5090 --file=FILE[:TEMPLATE]
5091 instantiate the configuration file FILE
5092 --header=FILE[:TEMPLATE]
5093 instantiate the configuration header FILE
5095 Configuration files:
5096 $config_files
5098 Configuration headers:
5099 $config_headers
5101 Configuration links:
5102 $config_links
5104 Configuration commands:
5105 $config_commands
5107 Report bugs to the package provider.
5108 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
5109 General help using GNU software: <http://www.gnu.org/gethelp/>."
5111 _ACEOF
5112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5113 ac_cs_version="\\
5114 GNU C Runtime Library config.status 1.0
5115 configured by $0, generated by GNU Autoconf 2.64,
5116 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5118 Copyright (C) 2009 Free Software Foundation, Inc.
5119 This config.status script is free software; the Free Software Foundation
5120 gives unlimited permission to copy, distribute and modify it."
5122 ac_pwd='$ac_pwd'
5123 srcdir='$srcdir'
5124 INSTALL='$INSTALL'
5125 AWK='$AWK'
5126 test -n "\$AWK" || AWK=awk
5127 _ACEOF
5129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5130 # The default lists apply if the user does not specify any file.
5131 ac_need_defaults=:
5132 while test $# != 0
5134 case $1 in
5135 --*=*)
5136 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5137 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5138 ac_shift=:
5141 ac_option=$1
5142 ac_optarg=$2
5143 ac_shift=shift
5145 esac
5147 case $ac_option in
5148 # Handling of the options.
5149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5150 ac_cs_recheck=: ;;
5151 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5152 $as_echo "$ac_cs_version"; exit ;;
5153 --debug | --debu | --deb | --de | --d | -d )
5154 debug=: ;;
5155 --file | --fil | --fi | --f )
5156 $ac_shift
5157 case $ac_optarg in
5158 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5159 esac
5160 as_fn_append CONFIG_FILES " '$ac_optarg'"
5161 ac_need_defaults=false;;
5162 --header | --heade | --head | --hea )
5163 $ac_shift
5164 case $ac_optarg in
5165 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5166 esac
5167 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5168 ac_need_defaults=false;;
5169 --he | --h)
5170 # Conflict between --help and --header
5171 as_fn_error "ambiguous option: \`$1'
5172 Try \`$0 --help' for more information.";;
5173 --help | --hel | -h )
5174 $as_echo "$ac_cs_usage"; exit ;;
5175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5176 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5177 ac_cs_silent=: ;;
5179 # This is an error.
5180 -*) as_fn_error "unrecognized option: \`$1'
5181 Try \`$0 --help' for more information." ;;
5183 *) as_fn_append ac_config_targets " $1"
5184 ac_need_defaults=false ;;
5186 esac
5187 shift
5188 done
5190 ac_configure_extra_args=
5192 if $ac_cs_silent; then
5193 exec 6>/dev/null
5194 ac_configure_extra_args="$ac_configure_extra_args --silent"
5197 _ACEOF
5198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5199 if \$ac_cs_recheck; then
5200 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5201 shift
5202 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5203 CONFIG_SHELL='$SHELL'
5204 export CONFIG_SHELL
5205 exec "\$@"
5208 _ACEOF
5209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5210 exec 5>>config.log
5212 echo
5213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5214 ## Running $as_me. ##
5215 _ASBOX
5216 $as_echo "$ac_log"
5217 } >&5
5219 _ACEOF
5220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5222 # INIT-COMMANDS
5224 srcdir=${srcdir}
5225 host=${host}
5226 with_target_subdir=${with_target_subdir}
5227 with_multisubdir=${with_multisubdir}
5228 ac_configure_args="--enable-multilib ${ac_configure_args}"
5229 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5230 libgcc_topdir=${libgcc_topdir}
5231 CC="${CC}"
5234 _ACEOF
5236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5238 # Handling of arguments.
5239 for ac_config_target in $ac_config_targets
5241 case $ac_config_target in
5242 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
5243 "enable-execute-stack.c") CONFIG_LINKS="$CONFIG_LINKS enable-execute-stack.c:$enable_execute_stack" ;;
5244 "unwind.h") CONFIG_LINKS="$CONFIG_LINKS unwind.h:$unwind_header" ;;
5245 "md-unwind-support.h") CONFIG_LINKS="$CONFIG_LINKS md-unwind-support.h:config/$md_unwind_header" ;;
5246 "sfp-machine.h") CONFIG_LINKS="$CONFIG_LINKS sfp-machine.h:config/$sfp_machine_header" ;;
5247 "gthr-default.h") CONFIG_LINKS="$CONFIG_LINKS gthr-default.h:$thread_header" ;;
5248 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5249 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5251 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5252 esac
5253 done
5256 # If the user did not use the arguments to specify the items to instantiate,
5257 # then the envvar interface is used. Set only those that are not.
5258 # We use the long form for the default assignment because of an extremely
5259 # bizarre bug on SunOS 4.1.3.
5260 if $ac_need_defaults; then
5261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5262 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5263 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5264 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5267 # Have a temporary directory for convenience. Make it in the build tree
5268 # simply because there is no reason against having it here, and in addition,
5269 # creating and moving files from /tmp can sometimes cause problems.
5270 # Hook for its removal unless debugging.
5271 # Note that there is a small window in which the directory will not be cleaned:
5272 # after its creation but before its name has been assigned to `$tmp'.
5273 $debug ||
5275 tmp=
5276 trap 'exit_status=$?
5277 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5279 trap 'as_fn_exit 1' 1 2 13 15
5281 # Create a (secure) tmp directory for tmp files.
5284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5285 test -n "$tmp" && test -d "$tmp"
5286 } ||
5288 tmp=./conf$$-$RANDOM
5289 (umask 077 && mkdir "$tmp")
5290 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5292 # Set up the scripts for CONFIG_FILES section.
5293 # No need to generate them if there are no CONFIG_FILES.
5294 # This happens for instance with `./config.status config.h'.
5295 if test -n "$CONFIG_FILES"; then
5298 ac_cr=`echo X | tr X '\015'`
5299 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5300 # But we know of no other shell where ac_cr would be empty at this
5301 # point, so we can use a bashism as a fallback.
5302 if test "x$ac_cr" = x; then
5303 eval ac_cr=\$\'\\r\'
5305 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5306 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5307 ac_cs_awk_cr='\r'
5308 else
5309 ac_cs_awk_cr=$ac_cr
5312 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5313 _ACEOF
5317 echo "cat >conf$$subs.awk <<_ACEOF" &&
5318 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5319 echo "_ACEOF"
5320 } >conf$$subs.sh ||
5321 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5322 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5323 ac_delim='%!_!# '
5324 for ac_last_try in false false false false false :; do
5325 . ./conf$$subs.sh ||
5326 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5328 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5329 if test $ac_delim_n = $ac_delim_num; then
5330 break
5331 elif $ac_last_try; then
5332 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5333 else
5334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5336 done
5337 rm -f conf$$subs.sh
5339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5340 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5341 _ACEOF
5342 sed -n '
5344 s/^/S["/; s/!.*/"]=/
5347 s/^[^!]*!//
5348 :repl
5349 t repl
5350 s/'"$ac_delim"'$//
5351 t delim
5354 s/\(.\{148\}\).*/\1/
5355 t more1
5356 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5359 b repl
5360 :more1
5361 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5364 s/.\{148\}//
5365 t nl
5366 :delim
5368 s/\(.\{148\}\).*/\1/
5369 t more2
5370 s/["\\]/\\&/g; s/^/"/; s/$/"/
5373 :more2
5374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5377 s/.\{148\}//
5378 t delim
5379 ' <conf$$subs.awk | sed '
5380 /^[^""]/{
5382 s/\n//
5384 ' >>$CONFIG_STATUS || ac_write_fail=1
5385 rm -f conf$$subs.awk
5386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5387 _ACAWK
5388 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5389 for (key in S) S_is_set[key] = 1
5390 FS = "\a"
5394 line = $ 0
5395 nfields = split(line, field, "@")
5396 substed = 0
5397 len = length(field[1])
5398 for (i = 2; i < nfields; i++) {
5399 key = field[i]
5400 keylen = length(key)
5401 if (S_is_set[key]) {
5402 value = S[key]
5403 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5404 len += length(value) + length(field[++i])
5405 substed = 1
5406 } else
5407 len += 1 + keylen
5410 print line
5413 _ACAWK
5414 _ACEOF
5415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5416 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5417 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5418 else
5420 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5421 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5422 _ACEOF
5424 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5425 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5426 # trailing colons and then remove the whole line if VPATH becomes empty
5427 # (actually we leave an empty line to preserve line numbers).
5428 if test "x$srcdir" = x.; then
5429 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5430 s/:*\$(srcdir):*/:/
5431 s/:*\${srcdir}:*/:/
5432 s/:*@srcdir@:*/:/
5433 s/^\([^=]*=[ ]*\):*/\1/
5434 s/:*$//
5435 s/^[^=]*=[ ]*$//
5439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5440 fi # test -n "$CONFIG_FILES"
5442 # Set up the scripts for CONFIG_HEADERS section.
5443 # No need to generate them if there are no CONFIG_HEADERS.
5444 # This happens for instance with `./config.status Makefile'.
5445 if test -n "$CONFIG_HEADERS"; then
5446 cat >"$tmp/defines.awk" <<\_ACAWK ||
5447 BEGIN {
5448 _ACEOF
5450 # Transform confdefs.h into an awk script `defines.awk', embedded as
5451 # here-document in config.status, that substitutes the proper values into
5452 # config.h.in to produce config.h.
5454 # Create a delimiter string that does not exist in confdefs.h, to ease
5455 # handling of long lines.
5456 ac_delim='%!_!# '
5457 for ac_last_try in false false :; do
5458 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5459 if test -z "$ac_t"; then
5460 break
5461 elif $ac_last_try; then
5462 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5463 else
5464 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5466 done
5468 # For the awk script, D is an array of macro values keyed by name,
5469 # likewise P contains macro parameters if any. Preserve backslash
5470 # newline sequences.
5472 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5473 sed -n '
5474 s/.\{148\}/&'"$ac_delim"'/g
5475 t rset
5476 :rset
5477 s/^[ ]*#[ ]*define[ ][ ]*/ /
5478 t def
5480 :def
5481 s/\\$//
5482 t bsnl
5483 s/["\\]/\\&/g
5484 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5485 D["\1"]=" \3"/p
5486 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5488 :bsnl
5489 s/["\\]/\\&/g
5490 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5491 D["\1"]=" \3\\\\\\n"\\/p
5492 t cont
5493 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5494 t cont
5496 :cont
5498 s/.\{148\}/&'"$ac_delim"'/g
5499 t clear
5500 :clear
5501 s/\\$//
5502 t bsnlc
5503 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5505 :bsnlc
5506 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5507 b cont
5508 ' <confdefs.h | sed '
5509 s/'"$ac_delim"'/"\\\
5510 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5513 for (key in D) D_is_set[key] = 1
5514 FS = "\a"
5516 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5517 line = \$ 0
5518 split(line, arg, " ")
5519 if (arg[1] == "#") {
5520 defundef = arg[2]
5521 mac1 = arg[3]
5522 } else {
5523 defundef = substr(arg[1], 2)
5524 mac1 = arg[2]
5526 split(mac1, mac2, "(") #)
5527 macro = mac2[1]
5528 prefix = substr(line, 1, index(line, defundef) - 1)
5529 if (D_is_set[macro]) {
5530 # Preserve the white space surrounding the "#".
5531 print prefix "define", macro P[macro] D[macro]
5532 next
5533 } else {
5534 # Replace #undef with comments. This is necessary, for example,
5535 # in the case of _POSIX_SOURCE, which is predefined and required
5536 # on some systems where configure will not decide to define it.
5537 if (defundef == "undef") {
5538 print "/*", prefix defundef, macro, "*/"
5539 next
5543 { print }
5544 _ACAWK
5545 _ACEOF
5546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5547 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5548 fi # test -n "$CONFIG_HEADERS"
5551 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
5552 shift
5553 for ac_tag
5555 case $ac_tag in
5556 :[FHLC]) ac_mode=$ac_tag; continue;;
5557 esac
5558 case $ac_mode$ac_tag in
5559 :[FHL]*:*);;
5560 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5561 :[FH]-) ac_tag=-:-;;
5562 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5563 esac
5564 ac_save_IFS=$IFS
5565 IFS=:
5566 set x $ac_tag
5567 IFS=$ac_save_IFS
5568 shift
5569 ac_file=$1
5570 shift
5572 case $ac_mode in
5573 :L) ac_source=$1;;
5574 :[FH])
5575 ac_file_inputs=
5576 for ac_f
5578 case $ac_f in
5579 -) ac_f="$tmp/stdin";;
5580 *) # Look for the file first in the build tree, then in the source tree
5581 # (if the path is not absolute). The absolute path cannot be DOS-style,
5582 # because $ac_f cannot contain `:'.
5583 test -f "$ac_f" ||
5584 case $ac_f in
5585 [\\/$]*) false;;
5586 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5587 esac ||
5588 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5589 esac
5590 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5591 as_fn_append ac_file_inputs " '$ac_f'"
5592 done
5594 # Let's still pretend it is `configure' which instantiates (i.e., don't
5595 # use $as_me), people would be surprised to read:
5596 # /* config.h. Generated by config.status. */
5597 configure_input='Generated from '`
5598 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5599 `' by configure.'
5600 if test x"$ac_file" != x-; then
5601 configure_input="$ac_file. $configure_input"
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5603 $as_echo "$as_me: creating $ac_file" >&6;}
5605 # Neutralize special characters interpreted by sed in replacement strings.
5606 case $configure_input in #(
5607 *\&* | *\|* | *\\* )
5608 ac_sed_conf_input=`$as_echo "$configure_input" |
5609 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5610 *) ac_sed_conf_input=$configure_input;;
5611 esac
5613 case $ac_tag in
5614 *:-:* | *:-) cat >"$tmp/stdin" \
5615 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5616 esac
5618 esac
5620 ac_dir=`$as_dirname -- "$ac_file" ||
5621 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5622 X"$ac_file" : 'X\(//\)[^/]' \| \
5623 X"$ac_file" : 'X\(//\)$' \| \
5624 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5625 $as_echo X"$ac_file" |
5626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5627 s//\1/
5630 /^X\(\/\/\)[^/].*/{
5631 s//\1/
5634 /^X\(\/\/\)$/{
5635 s//\1/
5638 /^X\(\/\).*/{
5639 s//\1/
5642 s/.*/./; q'`
5643 as_dir="$ac_dir"; as_fn_mkdir_p
5644 ac_builddir=.
5646 case "$ac_dir" in
5647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5650 # A ".." for each directory in $ac_dir_suffix.
5651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5652 case $ac_top_builddir_sub in
5653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5655 esac ;;
5656 esac
5657 ac_abs_top_builddir=$ac_pwd
5658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5659 # for backward compatibility:
5660 ac_top_builddir=$ac_top_build_prefix
5662 case $srcdir in
5663 .) # We are building in place.
5664 ac_srcdir=.
5665 ac_top_srcdir=$ac_top_builddir_sub
5666 ac_abs_top_srcdir=$ac_pwd ;;
5667 [\\/]* | ?:[\\/]* ) # Absolute name.
5668 ac_srcdir=$srcdir$ac_dir_suffix;
5669 ac_top_srcdir=$srcdir
5670 ac_abs_top_srcdir=$srcdir ;;
5671 *) # Relative name.
5672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5673 ac_top_srcdir=$ac_top_build_prefix$srcdir
5674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5675 esac
5676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5679 case $ac_mode in
5682 # CONFIG_FILE
5685 case $INSTALL in
5686 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5687 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5688 esac
5689 _ACEOF
5691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5692 # If the template does not know about datarootdir, expand it.
5693 # FIXME: This hack should be removed a few years after 2.60.
5694 ac_datarootdir_hack=; ac_datarootdir_seen=
5695 ac_sed_dataroot='
5696 /datarootdir/ {
5700 /@datadir@/p
5701 /@docdir@/p
5702 /@infodir@/p
5703 /@localedir@/p
5704 /@mandir@/p'
5705 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5706 *datarootdir*) ac_datarootdir_seen=yes;;
5707 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5709 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5710 _ACEOF
5711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5712 ac_datarootdir_hack='
5713 s&@datadir@&$datadir&g
5714 s&@docdir@&$docdir&g
5715 s&@infodir@&$infodir&g
5716 s&@localedir@&$localedir&g
5717 s&@mandir@&$mandir&g
5718 s&\\\${datarootdir}&$datarootdir&g' ;;
5719 esac
5720 _ACEOF
5722 # Neutralize VPATH when `$srcdir' = `.'.
5723 # Shell code in configure.ac might set extrasub.
5724 # FIXME: do we really want to maintain this feature?
5725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5726 ac_sed_extra="$ac_vpsub
5727 $extrasub
5728 _ACEOF
5729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5732 s|@configure_input@|$ac_sed_conf_input|;t t
5733 s&@top_builddir@&$ac_top_builddir_sub&;t t
5734 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5735 s&@srcdir@&$ac_srcdir&;t t
5736 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5737 s&@top_srcdir@&$ac_top_srcdir&;t t
5738 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5739 s&@builddir@&$ac_builddir&;t t
5740 s&@abs_builddir@&$ac_abs_builddir&;t t
5741 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5742 s&@INSTALL@&$ac_INSTALL&;t t
5743 $ac_datarootdir_hack
5745 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5746 || as_fn_error "could not create $ac_file" "$LINENO" 5
5748 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5749 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5750 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5752 which seems to be undefined. Please make sure it is defined." >&5
5753 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5754 which seems to be undefined. Please make sure it is defined." >&2;}
5756 rm -f "$tmp/stdin"
5757 case $ac_file in
5758 -) cat "$tmp/out" && rm -f "$tmp/out";;
5759 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5760 esac \
5761 || as_fn_error "could not create $ac_file" "$LINENO" 5
5765 # CONFIG_HEADER
5767 if test x"$ac_file" != x-; then
5769 $as_echo "/* $configure_input */" \
5770 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5771 } >"$tmp/config.h" \
5772 || as_fn_error "could not create $ac_file" "$LINENO" 5
5773 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5775 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5776 else
5777 rm -f "$ac_file"
5778 mv "$tmp/config.h" "$ac_file" \
5779 || as_fn_error "could not create $ac_file" "$LINENO" 5
5781 else
5782 $as_echo "/* $configure_input */" \
5783 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5784 || as_fn_error "could not create -" "$LINENO" 5
5789 # CONFIG_LINK
5792 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
5794 else
5795 # Prefer the file from the source tree if names are identical.
5796 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
5797 ac_source=$srcdir/$ac_source
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
5801 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
5803 if test ! -r "$ac_source"; then
5804 as_fn_error "$ac_source: file not found" "$LINENO" 5
5806 rm -f "$ac_file"
5808 # Try a relative symlink, then a hard link, then a copy.
5809 case $srcdir in
5810 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
5811 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
5812 esac
5813 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
5814 ln "$ac_source" "$ac_file" 2>/dev/null ||
5815 cp -p "$ac_source" "$ac_file" ||
5816 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
5819 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5820 $as_echo "$as_me: executing $ac_file commands" >&6;}
5822 esac
5825 case $ac_file$ac_mode in
5826 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5827 if test -n "$CONFIG_FILES"; then
5828 # FIXME: We shouldn't need to set ac_file
5829 ac_file=Makefile
5830 . ${libgcc_topdir}/config-ml.in
5831 fi ;;
5833 esac
5834 done # for ac_tag
5837 as_fn_exit 0
5838 _ACEOF
5839 ac_clean_files=$ac_clean_files_save
5841 test $ac_write_fail = 0 ||
5842 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5845 # configure is writing to config.log, and then calls config.status.
5846 # config.status does its own redirection, appending to config.log.
5847 # Unfortunately, on DOS this fails, as config.log is still kept open
5848 # by configure, so config.status won't be able to write to it; its
5849 # output is simply discarded. So we exec the FD to /dev/null,
5850 # effectively closing config.log, so it can be properly (re)opened and
5851 # appended to by config.status. When coming back to configure, we
5852 # need to make the FD available again.
5853 if test "$no_create" != yes; then
5854 ac_cs_success=:
5855 ac_config_status_args=
5856 test "$silent" = yes &&
5857 ac_config_status_args="$ac_config_status_args --quiet"
5858 exec 5>/dev/null
5859 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5860 exec 5>>config.log
5861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5862 # would make configure fail if this is the last instruction.
5863 $ac_cs_success || as_fn_exit $?
5865 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5867 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}