Match: Refactor the unsigned SAT_ADD match pattern [NFC]
[gcc.git] / libgcc / configure
blob15a0be23644870a537cb5c57a969e395d46929fa
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU C Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME='GNU C Runtime Library'
579 PACKAGE_TARNAME='libgcc'
580 PACKAGE_VERSION='1.0'
581 PACKAGE_STRING='GNU C Runtime Library 1.0'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL='http://www.gnu.org/software/libgcc/'
585 ac_unique_file="static-object.mk"
586 ac_includes_default='/* none */'
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 md_unwind_header
590 md_unwind_def_header
591 unwind_header
592 enable_execute_stack
593 asm_hidden_op
594 extra_parts
595 cpu_type
596 get_gcc_base_ver
597 HAVE_STRUB_SUPPORT
598 thread_header
599 tm_defines
600 tm_file
601 tmake_file
602 sfp_machine_header
603 set_use_emutls
604 set_have_cc_tls
605 vis_hide
606 solaris_ld_v2_maps
607 real_host_noncanonical
608 accel_dir_suffix
609 use_tm_clone_registry
610 force_explicit_eh_registry
611 CET_FLAGS
612 fixed_point
613 enable_decimal_float
614 decimal_float
615 EGREP
616 GREP
617 long_double_type_size
618 double_type_size
620 OBJEXT
621 EXEEXT
622 ac_ct_CC
623 CPPFLAGS
624 LDFLAGS
625 CFLAGS
627 LN_S
628 STRIP
629 RANLIB
631 LIPO
633 toolexeclibdir
634 toolexecdir
635 enable_gcov
636 target_subdir
637 host_subdir
638 build_subdir
639 build_libsubdir
640 target_noncanonical
641 host_noncanonical
643 INSTALL_DATA
644 INSTALL_SCRIPT
645 INSTALL_PROGRAM
646 MAINT
647 slibdir
648 PICFLAG
649 host_os
650 host_vendor
651 host_cpu
652 host
653 build_os
654 build_vendor
655 build_cpu
656 build
657 with_aix_soname
658 enable_vtable_verify
659 enable_shared
660 libgcc_topdir
661 target_alias
662 host_alias
663 build_alias
664 LIBS
665 ECHO_T
666 ECHO_N
667 ECHO_C
668 DEFS
669 mandir
670 localedir
671 libdir
672 psdir
673 pdfdir
674 dvidir
675 htmldir
676 infodir
677 docdir
678 oldincludedir
679 includedir
680 localstatedir
681 sharedstatedir
682 sysconfdir
683 datadir
684 datarootdir
685 libexecdir
686 sbindir
687 bindir
688 program_transform_name
689 prefix
690 exec_prefix
691 PACKAGE_URL
692 PACKAGE_BUGREPORT
693 PACKAGE_STRING
694 PACKAGE_VERSION
695 PACKAGE_TARNAME
696 PACKAGE_NAME
697 PATH_SEPARATOR
698 SHELL'
699 ac_subst_files=''
700 ac_user_opts='
701 enable_option_checking
702 with_target_subdir
703 with_cross_host
704 with_ld
705 enable_shared
706 enable_vtable_verify
707 with_aix_soname
708 enable_version_specific_runtime_libs
709 with_toolexeclibdir
710 with_slibdir
711 enable_maintainer_mode
712 with_build_libsubdir
713 enable_gcov
714 enable_largefile
715 enable_decimal_float
716 with_system_libunwind
717 enable_cet
718 enable_explicit_exception_frame_registration
719 enable_tm_clone_registry
720 with_glibc_version
721 enable_tls
722 with_gcc_major_version_only
724 ac_precious_vars='build_alias
725 host_alias
726 target_alias
728 CFLAGS
729 LDFLAGS
730 LIBS
731 CPPFLAGS
732 CPP'
735 # Initialize some variables set by options.
736 ac_init_help=
737 ac_init_version=false
738 ac_unrecognized_opts=
739 ac_unrecognized_sep=
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
742 cache_file=/dev/null
743 exec_prefix=NONE
744 no_create=
745 no_recursion=
746 prefix=NONE
747 program_prefix=NONE
748 program_suffix=NONE
749 program_transform_name=s,x,x,
750 silent=
751 site=
752 srcdir=
753 verbose=
754 x_includes=NONE
755 x_libraries=NONE
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 includedir='${prefix}/include'
772 oldincludedir='/usr/include'
773 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
774 infodir='${datarootdir}/info'
775 htmldir='${docdir}'
776 dvidir='${docdir}'
777 pdfdir='${docdir}'
778 psdir='${docdir}'
779 libdir='${exec_prefix}/lib'
780 localedir='${datarootdir}/locale'
781 mandir='${datarootdir}/man'
783 ac_prev=
784 ac_dashdash=
785 for ac_option
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\$ac_option
790 ac_prev=
791 continue
794 case $ac_option in
795 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
796 *=) ac_optarg= ;;
797 *) ac_optarg=yes ;;
798 esac
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
804 ac_dashdash=yes ;;
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
823 --config-cache | -C)
824 cache_file=config.cache ;;
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
838 -disable-* | --disable-*)
839 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
842 as_fn_error $? "invalid feature name: $ac_useropt"
843 ac_useropt_orig=$ac_useropt
844 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
847 "enable_$ac_useropt"
848 "*) ;;
849 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
850 ac_unrecognized_sep=', ';;
851 esac
852 eval enable_$ac_useropt=no ;;
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
864 -enable-* | --enable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error $? "invalid feature name: $ac_useropt"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=\$ac_optarg ;;
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1068 -with-* | --with-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "with_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=\$ac_optarg ;;
1084 -without-* | --without-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "with_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval with_$ac_useropt=no ;;
1100 --x)
1101 # Obsolete; use --with-x.
1102 with_x=yes ;;
1104 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1105 | --x-incl | --x-inc | --x-in | --x-i)
1106 ac_prev=x_includes ;;
1107 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1108 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1109 x_includes=$ac_optarg ;;
1111 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1112 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1113 ac_prev=x_libraries ;;
1114 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1115 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1116 x_libraries=$ac_optarg ;;
1118 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1119 Try \`$0 --help' for more information"
1122 *=*)
1123 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 case $ac_envvar in #(
1126 '' | [0-9]* | *[!_$as_cr_alnum]* )
1127 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1128 esac
1129 eval $ac_envvar=\$ac_optarg
1130 export $ac_envvar ;;
1133 # FIXME: should be removed in autoconf 3.0.
1134 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1135 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1136 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1137 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1140 esac
1141 done
1143 if test -n "$ac_prev"; then
1144 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1145 as_fn_error $? "missing argument to $ac_option"
1148 if test -n "$ac_unrecognized_opts"; then
1149 case $enable_option_checking in
1150 no) ;;
1151 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1152 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1153 esac
1156 # Check all directory arguments for consistency.
1157 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1158 datadir sysconfdir sharedstatedir localstatedir includedir \
1159 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1160 libdir localedir mandir
1162 eval ac_val=\$$ac_var
1163 # Remove trailing slashes.
1164 case $ac_val in
1165 */ )
1166 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1167 eval $ac_var=\$ac_val;;
1168 esac
1169 # Be sure to have absolute directory names.
1170 case $ac_val in
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173 esac
1174 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1175 done
1177 # There might be people who depend on the old broken behavior: `$host'
1178 # used to hold the argument of --host etc.
1179 # FIXME: To remove some day.
1180 build=$build_alias
1181 host=$host_alias
1182 target=$target_alias
1184 # FIXME: To remove some day.
1185 if test "x$host_alias" != x; then
1186 if test "x$build_alias" = x; then
1187 cross_compiling=maybe
1188 elif test "x$build_alias" != "x$host_alias"; then
1189 cross_compiling=yes
1193 ac_tool_prefix=
1194 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1196 test "$silent" = yes && exec 6>/dev/null
1199 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1200 ac_ls_di=`ls -di .` &&
1201 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1202 as_fn_error $? "working directory cannot be determined"
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204 as_fn_error $? "pwd does not report name of working directory"
1207 # Find the source files, if location was not specified.
1208 if test -z "$srcdir"; then
1209 ac_srcdir_defaulted=yes
1210 # Try the directory containing this script, then the parent directory.
1211 ac_confdir=`$as_dirname -- "$as_myself" ||
1212 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$as_myself" : 'X\(//\)[^/]' \| \
1214 X"$as_myself" : 'X\(//\)$' \| \
1215 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1216 $as_echo X"$as_myself" |
1217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1218 s//\1/
1221 /^X\(\/\/\)[^/].*/{
1222 s//\1/
1225 /^X\(\/\/\)$/{
1226 s//\1/
1229 /^X\(\/\).*/{
1230 s//\1/
1233 s/.*/./; q'`
1234 srcdir=$ac_confdir
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 srcdir=..
1238 else
1239 ac_srcdir_defaulted=no
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1243 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1245 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1246 ac_abs_confdir=`(
1247 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1248 pwd)`
1249 # When building in place, set srcdir=.
1250 if test "$ac_abs_confdir" = "$ac_pwd"; then
1251 srcdir=.
1253 # Remove unnecessary trailing slashes from srcdir.
1254 # Double slashes in file names in object file debugging info
1255 # mess up M-x gdb in Emacs.
1256 case $srcdir in
1257 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1258 esac
1259 for ac_var in $ac_precious_vars; do
1260 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1261 eval ac_env_${ac_var}_value=\$${ac_var}
1262 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1264 done
1267 # Report the --help message.
1269 if test "$ac_init_help" = "long"; then
1270 # Omit some internal or obsolete options to make the list less imposing.
1271 # This message is too long to be a string in the A/UX 3.1 sh.
1272 cat <<_ACEOF
1273 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1275 Usage: $0 [OPTION]... [VAR=VALUE]...
1277 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1278 VAR=VALUE. See below for descriptions of some of the useful variables.
1280 Defaults for the options are specified in brackets.
1282 Configuration:
1283 -h, --help display this help and exit
1284 --help=short display options specific to this package
1285 --help=recursive display the short help of all the included packages
1286 -V, --version display version information and exit
1287 -q, --quiet, --silent do not print \`checking ...' messages
1288 --cache-file=FILE cache test results in FILE [disabled]
1289 -C, --config-cache alias for \`--cache-file=config.cache'
1290 -n, --no-create do not create output files
1291 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1293 Installation directories:
1294 --prefix=PREFIX install architecture-independent files in PREFIX
1295 [$ac_default_prefix]
1296 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1297 [PREFIX]
1299 By default, \`make install' will install all the files in
1300 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1301 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1302 for instance \`--prefix=\$HOME'.
1304 For better control, use the options below.
1306 Fine tuning of the installation directories:
1307 --bindir=DIR user executables [EPREFIX/bin]
1308 --sbindir=DIR system admin executables [EPREFIX/sbin]
1309 --libexecdir=DIR program executables [EPREFIX/libexec]
1310 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1311 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1312 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1313 --libdir=DIR object code libraries [EPREFIX/lib]
1314 --includedir=DIR C header files [PREFIX/include]
1315 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1316 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1317 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1318 --infodir=DIR info documentation [DATAROOTDIR/info]
1319 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1320 --mandir=DIR man documentation [DATAROOTDIR/man]
1321 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1322 --htmldir=DIR html documentation [DOCDIR]
1323 --dvidir=DIR dvi documentation [DOCDIR]
1324 --pdfdir=DIR pdf documentation [DOCDIR]
1325 --psdir=DIR ps documentation [DOCDIR]
1326 _ACEOF
1328 cat <<\_ACEOF
1330 System types:
1331 --build=BUILD configure for building on BUILD [guessed]
1332 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1333 _ACEOF
1336 if test -n "$ac_init_help"; then
1337 case $ac_init_help in
1338 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1339 esac
1340 cat <<\_ACEOF
1342 Optional Features:
1343 --disable-option-checking ignore unrecognized --enable/--with options
1344 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1345 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1346 --disable-shared don't provide a shared libgcc
1347 --enable-vtable-verify Enable vtable verification feature
1348 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1349 --enable-maintainer-mode
1350 enable make rules and dependencies not useful (and
1351 sometimes confusing) to the casual installer
1352 --disable-gcov don't provide libgcov and related host tools
1353 --disable-largefile omit support for large files
1354 --enable-decimal-float={no,yes,bid,dpd}
1355 enable decimal float extension to C. Selecting 'bid'
1356 or 'dpd' choses which decimal floating point format
1357 to use
1358 --enable-cet enable Intel CET in target libraries [default=auto]
1359 --enable-explicit-exception-frame-registration
1360 register exception tables explicitly at module
1361 start, for use e.g. for compatibility with
1362 installations without PT_GNU_EH_FRAME support
1363 --disable-tm-clone-registry disable TM clone registry
1364 --enable-tls Use thread-local storage [default=yes]
1366 Optional Packages:
1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1369 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1370 --with-cross-host=HOST Configuring with a cross compiler
1371 --with-ld arrange to use the specified ld (full pathname)
1372 --with-aix-soname=aix|svr4|both
1373 shared library versioning (aka "SONAME") variant to
1374 provide on AIX
1375 --with-toolexeclibdir=DIR
1376 install libraries built with a cross compiler within
1378 --with-slibdir=DIR shared libraries in DIR LIBDIR
1379 --with-build-libsubdir=DIR Directory where to find libraries for build system
1380 --with-system-libunwind use installed libunwind
1381 --with-glibc-version=M.N
1382 assume GCC used with glibc version M.N or later
1383 --with-gcc-major-version-only
1384 use only GCC major number in filesystem paths
1386 Some influential environment variables:
1387 CC C compiler command
1388 CFLAGS C compiler flags
1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 nonstandard directory <lib dir>
1391 LIBS libraries to pass to the linker, e.g. -l<library>
1392 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1393 you have headers in a nonstandard directory <include dir>
1394 CPP C preprocessor
1396 Use these variables to override the choices made by `configure' or to help
1397 it to find libraries and programs with nonstandard names/locations.
1399 Report bugs to the package provider.
1400 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1401 General help using GNU software: <http://www.gnu.org/gethelp/>.
1402 _ACEOF
1403 ac_status=$?
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" ||
1410 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411 continue
1412 ac_builddir=.
1414 case "$ac_dir" in
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418 # A ".." for each directory in $ac_dir_suffix.
1419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423 esac ;;
1424 esac
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1430 case $srcdir in
1431 .) # We are building in place.
1432 ac_srcdir=.
1433 ac_top_srcdir=$ac_top_builddir_sub
1434 ac_abs_top_srcdir=$ac_pwd ;;
1435 [\\/]* | ?:[\\/]* ) # Absolute name.
1436 ac_srcdir=$srcdir$ac_dir_suffix;
1437 ac_top_srcdir=$srcdir
1438 ac_abs_top_srcdir=$srcdir ;;
1439 *) # Relative name.
1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 esac
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446 cd "$ac_dir" || { ac_status=$?; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1454 else
1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456 fi || ac_status=$?
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1458 done
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1463 cat <<\_ACEOF
1464 GNU C Runtime Library configure 1.0
1465 generated by GNU Autoconf 2.69
1467 Copyright (C) 2012 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1470 _ACEOF
1471 exit
1474 ## ------------------------ ##
1475 ## Autoconf initialization. ##
1476 ## ------------------------ ##
1478 # ac_fn_c_try_compile LINENO
1479 # --------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_c_try_compile ()
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext
1485 if { { ac_try="$ac_compile"
1486 case "(($ac_try" in
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1489 esac
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_compile") 2>conftest.err
1493 ac_status=$?
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_c_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest.$ac_objext; then :
1504 ac_retval=0
1505 else
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1509 ac_retval=1
1511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512 as_fn_set_status $ac_retval
1514 } # ac_fn_c_try_compile
1516 # ac_fn_c_try_cpp LINENO
1517 # ----------------------
1518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_cpp ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if { { ac_try="$ac_cpp conftest.$ac_ext"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } > conftest.i && {
1538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 }; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1546 ac_retval=1
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status $ac_retval
1551 } # ac_fn_c_try_cpp
1553 # ac_fn_c_try_run LINENO
1554 # ----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1556 # that executables *can* be run.
1557 ac_fn_c_try_run ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 if { { ac_try="$ac_link"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_link") 2>&5
1568 ac_status=$?
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1571 { { case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_try") 2>&5
1578 ac_status=$?
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; }; }; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: program exited with status $ac_status" >&5
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1587 ac_retval=$ac_status
1589 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1593 } # ac_fn_c_try_run
1595 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1596 # --------------------------------------------
1597 # Tries to find the compile-time value of EXPR in a program that includes
1598 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1599 # computed
1600 ac_fn_c_compute_int ()
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if test "$cross_compiling" = yes; then
1604 # Depending upon the size, compute the lo and hi bounds.
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1609 main ()
1611 static int test_array [1 - 2 * !(($2) >= 0)];
1612 test_array [0] = 0;
1613 return test_array [0];
1616 return 0;
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"; then :
1620 ac_lo=0 ac_mid=0
1621 while :; do
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1626 main ()
1628 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1629 test_array [0] = 0;
1630 return test_array [0];
1633 return 0;
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"; then :
1637 ac_hi=$ac_mid; break
1638 else
1639 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1640 if test $ac_lo -le $ac_mid; then
1641 ac_lo= ac_hi=
1642 break
1644 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647 done
1648 else
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1653 main ()
1655 static int test_array [1 - 2 * !(($2) < 0)];
1656 test_array [0] = 0;
1657 return test_array [0];
1660 return 0;
1662 _ACEOF
1663 if ac_fn_c_try_compile "$LINENO"; then :
1664 ac_hi=-1 ac_mid=-1
1665 while :; do
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1670 main ()
1672 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1673 test_array [0] = 0;
1674 return test_array [0];
1677 return 0;
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681 ac_lo=$ac_mid; break
1682 else
1683 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1684 if test $ac_mid -le $ac_hi; then
1685 ac_lo= ac_hi=
1686 break
1688 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 done
1692 else
1693 ac_lo= ac_hi=
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 # Binary search between lo and hi bounds.
1699 while test "x$ac_lo" != "x$ac_hi"; do
1700 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1705 main ()
1707 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1708 test_array [0] = 0;
1709 return test_array [0];
1712 return 0;
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"; then :
1716 ac_hi=$ac_mid
1717 else
1718 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 done
1722 case $ac_lo in #((
1723 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1724 '') ac_retval=1 ;;
1725 esac
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1730 static long int longval () { return $2; }
1731 static unsigned long int ulongval () { return $2; }
1732 #include <stdio.h>
1733 #include <stdlib.h>
1735 main ()
1738 FILE *f = fopen ("conftest.val", "w");
1739 if (! f)
1740 return 1;
1741 if (($2) < 0)
1743 long int i = longval ();
1744 if (i != ($2))
1745 return 1;
1746 fprintf (f, "%ld", i);
1748 else
1750 unsigned long int i = ulongval ();
1751 if (i != ($2))
1752 return 1;
1753 fprintf (f, "%lu", i);
1755 /* Do not output a trailing newline, as this causes \r\n confusion
1756 on some platforms. */
1757 return ferror (f) || fclose (f) != 0;
1760 return 0;
1762 _ACEOF
1763 if ac_fn_c_try_run "$LINENO"; then :
1764 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1765 else
1766 ac_retval=1
1768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1769 conftest.$ac_objext conftest.beam conftest.$ac_ext
1770 rm -f conftest.val
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1776 } # ac_fn_c_compute_int
1778 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1779 # ----------------------------------------------
1780 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_preproc ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_cpp "$LINENO"; then :
1794 eval "$3=yes"
1795 else
1796 eval "$3=no"
1798 rm -f conftest.err conftest.i conftest.$ac_ext
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 } # ac_fn_c_check_header_preproc
1806 cat >config.log <<_ACEOF
1807 This file contains any messages produced by compilers while
1808 running configure, to aid debugging if configure makes a mistake.
1810 It was created by GNU C Runtime Library $as_me 1.0, which was
1811 generated by GNU Autoconf 2.69. Invocation command line was
1813 $ $0 $@
1815 _ACEOF
1816 exec 5>>config.log
1818 cat <<_ASUNAME
1819 ## --------- ##
1820 ## Platform. ##
1821 ## --------- ##
1823 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1824 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1825 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1826 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1827 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1829 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1830 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1832 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1833 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1834 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1835 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1836 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1837 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1838 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1840 _ASUNAME
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 $as_echo "PATH: $as_dir"
1848 done
1849 IFS=$as_save_IFS
1851 } >&5
1853 cat >&5 <<_ACEOF
1856 ## ----------- ##
1857 ## Core tests. ##
1858 ## ----------- ##
1860 _ACEOF
1863 # Keep a trace of the command line.
1864 # Strip out --no-create and --no-recursion so they do not pile up.
1865 # Strip out --silent because we don't want to record it for future runs.
1866 # Also quote any args containing shell meta-characters.
1867 # Make two passes to allow for proper duplicate-argument suppression.
1868 ac_configure_args=
1869 ac_configure_args0=
1870 ac_configure_args1=
1871 ac_must_keep_next=false
1872 for ac_pass in 1 2
1874 for ac_arg
1876 case $ac_arg in
1877 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1879 | -silent | --silent | --silen | --sile | --sil)
1880 continue ;;
1881 *\'*)
1882 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 esac
1884 case $ac_pass in
1885 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1887 as_fn_append ac_configure_args1 " '$ac_arg'"
1888 if test $ac_must_keep_next = true; then
1889 ac_must_keep_next=false # Got value, back to normal.
1890 else
1891 case $ac_arg in
1892 *=* | --config-cache | -C | -disable-* | --disable-* \
1893 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1894 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1895 | -with-* | --with-* | -without-* | --without-* | --x)
1896 case "$ac_configure_args0 " in
1897 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1898 esac
1900 -* ) ac_must_keep_next=true ;;
1901 esac
1903 as_fn_append ac_configure_args " '$ac_arg'"
1905 esac
1906 done
1907 done
1908 { ac_configure_args0=; unset ac_configure_args0;}
1909 { ac_configure_args1=; unset ac_configure_args1;}
1911 # When interrupted or exit'd, cleanup temporary files, and complete
1912 # config.log. We remove comments because anyway the quotes in there
1913 # would cause problems or look ugly.
1914 # WARNING: Use '\'' to represent an apostrophe within the trap.
1915 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1916 trap 'exit_status=$?
1917 # Save into config.log some information that might help in debugging.
1919 echo
1921 $as_echo "## ---------------- ##
1922 ## Cache variables. ##
1923 ## ---------------- ##"
1924 echo
1925 # The following way of writing the cache mishandles newlines in values,
1927 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1928 eval ac_val=\$$ac_var
1929 case $ac_val in #(
1930 *${as_nl}*)
1931 case $ac_var in #(
1932 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1933 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1934 esac
1935 case $ac_var in #(
1936 _ | IFS | as_nl) ;; #(
1937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1938 *) { eval $ac_var=; unset $ac_var;} ;;
1939 esac ;;
1940 esac
1941 done
1942 (set) 2>&1 |
1943 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1944 *${as_nl}ac_space=\ *)
1945 sed -n \
1946 "s/'\''/'\''\\\\'\'''\''/g;
1947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1948 ;; #(
1950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1952 esac |
1953 sort
1955 echo
1957 $as_echo "## ----------------- ##
1958 ## Output variables. ##
1959 ## ----------------- ##"
1960 echo
1961 for ac_var in $ac_subst_vars
1963 eval ac_val=\$$ac_var
1964 case $ac_val in
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966 esac
1967 $as_echo "$ac_var='\''$ac_val'\''"
1968 done | sort
1969 echo
1971 if test -n "$ac_subst_files"; then
1972 $as_echo "## ------------------- ##
1973 ## File substitutions. ##
1974 ## ------------------- ##"
1975 echo
1976 for ac_var in $ac_subst_files
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1987 if test -s confdefs.h; then
1988 $as_echo "## ----------- ##
1989 ## confdefs.h. ##
1990 ## ----------- ##"
1991 echo
1992 cat confdefs.h
1993 echo
1995 test "$ac_signal" != 0 &&
1996 $as_echo "$as_me: caught signal $ac_signal"
1997 $as_echo "$as_me: exit $exit_status"
1998 } >&5
1999 rm -f core *.core core.conftest.* &&
2000 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001 exit $exit_status
2003 for ac_signal in 1 2 13 15; do
2004 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2005 done
2006 ac_signal=0
2008 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2009 rm -f -r conftest* confdefs.h
2011 $as_echo "/* confdefs.h */" > confdefs.h
2013 # Predefined preprocessor variables.
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_NAME "$PACKAGE_NAME"
2017 _ACEOF
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2021 _ACEOF
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2025 _ACEOF
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_STRING "$PACKAGE_STRING"
2029 _ACEOF
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2033 _ACEOF
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_URL "$PACKAGE_URL"
2037 _ACEOF
2040 # Let the site file select an alternate cache file if it wants to.
2041 # Prefer an explicitly selected file to automatically selected ones.
2042 ac_site_file1=NONE
2043 ac_site_file2=NONE
2044 if test -n "$CONFIG_SITE"; then
2045 # We do not want a PATH search for config.site.
2046 case $CONFIG_SITE in #((
2047 -*) ac_site_file1=./$CONFIG_SITE;;
2048 */*) ac_site_file1=$CONFIG_SITE;;
2049 *) ac_site_file1=./$CONFIG_SITE;;
2050 esac
2051 elif test "x$prefix" != xNONE; then
2052 ac_site_file1=$prefix/share/config.site
2053 ac_site_file2=$prefix/etc/config.site
2054 else
2055 ac_site_file1=$ac_default_prefix/share/config.site
2056 ac_site_file2=$ac_default_prefix/etc/config.site
2058 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2060 test "x$ac_site_file" = xNONE && continue
2061 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2063 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2064 sed 's/^/| /' "$ac_site_file" >&5
2065 . "$ac_site_file" \
2066 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068 as_fn_error $? "failed to load site script $ac_site_file
2069 See \`config.log' for more details" "$LINENO" 5; }
2071 done
2073 if test -r "$cache_file"; then
2074 # Some versions of bash will fail to source /dev/null (special files
2075 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2076 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078 $as_echo "$as_me: loading cache $cache_file" >&6;}
2079 case $cache_file in
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
2082 esac
2084 else
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086 $as_echo "$as_me: creating cache $cache_file" >&6;}
2087 >$cache_file
2090 # Check that the precious variables saved in the cache have kept the same
2091 # value.
2092 ac_cache_corrupted=false
2093 for ac_var in $ac_precious_vars; do
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
2098 case $ac_old_set,$ac_new_set in
2099 set,)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,set)
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2106 ac_cache_corrupted=: ;;
2107 ,);;
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2137 esac
2139 done
2140 if $ac_cache_corrupted; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2147 ## -------------------- ##
2148 ## Main body of script. ##
2149 ## -------------------- ##
2151 ac_ext=c
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2163 # The libgcc should not depend on any header files
2167 # Check whether --with-target-subdir was given.
2168 if test "${with_target_subdir+set}" = set; then :
2169 withval=$with_target_subdir;
2173 # Check whether --with-cross-host was given.
2174 if test "${with_cross_host+set}" = set; then :
2175 withval=$with_cross_host;
2179 # Check whether --with-ld was given.
2180 if test "${with_ld+set}" = set; then :
2181 withval=$with_ld;
2185 if test "${srcdir}" = "."; then
2186 if test -n "${with_build_subdir}"; then
2187 libgcc_topdir="${srcdir}/../.."
2188 with_target_subdir=
2189 elif test -z "${with_target_subdir}"; then
2190 libgcc_topdir="${srcdir}/.."
2191 else
2192 if test "${with_target_subdir}" != "."; then
2193 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2194 else
2195 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2198 else
2199 libgcc_topdir="${srcdir}/.."
2202 ac_aux_dir=
2203 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2204 if test -f "$ac_dir/install-sh"; then
2205 ac_aux_dir=$ac_dir
2206 ac_install_sh="$ac_aux_dir/install-sh -c"
2207 break
2208 elif test -f "$ac_dir/install.sh"; then
2209 ac_aux_dir=$ac_dir
2210 ac_install_sh="$ac_aux_dir/install.sh -c"
2211 break
2212 elif test -f "$ac_dir/shtool"; then
2213 ac_aux_dir=$ac_dir
2214 ac_install_sh="$ac_aux_dir/shtool install -c"
2215 break
2217 done
2218 if test -z "$ac_aux_dir"; then
2219 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2222 # These three variables are undocumented and unsupported,
2223 # and are intended to be withdrawn in a future Autoconf release.
2224 # They can cause serious problems if a builder's source tree is in a directory
2225 # whose full name contains unusual characters.
2226 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2227 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2228 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2231 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2234 # Check whether --enable-shared was given.
2235 if test "${enable_shared+set}" = set; then :
2236 enableval=$enable_shared;
2237 case $enable_shared in
2238 yes | no) ;;
2240 enable_shared=no
2241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2242 for pkg in $enableval; do
2243 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2244 enable_shared=yes
2246 done
2247 IFS="$ac_save_ifs"
2249 esac
2251 else
2252 enable_shared=yes
2257 # Check whether --enable-vtable-verify was given.
2258 if test "${enable_vtable_verify+set}" = set; then :
2259 enableval=$enable_vtable_verify; case "$enableval" in
2260 yes) enable_vtable_verify=yes ;;
2261 no) enable_vtable_verify=no ;;
2262 *) enable_vtable_verify=no;;
2263 esac
2264 else
2265 enable_vtable_verify=no
2271 # Check whether --with-aix-soname was given.
2272 if test "${with_aix_soname+set}" = set; then :
2273 withval=$with_aix_soname; case "${host}:${enable_shared}" in
2274 power*-*-aix[5-9]*:yes)
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
2276 $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
2277 case ${withval} in
2278 aix|svr4|both) ;;
2279 *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5;;
2280 esac
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2282 $as_echo "$withval" >&6; }
2284 *) with_aix_soname=aix ;;
2285 esac
2287 else
2288 with_aix_soname=aix
2293 # Make sure we can run config.sub.
2294 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2295 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298 $as_echo_n "checking build system type... " >&6; }
2299 if ${ac_cv_build+:} false; then :
2300 $as_echo_n "(cached) " >&6
2301 else
2302 ac_build_alias=$build_alias
2303 test "x$ac_build_alias" = x &&
2304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305 test "x$ac_build_alias" = x &&
2306 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2307 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2308 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312 $as_echo "$ac_cv_build" >&6; }
2313 case $ac_cv_build in
2314 *-*-*) ;;
2315 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2316 esac
2317 build=$ac_cv_build
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_build
2320 shift
2321 build_cpu=$1
2322 build_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 build_os=$*
2327 IFS=$ac_save_IFS
2328 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332 $as_echo_n "checking host system type... " >&6; }
2333 if ${ac_cv_host+:} false; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 if test "x$host_alias" = x; then
2337 ac_cv_host=$ac_cv_build
2338 else
2339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2340 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2345 $as_echo "$ac_cv_host" >&6; }
2346 case $ac_cv_host in
2347 *-*-*) ;;
2348 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2349 esac
2350 host=$ac_cv_host
2351 ac_save_IFS=$IFS; IFS='-'
2352 set x $ac_cv_host
2353 shift
2354 host_cpu=$1
2355 host_vendor=$2
2356 shift; shift
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2359 host_os=$*
2360 IFS=$ac_save_IFS
2361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2368 case "${host}" in
2369 # PIC is the default on some targets or must not be used.
2370 *-*-darwin*)
2371 # For darwin, common symbols are not allowed in MH_DYLIB files
2372 case "${CFLAGS}" in
2373 # If we are using a compiler supporting mdynamic-no-pic
2374 # and the option has been tested as safe to add, then cancel
2375 # it here, since the code generated is incompatible with shared
2376 # libs.
2377 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
2378 *) PICFLAG=-fno-common ;;
2379 esac
2381 alpha*-dec-osf5*)
2382 # PIC is the default.
2384 hppa*64*-*-hpux*)
2385 # PIC is the default for 64-bit PA HP-UX.
2387 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2389 i[34567]86-*-mingw* | x86_64-*-mingw*)
2391 i[34567]86-*-interix[3-9]*)
2392 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2393 # Instead, we relocate shared libraries at runtime.
2395 i[34567]86-*-nto-qnx*)
2396 # QNX uses GNU C++, but need to define -shared option too, otherwise
2397 # it will coredump.
2398 PICFLAG='-fPIC -shared'
2400 i[34567]86-pc-msdosdjgpp*)
2401 # DJGPP does not support shared libraries at all.
2403 ia64*-*-hpux*)
2404 # On IA64 HP-UX, PIC is the default but the pic flag
2405 # sets the default TLS model and affects inlining.
2406 PICFLAG=-fPIC
2408 loongarch*-*-*)
2409 PICFLAG=-fpic
2411 mips-sgi-irix6*)
2412 # PIC is the default.
2414 rs6000-ibm-aix* | powerpc-ibm-aix*)
2415 # All AIX code is PIC.
2418 # Some targets support both -fPIC and -fpic, but prefer the latter.
2419 # FIXME: Why?
2420 i[34567]86-*-* | x86_64-*-*)
2421 PICFLAG=-fpic
2423 # FIXME: Override -fPIC default in libgcc only?
2424 sh-*-linux* | sh[2346lbe]*-*-linux*)
2425 PICFLAG=-fpic
2427 sh*-*-netbsd*)
2428 PICFLAG=-fpic
2430 # Default to -fPIC unless specified otherwise.
2432 PICFLAG=-fPIC
2434 esac
2436 # If the user explicitly uses -fpic/-fPIC, keep that.
2437 case "${CFLAGS}" in
2438 *-fpic*)
2439 PICFLAG=-fpic
2441 *-fPIC*)
2442 PICFLAG=-fPIC
2444 esac
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2449 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2450 # Check whether --enable-version-specific-runtime-libs was given.
2451 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2452 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2453 yes) version_specific_libs=yes ;;
2454 no) version_specific_libs=no ;;
2455 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2456 esac
2457 else
2458 version_specific_libs=no
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2462 $as_echo "$version_specific_libs" >&6; }
2465 # Check whether --with-toolexeclibdir was given.
2466 if test "${with_toolexeclibdir+set}" = set; then :
2467 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
2471 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
2473 esac
2474 else
2475 with_toolexeclibdir=no
2481 # Check whether --with-slibdir was given.
2482 if test "${with_slibdir+set}" = set; then :
2483 withval=$with_slibdir; slibdir="$with_slibdir"
2484 else
2485 if test "${version_specific_libs}" = yes; then
2486 slibdir='$(libsubdir)'
2487 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2488 case ${with_toolexeclibdir} in
2490 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2493 slibdir=${with_toolexeclibdir}
2495 esac
2496 else
2497 slibdir='$(libdir)'
2503 # Command-line options.
2504 # Very limited version of AC_MAINTAINER_MODE.
2505 # Check whether --enable-maintainer-mode was given.
2506 if test "${enable_maintainer_mode+set}" = set; then :
2507 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2508 yes) MAINT='' ;;
2509 no) MAINT='#' ;;
2510 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2511 esac
2512 maintainer_mode=${enableval}
2513 else
2514 MAINT='#'
2518 # Find a good install program. We prefer a C program (faster),
2519 # so one script is as good as another. But avoid the broken or
2520 # incompatible versions:
2521 # SysV /etc/install, /usr/sbin/install
2522 # SunOS /usr/etc/install
2523 # IRIX /sbin/install
2524 # AIX /bin/install
2525 # AmigaOS /C/install, which installs bootblocks on floppy discs
2526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2529 # OS/2's system install, which has a completely different semantic
2530 # ./install, which can be erroneously created by make from ./install.sh.
2531 # Reject install programs that cannot install multiple files.
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2533 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2534 if test -z "$INSTALL"; then
2535 if ${ac_cv_path_install+:} false; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 # Account for people who put trailing slashes in PATH elements.
2544 case $as_dir/ in #((
2545 ./ | .// | /[cC]/* | \
2546 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2547 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2548 /usr/ucb/* ) ;;
2550 # OSF1 and SCO ODT 3.0 have their own names for install.
2551 # Don't use installbsd from OSF since it installs stuff as root
2552 # by default.
2553 for ac_prog in ginstall scoinst install; do
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2556 if test $ac_prog = install &&
2557 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2558 # AIX install. It has an incompatible calling convention.
2560 elif test $ac_prog = install &&
2561 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562 # program-specific install script used by HP pwplus--don't use.
2564 else
2565 rm -rf conftest.one conftest.two conftest.dir
2566 echo one > conftest.one
2567 echo two > conftest.two
2568 mkdir conftest.dir
2569 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2570 test -s conftest.one && test -s conftest.two &&
2571 test -s conftest.dir/conftest.one &&
2572 test -s conftest.dir/conftest.two
2573 then
2574 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2575 break 3
2579 done
2580 done
2582 esac
2584 done
2585 IFS=$as_save_IFS
2587 rm -rf conftest.one conftest.two conftest.dir
2590 if test "${ac_cv_path_install+set}" = set; then
2591 INSTALL=$ac_cv_path_install
2592 else
2593 # As a last resort, use the slow shell script. Don't cache a
2594 # value for INSTALL within a source directory, because that will
2595 # break other packages using the cache if that directory is
2596 # removed, or if the value is a relative name.
2597 INSTALL=$ac_install_sh
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2601 $as_echo "$INSTALL" >&6; }
2603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2604 # It thinks the first close brace ends the variable substitution.
2605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2612 for ac_prog in gawk mawk nawk awk
2614 # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if ${ac_cv_prog_AWK+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 if test -n "$AWK"; then
2622 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631 ac_cv_prog_AWK="$ac_prog"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2635 done
2636 done
2637 IFS=$as_save_IFS
2641 AWK=$ac_cv_prog_AWK
2642 if test -n "$AWK"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2644 $as_echo "$AWK" >&6; }
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2651 test -n "$AWK" && break
2652 done
2654 # We need awk; bail out if it's missing.
2655 case ${AWK} in
2656 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
2657 esac
2660 case ${build_alias} in
2661 "") build_noncanonical=${build} ;;
2662 *) build_noncanonical=${build_alias} ;;
2663 esac
2665 case ${host_alias} in
2666 "") host_noncanonical=${build_noncanonical} ;;
2667 *) host_noncanonical=${host_alias} ;;
2668 esac
2672 case ${target_alias} in
2673 "") target_noncanonical=${host_noncanonical} ;;
2674 *) target_noncanonical=${target_alias} ;;
2675 esac
2680 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2681 # have matching libraries, they should use host libraries: Makefile.tpl
2682 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2683 # However, they still use the build modules, because the corresponding
2684 # host modules (e.g. bison) are only built for the host when bootstrap
2685 # finishes. So:
2686 # - build_subdir is where we find build modules, and never changes.
2687 # - build_libsubdir is where we find build libraries, and can be overridden.
2689 # Prefix 'build-' so this never conflicts with target_subdir.
2690 build_subdir="build-${build_noncanonical}"
2692 # Check whether --with-build-libsubdir was given.
2693 if test "${with_build_libsubdir+set}" = set; then :
2694 withval=$with_build_libsubdir; build_libsubdir="$withval"
2695 else
2696 build_libsubdir="$build_subdir"
2699 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2700 if ( test $srcdir = . && test -d gcc ) \
2701 || test -d $srcdir/../host-${host_noncanonical}; then
2702 host_subdir="host-${host_noncanonical}"
2703 else
2704 host_subdir=.
2706 # No prefix.
2707 target_subdir=${target_noncanonical}
2710 # Check whether --enable-gcov was given.
2711 if test "${enable_gcov+set}" = set; then :
2712 enableval=$enable_gcov;
2713 else
2714 case $target in
2715 bpf-*-*)
2716 enable_gcov=no
2719 enable_gcov=yes
2721 esac
2726 # Calculate toolexeclibdir
2727 # Also toolexecdir, though it's only used in toolexeclibdir
2728 case ${version_specific_libs} in
2729 yes)
2730 # Need the gcc compiler version to know where to install libraries
2731 # and header files if --enable-version-specific-runtime-libs option
2732 # is selected.
2733 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2734 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2737 if test -n "$with_cross_host" &&
2738 test x"$with_cross_host" != x"no"; then
2739 # Install a library built with a cross compiler in tooldir, not libdir.
2740 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2741 case ${with_toolexeclibdir} in
2743 toolexeclibdir='$(toolexecdir)/lib'
2746 toolexeclibdir=${with_toolexeclibdir}
2748 esac
2749 else
2750 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2751 toolexeclibdir='$(libdir)'
2753 multi_os_directory=`$CC -print-multi-os-directory`
2754 case $multi_os_directory in
2755 .) ;; # Avoid trailing /.
2756 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2757 esac
2759 esac
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}ar; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_AR+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$AR"; then
2772 ac_cv_prog_AR="$AR" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_AR="${ac_tool_prefix}ar"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2785 done
2786 done
2787 IFS=$as_save_IFS
2791 AR=$ac_cv_prog_AR
2792 if test -n "$AR"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2794 $as_echo "$AR" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2802 if test -z "$ac_cv_prog_AR"; then
2803 ac_ct_AR=$AR
2804 # Extract the first word of "ar", so it can be a program name with args.
2805 set dummy ar; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_ac_ct_AR+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$ac_ct_AR"; then
2812 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_AR="ar"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2827 IFS=$as_save_IFS
2831 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2832 if test -n "$ac_ct_AR"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2834 $as_echo "$ac_ct_AR" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2840 if test "x$ac_ct_AR" = x; then
2841 AR=""
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2848 esac
2849 AR=$ac_ct_AR
2851 else
2852 AR="$ac_cv_prog_AR"
2855 if test -n "$ac_tool_prefix"; then
2856 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2857 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_LIPO+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test -n "$LIPO"; then
2864 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2879 IFS=$as_save_IFS
2883 LIPO=$ac_cv_prog_LIPO
2884 if test -n "$LIPO"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2886 $as_echo "$LIPO" >&6; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2894 if test -z "$ac_cv_prog_LIPO"; then
2895 ac_ct_LIPO=$LIPO
2896 # Extract the first word of "lipo", so it can be a program name with args.
2897 set dummy lipo; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$ac_ct_LIPO"; then
2904 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_ac_ct_LIPO="lipo"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2919 IFS=$as_save_IFS
2923 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2924 if test -n "$ac_ct_LIPO"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2926 $as_echo "$ac_ct_LIPO" >&6; }
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2932 if test "x$ac_ct_LIPO" = x; then
2933 LIPO=":"
2934 else
2935 case $cross_compiling:$ac_tool_warned in
2936 yes:)
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2939 ac_tool_warned=yes ;;
2940 esac
2941 LIPO=$ac_ct_LIPO
2943 else
2944 LIPO="$ac_cv_prog_LIPO"
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}nm; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_NM+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$NM"; then
2956 ac_cv_prog_NM="$NM" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_NM="${ac_tool_prefix}nm"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2969 done
2970 done
2971 IFS=$as_save_IFS
2975 NM=$ac_cv_prog_NM
2976 if test -n "$NM"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2978 $as_echo "$NM" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2986 if test -z "$ac_cv_prog_NM"; then
2987 ac_ct_NM=$NM
2988 # Extract the first word of "nm", so it can be a program name with args.
2989 set dummy nm; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_ac_ct_NM+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$ac_ct_NM"; then
2996 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_NM="nm"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3009 done
3010 done
3011 IFS=$as_save_IFS
3015 ac_ct_NM=$ac_cv_prog_ac_ct_NM
3016 if test -n "$ac_ct_NM"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
3018 $as_echo "$ac_ct_NM" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3024 if test "x$ac_ct_NM" = x; then
3025 NM=""
3026 else
3027 case $cross_compiling:$ac_tool_warned in
3028 yes:)
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031 ac_tool_warned=yes ;;
3032 esac
3033 NM=$ac_ct_NM
3035 else
3036 NM="$ac_cv_prog_NM"
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_RANLIB+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$RANLIB"; then
3048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3061 done
3062 done
3063 IFS=$as_save_IFS
3067 RANLIB=$ac_cv_prog_RANLIB
3068 if test -n "$RANLIB"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3070 $as_echo "$RANLIB" >&6; }
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3078 if test -z "$ac_cv_prog_RANLIB"; then
3079 ac_ct_RANLIB=$RANLIB
3080 # Extract the first word of "ranlib", so it can be a program name with args.
3081 set dummy ranlib; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 if test -n "$ac_ct_RANLIB"; then
3088 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_ac_ct_RANLIB="ranlib"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3101 done
3102 done
3103 IFS=$as_save_IFS
3107 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3108 if test -n "$ac_ct_RANLIB"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3110 $as_echo "$ac_ct_RANLIB" >&6; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3116 if test "x$ac_ct_RANLIB" = x; then
3117 RANLIB=":"
3118 else
3119 case $cross_compiling:$ac_tool_warned in
3120 yes:)
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123 ac_tool_warned=yes ;;
3124 esac
3125 RANLIB=$ac_ct_RANLIB
3127 else
3128 RANLIB="$ac_cv_prog_RANLIB"
3131 if test -n "$ac_tool_prefix"; then
3132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3133 set dummy ${ac_tool_prefix}strip; 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 ${ac_cv_prog_STRIP+:} false; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 if test -n "$STRIP"; then
3140 ac_cv_prog_STRIP="$STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
3160 if test -n "$STRIP"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3162 $as_echo "$STRIP" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3170 if test -z "$ac_cv_prog_STRIP"; then
3171 ac_ct_STRIP=$STRIP
3172 # Extract the first word of "strip", so it can be a program name with args.
3173 set dummy strip; 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 ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$ac_ct_STRIP"; then
3180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_ac_ct_STRIP="strip"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3193 done
3194 done
3195 IFS=$as_save_IFS
3199 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3200 if test -n "$ac_ct_STRIP"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3202 $as_echo "$ac_ct_STRIP" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3208 if test "x$ac_ct_STRIP" = x; then
3209 STRIP=":"
3210 else
3211 case $cross_compiling:$ac_tool_warned in
3212 yes:)
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215 ac_tool_warned=yes ;;
3216 esac
3217 STRIP=$ac_ct_STRIP
3219 else
3220 STRIP="$ac_cv_prog_STRIP"
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3224 $as_echo_n "checking whether ln -s works... " >&6; }
3225 LN_S=$as_ln_s
3226 if test "$LN_S" = "ln -s"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3231 $as_echo "no, using $LN_S" >&6; }
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3263 done
3264 done
3265 IFS=$as_save_IFS
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3280 if test -z "$ac_cv_prog_CC"; then
3281 ac_ct_CC=$CC
3282 # Extract the first word of "gcc", so it can be a program name with args.
3283 set dummy gcc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_ac_ct_CC="gcc"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3303 done
3304 done
3305 IFS=$as_save_IFS
3309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3312 $as_echo "$ac_ct_CC" >&6; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3318 if test "x$ac_ct_CC" = x; then
3319 CC=""
3320 else
3321 case $cross_compiling:$ac_tool_warned in
3322 yes:)
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3325 ac_tool_warned=yes ;;
3326 esac
3327 CC=$ac_ct_CC
3329 else
3330 CC="$ac_cv_prog_CC"
3333 if test -z "$CC"; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}cc; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_CC+:} false; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_CC="${ac_tool_prefix}cc"
3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3356 done
3357 done
3358 IFS=$as_save_IFS
3362 CC=$ac_cv_prog_CC
3363 if test -n "$CC"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3374 if test -z "$CC"; then
3375 # Extract the first word of "cc", so it can be a program name with args.
3376 set dummy cc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 ac_prog_rejected=no
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3394 ac_prog_rejected=yes
3395 continue
3397 ac_cv_prog_CC="cc"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3401 done
3402 done
3403 IFS=$as_save_IFS
3405 if test $ac_prog_rejected = yes; then
3406 # We found a bogon in the path, so make sure we never use it.
3407 set dummy $ac_cv_prog_CC
3408 shift
3409 if test $# != 0; then
3410 # We chose a different compiler from the bogus one.
3411 # However, it has the same basename, so the bogon will be chosen
3412 # first if we set CC to just the basename; use the full file name.
3413 shift
3414 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3419 CC=$ac_cv_prog_CC
3420 if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3430 if test -z "$CC"; then
3431 if test -n "$ac_tool_prefix"; then
3432 for ac_prog in cl.exe
3434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_CC+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3455 done
3456 done
3457 IFS=$as_save_IFS
3461 CC=$ac_cv_prog_CC
3462 if test -n "$CC"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464 $as_echo "$CC" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3471 test -n "$CC" && break
3472 done
3474 if test -z "$CC"; then
3475 ac_ct_CC=$CC
3476 for ac_prog in cl.exe
3478 # Extract the first word of "$ac_prog", so it can be a program name with args.
3479 set dummy $ac_prog; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$ac_ct_CC"; then
3486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_ac_ct_CC="$ac_prog"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3499 done
3500 done
3501 IFS=$as_save_IFS
3505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3506 if test -n "$ac_ct_CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3508 $as_echo "$ac_ct_CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3515 test -n "$ac_ct_CC" && break
3516 done
3518 if test "x$ac_ct_CC" = x; then
3519 CC=""
3520 else
3521 case $cross_compiling:$ac_tool_warned in
3522 yes:)
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525 ac_tool_warned=yes ;;
3526 esac
3527 CC=$ac_ct_CC
3534 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "no acceptable C compiler found in \$PATH
3537 See \`config.log' for more details" "$LINENO" 5; }
3539 # Provide some information about the compiler.
3540 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3541 set X $ac_compile
3542 ac_compiler=$2
3543 for ac_option in --version -v -V -qversion; do
3544 { { ac_try="$ac_compiler $ac_option >&5"
3545 case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548 esac
3549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3552 ac_status=$?
3553 if test -s conftest.err; then
3554 sed '10a\
3555 ... rest of stderr output deleted ...
3556 10q' conftest.err >conftest.er1
3557 cat conftest.er1 >&5
3559 rm -f conftest.er1 conftest.err
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }
3562 done
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #include <stdio.h>
3568 main ()
3570 printf ("hello world\n");
3572 return 0;
3574 _ACEOF
3575 # FIXME: Cleanup?
3576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3577 (eval $ac_link) 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 gcc_no_link=no
3582 else
3583 gcc_no_link=yes
3585 if test x$gcc_no_link = xyes; then
3586 # Setting cross_compile will disable run tests; it will
3587 # also disable AC_CHECK_FILE but that's generally
3588 # correct if we can't link.
3589 cross_compiling=yes
3590 EXEEXT=
3591 else
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3596 main ()
3600 return 0;
3602 _ACEOF
3603 ac_clean_files_save=$ac_clean_files
3604 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3605 # Try to create an executable without -o first, disregard a.out.
3606 # It will help us diagnose broken compilers, and finding out an intuition
3607 # of exeext.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3609 $as_echo_n "checking whether the C compiler works... " >&6; }
3610 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3612 # The possible output files:
3613 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3615 ac_rmfiles=
3616 for ac_file in $ac_files
3618 case $ac_file in
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3620 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3621 esac
3622 done
3623 rm -f $ac_rmfiles
3625 if { { ac_try="$ac_link_default"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_link_default") 2>&5
3633 ac_status=$?
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }; then :
3636 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3637 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3638 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3639 # so that the user can short-circuit this test for compilers unknown to
3640 # Autoconf.
3641 for ac_file in $ac_files ''
3643 test -f "$ac_file" || continue
3644 case $ac_file in
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3647 [ab].out )
3648 # We found the default executable, but exeext='' is most
3649 # certainly right.
3650 break;;
3651 *.* )
3652 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3653 then :; else
3654 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656 # We set ac_cv_exeext here because the later test for it is not
3657 # safe: cross compilers may not add the suffix if given an `-o'
3658 # argument, so we may need to know it at that point already.
3659 # Even if this section looks crufty: it has the advantage of
3660 # actually working.
3661 break;;
3663 break;;
3664 esac
3665 done
3666 test "$ac_cv_exeext" = no && ac_cv_exeext=
3668 else
3669 ac_file=''
3671 if test -z "$ac_file"; then :
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3674 $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error 77 "C compiler cannot create executables
3680 See \`config.log' for more details" "$LINENO" 5; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3683 $as_echo "yes" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3686 $as_echo_n "checking for C compiler default output file name... " >&6; }
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3688 $as_echo "$ac_file" >&6; }
3689 ac_exeext=$ac_cv_exeext
3691 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3692 ac_clean_files=$ac_clean_files_save
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3694 $as_echo_n "checking for suffix of executables... " >&6; }
3695 if { { ac_try="$ac_link"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701 $as_echo "$ac_try_echo"; } >&5
3702 (eval "$ac_link") 2>&5
3703 ac_status=$?
3704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705 test $ac_status = 0; }; then :
3706 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3707 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3708 # work properly (i.e., refer to `conftest.exe'), while it won't with
3709 # `rm'.
3710 for ac_file in conftest.exe conftest conftest.*; do
3711 test -f "$ac_file" || continue
3712 case $ac_file in
3713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3714 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3715 break;;
3716 * ) break;;
3717 esac
3718 done
3719 else
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3723 See \`config.log' for more details" "$LINENO" 5; }
3725 rm -f conftest conftest$ac_cv_exeext
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3727 $as_echo "$ac_cv_exeext" >&6; }
3729 rm -f conftest.$ac_ext
3730 EXEEXT=$ac_cv_exeext
3731 ac_exeext=$EXEEXT
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 #include <stdio.h>
3736 main ()
3738 FILE *f = fopen ("conftest.out", "w");
3739 return ferror (f) || fclose (f) != 0;
3742 return 0;
3744 _ACEOF
3745 ac_clean_files="$ac_clean_files conftest.out"
3746 # Check that the compiler produces executables we can run. If not, either
3747 # the compiler is broken, or we cross compile.
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3749 $as_echo_n "checking whether we are cross compiling... " >&6; }
3750 if test "$cross_compiling" != yes; then
3751 { { ac_try="$ac_link"
3752 case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755 esac
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758 (eval "$ac_link") 2>&5
3759 ac_status=$?
3760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }
3762 if { ac_try='./conftest$ac_cv_exeext'
3763 { { case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768 $as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_try") 2>&5
3770 ac_status=$?
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }; }; then
3773 cross_compiling=no
3774 else
3775 if test "$cross_compiling" = maybe; then
3776 cross_compiling=yes
3777 else
3778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780 as_fn_error $? "cannot run C compiled programs.
3781 If you meant to cross compile, use \`--host'.
3782 See \`config.log' for more details" "$LINENO" 5; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3787 $as_echo "$cross_compiling" >&6; }
3789 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3790 ac_clean_files=$ac_clean_files_save
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3793 $as_echo_n "checking for suffix of object files... " >&6; }
3794 if ${ac_cv_objext+:} false; then :
3795 $as_echo_n "(cached) " >&6
3796 else
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3801 main ()
3805 return 0;
3807 _ACEOF
3808 rm -f conftest.o conftest.obj
3809 if { { ac_try="$ac_compile"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_compile") 2>&5
3817 ac_status=$?
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 for ac_file in conftest.o conftest.obj conftest.*; do
3821 test -f "$ac_file" || continue;
3822 case $ac_file in
3823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3824 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3825 break;;
3826 esac
3827 done
3828 else
3829 $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error $? "cannot compute suffix of object files: cannot compile
3835 See \`config.log' for more details" "$LINENO" 5; }
3837 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3840 $as_echo "$ac_cv_objext" >&6; }
3841 OBJEXT=$ac_cv_objext
3842 ac_objext=$OBJEXT
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3844 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3845 if ${ac_cv_c_compiler_gnu+:} false; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3852 main ()
3854 #ifndef __GNUC__
3855 choke me
3856 #endif
3859 return 0;
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_compiler_gnu=yes
3864 else
3865 ac_compiler_gnu=no
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3872 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3873 if test $ac_compiler_gnu = yes; then
3874 GCC=yes
3875 else
3876 GCC=
3878 ac_test_CFLAGS=${CFLAGS+set}
3879 ac_save_CFLAGS=$CFLAGS
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3881 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3882 if ${ac_cv_prog_cc_g+:} false; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 ac_save_c_werror_flag=$ac_c_werror_flag
3886 ac_c_werror_flag=yes
3887 ac_cv_prog_cc_g=no
3888 CFLAGS="-g"
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3893 main ()
3897 return 0;
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901 ac_cv_prog_cc_g=yes
3902 else
3903 CFLAGS=""
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3908 main ()
3912 return 0;
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"; then :
3917 else
3918 ac_c_werror_flag=$ac_save_c_werror_flag
3919 CFLAGS="-g"
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3924 main ()
3928 return 0;
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_g=yes
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 ac_c_werror_flag=$ac_save_c_werror_flag
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3942 $as_echo "$ac_cv_prog_cc_g" >&6; }
3943 if test "$ac_test_CFLAGS" = set; then
3944 CFLAGS=$ac_save_CFLAGS
3945 elif test $ac_cv_prog_cc_g = yes; then
3946 if test "$GCC" = yes; then
3947 CFLAGS="-g -O2"
3948 else
3949 CFLAGS="-g"
3951 else
3952 if test "$GCC" = yes; then
3953 CFLAGS="-O2"
3954 else
3955 CFLAGS=
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3959 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3960 if ${ac_cv_prog_cc_c89+:} false; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 ac_cv_prog_cc_c89=no
3964 ac_save_CC=$CC
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967 #include <stdarg.h>
3968 #include <stdio.h>
3969 struct stat;
3970 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3971 struct buf { int x; };
3972 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3973 static char *e (p, i)
3974 char **p;
3975 int i;
3977 return p[i];
3979 static char *f (char * (*g) (char **, int), char **p, ...)
3981 char *s;
3982 va_list v;
3983 va_start (v,p);
3984 s = g (p, va_arg (v,int));
3985 va_end (v);
3986 return s;
3989 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3990 function prototypes and stuff, but not '\xHH' hex character constants.
3991 These don't provoke an error unfortunately, instead are silently treated
3992 as 'x'. The following induces an error, until -std is added to get
3993 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3994 array size at least. It's necessary to write '\x00'==0 to get something
3995 that's true only with -std. */
3996 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3998 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3999 inside strings and character constants. */
4000 #define FOO(x) 'x'
4001 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4003 int test (int i, double x);
4004 struct s1 {int (*f) (int a);};
4005 struct s2 {int (*f) (double a);};
4006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4007 int argc;
4008 char **argv;
4010 main ()
4012 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4014 return 0;
4016 _ACEOF
4017 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4018 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4020 CC="$ac_save_CC $ac_arg"
4021 if ac_fn_c_try_compile "$LINENO"; then :
4022 ac_cv_prog_cc_c89=$ac_arg
4024 rm -f core conftest.err conftest.$ac_objext
4025 test "x$ac_cv_prog_cc_c89" != "xno" && break
4026 done
4027 rm -f conftest.$ac_ext
4028 CC=$ac_save_CC
4031 # AC_CACHE_VAL
4032 case "x$ac_cv_prog_cc_c89" in
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4035 $as_echo "none needed" >&6; } ;;
4036 xno)
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4038 $as_echo "unsupported" >&6; } ;;
4040 CC="$CC $ac_cv_prog_cc_c89"
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4042 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4043 esac
4044 if test "x$ac_cv_prog_cc_c89" != xno; then :
4048 ac_ext=c
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054 ac_ext=c
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4060 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4061 # On Suns, sometimes $CPP names a directory.
4062 if test -n "$CPP" && test -d "$CPP"; then
4063 CPP=
4065 if test -z "$CPP"; then
4066 if ${ac_cv_prog_CPP+:} false; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 # Double quotes because CPP needs to be expanded
4070 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4072 ac_preproc_ok=false
4073 for ac_c_preproc_warn_flag in '' yes
4075 # Use a header file that comes with gcc, so configuring glibc
4076 # with a fresh cross-compiler works.
4077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4078 # <limits.h> exists even on freestanding compilers.
4079 # On the NeXT, cc -E runs the code through the compiler's parser,
4080 # not just through cpp. "Syntax error" is here to catch this case.
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083 #ifdef __STDC__
4084 # include <limits.h>
4085 #else
4086 # include <assert.h>
4087 #endif
4088 Syntax error
4089 _ACEOF
4090 if ac_fn_c_try_cpp "$LINENO"; then :
4092 else
4093 # Broken: fails on valid input.
4094 continue
4096 rm -f conftest.err conftest.i conftest.$ac_ext
4098 # OK, works on sane cases. Now check whether nonexistent headers
4099 # can be detected and how.
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102 #include <ac_nonexistent.h>
4103 _ACEOF
4104 if ac_fn_c_try_cpp "$LINENO"; then :
4105 # Broken: success on invalid input.
4106 continue
4107 else
4108 # Passes both tests.
4109 ac_preproc_ok=:
4110 break
4112 rm -f conftest.err conftest.i conftest.$ac_ext
4114 done
4115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116 rm -f conftest.i conftest.err conftest.$ac_ext
4117 if $ac_preproc_ok; then :
4118 break
4121 done
4122 ac_cv_prog_CPP=$CPP
4125 CPP=$ac_cv_prog_CPP
4126 else
4127 ac_cv_prog_CPP=$CPP
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4130 $as_echo "$CPP" >&6; }
4131 ac_preproc_ok=false
4132 for ac_c_preproc_warn_flag in '' yes
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4147 Syntax error
4148 _ACEOF
4149 if ac_fn_c_try_cpp "$LINENO"; then :
4151 else
4152 # Broken: fails on valid input.
4153 continue
4155 rm -f conftest.err conftest.i conftest.$ac_ext
4157 # OK, works on sane cases. Now check whether nonexistent headers
4158 # can be detected and how.
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #include <ac_nonexistent.h>
4162 _ACEOF
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4164 # Broken: success on invalid input.
4165 continue
4166 else
4167 # Passes both tests.
4168 ac_preproc_ok=:
4169 break
4171 rm -f conftest.err conftest.i conftest.$ac_ext
4173 done
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175 rm -f conftest.i conftest.err conftest.$ac_ext
4176 if $ac_preproc_ok; then :
4178 else
4179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4181 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4182 See \`config.log' for more details" "$LINENO" 5; }
4185 ac_ext=c
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 ac_c_preproc_warn_flag=yes
4195 # Check whether --enable-largefile was given.
4196 if test "${enable_largefile+set}" = set; then :
4197 enableval=$enable_largefile;
4200 if test "$enable_largefile" != no; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4203 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4204 if ${ac_cv_sys_largefile_CC+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 ac_cv_sys_largefile_CC=no
4208 if test "$GCC" != yes; then
4209 ac_save_CC=$CC
4210 while :; do
4211 # IRIX 6.2 and later do not support large files by default,
4212 # so use the C compiler's -n32 option if that helps.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <sys/types.h>
4216 /* Check that off_t can represent 2**63 - 1 correctly.
4217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4218 since some C++ compilers masquerading as C compilers
4219 incorrectly reject 9223372036854775807. */
4220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4222 && LARGE_OFF_T % 2147483647 == 1)
4223 ? 1 : -1];
4225 main ()
4229 return 0;
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 break
4235 rm -f core conftest.err conftest.$ac_objext
4236 CC="$CC -n32"
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_sys_largefile_CC=' -n32'; break
4240 rm -f core conftest.err conftest.$ac_objext
4241 break
4242 done
4243 CC=$ac_save_CC
4244 rm -f conftest.$ac_ext
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4248 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4249 if test "$ac_cv_sys_largefile_CC" != no; then
4250 CC=$CC$ac_cv_sys_largefile_CC
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4254 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4255 if ${ac_cv_sys_file_offset_bits+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 while :; do
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #include <sys/types.h>
4262 /* Check that off_t can represent 2**63 - 1 correctly.
4263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4264 since some C++ compilers masquerading as C compilers
4265 incorrectly reject 9223372036854775807. */
4266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4268 && LARGE_OFF_T % 2147483647 == 1)
4269 ? 1 : -1];
4271 main ()
4275 return 0;
4277 _ACEOF
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_sys_file_offset_bits=no; break
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 #define _FILE_OFFSET_BITS 64
4285 #include <sys/types.h>
4286 /* Check that off_t can represent 2**63 - 1 correctly.
4287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4288 since some C++ compilers masquerading as C compilers
4289 incorrectly reject 9223372036854775807. */
4290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4292 && LARGE_OFF_T % 2147483647 == 1)
4293 ? 1 : -1];
4295 main ()
4299 return 0;
4301 _ACEOF
4302 if ac_fn_c_try_compile "$LINENO"; then :
4303 ac_cv_sys_file_offset_bits=64; break
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 ac_cv_sys_file_offset_bits=unknown
4307 break
4308 done
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4311 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4312 case $ac_cv_sys_file_offset_bits in #(
4313 no | unknown) ;;
4315 cat >>confdefs.h <<_ACEOF
4316 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4317 _ACEOF
4319 esac
4320 rm -rf conftest*
4321 if test $ac_cv_sys_file_offset_bits = unknown; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4323 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4324 if ${ac_cv_sys_large_files+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 while :; do
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330 #include <sys/types.h>
4331 /* Check that off_t can represent 2**63 - 1 correctly.
4332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4333 since some C++ compilers masquerading as C compilers
4334 incorrectly reject 9223372036854775807. */
4335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4337 && LARGE_OFF_T % 2147483647 == 1)
4338 ? 1 : -1];
4340 main ()
4344 return 0;
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_cv_sys_large_files=no; break
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353 #define _LARGE_FILES 1
4354 #include <sys/types.h>
4355 /* Check that off_t can represent 2**63 - 1 correctly.
4356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4357 since some C++ compilers masquerading as C compilers
4358 incorrectly reject 9223372036854775807. */
4359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4361 && LARGE_OFF_T % 2147483647 == 1)
4362 ? 1 : -1];
4364 main ()
4368 return 0;
4370 _ACEOF
4371 if ac_fn_c_try_compile "$LINENO"; then :
4372 ac_cv_sys_large_files=1; break
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 ac_cv_sys_large_files=unknown
4376 break
4377 done
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4380 $as_echo "$ac_cv_sys_large_files" >&6; }
4381 case $ac_cv_sys_large_files in #(
4382 no | unknown) ;;
4384 cat >>confdefs.h <<_ACEOF
4385 #define _LARGE_FILES $ac_cv_sys_large_files
4386 _ACEOF
4388 esac
4389 rm -rf conftest*
4397 # The cast to long int works around a bug in the HP C Compiler
4398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4400 # This bug is HP SR number 8606223364.
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4402 $as_echo_n "checking size of double... " >&6; }
4403 if ${ac_cv_sizeof_double+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4408 else
4409 if test "$ac_cv_type_double" = yes; then
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 as_fn_error 77 "cannot compute sizeof (double)
4413 See \`config.log' for more details" "$LINENO" 5; }
4414 else
4415 ac_cv_sizeof_double=0
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4421 $as_echo "$ac_cv_sizeof_double" >&6; }
4425 cat >>confdefs.h <<_ACEOF
4426 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4427 _ACEOF
4430 # The cast to long int works around a bug in the HP C Compiler
4431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4432 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4433 # This bug is HP SR number 8606223364.
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4435 $as_echo_n "checking size of long double... " >&6; }
4436 if ${ac_cv_sizeof_long_double+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4441 else
4442 if test "$ac_cv_type_long_double" = yes; then
4443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4445 as_fn_error 77 "cannot compute sizeof (long double)
4446 See \`config.log' for more details" "$LINENO" 5; }
4447 else
4448 ac_cv_sizeof_long_double=0
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4454 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4458 cat >>confdefs.h <<_ACEOF
4459 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4460 _ACEOF
4463 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4464 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4469 for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
4470 unistd.h sys/stat.h sys/types.h \
4471 string.h strings.h memory.h sys/auxv.h sys/mman.h
4472 do :
4473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4474 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
4475 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4476 cat >>confdefs.h <<_ACEOF
4477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4478 _ACEOF
4481 done
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4484 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4485 if ${ac_cv_path_GREP+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -z "$GREP"; then
4489 ac_path_GREP_found=false
4490 # Loop through the user's path and test for each of PROGNAME-LIST
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_prog in grep ggrep; do
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4499 as_fn_executable_p "$ac_path_GREP" || continue
4500 # Check for GNU ac_path_GREP and select it if it is found.
4501 # Check for GNU $ac_path_GREP
4502 case `"$ac_path_GREP" --version 2>&1` in
4503 *GNU*)
4504 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4506 ac_count=0
4507 $as_echo_n 0123456789 >"conftest.in"
4508 while :
4510 cat "conftest.in" "conftest.in" >"conftest.tmp"
4511 mv "conftest.tmp" "conftest.in"
4512 cp "conftest.in" "conftest.nl"
4513 $as_echo 'GREP' >> "conftest.nl"
4514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4516 as_fn_arith $ac_count + 1 && ac_count=$as_val
4517 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4518 # Best one so far, save it but keep looking for a better one
4519 ac_cv_path_GREP="$ac_path_GREP"
4520 ac_path_GREP_max=$ac_count
4522 # 10*(2^10) chars as input seems more than enough
4523 test $ac_count -gt 10 && break
4524 done
4525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526 esac
4528 $ac_path_GREP_found && break 3
4529 done
4530 done
4531 done
4532 IFS=$as_save_IFS
4533 if test -z "$ac_cv_path_GREP"; then
4534 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536 else
4537 ac_cv_path_GREP=$GREP
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4542 $as_echo "$ac_cv_path_GREP" >&6; }
4543 GREP="$ac_cv_path_GREP"
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4547 $as_echo_n "checking for egrep... " >&6; }
4548 if ${ac_cv_path_EGREP+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4552 then ac_cv_path_EGREP="$GREP -E"
4553 else
4554 if test -z "$EGREP"; then
4555 ac_path_EGREP_found=false
4556 # Loop through the user's path and test for each of PROGNAME-LIST
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_prog in egrep; do
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4565 as_fn_executable_p "$ac_path_EGREP" || continue
4566 # Check for GNU ac_path_EGREP and select it if it is found.
4567 # Check for GNU $ac_path_EGREP
4568 case `"$ac_path_EGREP" --version 2>&1` in
4569 *GNU*)
4570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4572 ac_count=0
4573 $as_echo_n 0123456789 >"conftest.in"
4574 while :
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 $as_echo 'EGREP' >> "conftest.nl"
4580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4582 as_fn_arith $ac_count + 1 && ac_count=$as_val
4583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_EGREP="$ac_path_EGREP"
4586 ac_path_EGREP_max=$ac_count
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4590 done
4591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592 esac
4594 $ac_path_EGREP_found && break 3
4595 done
4596 done
4597 done
4598 IFS=$as_save_IFS
4599 if test -z "$ac_cv_path_EGREP"; then
4600 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4602 else
4603 ac_cv_path_EGREP=$EGREP
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4609 $as_echo "$ac_cv_path_EGREP" >&6; }
4610 EGREP="$ac_cv_path_EGREP"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4614 $as_echo_n "checking for ANSI C header files... " >&6; }
4615 if ${ac_cv_header_stdc+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 #include <stdlib.h>
4621 #include <stdarg.h>
4622 #include <string.h>
4623 #include <float.h>
4626 main ()
4630 return 0;
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_cv_header_stdc=yes
4635 else
4636 ac_cv_header_stdc=no
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 if test $ac_cv_header_stdc = yes; then
4641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 #include <string.h>
4646 _ACEOF
4647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4648 $EGREP "memchr" >/dev/null 2>&1; then :
4650 else
4651 ac_cv_header_stdc=no
4653 rm -f conftest*
4657 if test $ac_cv_header_stdc = yes; then
4658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661 #include <stdlib.h>
4663 _ACEOF
4664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4665 $EGREP "free" >/dev/null 2>&1; then :
4667 else
4668 ac_cv_header_stdc=no
4670 rm -f conftest*
4674 if test $ac_cv_header_stdc = yes; then
4675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4676 if test "$cross_compiling" = yes; then :
4678 else
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 #include <ctype.h>
4682 #include <stdlib.h>
4683 #if ((' ' & 0x0FF) == 0x020)
4684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4686 #else
4687 # define ISLOWER(c) \
4688 (('a' <= (c) && (c) <= 'i') \
4689 || ('j' <= (c) && (c) <= 'r') \
4690 || ('s' <= (c) && (c) <= 'z'))
4691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4692 #endif
4694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4696 main ()
4698 int i;
4699 for (i = 0; i < 256; i++)
4700 if (XOR (islower (i), ISLOWER (i))
4701 || toupper (i) != TOUPPER (i))
4702 return 2;
4703 return 0;
4705 _ACEOF
4706 if ac_fn_c_try_run "$LINENO"; then :
4708 else
4709 ac_cv_header_stdc=no
4711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4712 conftest.$ac_objext conftest.beam conftest.$ac_ext
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4718 $as_echo "$ac_cv_header_stdc" >&6; }
4719 if test $ac_cv_header_stdc = yes; then
4721 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4726 # Check for decimal float support.
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4728 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4729 if ${libgcc_cv_dfp+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4735 #include <fenv.h>
4738 main ()
4741 _Decimal32 x;
4742 int fe_except =
4743 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4746 return 0;
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750 libgcc_cv_dfp=yes
4751 else
4752 libgcc_cv_dfp=no
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4757 $as_echo "$libgcc_cv_dfp" >&6; }
4758 decimal_float=$libgcc_cv_dfp
4762 # Check whether --enable-decimal-float was given.
4763 if test "${enable_decimal_float+set}" = set; then :
4764 enableval=$enable_decimal_float;
4765 case $enable_decimal_float in
4766 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4767 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4768 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4769 esac
4771 else
4773 case $host in
4774 aarch64* | \
4775 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4776 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
4777 i?86*-*-mingw* | x86_64*-*-mingw* | \
4778 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4779 enable_decimal_float=yes
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4783 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4784 enable_decimal_float=no
4786 esac
4791 # x86's use BID format instead of DPD
4792 case x$enable_decimal_float in
4793 xyes)
4794 case $host in
4795 aarch64* | i?86*-*-* | x86_64*-*-*)
4796 enable_decimal_float=bid
4799 enable_decimal_float=dpd
4801 esac
4802 default_decimal_float=$enable_decimal_float
4804 xno)
4805 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4806 # dependency on libdecnumber.
4807 default_decimal_float=dpd
4809 esac
4814 # Check for fixed-point support.
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4816 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4817 if ${libgcc_cv_fixed_point+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 _Sat _Fract x;
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 libgcc_cv_fixed_point=yes
4826 else
4827 libgcc_cv_fixed_point=no
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4832 $as_echo "$libgcc_cv_fixed_point" >&6; }
4833 fixed_point=$libgcc_cv_fixed_point
4836 # For platforms with the unwind ABI which includes an unwind library,
4837 # libunwind, we can choose to use the system libunwind.
4838 # config.gcc also contains tests of with_system_libunwind.
4841 # Check whether --with-system-libunwind was given.
4842 if test "${with_system_libunwind+set}" = set; then :
4843 withval=$with_system_libunwind;
4846 # If system-libunwind was not specifically set, pick a default setting.
4847 if test x$with_system_libunwind = x; then
4848 case ${target} in
4849 ia64-*-hpux*) with_system_libunwind=yes ;;
4850 *) with_system_libunwind=no ;;
4851 esac
4853 # Based on system-libunwind and target, do we have ipinfo?
4854 if test x$with_system_libunwind = xyes; then
4855 case ${target} in
4856 ia64-*-*) have_unwind_getipinfo=no ;;
4857 *) have_unwind_getipinfo=yes ;;
4858 esac
4859 else
4860 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4862 case ${target} in
4863 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4864 *) have_unwind_getipinfo=yes ;;
4865 esac
4869 if test x$have_unwind_getipinfo = xyes; then
4871 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4876 # Check if the compiler is configured for setjmp/longjmp exceptions.
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
4878 $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
4879 if ${ac_cv_sjlj_exceptions+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 #ifdef __USING_SJLJ_EXCEPTIONS__
4885 this will fail
4886 #endif
4888 main ()
4890 int i;
4892 return 0;
4894 _ACEOF
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 ac_cv_sjlj_exceptions=no
4897 else
4898 ac_cv_sjlj_exceptions=yes
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
4903 $as_echo "$ac_cv_sjlj_exceptions" >&6; }
4905 # Check whether --enable-cet was given.
4906 if test "${enable_cet+set}" = set; then :
4907 enableval=$enable_cet;
4908 case "$enableval" in
4909 yes|no|auto) ;;
4910 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4911 esac
4913 else
4914 enable_cet=auto
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4919 $as_echo_n "checking for CET support... " >&6; }
4921 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4922 case "$host" in
4923 i[34567]86-*-linux* | x86_64-*-linux*)
4924 case "$enable_cet" in
4925 auto)
4926 # Check if target supports multi-byte NOPs
4927 # and if compiler and assembler support CET insn.
4928 cet_save_CFLAGS="$CFLAGS"
4929 CFLAGS="$CFLAGS -fcf-protection"
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4934 main ()
4937 #if !defined(__SSE2__)
4938 #error target does not support multi-byte NOPs
4939 #else
4940 asm ("setssbsy");
4941 #endif
4944 return 0;
4946 _ACEOF
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948 enable_cet=yes
4949 else
4950 enable_cet=no
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 CFLAGS="$cet_save_CFLAGS"
4955 yes)
4956 # Check if assembler supports CET.
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4961 main ()
4963 asm ("setssbsy");
4965 return 0;
4967 _ACEOF
4968 if ac_fn_c_try_compile "$LINENO"; then :
4970 else
4971 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 esac
4978 enable_cet=no
4980 esac
4981 if test x$enable_cet = xyes; then
4982 CET_FLAGS="-fcf-protection -mshstk"
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4984 $as_echo "yes" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4992 # Check whether --enable-explicit-exception-frame-registration was given.
4993 if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4994 enableval=$enable_explicit_exception_frame_registration;
4995 force_explicit_eh_registry=
4996 if test "$enable_explicit_exception_frame_registration" = yes; then
4997 if test $ac_cv_sjlj_exceptions = yes; then
4998 as_fn_error $? "Can't --enable-explicit-exception-frame-registration
4999 with setjmp/longjmp exceptions" "$LINENO" 5
5001 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
5008 # Check whether --enable-tm-clone-registry was given.
5009 if test "${enable_tm_clone_registry+set}" = set; then :
5010 enableval=$enable_tm_clone_registry;
5011 use_tm_clone_registry=
5012 if test "$enable_tm_clone_registry" = no; then
5013 use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
5016 else
5018 use_tm_clone_registry=
5019 case $target in
5020 msp430*elfbare)
5021 use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
5023 esac
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5030 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5031 if ${acl_cv_prog_gnu_ld+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5035 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
5036 acl_cv_prog_gnu_ld=yes
5037 else
5038 acl_cv_prog_gnu_ld=no
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5042 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5043 with_gnu_ld=$acl_cv_prog_gnu_ld
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
5047 $as_echo_n "checking for thread model used by GCC... " >&6; }
5048 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
5050 $as_echo "$target_thread_file" >&6; }
5052 # Check for assembler CFI support.
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
5054 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
5055 if ${libgcc_cv_cfi+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 asm("\n\
5061 .text\n\
5062 .cfi_startproc\n\
5063 .cfi_personality 0, symbol\n\
5064 .cfi_endproc");
5065 _ACEOF
5066 if ac_fn_c_try_compile "$LINENO"; then :
5067 libgcc_cv_cfi=yes
5068 else
5069 libgcc_cv_cfi=no
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
5074 $as_echo "$libgcc_cv_cfi" >&6; }
5076 # Check 32bit or 64bit. In the case of MIPS, this really determines the
5077 # word size rather than the address size.
5078 cat > conftest.c <<EOF
5079 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
5080 || defined(__mips64) || defined(__loongarch64)
5081 host_address=64
5082 #else
5083 host_address=32
5084 #endif
5086 eval `${CC-cc} -E conftest.c | grep host_address=`
5087 rm -f conftest.c
5089 case ${host} in
5090 mips*-*-*)
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
5092 $as_echo_n "checking whether the target is hard-float... " >&6; }
5093 if ${libgcc_cv_mips_hard_float+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #ifndef __mips_hard_float
5099 #error FOO
5100 #endif
5102 _ACEOF
5103 if ac_fn_c_try_compile "$LINENO"; then :
5104 libgcc_cv_mips_hard_float=yes
5105 else
5106 libgcc_cv_mips_hard_float=no
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
5111 $as_echo "$libgcc_cv_mips_hard_float" >&6; }
5112 esac
5114 # Determine the version of glibc, if any, used on the target.
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
5116 $as_echo_n "checking for target glibc version... " >&6; }
5118 # Check whether --with-glibc-version was given.
5119 if test "${with_glibc_version+set}" = set; then :
5120 withval=$with_glibc_version;
5121 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
5122 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
5123 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
5124 else
5125 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
5127 else
5129 if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
5131 else
5132 glibc_version_major=0
5135 if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
5137 else
5138 glibc_version_minor=0
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
5144 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
5146 # Determine floating-point type for powerpc*-*-linux* or vxworks7*.
5147 # Single-precision-only FPRs are not a supported configuration for
5148 # this target, so are not allowed for in this test.
5149 case ${host} in
5150 powerpc*-*-linux* | powerpc*-*-vxworks7*)
5151 cat > conftest.c <<EOF
5152 #ifdef __powerpc64__
5153 ppc_fp_type=64
5154 #elif defined _SOFT_FLOAT
5155 ppc_fp_type=soft
5156 #elif defined _SOFT_DOUBLE
5157 ppc_fp_type=e500v1
5158 #elif defined __NO_FPRS__
5159 ppc_fp_type=e500v2
5160 #else
5161 ppc_fp_type=hard
5162 #endif
5164 eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
5165 rm -f conftest.c
5166 # glibc 2.19 and later provide all the soft-fp functions, with proper
5167 # interactions with <fenv.h> exception and rounding mode handling, so
5168 # make libgcc's versions into compat symbols if a recent enough glibc
5169 # version is being used.
5170 ppc_fp_compat=
5171 case ${ppc_fp_type} in
5172 soft|e500v1|e500v2)
5173 if test $glibc_version_major -gt 2 \
5174 || ( test $glibc_version_major -eq 2 \
5175 && test $glibc_version_minor -ge 19 ); then
5176 ppc_fp_compat="t-softfp-compat"
5179 esac
5181 esac
5183 case ${host} in
5184 # At present, we cannot turn -mfloat128 on via #pragma GCC target, so just
5185 # check if we have VSX (ISA 2.06) support to build the software libraries, and
5186 # whether the assembler can handle xsaddqp for hardware support. Also check if
5187 # a new glibc is being used so that __builtin_cpu_supports can be used.
5188 powerpc*-*-linux*)
5189 saved_CFLAGS="$CFLAGS"
5190 CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5
5192 $as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; }
5193 if ${libgcc_cv_powerpc_float128+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 vector double dadd (vector double a, vector double b) { return a + b; }
5199 _ACEOF
5200 if ac_fn_c_try_compile "$LINENO"; then :
5201 libgcc_cv_powerpc_float128=yes
5202 else
5203 libgcc_cv_powerpc_float128=no
5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5
5208 $as_echo "$libgcc_cv_powerpc_float128" >&6; }
5210 CFLAGS="$CFLAGS -mcpu=power9 -mfloat128-hardware"
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5
5212 $as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; }
5213 if ${libgcc_cv_powerpc_float128_hw+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5218 #include <sys/auxv.h>
5219 #ifndef AT_PLATFORM
5220 #error "AT_PLATFORM is not defined"
5221 #endif
5222 #ifndef __BUILTIN_CPU_SUPPORTS__
5223 #error "__builtin_cpu_supports is not available"
5224 #endif
5225 vector unsigned char add (vector unsigned char a, vector unsigned char b)
5227 vector unsigned char ret;
5228 __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b));
5229 return ret;
5231 void *add_resolver (void) { return (void *) add; }
5232 __float128 add_ifunc (__float128, __float128)
5233 __attribute__ ((__ifunc__ ("add_resolver")));
5234 _ACEOF
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 libgcc_cv_powerpc_float128_hw=yes
5237 else
5238 libgcc_cv_powerpc_float128_hw=no
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5
5243 $as_echo "$libgcc_cv_powerpc_float128_hw" >&6; }
5244 CFLAGS="$saved_CFLAGS"
5246 saved_CFLAGS="$CFLAGS"
5247 CFLAGS="$CFLAGS -mcpu=power10 -mfloat128-hardware"
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.1 to build hardware __float128 libraries" >&5
5249 $as_echo_n "checking for PowerPC ISA 3.1 to build hardware __float128 libraries... " >&6; }
5250 if ${libgcc_cv_powerpc_3_1_float128_hw+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 #include <sys/auxv.h>
5256 #ifndef AT_PLATFORM
5257 #error "AT_PLATFORM is not defined"
5258 #endif
5259 #ifndef __BUILTIN_CPU_SUPPORTS__
5260 #error "__builtin_cpu_supports is not available"
5261 #endif
5262 vector unsigned char conv (vector unsigned char qs)
5264 vector unsigned char ret;
5265 __asm__ ("xscvsqqp %0,%1" : "=v" (ret) : "v" (qs));
5266 return ret;
5268 void *conv_resolver (void) { return (void *) conv; }
5269 __float128 conv_ifunc (__float128)
5270 __attribute__ ((__ifunc__ ("conv_resolver")));
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273 libgcc_cv_powerpc_3_1_float128_hw=yes
5274 else
5275 libgcc_cv_powerpc_3_1_float128_hw=no
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_3_1_float128_hw" >&5
5280 $as_echo "$libgcc_cv_powerpc_3_1_float128_hw" >&6; }
5281 CFLAGS="$saved_CFLAGS"
5282 esac
5284 # Collect host-machine-specific information.
5285 . ${srcdir}/config.host
5287 # Used for constructing correct paths for offload compilers.
5288 accel_dir_suffix=
5289 real_host_noncanonical=${host_noncanonical}
5290 if test x"$enable_as_accelerator_for" != x; then
5291 accel_dir_suffix=/accel/${target_noncanonical}
5292 real_host_noncanonical=${enable_as_accelerator_for}
5297 if test x"$enable_offload_targets" != x; then
5298 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o"
5301 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
5302 # This is after config.host so we can augment tmake_file.
5303 # Link with -nostartfiles -nodefaultlibs since neither are present while
5304 # building libgcc.
5305 case ${host} in
5306 i?86-*-solaris2* | x86_64-*-solaris2*)
5307 cat > conftest.s <<EOF
5308 .section .eh_frame,"a",@unwind
5309 .zero 4
5310 .section .jcr,"aw",@progbits
5311 .zero 8
5313 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
5314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5318 test $ac_status = 0; }; }; then
5319 tmake_file="${tmake_file} i386/t-crtstuff"
5322 esac
5324 # Check if Solaris linker support v2 linker mapfile syntax.
5325 # Link with -nostartfiles -nodefaultlibs since neither are present while
5326 # building libgcc.
5327 case ${host} in
5328 *-*-solaris2*)
5329 solaris_ld_v2_maps=no
5330 echo 'int main(void) {return 0;}' > conftest.c
5331 echo '$mapfile_version 2' > conftest.map
5332 if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5'
5333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5337 test $ac_status = 0; }; }; then
5338 solaris_ld_v2_maps=yes
5341 esac
5344 # Check if xtensa target is configured for windowed ABI and thus needs to use
5345 # custom unwind code.
5346 # This is after config.host so we can augment tmake_file.
5347 case ${host} in
5348 xtensa*-*)
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #ifdef __XTENSA_CALL0_ABI__
5352 #error
5353 #endif
5355 _ACEOF
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357 tmake_file="${tmake_file} xtensa/t-windowed"
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 esac
5363 # Check for visibility support. This is after config.host so that
5364 # we can check for asm_hidden_op.
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
5366 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
5367 if ${libgcc_cv_hidden_visibility_attribute+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5371 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
5372 libgcc_cv_hidden_visibility_attribute=no
5373 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5378 test $ac_status = 0; }; }; then
5379 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
5380 libgcc_cv_hidden_visibility_attribute=yes
5383 rm -f conftest.*
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
5387 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
5389 if test $libgcc_cv_hidden_visibility_attribute = yes; then
5390 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
5392 cat >>confdefs.h <<_ACEOF
5393 #define AS_HIDDEN_DIRECTIVE $asm_hidden_op
5394 _ACEOF
5396 else
5397 vis_hide=
5401 # Check for .cfi_sections .debug_frame support.
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5
5403 $as_echo_n "checking for .cfi_sections .debug_frame... " >&6; }
5404 if ${libgcc_cv_cfi_sections_directive+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5408 echo 'int foo (int, char *);' > conftest.c
5409 echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c
5410 libgcc_cv_cfi_sections_directive=no
5411 if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5'
5412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5416 test $ac_status = 0; }; }; then
5417 if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then
5418 libgcc_cv_cfi_sections_directive=yes
5421 rm -f conftest.*
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5
5425 $as_echo "$libgcc_cv_cfi_sections_directive" >&6; }
5426 if test $libgcc_cv_cfi_sections_directive = yes; then
5428 $as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h
5432 # See if we have thread-local storage. We can only test assembler
5433 # since link-time and run-time tests require the newly built
5434 # gcc, which can't be used to build executable due to that libgcc
5435 # is yet to be built here.
5437 # Check whether --enable-tls was given.
5438 if test "${enable_tls+set}" = set; then :
5439 enableval=$enable_tls;
5440 case "$enableval" in
5441 yes|no) ;;
5442 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
5443 esac
5445 else
5446 enable_tls=yes
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
5451 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
5452 if ${gcc_cv_have_cc_tls+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5458 __thread int a; int b; int main() { return a = b; }
5459 _ACEOF
5460 if ac_fn_c_try_compile "$LINENO"; then :
5461 gcc_cv_have_cc_tls=yes
5462 else
5463 gcc_cv_have_cc_tls=no
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
5469 $as_echo "$gcc_cv_have_cc_tls" >&6; }
5470 set_have_cc_tls=
5471 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
5472 set_have_cc_tls="-DHAVE_CC_TLS"
5476 # See if we have emulated thread-local storage.
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
5479 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
5480 if ${gcc_cv_use_emutls+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5484 gcc_cv_use_emutls=no
5485 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
5486 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
5487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5488 (eval $ac_try) 2>&5
5489 ac_status=$?
5490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491 test $ac_status = 0; }; }; then
5492 if grep __emutls_get_address conftest.s > /dev/null; then
5493 gcc_cv_use_emutls=yes
5496 rm -f conftest.*
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
5500 $as_echo "$gcc_cv_use_emutls" >&6; }
5501 if test "$gcc_cv_use_emutls" = "yes" ; then
5503 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
5506 set_use_emutls=
5507 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
5508 set_use_emutls="-DUSE_EMUTLS"
5514 case "${target}" in
5515 i[34567]86-*-* | x86_64-*-*)
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
5517 $as_echo_n "checking if the assembler supports AVX... " >&6; }
5518 if ${libgcc_cv_as_avx+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5526 main ()
5528 asm("vzeroupper");
5530 return 0;
5532 _ACEOF
5533 if ac_fn_c_try_compile "$LINENO"; then :
5534 libgcc_cv_as_avx=yes
5535 else
5536 libgcc_cv_as_avx=no
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_avx" >&5
5542 $as_echo "$libgcc_cv_as_avx" >&6; }
5543 if test x$libgcc_cv_as_avx = xyes; then
5545 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
5549 esac
5553 case "${target}" in
5554 aarch64*-*-*)
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports LSE" >&5
5556 $as_echo_n "checking if the assembler supports LSE... " >&6; }
5557 if ${libgcc_cv_as_lse+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5565 main ()
5567 asm(".arch armv8-a+lse\n\tcas w0, w1, [x2]");
5570 return 0;
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 libgcc_cv_as_lse=yes
5575 else
5576 libgcc_cv_as_lse=no
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_lse" >&5
5582 $as_echo "$libgcc_cv_as_lse" >&6; }
5583 if test x$libgcc_cv_as_lse = xyes; then
5585 $as_echo "#define HAVE_AS_LSE 1" >>confdefs.h
5589 esac
5593 case "${target}" in
5594 aarch64*-*-*)
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if as supports .variant_pcs" >&5
5596 $as_echo_n "checking if as supports .variant_pcs... " >&6; }
5597 if ${libgcc_cv_as_variant_pcs+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5605 main ()
5607 asm (".variant_pcs foobar");
5609 return 0;
5611 _ACEOF
5612 if ac_fn_c_try_compile "$LINENO"; then :
5613 libgcc_cv_as_variant_pcs=yes
5614 else
5615 libgcc_cv_as_variant_pcs=no
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_variant_pcs" >&5
5621 $as_echo "$libgcc_cv_as_variant_pcs" >&6; }
5622 if test x$libgcc_cv_as_variant_pcs = xyes; then
5624 $as_echo "#define HAVE_AS_VARIANT_PCS 1" >>confdefs.h
5628 esac
5630 # Check __getauxval ABI symbol for CPU feature detection.
5631 case ${target} in
5632 aarch64*-linux-*)
5633 # No link check because the libc may not be present.
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __getauxval" >&5
5635 $as_echo_n "checking for __getauxval... " >&6; }
5636 if ${libgcc_cv_have___getauxval+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 case ${target} in
5640 *-linux-gnu*)
5641 libgcc_cv_have___getauxval=yes
5644 libgcc_cv_have___getauxval=no
5645 esac
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_have___getauxval" >&5
5648 $as_echo "$libgcc_cv_have___getauxval" >&6; }
5649 if test x$libgcc_cv_have___getauxval = xyes; then
5651 $as_echo "#define HAVE___GETAUXVAL 1" >>confdefs.h
5654 esac
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
5657 $as_echo_n "checking for init priority support... " >&6; }
5658 if ${libgcc_cv_init_priority+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5666 main ()
5668 void ip (void) __attribute__ ((constructor (1)));
5670 return 0;
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 libgcc_cv_init_priority=yes
5675 else
5676 libgcc_cv_init_priority=no
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
5681 $as_echo "$libgcc_cv_init_priority" >&6; }
5682 if test $libgcc_cv_init_priority = yes; then
5684 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
5688 # Conditionalize the sfp-machine.h header for this target machine.
5689 if test -z "${sfp_machine_header}"; then
5690 sfp_machine_header=$cpu_type/sfp-machine.h
5691 if test -f ${srcdir}/config/${sfp_machine_header}; then
5693 else
5694 sfp_machine_header=no-sfp-machine.h
5699 # Conditionalize the makefile for this target machine.
5700 tmake_file_=
5701 for f in ${tmake_file}
5703 if test -f ${srcdir}/config/$f
5704 then
5705 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
5707 done
5708 tmake_file="${tmake_file_}"
5711 # Likewise export definitions for libgcc_tm.h
5712 tm_file_=
5713 for f in ${tm_file}
5715 tm_file_="${tm_file_} \$(srcdir)/config/$f"
5716 done
5717 tm_file="${tm_file_}"
5721 # Map from thread model to thread header.
5723 case $target_thread_file in
5724 aix) thread_header=config/rs6000/gthr-aix.h ;;
5725 dce) thread_header=config/pa/gthr-dce.h ;;
5726 gcn) thread_header=config/gcn/gthr-gcn.h ;;
5727 lynx) thread_header=config/gthr-lynx.h ;;
5728 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
5729 posix) thread_header=gthr-posix.h ;;
5730 rtems) thread_header=config/gthr-rtems.h ;;
5731 single) thread_header=gthr-single.h ;;
5732 tpf) thread_header=config/s390/gthr-tpf.h ;;
5733 vxworks) thread_header=config/gthr-vxworks.h ;;
5734 win32) thread_header=config/i386/gthr-win32.h ;;
5735 mcf) thread_header=config/i386/gthr-mcf.h ;;
5736 esac
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strub support" >&5
5741 $as_echo_n "checking for strub support... " >&6; }
5742 if ${libgcc_cv_strub_support+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 void __attribute__ ((__strub__)) fn (void) {}
5748 _ACEOF
5749 if ac_fn_c_try_compile "$LINENO"; then :
5750 libgcc_cv_strub_support=yes
5751 else
5752 libgcc_cv_strub_support=no
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_strub_support" >&5
5757 $as_echo "$libgcc_cv_strub_support" >&6; }
5758 if test "x$libgcc_cv_strub_support" != xno; then
5759 HAVE_STRUB_SUPPORT=
5760 else
5761 HAVE_STRUB_SUPPORT='# '
5765 # Determine what GCC version number to use in filesystem paths.
5767 get_gcc_base_ver="cat"
5769 # Check whether --with-gcc-major-version-only was given.
5770 if test "${with_gcc_major_version_only+set}" = set; then :
5771 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5772 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5780 # Substitute configuration variables
5791 # We need multilib support.
5792 ac_config_files="$ac_config_files Makefile"
5794 ac_config_commands="$ac_config_commands default"
5796 cat >confcache <<\_ACEOF
5797 # This file is a shell script that caches the results of configure
5798 # tests run on this system so they can be shared between configure
5799 # scripts and configure runs, see configure's option --config-cache.
5800 # It is not useful on other systems. If it contains results you don't
5801 # want to keep, you may remove or edit it.
5803 # config.status only pays attention to the cache file if you give it
5804 # the --recheck option to rerun configure.
5806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5808 # following values.
5810 _ACEOF
5812 # The following way of writing the cache mishandles newlines in values,
5813 # but we know of no workaround that is simple, portable, and efficient.
5814 # So, we kill variables containing newlines.
5815 # Ultrix sh set writes to stderr and can't be redirected directly,
5816 # and sets the high bit in the cache file unless we assign to the vars.
5818 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5819 eval ac_val=\$$ac_var
5820 case $ac_val in #(
5821 *${as_nl}*)
5822 case $ac_var in #(
5823 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5824 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5825 esac
5826 case $ac_var in #(
5827 _ | IFS | as_nl) ;; #(
5828 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5829 *) { eval $ac_var=; unset $ac_var;} ;;
5830 esac ;;
5831 esac
5832 done
5834 (set) 2>&1 |
5835 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5836 *${as_nl}ac_space=\ *)
5837 # `set' does not quote correctly, so add quotes: double-quote
5838 # substitution turns \\\\ into \\, and sed turns \\ into \.
5839 sed -n \
5840 "s/'/'\\\\''/g;
5841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5842 ;; #(
5844 # `set' quotes correctly as required by POSIX, so do not add quotes.
5845 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5847 esac |
5848 sort
5850 sed '
5851 /^ac_cv_env_/b end
5852 t clear
5853 :clear
5854 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5855 t end
5856 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5857 :end' >>confcache
5858 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5859 if test -w "$cache_file"; then
5860 if test "x$cache_file" != "x/dev/null"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5862 $as_echo "$as_me: updating cache $cache_file" >&6;}
5863 if test ! -f "$cache_file" || test -h "$cache_file"; then
5864 cat confcache >"$cache_file"
5865 else
5866 case $cache_file in #(
5867 */* | ?:*)
5868 mv -f confcache "$cache_file"$$ &&
5869 mv -f "$cache_file"$$ "$cache_file" ;; #(
5871 mv -f confcache "$cache_file" ;;
5872 esac
5875 else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5877 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5880 rm -f confcache
5882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5883 # Let make expand exec_prefix.
5884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5886 DEFS=-DHAVE_CONFIG_H
5888 ac_libobjs=
5889 ac_ltlibobjs=
5891 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5892 # 1. Remove the extension, and $U if already installed.
5893 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5894 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5895 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5896 # will be set to the directory where LIBOBJS objects are built.
5897 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5898 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5899 done
5900 LIBOBJS=$ac_libobjs
5902 LTLIBOBJS=$ac_ltlibobjs
5906 : "${CONFIG_STATUS=./config.status}"
5907 ac_write_fail=0
5908 ac_clean_files_save=$ac_clean_files
5909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5911 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5912 as_write_fail=0
5913 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5914 #! $SHELL
5915 # Generated by $as_me.
5916 # Run this file to recreate the current configuration.
5917 # Compiler output produced by configure, useful for debugging
5918 # configure, is in config.log if it exists.
5920 debug=false
5921 ac_cs_recheck=false
5922 ac_cs_silent=false
5924 SHELL=\${CONFIG_SHELL-$SHELL}
5925 export SHELL
5926 _ASEOF
5927 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5928 ## -------------------- ##
5929 ## M4sh Initialization. ##
5930 ## -------------------- ##
5932 # Be more Bourne compatible
5933 DUALCASE=1; export DUALCASE # for MKS sh
5934 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5935 emulate sh
5936 NULLCMD=:
5937 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5938 # is contrary to our usage. Disable this feature.
5939 alias -g '${1+"$@"}'='"$@"'
5940 setopt NO_GLOB_SUBST
5941 else
5942 case `(set -o) 2>/dev/null` in #(
5943 *posix*) :
5944 set -o posix ;; #(
5945 *) :
5947 esac
5951 as_nl='
5953 export as_nl
5954 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5955 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5956 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5958 # Prefer a ksh shell builtin over an external printf program on Solaris,
5959 # but without wasting forks for bash or zsh.
5960 if test -z "$BASH_VERSION$ZSH_VERSION" \
5961 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5962 as_echo='print -r --'
5963 as_echo_n='print -rn --'
5964 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5965 as_echo='printf %s\n'
5966 as_echo_n='printf %s'
5967 else
5968 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5969 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5970 as_echo_n='/usr/ucb/echo -n'
5971 else
5972 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5973 as_echo_n_body='eval
5974 arg=$1;
5975 case $arg in #(
5976 *"$as_nl"*)
5977 expr "X$arg" : "X\\(.*\\)$as_nl";
5978 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5979 esac;
5980 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5982 export as_echo_n_body
5983 as_echo_n='sh -c $as_echo_n_body as_echo'
5985 export as_echo_body
5986 as_echo='sh -c $as_echo_body as_echo'
5989 # The user is always right.
5990 if test "${PATH_SEPARATOR+set}" != set; then
5991 PATH_SEPARATOR=:
5992 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5993 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5994 PATH_SEPARATOR=';'
5999 # IFS
6000 # We need space, tab and new line, in precisely that order. Quoting is
6001 # there to prevent editors from complaining about space-tab.
6002 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6003 # splitting by setting IFS to empty value.)
6004 IFS=" "" $as_nl"
6006 # Find who we are. Look in the path if we contain no directory separator.
6007 as_myself=
6008 case $0 in #((
6009 *[\\/]* ) as_myself=$0 ;;
6010 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6016 done
6017 IFS=$as_save_IFS
6020 esac
6021 # We did not find ourselves, most probably we were run as `sh COMMAND'
6022 # in which case we are not to be found in the path.
6023 if test "x$as_myself" = x; then
6024 as_myself=$0
6026 if test ! -f "$as_myself"; then
6027 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6028 exit 1
6031 # Unset variables that we do not need and which cause bugs (e.g. in
6032 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6033 # suppresses any "Segmentation fault" message there. '((' could
6034 # trigger a bug in pdksh 5.2.14.
6035 for as_var in BASH_ENV ENV MAIL MAILPATH
6036 do eval test x\${$as_var+set} = xset \
6037 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6038 done
6039 PS1='$ '
6040 PS2='> '
6041 PS4='+ '
6043 # NLS nuisances.
6044 LC_ALL=C
6045 export LC_ALL
6046 LANGUAGE=C
6047 export LANGUAGE
6049 # CDPATH.
6050 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6053 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6054 # ----------------------------------------
6055 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6056 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6057 # script with STATUS, using 1 if that was 0.
6058 as_fn_error ()
6060 as_status=$1; test $as_status -eq 0 && as_status=1
6061 if test "$4"; then
6062 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6063 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6065 $as_echo "$as_me: error: $2" >&2
6066 as_fn_exit $as_status
6067 } # as_fn_error
6070 # as_fn_set_status STATUS
6071 # -----------------------
6072 # Set $? to STATUS, without forking.
6073 as_fn_set_status ()
6075 return $1
6076 } # as_fn_set_status
6078 # as_fn_exit STATUS
6079 # -----------------
6080 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6081 as_fn_exit ()
6083 set +e
6084 as_fn_set_status $1
6085 exit $1
6086 } # as_fn_exit
6088 # as_fn_unset VAR
6089 # ---------------
6090 # Portably unset VAR.
6091 as_fn_unset ()
6093 { eval $1=; unset $1;}
6095 as_unset=as_fn_unset
6096 # as_fn_append VAR VALUE
6097 # ----------------------
6098 # Append the text in VALUE to the end of the definition contained in VAR. Take
6099 # advantage of any shell optimizations that allow amortized linear growth over
6100 # repeated appends, instead of the typical quadratic growth present in naive
6101 # implementations.
6102 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6103 eval 'as_fn_append ()
6105 eval $1+=\$2
6107 else
6108 as_fn_append ()
6110 eval $1=\$$1\$2
6112 fi # as_fn_append
6114 # as_fn_arith ARG...
6115 # ------------------
6116 # Perform arithmetic evaluation on the ARGs, and store the result in the
6117 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6118 # must be portable across $(()) and expr.
6119 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6120 eval 'as_fn_arith ()
6122 as_val=$(( $* ))
6124 else
6125 as_fn_arith ()
6127 as_val=`expr "$@" || test $? -eq 1`
6129 fi # as_fn_arith
6132 if expr a : '\(a\)' >/dev/null 2>&1 &&
6133 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6134 as_expr=expr
6135 else
6136 as_expr=false
6139 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6140 as_basename=basename
6141 else
6142 as_basename=false
6145 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6146 as_dirname=dirname
6147 else
6148 as_dirname=false
6151 as_me=`$as_basename -- "$0" ||
6152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6153 X"$0" : 'X\(//\)$' \| \
6154 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6155 $as_echo X/"$0" |
6156 sed '/^.*\/\([^/][^/]*\)\/*$/{
6157 s//\1/
6160 /^X\/\(\/\/\)$/{
6161 s//\1/
6164 /^X\/\(\/\).*/{
6165 s//\1/
6168 s/.*/./; q'`
6170 # Avoid depending upon Character Ranges.
6171 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6172 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6173 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6174 as_cr_digits='0123456789'
6175 as_cr_alnum=$as_cr_Letters$as_cr_digits
6177 ECHO_C= ECHO_N= ECHO_T=
6178 case `echo -n x` in #(((((
6179 -n*)
6180 case `echo 'xy\c'` in
6181 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6182 xy) ECHO_C='\c';;
6183 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6184 ECHO_T=' ';;
6185 esac;;
6187 ECHO_N='-n';;
6188 esac
6190 rm -f conf$$ conf$$.exe conf$$.file
6191 if test -d conf$$.dir; then
6192 rm -f conf$$.dir/conf$$.file
6193 else
6194 rm -f conf$$.dir
6195 mkdir conf$$.dir 2>/dev/null
6197 if (echo >conf$$.file) 2>/dev/null; then
6198 if ln -s conf$$.file conf$$ 2>/dev/null; then
6199 as_ln_s='ln -s'
6200 # ... but there are two gotchas:
6201 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6202 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6203 # In both cases, we have to default to `cp -pR'.
6204 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6205 as_ln_s='cp -pR'
6206 elif ln conf$$.file conf$$ 2>/dev/null; then
6207 as_ln_s=ln
6208 else
6209 as_ln_s='cp -pR'
6211 else
6212 as_ln_s='cp -pR'
6214 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6215 rmdir conf$$.dir 2>/dev/null
6218 # as_fn_mkdir_p
6219 # -------------
6220 # Create "$as_dir" as a directory, including parents if necessary.
6221 as_fn_mkdir_p ()
6224 case $as_dir in #(
6225 -*) as_dir=./$as_dir;;
6226 esac
6227 test -d "$as_dir" || eval $as_mkdir_p || {
6228 as_dirs=
6229 while :; do
6230 case $as_dir in #(
6231 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6232 *) as_qdir=$as_dir;;
6233 esac
6234 as_dirs="'$as_qdir' $as_dirs"
6235 as_dir=`$as_dirname -- "$as_dir" ||
6236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6237 X"$as_dir" : 'X\(//\)[^/]' \| \
6238 X"$as_dir" : 'X\(//\)$' \| \
6239 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6240 $as_echo X"$as_dir" |
6241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6242 s//\1/
6245 /^X\(\/\/\)[^/].*/{
6246 s//\1/
6249 /^X\(\/\/\)$/{
6250 s//\1/
6253 /^X\(\/\).*/{
6254 s//\1/
6257 s/.*/./; q'`
6258 test -d "$as_dir" && break
6259 done
6260 test -z "$as_dirs" || eval "mkdir $as_dirs"
6261 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6264 } # as_fn_mkdir_p
6265 if mkdir -p . 2>/dev/null; then
6266 as_mkdir_p='mkdir -p "$as_dir"'
6267 else
6268 test -d ./-p && rmdir ./-p
6269 as_mkdir_p=false
6273 # as_fn_executable_p FILE
6274 # -----------------------
6275 # Test if FILE is an executable regular file.
6276 as_fn_executable_p ()
6278 test -f "$1" && test -x "$1"
6279 } # as_fn_executable_p
6280 as_test_x='test -x'
6281 as_executable_p=as_fn_executable_p
6283 # Sed expression to map a string onto a valid CPP name.
6284 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6286 # Sed expression to map a string onto a valid variable name.
6287 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6290 exec 6>&1
6291 ## ----------------------------------- ##
6292 ## Main body of $CONFIG_STATUS script. ##
6293 ## ----------------------------------- ##
6294 _ASEOF
6295 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6298 # Save the log message, to keep $0 and so on meaningful, and to
6299 # report actual input values of CONFIG_FILES etc. instead of their
6300 # values after options handling.
6301 ac_log="
6302 This file was extended by GNU C Runtime Library $as_me 1.0, which was
6303 generated by GNU Autoconf 2.69. Invocation command line was
6305 CONFIG_FILES = $CONFIG_FILES
6306 CONFIG_HEADERS = $CONFIG_HEADERS
6307 CONFIG_LINKS = $CONFIG_LINKS
6308 CONFIG_COMMANDS = $CONFIG_COMMANDS
6309 $ $0 $@
6311 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6314 _ACEOF
6316 case $ac_config_files in *"
6317 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6318 esac
6320 case $ac_config_headers in *"
6321 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6322 esac
6325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6326 # Files that config.status was made for.
6327 config_files="$ac_config_files"
6328 config_headers="$ac_config_headers"
6329 config_commands="$ac_config_commands"
6331 _ACEOF
6333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6334 ac_cs_usage="\
6335 \`$as_me' instantiates files and other configuration actions
6336 from templates according to the current configuration. Unless the files
6337 and actions are specified as TAGs, all are instantiated by default.
6339 Usage: $0 [OPTION]... [TAG]...
6341 -h, --help print this help, then exit
6342 -V, --version print version number and configuration settings, then exit
6343 --config print configuration, then exit
6344 -q, --quiet, --silent
6345 do not print progress messages
6346 -d, --debug don't remove temporary files
6347 --recheck update $as_me by reconfiguring in the same conditions
6348 --file=FILE[:TEMPLATE]
6349 instantiate the configuration file FILE
6350 --header=FILE[:TEMPLATE]
6351 instantiate the configuration header FILE
6353 Configuration files:
6354 $config_files
6356 Configuration headers:
6357 $config_headers
6359 Configuration commands:
6360 $config_commands
6362 Report bugs to the package provider.
6363 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
6364 General help using GNU software: <http://www.gnu.org/gethelp/>."
6366 _ACEOF
6367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6368 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6369 ac_cs_version="\\
6370 GNU C Runtime Library config.status 1.0
6371 configured by $0, generated by GNU Autoconf 2.69,
6372 with options \\"\$ac_cs_config\\"
6374 Copyright (C) 2012 Free Software Foundation, Inc.
6375 This config.status script is free software; the Free Software Foundation
6376 gives unlimited permission to copy, distribute and modify it."
6378 ac_pwd='$ac_pwd'
6379 srcdir='$srcdir'
6380 INSTALL='$INSTALL'
6381 AWK='$AWK'
6382 test -n "\$AWK" || AWK=awk
6383 _ACEOF
6385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6386 # The default lists apply if the user does not specify any file.
6387 ac_need_defaults=:
6388 while test $# != 0
6390 case $1 in
6391 --*=?*)
6392 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6393 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6394 ac_shift=:
6396 --*=)
6397 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6398 ac_optarg=
6399 ac_shift=:
6402 ac_option=$1
6403 ac_optarg=$2
6404 ac_shift=shift
6406 esac
6408 case $ac_option in
6409 # Handling of the options.
6410 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6411 ac_cs_recheck=: ;;
6412 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6413 $as_echo "$ac_cs_version"; exit ;;
6414 --config | --confi | --conf | --con | --co | --c )
6415 $as_echo "$ac_cs_config"; exit ;;
6416 --debug | --debu | --deb | --de | --d | -d )
6417 debug=: ;;
6418 --file | --fil | --fi | --f )
6419 $ac_shift
6420 case $ac_optarg in
6421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6422 '') as_fn_error $? "missing file argument" ;;
6423 esac
6424 as_fn_append CONFIG_FILES " '$ac_optarg'"
6425 ac_need_defaults=false;;
6426 --header | --heade | --head | --hea )
6427 $ac_shift
6428 case $ac_optarg in
6429 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6430 esac
6431 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6432 ac_need_defaults=false;;
6433 --he | --h)
6434 # Conflict between --help and --header
6435 as_fn_error $? "ambiguous option: \`$1'
6436 Try \`$0 --help' for more information.";;
6437 --help | --hel | -h )
6438 $as_echo "$ac_cs_usage"; exit ;;
6439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6441 ac_cs_silent=: ;;
6443 # This is an error.
6444 -*) as_fn_error $? "unrecognized option: \`$1'
6445 Try \`$0 --help' for more information." ;;
6447 *) as_fn_append ac_config_targets " $1"
6448 ac_need_defaults=false ;;
6450 esac
6451 shift
6452 done
6454 ac_configure_extra_args=
6456 if $ac_cs_silent; then
6457 exec 6>/dev/null
6458 ac_configure_extra_args="$ac_configure_extra_args --silent"
6461 _ACEOF
6462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6463 if \$ac_cs_recheck; then
6464 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6465 shift
6466 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6467 CONFIG_SHELL='$SHELL'
6468 export CONFIG_SHELL
6469 exec "\$@"
6472 _ACEOF
6473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6474 exec 5>>config.log
6476 echo
6477 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6478 ## Running $as_me. ##
6479 _ASBOX
6480 $as_echo "$ac_log"
6481 } >&5
6483 _ACEOF
6484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6486 # INIT-COMMANDS
6488 srcdir=${srcdir}
6489 host=${host}
6490 with_target_subdir=${with_target_subdir}
6491 with_multisubdir=${with_multisubdir}
6492 ac_configure_args="--enable-multilib ${ac_configure_args}"
6493 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6494 libgcc_topdir=${libgcc_topdir}
6495 CC="${CC}"
6498 _ACEOF
6500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6502 # Handling of arguments.
6503 for ac_config_target in $ac_config_targets
6505 case $ac_config_target in
6506 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
6507 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6508 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6510 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6511 esac
6512 done
6515 # If the user did not use the arguments to specify the items to instantiate,
6516 # then the envvar interface is used. Set only those that are not.
6517 # We use the long form for the default assignment because of an extremely
6518 # bizarre bug on SunOS 4.1.3.
6519 if $ac_need_defaults; then
6520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6522 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6525 # Have a temporary directory for convenience. Make it in the build tree
6526 # simply because there is no reason against having it here, and in addition,
6527 # creating and moving files from /tmp can sometimes cause problems.
6528 # Hook for its removal unless debugging.
6529 # Note that there is a small window in which the directory will not be cleaned:
6530 # after its creation but before its name has been assigned to `$tmp'.
6531 $debug ||
6533 tmp= ac_tmp=
6534 trap 'exit_status=$?
6535 : "${ac_tmp:=$tmp}"
6536 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6538 trap 'as_fn_exit 1' 1 2 13 15
6540 # Create a (secure) tmp directory for tmp files.
6543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6544 test -d "$tmp"
6545 } ||
6547 tmp=./conf$$-$RANDOM
6548 (umask 077 && mkdir "$tmp")
6549 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6550 ac_tmp=$tmp
6552 # Set up the scripts for CONFIG_FILES section.
6553 # No need to generate them if there are no CONFIG_FILES.
6554 # This happens for instance with `./config.status config.h'.
6555 if test -n "$CONFIG_FILES"; then
6558 ac_cr=`echo X | tr X '\015'`
6559 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6560 # But we know of no other shell where ac_cr would be empty at this
6561 # point, so we can use a bashism as a fallback.
6562 if test "x$ac_cr" = x; then
6563 eval ac_cr=\$\'\\r\'
6565 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6566 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6567 ac_cs_awk_cr='\\r'
6568 else
6569 ac_cs_awk_cr=$ac_cr
6572 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6573 _ACEOF
6577 echo "cat >conf$$subs.awk <<_ACEOF" &&
6578 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6579 echo "_ACEOF"
6580 } >conf$$subs.sh ||
6581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6582 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6583 ac_delim='%!_!# '
6584 for ac_last_try in false false false false false :; do
6585 . ./conf$$subs.sh ||
6586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6588 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6589 if test $ac_delim_n = $ac_delim_num; then
6590 break
6591 elif $ac_last_try; then
6592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6593 else
6594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6596 done
6597 rm -f conf$$subs.sh
6599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6600 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6601 _ACEOF
6602 sed -n '
6604 s/^/S["/; s/!.*/"]=/
6607 s/^[^!]*!//
6608 :repl
6609 t repl
6610 s/'"$ac_delim"'$//
6611 t delim
6614 s/\(.\{148\}\)..*/\1/
6615 t more1
6616 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6619 b repl
6620 :more1
6621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6624 s/.\{148\}//
6625 t nl
6626 :delim
6628 s/\(.\{148\}\)..*/\1/
6629 t more2
6630 s/["\\]/\\&/g; s/^/"/; s/$/"/
6633 :more2
6634 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6637 s/.\{148\}//
6638 t delim
6639 ' <conf$$subs.awk | sed '
6640 /^[^""]/{
6642 s/\n//
6644 ' >>$CONFIG_STATUS || ac_write_fail=1
6645 rm -f conf$$subs.awk
6646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6647 _ACAWK
6648 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6649 for (key in S) S_is_set[key] = 1
6650 FS = "\a"
6654 line = $ 0
6655 nfields = split(line, field, "@")
6656 substed = 0
6657 len = length(field[1])
6658 for (i = 2; i < nfields; i++) {
6659 key = field[i]
6660 keylen = length(key)
6661 if (S_is_set[key]) {
6662 value = S[key]
6663 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6664 len += length(value) + length(field[++i])
6665 substed = 1
6666 } else
6667 len += 1 + keylen
6670 print line
6673 _ACAWK
6674 _ACEOF
6675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6676 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6677 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6678 else
6680 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6681 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6682 _ACEOF
6684 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6685 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6686 # trailing colons and then remove the whole line if VPATH becomes empty
6687 # (actually we leave an empty line to preserve line numbers).
6688 if test "x$srcdir" = x.; then
6689 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6691 s///
6692 s/^/:/
6693 s/[ ]*$/:/
6694 s/:\$(srcdir):/:/g
6695 s/:\${srcdir}:/:/g
6696 s/:@srcdir@:/:/g
6697 s/^:*//
6698 s/:*$//
6700 s/\(=[ ]*\).*/\1/
6702 s/\n//
6703 s/^[^=]*=[ ]*$//
6707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6708 fi # test -n "$CONFIG_FILES"
6710 # Set up the scripts for CONFIG_HEADERS section.
6711 # No need to generate them if there are no CONFIG_HEADERS.
6712 # This happens for instance with `./config.status Makefile'.
6713 if test -n "$CONFIG_HEADERS"; then
6714 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6715 BEGIN {
6716 _ACEOF
6718 # Transform confdefs.h into an awk script `defines.awk', embedded as
6719 # here-document in config.status, that substitutes the proper values into
6720 # config.h.in to produce config.h.
6722 # Create a delimiter string that does not exist in confdefs.h, to ease
6723 # handling of long lines.
6724 ac_delim='%!_!# '
6725 for ac_last_try in false false :; do
6726 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6727 if test -z "$ac_tt"; then
6728 break
6729 elif $ac_last_try; then
6730 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6731 else
6732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6734 done
6736 # For the awk script, D is an array of macro values keyed by name,
6737 # likewise P contains macro parameters if any. Preserve backslash
6738 # newline sequences.
6740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6741 sed -n '
6742 s/.\{148\}/&'"$ac_delim"'/g
6743 t rset
6744 :rset
6745 s/^[ ]*#[ ]*define[ ][ ]*/ /
6746 t def
6748 :def
6749 s/\\$//
6750 t bsnl
6751 s/["\\]/\\&/g
6752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6753 D["\1"]=" \3"/p
6754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6756 :bsnl
6757 s/["\\]/\\&/g
6758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6759 D["\1"]=" \3\\\\\\n"\\/p
6760 t cont
6761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6762 t cont
6764 :cont
6766 s/.\{148\}/&'"$ac_delim"'/g
6767 t clear
6768 :clear
6769 s/\\$//
6770 t bsnlc
6771 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6773 :bsnlc
6774 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6775 b cont
6776 ' <confdefs.h | sed '
6777 s/'"$ac_delim"'/"\\\
6778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6781 for (key in D) D_is_set[key] = 1
6782 FS = "\a"
6784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6785 line = \$ 0
6786 split(line, arg, " ")
6787 if (arg[1] == "#") {
6788 defundef = arg[2]
6789 mac1 = arg[3]
6790 } else {
6791 defundef = substr(arg[1], 2)
6792 mac1 = arg[2]
6794 split(mac1, mac2, "(") #)
6795 macro = mac2[1]
6796 prefix = substr(line, 1, index(line, defundef) - 1)
6797 if (D_is_set[macro]) {
6798 # Preserve the white space surrounding the "#".
6799 print prefix "define", macro P[macro] D[macro]
6800 next
6801 } else {
6802 # Replace #undef with comments. This is necessary, for example,
6803 # in the case of _POSIX_SOURCE, which is predefined and required
6804 # on some systems where configure will not decide to define it.
6805 if (defundef == "undef") {
6806 print "/*", prefix defundef, macro, "*/"
6807 next
6811 { print }
6812 _ACAWK
6813 _ACEOF
6814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6815 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6816 fi # test -n "$CONFIG_HEADERS"
6819 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6820 shift
6821 for ac_tag
6823 case $ac_tag in
6824 :[FHLC]) ac_mode=$ac_tag; continue;;
6825 esac
6826 case $ac_mode$ac_tag in
6827 :[FHL]*:*);;
6828 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6829 :[FH]-) ac_tag=-:-;;
6830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6831 esac
6832 ac_save_IFS=$IFS
6833 IFS=:
6834 set x $ac_tag
6835 IFS=$ac_save_IFS
6836 shift
6837 ac_file=$1
6838 shift
6840 case $ac_mode in
6841 :L) ac_source=$1;;
6842 :[FH])
6843 ac_file_inputs=
6844 for ac_f
6846 case $ac_f in
6847 -) ac_f="$ac_tmp/stdin";;
6848 *) # Look for the file first in the build tree, then in the source tree
6849 # (if the path is not absolute). The absolute path cannot be DOS-style,
6850 # because $ac_f cannot contain `:'.
6851 test -f "$ac_f" ||
6852 case $ac_f in
6853 [\\/$]*) false;;
6854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6855 esac ||
6856 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6857 esac
6858 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6859 as_fn_append ac_file_inputs " '$ac_f'"
6860 done
6862 # Let's still pretend it is `configure' which instantiates (i.e., don't
6863 # use $as_me), people would be surprised to read:
6864 # /* config.h. Generated by config.status. */
6865 configure_input='Generated from '`
6866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6867 `' by configure.'
6868 if test x"$ac_file" != x-; then
6869 configure_input="$ac_file. $configure_input"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6871 $as_echo "$as_me: creating $ac_file" >&6;}
6873 # Neutralize special characters interpreted by sed in replacement strings.
6874 case $configure_input in #(
6875 *\&* | *\|* | *\\* )
6876 ac_sed_conf_input=`$as_echo "$configure_input" |
6877 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6878 *) ac_sed_conf_input=$configure_input;;
6879 esac
6881 case $ac_tag in
6882 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6884 esac
6886 esac
6888 ac_dir=`$as_dirname -- "$ac_file" ||
6889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6890 X"$ac_file" : 'X\(//\)[^/]' \| \
6891 X"$ac_file" : 'X\(//\)$' \| \
6892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6893 $as_echo X"$ac_file" |
6894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6895 s//\1/
6898 /^X\(\/\/\)[^/].*/{
6899 s//\1/
6902 /^X\(\/\/\)$/{
6903 s//\1/
6906 /^X\(\/\).*/{
6907 s//\1/
6910 s/.*/./; q'`
6911 as_dir="$ac_dir"; as_fn_mkdir_p
6912 ac_builddir=.
6914 case "$ac_dir" in
6915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6918 # A ".." for each directory in $ac_dir_suffix.
6919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6920 case $ac_top_builddir_sub in
6921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6923 esac ;;
6924 esac
6925 ac_abs_top_builddir=$ac_pwd
6926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6927 # for backward compatibility:
6928 ac_top_builddir=$ac_top_build_prefix
6930 case $srcdir in
6931 .) # We are building in place.
6932 ac_srcdir=.
6933 ac_top_srcdir=$ac_top_builddir_sub
6934 ac_abs_top_srcdir=$ac_pwd ;;
6935 [\\/]* | ?:[\\/]* ) # Absolute name.
6936 ac_srcdir=$srcdir$ac_dir_suffix;
6937 ac_top_srcdir=$srcdir
6938 ac_abs_top_srcdir=$srcdir ;;
6939 *) # Relative name.
6940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6941 ac_top_srcdir=$ac_top_build_prefix$srcdir
6942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6943 esac
6944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6947 case $ac_mode in
6950 # CONFIG_FILE
6953 case $INSTALL in
6954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6955 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6956 esac
6957 _ACEOF
6959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6960 # If the template does not know about datarootdir, expand it.
6961 # FIXME: This hack should be removed a few years after 2.60.
6962 ac_datarootdir_hack=; ac_datarootdir_seen=
6963 ac_sed_dataroot='
6964 /datarootdir/ {
6968 /@datadir@/p
6969 /@docdir@/p
6970 /@infodir@/p
6971 /@localedir@/p
6972 /@mandir@/p'
6973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6974 *datarootdir*) ac_datarootdir_seen=yes;;
6975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6978 _ACEOF
6979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6980 ac_datarootdir_hack='
6981 s&@datadir@&$datadir&g
6982 s&@docdir@&$docdir&g
6983 s&@infodir@&$infodir&g
6984 s&@localedir@&$localedir&g
6985 s&@mandir@&$mandir&g
6986 s&\\\${datarootdir}&$datarootdir&g' ;;
6987 esac
6988 _ACEOF
6990 # Neutralize VPATH when `$srcdir' = `.'.
6991 # Shell code in configure.ac might set extrasub.
6992 # FIXME: do we really want to maintain this feature?
6993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6994 ac_sed_extra="$ac_vpsub
6995 $extrasub
6996 _ACEOF
6997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7000 s|@configure_input@|$ac_sed_conf_input|;t t
7001 s&@top_builddir@&$ac_top_builddir_sub&;t t
7002 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7003 s&@srcdir@&$ac_srcdir&;t t
7004 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7005 s&@top_srcdir@&$ac_top_srcdir&;t t
7006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7007 s&@builddir@&$ac_builddir&;t t
7008 s&@abs_builddir@&$ac_abs_builddir&;t t
7009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7010 s&@INSTALL@&$ac_INSTALL&;t t
7011 $ac_datarootdir_hack
7013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7014 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7017 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7019 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7021 which seems to be undefined. Please make sure it is defined" >&5
7022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7023 which seems to be undefined. Please make sure it is defined" >&2;}
7025 rm -f "$ac_tmp/stdin"
7026 case $ac_file in
7027 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7028 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7029 esac \
7030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7034 # CONFIG_HEADER
7036 if test x"$ac_file" != x-; then
7038 $as_echo "/* $configure_input */" \
7039 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7040 } >"$ac_tmp/config.h" \
7041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7042 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7045 else
7046 rm -f "$ac_file"
7047 mv "$ac_tmp/config.h" "$ac_file" \
7048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7050 else
7051 $as_echo "/* $configure_input */" \
7052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7053 || as_fn_error $? "could not create -" "$LINENO" 5
7057 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7058 $as_echo "$as_me: executing $ac_file commands" >&6;}
7060 esac
7063 case $ac_file$ac_mode in
7064 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7065 if test -n "$CONFIG_FILES"; then
7066 # FIXME: We shouldn't need to set ac_file
7067 ac_file=Makefile
7068 . ${libgcc_topdir}/config-ml.in
7069 fi ;;
7071 esac
7072 done # for ac_tag
7075 as_fn_exit 0
7076 _ACEOF
7077 ac_clean_files=$ac_clean_files_save
7079 test $ac_write_fail = 0 ||
7080 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7083 # configure is writing to config.log, and then calls config.status.
7084 # config.status does its own redirection, appending to config.log.
7085 # Unfortunately, on DOS this fails, as config.log is still kept open
7086 # by configure, so config.status won't be able to write to it; its
7087 # output is simply discarded. So we exec the FD to /dev/null,
7088 # effectively closing config.log, so it can be properly (re)opened and
7089 # appended to by config.status. When coming back to configure, we
7090 # need to make the FD available again.
7091 if test "$no_create" != yes; then
7092 ac_cs_success=:
7093 ac_config_status_args=
7094 test "$silent" = yes &&
7095 ac_config_status_args="$ac_config_status_args --quiet"
7096 exec 5>/dev/null
7097 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7098 exec 5>>config.log
7099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7100 # would make configure fail if this is the last instruction.
7101 $ac_cs_success || as_fn_exit 1
7103 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7105 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}