re PR c++/77575 (Bogus error when alias template yielding a reference type used as...
[official-gcc.git] / libgcc / configure
blob29f647319b463908f2273dba02bf985ce631cb9b
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 thread_header
597 tm_defines
598 tm_file
599 tmake_file
600 sfp_machine_header
601 set_use_emutls
602 set_have_cc_tls
603 vis_hide
604 solaris_ld_v2_maps
605 real_host_noncanonical
606 accel_dir_suffix
607 use_tm_clone_registry
608 force_explicit_eh_registry
609 CET_FLAGS
610 fixed_point
611 enable_decimal_float
612 decimal_float
613 EGREP
614 GREP
615 long_double_type_size
616 double_type_size
618 OBJEXT
619 EXEEXT
620 ac_ct_CC
621 CPPFLAGS
622 LDFLAGS
623 CFLAGS
625 LN_S
626 STRIP
627 RANLIB
629 LIPO
631 toolexeclibdir
632 toolexecdir
633 target_subdir
634 host_subdir
635 build_subdir
636 build_libsubdir
637 target_noncanonical
638 host_noncanonical
640 INSTALL_DATA
641 INSTALL_SCRIPT
642 INSTALL_PROGRAM
643 MAINT
644 slibdir
645 PICFLAG
646 host_os
647 host_vendor
648 host_cpu
649 host
650 build_os
651 build_vendor
652 build_cpu
653 build
654 with_aix_soname
655 enable_vtable_verify
656 enable_gcov
657 enable_shared
658 libgcc_topdir
659 target_alias
660 host_alias
661 build_alias
662 LIBS
663 ECHO_T
664 ECHO_N
665 ECHO_C
666 DEFS
667 mandir
668 localedir
669 libdir
670 psdir
671 pdfdir
672 dvidir
673 htmldir
674 infodir
675 docdir
676 oldincludedir
677 includedir
678 localstatedir
679 sharedstatedir
680 sysconfdir
681 datadir
682 datarootdir
683 libexecdir
684 sbindir
685 bindir
686 program_transform_name
687 prefix
688 exec_prefix
689 PACKAGE_URL
690 PACKAGE_BUGREPORT
691 PACKAGE_STRING
692 PACKAGE_VERSION
693 PACKAGE_TARNAME
694 PACKAGE_NAME
695 PATH_SEPARATOR
696 SHELL'
697 ac_subst_files=''
698 ac_user_opts='
699 enable_option_checking
700 with_target_subdir
701 with_cross_host
702 with_ld
703 enable_shared
704 enable_gcov
705 enable_vtable_verify
706 with_aix_soname
707 enable_version_specific_runtime_libs
708 with_slibdir
709 enable_maintainer_mode
710 with_build_libsubdir
711 enable_largefile
712 enable_decimal_float
713 with_system_libunwind
714 enable_cet
715 enable_explicit_exception_frame_registration
716 enable_tm_clone_registry
717 with_glibc_version
718 enable_tls
719 with_gcc_major_version_only
721 ac_precious_vars='build_alias
722 host_alias
723 target_alias
725 CFLAGS
726 LDFLAGS
727 LIBS
728 CPPFLAGS
729 CPP'
732 # Initialize some variables set by options.
733 ac_init_help=
734 ac_init_version=false
735 ac_unrecognized_opts=
736 ac_unrecognized_sep=
737 # The variables have the same names as the options, with
738 # dashes changed to underlines.
739 cache_file=/dev/null
740 exec_prefix=NONE
741 no_create=
742 no_recursion=
743 prefix=NONE
744 program_prefix=NONE
745 program_suffix=NONE
746 program_transform_name=s,x,x,
747 silent=
748 site=
749 srcdir=
750 verbose=
751 x_includes=NONE
752 x_libraries=NONE
754 # Installation directory options.
755 # These are left unexpanded so users can "make install exec_prefix=/foo"
756 # and all the variables that are supposed to be based on exec_prefix
757 # by default will actually change.
758 # Use braces instead of parens because sh, perl, etc. also accept them.
759 # (The list follows the same order as the GNU Coding Standards.)
760 bindir='${exec_prefix}/bin'
761 sbindir='${exec_prefix}/sbin'
762 libexecdir='${exec_prefix}/libexec'
763 datarootdir='${prefix}/share'
764 datadir='${datarootdir}'
765 sysconfdir='${prefix}/etc'
766 sharedstatedir='${prefix}/com'
767 localstatedir='${prefix}/var'
768 includedir='${prefix}/include'
769 oldincludedir='/usr/include'
770 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
771 infodir='${datarootdir}/info'
772 htmldir='${docdir}'
773 dvidir='${docdir}'
774 pdfdir='${docdir}'
775 psdir='${docdir}'
776 libdir='${exec_prefix}/lib'
777 localedir='${datarootdir}/locale'
778 mandir='${datarootdir}/man'
780 ac_prev=
781 ac_dashdash=
782 for ac_option
784 # If the previous option needs an argument, assign it.
785 if test -n "$ac_prev"; then
786 eval $ac_prev=\$ac_option
787 ac_prev=
788 continue
791 case $ac_option in
792 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 *=) ac_optarg= ;;
794 *) ac_optarg=yes ;;
795 esac
797 # Accept the important Cygnus configure options, so we can diagnose typos.
799 case $ac_dashdash$ac_option in
801 ac_dashdash=yes ;;
803 -bindir | --bindir | --bindi | --bind | --bin | --bi)
804 ac_prev=bindir ;;
805 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806 bindir=$ac_optarg ;;
808 -build | --build | --buil | --bui | --bu)
809 ac_prev=build_alias ;;
810 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811 build_alias=$ac_optarg ;;
813 -cache-file | --cache-file | --cache-fil | --cache-fi \
814 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815 ac_prev=cache_file ;;
816 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818 cache_file=$ac_optarg ;;
820 --config-cache | -C)
821 cache_file=config.cache ;;
823 -datadir | --datadir | --datadi | --datad)
824 ac_prev=datadir ;;
825 -datadir=* | --datadir=* | --datadi=* | --datad=*)
826 datadir=$ac_optarg ;;
828 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829 | --dataroo | --dataro | --datar)
830 ac_prev=datarootdir ;;
831 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833 datarootdir=$ac_optarg ;;
835 -disable-* | --disable-*)
836 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
839 as_fn_error $? "invalid feature name: $ac_useropt"
840 ac_useropt_orig=$ac_useropt
841 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
842 case $ac_user_opts in
844 "enable_$ac_useropt"
845 "*) ;;
846 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
847 ac_unrecognized_sep=', ';;
848 esac
849 eval enable_$ac_useropt=no ;;
851 -docdir | --docdir | --docdi | --doc | --do)
852 ac_prev=docdir ;;
853 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
854 docdir=$ac_optarg ;;
856 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
857 ac_prev=dvidir ;;
858 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
859 dvidir=$ac_optarg ;;
861 -enable-* | --enable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error $? "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
870 "enable_$ac_useropt"
871 "*) ;;
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
874 esac
875 eval enable_$ac_useropt=\$ac_optarg ;;
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;;
881 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
882 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
883 | --exec=* | --exe=* | --ex=*)
884 exec_prefix=$ac_optarg ;;
886 -gas | --gas | --ga | --g)
887 # Obsolete; use --with-gas.
888 with_gas=yes ;;
890 -help | --help | --hel | --he | -h)
891 ac_init_help=long ;;
892 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
893 ac_init_help=recursive ;;
894 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
895 ac_init_help=short ;;
897 -host | --host | --hos | --ho)
898 ac_prev=host_alias ;;
899 -host=* | --host=* | --hos=* | --ho=*)
900 host_alias=$ac_optarg ;;
902 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 ac_prev=htmldir ;;
904 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 | --ht=*)
906 htmldir=$ac_optarg ;;
908 -includedir | --includedir | --includedi | --included | --include \
909 | --includ | --inclu | --incl | --inc)
910 ac_prev=includedir ;;
911 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
912 | --includ=* | --inclu=* | --incl=* | --inc=*)
913 includedir=$ac_optarg ;;
915 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 ac_prev=infodir ;;
917 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
918 infodir=$ac_optarg ;;
920 -libdir | --libdir | --libdi | --libd)
921 ac_prev=libdir ;;
922 -libdir=* | --libdir=* | --libdi=* | --libd=*)
923 libdir=$ac_optarg ;;
925 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
926 | --libexe | --libex | --libe)
927 ac_prev=libexecdir ;;
928 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
929 | --libexe=* | --libex=* | --libe=*)
930 libexecdir=$ac_optarg ;;
932 -localedir | --localedir | --localedi | --localed | --locale)
933 ac_prev=localedir ;;
934 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
935 localedir=$ac_optarg ;;
937 -localstatedir | --localstatedir | --localstatedi | --localstated \
938 | --localstate | --localstat | --localsta | --localst | --locals)
939 ac_prev=localstatedir ;;
940 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
941 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
942 localstatedir=$ac_optarg ;;
944 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 ac_prev=mandir ;;
946 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947 mandir=$ac_optarg ;;
949 -nfp | --nfp | --nf)
950 # Obsolete; use --without-fp.
951 with_fp=no ;;
953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
954 | --no-cr | --no-c | -n)
955 no_create=yes ;;
957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
959 no_recursion=yes ;;
961 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
962 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
963 | --oldin | --oldi | --old | --ol | --o)
964 ac_prev=oldincludedir ;;
965 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
966 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
967 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
968 oldincludedir=$ac_optarg ;;
970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 ac_prev=prefix ;;
972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
973 prefix=$ac_optarg ;;
975 -program-prefix | --program-prefix | --program-prefi | --program-pref \
976 | --program-pre | --program-pr | --program-p)
977 ac_prev=program_prefix ;;
978 -program-prefix=* | --program-prefix=* | --program-prefi=* \
979 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
980 program_prefix=$ac_optarg ;;
982 -program-suffix | --program-suffix | --program-suffi | --program-suff \
983 | --program-suf | --program-su | --program-s)
984 ac_prev=program_suffix ;;
985 -program-suffix=* | --program-suffix=* | --program-suffi=* \
986 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
987 program_suffix=$ac_optarg ;;
989 -program-transform-name | --program-transform-name \
990 | --program-transform-nam | --program-transform-na \
991 | --program-transform-n | --program-transform- \
992 | --program-transform | --program-transfor \
993 | --program-transfo | --program-transf \
994 | --program-trans | --program-tran \
995 | --progr-tra | --program-tr | --program-t)
996 ac_prev=program_transform_name ;;
997 -program-transform-name=* | --program-transform-name=* \
998 | --program-transform-nam=* | --program-transform-na=* \
999 | --program-transform-n=* | --program-transform-=* \
1000 | --program-transform=* | --program-transfor=* \
1001 | --program-transfo=* | --program-transf=* \
1002 | --program-trans=* | --program-tran=* \
1003 | --progr-tra=* | --program-tr=* | --program-t=*)
1004 program_transform_name=$ac_optarg ;;
1006 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 ac_prev=pdfdir ;;
1008 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1009 pdfdir=$ac_optarg ;;
1011 -psdir | --psdir | --psdi | --psd | --ps)
1012 ac_prev=psdir ;;
1013 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1014 psdir=$ac_optarg ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 silent=yes ;;
1020 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 ac_prev=sbindir ;;
1022 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 | --sbi=* | --sb=*)
1024 sbindir=$ac_optarg ;;
1026 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1027 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1028 | --sharedst | --shareds | --shared | --share | --shar \
1029 | --sha | --sh)
1030 ac_prev=sharedstatedir ;;
1031 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1032 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1033 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 | --sha=* | --sh=*)
1035 sharedstatedir=$ac_optarg ;;
1037 -site | --site | --sit)
1038 ac_prev=site ;;
1039 -site=* | --site=* | --sit=*)
1040 site=$ac_optarg ;;
1042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 ac_prev=srcdir ;;
1044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1045 srcdir=$ac_optarg ;;
1047 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1048 | --syscon | --sysco | --sysc | --sys | --sy)
1049 ac_prev=sysconfdir ;;
1050 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1051 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1052 sysconfdir=$ac_optarg ;;
1054 -target | --target | --targe | --targ | --tar | --ta | --t)
1055 ac_prev=target_alias ;;
1056 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1057 target_alias=$ac_optarg ;;
1059 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1060 verbose=yes ;;
1062 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;;
1065 -with-* | --with-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid package name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "with_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval with_$ac_useropt=\$ac_optarg ;;
1081 -without-* | --without-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid package name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "with_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval with_$ac_useropt=no ;;
1097 --x)
1098 # Obsolete; use --with-x.
1099 with_x=yes ;;
1101 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1102 | --x-incl | --x-inc | --x-in | --x-i)
1103 ac_prev=x_includes ;;
1104 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1105 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1106 x_includes=$ac_optarg ;;
1108 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1109 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1110 ac_prev=x_libraries ;;
1111 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1112 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1113 x_libraries=$ac_optarg ;;
1115 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1116 Try \`$0 --help' for more information"
1119 *=*)
1120 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1121 # Reject names that are not valid shell variable names.
1122 case $ac_envvar in #(
1123 '' | [0-9]* | *[!_$as_cr_alnum]* )
1124 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1125 esac
1126 eval $ac_envvar=\$ac_optarg
1127 export $ac_envvar ;;
1130 # FIXME: should be removed in autoconf 3.0.
1131 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1132 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1134 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1137 esac
1138 done
1140 if test -n "$ac_prev"; then
1141 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1142 as_fn_error $? "missing argument to $ac_option"
1145 if test -n "$ac_unrecognized_opts"; then
1146 case $enable_option_checking in
1147 no) ;;
1148 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1149 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1150 esac
1153 # Check all directory arguments for consistency.
1154 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1155 datadir sysconfdir sharedstatedir localstatedir includedir \
1156 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1157 libdir localedir mandir
1159 eval ac_val=\$$ac_var
1160 # Remove trailing slashes.
1161 case $ac_val in
1162 */ )
1163 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1164 eval $ac_var=\$ac_val;;
1165 esac
1166 # Be sure to have absolute directory names.
1167 case $ac_val in
1168 [\\/$]* | ?:[\\/]* ) continue;;
1169 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1170 esac
1171 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1172 done
1174 # There might be people who depend on the old broken behavior: `$host'
1175 # used to hold the argument of --host etc.
1176 # FIXME: To remove some day.
1177 build=$build_alias
1178 host=$host_alias
1179 target=$target_alias
1181 # FIXME: To remove some day.
1182 if test "x$host_alias" != x; then
1183 if test "x$build_alias" = x; then
1184 cross_compiling=maybe
1185 elif test "x$build_alias" != "x$host_alias"; then
1186 cross_compiling=yes
1190 ac_tool_prefix=
1191 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1193 test "$silent" = yes && exec 6>/dev/null
1196 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1197 ac_ls_di=`ls -di .` &&
1198 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1199 as_fn_error $? "working directory cannot be determined"
1200 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1201 as_fn_error $? "pwd does not report name of working directory"
1204 # Find the source files, if location was not specified.
1205 if test -z "$srcdir"; then
1206 ac_srcdir_defaulted=yes
1207 # Try the directory containing this script, then the parent directory.
1208 ac_confdir=`$as_dirname -- "$as_myself" ||
1209 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1210 X"$as_myself" : 'X\(//\)[^/]' \| \
1211 X"$as_myself" : 'X\(//\)$' \| \
1212 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1213 $as_echo X"$as_myself" |
1214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1215 s//\1/
1218 /^X\(\/\/\)[^/].*/{
1219 s//\1/
1222 /^X\(\/\/\)$/{
1223 s//\1/
1226 /^X\(\/\).*/{
1227 s//\1/
1230 s/.*/./; q'`
1231 srcdir=$ac_confdir
1232 if test ! -r "$srcdir/$ac_unique_file"; then
1233 srcdir=..
1235 else
1236 ac_srcdir_defaulted=no
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1240 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1242 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1243 ac_abs_confdir=`(
1244 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1245 pwd)`
1246 # When building in place, set srcdir=.
1247 if test "$ac_abs_confdir" = "$ac_pwd"; then
1248 srcdir=.
1250 # Remove unnecessary trailing slashes from srcdir.
1251 # Double slashes in file names in object file debugging info
1252 # mess up M-x gdb in Emacs.
1253 case $srcdir in
1254 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255 esac
1256 for ac_var in $ac_precious_vars; do
1257 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_env_${ac_var}_value=\$${ac_var}
1259 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1261 done
1264 # Report the --help message.
1266 if test "$ac_init_help" = "long"; then
1267 # Omit some internal or obsolete options to make the list less imposing.
1268 # This message is too long to be a string in the A/UX 3.1 sh.
1269 cat <<_ACEOF
1270 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1272 Usage: $0 [OPTION]... [VAR=VALUE]...
1274 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1275 VAR=VALUE. See below for descriptions of some of the useful variables.
1277 Defaults for the options are specified in brackets.
1279 Configuration:
1280 -h, --help display this help and exit
1281 --help=short display options specific to this package
1282 --help=recursive display the short help of all the included packages
1283 -V, --version display version information and exit
1284 -q, --quiet, --silent do not print \`checking ...' messages
1285 --cache-file=FILE cache test results in FILE [disabled]
1286 -C, --config-cache alias for \`--cache-file=config.cache'
1287 -n, --no-create do not create output files
1288 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1290 Installation directories:
1291 --prefix=PREFIX install architecture-independent files in PREFIX
1292 [$ac_default_prefix]
1293 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1294 [PREFIX]
1296 By default, \`make install' will install all the files in
1297 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1298 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1299 for instance \`--prefix=\$HOME'.
1301 For better control, use the options below.
1303 Fine tuning of the installation directories:
1304 --bindir=DIR user executables [EPREFIX/bin]
1305 --sbindir=DIR system admin executables [EPREFIX/sbin]
1306 --libexecdir=DIR program executables [EPREFIX/libexec]
1307 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1308 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1309 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1310 --libdir=DIR object code libraries [EPREFIX/lib]
1311 --includedir=DIR C header files [PREFIX/include]
1312 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1313 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1314 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1315 --infodir=DIR info documentation [DATAROOTDIR/info]
1316 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1317 --mandir=DIR man documentation [DATAROOTDIR/man]
1318 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1319 --htmldir=DIR html documentation [DOCDIR]
1320 --dvidir=DIR dvi documentation [DOCDIR]
1321 --pdfdir=DIR pdf documentation [DOCDIR]
1322 --psdir=DIR ps documentation [DOCDIR]
1323 _ACEOF
1325 cat <<\_ACEOF
1327 System types:
1328 --build=BUILD configure for building on BUILD [guessed]
1329 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1330 _ACEOF
1333 if test -n "$ac_init_help"; then
1334 case $ac_init_help in
1335 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1336 esac
1337 cat <<\_ACEOF
1339 Optional Features:
1340 --disable-option-checking ignore unrecognized --enable/--with options
1341 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1342 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1343 --disable-shared don't provide a shared libgcc
1344 --disable-gcov don't provide libgcov and related host tools
1345 --enable-vtable-verify Enable vtable verification feature
1346 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1347 --enable-maintainer-mode
1348 enable make rules and dependencies not useful (and
1349 sometimes confusing) to the casual installer
1350 --disable-largefile omit support for large files
1351 --enable-decimal-float={no,yes,bid,dpd}
1352 enable decimal float extension to C. Selecting 'bid'
1353 or 'dpd' choses which decimal floating point format
1354 to use
1355 --enable-cet enable Intel CET in target libraries [default=no]
1356 --enable-explicit-exception-frame-registration
1357 register exception tables explicitly at module
1358 start, for use e.g. for compatibility with
1359 installations without PT_GNU_EH_FRAME support
1360 --disable-tm-clone-registry disable TM clone registry
1361 --enable-tls Use thread-local storage [default=yes]
1363 Optional Packages:
1364 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1365 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1366 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1367 --with-cross-host=HOST Configuring with a cross compiler
1368 --with-ld arrange to use the specified ld (full pathname)
1369 --with-aix-soname=aix|svr4|both
1370 shared library versioning (aka "SONAME") variant to
1371 provide on AIX
1372 --with-slibdir=DIR shared libraries in DIR LIBDIR
1373 --with-build-libsubdir=DIR Directory where to find libraries for build system
1374 --with-system-libunwind use installed libunwind
1375 --with-glibc-version=M.N
1376 assume GCC used with glibc version M.N or later
1377 --with-gcc-major-version-only
1378 use only GCC major number in filesystem paths
1380 Some influential environment variables:
1381 CC C compiler command
1382 CFLAGS C compiler flags
1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384 nonstandard directory <lib dir>
1385 LIBS libraries to pass to the linker, e.g. -l<library>
1386 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1387 you have headers in a nonstandard directory <include dir>
1388 CPP C preprocessor
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 Report bugs to the package provider.
1394 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1395 General help using GNU software: <http://www.gnu.org/gethelp/>.
1396 _ACEOF
1397 ac_status=$?
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" ||
1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405 continue
1406 ac_builddir=.
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1424 case $srcdir in
1425 .) # We are building in place.
1426 ac_srcdir=.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1433 *) # Relative name.
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1448 else
1449 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450 fi || ac_status=$?
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1452 done
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1457 cat <<\_ACEOF
1458 GNU C Runtime Library configure 1.0
1459 generated by GNU Autoconf 2.69
1461 Copyright (C) 2012 Free Software Foundation, Inc.
1462 This configure script is free software; the Free Software Foundation
1463 gives unlimited permission to copy, distribute and modify it.
1464 _ACEOF
1465 exit
1468 ## ------------------------ ##
1469 ## Autoconf initialization. ##
1470 ## ------------------------ ##
1472 # ac_fn_c_try_compile LINENO
1473 # --------------------------
1474 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1475 ac_fn_c_try_compile ()
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 rm -f conftest.$ac_objext
1479 if { { ac_try="$ac_compile"
1480 case "(($ac_try" in
1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482 *) ac_try_echo=$ac_try;;
1483 esac
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486 (eval "$ac_compile") 2>conftest.err
1487 ac_status=$?
1488 if test -s conftest.err; then
1489 grep -v '^ *+' conftest.err >conftest.er1
1490 cat conftest.er1 >&5
1491 mv -f conftest.er1 conftest.err
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494 test $ac_status = 0; } && {
1495 test -z "$ac_c_werror_flag" ||
1496 test ! -s conftest.err
1497 } && test -s conftest.$ac_objext; then :
1498 ac_retval=0
1499 else
1500 $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1503 ac_retval=1
1505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506 as_fn_set_status $ac_retval
1508 } # ac_fn_c_try_compile
1510 # ac_fn_c_try_cpp LINENO
1511 # ----------------------
1512 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_cpp ()
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 if { { ac_try="$ac_cpp conftest.$ac_ext"
1517 case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } > conftest.i && {
1532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 }; then :
1535 ac_retval=0
1536 else
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1540 ac_retval=1
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1545 } # ac_fn_c_try_cpp
1547 # ac_fn_c_try_run LINENO
1548 # ----------------------
1549 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1550 # that executables *can* be run.
1551 ac_fn_c_try_run ()
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 if { { ac_try="$ac_link"
1555 case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_link") 2>&5
1562 ac_status=$?
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1565 { { case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_try") 2>&5
1572 ac_status=$?
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; }; }; then :
1575 ac_retval=0
1576 else
1577 $as_echo "$as_me: program exited with status $ac_status" >&5
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1581 ac_retval=$ac_status
1583 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1587 } # ac_fn_c_try_run
1589 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1590 # --------------------------------------------
1591 # Tries to find the compile-time value of EXPR in a program that includes
1592 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1593 # computed
1594 ac_fn_c_compute_int ()
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if test "$cross_compiling" = yes; then
1598 # Depending upon the size, compute the lo and hi bounds.
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600 /* end confdefs.h. */
1603 main ()
1605 static int test_array [1 - 2 * !(($2) >= 0)];
1606 test_array [0] = 0;
1607 return test_array [0];
1610 return 0;
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614 ac_lo=0 ac_mid=0
1615 while :; do
1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h. */
1620 main ()
1622 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1623 test_array [0] = 0;
1624 return test_array [0];
1627 return 0;
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631 ac_hi=$ac_mid; break
1632 else
1633 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1634 if test $ac_lo -le $ac_mid; then
1635 ac_lo= ac_hi=
1636 break
1638 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641 done
1642 else
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1647 main ()
1649 static int test_array [1 - 2 * !(($2) < 0)];
1650 test_array [0] = 0;
1651 return test_array [0];
1654 return 0;
1656 _ACEOF
1657 if ac_fn_c_try_compile "$LINENO"; then :
1658 ac_hi=-1 ac_mid=-1
1659 while :; do
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1664 main ()
1666 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1667 test_array [0] = 0;
1668 return test_array [0];
1671 return 0;
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675 ac_lo=$ac_mid; break
1676 else
1677 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1678 if test $ac_mid -le $ac_hi; then
1679 ac_lo= ac_hi=
1680 break
1682 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 done
1686 else
1687 ac_lo= ac_hi=
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 # Binary search between lo and hi bounds.
1693 while test "x$ac_lo" != "x$ac_hi"; do
1694 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1699 main ()
1701 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1702 test_array [0] = 0;
1703 return test_array [0];
1706 return 0;
1708 _ACEOF
1709 if ac_fn_c_try_compile "$LINENO"; then :
1710 ac_hi=$ac_mid
1711 else
1712 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715 done
1716 case $ac_lo in #((
1717 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1718 '') ac_retval=1 ;;
1719 esac
1720 else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1724 static long int longval () { return $2; }
1725 static unsigned long int ulongval () { return $2; }
1726 #include <stdio.h>
1727 #include <stdlib.h>
1729 main ()
1732 FILE *f = fopen ("conftest.val", "w");
1733 if (! f)
1734 return 1;
1735 if (($2) < 0)
1737 long int i = longval ();
1738 if (i != ($2))
1739 return 1;
1740 fprintf (f, "%ld", i);
1742 else
1744 unsigned long int i = ulongval ();
1745 if (i != ($2))
1746 return 1;
1747 fprintf (f, "%lu", i);
1749 /* Do not output a trailing newline, as this causes \r\n confusion
1750 on some platforms. */
1751 return ferror (f) || fclose (f) != 0;
1754 return 0;
1756 _ACEOF
1757 if ac_fn_c_try_run "$LINENO"; then :
1758 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1759 else
1760 ac_retval=1
1762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1763 conftest.$ac_objext conftest.beam conftest.$ac_ext
1764 rm -f conftest.val
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1770 } # ac_fn_c_compute_int
1772 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1773 # ----------------------------------------------
1774 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1775 ac_fn_c_check_header_preproc ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_cpp "$LINENO"; then :
1788 eval "$3=yes"
1789 else
1790 eval "$3=no"
1792 rm -f conftest.err conftest.i conftest.$ac_ext
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 } # ac_fn_c_check_header_preproc
1800 cat >config.log <<_ACEOF
1801 This file contains any messages produced by compilers while
1802 running configure, to aid debugging if configure makes a mistake.
1804 It was created by GNU C Runtime Library $as_me 1.0, which was
1805 generated by GNU Autoconf 2.69. Invocation command line was
1807 $ $0 $@
1809 _ACEOF
1810 exec 5>>config.log
1812 cat <<_ASUNAME
1813 ## --------- ##
1814 ## Platform. ##
1815 ## --------- ##
1817 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1818 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1819 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1820 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1821 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1823 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1824 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1826 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1827 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1828 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1829 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1830 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1831 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1832 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1834 _ASUNAME
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1839 IFS=$as_save_IFS
1840 test -z "$as_dir" && as_dir=.
1841 $as_echo "PATH: $as_dir"
1842 done
1843 IFS=$as_save_IFS
1845 } >&5
1847 cat >&5 <<_ACEOF
1850 ## ----------- ##
1851 ## Core tests. ##
1852 ## ----------- ##
1854 _ACEOF
1857 # Keep a trace of the command line.
1858 # Strip out --no-create and --no-recursion so they do not pile up.
1859 # Strip out --silent because we don't want to record it for future runs.
1860 # Also quote any args containing shell meta-characters.
1861 # Make two passes to allow for proper duplicate-argument suppression.
1862 ac_configure_args=
1863 ac_configure_args0=
1864 ac_configure_args1=
1865 ac_must_keep_next=false
1866 for ac_pass in 1 2
1868 for ac_arg
1870 case $ac_arg in
1871 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1873 | -silent | --silent | --silen | --sile | --sil)
1874 continue ;;
1875 *\'*)
1876 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1877 esac
1878 case $ac_pass in
1879 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1881 as_fn_append ac_configure_args1 " '$ac_arg'"
1882 if test $ac_must_keep_next = true; then
1883 ac_must_keep_next=false # Got value, back to normal.
1884 else
1885 case $ac_arg in
1886 *=* | --config-cache | -C | -disable-* | --disable-* \
1887 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1888 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1889 | -with-* | --with-* | -without-* | --without-* | --x)
1890 case "$ac_configure_args0 " in
1891 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1892 esac
1894 -* ) ac_must_keep_next=true ;;
1895 esac
1897 as_fn_append ac_configure_args " '$ac_arg'"
1899 esac
1900 done
1901 done
1902 { ac_configure_args0=; unset ac_configure_args0;}
1903 { ac_configure_args1=; unset ac_configure_args1;}
1905 # When interrupted or exit'd, cleanup temporary files, and complete
1906 # config.log. We remove comments because anyway the quotes in there
1907 # would cause problems or look ugly.
1908 # WARNING: Use '\'' to represent an apostrophe within the trap.
1909 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1910 trap 'exit_status=$?
1911 # Save into config.log some information that might help in debugging.
1913 echo
1915 $as_echo "## ---------------- ##
1916 ## Cache variables. ##
1917 ## ---------------- ##"
1918 echo
1919 # The following way of writing the cache mishandles newlines in values,
1921 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1922 eval ac_val=\$$ac_var
1923 case $ac_val in #(
1924 *${as_nl}*)
1925 case $ac_var in #(
1926 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1927 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1928 esac
1929 case $ac_var in #(
1930 _ | IFS | as_nl) ;; #(
1931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1932 *) { eval $ac_var=; unset $ac_var;} ;;
1933 esac ;;
1934 esac
1935 done
1936 (set) 2>&1 |
1937 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1938 *${as_nl}ac_space=\ *)
1939 sed -n \
1940 "s/'\''/'\''\\\\'\'''\''/g;
1941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1942 ;; #(
1944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1946 esac |
1947 sort
1949 echo
1951 $as_echo "## ----------------- ##
1952 ## Output variables. ##
1953 ## ----------------- ##"
1954 echo
1955 for ac_var in $ac_subst_vars
1957 eval ac_val=\$$ac_var
1958 case $ac_val in
1959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1960 esac
1961 $as_echo "$ac_var='\''$ac_val'\''"
1962 done | sort
1963 echo
1965 if test -n "$ac_subst_files"; then
1966 $as_echo "## ------------------- ##
1967 ## File substitutions. ##
1968 ## ------------------- ##"
1969 echo
1970 for ac_var in $ac_subst_files
1972 eval ac_val=\$$ac_var
1973 case $ac_val in
1974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975 esac
1976 $as_echo "$ac_var='\''$ac_val'\''"
1977 done | sort
1978 echo
1981 if test -s confdefs.h; then
1982 $as_echo "## ----------- ##
1983 ## confdefs.h. ##
1984 ## ----------- ##"
1985 echo
1986 cat confdefs.h
1987 echo
1989 test "$ac_signal" != 0 &&
1990 $as_echo "$as_me: caught signal $ac_signal"
1991 $as_echo "$as_me: exit $exit_status"
1992 } >&5
1993 rm -f core *.core core.conftest.* &&
1994 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1995 exit $exit_status
1997 for ac_signal in 1 2 13 15; do
1998 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1999 done
2000 ac_signal=0
2002 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2003 rm -f -r conftest* confdefs.h
2005 $as_echo "/* confdefs.h */" > confdefs.h
2007 # Predefined preprocessor variables.
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_NAME "$PACKAGE_NAME"
2011 _ACEOF
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2015 _ACEOF
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2019 _ACEOF
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_STRING "$PACKAGE_STRING"
2023 _ACEOF
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2027 _ACEOF
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_URL "$PACKAGE_URL"
2031 _ACEOF
2034 # Let the site file select an alternate cache file if it wants to.
2035 # Prefer an explicitly selected file to automatically selected ones.
2036 ac_site_file1=NONE
2037 ac_site_file2=NONE
2038 if test -n "$CONFIG_SITE"; then
2039 # We do not want a PATH search for config.site.
2040 case $CONFIG_SITE in #((
2041 -*) ac_site_file1=./$CONFIG_SITE;;
2042 */*) ac_site_file1=$CONFIG_SITE;;
2043 *) ac_site_file1=./$CONFIG_SITE;;
2044 esac
2045 elif test "x$prefix" != xNONE; then
2046 ac_site_file1=$prefix/share/config.site
2047 ac_site_file2=$prefix/etc/config.site
2048 else
2049 ac_site_file1=$ac_default_prefix/share/config.site
2050 ac_site_file2=$ac_default_prefix/etc/config.site
2052 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2054 test "x$ac_site_file" = xNONE && continue
2055 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2057 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2058 sed 's/^/| /' "$ac_site_file" >&5
2059 . "$ac_site_file" \
2060 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2062 as_fn_error $? "failed to load site script $ac_site_file
2063 See \`config.log' for more details" "$LINENO" 5; }
2065 done
2067 if test -r "$cache_file"; then
2068 # Some versions of bash will fail to source /dev/null (special files
2069 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2070 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2072 $as_echo "$as_me: loading cache $cache_file" >&6;}
2073 case $cache_file in
2074 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2075 *) . "./$cache_file";;
2076 esac
2078 else
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2080 $as_echo "$as_me: creating cache $cache_file" >&6;}
2081 >$cache_file
2084 # Check that the precious variables saved in the cache have kept the same
2085 # value.
2086 ac_cache_corrupted=false
2087 for ac_var in $ac_precious_vars; do
2088 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2089 eval ac_new_set=\$ac_env_${ac_var}_set
2090 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2091 eval ac_new_val=\$ac_env_${ac_var}_value
2092 case $ac_old_set,$ac_new_set in
2093 set,)
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2095 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2096 ac_cache_corrupted=: ;;
2097 ,set)
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2099 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2100 ac_cache_corrupted=: ;;
2101 ,);;
2103 if test "x$ac_old_val" != "x$ac_new_val"; then
2104 # differences in whitespace do not lead to failure.
2105 ac_old_val_w=`echo x $ac_old_val`
2106 ac_new_val_w=`echo x $ac_new_val`
2107 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2109 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2110 ac_cache_corrupted=:
2111 else
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2113 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2114 eval $ac_var=\$ac_old_val
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2117 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2119 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2120 fi;;
2121 esac
2122 # Pass precious variables to config.status.
2123 if test "$ac_new_set" = set; then
2124 case $ac_new_val in
2125 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2126 *) ac_arg=$ac_var=$ac_new_val ;;
2127 esac
2128 case " $ac_configure_args " in
2129 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2130 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2131 esac
2133 done
2134 if $ac_cache_corrupted; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2138 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2139 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2141 ## -------------------- ##
2142 ## Main body of script. ##
2143 ## -------------------- ##
2145 ac_ext=c
2146 ac_cpp='$CPP $CPPFLAGS'
2147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157 # The libgcc should not depend on any header files
2161 # Check whether --with-target-subdir was given.
2162 if test "${with_target_subdir+set}" = set; then :
2163 withval=$with_target_subdir;
2167 # Check whether --with-cross-host was given.
2168 if test "${with_cross_host+set}" = set; then :
2169 withval=$with_cross_host;
2173 # Check whether --with-ld was given.
2174 if test "${with_ld+set}" = set; then :
2175 withval=$with_ld;
2179 if test "${srcdir}" = "."; then
2180 if test -n "${with_build_subdir}"; then
2181 libgcc_topdir="${srcdir}/../.."
2182 with_target_subdir=
2183 elif test -z "${with_target_subdir}"; then
2184 libgcc_topdir="${srcdir}/.."
2185 else
2186 if test "${with_target_subdir}" != "."; then
2187 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2188 else
2189 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2192 else
2193 libgcc_topdir="${srcdir}/.."
2196 ac_aux_dir=
2197 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2198 if test -f "$ac_dir/install-sh"; then
2199 ac_aux_dir=$ac_dir
2200 ac_install_sh="$ac_aux_dir/install-sh -c"
2201 break
2202 elif test -f "$ac_dir/install.sh"; then
2203 ac_aux_dir=$ac_dir
2204 ac_install_sh="$ac_aux_dir/install.sh -c"
2205 break
2206 elif test -f "$ac_dir/shtool"; then
2207 ac_aux_dir=$ac_dir
2208 ac_install_sh="$ac_aux_dir/shtool install -c"
2209 break
2211 done
2212 if test -z "$ac_aux_dir"; then
2213 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2216 # These three variables are undocumented and unsupported,
2217 # and are intended to be withdrawn in a future Autoconf release.
2218 # They can cause serious problems if a builder's source tree is in a directory
2219 # whose full name contains unusual characters.
2220 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2221 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2222 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2225 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2228 # Check whether --enable-shared was given.
2229 if test "${enable_shared+set}" = set; then :
2230 enableval=$enable_shared;
2231 case $enable_shared in
2232 yes | no) ;;
2234 enable_shared=no
2235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2236 for pkg in $enableval; do
2237 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2238 enable_shared=yes
2240 done
2241 IFS="$ac_save_ifs"
2243 esac
2245 else
2246 enable_shared=yes
2251 # Check whether --enable-gcov was given.
2252 if test "${enable_gcov+set}" = set; then :
2253 enableval=$enable_gcov;
2254 else
2255 enable_gcov=yes
2260 # Check whether --enable-vtable-verify was given.
2261 if test "${enable_vtable_verify+set}" = set; then :
2262 enableval=$enable_vtable_verify; case "$enableval" in
2263 yes) enable_vtable_verify=yes ;;
2264 no) enable_vtable_verify=no ;;
2265 *) enable_vtable_verify=no;;
2266 esac
2267 else
2268 enable_vtable_verify=no
2274 # Check whether --with-aix-soname was given.
2275 if test "${with_aix_soname+set}" = set; then :
2276 withval=$with_aix_soname; case "${host}:${enable_shared}" in
2277 power*-*-aix[5-9]*:yes)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
2279 $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
2280 case ${withval} in
2281 aix|svr4|both) ;;
2282 *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5;;
2283 esac
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2285 $as_echo "$withval" >&6; }
2287 *) with_aix_soname=aix ;;
2288 esac
2290 else
2291 with_aix_soname=aix
2296 # Make sure we can run config.sub.
2297 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2298 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2301 $as_echo_n "checking build system type... " >&6; }
2302 if ${ac_cv_build+:} false; then :
2303 $as_echo_n "(cached) " >&6
2304 else
2305 ac_build_alias=$build_alias
2306 test "x$ac_build_alias" = x &&
2307 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2308 test "x$ac_build_alias" = x &&
2309 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2310 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2311 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2315 $as_echo "$ac_cv_build" >&6; }
2316 case $ac_cv_build in
2317 *-*-*) ;;
2318 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2319 esac
2320 build=$ac_cv_build
2321 ac_save_IFS=$IFS; IFS='-'
2322 set x $ac_cv_build
2323 shift
2324 build_cpu=$1
2325 build_vendor=$2
2326 shift; shift
2327 # Remember, the first character of IFS is used to create $*,
2328 # except with old shells:
2329 build_os=$*
2330 IFS=$ac_save_IFS
2331 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2335 $as_echo_n "checking host system type... " >&6; }
2336 if ${ac_cv_host+:} false; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 if test "x$host_alias" = x; then
2340 ac_cv_host=$ac_cv_build
2341 else
2342 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2343 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2348 $as_echo "$ac_cv_host" >&6; }
2349 case $ac_cv_host in
2350 *-*-*) ;;
2351 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2352 esac
2353 host=$ac_cv_host
2354 ac_save_IFS=$IFS; IFS='-'
2355 set x $ac_cv_host
2356 shift
2357 host_cpu=$1
2358 host_vendor=$2
2359 shift; shift
2360 # Remember, the first character of IFS is used to create $*,
2361 # except with old shells:
2362 host_os=$*
2363 IFS=$ac_save_IFS
2364 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2371 case "${host}" in
2372 # PIC is the default on some targets or must not be used.
2373 *-*-darwin*)
2374 # For darwin, common symbols are not allowed in MH_DYLIB files
2375 case "${CFLAGS}" in
2376 # If we are using a compiler supporting mdynamic-no-pic
2377 # and the option has been tested as safe to add, then cancel
2378 # it here, since the code generated is incompatible with shared
2379 # libs.
2380 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
2381 *) PICFLAG=-fno-common ;;
2382 esac
2384 alpha*-dec-osf5*)
2385 # PIC is the default.
2387 hppa*64*-*-hpux*)
2388 # PIC is the default for 64-bit PA HP-UX.
2390 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2392 i[34567]86-*-mingw* | x86_64-*-mingw*)
2394 i[34567]86-*-interix[3-9]*)
2395 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2396 # Instead, we relocate shared libraries at runtime.
2398 i[34567]86-*-nto-qnx*)
2399 # QNX uses GNU C++, but need to define -shared option too, otherwise
2400 # it will coredump.
2401 PICFLAG='-fPIC -shared'
2403 i[34567]86-pc-msdosdjgpp*)
2404 # DJGPP does not support shared libraries at all.
2406 ia64*-*-hpux*)
2407 # On IA64 HP-UX, PIC is the default but the pic flag
2408 # sets the default TLS model and affects inlining.
2409 PICFLAG=-fPIC
2411 mips-sgi-irix6*)
2412 # PIC is the default.
2414 rs6000-ibm-aix* | powerpc-ibm-aix*)
2415 # All AIX code is PIC.
2418 # Some targets support both -fPIC and -fpic, but prefer the latter.
2419 # FIXME: Why?
2420 i[34567]86-*-* | x86_64-*-*)
2421 PICFLAG=-fpic
2423 # FIXME: Override -fPIC default in libgcc only?
2424 sh-*-linux* | sh[2346lbe]*-*-linux*)
2425 PICFLAG=-fpic
2427 # FIXME: Simplify to sh*-*-netbsd*?
2428 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2429 sh64-*-netbsd* | sh64l*-*-netbsd*)
2430 PICFLAG=-fpic
2432 # Default to -fPIC unless specified otherwise.
2434 PICFLAG=-fPIC
2436 esac
2438 # If the user explicitly uses -fpic/-fPIC, keep that.
2439 case "${CFLAGS}" in
2440 *-fpic*)
2441 PICFLAG=-fpic
2443 *-fPIC*)
2444 PICFLAG=-fPIC
2446 esac
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2451 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2452 # Check whether --enable-version-specific-runtime-libs was given.
2453 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2454 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2455 yes) version_specific_libs=yes ;;
2456 no) version_specific_libs=no ;;
2457 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2458 esac
2459 else
2460 version_specific_libs=no
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2464 $as_echo "$version_specific_libs" >&6; }
2467 # Check whether --with-slibdir was given.
2468 if test "${with_slibdir+set}" = set; then :
2469 withval=$with_slibdir; slibdir="$with_slibdir"
2470 else
2471 if test "${version_specific_libs}" = yes; then
2472 slibdir='$(libsubdir)'
2473 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2474 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2475 else
2476 slibdir='$(libdir)'
2482 # Command-line options.
2483 # Very limited version of AC_MAINTAINER_MODE.
2484 # Check whether --enable-maintainer-mode was given.
2485 if test "${enable_maintainer_mode+set}" = set; then :
2486 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2487 yes) MAINT='' ;;
2488 no) MAINT='#' ;;
2489 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2490 esac
2491 maintainer_mode=${enableval}
2492 else
2493 MAINT='#'
2497 # Find a good install program. We prefer a C program (faster),
2498 # so one script is as good as another. But avoid the broken or
2499 # incompatible versions:
2500 # SysV /etc/install, /usr/sbin/install
2501 # SunOS /usr/etc/install
2502 # IRIX /sbin/install
2503 # AIX /bin/install
2504 # AmigaOS /C/install, which installs bootblocks on floppy discs
2505 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2506 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2507 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2508 # OS/2's system install, which has a completely different semantic
2509 # ./install, which can be erroneously created by make from ./install.sh.
2510 # Reject install programs that cannot install multiple files.
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2512 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2513 if test -z "$INSTALL"; then
2514 if ${ac_cv_path_install+:} false; then :
2515 $as_echo_n "(cached) " >&6
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 # Account for people who put trailing slashes in PATH elements.
2523 case $as_dir/ in #((
2524 ./ | .// | /[cC]/* | \
2525 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2526 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2527 /usr/ucb/* ) ;;
2529 # OSF1 and SCO ODT 3.0 have their own names for install.
2530 # Don't use installbsd from OSF since it installs stuff as root
2531 # by default.
2532 for ac_prog in ginstall scoinst install; do
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2535 if test $ac_prog = install &&
2536 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537 # AIX install. It has an incompatible calling convention.
2539 elif test $ac_prog = install &&
2540 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541 # program-specific install script used by HP pwplus--don't use.
2543 else
2544 rm -rf conftest.one conftest.two conftest.dir
2545 echo one > conftest.one
2546 echo two > conftest.two
2547 mkdir conftest.dir
2548 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2549 test -s conftest.one && test -s conftest.two &&
2550 test -s conftest.dir/conftest.one &&
2551 test -s conftest.dir/conftest.two
2552 then
2553 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2554 break 3
2558 done
2559 done
2561 esac
2563 done
2564 IFS=$as_save_IFS
2566 rm -rf conftest.one conftest.two conftest.dir
2569 if test "${ac_cv_path_install+set}" = set; then
2570 INSTALL=$ac_cv_path_install
2571 else
2572 # As a last resort, use the slow shell script. Don't cache a
2573 # value for INSTALL within a source directory, because that will
2574 # break other packages using the cache if that directory is
2575 # removed, or if the value is a relative name.
2576 INSTALL=$ac_install_sh
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2580 $as_echo "$INSTALL" >&6; }
2582 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2583 # It thinks the first close brace ends the variable substitution.
2584 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2586 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2588 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591 for ac_prog in gawk mawk nawk awk
2593 # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy $ac_prog; ac_word=$2
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if ${ac_cv_prog_AWK+:} false; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 if test -n "$AWK"; then
2601 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610 ac_cv_prog_AWK="$ac_prog"
2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2614 done
2615 done
2616 IFS=$as_save_IFS
2620 AWK=$ac_cv_prog_AWK
2621 if test -n "$AWK"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2623 $as_echo "$AWK" >&6; }
2624 else
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626 $as_echo "no" >&6; }
2630 test -n "$AWK" && break
2631 done
2633 # We need awk; bail out if it's missing.
2634 case ${AWK} in
2635 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
2636 esac
2639 case ${build_alias} in
2640 "") build_noncanonical=${build} ;;
2641 *) build_noncanonical=${build_alias} ;;
2642 esac
2644 case ${host_alias} in
2645 "") host_noncanonical=${build_noncanonical} ;;
2646 *) host_noncanonical=${host_alias} ;;
2647 esac
2651 case ${target_alias} in
2652 "") target_noncanonical=${host_noncanonical} ;;
2653 *) target_noncanonical=${target_alias} ;;
2654 esac
2659 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2660 # have matching libraries, they should use host libraries: Makefile.tpl
2661 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2662 # However, they still use the build modules, because the corresponding
2663 # host modules (e.g. bison) are only built for the host when bootstrap
2664 # finishes. So:
2665 # - build_subdir is where we find build modules, and never changes.
2666 # - build_libsubdir is where we find build libraries, and can be overridden.
2668 # Prefix 'build-' so this never conflicts with target_subdir.
2669 build_subdir="build-${build_noncanonical}"
2671 # Check whether --with-build-libsubdir was given.
2672 if test "${with_build_libsubdir+set}" = set; then :
2673 withval=$with_build_libsubdir; build_libsubdir="$withval"
2674 else
2675 build_libsubdir="$build_subdir"
2678 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2679 if ( test $srcdir = . && test -d gcc ) \
2680 || test -d $srcdir/../host-${host_noncanonical}; then
2681 host_subdir="host-${host_noncanonical}"
2682 else
2683 host_subdir=.
2685 # No prefix.
2686 target_subdir=${target_noncanonical}
2689 # Calculate toolexeclibdir
2690 # Also toolexecdir, though it's only used in toolexeclibdir
2691 case ${version_specific_libs} in
2692 yes)
2693 # Need the gcc compiler version to know where to install libraries
2694 # and header files if --enable-version-specific-runtime-libs option
2695 # is selected.
2696 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2697 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2700 if test -n "$with_cross_host" &&
2701 test x"$with_cross_host" != x"no"; then
2702 # Install a library built with a cross compiler in tooldir, not libdir.
2703 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2704 toolexeclibdir='$(toolexecdir)/lib'
2705 else
2706 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2707 toolexeclibdir='$(libdir)'
2709 multi_os_directory=`$CC -print-multi-os-directory`
2710 case $multi_os_directory in
2711 .) ;; # Avoid trailing /.
2712 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2713 esac
2715 esac
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}ar; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_AR+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$AR"; then
2728 ac_cv_prog_AR="$AR" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_AR="${ac_tool_prefix}ar"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 AR=$ac_cv_prog_AR
2748 if test -n "$AR"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2750 $as_echo "$AR" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2758 if test -z "$ac_cv_prog_AR"; then
2759 ac_ct_AR=$AR
2760 # Extract the first word of "ar", so it can be a program name with args.
2761 set dummy ar; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if ${ac_cv_prog_ac_ct_AR+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if test -n "$ac_ct_AR"; then
2768 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_ac_ct_AR="ar"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2781 done
2782 done
2783 IFS=$as_save_IFS
2787 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2788 if test -n "$ac_ct_AR"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2790 $as_echo "$ac_ct_AR" >&6; }
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2796 if test "x$ac_ct_AR" = x; then
2797 AR=""
2798 else
2799 case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805 AR=$ac_ct_AR
2807 else
2808 AR="$ac_cv_prog_AR"
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_LIPO+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if test -n "$LIPO"; then
2820 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2833 done
2834 done
2835 IFS=$as_save_IFS
2839 LIPO=$ac_cv_prog_LIPO
2840 if test -n "$LIPO"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2842 $as_echo "$LIPO" >&6; }
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2850 if test -z "$ac_cv_prog_LIPO"; then
2851 ac_ct_LIPO=$LIPO
2852 # Extract the first word of "lipo", so it can be a program name with args.
2853 set dummy lipo; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$ac_ct_LIPO"; then
2860 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_ac_ct_LIPO="lipo"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2873 done
2874 done
2875 IFS=$as_save_IFS
2879 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2880 if test -n "$ac_ct_LIPO"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2882 $as_echo "$ac_ct_LIPO" >&6; }
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2888 if test "x$ac_ct_LIPO" = x; then
2889 LIPO=":"
2890 else
2891 case $cross_compiling:$ac_tool_warned in
2892 yes:)
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2895 ac_tool_warned=yes ;;
2896 esac
2897 LIPO=$ac_ct_LIPO
2899 else
2900 LIPO="$ac_cv_prog_LIPO"
2903 if test -n "$ac_tool_prefix"; then
2904 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2905 set dummy ${ac_tool_prefix}nm; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if ${ac_cv_prog_NM+:} false; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 if test -n "$NM"; then
2912 ac_cv_prog_NM="$NM" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 ac_cv_prog_NM="${ac_tool_prefix}nm"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2925 done
2926 done
2927 IFS=$as_save_IFS
2931 NM=$ac_cv_prog_NM
2932 if test -n "$NM"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2934 $as_echo "$NM" >&6; }
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2942 if test -z "$ac_cv_prog_NM"; then
2943 ac_ct_NM=$NM
2944 # Extract the first word of "nm", so it can be a program name with args.
2945 set dummy nm; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_ac_ct_NM+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test -n "$ac_ct_NM"; then
2952 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_ac_ct_NM="nm"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2965 done
2966 done
2967 IFS=$as_save_IFS
2971 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2972 if test -n "$ac_ct_NM"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2974 $as_echo "$ac_ct_NM" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2980 if test "x$ac_ct_NM" = x; then
2981 NM=""
2982 else
2983 case $cross_compiling:$ac_tool_warned in
2984 yes:)
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2987 ac_tool_warned=yes ;;
2988 esac
2989 NM=$ac_ct_NM
2991 else
2992 NM="$ac_cv_prog_NM"
2995 if test -n "$ac_tool_prefix"; then
2996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_RANLIB+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if test -n "$RANLIB"; then
3004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3017 done
3018 done
3019 IFS=$as_save_IFS
3023 RANLIB=$ac_cv_prog_RANLIB
3024 if test -n "$RANLIB"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3026 $as_echo "$RANLIB" >&6; }
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3034 if test -z "$ac_cv_prog_RANLIB"; then
3035 ac_ct_RANLIB=$RANLIB
3036 # Extract the first word of "ranlib", so it can be a program name with args.
3037 set dummy ranlib; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$ac_ct_RANLIB"; then
3044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_ac_ct_RANLIB="ranlib"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3057 done
3058 done
3059 IFS=$as_save_IFS
3063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3064 if test -n "$ac_ct_RANLIB"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3066 $as_echo "$ac_ct_RANLIB" >&6; }
3067 else
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3072 if test "x$ac_ct_RANLIB" = x; then
3073 RANLIB=":"
3074 else
3075 case $cross_compiling:$ac_tool_warned in
3076 yes:)
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079 ac_tool_warned=yes ;;
3080 esac
3081 RANLIB=$ac_ct_RANLIB
3083 else
3084 RANLIB="$ac_cv_prog_RANLIB"
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}strip; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_STRIP+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$STRIP"; then
3096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3109 done
3110 done
3111 IFS=$as_save_IFS
3115 STRIP=$ac_cv_prog_STRIP
3116 if test -n "$STRIP"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3118 $as_echo "$STRIP" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3126 if test -z "$ac_cv_prog_STRIP"; then
3127 ac_ct_STRIP=$STRIP
3128 # Extract the first word of "strip", so it can be a program name with args.
3129 set dummy strip; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$ac_ct_STRIP"; then
3136 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_ac_ct_STRIP="strip"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3149 done
3150 done
3151 IFS=$as_save_IFS
3155 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3156 if test -n "$ac_ct_STRIP"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3158 $as_echo "$ac_ct_STRIP" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3164 if test "x$ac_ct_STRIP" = x; then
3165 STRIP=":"
3166 else
3167 case $cross_compiling:$ac_tool_warned in
3168 yes:)
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned=yes ;;
3172 esac
3173 STRIP=$ac_ct_STRIP
3175 else
3176 STRIP="$ac_cv_prog_STRIP"
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3180 $as_echo_n "checking whether ln -s works... " >&6; }
3181 LN_S=$as_ln_s
3182 if test "$LN_S" = "ln -s"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3184 $as_echo "yes" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3187 $as_echo "no, using $LN_S" >&6; }
3192 ac_ext=c
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197 if test -n "$ac_tool_prefix"; then
3198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_CC+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$CC"; then
3206 ac_cv_prog_CC="$CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3219 done
3220 done
3221 IFS=$as_save_IFS
3225 CC=$ac_cv_prog_CC
3226 if test -n "$CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3228 $as_echo "$CC" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3236 if test -z "$ac_cv_prog_CC"; then
3237 ac_ct_CC=$CC
3238 # Extract the first word of "gcc", so it can be a program name with args.
3239 set dummy gcc; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 if test -n "$ac_ct_CC"; then
3246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_ac_ct_CC="gcc"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3259 done
3260 done
3261 IFS=$as_save_IFS
3265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3266 if test -n "$ac_ct_CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3268 $as_echo "$ac_ct_CC" >&6; }
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3274 if test "x$ac_ct_CC" = x; then
3275 CC=""
3276 else
3277 case $cross_compiling:$ac_tool_warned in
3278 yes:)
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3281 ac_tool_warned=yes ;;
3282 esac
3283 CC=$ac_ct_CC
3285 else
3286 CC="$ac_cv_prog_CC"
3289 if test -z "$CC"; then
3290 if test -n "$ac_tool_prefix"; then
3291 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3292 set dummy ${ac_tool_prefix}cc; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_CC+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 if test -n "$CC"; then
3299 ac_cv_prog_CC="$CC" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3304 IFS=$as_save_IFS
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308 ac_cv_prog_CC="${ac_tool_prefix}cc"
3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 break 2
3312 done
3313 done
3314 IFS=$as_save_IFS
3318 CC=$ac_cv_prog_CC
3319 if test -n "$CC"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321 $as_echo "$CC" >&6; }
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3330 if test -z "$CC"; then
3331 # Extract the first word of "cc", so it can be a program name with args.
3332 set dummy cc; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_CC+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3340 else
3341 ac_prog_rejected=no
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3350 ac_prog_rejected=yes
3351 continue
3353 ac_cv_prog_CC="cc"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3357 done
3358 done
3359 IFS=$as_save_IFS
3361 if test $ac_prog_rejected = yes; then
3362 # We found a bogon in the path, so make sure we never use it.
3363 set dummy $ac_cv_prog_CC
3364 shift
3365 if test $# != 0; then
3366 # We chose a different compiler from the bogus one.
3367 # However, it has the same basename, so the bogon will be chosen
3368 # first if we set CC to just the basename; use the full file name.
3369 shift
3370 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3375 CC=$ac_cv_prog_CC
3376 if test -n "$CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378 $as_echo "$CC" >&6; }
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3386 if test -z "$CC"; then
3387 if test -n "$ac_tool_prefix"; then
3388 for ac_prog in cl.exe
3390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3411 done
3412 done
3413 IFS=$as_save_IFS
3417 CC=$ac_cv_prog_CC
3418 if test -n "$CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420 $as_echo "$CC" >&6; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3427 test -n "$CC" && break
3428 done
3430 if test -z "$CC"; then
3431 ac_ct_CC=$CC
3432 for ac_prog in cl.exe
3434 # Extract the first word of "$ac_prog", so it can be a program name with args.
3435 set dummy $ac_prog; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if test -n "$ac_ct_CC"; then
3442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_ac_ct_CC="$ac_prog"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3455 done
3456 done
3457 IFS=$as_save_IFS
3461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3462 if test -n "$ac_ct_CC"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3464 $as_echo "$ac_ct_CC" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3471 test -n "$ac_ct_CC" && break
3472 done
3474 if test "x$ac_ct_CC" = x; then
3475 CC=""
3476 else
3477 case $cross_compiling:$ac_tool_warned in
3478 yes:)
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481 ac_tool_warned=yes ;;
3482 esac
3483 CC=$ac_ct_CC
3490 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 as_fn_error $? "no acceptable C compiler found in \$PATH
3493 See \`config.log' for more details" "$LINENO" 5; }
3495 # Provide some information about the compiler.
3496 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3497 set X $ac_compile
3498 ac_compiler=$2
3499 for ac_option in --version -v -V -qversion; do
3500 { { ac_try="$ac_compiler $ac_option >&5"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3508 ac_status=$?
3509 if test -s conftest.err; then
3510 sed '10a\
3511 ... rest of stderr output deleted ...
3512 10q' conftest.err >conftest.er1
3513 cat conftest.er1 >&5
3515 rm -f conftest.er1 conftest.err
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }
3518 done
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3524 main ()
3528 return 0;
3530 _ACEOF
3531 # FIXME: Cleanup?
3532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3533 (eval $ac_link) 2>&5
3534 ac_status=$?
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 gcc_no_link=no
3538 else
3539 gcc_no_link=yes
3541 if test x$gcc_no_link = xyes; then
3542 # Setting cross_compile will disable run tests; it will
3543 # also disable AC_CHECK_FILE but that's generally
3544 # correct if we can't link.
3545 cross_compiling=yes
3546 EXEEXT=
3547 else
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3552 main ()
3556 return 0;
3558 _ACEOF
3559 ac_clean_files_save=$ac_clean_files
3560 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3561 # Try to create an executable without -o first, disregard a.out.
3562 # It will help us diagnose broken compilers, and finding out an intuition
3563 # of exeext.
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3565 $as_echo_n "checking whether the C compiler works... " >&6; }
3566 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3568 # The possible output files:
3569 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3571 ac_rmfiles=
3572 for ac_file in $ac_files
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3577 esac
3578 done
3579 rm -f $ac_rmfiles
3581 if { { ac_try="$ac_link_default"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link_default") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3593 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3595 # so that the user can short-circuit this test for compilers unknown to
3596 # Autoconf.
3597 for ac_file in $ac_files ''
3599 test -f "$ac_file" || continue
3600 case $ac_file in
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3603 [ab].out )
3604 # We found the default executable, but exeext='' is most
3605 # certainly right.
3606 break;;
3607 *.* )
3608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3609 then :; else
3610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 # We set ac_cv_exeext here because the later test for it is not
3613 # safe: cross compilers may not add the suffix if given an `-o'
3614 # argument, so we may need to know it at that point already.
3615 # Even if this section looks crufty: it has the advantage of
3616 # actually working.
3617 break;;
3619 break;;
3620 esac
3621 done
3622 test "$ac_cv_exeext" = no && ac_cv_exeext=
3624 else
3625 ac_file=''
3627 if test -z "$ac_file"; then :
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3630 $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error 77 "C compiler cannot create executables
3636 See \`config.log' for more details" "$LINENO" 5; }
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3639 $as_echo "yes" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3642 $as_echo_n "checking for C compiler default output file name... " >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3644 $as_echo "$ac_file" >&6; }
3645 ac_exeext=$ac_cv_exeext
3647 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3648 ac_clean_files=$ac_clean_files_save
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3650 $as_echo_n "checking for suffix of executables... " >&6; }
3651 if { { ac_try="$ac_link"
3652 case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_link") 2>&5
3659 ac_status=$?
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }; then :
3662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3663 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3664 # work properly (i.e., refer to `conftest.exe'), while it won't with
3665 # `rm'.
3666 for ac_file in conftest.exe conftest conftest.*; do
3667 test -f "$ac_file" || continue
3668 case $ac_file in
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671 break;;
3672 * ) break;;
3673 esac
3674 done
3675 else
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 $? "cannot compute suffix of executables: cannot compile and link
3679 See \`config.log' for more details" "$LINENO" 5; }
3681 rm -f conftest conftest$ac_cv_exeext
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3683 $as_echo "$ac_cv_exeext" >&6; }
3685 rm -f conftest.$ac_ext
3686 EXEEXT=$ac_cv_exeext
3687 ac_exeext=$EXEEXT
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690 #include <stdio.h>
3692 main ()
3694 FILE *f = fopen ("conftest.out", "w");
3695 return ferror (f) || fclose (f) != 0;
3698 return 0;
3700 _ACEOF
3701 ac_clean_files="$ac_clean_files conftest.out"
3702 # Check that the compiler produces executables we can run. If not, either
3703 # the compiler is broken, or we cross compile.
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3705 $as_echo_n "checking whether we are cross compiling... " >&6; }
3706 if test "$cross_compiling" != yes; then
3707 { { ac_try="$ac_link"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_link") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }
3718 if { ac_try='./conftest$ac_cv_exeext'
3719 { { case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_try") 2>&5
3726 ac_status=$?
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }; }; then
3729 cross_compiling=no
3730 else
3731 if test "$cross_compiling" = maybe; then
3732 cross_compiling=yes
3733 else
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error $? "cannot run C compiled programs.
3737 If you meant to cross compile, use \`--host'.
3738 See \`config.log' for more details" "$LINENO" 5; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3743 $as_echo "$cross_compiling" >&6; }
3745 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3746 ac_clean_files=$ac_clean_files_save
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3749 $as_echo_n "checking for suffix of object files... " >&6; }
3750 if ${ac_cv_objext+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3757 main ()
3761 return 0;
3763 _ACEOF
3764 rm -f conftest.o conftest.obj
3765 if { { ac_try="$ac_compile"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772 (eval "$ac_compile") 2>&5
3773 ac_status=$?
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }; then :
3776 for ac_file in conftest.o conftest.obj conftest.*; do
3777 test -f "$ac_file" || continue;
3778 case $ac_file in
3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3781 break;;
3782 esac
3783 done
3784 else
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error $? "cannot compute suffix of object files: cannot compile
3791 See \`config.log' for more details" "$LINENO" 5; }
3793 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3796 $as_echo "$ac_cv_objext" >&6; }
3797 OBJEXT=$ac_cv_objext
3798 ac_objext=$OBJEXT
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3801 if ${ac_cv_c_compiler_gnu+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3808 main ()
3810 #ifndef __GNUC__
3811 choke me
3812 #endif
3815 return 0;
3817 _ACEOF
3818 if ac_fn_c_try_compile "$LINENO"; then :
3819 ac_compiler_gnu=yes
3820 else
3821 ac_compiler_gnu=no
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3829 if test $ac_compiler_gnu = yes; then
3830 GCC=yes
3831 else
3832 GCC=
3834 ac_test_CFLAGS=${CFLAGS+set}
3835 ac_save_CFLAGS=$CFLAGS
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3838 if ${ac_cv_prog_cc_g+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 ac_save_c_werror_flag=$ac_c_werror_flag
3842 ac_c_werror_flag=yes
3843 ac_cv_prog_cc_g=no
3844 CFLAGS="-g"
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3849 main ()
3853 return 0;
3855 _ACEOF
3856 if ac_fn_c_try_compile "$LINENO"; then :
3857 ac_cv_prog_cc_g=yes
3858 else
3859 CFLAGS=""
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3864 main ()
3868 return 0;
3870 _ACEOF
3871 if ac_fn_c_try_compile "$LINENO"; then :
3873 else
3874 ac_c_werror_flag=$ac_save_c_werror_flag
3875 CFLAGS="-g"
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3880 main ()
3884 return 0;
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_cv_prog_cc_g=yes
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_c_werror_flag=$ac_save_c_werror_flag
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3898 $as_echo "$ac_cv_prog_cc_g" >&6; }
3899 if test "$ac_test_CFLAGS" = set; then
3900 CFLAGS=$ac_save_CFLAGS
3901 elif test $ac_cv_prog_cc_g = yes; then
3902 if test "$GCC" = yes; then
3903 CFLAGS="-g -O2"
3904 else
3905 CFLAGS="-g"
3907 else
3908 if test "$GCC" = yes; then
3909 CFLAGS="-O2"
3910 else
3911 CFLAGS=
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3916 if ${ac_cv_prog_cc_c89+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 ac_cv_prog_cc_c89=no
3920 ac_save_CC=$CC
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <stdarg.h>
3924 #include <stdio.h>
3925 struct stat;
3926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3927 struct buf { int x; };
3928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929 static char *e (p, i)
3930 char **p;
3931 int i;
3933 return p[i];
3935 static char *f (char * (*g) (char **, int), char **p, ...)
3937 char *s;
3938 va_list v;
3939 va_start (v,p);
3940 s = g (p, va_arg (v,int));
3941 va_end (v);
3942 return s;
3945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3946 function prototypes and stuff, but not '\xHH' hex character constants.
3947 These don't provoke an error unfortunately, instead are silently treated
3948 as 'x'. The following induces an error, until -std is added to get
3949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3950 array size at least. It's necessary to write '\x00'==0 to get something
3951 that's true only with -std. */
3952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955 inside strings and character constants. */
3956 #define FOO(x) 'x'
3957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3959 int test (int i, double x);
3960 struct s1 {int (*f) (int a);};
3961 struct s2 {int (*f) (double a);};
3962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963 int argc;
3964 char **argv;
3966 main ()
3968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3970 return 0;
3972 _ACEOF
3973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3976 CC="$ac_save_CC $ac_arg"
3977 if ac_fn_c_try_compile "$LINENO"; then :
3978 ac_cv_prog_cc_c89=$ac_arg
3980 rm -f core conftest.err conftest.$ac_objext
3981 test "x$ac_cv_prog_cc_c89" != "xno" && break
3982 done
3983 rm -f conftest.$ac_ext
3984 CC=$ac_save_CC
3987 # AC_CACHE_VAL
3988 case "x$ac_cv_prog_cc_c89" in
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991 $as_echo "none needed" >&6; } ;;
3992 xno)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994 $as_echo "unsupported" >&6; } ;;
3996 CC="$CC $ac_cv_prog_cc_c89"
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3999 esac
4000 if test "x$ac_cv_prog_cc_c89" != xno; then :
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010 ac_ext=c
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4016 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4017 # On Suns, sometimes $CPP names a directory.
4018 if test -n "$CPP" && test -d "$CPP"; then
4019 CPP=
4021 if test -z "$CPP"; then
4022 if ${ac_cv_prog_CPP+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 # Double quotes because CPP needs to be expanded
4026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4028 ac_preproc_ok=false
4029 for ac_c_preproc_warn_flag in '' yes
4031 # Use a header file that comes with gcc, so configuring glibc
4032 # with a fresh cross-compiler works.
4033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4034 # <limits.h> exists even on freestanding compilers.
4035 # On the NeXT, cc -E runs the code through the compiler's parser,
4036 # not just through cpp. "Syntax error" is here to catch this case.
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4039 #ifdef __STDC__
4040 # include <limits.h>
4041 #else
4042 # include <assert.h>
4043 #endif
4044 Syntax error
4045 _ACEOF
4046 if ac_fn_c_try_cpp "$LINENO"; then :
4048 else
4049 # Broken: fails on valid input.
4050 continue
4052 rm -f conftest.err conftest.i conftest.$ac_ext
4054 # OK, works on sane cases. Now check whether nonexistent headers
4055 # can be detected and how.
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058 #include <ac_nonexistent.h>
4059 _ACEOF
4060 if ac_fn_c_try_cpp "$LINENO"; then :
4061 # Broken: success on invalid input.
4062 continue
4063 else
4064 # Passes both tests.
4065 ac_preproc_ok=:
4066 break
4068 rm -f conftest.err conftest.i conftest.$ac_ext
4070 done
4071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4072 rm -f conftest.i conftest.err conftest.$ac_ext
4073 if $ac_preproc_ok; then :
4074 break
4077 done
4078 ac_cv_prog_CPP=$CPP
4081 CPP=$ac_cv_prog_CPP
4082 else
4083 ac_cv_prog_CPP=$CPP
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4086 $as_echo "$CPP" >&6; }
4087 ac_preproc_ok=false
4088 for ac_c_preproc_warn_flag in '' yes
4090 # Use a header file that comes with gcc, so configuring glibc
4091 # with a fresh cross-compiler works.
4092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4093 # <limits.h> exists even on freestanding compilers.
4094 # On the NeXT, cc -E runs the code through the compiler's parser,
4095 # not just through cpp. "Syntax error" is here to catch this case.
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098 #ifdef __STDC__
4099 # include <limits.h>
4100 #else
4101 # include <assert.h>
4102 #endif
4103 Syntax error
4104 _ACEOF
4105 if ac_fn_c_try_cpp "$LINENO"; then :
4107 else
4108 # Broken: fails on valid input.
4109 continue
4111 rm -f conftest.err conftest.i conftest.$ac_ext
4113 # OK, works on sane cases. Now check whether nonexistent headers
4114 # can be detected and how.
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #include <ac_nonexistent.h>
4118 _ACEOF
4119 if ac_fn_c_try_cpp "$LINENO"; then :
4120 # Broken: success on invalid input.
4121 continue
4122 else
4123 # Passes both tests.
4124 ac_preproc_ok=:
4125 break
4127 rm -f conftest.err conftest.i conftest.$ac_ext
4129 done
4130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131 rm -f conftest.i conftest.err conftest.$ac_ext
4132 if $ac_preproc_ok; then :
4134 else
4135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4138 See \`config.log' for more details" "$LINENO" 5; }
4141 ac_ext=c
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148 ac_c_preproc_warn_flag=yes
4151 # Check whether --enable-largefile was given.
4152 if test "${enable_largefile+set}" = set; then :
4153 enableval=$enable_largefile;
4156 if test "$enable_largefile" != no; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4159 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4160 if ${ac_cv_sys_largefile_CC+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 ac_cv_sys_largefile_CC=no
4164 if test "$GCC" != yes; then
4165 ac_save_CC=$CC
4166 while :; do
4167 # IRIX 6.2 and later do not support large files by default,
4168 # so use the C compiler's -n32 option if that helps.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #include <sys/types.h>
4172 /* Check that off_t can represent 2**63 - 1 correctly.
4173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4174 since some C++ compilers masquerading as C compilers
4175 incorrectly reject 9223372036854775807. */
4176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4178 && LARGE_OFF_T % 2147483647 == 1)
4179 ? 1 : -1];
4181 main ()
4185 return 0;
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189 break
4191 rm -f core conftest.err conftest.$ac_objext
4192 CC="$CC -n32"
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_cv_sys_largefile_CC=' -n32'; break
4196 rm -f core conftest.err conftest.$ac_objext
4197 break
4198 done
4199 CC=$ac_save_CC
4200 rm -f conftest.$ac_ext
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4204 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4205 if test "$ac_cv_sys_largefile_CC" != no; then
4206 CC=$CC$ac_cv_sys_largefile_CC
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4210 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4211 if ${ac_cv_sys_file_offset_bits+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 while :; do
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #include <sys/types.h>
4218 /* Check that off_t can represent 2**63 - 1 correctly.
4219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4220 since some C++ compilers masquerading as C compilers
4221 incorrectly reject 9223372036854775807. */
4222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4224 && LARGE_OFF_T % 2147483647 == 1)
4225 ? 1 : -1];
4227 main ()
4231 return 0;
4233 _ACEOF
4234 if ac_fn_c_try_compile "$LINENO"; then :
4235 ac_cv_sys_file_offset_bits=no; break
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #define _FILE_OFFSET_BITS 64
4241 #include <sys/types.h>
4242 /* Check that off_t can represent 2**63 - 1 correctly.
4243 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4244 since some C++ compilers masquerading as C compilers
4245 incorrectly reject 9223372036854775807. */
4246 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4247 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4248 && LARGE_OFF_T % 2147483647 == 1)
4249 ? 1 : -1];
4251 main ()
4255 return 0;
4257 _ACEOF
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259 ac_cv_sys_file_offset_bits=64; break
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 ac_cv_sys_file_offset_bits=unknown
4263 break
4264 done
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4267 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4268 case $ac_cv_sys_file_offset_bits in #(
4269 no | unknown) ;;
4271 cat >>confdefs.h <<_ACEOF
4272 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4273 _ACEOF
4275 esac
4276 rm -rf conftest*
4277 if test $ac_cv_sys_file_offset_bits = unknown; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4279 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4280 if ${ac_cv_sys_large_files+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 while :; do
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <sys/types.h>
4287 /* Check that off_t can represent 2**63 - 1 correctly.
4288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4289 since some C++ compilers masquerading as C compilers
4290 incorrectly reject 9223372036854775807. */
4291 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4293 && LARGE_OFF_T % 2147483647 == 1)
4294 ? 1 : -1];
4296 main ()
4300 return 0;
4302 _ACEOF
4303 if ac_fn_c_try_compile "$LINENO"; then :
4304 ac_cv_sys_large_files=no; break
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 #define _LARGE_FILES 1
4310 #include <sys/types.h>
4311 /* Check that off_t can represent 2**63 - 1 correctly.
4312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4313 since some C++ compilers masquerading as C compilers
4314 incorrectly reject 9223372036854775807. */
4315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4317 && LARGE_OFF_T % 2147483647 == 1)
4318 ? 1 : -1];
4320 main ()
4324 return 0;
4326 _ACEOF
4327 if ac_fn_c_try_compile "$LINENO"; then :
4328 ac_cv_sys_large_files=1; break
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 ac_cv_sys_large_files=unknown
4332 break
4333 done
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4336 $as_echo "$ac_cv_sys_large_files" >&6; }
4337 case $ac_cv_sys_large_files in #(
4338 no | unknown) ;;
4340 cat >>confdefs.h <<_ACEOF
4341 #define _LARGE_FILES $ac_cv_sys_large_files
4342 _ACEOF
4344 esac
4345 rm -rf conftest*
4353 # The cast to long int works around a bug in the HP C Compiler
4354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4356 # This bug is HP SR number 8606223364.
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4358 $as_echo_n "checking size of double... " >&6; }
4359 if ${ac_cv_sizeof_double+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4364 else
4365 if test "$ac_cv_type_double" = yes; then
4366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368 as_fn_error 77 "cannot compute sizeof (double)
4369 See \`config.log' for more details" "$LINENO" 5; }
4370 else
4371 ac_cv_sizeof_double=0
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4377 $as_echo "$ac_cv_sizeof_double" >&6; }
4381 cat >>confdefs.h <<_ACEOF
4382 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4383 _ACEOF
4386 # The cast to long int works around a bug in the HP C Compiler
4387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4389 # This bug is HP SR number 8606223364.
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4391 $as_echo_n "checking size of long double... " >&6; }
4392 if ${ac_cv_sizeof_long_double+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4397 else
4398 if test "$ac_cv_type_long_double" = yes; then
4399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401 as_fn_error 77 "cannot compute sizeof (long double)
4402 See \`config.log' for more details" "$LINENO" 5; }
4403 else
4404 ac_cv_sizeof_long_double=0
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4410 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4414 cat >>confdefs.h <<_ACEOF
4415 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4416 _ACEOF
4419 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4420 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4425 for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
4426 unistd.h sys/stat.h sys/types.h \
4427 string.h strings.h memory.h
4428 do :
4429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4430 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
4431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4432 cat >>confdefs.h <<_ACEOF
4433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4434 _ACEOF
4437 done
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4440 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4441 if ${ac_cv_path_GREP+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test -z "$GREP"; then
4445 ac_path_GREP_found=false
4446 # Loop through the user's path and test for each of PROGNAME-LIST
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_prog in grep ggrep; do
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4455 as_fn_executable_p "$ac_path_GREP" || continue
4456 # Check for GNU ac_path_GREP and select it if it is found.
4457 # Check for GNU $ac_path_GREP
4458 case `"$ac_path_GREP" --version 2>&1` in
4459 *GNU*)
4460 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4462 ac_count=0
4463 $as_echo_n 0123456789 >"conftest.in"
4464 while :
4466 cat "conftest.in" "conftest.in" >"conftest.tmp"
4467 mv "conftest.tmp" "conftest.in"
4468 cp "conftest.in" "conftest.nl"
4469 $as_echo 'GREP' >> "conftest.nl"
4470 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4472 as_fn_arith $ac_count + 1 && ac_count=$as_val
4473 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_GREP="$ac_path_GREP"
4476 ac_path_GREP_max=$ac_count
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4480 done
4481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482 esac
4484 $ac_path_GREP_found && break 3
4485 done
4486 done
4487 done
4488 IFS=$as_save_IFS
4489 if test -z "$ac_cv_path_GREP"; then
4490 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492 else
4493 ac_cv_path_GREP=$GREP
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4498 $as_echo "$ac_cv_path_GREP" >&6; }
4499 GREP="$ac_cv_path_GREP"
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4503 $as_echo_n "checking for egrep... " >&6; }
4504 if ${ac_cv_path_EGREP+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4508 then ac_cv_path_EGREP="$GREP -E"
4509 else
4510 if test -z "$EGREP"; then
4511 ac_path_EGREP_found=false
4512 # Loop through the user's path and test for each of PROGNAME-LIST
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_prog in egrep; do
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4521 as_fn_executable_p "$ac_path_EGREP" || continue
4522 # Check for GNU ac_path_EGREP and select it if it is found.
4523 # Check for GNU $ac_path_EGREP
4524 case `"$ac_path_EGREP" --version 2>&1` in
4525 *GNU*)
4526 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4528 ac_count=0
4529 $as_echo_n 0123456789 >"conftest.in"
4530 while :
4532 cat "conftest.in" "conftest.in" >"conftest.tmp"
4533 mv "conftest.tmp" "conftest.in"
4534 cp "conftest.in" "conftest.nl"
4535 $as_echo 'EGREP' >> "conftest.nl"
4536 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4538 as_fn_arith $ac_count + 1 && ac_count=$as_val
4539 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4540 # Best one so far, save it but keep looking for a better one
4541 ac_cv_path_EGREP="$ac_path_EGREP"
4542 ac_path_EGREP_max=$ac_count
4544 # 10*(2^10) chars as input seems more than enough
4545 test $ac_count -gt 10 && break
4546 done
4547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4548 esac
4550 $ac_path_EGREP_found && break 3
4551 done
4552 done
4553 done
4554 IFS=$as_save_IFS
4555 if test -z "$ac_cv_path_EGREP"; then
4556 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4558 else
4559 ac_cv_path_EGREP=$EGREP
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4565 $as_echo "$ac_cv_path_EGREP" >&6; }
4566 EGREP="$ac_cv_path_EGREP"
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4570 $as_echo_n "checking for ANSI C header files... " >&6; }
4571 if ${ac_cv_header_stdc+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <stdlib.h>
4577 #include <stdarg.h>
4578 #include <string.h>
4579 #include <float.h>
4582 main ()
4586 return 0;
4588 _ACEOF
4589 if ac_fn_c_try_compile "$LINENO"; then :
4590 ac_cv_header_stdc=yes
4591 else
4592 ac_cv_header_stdc=no
4594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 if test $ac_cv_header_stdc = yes; then
4597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600 #include <string.h>
4602 _ACEOF
4603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604 $EGREP "memchr" >/dev/null 2>&1; then :
4606 else
4607 ac_cv_header_stdc=no
4609 rm -f conftest*
4613 if test $ac_cv_header_stdc = yes; then
4614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 #include <stdlib.h>
4619 _ACEOF
4620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4621 $EGREP "free" >/dev/null 2>&1; then :
4623 else
4624 ac_cv_header_stdc=no
4626 rm -f conftest*
4630 if test $ac_cv_header_stdc = yes; then
4631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4632 if test "$cross_compiling" = yes; then :
4634 else
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637 #include <ctype.h>
4638 #include <stdlib.h>
4639 #if ((' ' & 0x0FF) == 0x020)
4640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4642 #else
4643 # define ISLOWER(c) \
4644 (('a' <= (c) && (c) <= 'i') \
4645 || ('j' <= (c) && (c) <= 'r') \
4646 || ('s' <= (c) && (c) <= 'z'))
4647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4648 #endif
4650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4652 main ()
4654 int i;
4655 for (i = 0; i < 256; i++)
4656 if (XOR (islower (i), ISLOWER (i))
4657 || toupper (i) != TOUPPER (i))
4658 return 2;
4659 return 0;
4661 _ACEOF
4662 if ac_fn_c_try_run "$LINENO"; then :
4664 else
4665 ac_cv_header_stdc=no
4667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4668 conftest.$ac_objext conftest.beam conftest.$ac_ext
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4674 $as_echo "$ac_cv_header_stdc" >&6; }
4675 if test $ac_cv_header_stdc = yes; then
4677 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4682 # Check for decimal float support.
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4684 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4685 if ${libgcc_cv_dfp+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4691 #include <fenv.h>
4694 main ()
4697 _Decimal32 x;
4698 int fe_except =
4699 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4702 return 0;
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 libgcc_cv_dfp=yes
4707 else
4708 libgcc_cv_dfp=no
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4713 $as_echo "$libgcc_cv_dfp" >&6; }
4714 decimal_float=$libgcc_cv_dfp
4718 # Check whether --enable-decimal-float was given.
4719 if test "${enable_decimal_float+set}" = set; then :
4720 enableval=$enable_decimal_float;
4721 case $enable_decimal_float in
4722 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4723 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4724 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4725 esac
4727 else
4729 case $host in
4730 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4731 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
4732 i?86*-*-mingw* | x86_64*-*-mingw* | \
4733 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4734 enable_decimal_float=yes
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4738 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4739 enable_decimal_float=no
4741 esac
4746 # x86's use BID format instead of DPD
4747 case x$enable_decimal_float in
4748 xyes)
4749 case $host in
4750 i?86*-*-* | x86_64*-*-*)
4751 enable_decimal_float=bid
4754 enable_decimal_float=dpd
4756 esac
4757 default_decimal_float=$enable_decimal_float
4759 xno)
4760 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4761 # dependency on libdecnumber.
4762 default_decimal_float=dpd
4764 esac
4769 # Check for fixed-point support.
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4771 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4772 if ${libgcc_cv_fixed_point+:} false; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777 _Sat _Fract x;
4778 _ACEOF
4779 if ac_fn_c_try_compile "$LINENO"; then :
4780 libgcc_cv_fixed_point=yes
4781 else
4782 libgcc_cv_fixed_point=no
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4787 $as_echo "$libgcc_cv_fixed_point" >&6; }
4788 fixed_point=$libgcc_cv_fixed_point
4791 # For platforms with the unwind ABI which includes an unwind library,
4792 # libunwind, we can choose to use the system libunwind.
4793 # config.gcc also contains tests of with_system_libunwind.
4796 # Check whether --with-system-libunwind was given.
4797 if test "${with_system_libunwind+set}" = set; then :
4798 withval=$with_system_libunwind;
4801 # If system-libunwind was not specifically set, pick a default setting.
4802 if test x$with_system_libunwind = x; then
4803 case ${target} in
4804 ia64-*-hpux*) with_system_libunwind=yes ;;
4805 *) with_system_libunwind=no ;;
4806 esac
4808 # Based on system-libunwind and target, do we have ipinfo?
4809 if test x$with_system_libunwind = xyes; then
4810 case ${target} in
4811 ia64-*-*) have_unwind_getipinfo=no ;;
4812 *) have_unwind_getipinfo=yes ;;
4813 esac
4814 else
4815 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4817 case ${target} in
4818 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4819 *) have_unwind_getipinfo=yes ;;
4820 esac
4824 if test x$have_unwind_getipinfo = xyes; then
4826 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4831 # Check if the compiler is configured for setjmp/longjmp exceptions.
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
4833 $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
4834 if ${ac_cv_sjlj_exceptions+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4839 #ifdef __USING_SJLJ_EXCEPTIONS__
4840 this will fail
4841 #endif
4843 main ()
4845 int i;
4847 return 0;
4849 _ACEOF
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851 ac_cv_sjlj_exceptions=no
4852 else
4853 ac_cv_sjlj_exceptions=yes
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
4858 $as_echo "$ac_cv_sjlj_exceptions" >&6; }
4860 # Check whether --enable-cet was given.
4861 if test "${enable_cet+set}" = set; then :
4862 enableval=$enable_cet;
4863 case "$enableval" in
4864 yes|no|auto) ;;
4865 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4866 esac
4868 else
4869 enable_cet=no
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4874 $as_echo_n "checking for CET support... " >&6; }
4876 case "$host" in
4877 i[34567]86-*-linux* | x86_64-*-linux*)
4878 case "$enable_cet" in
4879 auto)
4880 # Check if target supports multi-byte NOPs
4881 # and if assembler supports CET insn.
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4886 main ()
4889 #if !defined(__SSE2__)
4890 #error target does not support multi-byte NOPs
4891 #else
4892 asm ("setssbsy");
4893 #endif
4896 return 0;
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 enable_cet=yes
4901 else
4902 enable_cet=no
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 yes)
4907 # Check if assembler supports CET.
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4912 main ()
4914 asm ("setssbsy");
4916 return 0;
4918 _ACEOF
4919 if ac_fn_c_try_compile "$LINENO"; then :
4921 else
4922 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 esac
4929 enable_cet=no
4931 esac
4932 if test x$enable_cet = xyes; then
4933 CET_FLAGS="-fcf-protection -mshstk"
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4935 $as_echo "yes" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4943 # Check whether --enable-explicit-exception-frame-registration was given.
4944 if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4945 enableval=$enable_explicit_exception_frame_registration;
4946 force_explicit_eh_registry=
4947 if test "$enable_explicit_exception_frame_registration" = yes; then
4948 if test $ac_cv_sjlj_exceptions = yes; then
4949 as_fn_error $? "Can't --enable-explicit-exception-frame-registration
4950 with setjmp/longjmp exceptions" "$LINENO" 5
4952 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
4959 # Check whether --enable-tm-clone-registry was given.
4960 if test "${enable_tm_clone_registry+set}" = set; then :
4961 enableval=$enable_tm_clone_registry;
4962 use_tm_clone_registry=
4963 if test "$enable_tm_clone_registry" = no; then
4964 use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4972 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4973 if ${acl_cv_prog_gnu_ld+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4977 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4978 acl_cv_prog_gnu_ld=yes
4979 else
4980 acl_cv_prog_gnu_ld=no
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4984 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4985 with_gnu_ld=$acl_cv_prog_gnu_ld
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4989 $as_echo_n "checking for thread model used by GCC... " >&6; }
4990 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4992 $as_echo "$target_thread_file" >&6; }
4994 # Check for assembler CFI support.
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4996 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
4997 if ${libgcc_cv_cfi+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 asm("\n\
5003 .text\n\
5004 .cfi_startproc\n\
5005 .cfi_personality 0, symbol\n\
5006 .cfi_endproc");
5007 _ACEOF
5008 if ac_fn_c_try_compile "$LINENO"; then :
5009 libgcc_cv_cfi=yes
5010 else
5011 libgcc_cv_cfi=no
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
5016 $as_echo "$libgcc_cv_cfi" >&6; }
5018 # Check 32bit or 64bit. In the case of MIPS, this really determines the
5019 # word size rather than the address size.
5020 cat > conftest.c <<EOF
5021 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
5022 || defined(__mips64)
5023 host_address=64
5024 #else
5025 host_address=32
5026 #endif
5028 eval `${CC-cc} -E conftest.c | grep host_address=`
5029 rm -f conftest.c
5031 case ${host} in
5032 mips*-*-*)
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
5034 $as_echo_n "checking whether the target is hard-float... " >&6; }
5035 if ${libgcc_cv_mips_hard_float+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 #ifndef __mips_hard_float
5041 #error FOO
5042 #endif
5044 _ACEOF
5045 if ac_fn_c_try_compile "$LINENO"; then :
5046 libgcc_cv_mips_hard_float=yes
5047 else
5048 libgcc_cv_mips_hard_float=no
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
5053 $as_echo "$libgcc_cv_mips_hard_float" >&6; }
5054 esac
5056 case ${host} in
5057 *-*-solaris2*)
5058 # Check for system-provided CRTs on Solaris 11.4.
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
5060 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
5061 if ${libgcc_cv_solaris_crts+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 libgcc_cv_solaris_crts=no
5065 libgcc_sysroot="`${CC} -print-sysroot`"
5066 libgcc_libdir="$libgcc_sysroot/usr/lib"
5067 # At the time they were added, gcrt1.o became a symlink for backwards
5068 # compatibility on x86, while crt1.o was added on sparc, so check for that.
5069 case ${host} in
5070 i?86-*-solaris2* | x86_64-*-solaris2*)
5071 if test -h "$libgcc_libdir/gcrt1.o"; then libgcc_cv_solaris_crts=yes; fi
5073 sparc*-*-solaris2*)
5074 if test -f "$libgcc_libdir/crt1.o"; then libgcc_cv_solaris_crts=yes; fi
5076 esac
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_solaris_crts" >&5
5079 $as_echo "$libgcc_cv_solaris_crts" >&6; }
5080 if test $libgcc_cv_solaris_crts = yes; then
5082 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
5086 esac
5088 # Determine the version of glibc, if any, used on the target.
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
5090 $as_echo_n "checking for target glibc version... " >&6; }
5092 # Check whether --with-glibc-version was given.
5093 if test "${with_glibc_version+set}" = set; then :
5094 withval=$with_glibc_version;
5095 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
5096 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
5097 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
5098 else
5099 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
5101 else
5103 if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
5105 else
5106 glibc_version_major=0
5109 if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
5111 else
5112 glibc_version_minor=0
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
5118 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
5120 # Determine floating-point type for powerpc*-*-linux*.
5121 # Single-precision-only FPRs are not a supported configuration for
5122 # this target, so are not allowed for in this test.
5123 case ${host} in
5124 powerpc*-*-linux*)
5125 cat > conftest.c <<EOF
5126 #ifdef __powerpc64__
5127 ppc_fp_type=64
5128 #elif defined _SOFT_FLOAT
5129 ppc_fp_type=soft
5130 #elif defined _SOFT_DOUBLE
5131 ppc_fp_type=e500v1
5132 #elif defined __NO_FPRS__
5133 ppc_fp_type=e500v2
5134 #else
5135 ppc_fp_type=hard
5136 #endif
5138 eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
5139 rm -f conftest.c
5140 # glibc 2.19 and later provide all the soft-fp functions, with proper
5141 # interactions with <fenv.h> exception and rounding mode handling, so
5142 # make libgcc's versions into compat symbols if a recent enough glibc
5143 # version is being used.
5144 ppc_fp_compat=
5145 case ${ppc_fp_type} in
5146 soft|e500v1|e500v2)
5147 if test $glibc_version_major -gt 2 \
5148 || ( test $glibc_version_major -eq 2 \
5149 && test $glibc_version_minor -ge 19 ); then
5150 ppc_fp_compat="t-softfp-compat"
5153 esac
5155 esac
5157 case ${host} in
5158 # At present, we cannot turn -mfloat128 on via #pragma GCC target, so just
5159 # check if we have VSX (ISA 2.06) support to build the software libraries, and
5160 # whether the assembler can handle xsaddqp for hardware support. Also check if
5161 # a new glibc is being used so that __builtin_cpu_supports can be used.
5162 powerpc*-*-linux*)
5163 saved_CFLAGS="$CFLAGS"
5164 CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5
5166 $as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; }
5167 if ${libgcc_cv_powerpc_float128+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 vector double dadd (vector double a, vector double b) { return a + b; }
5173 _ACEOF
5174 if ac_fn_c_try_compile "$LINENO"; then :
5175 libgcc_cv_powerpc_float128=yes
5176 else
5177 libgcc_cv_powerpc_float128=no
5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5
5182 $as_echo "$libgcc_cv_powerpc_float128" >&6; }
5184 CFLAGS="$CFLAGS -mpower9-vector -mfloat128-hardware"
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5
5186 $as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; }
5187 if ${libgcc_cv_powerpc_float128_hw+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 #include <sys/auxv.h>
5193 #ifndef AT_PLATFORM
5194 #error "AT_PLATFORM is not defined"
5195 #endif
5196 #ifndef __BUILTIN_CPU_SUPPORTS__
5197 #error "__builtin_cpu_supports is not available"
5198 #endif
5199 vector unsigned char add (vector unsigned char a, vector unsigned char b)
5201 vector unsigned char ret;
5202 __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b));
5203 return ret;
5205 void *add_resolver (void) { return (void *) add; }
5206 __float128 add_ifunc (__float128, __float128)
5207 __attribute__ ((__ifunc__ ("add_resolver")));
5208 _ACEOF
5209 if ac_fn_c_try_compile "$LINENO"; then :
5210 libgcc_cv_powerpc_float128_hw=yes
5211 else
5212 libgcc_cv_powerpc_float128_hw=no
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5
5217 $as_echo "$libgcc_cv_powerpc_float128_hw" >&6; }
5218 CFLAGS="$saved_CFLAGS"
5219 esac
5221 # Collect host-machine-specific information.
5222 . ${srcdir}/config.host
5224 # Used for constructing correct paths for offload compilers.
5225 accel_dir_suffix=
5226 real_host_noncanonical=${host_noncanonical}
5227 if test x"$enable_as_accelerator_for" != x; then
5228 accel_dir_suffix=/accel/${target_noncanonical}
5229 real_host_noncanonical=${enable_as_accelerator_for}
5234 if test x"$enable_offload_targets" != x; then
5235 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o"
5238 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
5239 # This is after config.host so we can augment tmake_file.
5240 # Link with -nostartfiles -nodefaultlibs since neither are present while
5241 # building libgcc.
5242 case ${host} in
5243 i?86-*-solaris2* | x86_64-*-solaris2*)
5244 cat > conftest.s <<EOF
5245 .section .eh_frame,"a",@unwind
5246 .zero 4
5247 .section .jcr,"aw",@progbits
5248 .zero 8
5250 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
5251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5255 test $ac_status = 0; }; }; then
5256 tmake_file="${tmake_file} i386/t-crtstuff"
5259 esac
5261 # Check if Solaris linker support v2 linker mapfile syntax.
5262 # Link with -nostartfiles -nodefaultlibs since neither are present while
5263 # building libgcc.
5264 case ${host} in
5265 *-*-solaris2*)
5266 solaris_ld_v2_maps=no
5267 echo 'int main(void) {return 0;}' > conftest.c
5268 echo '$mapfile_version 2' > conftest.map
5269 if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5'
5270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5274 test $ac_status = 0; }; }; then
5275 solaris_ld_v2_maps=yes
5278 esac
5281 # Check if xtensa target is configured for windowed ABI and thus needs to use
5282 # custom unwind code.
5283 # This is after config.host so we can augment tmake_file.
5284 case ${host} in
5285 xtensa*-*)
5286 cat > conftest.c <<EOF
5287 #ifdef __XTENSA_CALL0_ABI__
5288 #error
5289 #endif
5291 if { ac_try='${CC-cc} -E -o conftest.i conftest.c 1>&5'
5292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5293 (eval $ac_try) 2>&5
5294 ac_status=$?
5295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5296 test $ac_status = 0; }; }; then
5297 tmake_file="${tmake_file} xtensa/t-windowed"
5300 esac
5302 # Check for visibility support. This is after config.host so that
5303 # we can check for asm_hidden_op.
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
5305 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
5306 if ${libgcc_cv_hidden_visibility_attribute+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5310 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
5311 libgcc_cv_hidden_visibility_attribute=no
5312 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5317 test $ac_status = 0; }; }; then
5318 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
5319 libgcc_cv_hidden_visibility_attribute=yes
5322 rm -f conftest.*
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
5326 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
5328 if test $libgcc_cv_hidden_visibility_attribute = yes; then
5329 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
5331 cat >>confdefs.h <<_ACEOF
5332 #define AS_HIDDEN_DIRECTIVE $asm_hidden_op
5333 _ACEOF
5335 else
5336 vis_hide=
5340 # Check for .cfi_sections .debug_frame support.
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5
5342 $as_echo_n "checking for .cfi_sections .debug_frame... " >&6; }
5343 if ${libgcc_cv_cfi_sections_directive+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5347 echo 'int foo (int, char *);' > conftest.c
5348 echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c
5349 libgcc_cv_cfi_sections_directive=no
5350 if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5'
5351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5355 test $ac_status = 0; }; }; then
5356 if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then
5357 libgcc_cv_cfi_sections_directive=yes
5360 rm -f conftest.*
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5
5364 $as_echo "$libgcc_cv_cfi_sections_directive" >&6; }
5365 if test $libgcc_cv_cfi_sections_directive = yes; then
5367 $as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h
5371 # See if we have thread-local storage. We can only test assembler
5372 # since link-time and run-time tests require the newly built
5373 # gcc, which can't be used to build executable due to that libgcc
5374 # is yet to be built here.
5376 # Check whether --enable-tls was given.
5377 if test "${enable_tls+set}" = set; then :
5378 enableval=$enable_tls;
5379 case "$enableval" in
5380 yes|no) ;;
5381 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
5382 esac
5384 else
5385 enable_tls=yes
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
5390 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
5391 if ${gcc_cv_have_cc_tls+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397 __thread int a; int b; int main() { return a = b; }
5398 _ACEOF
5399 if ac_fn_c_try_compile "$LINENO"; then :
5400 gcc_cv_have_cc_tls=yes
5401 else
5402 gcc_cv_have_cc_tls=no
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
5408 $as_echo "$gcc_cv_have_cc_tls" >&6; }
5409 set_have_cc_tls=
5410 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
5411 set_have_cc_tls="-DHAVE_CC_TLS"
5415 # See if we have emulated thread-local storage.
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
5418 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
5419 if ${gcc_cv_use_emutls+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5423 gcc_cv_use_emutls=no
5424 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
5425 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
5426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5427 (eval $ac_try) 2>&5
5428 ac_status=$?
5429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5430 test $ac_status = 0; }; }; then
5431 if grep __emutls_get_address conftest.s > /dev/null; then
5432 gcc_cv_use_emutls=yes
5435 rm -f conftest.*
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
5439 $as_echo "$gcc_cv_use_emutls" >&6; }
5440 if test "$gcc_cv_use_emutls" = "yes" ; then
5442 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
5445 set_use_emutls=
5446 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
5447 set_use_emutls="-DUSE_EMUTLS"
5453 case "${target}" in
5454 i[34567]86-*-* | x86_64-*-*)
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
5456 $as_echo_n "checking if the assembler supports AVX... " >&6; }
5457 if ${libgcc_cv_as_avx+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5465 main ()
5467 asm("vzeroupper");
5469 return 0;
5471 _ACEOF
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473 libgcc_cv_as_avx=yes
5474 else
5475 libgcc_cv_as_avx=no
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_avx" >&5
5481 $as_echo "$libgcc_cv_as_avx" >&6; }
5482 if test x$libgcc_cv_as_avx = xyes; then
5484 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
5488 esac
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
5491 $as_echo_n "checking for init priority support... " >&6; }
5492 if ${libgcc_cv_init_priority+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5500 main ()
5502 void ip (void) __attribute__ ((constructor (1)));
5504 return 0;
5506 _ACEOF
5507 if ac_fn_c_try_compile "$LINENO"; then :
5508 libgcc_cv_init_priority=yes
5509 else
5510 libgcc_cv_init_priority=no
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
5515 $as_echo "$libgcc_cv_init_priority" >&6; }
5516 if test $libgcc_cv_init_priority = yes; then
5518 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
5522 # Conditionalize the sfp-machine.h header for this target machine.
5523 if test -z "${sfp_machine_header}"; then
5524 sfp_machine_header=$cpu_type/sfp-machine.h
5525 if test -f ${srcdir}/config/${sfp_machine_header}; then
5527 else
5528 sfp_machine_header=no-sfp-machine.h
5533 # Conditionalize the makefile for this target machine.
5534 tmake_file_=
5535 for f in ${tmake_file}
5537 if test -f ${srcdir}/config/$f
5538 then
5539 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
5541 done
5542 tmake_file="${tmake_file_}"
5545 # Likewise export definitions for libgcc_tm.h
5546 tm_file_=
5547 for f in ${tm_file}
5549 tm_file_="${tm_file_} \$(srcdir)/config/$f"
5550 done
5551 tm_file="${tm_file_}"
5555 # Map from thread model to thread header.
5557 case $target_thread_file in
5558 aix) thread_header=config/rs6000/gthr-aix.h ;;
5559 dce) thread_header=config/pa/gthr-dce.h ;;
5560 gcn) thread_header=config/gcn/gthr-gcn.h ;;
5561 lynx) thread_header=config/gthr-lynx.h ;;
5562 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
5563 posix) thread_header=gthr-posix.h ;;
5564 rtems) thread_header=config/gthr-rtems.h ;;
5565 single) thread_header=gthr-single.h ;;
5566 tpf) thread_header=config/s390/gthr-tpf.h ;;
5567 vxworks) thread_header=config/gthr-vxworks.h ;;
5568 win32) thread_header=config/i386/gthr-win32.h ;;
5569 esac
5573 # Determine what GCC version number to use in filesystem paths.
5575 get_gcc_base_ver="cat"
5577 # Check whether --with-gcc-major-version-only was given.
5578 if test "${with_gcc_major_version_only+set}" = set; then :
5579 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5580 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5588 # Substitute configuration variables
5598 # We need multilib support.
5599 ac_config_files="$ac_config_files Makefile"
5601 ac_config_commands="$ac_config_commands default"
5603 cat >confcache <<\_ACEOF
5604 # This file is a shell script that caches the results of configure
5605 # tests run on this system so they can be shared between configure
5606 # scripts and configure runs, see configure's option --config-cache.
5607 # It is not useful on other systems. If it contains results you don't
5608 # want to keep, you may remove or edit it.
5610 # config.status only pays attention to the cache file if you give it
5611 # the --recheck option to rerun configure.
5613 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5614 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5615 # following values.
5617 _ACEOF
5619 # The following way of writing the cache mishandles newlines in values,
5620 # but we know of no workaround that is simple, portable, and efficient.
5621 # So, we kill variables containing newlines.
5622 # Ultrix sh set writes to stderr and can't be redirected directly,
5623 # and sets the high bit in the cache file unless we assign to the vars.
5625 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5626 eval ac_val=\$$ac_var
5627 case $ac_val in #(
5628 *${as_nl}*)
5629 case $ac_var in #(
5630 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5631 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5632 esac
5633 case $ac_var in #(
5634 _ | IFS | as_nl) ;; #(
5635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5636 *) { eval $ac_var=; unset $ac_var;} ;;
5637 esac ;;
5638 esac
5639 done
5641 (set) 2>&1 |
5642 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5643 *${as_nl}ac_space=\ *)
5644 # `set' does not quote correctly, so add quotes: double-quote
5645 # substitution turns \\\\ into \\, and sed turns \\ into \.
5646 sed -n \
5647 "s/'/'\\\\''/g;
5648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5649 ;; #(
5651 # `set' quotes correctly as required by POSIX, so do not add quotes.
5652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5654 esac |
5655 sort
5657 sed '
5658 /^ac_cv_env_/b end
5659 t clear
5660 :clear
5661 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5662 t end
5663 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5664 :end' >>confcache
5665 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5666 if test -w "$cache_file"; then
5667 if test "x$cache_file" != "x/dev/null"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5669 $as_echo "$as_me: updating cache $cache_file" >&6;}
5670 if test ! -f "$cache_file" || test -h "$cache_file"; then
5671 cat confcache >"$cache_file"
5672 else
5673 case $cache_file in #(
5674 */* | ?:*)
5675 mv -f confcache "$cache_file"$$ &&
5676 mv -f "$cache_file"$$ "$cache_file" ;; #(
5678 mv -f confcache "$cache_file" ;;
5679 esac
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5684 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5687 rm -f confcache
5689 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5690 # Let make expand exec_prefix.
5691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5693 DEFS=-DHAVE_CONFIG_H
5695 ac_libobjs=
5696 ac_ltlibobjs=
5698 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5699 # 1. Remove the extension, and $U if already installed.
5700 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5701 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5702 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5703 # will be set to the directory where LIBOBJS objects are built.
5704 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5705 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5706 done
5707 LIBOBJS=$ac_libobjs
5709 LTLIBOBJS=$ac_ltlibobjs
5713 : "${CONFIG_STATUS=./config.status}"
5714 ac_write_fail=0
5715 ac_clean_files_save=$ac_clean_files
5716 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5718 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5719 as_write_fail=0
5720 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5721 #! $SHELL
5722 # Generated by $as_me.
5723 # Run this file to recreate the current configuration.
5724 # Compiler output produced by configure, useful for debugging
5725 # configure, is in config.log if it exists.
5727 debug=false
5728 ac_cs_recheck=false
5729 ac_cs_silent=false
5731 SHELL=\${CONFIG_SHELL-$SHELL}
5732 export SHELL
5733 _ASEOF
5734 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5735 ## -------------------- ##
5736 ## M4sh Initialization. ##
5737 ## -------------------- ##
5739 # Be more Bourne compatible
5740 DUALCASE=1; export DUALCASE # for MKS sh
5741 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5742 emulate sh
5743 NULLCMD=:
5744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5745 # is contrary to our usage. Disable this feature.
5746 alias -g '${1+"$@"}'='"$@"'
5747 setopt NO_GLOB_SUBST
5748 else
5749 case `(set -o) 2>/dev/null` in #(
5750 *posix*) :
5751 set -o posix ;; #(
5752 *) :
5754 esac
5758 as_nl='
5760 export as_nl
5761 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5762 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5765 # Prefer a ksh shell builtin over an external printf program on Solaris,
5766 # but without wasting forks for bash or zsh.
5767 if test -z "$BASH_VERSION$ZSH_VERSION" \
5768 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5769 as_echo='print -r --'
5770 as_echo_n='print -rn --'
5771 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5772 as_echo='printf %s\n'
5773 as_echo_n='printf %s'
5774 else
5775 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5776 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5777 as_echo_n='/usr/ucb/echo -n'
5778 else
5779 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5780 as_echo_n_body='eval
5781 arg=$1;
5782 case $arg in #(
5783 *"$as_nl"*)
5784 expr "X$arg" : "X\\(.*\\)$as_nl";
5785 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5786 esac;
5787 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5789 export as_echo_n_body
5790 as_echo_n='sh -c $as_echo_n_body as_echo'
5792 export as_echo_body
5793 as_echo='sh -c $as_echo_body as_echo'
5796 # The user is always right.
5797 if test "${PATH_SEPARATOR+set}" != set; then
5798 PATH_SEPARATOR=:
5799 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5800 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5801 PATH_SEPARATOR=';'
5806 # IFS
5807 # We need space, tab and new line, in precisely that order. Quoting is
5808 # there to prevent editors from complaining about space-tab.
5809 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5810 # splitting by setting IFS to empty value.)
5811 IFS=" "" $as_nl"
5813 # Find who we are. Look in the path if we contain no directory separator.
5814 as_myself=
5815 case $0 in #((
5816 *[\\/]* ) as_myself=$0 ;;
5817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5823 done
5824 IFS=$as_save_IFS
5827 esac
5828 # We did not find ourselves, most probably we were run as `sh COMMAND'
5829 # in which case we are not to be found in the path.
5830 if test "x$as_myself" = x; then
5831 as_myself=$0
5833 if test ! -f "$as_myself"; then
5834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5835 exit 1
5838 # Unset variables that we do not need and which cause bugs (e.g. in
5839 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5840 # suppresses any "Segmentation fault" message there. '((' could
5841 # trigger a bug in pdksh 5.2.14.
5842 for as_var in BASH_ENV ENV MAIL MAILPATH
5843 do eval test x\${$as_var+set} = xset \
5844 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5845 done
5846 PS1='$ '
5847 PS2='> '
5848 PS4='+ '
5850 # NLS nuisances.
5851 LC_ALL=C
5852 export LC_ALL
5853 LANGUAGE=C
5854 export LANGUAGE
5856 # CDPATH.
5857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5860 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5861 # ----------------------------------------
5862 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5863 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5864 # script with STATUS, using 1 if that was 0.
5865 as_fn_error ()
5867 as_status=$1; test $as_status -eq 0 && as_status=1
5868 if test "$4"; then
5869 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5870 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5872 $as_echo "$as_me: error: $2" >&2
5873 as_fn_exit $as_status
5874 } # as_fn_error
5877 # as_fn_set_status STATUS
5878 # -----------------------
5879 # Set $? to STATUS, without forking.
5880 as_fn_set_status ()
5882 return $1
5883 } # as_fn_set_status
5885 # as_fn_exit STATUS
5886 # -----------------
5887 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5888 as_fn_exit ()
5890 set +e
5891 as_fn_set_status $1
5892 exit $1
5893 } # as_fn_exit
5895 # as_fn_unset VAR
5896 # ---------------
5897 # Portably unset VAR.
5898 as_fn_unset ()
5900 { eval $1=; unset $1;}
5902 as_unset=as_fn_unset
5903 # as_fn_append VAR VALUE
5904 # ----------------------
5905 # Append the text in VALUE to the end of the definition contained in VAR. Take
5906 # advantage of any shell optimizations that allow amortized linear growth over
5907 # repeated appends, instead of the typical quadratic growth present in naive
5908 # implementations.
5909 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5910 eval 'as_fn_append ()
5912 eval $1+=\$2
5914 else
5915 as_fn_append ()
5917 eval $1=\$$1\$2
5919 fi # as_fn_append
5921 # as_fn_arith ARG...
5922 # ------------------
5923 # Perform arithmetic evaluation on the ARGs, and store the result in the
5924 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5925 # must be portable across $(()) and expr.
5926 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5927 eval 'as_fn_arith ()
5929 as_val=$(( $* ))
5931 else
5932 as_fn_arith ()
5934 as_val=`expr "$@" || test $? -eq 1`
5936 fi # as_fn_arith
5939 if expr a : '\(a\)' >/dev/null 2>&1 &&
5940 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5941 as_expr=expr
5942 else
5943 as_expr=false
5946 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5947 as_basename=basename
5948 else
5949 as_basename=false
5952 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5953 as_dirname=dirname
5954 else
5955 as_dirname=false
5958 as_me=`$as_basename -- "$0" ||
5959 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5960 X"$0" : 'X\(//\)$' \| \
5961 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5962 $as_echo X/"$0" |
5963 sed '/^.*\/\([^/][^/]*\)\/*$/{
5964 s//\1/
5967 /^X\/\(\/\/\)$/{
5968 s//\1/
5971 /^X\/\(\/\).*/{
5972 s//\1/
5975 s/.*/./; q'`
5977 # Avoid depending upon Character Ranges.
5978 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5979 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5980 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5981 as_cr_digits='0123456789'
5982 as_cr_alnum=$as_cr_Letters$as_cr_digits
5984 ECHO_C= ECHO_N= ECHO_T=
5985 case `echo -n x` in #(((((
5986 -n*)
5987 case `echo 'xy\c'` in
5988 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5989 xy) ECHO_C='\c';;
5990 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5991 ECHO_T=' ';;
5992 esac;;
5994 ECHO_N='-n';;
5995 esac
5997 rm -f conf$$ conf$$.exe conf$$.file
5998 if test -d conf$$.dir; then
5999 rm -f conf$$.dir/conf$$.file
6000 else
6001 rm -f conf$$.dir
6002 mkdir conf$$.dir 2>/dev/null
6004 if (echo >conf$$.file) 2>/dev/null; then
6005 if ln -s conf$$.file conf$$ 2>/dev/null; then
6006 as_ln_s='ln -s'
6007 # ... but there are two gotchas:
6008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6010 # In both cases, we have to default to `cp -pR'.
6011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6012 as_ln_s='cp -pR'
6013 elif ln conf$$.file conf$$ 2>/dev/null; then
6014 as_ln_s=ln
6015 else
6016 as_ln_s='cp -pR'
6018 else
6019 as_ln_s='cp -pR'
6021 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6022 rmdir conf$$.dir 2>/dev/null
6025 # as_fn_mkdir_p
6026 # -------------
6027 # Create "$as_dir" as a directory, including parents if necessary.
6028 as_fn_mkdir_p ()
6031 case $as_dir in #(
6032 -*) as_dir=./$as_dir;;
6033 esac
6034 test -d "$as_dir" || eval $as_mkdir_p || {
6035 as_dirs=
6036 while :; do
6037 case $as_dir in #(
6038 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6039 *) as_qdir=$as_dir;;
6040 esac
6041 as_dirs="'$as_qdir' $as_dirs"
6042 as_dir=`$as_dirname -- "$as_dir" ||
6043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6044 X"$as_dir" : 'X\(//\)[^/]' \| \
6045 X"$as_dir" : 'X\(//\)$' \| \
6046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6047 $as_echo X"$as_dir" |
6048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6049 s//\1/
6052 /^X\(\/\/\)[^/].*/{
6053 s//\1/
6056 /^X\(\/\/\)$/{
6057 s//\1/
6060 /^X\(\/\).*/{
6061 s//\1/
6064 s/.*/./; q'`
6065 test -d "$as_dir" && break
6066 done
6067 test -z "$as_dirs" || eval "mkdir $as_dirs"
6068 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6071 } # as_fn_mkdir_p
6072 if mkdir -p . 2>/dev/null; then
6073 as_mkdir_p='mkdir -p "$as_dir"'
6074 else
6075 test -d ./-p && rmdir ./-p
6076 as_mkdir_p=false
6080 # as_fn_executable_p FILE
6081 # -----------------------
6082 # Test if FILE is an executable regular file.
6083 as_fn_executable_p ()
6085 test -f "$1" && test -x "$1"
6086 } # as_fn_executable_p
6087 as_test_x='test -x'
6088 as_executable_p=as_fn_executable_p
6090 # Sed expression to map a string onto a valid CPP name.
6091 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6093 # Sed expression to map a string onto a valid variable name.
6094 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6097 exec 6>&1
6098 ## ----------------------------------- ##
6099 ## Main body of $CONFIG_STATUS script. ##
6100 ## ----------------------------------- ##
6101 _ASEOF
6102 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6105 # Save the log message, to keep $0 and so on meaningful, and to
6106 # report actual input values of CONFIG_FILES etc. instead of their
6107 # values after options handling.
6108 ac_log="
6109 This file was extended by GNU C Runtime Library $as_me 1.0, which was
6110 generated by GNU Autoconf 2.69. Invocation command line was
6112 CONFIG_FILES = $CONFIG_FILES
6113 CONFIG_HEADERS = $CONFIG_HEADERS
6114 CONFIG_LINKS = $CONFIG_LINKS
6115 CONFIG_COMMANDS = $CONFIG_COMMANDS
6116 $ $0 $@
6118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6121 _ACEOF
6123 case $ac_config_files in *"
6124 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6125 esac
6127 case $ac_config_headers in *"
6128 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6129 esac
6132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6133 # Files that config.status was made for.
6134 config_files="$ac_config_files"
6135 config_headers="$ac_config_headers"
6136 config_commands="$ac_config_commands"
6138 _ACEOF
6140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6141 ac_cs_usage="\
6142 \`$as_me' instantiates files and other configuration actions
6143 from templates according to the current configuration. Unless the files
6144 and actions are specified as TAGs, all are instantiated by default.
6146 Usage: $0 [OPTION]... [TAG]...
6148 -h, --help print this help, then exit
6149 -V, --version print version number and configuration settings, then exit
6150 --config print configuration, then exit
6151 -q, --quiet, --silent
6152 do not print progress messages
6153 -d, --debug don't remove temporary files
6154 --recheck update $as_me by reconfiguring in the same conditions
6155 --file=FILE[:TEMPLATE]
6156 instantiate the configuration file FILE
6157 --header=FILE[:TEMPLATE]
6158 instantiate the configuration header FILE
6160 Configuration files:
6161 $config_files
6163 Configuration headers:
6164 $config_headers
6166 Configuration commands:
6167 $config_commands
6169 Report bugs to the package provider.
6170 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
6171 General help using GNU software: <http://www.gnu.org/gethelp/>."
6173 _ACEOF
6174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6175 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6176 ac_cs_version="\\
6177 GNU C Runtime Library config.status 1.0
6178 configured by $0, generated by GNU Autoconf 2.69,
6179 with options \\"\$ac_cs_config\\"
6181 Copyright (C) 2012 Free Software Foundation, Inc.
6182 This config.status script is free software; the Free Software Foundation
6183 gives unlimited permission to copy, distribute and modify it."
6185 ac_pwd='$ac_pwd'
6186 srcdir='$srcdir'
6187 INSTALL='$INSTALL'
6188 AWK='$AWK'
6189 test -n "\$AWK" || AWK=awk
6190 _ACEOF
6192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6193 # The default lists apply if the user does not specify any file.
6194 ac_need_defaults=:
6195 while test $# != 0
6197 case $1 in
6198 --*=?*)
6199 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6200 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6201 ac_shift=:
6203 --*=)
6204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6205 ac_optarg=
6206 ac_shift=:
6209 ac_option=$1
6210 ac_optarg=$2
6211 ac_shift=shift
6213 esac
6215 case $ac_option in
6216 # Handling of the options.
6217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6218 ac_cs_recheck=: ;;
6219 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6220 $as_echo "$ac_cs_version"; exit ;;
6221 --config | --confi | --conf | --con | --co | --c )
6222 $as_echo "$ac_cs_config"; exit ;;
6223 --debug | --debu | --deb | --de | --d | -d )
6224 debug=: ;;
6225 --file | --fil | --fi | --f )
6226 $ac_shift
6227 case $ac_optarg in
6228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6229 '') as_fn_error $? "missing file argument" ;;
6230 esac
6231 as_fn_append CONFIG_FILES " '$ac_optarg'"
6232 ac_need_defaults=false;;
6233 --header | --heade | --head | --hea )
6234 $ac_shift
6235 case $ac_optarg in
6236 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6237 esac
6238 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6239 ac_need_defaults=false;;
6240 --he | --h)
6241 # Conflict between --help and --header
6242 as_fn_error $? "ambiguous option: \`$1'
6243 Try \`$0 --help' for more information.";;
6244 --help | --hel | -h )
6245 $as_echo "$ac_cs_usage"; exit ;;
6246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6248 ac_cs_silent=: ;;
6250 # This is an error.
6251 -*) as_fn_error $? "unrecognized option: \`$1'
6252 Try \`$0 --help' for more information." ;;
6254 *) as_fn_append ac_config_targets " $1"
6255 ac_need_defaults=false ;;
6257 esac
6258 shift
6259 done
6261 ac_configure_extra_args=
6263 if $ac_cs_silent; then
6264 exec 6>/dev/null
6265 ac_configure_extra_args="$ac_configure_extra_args --silent"
6268 _ACEOF
6269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6270 if \$ac_cs_recheck; then
6271 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6272 shift
6273 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6274 CONFIG_SHELL='$SHELL'
6275 export CONFIG_SHELL
6276 exec "\$@"
6279 _ACEOF
6280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6281 exec 5>>config.log
6283 echo
6284 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6285 ## Running $as_me. ##
6286 _ASBOX
6287 $as_echo "$ac_log"
6288 } >&5
6290 _ACEOF
6291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6293 # INIT-COMMANDS
6295 srcdir=${srcdir}
6296 host=${host}
6297 with_target_subdir=${with_target_subdir}
6298 with_multisubdir=${with_multisubdir}
6299 ac_configure_args="--enable-multilib ${ac_configure_args}"
6300 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6301 libgcc_topdir=${libgcc_topdir}
6302 CC="${CC}"
6305 _ACEOF
6307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6309 # Handling of arguments.
6310 for ac_config_target in $ac_config_targets
6312 case $ac_config_target in
6313 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
6314 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6315 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6317 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6318 esac
6319 done
6322 # If the user did not use the arguments to specify the items to instantiate,
6323 # then the envvar interface is used. Set only those that are not.
6324 # We use the long form for the default assignment because of an extremely
6325 # bizarre bug on SunOS 4.1.3.
6326 if $ac_need_defaults; then
6327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6332 # Have a temporary directory for convenience. Make it in the build tree
6333 # simply because there is no reason against having it here, and in addition,
6334 # creating and moving files from /tmp can sometimes cause problems.
6335 # Hook for its removal unless debugging.
6336 # Note that there is a small window in which the directory will not be cleaned:
6337 # after its creation but before its name has been assigned to `$tmp'.
6338 $debug ||
6340 tmp= ac_tmp=
6341 trap 'exit_status=$?
6342 : "${ac_tmp:=$tmp}"
6343 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6345 trap 'as_fn_exit 1' 1 2 13 15
6347 # Create a (secure) tmp directory for tmp files.
6350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6351 test -d "$tmp"
6352 } ||
6354 tmp=./conf$$-$RANDOM
6355 (umask 077 && mkdir "$tmp")
6356 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6357 ac_tmp=$tmp
6359 # Set up the scripts for CONFIG_FILES section.
6360 # No need to generate them if there are no CONFIG_FILES.
6361 # This happens for instance with `./config.status config.h'.
6362 if test -n "$CONFIG_FILES"; then
6365 ac_cr=`echo X | tr X '\015'`
6366 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6367 # But we know of no other shell where ac_cr would be empty at this
6368 # point, so we can use a bashism as a fallback.
6369 if test "x$ac_cr" = x; then
6370 eval ac_cr=\$\'\\r\'
6372 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6373 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6374 ac_cs_awk_cr='\\r'
6375 else
6376 ac_cs_awk_cr=$ac_cr
6379 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6380 _ACEOF
6384 echo "cat >conf$$subs.awk <<_ACEOF" &&
6385 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6386 echo "_ACEOF"
6387 } >conf$$subs.sh ||
6388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6389 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6390 ac_delim='%!_!# '
6391 for ac_last_try in false false false false false :; do
6392 . ./conf$$subs.sh ||
6393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6395 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6396 if test $ac_delim_n = $ac_delim_num; then
6397 break
6398 elif $ac_last_try; then
6399 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6400 else
6401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6403 done
6404 rm -f conf$$subs.sh
6406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6407 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6408 _ACEOF
6409 sed -n '
6411 s/^/S["/; s/!.*/"]=/
6414 s/^[^!]*!//
6415 :repl
6416 t repl
6417 s/'"$ac_delim"'$//
6418 t delim
6421 s/\(.\{148\}\)..*/\1/
6422 t more1
6423 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6426 b repl
6427 :more1
6428 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6431 s/.\{148\}//
6432 t nl
6433 :delim
6435 s/\(.\{148\}\)..*/\1/
6436 t more2
6437 s/["\\]/\\&/g; s/^/"/; s/$/"/
6440 :more2
6441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6444 s/.\{148\}//
6445 t delim
6446 ' <conf$$subs.awk | sed '
6447 /^[^""]/{
6449 s/\n//
6451 ' >>$CONFIG_STATUS || ac_write_fail=1
6452 rm -f conf$$subs.awk
6453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6454 _ACAWK
6455 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6456 for (key in S) S_is_set[key] = 1
6457 FS = "\a"
6461 line = $ 0
6462 nfields = split(line, field, "@")
6463 substed = 0
6464 len = length(field[1])
6465 for (i = 2; i < nfields; i++) {
6466 key = field[i]
6467 keylen = length(key)
6468 if (S_is_set[key]) {
6469 value = S[key]
6470 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6471 len += length(value) + length(field[++i])
6472 substed = 1
6473 } else
6474 len += 1 + keylen
6477 print line
6480 _ACAWK
6481 _ACEOF
6482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6483 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6485 else
6487 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6488 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6489 _ACEOF
6491 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6492 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6493 # trailing colons and then remove the whole line if VPATH becomes empty
6494 # (actually we leave an empty line to preserve line numbers).
6495 if test "x$srcdir" = x.; then
6496 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6498 s///
6499 s/^/:/
6500 s/[ ]*$/:/
6501 s/:\$(srcdir):/:/g
6502 s/:\${srcdir}:/:/g
6503 s/:@srcdir@:/:/g
6504 s/^:*//
6505 s/:*$//
6507 s/\(=[ ]*\).*/\1/
6509 s/\n//
6510 s/^[^=]*=[ ]*$//
6514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6515 fi # test -n "$CONFIG_FILES"
6517 # Set up the scripts for CONFIG_HEADERS section.
6518 # No need to generate them if there are no CONFIG_HEADERS.
6519 # This happens for instance with `./config.status Makefile'.
6520 if test -n "$CONFIG_HEADERS"; then
6521 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6522 BEGIN {
6523 _ACEOF
6525 # Transform confdefs.h into an awk script `defines.awk', embedded as
6526 # here-document in config.status, that substitutes the proper values into
6527 # config.h.in to produce config.h.
6529 # Create a delimiter string that does not exist in confdefs.h, to ease
6530 # handling of long lines.
6531 ac_delim='%!_!# '
6532 for ac_last_try in false false :; do
6533 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6534 if test -z "$ac_tt"; then
6535 break
6536 elif $ac_last_try; then
6537 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6538 else
6539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6541 done
6543 # For the awk script, D is an array of macro values keyed by name,
6544 # likewise P contains macro parameters if any. Preserve backslash
6545 # newline sequences.
6547 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6548 sed -n '
6549 s/.\{148\}/&'"$ac_delim"'/g
6550 t rset
6551 :rset
6552 s/^[ ]*#[ ]*define[ ][ ]*/ /
6553 t def
6555 :def
6556 s/\\$//
6557 t bsnl
6558 s/["\\]/\\&/g
6559 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6560 D["\1"]=" \3"/p
6561 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6563 :bsnl
6564 s/["\\]/\\&/g
6565 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6566 D["\1"]=" \3\\\\\\n"\\/p
6567 t cont
6568 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6569 t cont
6571 :cont
6573 s/.\{148\}/&'"$ac_delim"'/g
6574 t clear
6575 :clear
6576 s/\\$//
6577 t bsnlc
6578 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6580 :bsnlc
6581 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6582 b cont
6583 ' <confdefs.h | sed '
6584 s/'"$ac_delim"'/"\\\
6585 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6588 for (key in D) D_is_set[key] = 1
6589 FS = "\a"
6591 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6592 line = \$ 0
6593 split(line, arg, " ")
6594 if (arg[1] == "#") {
6595 defundef = arg[2]
6596 mac1 = arg[3]
6597 } else {
6598 defundef = substr(arg[1], 2)
6599 mac1 = arg[2]
6601 split(mac1, mac2, "(") #)
6602 macro = mac2[1]
6603 prefix = substr(line, 1, index(line, defundef) - 1)
6604 if (D_is_set[macro]) {
6605 # Preserve the white space surrounding the "#".
6606 print prefix "define", macro P[macro] D[macro]
6607 next
6608 } else {
6609 # Replace #undef with comments. This is necessary, for example,
6610 # in the case of _POSIX_SOURCE, which is predefined and required
6611 # on some systems where configure will not decide to define it.
6612 if (defundef == "undef") {
6613 print "/*", prefix defundef, macro, "*/"
6614 next
6618 { print }
6619 _ACAWK
6620 _ACEOF
6621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6622 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6623 fi # test -n "$CONFIG_HEADERS"
6626 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6627 shift
6628 for ac_tag
6630 case $ac_tag in
6631 :[FHLC]) ac_mode=$ac_tag; continue;;
6632 esac
6633 case $ac_mode$ac_tag in
6634 :[FHL]*:*);;
6635 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6636 :[FH]-) ac_tag=-:-;;
6637 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6638 esac
6639 ac_save_IFS=$IFS
6640 IFS=:
6641 set x $ac_tag
6642 IFS=$ac_save_IFS
6643 shift
6644 ac_file=$1
6645 shift
6647 case $ac_mode in
6648 :L) ac_source=$1;;
6649 :[FH])
6650 ac_file_inputs=
6651 for ac_f
6653 case $ac_f in
6654 -) ac_f="$ac_tmp/stdin";;
6655 *) # Look for the file first in the build tree, then in the source tree
6656 # (if the path is not absolute). The absolute path cannot be DOS-style,
6657 # because $ac_f cannot contain `:'.
6658 test -f "$ac_f" ||
6659 case $ac_f in
6660 [\\/$]*) false;;
6661 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6662 esac ||
6663 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6664 esac
6665 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6666 as_fn_append ac_file_inputs " '$ac_f'"
6667 done
6669 # Let's still pretend it is `configure' which instantiates (i.e., don't
6670 # use $as_me), people would be surprised to read:
6671 # /* config.h. Generated by config.status. */
6672 configure_input='Generated from '`
6673 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6674 `' by configure.'
6675 if test x"$ac_file" != x-; then
6676 configure_input="$ac_file. $configure_input"
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6678 $as_echo "$as_me: creating $ac_file" >&6;}
6680 # Neutralize special characters interpreted by sed in replacement strings.
6681 case $configure_input in #(
6682 *\&* | *\|* | *\\* )
6683 ac_sed_conf_input=`$as_echo "$configure_input" |
6684 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6685 *) ac_sed_conf_input=$configure_input;;
6686 esac
6688 case $ac_tag in
6689 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6691 esac
6693 esac
6695 ac_dir=`$as_dirname -- "$ac_file" ||
6696 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6697 X"$ac_file" : 'X\(//\)[^/]' \| \
6698 X"$ac_file" : 'X\(//\)$' \| \
6699 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6700 $as_echo X"$ac_file" |
6701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6702 s//\1/
6705 /^X\(\/\/\)[^/].*/{
6706 s//\1/
6709 /^X\(\/\/\)$/{
6710 s//\1/
6713 /^X\(\/\).*/{
6714 s//\1/
6717 s/.*/./; q'`
6718 as_dir="$ac_dir"; as_fn_mkdir_p
6719 ac_builddir=.
6721 case "$ac_dir" in
6722 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6724 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6725 # A ".." for each directory in $ac_dir_suffix.
6726 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6727 case $ac_top_builddir_sub in
6728 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6729 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6730 esac ;;
6731 esac
6732 ac_abs_top_builddir=$ac_pwd
6733 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6734 # for backward compatibility:
6735 ac_top_builddir=$ac_top_build_prefix
6737 case $srcdir in
6738 .) # We are building in place.
6739 ac_srcdir=.
6740 ac_top_srcdir=$ac_top_builddir_sub
6741 ac_abs_top_srcdir=$ac_pwd ;;
6742 [\\/]* | ?:[\\/]* ) # Absolute name.
6743 ac_srcdir=$srcdir$ac_dir_suffix;
6744 ac_top_srcdir=$srcdir
6745 ac_abs_top_srcdir=$srcdir ;;
6746 *) # Relative name.
6747 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6748 ac_top_srcdir=$ac_top_build_prefix$srcdir
6749 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6750 esac
6751 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6754 case $ac_mode in
6757 # CONFIG_FILE
6760 case $INSTALL in
6761 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6762 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6763 esac
6764 _ACEOF
6766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6767 # If the template does not know about datarootdir, expand it.
6768 # FIXME: This hack should be removed a few years after 2.60.
6769 ac_datarootdir_hack=; ac_datarootdir_seen=
6770 ac_sed_dataroot='
6771 /datarootdir/ {
6775 /@datadir@/p
6776 /@docdir@/p
6777 /@infodir@/p
6778 /@localedir@/p
6779 /@mandir@/p'
6780 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6781 *datarootdir*) ac_datarootdir_seen=yes;;
6782 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6784 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6785 _ACEOF
6786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6787 ac_datarootdir_hack='
6788 s&@datadir@&$datadir&g
6789 s&@docdir@&$docdir&g
6790 s&@infodir@&$infodir&g
6791 s&@localedir@&$localedir&g
6792 s&@mandir@&$mandir&g
6793 s&\\\${datarootdir}&$datarootdir&g' ;;
6794 esac
6795 _ACEOF
6797 # Neutralize VPATH when `$srcdir' = `.'.
6798 # Shell code in configure.ac might set extrasub.
6799 # FIXME: do we really want to maintain this feature?
6800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6801 ac_sed_extra="$ac_vpsub
6802 $extrasub
6803 _ACEOF
6804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6807 s|@configure_input@|$ac_sed_conf_input|;t t
6808 s&@top_builddir@&$ac_top_builddir_sub&;t t
6809 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6810 s&@srcdir@&$ac_srcdir&;t t
6811 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6812 s&@top_srcdir@&$ac_top_srcdir&;t t
6813 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6814 s&@builddir@&$ac_builddir&;t t
6815 s&@abs_builddir@&$ac_abs_builddir&;t t
6816 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6817 s&@INSTALL@&$ac_INSTALL&;t t
6818 $ac_datarootdir_hack
6820 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6821 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6823 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6824 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6825 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6826 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6828 which seems to be undefined. Please make sure it is defined" >&5
6829 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6830 which seems to be undefined. Please make sure it is defined" >&2;}
6832 rm -f "$ac_tmp/stdin"
6833 case $ac_file in
6834 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6835 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6836 esac \
6837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6841 # CONFIG_HEADER
6843 if test x"$ac_file" != x-; then
6845 $as_echo "/* $configure_input */" \
6846 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6847 } >"$ac_tmp/config.h" \
6848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6849 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6851 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6852 else
6853 rm -f "$ac_file"
6854 mv "$ac_tmp/config.h" "$ac_file" \
6855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6857 else
6858 $as_echo "/* $configure_input */" \
6859 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6860 || as_fn_error $? "could not create -" "$LINENO" 5
6864 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6865 $as_echo "$as_me: executing $ac_file commands" >&6;}
6867 esac
6870 case $ac_file$ac_mode in
6871 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6872 if test -n "$CONFIG_FILES"; then
6873 # FIXME: We shouldn't need to set ac_file
6874 ac_file=Makefile
6875 . ${libgcc_topdir}/config-ml.in
6876 fi ;;
6878 esac
6879 done # for ac_tag
6882 as_fn_exit 0
6883 _ACEOF
6884 ac_clean_files=$ac_clean_files_save
6886 test $ac_write_fail = 0 ||
6887 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6890 # configure is writing to config.log, and then calls config.status.
6891 # config.status does its own redirection, appending to config.log.
6892 # Unfortunately, on DOS this fails, as config.log is still kept open
6893 # by configure, so config.status won't be able to write to it; its
6894 # output is simply discarded. So we exec the FD to /dev/null,
6895 # effectively closing config.log, so it can be properly (re)opened and
6896 # appended to by config.status. When coming back to configure, we
6897 # need to make the FD available again.
6898 if test "$no_create" != yes; then
6899 ac_cs_success=:
6900 ac_config_status_args=
6901 test "$silent" = yes &&
6902 ac_config_status_args="$ac_config_status_args --quiet"
6903 exec 5>/dev/null
6904 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6905 exec 5>>config.log
6906 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6907 # would make configure fail if this is the last instruction.
6908 $ac_cs_success || as_fn_exit 1
6910 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6912 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}