c++: explicit inst w/ similar constrained partial specs [PR104634]
[official-gcc.git] / libgcc / configure
blob3671d9b1a1aacfabd1bf784a8afb6d5dda81f0a8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU C Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME='GNU C Runtime Library'
579 PACKAGE_TARNAME='libgcc'
580 PACKAGE_VERSION='1.0'
581 PACKAGE_STRING='GNU C Runtime Library 1.0'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL='http://www.gnu.org/software/libgcc/'
585 ac_unique_file="static-object.mk"
586 ac_includes_default='/* none */'
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 md_unwind_header
590 unwind_header
591 enable_execute_stack
592 asm_hidden_op
593 extra_parts
594 cpu_type
595 get_gcc_base_ver
596 HAVE_STRUB_SUPPORT
597 thread_header
598 tm_defines
599 tm_file
600 tmake_file
601 sfp_machine_header
602 set_use_emutls
603 set_have_cc_tls
604 vis_hide
605 solaris_ld_v2_maps
606 real_host_noncanonical
607 accel_dir_suffix
608 use_tm_clone_registry
609 force_explicit_eh_registry
610 CET_FLAGS
611 fixed_point
612 enable_decimal_float
613 decimal_float
614 EGREP
615 GREP
616 long_double_type_size
617 double_type_size
619 OBJEXT
620 EXEEXT
621 ac_ct_CC
622 CPPFLAGS
623 LDFLAGS
624 CFLAGS
626 LN_S
627 STRIP
628 RANLIB
630 LIPO
632 toolexeclibdir
633 toolexecdir
634 enable_gcov
635 target_subdir
636 host_subdir
637 build_subdir
638 build_libsubdir
639 target_noncanonical
640 host_noncanonical
642 INSTALL_DATA
643 INSTALL_SCRIPT
644 INSTALL_PROGRAM
645 MAINT
646 slibdir
647 PICFLAG
648 host_os
649 host_vendor
650 host_cpu
651 host
652 build_os
653 build_vendor
654 build_cpu
655 build
656 with_aix_soname
657 enable_vtable_verify
658 enable_shared
659 libgcc_topdir
660 target_alias
661 host_alias
662 build_alias
663 LIBS
664 ECHO_T
665 ECHO_N
666 ECHO_C
667 DEFS
668 mandir
669 localedir
670 libdir
671 psdir
672 pdfdir
673 dvidir
674 htmldir
675 infodir
676 docdir
677 oldincludedir
678 includedir
679 localstatedir
680 sharedstatedir
681 sysconfdir
682 datadir
683 datarootdir
684 libexecdir
685 sbindir
686 bindir
687 program_transform_name
688 prefix
689 exec_prefix
690 PACKAGE_URL
691 PACKAGE_BUGREPORT
692 PACKAGE_STRING
693 PACKAGE_VERSION
694 PACKAGE_TARNAME
695 PACKAGE_NAME
696 PATH_SEPARATOR
697 SHELL'
698 ac_subst_files=''
699 ac_user_opts='
700 enable_option_checking
701 with_target_subdir
702 with_cross_host
703 with_ld
704 enable_shared
705 enable_vtable_verify
706 with_aix_soname
707 enable_version_specific_runtime_libs
708 with_toolexeclibdir
709 with_slibdir
710 enable_maintainer_mode
711 with_build_libsubdir
712 enable_gcov
713 enable_largefile
714 enable_decimal_float
715 with_system_libunwind
716 enable_cet
717 enable_explicit_exception_frame_registration
718 enable_tm_clone_registry
719 with_glibc_version
720 enable_tls
721 with_gcc_major_version_only
723 ac_precious_vars='build_alias
724 host_alias
725 target_alias
727 CFLAGS
728 LDFLAGS
729 LIBS
730 CPPFLAGS
731 CPP'
734 # Initialize some variables set by options.
735 ac_init_help=
736 ac_init_version=false
737 ac_unrecognized_opts=
738 ac_unrecognized_sep=
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
741 cache_file=/dev/null
742 exec_prefix=NONE
743 no_create=
744 no_recursion=
745 prefix=NONE
746 program_prefix=NONE
747 program_suffix=NONE
748 program_transform_name=s,x,x,
749 silent=
750 site=
751 srcdir=
752 verbose=
753 x_includes=NONE
754 x_libraries=NONE
756 # Installation directory options.
757 # These are left unexpanded so users can "make install exec_prefix=/foo"
758 # and all the variables that are supposed to be based on exec_prefix
759 # by default will actually change.
760 # Use braces instead of parens because sh, perl, etc. also accept them.
761 # (The list follows the same order as the GNU Coding Standards.)
762 bindir='${exec_prefix}/bin'
763 sbindir='${exec_prefix}/sbin'
764 libexecdir='${exec_prefix}/libexec'
765 datarootdir='${prefix}/share'
766 datadir='${datarootdir}'
767 sysconfdir='${prefix}/etc'
768 sharedstatedir='${prefix}/com'
769 localstatedir='${prefix}/var'
770 includedir='${prefix}/include'
771 oldincludedir='/usr/include'
772 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
773 infodir='${datarootdir}/info'
774 htmldir='${docdir}'
775 dvidir='${docdir}'
776 pdfdir='${docdir}'
777 psdir='${docdir}'
778 libdir='${exec_prefix}/lib'
779 localedir='${datarootdir}/locale'
780 mandir='${datarootdir}/man'
782 ac_prev=
783 ac_dashdash=
784 for ac_option
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\$ac_option
789 ac_prev=
790 continue
793 case $ac_option in
794 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795 *=) ac_optarg= ;;
796 *) ac_optarg=yes ;;
797 esac
799 # Accept the important Cygnus configure options, so we can diagnose typos.
801 case $ac_dashdash$ac_option in
803 ac_dashdash=yes ;;
805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
806 ac_prev=bindir ;;
807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
808 bindir=$ac_optarg ;;
810 -build | --build | --buil | --bui | --bu)
811 ac_prev=build_alias ;;
812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813 build_alias=$ac_optarg ;;
815 -cache-file | --cache-file | --cache-fil | --cache-fi \
816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817 ac_prev=cache_file ;;
818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820 cache_file=$ac_optarg ;;
822 --config-cache | -C)
823 cache_file=config.cache ;;
825 -datadir | --datadir | --datadi | --datad)
826 ac_prev=datadir ;;
827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
828 datadir=$ac_optarg ;;
830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831 | --dataroo | --dataro | --datar)
832 ac_prev=datarootdir ;;
833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835 datarootdir=$ac_optarg ;;
837 -disable-* | --disable-*)
838 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
841 as_fn_error $? "invalid feature name: $ac_useropt"
842 ac_useropt_orig=$ac_useropt
843 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
844 case $ac_user_opts in
846 "enable_$ac_useropt"
847 "*) ;;
848 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
849 ac_unrecognized_sep=', ';;
850 esac
851 eval enable_$ac_useropt=no ;;
853 -docdir | --docdir | --docdi | --doc | --do)
854 ac_prev=docdir ;;
855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
856 docdir=$ac_optarg ;;
858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
859 ac_prev=dvidir ;;
860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
861 dvidir=$ac_optarg ;;
863 -enable-* | --enable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 as_fn_error $? "invalid feature name: $ac_useropt"
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
872 "enable_$ac_useropt"
873 "*) ;;
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
876 esac
877 eval enable_$ac_useropt=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid package name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "with_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval with_$ac_useropt=\$ac_optarg ;;
1083 -without-* | --without-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1092 "with_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=no ;;
1099 --x)
1100 # Obsolete; use --with-x.
1101 with_x=yes ;;
1103 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1104 | --x-incl | --x-inc | --x-in | --x-i)
1105 ac_prev=x_includes ;;
1106 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1107 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1108 x_includes=$ac_optarg ;;
1110 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1111 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1112 ac_prev=x_libraries ;;
1113 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1114 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1115 x_libraries=$ac_optarg ;;
1117 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1118 Try \`$0 --help' for more information"
1121 *=*)
1122 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1123 # Reject names that are not valid shell variable names.
1124 case $ac_envvar in #(
1125 '' | [0-9]* | *[!_$as_cr_alnum]* )
1126 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1127 esac
1128 eval $ac_envvar=\$ac_optarg
1129 export $ac_envvar ;;
1132 # FIXME: should be removed in autoconf 3.0.
1133 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1134 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1135 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1136 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1139 esac
1140 done
1142 if test -n "$ac_prev"; then
1143 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1144 as_fn_error $? "missing argument to $ac_option"
1147 if test -n "$ac_unrecognized_opts"; then
1148 case $enable_option_checking in
1149 no) ;;
1150 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1151 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1152 esac
1155 # Check all directory arguments for consistency.
1156 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1157 datadir sysconfdir sharedstatedir localstatedir includedir \
1158 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1159 libdir localedir mandir
1161 eval ac_val=\$$ac_var
1162 # Remove trailing slashes.
1163 case $ac_val in
1164 */ )
1165 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1166 eval $ac_var=\$ac_val;;
1167 esac
1168 # Be sure to have absolute directory names.
1169 case $ac_val in
1170 [\\/$]* | ?:[\\/]* ) continue;;
1171 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1172 esac
1173 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1174 done
1176 # There might be people who depend on the old broken behavior: `$host'
1177 # used to hold the argument of --host etc.
1178 # FIXME: To remove some day.
1179 build=$build_alias
1180 host=$host_alias
1181 target=$target_alias
1183 # FIXME: To remove some day.
1184 if test "x$host_alias" != x; then
1185 if test "x$build_alias" = x; then
1186 cross_compiling=maybe
1187 elif test "x$build_alias" != "x$host_alias"; then
1188 cross_compiling=yes
1192 ac_tool_prefix=
1193 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195 test "$silent" = yes && exec 6>/dev/null
1198 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199 ac_ls_di=`ls -di .` &&
1200 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201 as_fn_error $? "working directory cannot be determined"
1202 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1203 as_fn_error $? "pwd does not report name of working directory"
1206 # Find the source files, if location was not specified.
1207 if test -z "$srcdir"; then
1208 ac_srcdir_defaulted=yes
1209 # Try the directory containing this script, then the parent directory.
1210 ac_confdir=`$as_dirname -- "$as_myself" ||
1211 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1212 X"$as_myself" : 'X\(//\)[^/]' \| \
1213 X"$as_myself" : 'X\(//\)$' \| \
1214 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1215 $as_echo X"$as_myself" |
1216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1217 s//\1/
1220 /^X\(\/\/\)[^/].*/{
1221 s//\1/
1224 /^X\(\/\/\)$/{
1225 s//\1/
1228 /^X\(\/\).*/{
1229 s//\1/
1232 s/.*/./; q'`
1233 srcdir=$ac_confdir
1234 if test ! -r "$srcdir/$ac_unique_file"; then
1235 srcdir=..
1237 else
1238 ac_srcdir_defaulted=no
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1241 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1242 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1244 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1245 ac_abs_confdir=`(
1246 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1247 pwd)`
1248 # When building in place, set srcdir=.
1249 if test "$ac_abs_confdir" = "$ac_pwd"; then
1250 srcdir=.
1252 # Remove unnecessary trailing slashes from srcdir.
1253 # Double slashes in file names in object file debugging info
1254 # mess up M-x gdb in Emacs.
1255 case $srcdir in
1256 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1257 esac
1258 for ac_var in $ac_precious_vars; do
1259 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_env_${ac_var}_value=\$${ac_var}
1261 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1262 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1263 done
1266 # Report the --help message.
1268 if test "$ac_init_help" = "long"; then
1269 # Omit some internal or obsolete options to make the list less imposing.
1270 # This message is too long to be a string in the A/UX 3.1 sh.
1271 cat <<_ACEOF
1272 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1274 Usage: $0 [OPTION]... [VAR=VALUE]...
1276 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1277 VAR=VALUE. See below for descriptions of some of the useful variables.
1279 Defaults for the options are specified in brackets.
1281 Configuration:
1282 -h, --help display this help and exit
1283 --help=short display options specific to this package
1284 --help=recursive display the short help of all the included packages
1285 -V, --version display version information and exit
1286 -q, --quiet, --silent do not print \`checking ...' messages
1287 --cache-file=FILE cache test results in FILE [disabled]
1288 -C, --config-cache alias for \`--cache-file=config.cache'
1289 -n, --no-create do not create output files
1290 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1292 Installation directories:
1293 --prefix=PREFIX install architecture-independent files in PREFIX
1294 [$ac_default_prefix]
1295 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1296 [PREFIX]
1298 By default, \`make install' will install all the files in
1299 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1300 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1301 for instance \`--prefix=\$HOME'.
1303 For better control, use the options below.
1305 Fine tuning of the installation directories:
1306 --bindir=DIR user executables [EPREFIX/bin]
1307 --sbindir=DIR system admin executables [EPREFIX/sbin]
1308 --libexecdir=DIR program executables [EPREFIX/libexec]
1309 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1310 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1311 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1312 --libdir=DIR object code libraries [EPREFIX/lib]
1313 --includedir=DIR C header files [PREFIX/include]
1314 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1315 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1316 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1317 --infodir=DIR info documentation [DATAROOTDIR/info]
1318 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1319 --mandir=DIR man documentation [DATAROOTDIR/man]
1320 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1321 --htmldir=DIR html documentation [DOCDIR]
1322 --dvidir=DIR dvi documentation [DOCDIR]
1323 --pdfdir=DIR pdf documentation [DOCDIR]
1324 --psdir=DIR ps documentation [DOCDIR]
1325 _ACEOF
1327 cat <<\_ACEOF
1329 System types:
1330 --build=BUILD configure for building on BUILD [guessed]
1331 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1332 _ACEOF
1335 if test -n "$ac_init_help"; then
1336 case $ac_init_help in
1337 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1338 esac
1339 cat <<\_ACEOF
1341 Optional Features:
1342 --disable-option-checking ignore unrecognized --enable/--with options
1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1345 --disable-shared don't provide a shared libgcc
1346 --enable-vtable-verify Enable vtable verification feature
1347 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1348 --enable-maintainer-mode
1349 enable make rules and dependencies not useful (and
1350 sometimes confusing) to the casual installer
1351 --disable-gcov don't provide libgcov and related host tools
1352 --disable-largefile omit support for large files
1353 --enable-decimal-float={no,yes,bid,dpd}
1354 enable decimal float extension to C. Selecting 'bid'
1355 or 'dpd' choses which decimal floating point format
1356 to use
1357 --enable-cet enable Intel CET in target libraries [default=auto]
1358 --enable-explicit-exception-frame-registration
1359 register exception tables explicitly at module
1360 start, for use e.g. for compatibility with
1361 installations without PT_GNU_EH_FRAME support
1362 --disable-tm-clone-registry disable TM clone registry
1363 --enable-tls Use thread-local storage [default=yes]
1365 Optional Packages:
1366 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1367 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1368 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1369 --with-cross-host=HOST Configuring with a cross compiler
1370 --with-ld arrange to use the specified ld (full pathname)
1371 --with-aix-soname=aix|svr4|both
1372 shared library versioning (aka "SONAME") variant to
1373 provide on AIX
1374 --with-toolexeclibdir=DIR
1375 install libraries built with a cross compiler within
1377 --with-slibdir=DIR shared libraries in DIR LIBDIR
1378 --with-build-libsubdir=DIR Directory where to find libraries for build system
1379 --with-system-libunwind use installed libunwind
1380 --with-glibc-version=M.N
1381 assume GCC used with glibc version M.N or later
1382 --with-gcc-major-version-only
1383 use only GCC major number in filesystem paths
1385 Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
1391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1392 you have headers in a nonstandard directory <include dir>
1393 CPP C preprocessor
1395 Use these variables to override the choices made by `configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1398 Report bugs to the package provider.
1399 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1400 General help using GNU software: <http://www.gnu.org/gethelp/>.
1401 _ACEOF
1402 ac_status=$?
1405 if test "$ac_init_help" = "recursive"; then
1406 # If there are subdirs, report their specific --help.
1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 test -d "$ac_dir" ||
1409 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1410 continue
1411 ac_builddir=.
1413 case "$ac_dir" in
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417 # A ".." for each directory in $ac_dir_suffix.
1418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419 case $ac_top_builddir_sub in
1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422 esac ;;
1423 esac
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1429 case $srcdir in
1430 .) # We are building in place.
1431 ac_srcdir=.
1432 ac_top_srcdir=$ac_top_builddir_sub
1433 ac_abs_top_srcdir=$ac_pwd ;;
1434 [\\/]* | ?:[\\/]* ) # Absolute name.
1435 ac_srcdir=$srcdir$ac_dir_suffix;
1436 ac_top_srcdir=$srcdir
1437 ac_abs_top_srcdir=$srcdir ;;
1438 *) # Relative name.
1439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440 ac_top_srcdir=$ac_top_build_prefix$srcdir
1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442 esac
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445 cd "$ac_dir" || { ac_status=$?; continue; }
1446 # Check for guested configure.
1447 if test -f "$ac_srcdir/configure.gnu"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450 elif test -f "$ac_srcdir/configure"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure" --help=recursive
1453 else
1454 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455 fi || ac_status=$?
1456 cd "$ac_pwd" || { ac_status=$?; break; }
1457 done
1460 test -n "$ac_init_help" && exit $ac_status
1461 if $ac_init_version; then
1462 cat <<\_ACEOF
1463 GNU C Runtime Library configure 1.0
1464 generated by GNU Autoconf 2.69
1466 Copyright (C) 2012 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1469 _ACEOF
1470 exit
1473 ## ------------------------ ##
1474 ## Autoconf initialization. ##
1475 ## ------------------------ ##
1477 # ac_fn_c_try_compile LINENO
1478 # --------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_c_try_compile ()
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 rm -f conftest.$ac_objext
1484 if { { ac_try="$ac_compile"
1485 case "(($ac_try" in
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1488 esac
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_compile") 2>conftest.err
1492 ac_status=$?
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && {
1500 test -z "$ac_c_werror_flag" ||
1501 test ! -s conftest.err
1502 } && test -s conftest.$ac_objext; then :
1503 ac_retval=0
1504 else
1505 $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1508 ac_retval=1
1510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511 as_fn_set_status $ac_retval
1513 } # ac_fn_c_try_compile
1515 # ac_fn_c_try_cpp LINENO
1516 # ----------------------
1517 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_cpp ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 if { { ac_try="$ac_cpp conftest.$ac_ext"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } > conftest.i && {
1537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 }; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1545 ac_retval=1
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1550 } # ac_fn_c_try_cpp
1552 # ac_fn_c_try_run LINENO
1553 # ----------------------
1554 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1555 # that executables *can* be run.
1556 ac_fn_c_try_run ()
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 if { { ac_try="$ac_link"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_link") 2>&5
1567 ac_status=$?
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1570 { { case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_try") 2>&5
1577 ac_status=$?
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; }; }; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: program exited with status $ac_status" >&5
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1586 ac_retval=$ac_status
1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_run
1594 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1595 # --------------------------------------------
1596 # Tries to find the compile-time value of EXPR in a program that includes
1597 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1598 # computed
1599 ac_fn_c_compute_int ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if test "$cross_compiling" = yes; then
1603 # Depending upon the size, compute the lo and hi bounds.
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1608 main ()
1610 static int test_array [1 - 2 * !(($2) >= 0)];
1611 test_array [0] = 0;
1612 return test_array [0];
1615 return 0;
1617 _ACEOF
1618 if ac_fn_c_try_compile "$LINENO"; then :
1619 ac_lo=0 ac_mid=0
1620 while :; do
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1625 main ()
1627 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1628 test_array [0] = 0;
1629 return test_array [0];
1632 return 0;
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"; then :
1636 ac_hi=$ac_mid; break
1637 else
1638 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1639 if test $ac_lo -le $ac_mid; then
1640 ac_lo= ac_hi=
1641 break
1643 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 done
1647 else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1652 main ()
1654 static int test_array [1 - 2 * !(($2) < 0)];
1655 test_array [0] = 0;
1656 return test_array [0];
1659 return 0;
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 ac_hi=-1 ac_mid=-1
1664 while :; do
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1669 main ()
1671 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1672 test_array [0] = 0;
1673 return test_array [0];
1676 return 0;
1678 _ACEOF
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 ac_lo=$ac_mid; break
1681 else
1682 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1683 if test $ac_mid -le $ac_hi; then
1684 ac_lo= ac_hi=
1685 break
1687 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 done
1691 else
1692 ac_lo= ac_hi=
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 # Binary search between lo and hi bounds.
1698 while test "x$ac_lo" != "x$ac_hi"; do
1699 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1704 main ()
1706 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1707 test_array [0] = 0;
1708 return test_array [0];
1711 return 0;
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715 ac_hi=$ac_mid
1716 else
1717 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 done
1721 case $ac_lo in #((
1722 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1723 '') ac_retval=1 ;;
1724 esac
1725 else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1729 static long int longval () { return $2; }
1730 static unsigned long int ulongval () { return $2; }
1731 #include <stdio.h>
1732 #include <stdlib.h>
1734 main ()
1737 FILE *f = fopen ("conftest.val", "w");
1738 if (! f)
1739 return 1;
1740 if (($2) < 0)
1742 long int i = longval ();
1743 if (i != ($2))
1744 return 1;
1745 fprintf (f, "%ld", i);
1747 else
1749 unsigned long int i = ulongval ();
1750 if (i != ($2))
1751 return 1;
1752 fprintf (f, "%lu", i);
1754 /* Do not output a trailing newline, as this causes \r\n confusion
1755 on some platforms. */
1756 return ferror (f) || fclose (f) != 0;
1759 return 0;
1761 _ACEOF
1762 if ac_fn_c_try_run "$LINENO"; then :
1763 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1764 else
1765 ac_retval=1
1767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1768 conftest.$ac_objext conftest.beam conftest.$ac_ext
1769 rm -f conftest.val
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1775 } # ac_fn_c_compute_int
1777 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1778 # ----------------------------------------------
1779 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_preproc ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_cpp "$LINENO"; then :
1793 eval "$3=yes"
1794 else
1795 eval "$3=no"
1797 rm -f conftest.err conftest.i conftest.$ac_ext
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 } # ac_fn_c_check_header_preproc
1805 cat >config.log <<_ACEOF
1806 This file contains any messages produced by compilers while
1807 running configure, to aid debugging if configure makes a mistake.
1809 It was created by GNU C Runtime Library $as_me 1.0, which was
1810 generated by GNU Autoconf 2.69. Invocation command line was
1812 $ $0 $@
1814 _ACEOF
1815 exec 5>>config.log
1817 cat <<_ASUNAME
1818 ## --------- ##
1819 ## Platform. ##
1820 ## --------- ##
1822 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1823 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1824 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1825 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1826 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1828 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1829 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1831 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1832 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1833 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1834 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1835 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1836 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1837 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1839 _ASUNAME
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 $as_echo "PATH: $as_dir"
1847 done
1848 IFS=$as_save_IFS
1850 } >&5
1852 cat >&5 <<_ACEOF
1855 ## ----------- ##
1856 ## Core tests. ##
1857 ## ----------- ##
1859 _ACEOF
1862 # Keep a trace of the command line.
1863 # Strip out --no-create and --no-recursion so they do not pile up.
1864 # Strip out --silent because we don't want to record it for future runs.
1865 # Also quote any args containing shell meta-characters.
1866 # Make two passes to allow for proper duplicate-argument suppression.
1867 ac_configure_args=
1868 ac_configure_args0=
1869 ac_configure_args1=
1870 ac_must_keep_next=false
1871 for ac_pass in 1 2
1873 for ac_arg
1875 case $ac_arg in
1876 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1878 | -silent | --silent | --silen | --sile | --sil)
1879 continue ;;
1880 *\'*)
1881 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 esac
1883 case $ac_pass in
1884 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1886 as_fn_append ac_configure_args1 " '$ac_arg'"
1887 if test $ac_must_keep_next = true; then
1888 ac_must_keep_next=false # Got value, back to normal.
1889 else
1890 case $ac_arg in
1891 *=* | --config-cache | -C | -disable-* | --disable-* \
1892 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1893 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1894 | -with-* | --with-* | -without-* | --without-* | --x)
1895 case "$ac_configure_args0 " in
1896 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1897 esac
1899 -* ) ac_must_keep_next=true ;;
1900 esac
1902 as_fn_append ac_configure_args " '$ac_arg'"
1904 esac
1905 done
1906 done
1907 { ac_configure_args0=; unset ac_configure_args0;}
1908 { ac_configure_args1=; unset ac_configure_args1;}
1910 # When interrupted or exit'd, cleanup temporary files, and complete
1911 # config.log. We remove comments because anyway the quotes in there
1912 # would cause problems or look ugly.
1913 # WARNING: Use '\'' to represent an apostrophe within the trap.
1914 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1915 trap 'exit_status=$?
1916 # Save into config.log some information that might help in debugging.
1918 echo
1920 $as_echo "## ---------------- ##
1921 ## Cache variables. ##
1922 ## ---------------- ##"
1923 echo
1924 # The following way of writing the cache mishandles newlines in values,
1926 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1927 eval ac_val=\$$ac_var
1928 case $ac_val in #(
1929 *${as_nl}*)
1930 case $ac_var in #(
1931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1933 esac
1934 case $ac_var in #(
1935 _ | IFS | as_nl) ;; #(
1936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1937 *) { eval $ac_var=; unset $ac_var;} ;;
1938 esac ;;
1939 esac
1940 done
1941 (set) 2>&1 |
1942 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1943 *${as_nl}ac_space=\ *)
1944 sed -n \
1945 "s/'\''/'\''\\\\'\'''\''/g;
1946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1947 ;; #(
1949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 esac |
1952 sort
1954 echo
1956 $as_echo "## ----------------- ##
1957 ## Output variables. ##
1958 ## ----------------- ##"
1959 echo
1960 for ac_var in $ac_subst_vars
1962 eval ac_val=\$$ac_var
1963 case $ac_val in
1964 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965 esac
1966 $as_echo "$ac_var='\''$ac_val'\''"
1967 done | sort
1968 echo
1970 if test -n "$ac_subst_files"; then
1971 $as_echo "## ------------------- ##
1972 ## File substitutions. ##
1973 ## ------------------- ##"
1974 echo
1975 for ac_var in $ac_subst_files
1977 eval ac_val=\$$ac_var
1978 case $ac_val in
1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 esac
1981 $as_echo "$ac_var='\''$ac_val'\''"
1982 done | sort
1983 echo
1986 if test -s confdefs.h; then
1987 $as_echo "## ----------- ##
1988 ## confdefs.h. ##
1989 ## ----------- ##"
1990 echo
1991 cat confdefs.h
1992 echo
1994 test "$ac_signal" != 0 &&
1995 $as_echo "$as_me: caught signal $ac_signal"
1996 $as_echo "$as_me: exit $exit_status"
1997 } >&5
1998 rm -f core *.core core.conftest.* &&
1999 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2000 exit $exit_status
2002 for ac_signal in 1 2 13 15; do
2003 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2004 done
2005 ac_signal=0
2007 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2008 rm -f -r conftest* confdefs.h
2010 $as_echo "/* confdefs.h */" > confdefs.h
2012 # Predefined preprocessor variables.
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_NAME "$PACKAGE_NAME"
2016 _ACEOF
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2020 _ACEOF
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2024 _ACEOF
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_STRING "$PACKAGE_STRING"
2028 _ACEOF
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2032 _ACEOF
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_URL "$PACKAGE_URL"
2036 _ACEOF
2039 # Let the site file select an alternate cache file if it wants to.
2040 # Prefer an explicitly selected file to automatically selected ones.
2041 ac_site_file1=NONE
2042 ac_site_file2=NONE
2043 if test -n "$CONFIG_SITE"; then
2044 # We do not want a PATH search for config.site.
2045 case $CONFIG_SITE in #((
2046 -*) ac_site_file1=./$CONFIG_SITE;;
2047 */*) ac_site_file1=$CONFIG_SITE;;
2048 *) ac_site_file1=./$CONFIG_SITE;;
2049 esac
2050 elif test "x$prefix" != xNONE; then
2051 ac_site_file1=$prefix/share/config.site
2052 ac_site_file2=$prefix/etc/config.site
2053 else
2054 ac_site_file1=$ac_default_prefix/share/config.site
2055 ac_site_file2=$ac_default_prefix/etc/config.site
2057 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2059 test "x$ac_site_file" = xNONE && continue
2060 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2062 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2063 sed 's/^/| /' "$ac_site_file" >&5
2064 . "$ac_site_file" \
2065 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 as_fn_error $? "failed to load site script $ac_site_file
2068 See \`config.log' for more details" "$LINENO" 5; }
2070 done
2072 if test -r "$cache_file"; then
2073 # Some versions of bash will fail to source /dev/null (special files
2074 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2075 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2077 $as_echo "$as_me: loading cache $cache_file" >&6;}
2078 case $cache_file in
2079 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2080 *) . "./$cache_file";;
2081 esac
2083 else
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2085 $as_echo "$as_me: creating cache $cache_file" >&6;}
2086 >$cache_file
2089 # Check that the precious variables saved in the cache have kept the same
2090 # value.
2091 ac_cache_corrupted=false
2092 for ac_var in $ac_precious_vars; do
2093 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2094 eval ac_new_set=\$ac_env_${ac_var}_set
2095 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2096 eval ac_new_val=\$ac_env_${ac_var}_value
2097 case $ac_old_set,$ac_new_set in
2098 set,)
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2100 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2101 ac_cache_corrupted=: ;;
2102 ,set)
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2104 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2105 ac_cache_corrupted=: ;;
2106 ,);;
2108 if test "x$ac_old_val" != "x$ac_new_val"; then
2109 # differences in whitespace do not lead to failure.
2110 ac_old_val_w=`echo x $ac_old_val`
2111 ac_new_val_w=`echo x $ac_new_val`
2112 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2114 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2115 ac_cache_corrupted=:
2116 else
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2118 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2119 eval $ac_var=\$ac_old_val
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2122 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2124 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2125 fi;;
2126 esac
2127 # Pass precious variables to config.status.
2128 if test "$ac_new_set" = set; then
2129 case $ac_new_val in
2130 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2131 *) ac_arg=$ac_var=$ac_new_val ;;
2132 esac
2133 case " $ac_configure_args " in
2134 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2135 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2136 esac
2138 done
2139 if $ac_cache_corrupted; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2143 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2144 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2146 ## -------------------- ##
2147 ## Main body of script. ##
2148 ## -------------------- ##
2150 ac_ext=c
2151 ac_cpp='$CPP $CPPFLAGS'
2152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2162 # The libgcc should not depend on any header files
2166 # Check whether --with-target-subdir was given.
2167 if test "${with_target_subdir+set}" = set; then :
2168 withval=$with_target_subdir;
2172 # Check whether --with-cross-host was given.
2173 if test "${with_cross_host+set}" = set; then :
2174 withval=$with_cross_host;
2178 # Check whether --with-ld was given.
2179 if test "${with_ld+set}" = set; then :
2180 withval=$with_ld;
2184 if test "${srcdir}" = "."; then
2185 if test -n "${with_build_subdir}"; then
2186 libgcc_topdir="${srcdir}/../.."
2187 with_target_subdir=
2188 elif test -z "${with_target_subdir}"; then
2189 libgcc_topdir="${srcdir}/.."
2190 else
2191 if test "${with_target_subdir}" != "."; then
2192 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2193 else
2194 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2197 else
2198 libgcc_topdir="${srcdir}/.."
2201 ac_aux_dir=
2202 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2203 if test -f "$ac_dir/install-sh"; then
2204 ac_aux_dir=$ac_dir
2205 ac_install_sh="$ac_aux_dir/install-sh -c"
2206 break
2207 elif test -f "$ac_dir/install.sh"; then
2208 ac_aux_dir=$ac_dir
2209 ac_install_sh="$ac_aux_dir/install.sh -c"
2210 break
2211 elif test -f "$ac_dir/shtool"; then
2212 ac_aux_dir=$ac_dir
2213 ac_install_sh="$ac_aux_dir/shtool install -c"
2214 break
2216 done
2217 if test -z "$ac_aux_dir"; then
2218 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2221 # These three variables are undocumented and unsupported,
2222 # and are intended to be withdrawn in a future Autoconf release.
2223 # They can cause serious problems if a builder's source tree is in a directory
2224 # whose full name contains unusual characters.
2225 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2226 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2227 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2230 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2233 # Check whether --enable-shared was given.
2234 if test "${enable_shared+set}" = set; then :
2235 enableval=$enable_shared;
2236 case $enable_shared in
2237 yes | no) ;;
2239 enable_shared=no
2240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2241 for pkg in $enableval; do
2242 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2243 enable_shared=yes
2245 done
2246 IFS="$ac_save_ifs"
2248 esac
2250 else
2251 enable_shared=yes
2256 # Check whether --enable-vtable-verify was given.
2257 if test "${enable_vtable_verify+set}" = set; then :
2258 enableval=$enable_vtable_verify; case "$enableval" in
2259 yes) enable_vtable_verify=yes ;;
2260 no) enable_vtable_verify=no ;;
2261 *) enable_vtable_verify=no;;
2262 esac
2263 else
2264 enable_vtable_verify=no
2270 # Check whether --with-aix-soname was given.
2271 if test "${with_aix_soname+set}" = set; then :
2272 withval=$with_aix_soname; case "${host}:${enable_shared}" in
2273 power*-*-aix[5-9]*:yes)
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
2275 $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
2276 case ${withval} in
2277 aix|svr4|both) ;;
2278 *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5;;
2279 esac
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2281 $as_echo "$withval" >&6; }
2283 *) with_aix_soname=aix ;;
2284 esac
2286 else
2287 with_aix_soname=aix
2292 # Make sure we can run config.sub.
2293 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2294 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2297 $as_echo_n "checking build system type... " >&6; }
2298 if ${ac_cv_build+:} false; then :
2299 $as_echo_n "(cached) " >&6
2300 else
2301 ac_build_alias=$build_alias
2302 test "x$ac_build_alias" = x &&
2303 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2304 test "x$ac_build_alias" = x &&
2305 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2306 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2307 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2311 $as_echo "$ac_cv_build" >&6; }
2312 case $ac_cv_build in
2313 *-*-*) ;;
2314 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2315 esac
2316 build=$ac_cv_build
2317 ac_save_IFS=$IFS; IFS='-'
2318 set x $ac_cv_build
2319 shift
2320 build_cpu=$1
2321 build_vendor=$2
2322 shift; shift
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2325 build_os=$*
2326 IFS=$ac_save_IFS
2327 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2331 $as_echo_n "checking host system type... " >&6; }
2332 if ${ac_cv_host+:} false; then :
2333 $as_echo_n "(cached) " >&6
2334 else
2335 if test "x$host_alias" = x; then
2336 ac_cv_host=$ac_cv_build
2337 else
2338 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2344 $as_echo "$ac_cv_host" >&6; }
2345 case $ac_cv_host in
2346 *-*-*) ;;
2347 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2348 esac
2349 host=$ac_cv_host
2350 ac_save_IFS=$IFS; IFS='-'
2351 set x $ac_cv_host
2352 shift
2353 host_cpu=$1
2354 host_vendor=$2
2355 shift; shift
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2358 host_os=$*
2359 IFS=$ac_save_IFS
2360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2367 case "${host}" in
2368 # PIC is the default on some targets or must not be used.
2369 *-*-darwin*)
2370 # For darwin, common symbols are not allowed in MH_DYLIB files
2371 case "${CFLAGS}" in
2372 # If we are using a compiler supporting mdynamic-no-pic
2373 # and the option has been tested as safe to add, then cancel
2374 # it here, since the code generated is incompatible with shared
2375 # libs.
2376 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
2377 *) PICFLAG=-fno-common ;;
2378 esac
2380 alpha*-dec-osf5*)
2381 # PIC is the default.
2383 hppa*64*-*-hpux*)
2384 # PIC is the default for 64-bit PA HP-UX.
2386 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2388 i[34567]86-*-mingw* | x86_64-*-mingw*)
2390 i[34567]86-*-interix[3-9]*)
2391 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2392 # Instead, we relocate shared libraries at runtime.
2394 i[34567]86-*-nto-qnx*)
2395 # QNX uses GNU C++, but need to define -shared option too, otherwise
2396 # it will coredump.
2397 PICFLAG='-fPIC -shared'
2399 i[34567]86-pc-msdosdjgpp*)
2400 # DJGPP does not support shared libraries at all.
2402 ia64*-*-hpux*)
2403 # On IA64 HP-UX, PIC is the default but the pic flag
2404 # sets the default TLS model and affects inlining.
2405 PICFLAG=-fPIC
2407 loongarch*-*-*)
2408 PICFLAG=-fpic
2410 mips-sgi-irix6*)
2411 # PIC is the default.
2413 rs6000-ibm-aix* | powerpc-ibm-aix*)
2414 # All AIX code is PIC.
2417 # Some targets support both -fPIC and -fpic, but prefer the latter.
2418 # FIXME: Why?
2419 i[34567]86-*-* | x86_64-*-*)
2420 PICFLAG=-fpic
2422 # FIXME: Override -fPIC default in libgcc only?
2423 sh-*-linux* | sh[2346lbe]*-*-linux*)
2424 PICFLAG=-fpic
2426 sh*-*-netbsd*)
2427 PICFLAG=-fpic
2429 # Default to -fPIC unless specified otherwise.
2431 PICFLAG=-fPIC
2433 esac
2435 # If the user explicitly uses -fpic/-fPIC, keep that.
2436 case "${CFLAGS}" in
2437 *-fpic*)
2438 PICFLAG=-fpic
2440 *-fPIC*)
2441 PICFLAG=-fPIC
2443 esac
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2448 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2449 # Check whether --enable-version-specific-runtime-libs was given.
2450 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2451 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2452 yes) version_specific_libs=yes ;;
2453 no) version_specific_libs=no ;;
2454 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2455 esac
2456 else
2457 version_specific_libs=no
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2461 $as_echo "$version_specific_libs" >&6; }
2464 # Check whether --with-toolexeclibdir was given.
2465 if test "${with_toolexeclibdir+set}" = set; then :
2466 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
2470 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
2472 esac
2473 else
2474 with_toolexeclibdir=no
2480 # Check whether --with-slibdir was given.
2481 if test "${with_slibdir+set}" = set; then :
2482 withval=$with_slibdir; slibdir="$with_slibdir"
2483 else
2484 if test "${version_specific_libs}" = yes; then
2485 slibdir='$(libsubdir)'
2486 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2487 case ${with_toolexeclibdir} in
2489 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2492 slibdir=${with_toolexeclibdir}
2494 esac
2495 else
2496 slibdir='$(libdir)'
2502 # Command-line options.
2503 # Very limited version of AC_MAINTAINER_MODE.
2504 # Check whether --enable-maintainer-mode was given.
2505 if test "${enable_maintainer_mode+set}" = set; then :
2506 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2507 yes) MAINT='' ;;
2508 no) MAINT='#' ;;
2509 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2510 esac
2511 maintainer_mode=${enableval}
2512 else
2513 MAINT='#'
2517 # Find a good install program. We prefer a C program (faster),
2518 # so one script is as good as another. But avoid the broken or
2519 # incompatible versions:
2520 # SysV /etc/install, /usr/sbin/install
2521 # SunOS /usr/etc/install
2522 # IRIX /sbin/install
2523 # AIX /bin/install
2524 # AmigaOS /C/install, which installs bootblocks on floppy discs
2525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2528 # OS/2's system install, which has a completely different semantic
2529 # ./install, which can be erroneously created by make from ./install.sh.
2530 # Reject install programs that cannot install multiple files.
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2532 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2533 if test -z "$INSTALL"; then
2534 if ${ac_cv_path_install+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 # Account for people who put trailing slashes in PATH elements.
2543 case $as_dir/ in #((
2544 ./ | .// | /[cC]/* | \
2545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2546 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2547 /usr/ucb/* ) ;;
2549 # OSF1 and SCO ODT 3.0 have their own names for install.
2550 # Don't use installbsd from OSF since it installs stuff as root
2551 # by default.
2552 for ac_prog in ginstall scoinst install; do
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2555 if test $ac_prog = install &&
2556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557 # AIX install. It has an incompatible calling convention.
2559 elif test $ac_prog = install &&
2560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2561 # program-specific install script used by HP pwplus--don't use.
2563 else
2564 rm -rf conftest.one conftest.two conftest.dir
2565 echo one > conftest.one
2566 echo two > conftest.two
2567 mkdir conftest.dir
2568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2569 test -s conftest.one && test -s conftest.two &&
2570 test -s conftest.dir/conftest.one &&
2571 test -s conftest.dir/conftest.two
2572 then
2573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2574 break 3
2578 done
2579 done
2581 esac
2583 done
2584 IFS=$as_save_IFS
2586 rm -rf conftest.one conftest.two conftest.dir
2589 if test "${ac_cv_path_install+set}" = set; then
2590 INSTALL=$ac_cv_path_install
2591 else
2592 # As a last resort, use the slow shell script. Don't cache a
2593 # value for INSTALL within a source directory, because that will
2594 # break other packages using the cache if that directory is
2595 # removed, or if the value is a relative name.
2596 INSTALL=$ac_install_sh
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2600 $as_echo "$INSTALL" >&6; }
2602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2603 # It thinks the first close brace ends the variable substitution.
2604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611 for ac_prog in gawk mawk nawk awk
2613 # Extract the first word of "$ac_prog", so it can be a program name with args.
2614 set dummy $ac_prog; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_AWK+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test -n "$AWK"; then
2621 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_AWK="$ac_prog"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2634 done
2635 done
2636 IFS=$as_save_IFS
2640 AWK=$ac_cv_prog_AWK
2641 if test -n "$AWK"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2643 $as_echo "$AWK" >&6; }
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2650 test -n "$AWK" && break
2651 done
2653 # We need awk; bail out if it's missing.
2654 case ${AWK} in
2655 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
2656 esac
2659 case ${build_alias} in
2660 "") build_noncanonical=${build} ;;
2661 *) build_noncanonical=${build_alias} ;;
2662 esac
2664 case ${host_alias} in
2665 "") host_noncanonical=${build_noncanonical} ;;
2666 *) host_noncanonical=${host_alias} ;;
2667 esac
2671 case ${target_alias} in
2672 "") target_noncanonical=${host_noncanonical} ;;
2673 *) target_noncanonical=${target_alias} ;;
2674 esac
2679 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2680 # have matching libraries, they should use host libraries: Makefile.tpl
2681 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2682 # However, they still use the build modules, because the corresponding
2683 # host modules (e.g. bison) are only built for the host when bootstrap
2684 # finishes. So:
2685 # - build_subdir is where we find build modules, and never changes.
2686 # - build_libsubdir is where we find build libraries, and can be overridden.
2688 # Prefix 'build-' so this never conflicts with target_subdir.
2689 build_subdir="build-${build_noncanonical}"
2691 # Check whether --with-build-libsubdir was given.
2692 if test "${with_build_libsubdir+set}" = set; then :
2693 withval=$with_build_libsubdir; build_libsubdir="$withval"
2694 else
2695 build_libsubdir="$build_subdir"
2698 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2699 if ( test $srcdir = . && test -d gcc ) \
2700 || test -d $srcdir/../host-${host_noncanonical}; then
2701 host_subdir="host-${host_noncanonical}"
2702 else
2703 host_subdir=.
2705 # No prefix.
2706 target_subdir=${target_noncanonical}
2709 # Check whether --enable-gcov was given.
2710 if test "${enable_gcov+set}" = set; then :
2711 enableval=$enable_gcov;
2712 else
2713 case $target in
2714 bpf-*-*)
2715 enable_gcov=no
2718 enable_gcov=yes
2720 esac
2725 # Calculate toolexeclibdir
2726 # Also toolexecdir, though it's only used in toolexeclibdir
2727 case ${version_specific_libs} in
2728 yes)
2729 # Need the gcc compiler version to know where to install libraries
2730 # and header files if --enable-version-specific-runtime-libs option
2731 # is selected.
2732 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2733 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2736 if test -n "$with_cross_host" &&
2737 test x"$with_cross_host" != x"no"; then
2738 # Install a library built with a cross compiler in tooldir, not libdir.
2739 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2740 case ${with_toolexeclibdir} in
2742 toolexeclibdir='$(toolexecdir)/lib'
2745 toolexeclibdir=${with_toolexeclibdir}
2747 esac
2748 else
2749 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2750 toolexeclibdir='$(libdir)'
2752 multi_os_directory=`$CC -print-multi-os-directory`
2753 case $multi_os_directory in
2754 .) ;; # Avoid trailing /.
2755 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2756 esac
2758 esac
2762 if test -n "$ac_tool_prefix"; then
2763 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2764 set dummy ${ac_tool_prefix}ar; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_prog_AR+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$AR"; then
2771 ac_cv_prog_AR="$AR" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_AR="${ac_tool_prefix}ar"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2786 IFS=$as_save_IFS
2790 AR=$ac_cv_prog_AR
2791 if test -n "$AR"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2793 $as_echo "$AR" >&6; }
2794 else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2801 if test -z "$ac_cv_prog_AR"; then
2802 ac_ct_AR=$AR
2803 # Extract the first word of "ar", so it can be a program name with args.
2804 set dummy ar; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if ${ac_cv_prog_ac_ct_AR+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$ac_ct_AR"; then
2811 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_ac_ct_AR="ar"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2824 done
2825 done
2826 IFS=$as_save_IFS
2830 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2831 if test -n "$ac_ct_AR"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2833 $as_echo "$ac_ct_AR" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2839 if test "x$ac_ct_AR" = x; then
2840 AR=""
2841 else
2842 case $cross_compiling:$ac_tool_warned in
2843 yes:)
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2846 ac_tool_warned=yes ;;
2847 esac
2848 AR=$ac_ct_AR
2850 else
2851 AR="$ac_cv_prog_AR"
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_LIPO+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$LIPO"; then
2863 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2876 done
2877 done
2878 IFS=$as_save_IFS
2882 LIPO=$ac_cv_prog_LIPO
2883 if test -n "$LIPO"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2885 $as_echo "$LIPO" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2893 if test -z "$ac_cv_prog_LIPO"; then
2894 ac_ct_LIPO=$LIPO
2895 # Extract the first word of "lipo", so it can be a program name with args.
2896 set dummy lipo; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$ac_ct_LIPO"; then
2903 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_ac_ct_LIPO="lipo"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2918 IFS=$as_save_IFS
2922 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2923 if test -n "$ac_ct_LIPO"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2925 $as_echo "$ac_ct_LIPO" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2931 if test "x$ac_ct_LIPO" = x; then
2932 LIPO=":"
2933 else
2934 case $cross_compiling:$ac_tool_warned in
2935 yes:)
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2939 esac
2940 LIPO=$ac_ct_LIPO
2942 else
2943 LIPO="$ac_cv_prog_LIPO"
2946 if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}nm; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_NM+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$NM"; then
2955 ac_cv_prog_NM="$NM" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_NM="${ac_tool_prefix}nm"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2968 done
2969 done
2970 IFS=$as_save_IFS
2974 NM=$ac_cv_prog_NM
2975 if test -n "$NM"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2977 $as_echo "$NM" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2985 if test -z "$ac_cv_prog_NM"; then
2986 ac_ct_NM=$NM
2987 # Extract the first word of "nm", so it can be a program name with args.
2988 set dummy nm; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_ac_ct_NM+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$ac_ct_NM"; then
2995 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_NM="nm"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3008 done
3009 done
3010 IFS=$as_save_IFS
3014 ac_ct_NM=$ac_cv_prog_ac_ct_NM
3015 if test -n "$ac_ct_NM"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
3017 $as_echo "$ac_ct_NM" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3023 if test "x$ac_ct_NM" = x; then
3024 NM=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030 ac_tool_warned=yes ;;
3031 esac
3032 NM=$ac_ct_NM
3034 else
3035 NM="$ac_cv_prog_NM"
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_RANLIB+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test -n "$RANLIB"; then
3047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3060 done
3061 done
3062 IFS=$as_save_IFS
3066 RANLIB=$ac_cv_prog_RANLIB
3067 if test -n "$RANLIB"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3069 $as_echo "$RANLIB" >&6; }
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3077 if test -z "$ac_cv_prog_RANLIB"; then
3078 ac_ct_RANLIB=$RANLIB
3079 # Extract the first word of "ranlib", so it can be a program name with args.
3080 set dummy ranlib; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$ac_ct_RANLIB"; then
3087 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_ac_ct_RANLIB="ranlib"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3102 IFS=$as_save_IFS
3106 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3107 if test -n "$ac_ct_RANLIB"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3109 $as_echo "$ac_ct_RANLIB" >&6; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3115 if test "x$ac_ct_RANLIB" = x; then
3116 RANLIB=":"
3117 else
3118 case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3123 esac
3124 RANLIB=$ac_ct_RANLIB
3126 else
3127 RANLIB="$ac_cv_prog_RANLIB"
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3132 set dummy ${ac_tool_prefix}strip; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_STRIP+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$STRIP"; then
3139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3152 done
3153 done
3154 IFS=$as_save_IFS
3158 STRIP=$ac_cv_prog_STRIP
3159 if test -n "$STRIP"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3161 $as_echo "$STRIP" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3169 if test -z "$ac_cv_prog_STRIP"; then
3170 ac_ct_STRIP=$STRIP
3171 # Extract the first word of "strip", so it can be a program name with args.
3172 set dummy strip; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$ac_ct_STRIP"; then
3179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_ac_ct_STRIP="strip"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3192 done
3193 done
3194 IFS=$as_save_IFS
3198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3199 if test -n "$ac_ct_STRIP"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3201 $as_echo "$ac_ct_STRIP" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3207 if test "x$ac_ct_STRIP" = x; then
3208 STRIP=":"
3209 else
3210 case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216 STRIP=$ac_ct_STRIP
3218 else
3219 STRIP="$ac_cv_prog_STRIP"
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3223 $as_echo_n "checking whether ln -s works... " >&6; }
3224 LN_S=$as_ln_s
3225 if test "$LN_S" = "ln -s"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3230 $as_echo "no, using $LN_S" >&6; }
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_CC+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3262 done
3263 done
3264 IFS=$as_save_IFS
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3279 if test -z "$ac_cv_prog_CC"; then
3280 ac_ct_CC=$CC
3281 # Extract the first word of "gcc", so it can be a program name with args.
3282 set dummy gcc; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$ac_ct_CC"; then
3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_CC="gcc"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309 if test -n "$ac_ct_CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3311 $as_echo "$ac_ct_CC" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3317 if test "x$ac_ct_CC" = x; then
3318 CC=""
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321 yes:)
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned=yes ;;
3325 esac
3326 CC=$ac_ct_CC
3328 else
3329 CC="$ac_cv_prog_CC"
3332 if test -z "$CC"; then
3333 if test -n "$ac_tool_prefix"; then
3334 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}cc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CC+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_CC="${ac_tool_prefix}cc"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3355 done
3356 done
3357 IFS=$as_save_IFS
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3373 if test -z "$CC"; then
3374 # Extract the first word of "cc", so it can be a program name with args.
3375 set dummy cc; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_CC+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 if test -n "$CC"; then
3382 ac_cv_prog_CC="$CC" # Let the user override the test.
3383 else
3384 ac_prog_rejected=no
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3393 ac_prog_rejected=yes
3394 continue
3396 ac_cv_prog_CC="cc"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3400 done
3401 done
3402 IFS=$as_save_IFS
3404 if test $ac_prog_rejected = yes; then
3405 # We found a bogon in the path, so make sure we never use it.
3406 set dummy $ac_cv_prog_CC
3407 shift
3408 if test $# != 0; then
3409 # We chose a different compiler from the bogus one.
3410 # However, it has the same basename, so the bogon will be chosen
3411 # first if we set CC to just the basename; use the full file name.
3412 shift
3413 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3429 if test -z "$CC"; then
3430 if test -n "$ac_tool_prefix"; then
3431 for ac_prog in cl.exe
3433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_CC+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3454 done
3455 done
3456 IFS=$as_save_IFS
3460 CC=$ac_cv_prog_CC
3461 if test -n "$CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 $as_echo "$CC" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3470 test -n "$CC" && break
3471 done
3473 if test -z "$CC"; then
3474 ac_ct_CC=$CC
3475 for ac_prog in cl.exe
3477 # Extract the first word of "$ac_prog", so it can be a program name with args.
3478 set dummy $ac_prog; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$ac_ct_CC"; then
3485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_ac_ct_CC="$ac_prog"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3498 done
3499 done
3500 IFS=$as_save_IFS
3504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3505 if test -n "$ac_ct_CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3507 $as_echo "$ac_ct_CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3514 test -n "$ac_ct_CC" && break
3515 done
3517 if test "x$ac_ct_CC" = x; then
3518 CC=""
3519 else
3520 case $cross_compiling:$ac_tool_warned in
3521 yes:)
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524 ac_tool_warned=yes ;;
3525 esac
3526 CC=$ac_ct_CC
3533 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "no acceptable C compiler found in \$PATH
3536 See \`config.log' for more details" "$LINENO" 5; }
3538 # Provide some information about the compiler.
3539 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3540 set X $ac_compile
3541 ac_compiler=$2
3542 for ac_option in --version -v -V -qversion; do
3543 { { ac_try="$ac_compiler $ac_option >&5"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3551 ac_status=$?
3552 if test -s conftest.err; then
3553 sed '10a\
3554 ... rest of stderr output deleted ...
3555 10q' conftest.err >conftest.er1
3556 cat conftest.er1 >&5
3558 rm -f conftest.er1 conftest.err
3559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560 test $ac_status = 0; }
3561 done
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565 #include <stdio.h>
3567 main ()
3569 printf ("hello world\n");
3571 return 0;
3573 _ACEOF
3574 # FIXME: Cleanup?
3575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3576 (eval $ac_link) 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; then :
3580 gcc_no_link=no
3581 else
3582 gcc_no_link=yes
3584 if test x$gcc_no_link = xyes; then
3585 # Setting cross_compile will disable run tests; it will
3586 # also disable AC_CHECK_FILE but that's generally
3587 # correct if we can't link.
3588 cross_compiling=yes
3589 EXEEXT=
3590 else
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3595 main ()
3599 return 0;
3601 _ACEOF
3602 ac_clean_files_save=$ac_clean_files
3603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3604 # Try to create an executable without -o first, disregard a.out.
3605 # It will help us diagnose broken compilers, and finding out an intuition
3606 # of exeext.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3608 $as_echo_n "checking whether the C compiler works... " >&6; }
3609 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3611 # The possible output files:
3612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3614 ac_rmfiles=
3615 for ac_file in $ac_files
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3620 esac
3621 done
3622 rm -f $ac_rmfiles
3624 if { { ac_try="$ac_link_default"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_link_default") 2>&5
3632 ac_status=$?
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3639 # Autoconf.
3640 for ac_file in $ac_files ''
3642 test -f "$ac_file" || continue
3643 case $ac_file in
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3646 [ab].out )
3647 # We found the default executable, but exeext='' is most
3648 # certainly right.
3649 break;;
3650 *.* )
3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3652 then :; else
3653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 # We set ac_cv_exeext here because the later test for it is not
3656 # safe: cross compilers may not add the suffix if given an `-o'
3657 # argument, so we may need to know it at that point already.
3658 # Even if this section looks crufty: it has the advantage of
3659 # actually working.
3660 break;;
3662 break;;
3663 esac
3664 done
3665 test "$ac_cv_exeext" = no && ac_cv_exeext=
3667 else
3668 ac_file=''
3670 if test -z "$ac_file"; then :
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error 77 "C compiler cannot create executables
3679 See \`config.log' for more details" "$LINENO" 5; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3682 $as_echo "yes" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3685 $as_echo_n "checking for C compiler default output file name... " >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3687 $as_echo "$ac_file" >&6; }
3688 ac_exeext=$ac_cv_exeext
3690 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3691 ac_clean_files=$ac_clean_files_save
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3693 $as_echo_n "checking for suffix of executables... " >&6; }
3694 if { { ac_try="$ac_link"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_link") 2>&5
3702 ac_status=$?
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }; then :
3705 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3706 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3707 # work properly (i.e., refer to `conftest.exe'), while it won't with
3708 # `rm'.
3709 for ac_file in conftest.exe conftest conftest.*; do
3710 test -f "$ac_file" || continue
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714 break;;
3715 * ) break;;
3716 esac
3717 done
3718 else
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3722 See \`config.log' for more details" "$LINENO" 5; }
3724 rm -f conftest conftest$ac_cv_exeext
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3726 $as_echo "$ac_cv_exeext" >&6; }
3728 rm -f conftest.$ac_ext
3729 EXEEXT=$ac_cv_exeext
3730 ac_exeext=$EXEEXT
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733 #include <stdio.h>
3735 main ()
3737 FILE *f = fopen ("conftest.out", "w");
3738 return ferror (f) || fclose (f) != 0;
3741 return 0;
3743 _ACEOF
3744 ac_clean_files="$ac_clean_files conftest.out"
3745 # Check that the compiler produces executables we can run. If not, either
3746 # the compiler is broken, or we cross compile.
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3748 $as_echo_n "checking whether we are cross compiling... " >&6; }
3749 if test "$cross_compiling" != yes; then
3750 { { ac_try="$ac_link"
3751 case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link") 2>&5
3758 ac_status=$?
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }
3761 if { ac_try='./conftest$ac_cv_exeext'
3762 { { case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_try") 2>&5
3769 ac_status=$?
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; }; then
3772 cross_compiling=no
3773 else
3774 if test "$cross_compiling" = maybe; then
3775 cross_compiling=yes
3776 else
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot run C compiled programs.
3780 If you meant to cross compile, use \`--host'.
3781 See \`config.log' for more details" "$LINENO" 5; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3786 $as_echo "$cross_compiling" >&6; }
3788 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3789 ac_clean_files=$ac_clean_files_save
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3792 $as_echo_n "checking for suffix of object files... " >&6; }
3793 if ${ac_cv_objext+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3800 main ()
3804 return 0;
3806 _ACEOF
3807 rm -f conftest.o conftest.obj
3808 if { { ac_try="$ac_compile"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compile") 2>&5
3816 ac_status=$?
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }; then :
3819 for ac_file in conftest.o conftest.obj conftest.*; do
3820 test -f "$ac_file" || continue;
3821 case $ac_file in
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3823 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3824 break;;
3825 esac
3826 done
3827 else
3828 $as_echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833 as_fn_error $? "cannot compute suffix of object files: cannot compile
3834 See \`config.log' for more details" "$LINENO" 5; }
3836 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3839 $as_echo "$ac_cv_objext" >&6; }
3840 OBJEXT=$ac_cv_objext
3841 ac_objext=$OBJEXT
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3843 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3844 if ${ac_cv_c_compiler_gnu+:} false; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3851 main ()
3853 #ifndef __GNUC__
3854 choke me
3855 #endif
3858 return 0;
3860 _ACEOF
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_compiler_gnu=yes
3863 else
3864 ac_compiler_gnu=no
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3871 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3872 if test $ac_compiler_gnu = yes; then
3873 GCC=yes
3874 else
3875 GCC=
3877 ac_test_CFLAGS=${CFLAGS+set}
3878 ac_save_CFLAGS=$CFLAGS
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3880 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3881 if ${ac_cv_prog_cc_g+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 ac_save_c_werror_flag=$ac_c_werror_flag
3885 ac_c_werror_flag=yes
3886 ac_cv_prog_cc_g=no
3887 CFLAGS="-g"
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3892 main ()
3896 return 0;
3898 _ACEOF
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_cv_prog_cc_g=yes
3901 else
3902 CFLAGS=""
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3907 main ()
3911 return 0;
3913 _ACEOF
3914 if ac_fn_c_try_compile "$LINENO"; then :
3916 else
3917 ac_c_werror_flag=$ac_save_c_werror_flag
3918 CFLAGS="-g"
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3923 main ()
3927 return 0;
3929 _ACEOF
3930 if ac_fn_c_try_compile "$LINENO"; then :
3931 ac_cv_prog_cc_g=yes
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 ac_c_werror_flag=$ac_save_c_werror_flag
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3941 $as_echo "$ac_cv_prog_cc_g" >&6; }
3942 if test "$ac_test_CFLAGS" = set; then
3943 CFLAGS=$ac_save_CFLAGS
3944 elif test $ac_cv_prog_cc_g = yes; then
3945 if test "$GCC" = yes; then
3946 CFLAGS="-g -O2"
3947 else
3948 CFLAGS="-g"
3950 else
3951 if test "$GCC" = yes; then
3952 CFLAGS="-O2"
3953 else
3954 CFLAGS=
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3958 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3959 if ${ac_cv_prog_cc_c89+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 ac_cv_prog_cc_c89=no
3963 ac_save_CC=$CC
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #include <stdarg.h>
3967 #include <stdio.h>
3968 struct stat;
3969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3970 struct buf { int x; };
3971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3972 static char *e (p, i)
3973 char **p;
3974 int i;
3976 return p[i];
3978 static char *f (char * (*g) (char **, int), char **p, ...)
3980 char *s;
3981 va_list v;
3982 va_start (v,p);
3983 s = g (p, va_arg (v,int));
3984 va_end (v);
3985 return s;
3988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3989 function prototypes and stuff, but not '\xHH' hex character constants.
3990 These don't provoke an error unfortunately, instead are silently treated
3991 as 'x'. The following induces an error, until -std is added to get
3992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3993 array size at least. It's necessary to write '\x00'==0 to get something
3994 that's true only with -std. */
3995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3998 inside strings and character constants. */
3999 #define FOO(x) 'x'
4000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4002 int test (int i, double x);
4003 struct s1 {int (*f) (int a);};
4004 struct s2 {int (*f) (double a);};
4005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4006 int argc;
4007 char **argv;
4009 main ()
4011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4013 return 0;
4015 _ACEOF
4016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4017 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4019 CC="$ac_save_CC $ac_arg"
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_prog_cc_c89=$ac_arg
4023 rm -f core conftest.err conftest.$ac_objext
4024 test "x$ac_cv_prog_cc_c89" != "xno" && break
4025 done
4026 rm -f conftest.$ac_ext
4027 CC=$ac_save_CC
4030 # AC_CACHE_VAL
4031 case "x$ac_cv_prog_cc_c89" in
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4034 $as_echo "none needed" >&6; } ;;
4035 xno)
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4037 $as_echo "unsupported" >&6; } ;;
4039 CC="$CC $ac_cv_prog_cc_c89"
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4042 esac
4043 if test "x$ac_cv_prog_cc_c89" != xno; then :
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 ac_ext=c
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4059 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4060 # On Suns, sometimes $CPP names a directory.
4061 if test -n "$CPP" && test -d "$CPP"; then
4062 CPP=
4064 if test -z "$CPP"; then
4065 if ${ac_cv_prog_CPP+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 # Double quotes because CPP needs to be expanded
4069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4071 ac_preproc_ok=false
4072 for ac_c_preproc_warn_flag in '' yes
4074 # Use a header file that comes with gcc, so configuring glibc
4075 # with a fresh cross-compiler works.
4076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4077 # <limits.h> exists even on freestanding compilers.
4078 # On the NeXT, cc -E runs the code through the compiler's parser,
4079 # not just through cpp. "Syntax error" is here to catch this case.
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #ifdef __STDC__
4083 # include <limits.h>
4084 #else
4085 # include <assert.h>
4086 #endif
4087 Syntax error
4088 _ACEOF
4089 if ac_fn_c_try_cpp "$LINENO"; then :
4091 else
4092 # Broken: fails on valid input.
4093 continue
4095 rm -f conftest.err conftest.i conftest.$ac_ext
4097 # OK, works on sane cases. Now check whether nonexistent headers
4098 # can be detected and how.
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <ac_nonexistent.h>
4102 _ACEOF
4103 if ac_fn_c_try_cpp "$LINENO"; then :
4104 # Broken: success on invalid input.
4105 continue
4106 else
4107 # Passes both tests.
4108 ac_preproc_ok=:
4109 break
4111 rm -f conftest.err conftest.i conftest.$ac_ext
4113 done
4114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4115 rm -f conftest.i conftest.err conftest.$ac_ext
4116 if $ac_preproc_ok; then :
4117 break
4120 done
4121 ac_cv_prog_CPP=$CPP
4124 CPP=$ac_cv_prog_CPP
4125 else
4126 ac_cv_prog_CPP=$CPP
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4129 $as_echo "$CPP" >&6; }
4130 ac_preproc_ok=false
4131 for ac_c_preproc_warn_flag in '' yes
4133 # Use a header file that comes with gcc, so configuring glibc
4134 # with a fresh cross-compiler works.
4135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136 # <limits.h> exists even on freestanding compilers.
4137 # On the NeXT, cc -E runs the code through the compiler's parser,
4138 # not just through cpp. "Syntax error" is here to catch this case.
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #ifdef __STDC__
4142 # include <limits.h>
4143 #else
4144 # include <assert.h>
4145 #endif
4146 Syntax error
4147 _ACEOF
4148 if ac_fn_c_try_cpp "$LINENO"; then :
4150 else
4151 # Broken: fails on valid input.
4152 continue
4154 rm -f conftest.err conftest.i conftest.$ac_ext
4156 # OK, works on sane cases. Now check whether nonexistent headers
4157 # can be detected and how.
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 #include <ac_nonexistent.h>
4161 _ACEOF
4162 if ac_fn_c_try_cpp "$LINENO"; then :
4163 # Broken: success on invalid input.
4164 continue
4165 else
4166 # Passes both tests.
4167 ac_preproc_ok=:
4168 break
4170 rm -f conftest.err conftest.i conftest.$ac_ext
4172 done
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.i conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then :
4177 else
4178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4180 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4181 See \`config.log' for more details" "$LINENO" 5; }
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191 ac_c_preproc_warn_flag=yes
4194 # Check whether --enable-largefile was given.
4195 if test "${enable_largefile+set}" = set; then :
4196 enableval=$enable_largefile;
4199 if test "$enable_largefile" != no; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4202 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4203 if ${ac_cv_sys_largefile_CC+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 ac_cv_sys_largefile_CC=no
4207 if test "$GCC" != yes; then
4208 ac_save_CC=$CC
4209 while :; do
4210 # IRIX 6.2 and later do not support large files by default,
4211 # so use the C compiler's -n32 option if that helps.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #include <sys/types.h>
4215 /* Check that off_t can represent 2**63 - 1 correctly.
4216 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4217 since some C++ compilers masquerading as C compilers
4218 incorrectly reject 9223372036854775807. */
4219 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4221 && LARGE_OFF_T % 2147483647 == 1)
4222 ? 1 : -1];
4224 main ()
4228 return 0;
4230 _ACEOF
4231 if ac_fn_c_try_compile "$LINENO"; then :
4232 break
4234 rm -f core conftest.err conftest.$ac_objext
4235 CC="$CC -n32"
4236 if ac_fn_c_try_compile "$LINENO"; then :
4237 ac_cv_sys_largefile_CC=' -n32'; break
4239 rm -f core conftest.err conftest.$ac_objext
4240 break
4241 done
4242 CC=$ac_save_CC
4243 rm -f conftest.$ac_ext
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4247 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4248 if test "$ac_cv_sys_largefile_CC" != no; then
4249 CC=$CC$ac_cv_sys_largefile_CC
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4253 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4254 if ${ac_cv_sys_file_offset_bits+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 while :; do
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <sys/types.h>
4261 /* Check that off_t can represent 2**63 - 1 correctly.
4262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4263 since some C++ compilers masquerading as C compilers
4264 incorrectly reject 9223372036854775807. */
4265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4267 && LARGE_OFF_T % 2147483647 == 1)
4268 ? 1 : -1];
4270 main ()
4274 return 0;
4276 _ACEOF
4277 if ac_fn_c_try_compile "$LINENO"; then :
4278 ac_cv_sys_file_offset_bits=no; break
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #define _FILE_OFFSET_BITS 64
4284 #include <sys/types.h>
4285 /* Check that off_t can represent 2**63 - 1 correctly.
4286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4287 since some C++ compilers masquerading as C compilers
4288 incorrectly reject 9223372036854775807. */
4289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4291 && LARGE_OFF_T % 2147483647 == 1)
4292 ? 1 : -1];
4294 main ()
4298 return 0;
4300 _ACEOF
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_sys_file_offset_bits=64; break
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_cv_sys_file_offset_bits=unknown
4306 break
4307 done
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4310 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4311 case $ac_cv_sys_file_offset_bits in #(
4312 no | unknown) ;;
4314 cat >>confdefs.h <<_ACEOF
4315 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4316 _ACEOF
4318 esac
4319 rm -rf conftest*
4320 if test $ac_cv_sys_file_offset_bits = unknown; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4322 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4323 if ${ac_cv_sys_large_files+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 while :; do
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #include <sys/types.h>
4330 /* Check that off_t can represent 2**63 - 1 correctly.
4331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4332 since some C++ compilers masquerading as C compilers
4333 incorrectly reject 9223372036854775807. */
4334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4336 && LARGE_OFF_T % 2147483647 == 1)
4337 ? 1 : -1];
4339 main ()
4343 return 0;
4345 _ACEOF
4346 if ac_fn_c_try_compile "$LINENO"; then :
4347 ac_cv_sys_large_files=no; break
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #define _LARGE_FILES 1
4353 #include <sys/types.h>
4354 /* Check that off_t can represent 2**63 - 1 correctly.
4355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4356 since some C++ compilers masquerading as C compilers
4357 incorrectly reject 9223372036854775807. */
4358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4360 && LARGE_OFF_T % 2147483647 == 1)
4361 ? 1 : -1];
4363 main ()
4367 return 0;
4369 _ACEOF
4370 if ac_fn_c_try_compile "$LINENO"; then :
4371 ac_cv_sys_large_files=1; break
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 ac_cv_sys_large_files=unknown
4375 break
4376 done
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4379 $as_echo "$ac_cv_sys_large_files" >&6; }
4380 case $ac_cv_sys_large_files in #(
4381 no | unknown) ;;
4383 cat >>confdefs.h <<_ACEOF
4384 #define _LARGE_FILES $ac_cv_sys_large_files
4385 _ACEOF
4387 esac
4388 rm -rf conftest*
4396 # The cast to long int works around a bug in the HP C Compiler
4397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4399 # This bug is HP SR number 8606223364.
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4401 $as_echo_n "checking size of double... " >&6; }
4402 if ${ac_cv_sizeof_double+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4407 else
4408 if test "$ac_cv_type_double" = yes; then
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error 77 "cannot compute sizeof (double)
4412 See \`config.log' for more details" "$LINENO" 5; }
4413 else
4414 ac_cv_sizeof_double=0
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4420 $as_echo "$ac_cv_sizeof_double" >&6; }
4424 cat >>confdefs.h <<_ACEOF
4425 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4426 _ACEOF
4429 # The cast to long int works around a bug in the HP C Compiler
4430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4432 # This bug is HP SR number 8606223364.
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4434 $as_echo_n "checking size of long double... " >&6; }
4435 if ${ac_cv_sizeof_long_double+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4440 else
4441 if test "$ac_cv_type_long_double" = yes; then
4442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444 as_fn_error 77 "cannot compute sizeof (long double)
4445 See \`config.log' for more details" "$LINENO" 5; }
4446 else
4447 ac_cv_sizeof_long_double=0
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4453 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4457 cat >>confdefs.h <<_ACEOF
4458 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4459 _ACEOF
4462 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4463 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4468 for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
4469 unistd.h sys/stat.h sys/types.h \
4470 string.h strings.h memory.h sys/auxv.h sys/mman.h
4471 do :
4472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4473 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
4474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4475 cat >>confdefs.h <<_ACEOF
4476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4477 _ACEOF
4480 done
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4483 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4484 if ${ac_cv_path_GREP+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -z "$GREP"; then
4488 ac_path_GREP_found=false
4489 # Loop through the user's path and test for each of PROGNAME-LIST
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_prog in grep ggrep; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4498 as_fn_executable_p "$ac_path_GREP" || continue
4499 # Check for GNU ac_path_GREP and select it if it is found.
4500 # Check for GNU $ac_path_GREP
4501 case `"$ac_path_GREP" --version 2>&1` in
4502 *GNU*)
4503 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4505 ac_count=0
4506 $as_echo_n 0123456789 >"conftest.in"
4507 while :
4509 cat "conftest.in" "conftest.in" >"conftest.tmp"
4510 mv "conftest.tmp" "conftest.in"
4511 cp "conftest.in" "conftest.nl"
4512 $as_echo 'GREP' >> "conftest.nl"
4513 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4515 as_fn_arith $ac_count + 1 && ac_count=$as_val
4516 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4517 # Best one so far, save it but keep looking for a better one
4518 ac_cv_path_GREP="$ac_path_GREP"
4519 ac_path_GREP_max=$ac_count
4521 # 10*(2^10) chars as input seems more than enough
4522 test $ac_count -gt 10 && break
4523 done
4524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4525 esac
4527 $ac_path_GREP_found && break 3
4528 done
4529 done
4530 done
4531 IFS=$as_save_IFS
4532 if test -z "$ac_cv_path_GREP"; then
4533 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4535 else
4536 ac_cv_path_GREP=$GREP
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4541 $as_echo "$ac_cv_path_GREP" >&6; }
4542 GREP="$ac_cv_path_GREP"
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4546 $as_echo_n "checking for egrep... " >&6; }
4547 if ${ac_cv_path_EGREP+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4551 then ac_cv_path_EGREP="$GREP -E"
4552 else
4553 if test -z "$EGREP"; then
4554 ac_path_EGREP_found=false
4555 # Loop through the user's path and test for each of PROGNAME-LIST
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_prog in egrep; do
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4564 as_fn_executable_p "$ac_path_EGREP" || continue
4565 # Check for GNU ac_path_EGREP and select it if it is found.
4566 # Check for GNU $ac_path_EGREP
4567 case `"$ac_path_EGREP" --version 2>&1` in
4568 *GNU*)
4569 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4571 ac_count=0
4572 $as_echo_n 0123456789 >"conftest.in"
4573 while :
4575 cat "conftest.in" "conftest.in" >"conftest.tmp"
4576 mv "conftest.tmp" "conftest.in"
4577 cp "conftest.in" "conftest.nl"
4578 $as_echo 'EGREP' >> "conftest.nl"
4579 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4581 as_fn_arith $ac_count + 1 && ac_count=$as_val
4582 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4583 # Best one so far, save it but keep looking for a better one
4584 ac_cv_path_EGREP="$ac_path_EGREP"
4585 ac_path_EGREP_max=$ac_count
4587 # 10*(2^10) chars as input seems more than enough
4588 test $ac_count -gt 10 && break
4589 done
4590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4591 esac
4593 $ac_path_EGREP_found && break 3
4594 done
4595 done
4596 done
4597 IFS=$as_save_IFS
4598 if test -z "$ac_cv_path_EGREP"; then
4599 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4601 else
4602 ac_cv_path_EGREP=$EGREP
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4608 $as_echo "$ac_cv_path_EGREP" >&6; }
4609 EGREP="$ac_cv_path_EGREP"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4613 $as_echo_n "checking for ANSI C header files... " >&6; }
4614 if ${ac_cv_header_stdc+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #include <stdlib.h>
4620 #include <stdarg.h>
4621 #include <string.h>
4622 #include <float.h>
4625 main ()
4629 return 0;
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_header_stdc=yes
4634 else
4635 ac_cv_header_stdc=no
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 if test $ac_cv_header_stdc = yes; then
4640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <string.h>
4645 _ACEOF
4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647 $EGREP "memchr" >/dev/null 2>&1; then :
4649 else
4650 ac_cv_header_stdc=no
4652 rm -f conftest*
4656 if test $ac_cv_header_stdc = yes; then
4657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #include <stdlib.h>
4662 _ACEOF
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "free" >/dev/null 2>&1; then :
4666 else
4667 ac_cv_header_stdc=no
4669 rm -f conftest*
4673 if test $ac_cv_header_stdc = yes; then
4674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4675 if test "$cross_compiling" = yes; then :
4677 else
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #include <ctype.h>
4681 #include <stdlib.h>
4682 #if ((' ' & 0x0FF) == 0x020)
4683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4685 #else
4686 # define ISLOWER(c) \
4687 (('a' <= (c) && (c) <= 'i') \
4688 || ('j' <= (c) && (c) <= 'r') \
4689 || ('s' <= (c) && (c) <= 'z'))
4690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4691 #endif
4693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4695 main ()
4697 int i;
4698 for (i = 0; i < 256; i++)
4699 if (XOR (islower (i), ISLOWER (i))
4700 || toupper (i) != TOUPPER (i))
4701 return 2;
4702 return 0;
4704 _ACEOF
4705 if ac_fn_c_try_run "$LINENO"; then :
4707 else
4708 ac_cv_header_stdc=no
4710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4711 conftest.$ac_objext conftest.beam conftest.$ac_ext
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4717 $as_echo "$ac_cv_header_stdc" >&6; }
4718 if test $ac_cv_header_stdc = yes; then
4720 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4725 # Check for decimal float support.
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4727 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4728 if ${libgcc_cv_dfp+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4734 #include <fenv.h>
4737 main ()
4740 _Decimal32 x;
4741 int fe_except =
4742 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4745 return 0;
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 libgcc_cv_dfp=yes
4750 else
4751 libgcc_cv_dfp=no
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4756 $as_echo "$libgcc_cv_dfp" >&6; }
4757 decimal_float=$libgcc_cv_dfp
4761 # Check whether --enable-decimal-float was given.
4762 if test "${enable_decimal_float+set}" = set; then :
4763 enableval=$enable_decimal_float;
4764 case $enable_decimal_float in
4765 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4766 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4767 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4768 esac
4770 else
4772 case $host in
4773 aarch64* | \
4774 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4775 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
4776 i?86*-*-mingw* | x86_64*-*-mingw* | \
4777 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4778 enable_decimal_float=yes
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4782 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4783 enable_decimal_float=no
4785 esac
4790 # x86's use BID format instead of DPD
4791 case x$enable_decimal_float in
4792 xyes)
4793 case $host in
4794 aarch64* | i?86*-*-* | x86_64*-*-*)
4795 enable_decimal_float=bid
4798 enable_decimal_float=dpd
4800 esac
4801 default_decimal_float=$enable_decimal_float
4803 xno)
4804 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4805 # dependency on libdecnumber.
4806 default_decimal_float=dpd
4808 esac
4813 # Check for fixed-point support.
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4815 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4816 if ${libgcc_cv_fixed_point+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821 _Sat _Fract x;
4822 _ACEOF
4823 if ac_fn_c_try_compile "$LINENO"; then :
4824 libgcc_cv_fixed_point=yes
4825 else
4826 libgcc_cv_fixed_point=no
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4831 $as_echo "$libgcc_cv_fixed_point" >&6; }
4832 fixed_point=$libgcc_cv_fixed_point
4835 # For platforms with the unwind ABI which includes an unwind library,
4836 # libunwind, we can choose to use the system libunwind.
4837 # config.gcc also contains tests of with_system_libunwind.
4840 # Check whether --with-system-libunwind was given.
4841 if test "${with_system_libunwind+set}" = set; then :
4842 withval=$with_system_libunwind;
4845 # If system-libunwind was not specifically set, pick a default setting.
4846 if test x$with_system_libunwind = x; then
4847 case ${target} in
4848 ia64-*-hpux*) with_system_libunwind=yes ;;
4849 *) with_system_libunwind=no ;;
4850 esac
4852 # Based on system-libunwind and target, do we have ipinfo?
4853 if test x$with_system_libunwind = xyes; then
4854 case ${target} in
4855 ia64-*-*) have_unwind_getipinfo=no ;;
4856 *) have_unwind_getipinfo=yes ;;
4857 esac
4858 else
4859 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4861 case ${target} in
4862 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4863 *) have_unwind_getipinfo=yes ;;
4864 esac
4868 if test x$have_unwind_getipinfo = xyes; then
4870 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4875 # Check if the compiler is configured for setjmp/longjmp exceptions.
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
4877 $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
4878 if ${ac_cv_sjlj_exceptions+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #ifdef __USING_SJLJ_EXCEPTIONS__
4884 this will fail
4885 #endif
4887 main ()
4889 int i;
4891 return 0;
4893 _ACEOF
4894 if ac_fn_c_try_compile "$LINENO"; then :
4895 ac_cv_sjlj_exceptions=no
4896 else
4897 ac_cv_sjlj_exceptions=yes
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
4902 $as_echo "$ac_cv_sjlj_exceptions" >&6; }
4904 # Check whether --enable-cet was given.
4905 if test "${enable_cet+set}" = set; then :
4906 enableval=$enable_cet;
4907 case "$enableval" in
4908 yes|no|auto) ;;
4909 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4910 esac
4912 else
4913 enable_cet=auto
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4918 $as_echo_n "checking for CET support... " >&6; }
4920 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4921 case "$host" in
4922 i[34567]86-*-linux* | x86_64-*-linux*)
4923 case "$enable_cet" in
4924 auto)
4925 # Check if target supports multi-byte NOPs
4926 # and if compiler and assembler support CET insn.
4927 cet_save_CFLAGS="$CFLAGS"
4928 CFLAGS="$CFLAGS -fcf-protection"
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4933 main ()
4936 #if !defined(__SSE2__)
4937 #error target does not support multi-byte NOPs
4938 #else
4939 asm ("setssbsy");
4940 #endif
4943 return 0;
4945 _ACEOF
4946 if ac_fn_c_try_compile "$LINENO"; then :
4947 enable_cet=yes
4948 else
4949 enable_cet=no
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 CFLAGS="$cet_save_CFLAGS"
4954 yes)
4955 # Check if assembler supports CET.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4960 main ()
4962 asm ("setssbsy");
4964 return 0;
4966 _ACEOF
4967 if ac_fn_c_try_compile "$LINENO"; then :
4969 else
4970 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 esac
4977 enable_cet=no
4979 esac
4980 if test x$enable_cet = xyes; then
4981 CET_FLAGS="-fcf-protection -mshstk"
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4983 $as_echo "yes" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4991 # Check whether --enable-explicit-exception-frame-registration was given.
4992 if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4993 enableval=$enable_explicit_exception_frame_registration;
4994 force_explicit_eh_registry=
4995 if test "$enable_explicit_exception_frame_registration" = yes; then
4996 if test $ac_cv_sjlj_exceptions = yes; then
4997 as_fn_error $? "Can't --enable-explicit-exception-frame-registration
4998 with setjmp/longjmp exceptions" "$LINENO" 5
5000 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
5007 # Check whether --enable-tm-clone-registry was given.
5008 if test "${enable_tm_clone_registry+set}" = set; then :
5009 enableval=$enable_tm_clone_registry;
5010 use_tm_clone_registry=
5011 if test "$enable_tm_clone_registry" = no; then
5012 use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
5015 else
5017 use_tm_clone_registry=
5018 case $target in
5019 msp430*elfbare)
5020 use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
5022 esac
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5029 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5030 if ${acl_cv_prog_gnu_ld+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5034 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
5035 acl_cv_prog_gnu_ld=yes
5036 else
5037 acl_cv_prog_gnu_ld=no
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5041 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5042 with_gnu_ld=$acl_cv_prog_gnu_ld
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
5046 $as_echo_n "checking for thread model used by GCC... " >&6; }
5047 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
5049 $as_echo "$target_thread_file" >&6; }
5051 # Check for assembler CFI support.
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
5053 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
5054 if ${libgcc_cv_cfi+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 asm("\n\
5060 .text\n\
5061 .cfi_startproc\n\
5062 .cfi_personality 0, symbol\n\
5063 .cfi_endproc");
5064 _ACEOF
5065 if ac_fn_c_try_compile "$LINENO"; then :
5066 libgcc_cv_cfi=yes
5067 else
5068 libgcc_cv_cfi=no
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
5073 $as_echo "$libgcc_cv_cfi" >&6; }
5075 # Check 32bit or 64bit. In the case of MIPS, this really determines the
5076 # word size rather than the address size.
5077 cat > conftest.c <<EOF
5078 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
5079 || defined(__mips64) || defined(__loongarch64)
5080 host_address=64
5081 #else
5082 host_address=32
5083 #endif
5085 eval `${CC-cc} -E conftest.c | grep host_address=`
5086 rm -f conftest.c
5088 case ${host} in
5089 mips*-*-*)
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
5091 $as_echo_n "checking whether the target is hard-float... " >&6; }
5092 if ${libgcc_cv_mips_hard_float+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5097 #ifndef __mips_hard_float
5098 #error FOO
5099 #endif
5101 _ACEOF
5102 if ac_fn_c_try_compile "$LINENO"; then :
5103 libgcc_cv_mips_hard_float=yes
5104 else
5105 libgcc_cv_mips_hard_float=no
5107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
5110 $as_echo "$libgcc_cv_mips_hard_float" >&6; }
5111 esac
5113 case ${host} in
5114 *-*-solaris2*)
5115 # Check for system-provided CRTs on Solaris 11.4.
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
5117 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
5118 if ${libgcc_cv_solaris_crts+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 libgcc_cv_solaris_crts=no
5122 libgcc_sysroot="`${CC} -print-sysroot`"
5123 libgcc_libdir="$libgcc_sysroot/usr/lib"
5124 # At the time they were added, gcrt1.o became a symlink for backwards
5125 # compatibility on x86, while crt1.o was added on sparc, so check for that.
5126 case ${host} in
5127 i?86-*-solaris2* | x86_64-*-solaris2*)
5128 if test -h "$libgcc_libdir/gcrt1.o"; then libgcc_cv_solaris_crts=yes; fi
5130 sparc*-*-solaris2*)
5131 if test -f "$libgcc_libdir/crt1.o"; then libgcc_cv_solaris_crts=yes; fi
5133 esac
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_solaris_crts" >&5
5136 $as_echo "$libgcc_cv_solaris_crts" >&6; }
5137 if test $libgcc_cv_solaris_crts = yes; then
5139 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
5143 esac
5145 # Determine the version of glibc, if any, used on the target.
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
5147 $as_echo_n "checking for target glibc version... " >&6; }
5149 # Check whether --with-glibc-version was given.
5150 if test "${with_glibc_version+set}" = set; then :
5151 withval=$with_glibc_version;
5152 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
5153 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
5154 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
5155 else
5156 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
5158 else
5160 if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
5162 else
5163 glibc_version_major=0
5166 if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
5168 else
5169 glibc_version_minor=0
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
5175 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
5177 # Determine floating-point type for powerpc*-*-linux* or vxworks7*.
5178 # Single-precision-only FPRs are not a supported configuration for
5179 # this target, so are not allowed for in this test.
5180 case ${host} in
5181 powerpc*-*-linux* | powerpc*-*-vxworks7*)
5182 cat > conftest.c <<EOF
5183 #ifdef __powerpc64__
5184 ppc_fp_type=64
5185 #elif defined _SOFT_FLOAT
5186 ppc_fp_type=soft
5187 #elif defined _SOFT_DOUBLE
5188 ppc_fp_type=e500v1
5189 #elif defined __NO_FPRS__
5190 ppc_fp_type=e500v2
5191 #else
5192 ppc_fp_type=hard
5193 #endif
5195 eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
5196 rm -f conftest.c
5197 # glibc 2.19 and later provide all the soft-fp functions, with proper
5198 # interactions with <fenv.h> exception and rounding mode handling, so
5199 # make libgcc's versions into compat symbols if a recent enough glibc
5200 # version is being used.
5201 ppc_fp_compat=
5202 case ${ppc_fp_type} in
5203 soft|e500v1|e500v2)
5204 if test $glibc_version_major -gt 2 \
5205 || ( test $glibc_version_major -eq 2 \
5206 && test $glibc_version_minor -ge 19 ); then
5207 ppc_fp_compat="t-softfp-compat"
5210 esac
5212 esac
5214 case ${host} in
5215 # At present, we cannot turn -mfloat128 on via #pragma GCC target, so just
5216 # check if we have VSX (ISA 2.06) support to build the software libraries, and
5217 # whether the assembler can handle xsaddqp for hardware support. Also check if
5218 # a new glibc is being used so that __builtin_cpu_supports can be used.
5219 powerpc*-*-linux*)
5220 saved_CFLAGS="$CFLAGS"
5221 CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128"
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5
5223 $as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; }
5224 if ${libgcc_cv_powerpc_float128+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 vector double dadd (vector double a, vector double b) { return a + b; }
5230 _ACEOF
5231 if ac_fn_c_try_compile "$LINENO"; then :
5232 libgcc_cv_powerpc_float128=yes
5233 else
5234 libgcc_cv_powerpc_float128=no
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5
5239 $as_echo "$libgcc_cv_powerpc_float128" >&6; }
5241 CFLAGS="$CFLAGS -mpower9-vector -mfloat128-hardware"
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5
5243 $as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; }
5244 if ${libgcc_cv_powerpc_float128_hw+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <sys/auxv.h>
5250 #ifndef AT_PLATFORM
5251 #error "AT_PLATFORM is not defined"
5252 #endif
5253 #ifndef __BUILTIN_CPU_SUPPORTS__
5254 #error "__builtin_cpu_supports is not available"
5255 #endif
5256 vector unsigned char add (vector unsigned char a, vector unsigned char b)
5258 vector unsigned char ret;
5259 __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b));
5260 return ret;
5262 void *add_resolver (void) { return (void *) add; }
5263 __float128 add_ifunc (__float128, __float128)
5264 __attribute__ ((__ifunc__ ("add_resolver")));
5265 _ACEOF
5266 if ac_fn_c_try_compile "$LINENO"; then :
5267 libgcc_cv_powerpc_float128_hw=yes
5268 else
5269 libgcc_cv_powerpc_float128_hw=no
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5
5274 $as_echo "$libgcc_cv_powerpc_float128_hw" >&6; }
5275 CFLAGS="$saved_CFLAGS"
5277 saved_CFLAGS="$CFLAGS"
5278 CFLAGS="$CFLAGS -mcpu=power10 -mfloat128-hardware"
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.1 to build hardware __float128 libraries" >&5
5280 $as_echo_n "checking for PowerPC ISA 3.1 to build hardware __float128 libraries... " >&6; }
5281 if ${libgcc_cv_powerpc_3_1_float128_hw+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 #include <sys/auxv.h>
5287 #ifndef AT_PLATFORM
5288 #error "AT_PLATFORM is not defined"
5289 #endif
5290 #ifndef __BUILTIN_CPU_SUPPORTS__
5291 #error "__builtin_cpu_supports is not available"
5292 #endif
5293 vector unsigned char conv (vector unsigned char qs)
5295 vector unsigned char ret;
5296 __asm__ ("xscvsqqp %0,%1" : "=v" (ret) : "v" (qs));
5297 return ret;
5299 void *conv_resolver (void) { return (void *) conv; }
5300 __float128 conv_ifunc (__float128)
5301 __attribute__ ((__ifunc__ ("conv_resolver")));
5302 _ACEOF
5303 if ac_fn_c_try_compile "$LINENO"; then :
5304 libgcc_cv_powerpc_3_1_float128_hw=yes
5305 else
5306 libgcc_cv_powerpc_3_1_float128_hw=no
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_3_1_float128_hw" >&5
5311 $as_echo "$libgcc_cv_powerpc_3_1_float128_hw" >&6; }
5312 CFLAGS="$saved_CFLAGS"
5313 esac
5315 # Collect host-machine-specific information.
5316 . ${srcdir}/config.host
5318 # Used for constructing correct paths for offload compilers.
5319 accel_dir_suffix=
5320 real_host_noncanonical=${host_noncanonical}
5321 if test x"$enable_as_accelerator_for" != x; then
5322 accel_dir_suffix=/accel/${target_noncanonical}
5323 real_host_noncanonical=${enable_as_accelerator_for}
5328 if test x"$enable_offload_targets" != x; then
5329 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o"
5332 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
5333 # This is after config.host so we can augment tmake_file.
5334 # Link with -nostartfiles -nodefaultlibs since neither are present while
5335 # building libgcc.
5336 case ${host} in
5337 i?86-*-solaris2* | x86_64-*-solaris2*)
5338 cat > conftest.s <<EOF
5339 .section .eh_frame,"a",@unwind
5340 .zero 4
5341 .section .jcr,"aw",@progbits
5342 .zero 8
5344 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
5345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5349 test $ac_status = 0; }; }; then
5350 tmake_file="${tmake_file} i386/t-crtstuff"
5353 esac
5355 # Check if Solaris linker support v2 linker mapfile syntax.
5356 # Link with -nostartfiles -nodefaultlibs since neither are present while
5357 # building libgcc.
5358 case ${host} in
5359 *-*-solaris2*)
5360 solaris_ld_v2_maps=no
5361 echo 'int main(void) {return 0;}' > conftest.c
5362 echo '$mapfile_version 2' > conftest.map
5363 if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5'
5364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5368 test $ac_status = 0; }; }; then
5369 solaris_ld_v2_maps=yes
5372 esac
5375 # Check if xtensa target is configured for windowed ABI and thus needs to use
5376 # custom unwind code.
5377 # This is after config.host so we can augment tmake_file.
5378 case ${host} in
5379 xtensa*-*)
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5382 #ifdef __XTENSA_CALL0_ABI__
5383 #error
5384 #endif
5386 _ACEOF
5387 if ac_fn_c_try_compile "$LINENO"; then :
5388 tmake_file="${tmake_file} xtensa/t-windowed"
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 esac
5394 # Check for visibility support. This is after config.host so that
5395 # we can check for asm_hidden_op.
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
5397 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
5398 if ${libgcc_cv_hidden_visibility_attribute+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5402 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
5403 libgcc_cv_hidden_visibility_attribute=no
5404 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5409 test $ac_status = 0; }; }; then
5410 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
5411 libgcc_cv_hidden_visibility_attribute=yes
5414 rm -f conftest.*
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
5418 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
5420 if test $libgcc_cv_hidden_visibility_attribute = yes; then
5421 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
5423 cat >>confdefs.h <<_ACEOF
5424 #define AS_HIDDEN_DIRECTIVE $asm_hidden_op
5425 _ACEOF
5427 else
5428 vis_hide=
5432 # Check for .cfi_sections .debug_frame support.
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5
5434 $as_echo_n "checking for .cfi_sections .debug_frame... " >&6; }
5435 if ${libgcc_cv_cfi_sections_directive+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5439 echo 'int foo (int, char *);' > conftest.c
5440 echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c
5441 libgcc_cv_cfi_sections_directive=no
5442 if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5'
5443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5447 test $ac_status = 0; }; }; then
5448 if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then
5449 libgcc_cv_cfi_sections_directive=yes
5452 rm -f conftest.*
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5
5456 $as_echo "$libgcc_cv_cfi_sections_directive" >&6; }
5457 if test $libgcc_cv_cfi_sections_directive = yes; then
5459 $as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h
5463 # See if we have thread-local storage. We can only test assembler
5464 # since link-time and run-time tests require the newly built
5465 # gcc, which can't be used to build executable due to that libgcc
5466 # is yet to be built here.
5468 # Check whether --enable-tls was given.
5469 if test "${enable_tls+set}" = set; then :
5470 enableval=$enable_tls;
5471 case "$enableval" in
5472 yes|no) ;;
5473 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
5474 esac
5476 else
5477 enable_tls=yes
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
5482 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
5483 if ${gcc_cv_have_cc_tls+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489 __thread int a; int b; int main() { return a = b; }
5490 _ACEOF
5491 if ac_fn_c_try_compile "$LINENO"; then :
5492 gcc_cv_have_cc_tls=yes
5493 else
5494 gcc_cv_have_cc_tls=no
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
5500 $as_echo "$gcc_cv_have_cc_tls" >&6; }
5501 set_have_cc_tls=
5502 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
5503 set_have_cc_tls="-DHAVE_CC_TLS"
5507 # See if we have emulated thread-local storage.
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
5510 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
5511 if ${gcc_cv_use_emutls+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5515 gcc_cv_use_emutls=no
5516 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
5517 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
5518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5522 test $ac_status = 0; }; }; then
5523 if grep __emutls_get_address conftest.s > /dev/null; then
5524 gcc_cv_use_emutls=yes
5527 rm -f conftest.*
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
5531 $as_echo "$gcc_cv_use_emutls" >&6; }
5532 if test "$gcc_cv_use_emutls" = "yes" ; then
5534 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
5537 set_use_emutls=
5538 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
5539 set_use_emutls="-DUSE_EMUTLS"
5545 case "${target}" in
5546 i[34567]86-*-* | x86_64-*-*)
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
5548 $as_echo_n "checking if the assembler supports AVX... " >&6; }
5549 if ${libgcc_cv_as_avx+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5557 main ()
5559 asm("vzeroupper");
5561 return 0;
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 libgcc_cv_as_avx=yes
5566 else
5567 libgcc_cv_as_avx=no
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_avx" >&5
5573 $as_echo "$libgcc_cv_as_avx" >&6; }
5574 if test x$libgcc_cv_as_avx = xyes; then
5576 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
5580 esac
5584 case "${target}" in
5585 aarch64*-*-*)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports LSE" >&5
5587 $as_echo_n "checking if the assembler supports LSE... " >&6; }
5588 if ${libgcc_cv_as_lse+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5596 main ()
5598 asm(".arch armv8-a+lse\n\tcas w0, w1, [x2]");
5601 return 0;
5603 _ACEOF
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605 libgcc_cv_as_lse=yes
5606 else
5607 libgcc_cv_as_lse=no
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_lse" >&5
5613 $as_echo "$libgcc_cv_as_lse" >&6; }
5614 if test x$libgcc_cv_as_lse = xyes; then
5616 $as_echo "#define HAVE_AS_LSE 1" >>confdefs.h
5620 esac
5624 case "${target}" in
5625 aarch64*-*-*)
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if as supports .variant_pcs" >&5
5627 $as_echo_n "checking if as supports .variant_pcs... " >&6; }
5628 if ${libgcc_cv_as_variant_pcs+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5636 main ()
5638 asm (".variant_pcs foobar");
5640 return 0;
5642 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 libgcc_cv_as_variant_pcs=yes
5645 else
5646 libgcc_cv_as_variant_pcs=no
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_variant_pcs" >&5
5652 $as_echo "$libgcc_cv_as_variant_pcs" >&6; }
5653 if test x$libgcc_cv_as_variant_pcs = xyes; then
5655 $as_echo "#define HAVE_AS_VARIANT_PCS 1" >>confdefs.h
5659 esac
5661 # Check __getauxval ABI symbol for CPU feature detection.
5662 case ${target} in
5663 aarch64*-linux-*)
5664 # No link check because the libc may not be present.
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __getauxval" >&5
5666 $as_echo_n "checking for __getauxval... " >&6; }
5667 if ${libgcc_cv_have___getauxval+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 case ${target} in
5671 *-linux-gnu*)
5672 libgcc_cv_have___getauxval=yes
5675 libgcc_cv_have___getauxval=no
5676 esac
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_have___getauxval" >&5
5679 $as_echo "$libgcc_cv_have___getauxval" >&6; }
5680 if test x$libgcc_cv_have___getauxval = xyes; then
5682 $as_echo "#define HAVE___GETAUXVAL 1" >>confdefs.h
5685 esac
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
5688 $as_echo_n "checking for init priority support... " >&6; }
5689 if ${libgcc_cv_init_priority+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5697 main ()
5699 void ip (void) __attribute__ ((constructor (1)));
5701 return 0;
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705 libgcc_cv_init_priority=yes
5706 else
5707 libgcc_cv_init_priority=no
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
5712 $as_echo "$libgcc_cv_init_priority" >&6; }
5713 if test $libgcc_cv_init_priority = yes; then
5715 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
5719 # Conditionalize the sfp-machine.h header for this target machine.
5720 if test -z "${sfp_machine_header}"; then
5721 sfp_machine_header=$cpu_type/sfp-machine.h
5722 if test -f ${srcdir}/config/${sfp_machine_header}; then
5724 else
5725 sfp_machine_header=no-sfp-machine.h
5730 # Conditionalize the makefile for this target machine.
5731 tmake_file_=
5732 for f in ${tmake_file}
5734 if test -f ${srcdir}/config/$f
5735 then
5736 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
5738 done
5739 tmake_file="${tmake_file_}"
5742 # Likewise export definitions for libgcc_tm.h
5743 tm_file_=
5744 for f in ${tm_file}
5746 tm_file_="${tm_file_} \$(srcdir)/config/$f"
5747 done
5748 tm_file="${tm_file_}"
5752 # Map from thread model to thread header.
5754 case $target_thread_file in
5755 aix) thread_header=config/rs6000/gthr-aix.h ;;
5756 dce) thread_header=config/pa/gthr-dce.h ;;
5757 gcn) thread_header=config/gcn/gthr-gcn.h ;;
5758 lynx) thread_header=config/gthr-lynx.h ;;
5759 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
5760 posix) thread_header=gthr-posix.h ;;
5761 rtems) thread_header=config/gthr-rtems.h ;;
5762 single) thread_header=gthr-single.h ;;
5763 tpf) thread_header=config/s390/gthr-tpf.h ;;
5764 vxworks) thread_header=config/gthr-vxworks.h ;;
5765 win32) thread_header=config/i386/gthr-win32.h ;;
5766 mcf) thread_header=config/i386/gthr-mcf.h ;;
5767 esac
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strub support" >&5
5772 $as_echo_n "checking for strub support... " >&6; }
5773 if ${libgcc_cv_strub_support+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 void __attribute__ ((__strub__)) fn (void) {}
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 libgcc_cv_strub_support=yes
5782 else
5783 libgcc_cv_strub_support=no
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_strub_support" >&5
5788 $as_echo "$libgcc_cv_strub_support" >&6; }
5789 if test "x$libgcc_cv_strub_support" != xno; then
5790 HAVE_STRUB_SUPPORT=
5791 else
5792 HAVE_STRUB_SUPPORT='# '
5796 # Determine what GCC version number to use in filesystem paths.
5798 get_gcc_base_ver="cat"
5800 # Check whether --with-gcc-major-version-only was given.
5801 if test "${with_gcc_major_version_only+set}" = set; then :
5802 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5803 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5811 # Substitute configuration variables
5821 # We need multilib support.
5822 ac_config_files="$ac_config_files Makefile"
5824 ac_config_commands="$ac_config_commands default"
5826 cat >confcache <<\_ACEOF
5827 # This file is a shell script that caches the results of configure
5828 # tests run on this system so they can be shared between configure
5829 # scripts and configure runs, see configure's option --config-cache.
5830 # It is not useful on other systems. If it contains results you don't
5831 # want to keep, you may remove or edit it.
5833 # config.status only pays attention to the cache file if you give it
5834 # the --recheck option to rerun configure.
5836 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5837 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5838 # following values.
5840 _ACEOF
5842 # The following way of writing the cache mishandles newlines in values,
5843 # but we know of no workaround that is simple, portable, and efficient.
5844 # So, we kill variables containing newlines.
5845 # Ultrix sh set writes to stderr and can't be redirected directly,
5846 # and sets the high bit in the cache file unless we assign to the vars.
5848 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5849 eval ac_val=\$$ac_var
5850 case $ac_val in #(
5851 *${as_nl}*)
5852 case $ac_var in #(
5853 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5854 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5855 esac
5856 case $ac_var in #(
5857 _ | IFS | as_nl) ;; #(
5858 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5859 *) { eval $ac_var=; unset $ac_var;} ;;
5860 esac ;;
5861 esac
5862 done
5864 (set) 2>&1 |
5865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5866 *${as_nl}ac_space=\ *)
5867 # `set' does not quote correctly, so add quotes: double-quote
5868 # substitution turns \\\\ into \\, and sed turns \\ into \.
5869 sed -n \
5870 "s/'/'\\\\''/g;
5871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5872 ;; #(
5874 # `set' quotes correctly as required by POSIX, so do not add quotes.
5875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5877 esac |
5878 sort
5880 sed '
5881 /^ac_cv_env_/b end
5882 t clear
5883 :clear
5884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5885 t end
5886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5887 :end' >>confcache
5888 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5889 if test -w "$cache_file"; then
5890 if test "x$cache_file" != "x/dev/null"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5892 $as_echo "$as_me: updating cache $cache_file" >&6;}
5893 if test ! -f "$cache_file" || test -h "$cache_file"; then
5894 cat confcache >"$cache_file"
5895 else
5896 case $cache_file in #(
5897 */* | ?:*)
5898 mv -f confcache "$cache_file"$$ &&
5899 mv -f "$cache_file"$$ "$cache_file" ;; #(
5901 mv -f confcache "$cache_file" ;;
5902 esac
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5907 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5910 rm -f confcache
5912 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5913 # Let make expand exec_prefix.
5914 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5916 DEFS=-DHAVE_CONFIG_H
5918 ac_libobjs=
5919 ac_ltlibobjs=
5921 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5922 # 1. Remove the extension, and $U if already installed.
5923 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5924 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5925 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5926 # will be set to the directory where LIBOBJS objects are built.
5927 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5928 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5929 done
5930 LIBOBJS=$ac_libobjs
5932 LTLIBOBJS=$ac_ltlibobjs
5936 : "${CONFIG_STATUS=./config.status}"
5937 ac_write_fail=0
5938 ac_clean_files_save=$ac_clean_files
5939 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5941 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5942 as_write_fail=0
5943 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5944 #! $SHELL
5945 # Generated by $as_me.
5946 # Run this file to recreate the current configuration.
5947 # Compiler output produced by configure, useful for debugging
5948 # configure, is in config.log if it exists.
5950 debug=false
5951 ac_cs_recheck=false
5952 ac_cs_silent=false
5954 SHELL=\${CONFIG_SHELL-$SHELL}
5955 export SHELL
5956 _ASEOF
5957 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5958 ## -------------------- ##
5959 ## M4sh Initialization. ##
5960 ## -------------------- ##
5962 # Be more Bourne compatible
5963 DUALCASE=1; export DUALCASE # for MKS sh
5964 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5965 emulate sh
5966 NULLCMD=:
5967 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5968 # is contrary to our usage. Disable this feature.
5969 alias -g '${1+"$@"}'='"$@"'
5970 setopt NO_GLOB_SUBST
5971 else
5972 case `(set -o) 2>/dev/null` in #(
5973 *posix*) :
5974 set -o posix ;; #(
5975 *) :
5977 esac
5981 as_nl='
5983 export as_nl
5984 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5985 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5986 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5987 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5988 # Prefer a ksh shell builtin over an external printf program on Solaris,
5989 # but without wasting forks for bash or zsh.
5990 if test -z "$BASH_VERSION$ZSH_VERSION" \
5991 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5992 as_echo='print -r --'
5993 as_echo_n='print -rn --'
5994 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5995 as_echo='printf %s\n'
5996 as_echo_n='printf %s'
5997 else
5998 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5999 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6000 as_echo_n='/usr/ucb/echo -n'
6001 else
6002 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6003 as_echo_n_body='eval
6004 arg=$1;
6005 case $arg in #(
6006 *"$as_nl"*)
6007 expr "X$arg" : "X\\(.*\\)$as_nl";
6008 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6009 esac;
6010 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6012 export as_echo_n_body
6013 as_echo_n='sh -c $as_echo_n_body as_echo'
6015 export as_echo_body
6016 as_echo='sh -c $as_echo_body as_echo'
6019 # The user is always right.
6020 if test "${PATH_SEPARATOR+set}" != set; then
6021 PATH_SEPARATOR=:
6022 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6023 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6024 PATH_SEPARATOR=';'
6029 # IFS
6030 # We need space, tab and new line, in precisely that order. Quoting is
6031 # there to prevent editors from complaining about space-tab.
6032 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6033 # splitting by setting IFS to empty value.)
6034 IFS=" "" $as_nl"
6036 # Find who we are. Look in the path if we contain no directory separator.
6037 as_myself=
6038 case $0 in #((
6039 *[\\/]* ) as_myself=$0 ;;
6040 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
6045 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6046 done
6047 IFS=$as_save_IFS
6050 esac
6051 # We did not find ourselves, most probably we were run as `sh COMMAND'
6052 # in which case we are not to be found in the path.
6053 if test "x$as_myself" = x; then
6054 as_myself=$0
6056 if test ! -f "$as_myself"; then
6057 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6058 exit 1
6061 # Unset variables that we do not need and which cause bugs (e.g. in
6062 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6063 # suppresses any "Segmentation fault" message there. '((' could
6064 # trigger a bug in pdksh 5.2.14.
6065 for as_var in BASH_ENV ENV MAIL MAILPATH
6066 do eval test x\${$as_var+set} = xset \
6067 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6068 done
6069 PS1='$ '
6070 PS2='> '
6071 PS4='+ '
6073 # NLS nuisances.
6074 LC_ALL=C
6075 export LC_ALL
6076 LANGUAGE=C
6077 export LANGUAGE
6079 # CDPATH.
6080 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6083 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6084 # ----------------------------------------
6085 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6086 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6087 # script with STATUS, using 1 if that was 0.
6088 as_fn_error ()
6090 as_status=$1; test $as_status -eq 0 && as_status=1
6091 if test "$4"; then
6092 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6093 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6095 $as_echo "$as_me: error: $2" >&2
6096 as_fn_exit $as_status
6097 } # as_fn_error
6100 # as_fn_set_status STATUS
6101 # -----------------------
6102 # Set $? to STATUS, without forking.
6103 as_fn_set_status ()
6105 return $1
6106 } # as_fn_set_status
6108 # as_fn_exit STATUS
6109 # -----------------
6110 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6111 as_fn_exit ()
6113 set +e
6114 as_fn_set_status $1
6115 exit $1
6116 } # as_fn_exit
6118 # as_fn_unset VAR
6119 # ---------------
6120 # Portably unset VAR.
6121 as_fn_unset ()
6123 { eval $1=; unset $1;}
6125 as_unset=as_fn_unset
6126 # as_fn_append VAR VALUE
6127 # ----------------------
6128 # Append the text in VALUE to the end of the definition contained in VAR. Take
6129 # advantage of any shell optimizations that allow amortized linear growth over
6130 # repeated appends, instead of the typical quadratic growth present in naive
6131 # implementations.
6132 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6133 eval 'as_fn_append ()
6135 eval $1+=\$2
6137 else
6138 as_fn_append ()
6140 eval $1=\$$1\$2
6142 fi # as_fn_append
6144 # as_fn_arith ARG...
6145 # ------------------
6146 # Perform arithmetic evaluation on the ARGs, and store the result in the
6147 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6148 # must be portable across $(()) and expr.
6149 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6150 eval 'as_fn_arith ()
6152 as_val=$(( $* ))
6154 else
6155 as_fn_arith ()
6157 as_val=`expr "$@" || test $? -eq 1`
6159 fi # as_fn_arith
6162 if expr a : '\(a\)' >/dev/null 2>&1 &&
6163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6164 as_expr=expr
6165 else
6166 as_expr=false
6169 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6170 as_basename=basename
6171 else
6172 as_basename=false
6175 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6176 as_dirname=dirname
6177 else
6178 as_dirname=false
6181 as_me=`$as_basename -- "$0" ||
6182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6183 X"$0" : 'X\(//\)$' \| \
6184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6185 $as_echo X/"$0" |
6186 sed '/^.*\/\([^/][^/]*\)\/*$/{
6187 s//\1/
6190 /^X\/\(\/\/\)$/{
6191 s//\1/
6194 /^X\/\(\/\).*/{
6195 s//\1/
6198 s/.*/./; q'`
6200 # Avoid depending upon Character Ranges.
6201 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6202 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6203 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6204 as_cr_digits='0123456789'
6205 as_cr_alnum=$as_cr_Letters$as_cr_digits
6207 ECHO_C= ECHO_N= ECHO_T=
6208 case `echo -n x` in #(((((
6209 -n*)
6210 case `echo 'xy\c'` in
6211 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6212 xy) ECHO_C='\c';;
6213 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6214 ECHO_T=' ';;
6215 esac;;
6217 ECHO_N='-n';;
6218 esac
6220 rm -f conf$$ conf$$.exe conf$$.file
6221 if test -d conf$$.dir; then
6222 rm -f conf$$.dir/conf$$.file
6223 else
6224 rm -f conf$$.dir
6225 mkdir conf$$.dir 2>/dev/null
6227 if (echo >conf$$.file) 2>/dev/null; then
6228 if ln -s conf$$.file conf$$ 2>/dev/null; then
6229 as_ln_s='ln -s'
6230 # ... but there are two gotchas:
6231 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6232 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6233 # In both cases, we have to default to `cp -pR'.
6234 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6235 as_ln_s='cp -pR'
6236 elif ln conf$$.file conf$$ 2>/dev/null; then
6237 as_ln_s=ln
6238 else
6239 as_ln_s='cp -pR'
6241 else
6242 as_ln_s='cp -pR'
6244 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6245 rmdir conf$$.dir 2>/dev/null
6248 # as_fn_mkdir_p
6249 # -------------
6250 # Create "$as_dir" as a directory, including parents if necessary.
6251 as_fn_mkdir_p ()
6254 case $as_dir in #(
6255 -*) as_dir=./$as_dir;;
6256 esac
6257 test -d "$as_dir" || eval $as_mkdir_p || {
6258 as_dirs=
6259 while :; do
6260 case $as_dir in #(
6261 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6262 *) as_qdir=$as_dir;;
6263 esac
6264 as_dirs="'$as_qdir' $as_dirs"
6265 as_dir=`$as_dirname -- "$as_dir" ||
6266 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6267 X"$as_dir" : 'X\(//\)[^/]' \| \
6268 X"$as_dir" : 'X\(//\)$' \| \
6269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6270 $as_echo X"$as_dir" |
6271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6272 s//\1/
6275 /^X\(\/\/\)[^/].*/{
6276 s//\1/
6279 /^X\(\/\/\)$/{
6280 s//\1/
6283 /^X\(\/\).*/{
6284 s//\1/
6287 s/.*/./; q'`
6288 test -d "$as_dir" && break
6289 done
6290 test -z "$as_dirs" || eval "mkdir $as_dirs"
6291 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6294 } # as_fn_mkdir_p
6295 if mkdir -p . 2>/dev/null; then
6296 as_mkdir_p='mkdir -p "$as_dir"'
6297 else
6298 test -d ./-p && rmdir ./-p
6299 as_mkdir_p=false
6303 # as_fn_executable_p FILE
6304 # -----------------------
6305 # Test if FILE is an executable regular file.
6306 as_fn_executable_p ()
6308 test -f "$1" && test -x "$1"
6309 } # as_fn_executable_p
6310 as_test_x='test -x'
6311 as_executable_p=as_fn_executable_p
6313 # Sed expression to map a string onto a valid CPP name.
6314 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6316 # Sed expression to map a string onto a valid variable name.
6317 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6320 exec 6>&1
6321 ## ----------------------------------- ##
6322 ## Main body of $CONFIG_STATUS script. ##
6323 ## ----------------------------------- ##
6324 _ASEOF
6325 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6328 # Save the log message, to keep $0 and so on meaningful, and to
6329 # report actual input values of CONFIG_FILES etc. instead of their
6330 # values after options handling.
6331 ac_log="
6332 This file was extended by GNU C Runtime Library $as_me 1.0, which was
6333 generated by GNU Autoconf 2.69. Invocation command line was
6335 CONFIG_FILES = $CONFIG_FILES
6336 CONFIG_HEADERS = $CONFIG_HEADERS
6337 CONFIG_LINKS = $CONFIG_LINKS
6338 CONFIG_COMMANDS = $CONFIG_COMMANDS
6339 $ $0 $@
6341 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6344 _ACEOF
6346 case $ac_config_files in *"
6347 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6348 esac
6350 case $ac_config_headers in *"
6351 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6352 esac
6355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6356 # Files that config.status was made for.
6357 config_files="$ac_config_files"
6358 config_headers="$ac_config_headers"
6359 config_commands="$ac_config_commands"
6361 _ACEOF
6363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6364 ac_cs_usage="\
6365 \`$as_me' instantiates files and other configuration actions
6366 from templates according to the current configuration. Unless the files
6367 and actions are specified as TAGs, all are instantiated by default.
6369 Usage: $0 [OPTION]... [TAG]...
6371 -h, --help print this help, then exit
6372 -V, --version print version number and configuration settings, then exit
6373 --config print configuration, then exit
6374 -q, --quiet, --silent
6375 do not print progress messages
6376 -d, --debug don't remove temporary files
6377 --recheck update $as_me by reconfiguring in the same conditions
6378 --file=FILE[:TEMPLATE]
6379 instantiate the configuration file FILE
6380 --header=FILE[:TEMPLATE]
6381 instantiate the configuration header FILE
6383 Configuration files:
6384 $config_files
6386 Configuration headers:
6387 $config_headers
6389 Configuration commands:
6390 $config_commands
6392 Report bugs to the package provider.
6393 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
6394 General help using GNU software: <http://www.gnu.org/gethelp/>."
6396 _ACEOF
6397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6398 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6399 ac_cs_version="\\
6400 GNU C Runtime Library config.status 1.0
6401 configured by $0, generated by GNU Autoconf 2.69,
6402 with options \\"\$ac_cs_config\\"
6404 Copyright (C) 2012 Free Software Foundation, Inc.
6405 This config.status script is free software; the Free Software Foundation
6406 gives unlimited permission to copy, distribute and modify it."
6408 ac_pwd='$ac_pwd'
6409 srcdir='$srcdir'
6410 INSTALL='$INSTALL'
6411 AWK='$AWK'
6412 test -n "\$AWK" || AWK=awk
6413 _ACEOF
6415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6416 # The default lists apply if the user does not specify any file.
6417 ac_need_defaults=:
6418 while test $# != 0
6420 case $1 in
6421 --*=?*)
6422 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6423 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6424 ac_shift=:
6426 --*=)
6427 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6428 ac_optarg=
6429 ac_shift=:
6432 ac_option=$1
6433 ac_optarg=$2
6434 ac_shift=shift
6436 esac
6438 case $ac_option in
6439 # Handling of the options.
6440 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6441 ac_cs_recheck=: ;;
6442 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6443 $as_echo "$ac_cs_version"; exit ;;
6444 --config | --confi | --conf | --con | --co | --c )
6445 $as_echo "$ac_cs_config"; exit ;;
6446 --debug | --debu | --deb | --de | --d | -d )
6447 debug=: ;;
6448 --file | --fil | --fi | --f )
6449 $ac_shift
6450 case $ac_optarg in
6451 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6452 '') as_fn_error $? "missing file argument" ;;
6453 esac
6454 as_fn_append CONFIG_FILES " '$ac_optarg'"
6455 ac_need_defaults=false;;
6456 --header | --heade | --head | --hea )
6457 $ac_shift
6458 case $ac_optarg in
6459 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6460 esac
6461 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6462 ac_need_defaults=false;;
6463 --he | --h)
6464 # Conflict between --help and --header
6465 as_fn_error $? "ambiguous option: \`$1'
6466 Try \`$0 --help' for more information.";;
6467 --help | --hel | -h )
6468 $as_echo "$ac_cs_usage"; exit ;;
6469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6470 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6471 ac_cs_silent=: ;;
6473 # This is an error.
6474 -*) as_fn_error $? "unrecognized option: \`$1'
6475 Try \`$0 --help' for more information." ;;
6477 *) as_fn_append ac_config_targets " $1"
6478 ac_need_defaults=false ;;
6480 esac
6481 shift
6482 done
6484 ac_configure_extra_args=
6486 if $ac_cs_silent; then
6487 exec 6>/dev/null
6488 ac_configure_extra_args="$ac_configure_extra_args --silent"
6491 _ACEOF
6492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6493 if \$ac_cs_recheck; then
6494 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6495 shift
6496 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6497 CONFIG_SHELL='$SHELL'
6498 export CONFIG_SHELL
6499 exec "\$@"
6502 _ACEOF
6503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6504 exec 5>>config.log
6506 echo
6507 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6508 ## Running $as_me. ##
6509 _ASBOX
6510 $as_echo "$ac_log"
6511 } >&5
6513 _ACEOF
6514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6516 # INIT-COMMANDS
6518 srcdir=${srcdir}
6519 host=${host}
6520 with_target_subdir=${with_target_subdir}
6521 with_multisubdir=${with_multisubdir}
6522 ac_configure_args="--enable-multilib ${ac_configure_args}"
6523 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6524 libgcc_topdir=${libgcc_topdir}
6525 CC="${CC}"
6528 _ACEOF
6530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6532 # Handling of arguments.
6533 for ac_config_target in $ac_config_targets
6535 case $ac_config_target in
6536 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
6537 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6538 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6540 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6541 esac
6542 done
6545 # If the user did not use the arguments to specify the items to instantiate,
6546 # then the envvar interface is used. Set only those that are not.
6547 # We use the long form for the default assignment because of an extremely
6548 # bizarre bug on SunOS 4.1.3.
6549 if $ac_need_defaults; then
6550 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6551 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6552 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6555 # Have a temporary directory for convenience. Make it in the build tree
6556 # simply because there is no reason against having it here, and in addition,
6557 # creating and moving files from /tmp can sometimes cause problems.
6558 # Hook for its removal unless debugging.
6559 # Note that there is a small window in which the directory will not be cleaned:
6560 # after its creation but before its name has been assigned to `$tmp'.
6561 $debug ||
6563 tmp= ac_tmp=
6564 trap 'exit_status=$?
6565 : "${ac_tmp:=$tmp}"
6566 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6568 trap 'as_fn_exit 1' 1 2 13 15
6570 # Create a (secure) tmp directory for tmp files.
6573 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6574 test -d "$tmp"
6575 } ||
6577 tmp=./conf$$-$RANDOM
6578 (umask 077 && mkdir "$tmp")
6579 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6580 ac_tmp=$tmp
6582 # Set up the scripts for CONFIG_FILES section.
6583 # No need to generate them if there are no CONFIG_FILES.
6584 # This happens for instance with `./config.status config.h'.
6585 if test -n "$CONFIG_FILES"; then
6588 ac_cr=`echo X | tr X '\015'`
6589 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6590 # But we know of no other shell where ac_cr would be empty at this
6591 # point, so we can use a bashism as a fallback.
6592 if test "x$ac_cr" = x; then
6593 eval ac_cr=\$\'\\r\'
6595 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6596 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6597 ac_cs_awk_cr='\\r'
6598 else
6599 ac_cs_awk_cr=$ac_cr
6602 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6603 _ACEOF
6607 echo "cat >conf$$subs.awk <<_ACEOF" &&
6608 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6609 echo "_ACEOF"
6610 } >conf$$subs.sh ||
6611 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6612 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6613 ac_delim='%!_!# '
6614 for ac_last_try in false false false false false :; do
6615 . ./conf$$subs.sh ||
6616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6618 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6619 if test $ac_delim_n = $ac_delim_num; then
6620 break
6621 elif $ac_last_try; then
6622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6623 else
6624 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6626 done
6627 rm -f conf$$subs.sh
6629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6630 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6631 _ACEOF
6632 sed -n '
6634 s/^/S["/; s/!.*/"]=/
6637 s/^[^!]*!//
6638 :repl
6639 t repl
6640 s/'"$ac_delim"'$//
6641 t delim
6644 s/\(.\{148\}\)..*/\1/
6645 t more1
6646 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6649 b repl
6650 :more1
6651 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6654 s/.\{148\}//
6655 t nl
6656 :delim
6658 s/\(.\{148\}\)..*/\1/
6659 t more2
6660 s/["\\]/\\&/g; s/^/"/; s/$/"/
6663 :more2
6664 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6667 s/.\{148\}//
6668 t delim
6669 ' <conf$$subs.awk | sed '
6670 /^[^""]/{
6672 s/\n//
6674 ' >>$CONFIG_STATUS || ac_write_fail=1
6675 rm -f conf$$subs.awk
6676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6677 _ACAWK
6678 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6679 for (key in S) S_is_set[key] = 1
6680 FS = "\a"
6684 line = $ 0
6685 nfields = split(line, field, "@")
6686 substed = 0
6687 len = length(field[1])
6688 for (i = 2; i < nfields; i++) {
6689 key = field[i]
6690 keylen = length(key)
6691 if (S_is_set[key]) {
6692 value = S[key]
6693 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6694 len += length(value) + length(field[++i])
6695 substed = 1
6696 } else
6697 len += 1 + keylen
6700 print line
6703 _ACAWK
6704 _ACEOF
6705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6706 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6707 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6708 else
6710 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6711 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6712 _ACEOF
6714 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6715 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6716 # trailing colons and then remove the whole line if VPATH becomes empty
6717 # (actually we leave an empty line to preserve line numbers).
6718 if test "x$srcdir" = x.; then
6719 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6721 s///
6722 s/^/:/
6723 s/[ ]*$/:/
6724 s/:\$(srcdir):/:/g
6725 s/:\${srcdir}:/:/g
6726 s/:@srcdir@:/:/g
6727 s/^:*//
6728 s/:*$//
6730 s/\(=[ ]*\).*/\1/
6732 s/\n//
6733 s/^[^=]*=[ ]*$//
6737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6738 fi # test -n "$CONFIG_FILES"
6740 # Set up the scripts for CONFIG_HEADERS section.
6741 # No need to generate them if there are no CONFIG_HEADERS.
6742 # This happens for instance with `./config.status Makefile'.
6743 if test -n "$CONFIG_HEADERS"; then
6744 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6745 BEGIN {
6746 _ACEOF
6748 # Transform confdefs.h into an awk script `defines.awk', embedded as
6749 # here-document in config.status, that substitutes the proper values into
6750 # config.h.in to produce config.h.
6752 # Create a delimiter string that does not exist in confdefs.h, to ease
6753 # handling of long lines.
6754 ac_delim='%!_!# '
6755 for ac_last_try in false false :; do
6756 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6757 if test -z "$ac_tt"; then
6758 break
6759 elif $ac_last_try; then
6760 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6761 else
6762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6764 done
6766 # For the awk script, D is an array of macro values keyed by name,
6767 # likewise P contains macro parameters if any. Preserve backslash
6768 # newline sequences.
6770 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6771 sed -n '
6772 s/.\{148\}/&'"$ac_delim"'/g
6773 t rset
6774 :rset
6775 s/^[ ]*#[ ]*define[ ][ ]*/ /
6776 t def
6778 :def
6779 s/\\$//
6780 t bsnl
6781 s/["\\]/\\&/g
6782 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6783 D["\1"]=" \3"/p
6784 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6786 :bsnl
6787 s/["\\]/\\&/g
6788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6789 D["\1"]=" \3\\\\\\n"\\/p
6790 t cont
6791 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6792 t cont
6794 :cont
6796 s/.\{148\}/&'"$ac_delim"'/g
6797 t clear
6798 :clear
6799 s/\\$//
6800 t bsnlc
6801 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6803 :bsnlc
6804 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6805 b cont
6806 ' <confdefs.h | sed '
6807 s/'"$ac_delim"'/"\\\
6808 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6811 for (key in D) D_is_set[key] = 1
6812 FS = "\a"
6814 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6815 line = \$ 0
6816 split(line, arg, " ")
6817 if (arg[1] == "#") {
6818 defundef = arg[2]
6819 mac1 = arg[3]
6820 } else {
6821 defundef = substr(arg[1], 2)
6822 mac1 = arg[2]
6824 split(mac1, mac2, "(") #)
6825 macro = mac2[1]
6826 prefix = substr(line, 1, index(line, defundef) - 1)
6827 if (D_is_set[macro]) {
6828 # Preserve the white space surrounding the "#".
6829 print prefix "define", macro P[macro] D[macro]
6830 next
6831 } else {
6832 # Replace #undef with comments. This is necessary, for example,
6833 # in the case of _POSIX_SOURCE, which is predefined and required
6834 # on some systems where configure will not decide to define it.
6835 if (defundef == "undef") {
6836 print "/*", prefix defundef, macro, "*/"
6837 next
6841 { print }
6842 _ACAWK
6843 _ACEOF
6844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6845 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6846 fi # test -n "$CONFIG_HEADERS"
6849 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6850 shift
6851 for ac_tag
6853 case $ac_tag in
6854 :[FHLC]) ac_mode=$ac_tag; continue;;
6855 esac
6856 case $ac_mode$ac_tag in
6857 :[FHL]*:*);;
6858 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6859 :[FH]-) ac_tag=-:-;;
6860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6861 esac
6862 ac_save_IFS=$IFS
6863 IFS=:
6864 set x $ac_tag
6865 IFS=$ac_save_IFS
6866 shift
6867 ac_file=$1
6868 shift
6870 case $ac_mode in
6871 :L) ac_source=$1;;
6872 :[FH])
6873 ac_file_inputs=
6874 for ac_f
6876 case $ac_f in
6877 -) ac_f="$ac_tmp/stdin";;
6878 *) # Look for the file first in the build tree, then in the source tree
6879 # (if the path is not absolute). The absolute path cannot be DOS-style,
6880 # because $ac_f cannot contain `:'.
6881 test -f "$ac_f" ||
6882 case $ac_f in
6883 [\\/$]*) false;;
6884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6885 esac ||
6886 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6887 esac
6888 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6889 as_fn_append ac_file_inputs " '$ac_f'"
6890 done
6892 # Let's still pretend it is `configure' which instantiates (i.e., don't
6893 # use $as_me), people would be surprised to read:
6894 # /* config.h. Generated by config.status. */
6895 configure_input='Generated from '`
6896 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6897 `' by configure.'
6898 if test x"$ac_file" != x-; then
6899 configure_input="$ac_file. $configure_input"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6901 $as_echo "$as_me: creating $ac_file" >&6;}
6903 # Neutralize special characters interpreted by sed in replacement strings.
6904 case $configure_input in #(
6905 *\&* | *\|* | *\\* )
6906 ac_sed_conf_input=`$as_echo "$configure_input" |
6907 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6908 *) ac_sed_conf_input=$configure_input;;
6909 esac
6911 case $ac_tag in
6912 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6914 esac
6916 esac
6918 ac_dir=`$as_dirname -- "$ac_file" ||
6919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6920 X"$ac_file" : 'X\(//\)[^/]' \| \
6921 X"$ac_file" : 'X\(//\)$' \| \
6922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6923 $as_echo X"$ac_file" |
6924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6925 s//\1/
6928 /^X\(\/\/\)[^/].*/{
6929 s//\1/
6932 /^X\(\/\/\)$/{
6933 s//\1/
6936 /^X\(\/\).*/{
6937 s//\1/
6940 s/.*/./; q'`
6941 as_dir="$ac_dir"; as_fn_mkdir_p
6942 ac_builddir=.
6944 case "$ac_dir" in
6945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6947 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6948 # A ".." for each directory in $ac_dir_suffix.
6949 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6950 case $ac_top_builddir_sub in
6951 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6952 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6953 esac ;;
6954 esac
6955 ac_abs_top_builddir=$ac_pwd
6956 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6957 # for backward compatibility:
6958 ac_top_builddir=$ac_top_build_prefix
6960 case $srcdir in
6961 .) # We are building in place.
6962 ac_srcdir=.
6963 ac_top_srcdir=$ac_top_builddir_sub
6964 ac_abs_top_srcdir=$ac_pwd ;;
6965 [\\/]* | ?:[\\/]* ) # Absolute name.
6966 ac_srcdir=$srcdir$ac_dir_suffix;
6967 ac_top_srcdir=$srcdir
6968 ac_abs_top_srcdir=$srcdir ;;
6969 *) # Relative name.
6970 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6971 ac_top_srcdir=$ac_top_build_prefix$srcdir
6972 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6973 esac
6974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6977 case $ac_mode in
6980 # CONFIG_FILE
6983 case $INSTALL in
6984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6985 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6986 esac
6987 _ACEOF
6989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6990 # If the template does not know about datarootdir, expand it.
6991 # FIXME: This hack should be removed a few years after 2.60.
6992 ac_datarootdir_hack=; ac_datarootdir_seen=
6993 ac_sed_dataroot='
6994 /datarootdir/ {
6998 /@datadir@/p
6999 /@docdir@/p
7000 /@infodir@/p
7001 /@localedir@/p
7002 /@mandir@/p'
7003 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7004 *datarootdir*) ac_datarootdir_seen=yes;;
7005 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7007 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7008 _ACEOF
7009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7010 ac_datarootdir_hack='
7011 s&@datadir@&$datadir&g
7012 s&@docdir@&$docdir&g
7013 s&@infodir@&$infodir&g
7014 s&@localedir@&$localedir&g
7015 s&@mandir@&$mandir&g
7016 s&\\\${datarootdir}&$datarootdir&g' ;;
7017 esac
7018 _ACEOF
7020 # Neutralize VPATH when `$srcdir' = `.'.
7021 # Shell code in configure.ac might set extrasub.
7022 # FIXME: do we really want to maintain this feature?
7023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7024 ac_sed_extra="$ac_vpsub
7025 $extrasub
7026 _ACEOF
7027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7030 s|@configure_input@|$ac_sed_conf_input|;t t
7031 s&@top_builddir@&$ac_top_builddir_sub&;t t
7032 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7033 s&@srcdir@&$ac_srcdir&;t t
7034 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7035 s&@top_srcdir@&$ac_top_srcdir&;t t
7036 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7037 s&@builddir@&$ac_builddir&;t t
7038 s&@abs_builddir@&$ac_abs_builddir&;t t
7039 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7040 s&@INSTALL@&$ac_INSTALL&;t t
7041 $ac_datarootdir_hack
7043 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7044 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7046 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7047 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7049 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7051 which seems to be undefined. Please make sure it is defined" >&5
7052 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7053 which seems to be undefined. Please make sure it is defined" >&2;}
7055 rm -f "$ac_tmp/stdin"
7056 case $ac_file in
7057 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7058 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7059 esac \
7060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7064 # CONFIG_HEADER
7066 if test x"$ac_file" != x-; then
7068 $as_echo "/* $configure_input */" \
7069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7070 } >"$ac_tmp/config.h" \
7071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7072 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7074 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7075 else
7076 rm -f "$ac_file"
7077 mv "$ac_tmp/config.h" "$ac_file" \
7078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7080 else
7081 $as_echo "/* $configure_input */" \
7082 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7083 || as_fn_error $? "could not create -" "$LINENO" 5
7087 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7088 $as_echo "$as_me: executing $ac_file commands" >&6;}
7090 esac
7093 case $ac_file$ac_mode in
7094 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7095 if test -n "$CONFIG_FILES"; then
7096 # FIXME: We shouldn't need to set ac_file
7097 ac_file=Makefile
7098 . ${libgcc_topdir}/config-ml.in
7099 fi ;;
7101 esac
7102 done # for ac_tag
7105 as_fn_exit 0
7106 _ACEOF
7107 ac_clean_files=$ac_clean_files_save
7109 test $ac_write_fail = 0 ||
7110 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7113 # configure is writing to config.log, and then calls config.status.
7114 # config.status does its own redirection, appending to config.log.
7115 # Unfortunately, on DOS this fails, as config.log is still kept open
7116 # by configure, so config.status won't be able to write to it; its
7117 # output is simply discarded. So we exec the FD to /dev/null,
7118 # effectively closing config.log, so it can be properly (re)opened and
7119 # appended to by config.status. When coming back to configure, we
7120 # need to make the FD available again.
7121 if test "$no_create" != yes; then
7122 ac_cs_success=:
7123 ac_config_status_args=
7124 test "$silent" = yes &&
7125 ac_config_status_args="$ac_config_status_args --quiet"
7126 exec 5>/dev/null
7127 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7128 exec 5>>config.log
7129 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7130 # would make configure fail if this is the last instruction.
7131 $ac_cs_success || as_fn_exit 1
7133 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7135 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}