* Makefile.in (TARGET_H): Add insn-codes.h.
[gcc.git] / libgcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU C Runtime Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME='GNU C Runtime Library'
548 PACKAGE_TARNAME='libgcc'
549 PACKAGE_VERSION='1.0'
550 PACKAGE_STRING='GNU C Runtime Library 1.0'
551 PACKAGE_BUGREPORT=''
552 PACKAGE_URL='http://www.gnu.org/software/libgcc/'
553
554 ac_unique_file="static-object.mk"
555 ac_includes_default='/* none */'
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 asm_hidden_op
559 extra_parts
560 cpu_type
561 thread_header
562 tm_defines
563 tm_file
564 tmake_file
565 sfp_machine_header
566 set_use_emutls
567 set_have_cc_tls
568 vis_hide
569 fixed_point
570 enable_decimal_float
571 decimal_float
572 long_double_type_size
573 double_type_size
574 CPP
575 OBJEXT
576 EXEEXT
577 ac_ct_CC
578 CPPFLAGS
579 LDFLAGS
580 CFLAGS
581 CC
582 LN_S
583 STRIP
584 RANLIB
585 NM
586 LIPO
587 AR
588 toolexeclibdir
589 toolexecdir
590 target_subdir
591 host_subdir
592 build_subdir
593 build_libsubdir
594 target_noncanonical
595 host_noncanonical
596 AWK
597 INSTALL_DATA
598 INSTALL_SCRIPT
599 INSTALL_PROGRAM
600 MAINT
601 slibdir
602 PICFLAG
603 host_os
604 host_vendor
605 host_cpu
606 host
607 build_os
608 build_vendor
609 build_cpu
610 build
611 enable_shared
612 libgcc_topdir
613 target_alias
614 host_alias
615 build_alias
616 LIBS
617 ECHO_T
618 ECHO_N
619 ECHO_C
620 DEFS
621 mandir
622 localedir
623 libdir
624 psdir
625 pdfdir
626 dvidir
627 htmldir
628 infodir
629 docdir
630 oldincludedir
631 includedir
632 localstatedir
633 sharedstatedir
634 sysconfdir
635 datadir
636 datarootdir
637 libexecdir
638 sbindir
639 bindir
640 program_transform_name
641 prefix
642 exec_prefix
643 PACKAGE_URL
644 PACKAGE_BUGREPORT
645 PACKAGE_STRING
646 PACKAGE_VERSION
647 PACKAGE_TARNAME
648 PACKAGE_NAME
649 PATH_SEPARATOR
650 SHELL'
651 ac_subst_files=''
652 ac_user_opts='
653 enable_option_checking
654 with_target_subdir
655 with_cross_host
656 with_ld
657 enable_shared
658 enable_version_specific_runtime_libs
659 with_slibdir
660 enable_maintainer_mode
661 with_build_libsubdir
662 enable_decimal_float
663 with_system_libunwind
664 enable_sjlj_exceptions
665 enable_tls
666 '
667 ac_precious_vars='build_alias
668 host_alias
669 target_alias
670 CC
671 CFLAGS
672 LDFLAGS
673 LIBS
674 CPPFLAGS
675 CPP'
676
677
678 # Initialize some variables set by options.
679 ac_init_help=
680 ac_init_version=false
681 ac_unrecognized_opts=
682 ac_unrecognized_sep=
683 # The variables have the same names as the options, with
684 # dashes changed to underlines.
685 cache_file=/dev/null
686 exec_prefix=NONE
687 no_create=
688 no_recursion=
689 prefix=NONE
690 program_prefix=NONE
691 program_suffix=NONE
692 program_transform_name=s,x,x,
693 silent=
694 site=
695 srcdir=
696 verbose=
697 x_includes=NONE
698 x_libraries=NONE
699
700 # Installation directory options.
701 # These are left unexpanded so users can "make install exec_prefix=/foo"
702 # and all the variables that are supposed to be based on exec_prefix
703 # by default will actually change.
704 # Use braces instead of parens because sh, perl, etc. also accept them.
705 # (The list follows the same order as the GNU Coding Standards.)
706 bindir='${exec_prefix}/bin'
707 sbindir='${exec_prefix}/sbin'
708 libexecdir='${exec_prefix}/libexec'
709 datarootdir='${prefix}/share'
710 datadir='${datarootdir}'
711 sysconfdir='${prefix}/etc'
712 sharedstatedir='${prefix}/com'
713 localstatedir='${prefix}/var'
714 includedir='${prefix}/include'
715 oldincludedir='/usr/include'
716 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
717 infodir='${datarootdir}/info'
718 htmldir='${docdir}'
719 dvidir='${docdir}'
720 pdfdir='${docdir}'
721 psdir='${docdir}'
722 libdir='${exec_prefix}/lib'
723 localedir='${datarootdir}/locale'
724 mandir='${datarootdir}/man'
725
726 ac_prev=
727 ac_dashdash=
728 for ac_option
729 do
730 # If the previous option needs an argument, assign it.
731 if test -n "$ac_prev"; then
732 eval $ac_prev=\$ac_option
733 ac_prev=
734 continue
735 fi
736
737 case $ac_option in
738 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739 *) ac_optarg=yes ;;
740 esac
741
742 # Accept the important Cygnus configure options, so we can diagnose typos.
743
744 case $ac_dashdash$ac_option in
745 --)
746 ac_dashdash=yes ;;
747
748 -bindir | --bindir | --bindi | --bind | --bin | --bi)
749 ac_prev=bindir ;;
750 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
751 bindir=$ac_optarg ;;
752
753 -build | --build | --buil | --bui | --bu)
754 ac_prev=build_alias ;;
755 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
756 build_alias=$ac_optarg ;;
757
758 -cache-file | --cache-file | --cache-fil | --cache-fi \
759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760 ac_prev=cache_file ;;
761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763 cache_file=$ac_optarg ;;
764
765 --config-cache | -C)
766 cache_file=config.cache ;;
767
768 -datadir | --datadir | --datadi | --datad)
769 ac_prev=datadir ;;
770 -datadir=* | --datadir=* | --datadi=* | --datad=*)
771 datadir=$ac_optarg ;;
772
773 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774 | --dataroo | --dataro | --datar)
775 ac_prev=datarootdir ;;
776 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778 datarootdir=$ac_optarg ;;
779
780 -disable-* | --disable-*)
781 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
784 as_fn_error "invalid feature name: $ac_useropt"
785 ac_useropt_orig=$ac_useropt
786 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
787 case $ac_user_opts in
788 *"
789 "enable_$ac_useropt"
790 "*) ;;
791 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
792 ac_unrecognized_sep=', ';;
793 esac
794 eval enable_$ac_useropt=no ;;
795
796 -docdir | --docdir | --docdi | --doc | --do)
797 ac_prev=docdir ;;
798 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
799 docdir=$ac_optarg ;;
800
801 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
802 ac_prev=dvidir ;;
803 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
804 dvidir=$ac_optarg ;;
805
806 -enable-* | --enable-*)
807 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
808 # Reject names that are not valid shell variable names.
809 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
810 as_fn_error "invalid feature name: $ac_useropt"
811 ac_useropt_orig=$ac_useropt
812 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
813 case $ac_user_opts in
814 *"
815 "enable_$ac_useropt"
816 "*) ;;
817 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
818 ac_unrecognized_sep=', ';;
819 esac
820 eval enable_$ac_useropt=\$ac_optarg ;;
821
822 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
823 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
824 | --exec | --exe | --ex)
825 ac_prev=exec_prefix ;;
826 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
827 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
828 | --exec=* | --exe=* | --ex=*)
829 exec_prefix=$ac_optarg ;;
830
831 -gas | --gas | --ga | --g)
832 # Obsolete; use --with-gas.
833 with_gas=yes ;;
834
835 -help | --help | --hel | --he | -h)
836 ac_init_help=long ;;
837 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
838 ac_init_help=recursive ;;
839 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
840 ac_init_help=short ;;
841
842 -host | --host | --hos | --ho)
843 ac_prev=host_alias ;;
844 -host=* | --host=* | --hos=* | --ho=*)
845 host_alias=$ac_optarg ;;
846
847 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
848 ac_prev=htmldir ;;
849 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
850 | --ht=*)
851 htmldir=$ac_optarg ;;
852
853 -includedir | --includedir | --includedi | --included | --include \
854 | --includ | --inclu | --incl | --inc)
855 ac_prev=includedir ;;
856 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
857 | --includ=* | --inclu=* | --incl=* | --inc=*)
858 includedir=$ac_optarg ;;
859
860 -infodir | --infodir | --infodi | --infod | --info | --inf)
861 ac_prev=infodir ;;
862 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
863 infodir=$ac_optarg ;;
864
865 -libdir | --libdir | --libdi | --libd)
866 ac_prev=libdir ;;
867 -libdir=* | --libdir=* | --libdi=* | --libd=*)
868 libdir=$ac_optarg ;;
869
870 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
871 | --libexe | --libex | --libe)
872 ac_prev=libexecdir ;;
873 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
874 | --libexe=* | --libex=* | --libe=*)
875 libexecdir=$ac_optarg ;;
876
877 -localedir | --localedir | --localedi | --localed | --locale)
878 ac_prev=localedir ;;
879 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
880 localedir=$ac_optarg ;;
881
882 -localstatedir | --localstatedir | --localstatedi | --localstated \
883 | --localstate | --localstat | --localsta | --localst | --locals)
884 ac_prev=localstatedir ;;
885 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
886 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
887 localstatedir=$ac_optarg ;;
888
889 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
890 ac_prev=mandir ;;
891 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
892 mandir=$ac_optarg ;;
893
894 -nfp | --nfp | --nf)
895 # Obsolete; use --without-fp.
896 with_fp=no ;;
897
898 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
899 | --no-cr | --no-c | -n)
900 no_create=yes ;;
901
902 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
903 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
904 no_recursion=yes ;;
905
906 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
907 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
908 | --oldin | --oldi | --old | --ol | --o)
909 ac_prev=oldincludedir ;;
910 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
911 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
912 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
913 oldincludedir=$ac_optarg ;;
914
915 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
916 ac_prev=prefix ;;
917 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
918 prefix=$ac_optarg ;;
919
920 -program-prefix | --program-prefix | --program-prefi | --program-pref \
921 | --program-pre | --program-pr | --program-p)
922 ac_prev=program_prefix ;;
923 -program-prefix=* | --program-prefix=* | --program-prefi=* \
924 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
925 program_prefix=$ac_optarg ;;
926
927 -program-suffix | --program-suffix | --program-suffi | --program-suff \
928 | --program-suf | --program-su | --program-s)
929 ac_prev=program_suffix ;;
930 -program-suffix=* | --program-suffix=* | --program-suffi=* \
931 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
932 program_suffix=$ac_optarg ;;
933
934 -program-transform-name | --program-transform-name \
935 | --program-transform-nam | --program-transform-na \
936 | --program-transform-n | --program-transform- \
937 | --program-transform | --program-transfor \
938 | --program-transfo | --program-transf \
939 | --program-trans | --program-tran \
940 | --progr-tra | --program-tr | --program-t)
941 ac_prev=program_transform_name ;;
942 -program-transform-name=* | --program-transform-name=* \
943 | --program-transform-nam=* | --program-transform-na=* \
944 | --program-transform-n=* | --program-transform-=* \
945 | --program-transform=* | --program-transfor=* \
946 | --program-transfo=* | --program-transf=* \
947 | --program-trans=* | --program-tran=* \
948 | --progr-tra=* | --program-tr=* | --program-t=*)
949 program_transform_name=$ac_optarg ;;
950
951 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
952 ac_prev=pdfdir ;;
953 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
954 pdfdir=$ac_optarg ;;
955
956 -psdir | --psdir | --psdi | --psd | --ps)
957 ac_prev=psdir ;;
958 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
959 psdir=$ac_optarg ;;
960
961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
962 | -silent | --silent | --silen | --sile | --sil)
963 silent=yes ;;
964
965 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
966 ac_prev=sbindir ;;
967 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
968 | --sbi=* | --sb=*)
969 sbindir=$ac_optarg ;;
970
971 -sharedstatedir | --sharedstatedir | --sharedstatedi \
972 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
973 | --sharedst | --shareds | --shared | --share | --shar \
974 | --sha | --sh)
975 ac_prev=sharedstatedir ;;
976 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
977 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
978 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
979 | --sha=* | --sh=*)
980 sharedstatedir=$ac_optarg ;;
981
982 -site | --site | --sit)
983 ac_prev=site ;;
984 -site=* | --site=* | --sit=*)
985 site=$ac_optarg ;;
986
987 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
988 ac_prev=srcdir ;;
989 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
990 srcdir=$ac_optarg ;;
991
992 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
993 | --syscon | --sysco | --sysc | --sys | --sy)
994 ac_prev=sysconfdir ;;
995 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
996 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
997 sysconfdir=$ac_optarg ;;
998
999 -target | --target | --targe | --targ | --tar | --ta | --t)
1000 ac_prev=target_alias ;;
1001 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1002 target_alias=$ac_optarg ;;
1003
1004 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1005 verbose=yes ;;
1006
1007 -version | --version | --versio | --versi | --vers | -V)
1008 ac_init_version=: ;;
1009
1010 -with-* | --with-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error "invalid package name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "with_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval with_$ac_useropt=\$ac_optarg ;;
1025
1026 -without-* | --without-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error "invalid package name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035 "with_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval with_$ac_useropt=no ;;
1041
1042 --x)
1043 # Obsolete; use --with-x.
1044 with_x=yes ;;
1045
1046 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1047 | --x-incl | --x-inc | --x-in | --x-i)
1048 ac_prev=x_includes ;;
1049 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1050 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1051 x_includes=$ac_optarg ;;
1052
1053 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1054 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1055 ac_prev=x_libraries ;;
1056 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1057 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1058 x_libraries=$ac_optarg ;;
1059
1060 -*) as_fn_error "unrecognized option: \`$ac_option'
1061 Try \`$0 --help' for more information."
1062 ;;
1063
1064 *=*)
1065 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1066 # Reject names that are not valid shell variable names.
1067 case $ac_envvar in #(
1068 '' | [0-9]* | *[!_$as_cr_alnum]* )
1069 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1070 esac
1071 eval $ac_envvar=\$ac_optarg
1072 export $ac_envvar ;;
1073
1074 *)
1075 # FIXME: should be removed in autoconf 3.0.
1076 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1077 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1079 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1080 ;;
1081
1082 esac
1083 done
1084
1085 if test -n "$ac_prev"; then
1086 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1087 as_fn_error "missing argument to $ac_option"
1088 fi
1089
1090 if test -n "$ac_unrecognized_opts"; then
1091 case $enable_option_checking in
1092 no) ;;
1093 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1094 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1095 esac
1096 fi
1097
1098 # Check all directory arguments for consistency.
1099 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1100 datadir sysconfdir sharedstatedir localstatedir includedir \
1101 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1102 libdir localedir mandir
1103 do
1104 eval ac_val=\$$ac_var
1105 # Remove trailing slashes.
1106 case $ac_val in
1107 */ )
1108 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1109 eval $ac_var=\$ac_val;;
1110 esac
1111 # Be sure to have absolute directory names.
1112 case $ac_val in
1113 [\\/$]* | ?:[\\/]* ) continue;;
1114 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1115 esac
1116 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1117 done
1118
1119 # There might be people who depend on the old broken behavior: `$host'
1120 # used to hold the argument of --host etc.
1121 # FIXME: To remove some day.
1122 build=$build_alias
1123 host=$host_alias
1124 target=$target_alias
1125
1126 # FIXME: To remove some day.
1127 if test "x$host_alias" != x; then
1128 if test "x$build_alias" = x; then
1129 cross_compiling=maybe
1130 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1131 If a cross compiler is detected then cross compile mode will be used." >&2
1132 elif test "x$build_alias" != "x$host_alias"; then
1133 cross_compiling=yes
1134 fi
1135 fi
1136
1137 ac_tool_prefix=
1138 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1139
1140 test "$silent" = yes && exec 6>/dev/null
1141
1142
1143 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1144 ac_ls_di=`ls -di .` &&
1145 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1146 as_fn_error "working directory cannot be determined"
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 as_fn_error "pwd does not report name of working directory"
1149
1150
1151 # Find the source files, if location was not specified.
1152 if test -z "$srcdir"; then
1153 ac_srcdir_defaulted=yes
1154 # Try the directory containing this script, then the parent directory.
1155 ac_confdir=`$as_dirname -- "$as_myself" ||
1156 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157 X"$as_myself" : 'X\(//\)[^/]' \| \
1158 X"$as_myself" : 'X\(//\)$' \| \
1159 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1160 $as_echo X"$as_myself" |
1161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1162 s//\1/
1163 q
1164 }
1165 /^X\(\/\/\)[^/].*/{
1166 s//\1/
1167 q
1168 }
1169 /^X\(\/\/\)$/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\).*/{
1174 s//\1/
1175 q
1176 }
1177 s/.*/./; q'`
1178 srcdir=$ac_confdir
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 srcdir=..
1181 fi
1182 else
1183 ac_srcdir_defaulted=no
1184 fi
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1188 fi
1189 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1190 ac_abs_confdir=`(
1191 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1192 pwd)`
1193 # When building in place, set srcdir=.
1194 if test "$ac_abs_confdir" = "$ac_pwd"; then
1195 srcdir=.
1196 fi
1197 # Remove unnecessary trailing slashes from srcdir.
1198 # Double slashes in file names in object file debugging info
1199 # mess up M-x gdb in Emacs.
1200 case $srcdir in
1201 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1202 esac
1203 for ac_var in $ac_precious_vars; do
1204 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1205 eval ac_env_${ac_var}_value=\$${ac_var}
1206 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1208 done
1209
1210 #
1211 # Report the --help message.
1212 #
1213 if test "$ac_init_help" = "long"; then
1214 # Omit some internal or obsolete options to make the list less imposing.
1215 # This message is too long to be a string in the A/UX 3.1 sh.
1216 cat <<_ACEOF
1217 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1218
1219 Usage: $0 [OPTION]... [VAR=VALUE]...
1220
1221 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1222 VAR=VALUE. See below for descriptions of some of the useful variables.
1223
1224 Defaults for the options are specified in brackets.
1225
1226 Configuration:
1227 -h, --help display this help and exit
1228 --help=short display options specific to this package
1229 --help=recursive display the short help of all the included packages
1230 -V, --version display version information and exit
1231 -q, --quiet, --silent do not print \`checking...' messages
1232 --cache-file=FILE cache test results in FILE [disabled]
1233 -C, --config-cache alias for \`--cache-file=config.cache'
1234 -n, --no-create do not create output files
1235 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1236
1237 Installation directories:
1238 --prefix=PREFIX install architecture-independent files in PREFIX
1239 [$ac_default_prefix]
1240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1241 [PREFIX]
1242
1243 By default, \`make install' will install all the files in
1244 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1245 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1246 for instance \`--prefix=\$HOME'.
1247
1248 For better control, use the options below.
1249
1250 Fine tuning of the installation directories:
1251 --bindir=DIR user executables [EPREFIX/bin]
1252 --sbindir=DIR system admin executables [EPREFIX/sbin]
1253 --libexecdir=DIR program executables [EPREFIX/libexec]
1254 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1255 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1256 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1257 --libdir=DIR object code libraries [EPREFIX/lib]
1258 --includedir=DIR C header files [PREFIX/include]
1259 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1260 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1261 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1262 --infodir=DIR info documentation [DATAROOTDIR/info]
1263 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1264 --mandir=DIR man documentation [DATAROOTDIR/man]
1265 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1266 --htmldir=DIR html documentation [DOCDIR]
1267 --dvidir=DIR dvi documentation [DOCDIR]
1268 --pdfdir=DIR pdf documentation [DOCDIR]
1269 --psdir=DIR ps documentation [DOCDIR]
1270 _ACEOF
1271
1272 cat <<\_ACEOF
1273
1274 System types:
1275 --build=BUILD configure for building on BUILD [guessed]
1276 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1277 _ACEOF
1278 fi
1279
1280 if test -n "$ac_init_help"; then
1281 case $ac_init_help in
1282 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1283 esac
1284 cat <<\_ACEOF
1285
1286 Optional Features:
1287 --disable-option-checking ignore unrecognized --enable/--with options
1288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1290 --disable-shared don't provide a shared libgcc
1291 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1292 --enable-maintainer-mode
1293 enable make rules and dependencies not useful (and
1294 sometimes confusing) to the casual installer
1295 --enable-decimal-float={no,yes,bid,dpd}
1296 enable decimal float extension to C. Selecting 'bid'
1297 or 'dpd' choses which decimal floating point format
1298 to use
1299 --enable-sjlj-exceptions
1300 force use of builtin_setjmp for exceptions
1301 --enable-tls Use thread-local storage [default=yes]
1302
1303 Optional Packages:
1304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1306 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1307 --with-cross-host=HOST Configuring with a cross compiler
1308 --with-ld arrange to use the specified ld (full pathname)
1309 --with-slibdir=DIR shared libraries in DIR LIBDIR
1310 --with-build-libsubdir=DIR Directory where to find libraries for build system
1311 --with-system-libunwind use installed libunwind
1312
1313 Some influential environment variables:
1314 CC C compiler command
1315 CFLAGS C compiler flags
1316 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1317 nonstandard directory <lib dir>
1318 LIBS libraries to pass to the linker, e.g. -l<library>
1319 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1320 you have headers in a nonstandard directory <include dir>
1321 CPP C preprocessor
1322
1323 Use these variables to override the choices made by `configure' or to help
1324 it to find libraries and programs with nonstandard names/locations.
1325
1326 Report bugs to the package provider.
1327 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1328 General help using GNU software: <http://www.gnu.org/gethelp/>.
1329 _ACEOF
1330 ac_status=$?
1331 fi
1332
1333 if test "$ac_init_help" = "recursive"; then
1334 # If there are subdirs, report their specific --help.
1335 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1336 test -d "$ac_dir" ||
1337 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1338 continue
1339 ac_builddir=.
1340
1341 case "$ac_dir" in
1342 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343 *)
1344 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1345 # A ".." for each directory in $ac_dir_suffix.
1346 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1347 case $ac_top_builddir_sub in
1348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1350 esac ;;
1351 esac
1352 ac_abs_top_builddir=$ac_pwd
1353 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1354 # for backward compatibility:
1355 ac_top_builddir=$ac_top_build_prefix
1356
1357 case $srcdir in
1358 .) # We are building in place.
1359 ac_srcdir=.
1360 ac_top_srcdir=$ac_top_builddir_sub
1361 ac_abs_top_srcdir=$ac_pwd ;;
1362 [\\/]* | ?:[\\/]* ) # Absolute name.
1363 ac_srcdir=$srcdir$ac_dir_suffix;
1364 ac_top_srcdir=$srcdir
1365 ac_abs_top_srcdir=$srcdir ;;
1366 *) # Relative name.
1367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1368 ac_top_srcdir=$ac_top_build_prefix$srcdir
1369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1370 esac
1371 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1372
1373 cd "$ac_dir" || { ac_status=$?; continue; }
1374 # Check for guested configure.
1375 if test -f "$ac_srcdir/configure.gnu"; then
1376 echo &&
1377 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1378 elif test -f "$ac_srcdir/configure"; then
1379 echo &&
1380 $SHELL "$ac_srcdir/configure" --help=recursive
1381 else
1382 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1383 fi || ac_status=$?
1384 cd "$ac_pwd" || { ac_status=$?; break; }
1385 done
1386 fi
1387
1388 test -n "$ac_init_help" && exit $ac_status
1389 if $ac_init_version; then
1390 cat <<\_ACEOF
1391 GNU C Runtime Library configure 1.0
1392 generated by GNU Autoconf 2.64
1393
1394 Copyright (C) 2009 Free Software Foundation, Inc.
1395 This configure script is free software; the Free Software Foundation
1396 gives unlimited permission to copy, distribute and modify it.
1397 _ACEOF
1398 exit
1399 fi
1400
1401 ## ------------------------ ##
1402 ## Autoconf initialization. ##
1403 ## ------------------------ ##
1404
1405 # ac_fn_c_try_compile LINENO
1406 # --------------------------
1407 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1408 ac_fn_c_try_compile ()
1409 {
1410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1411 rm -f conftest.$ac_objext
1412 if { { ac_try="$ac_compile"
1413 case "(($ac_try" in
1414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1415 *) ac_try_echo=$ac_try;;
1416 esac
1417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1418 $as_echo "$ac_try_echo"; } >&5
1419 (eval "$ac_compile") 2>conftest.err
1420 ac_status=$?
1421 if test -s conftest.err; then
1422 grep -v '^ *+' conftest.err >conftest.er1
1423 cat conftest.er1 >&5
1424 mv -f conftest.er1 conftest.err
1425 fi
1426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1427 test $ac_status = 0; } && {
1428 test -z "$ac_c_werror_flag" ||
1429 test ! -s conftest.err
1430 } && test -s conftest.$ac_objext; then :
1431 ac_retval=0
1432 else
1433 $as_echo "$as_me: failed program was:" >&5
1434 sed 's/^/| /' conftest.$ac_ext >&5
1435
1436 ac_retval=1
1437 fi
1438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1439 return $ac_retval
1440
1441 } # ac_fn_c_try_compile
1442
1443 # ac_fn_c_try_cpp LINENO
1444 # ----------------------
1445 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1446 ac_fn_c_try_cpp ()
1447 {
1448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1449 if { { ac_try="$ac_cpp conftest.$ac_ext"
1450 case "(($ac_try" in
1451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1452 *) ac_try_echo=$ac_try;;
1453 esac
1454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1455 $as_echo "$ac_try_echo"; } >&5
1456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1457 ac_status=$?
1458 if test -s conftest.err; then
1459 grep -v '^ *+' conftest.err >conftest.er1
1460 cat conftest.er1 >&5
1461 mv -f conftest.er1 conftest.err
1462 fi
1463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1464 test $ac_status = 0; } >/dev/null && {
1465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1466 test ! -s conftest.err
1467 }; then :
1468 ac_retval=0
1469 else
1470 $as_echo "$as_me: failed program was:" >&5
1471 sed 's/^/| /' conftest.$ac_ext >&5
1472
1473 ac_retval=1
1474 fi
1475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1476 return $ac_retval
1477
1478 } # ac_fn_c_try_cpp
1479
1480 # ac_fn_c_try_run LINENO
1481 # ----------------------
1482 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1483 # that executables *can* be run.
1484 ac_fn_c_try_run ()
1485 {
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 if { { ac_try="$ac_link"
1488 case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_link") 2>&5
1495 ac_status=$?
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1498 { { case "(($ac_try" in
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1501 esac
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_try") 2>&5
1505 ac_status=$?
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; }; }; then :
1508 ac_retval=0
1509 else
1510 $as_echo "$as_me: program exited with status $ac_status" >&5
1511 $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.$ac_ext >&5
1513
1514 ac_retval=$ac_status
1515 fi
1516 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1518 return $ac_retval
1519
1520 } # ac_fn_c_try_run
1521
1522 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1523 # --------------------------------------------
1524 # Tries to find the compile-time value of EXPR in a program that includes
1525 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1526 # computed
1527 ac_fn_c_compute_int ()
1528 {
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 if test "$cross_compiling" = yes; then
1531 # Depending upon the size, compute the lo and hi bounds.
1532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1533 /* end confdefs.h. */
1534 $4
1535 int
1536 main ()
1537 {
1538 static int test_array [1 - 2 * !(($2) >= 0)];
1539 test_array [0] = 0
1540
1541 ;
1542 return 0;
1543 }
1544 _ACEOF
1545 if ac_fn_c_try_compile "$LINENO"; then :
1546 ac_lo=0 ac_mid=0
1547 while :; do
1548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1549 /* end confdefs.h. */
1550 $4
1551 int
1552 main ()
1553 {
1554 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1555 test_array [0] = 0
1556
1557 ;
1558 return 0;
1559 }
1560 _ACEOF
1561 if ac_fn_c_try_compile "$LINENO"; then :
1562 ac_hi=$ac_mid; break
1563 else
1564 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1565 if test $ac_lo -le $ac_mid; then
1566 ac_lo= ac_hi=
1567 break
1568 fi
1569 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1570 fi
1571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1572 done
1573 else
1574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575 /* end confdefs.h. */
1576 $4
1577 int
1578 main ()
1579 {
1580 static int test_array [1 - 2 * !(($2) < 0)];
1581 test_array [0] = 0
1582
1583 ;
1584 return 0;
1585 }
1586 _ACEOF
1587 if ac_fn_c_try_compile "$LINENO"; then :
1588 ac_hi=-1 ac_mid=-1
1589 while :; do
1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591 /* end confdefs.h. */
1592 $4
1593 int
1594 main ()
1595 {
1596 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1597 test_array [0] = 0
1598
1599 ;
1600 return 0;
1601 }
1602 _ACEOF
1603 if ac_fn_c_try_compile "$LINENO"; then :
1604 ac_lo=$ac_mid; break
1605 else
1606 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1607 if test $ac_mid -le $ac_hi; then
1608 ac_lo= ac_hi=
1609 break
1610 fi
1611 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1612 fi
1613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1614 done
1615 else
1616 ac_lo= ac_hi=
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 # Binary search between lo and hi bounds.
1622 while test "x$ac_lo" != "x$ac_hi"; do
1623 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1626 $4
1627 int
1628 main ()
1629 {
1630 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1631 test_array [0] = 0
1632
1633 ;
1634 return 0;
1635 }
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 ac_hi=$ac_mid
1639 else
1640 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 done
1644 case $ac_lo in #((
1645 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1646 '') ac_retval=1 ;;
1647 esac
1648 else
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1651 $4
1652 static long int longval () { return $2; }
1653 static unsigned long int ulongval () { return $2; }
1654 #include <stdio.h>
1655 #include <stdlib.h>
1656 int
1657 main ()
1658 {
1659
1660 FILE *f = fopen ("conftest.val", "w");
1661 if (! f)
1662 return 1;
1663 if (($2) < 0)
1664 {
1665 long int i = longval ();
1666 if (i != ($2))
1667 return 1;
1668 fprintf (f, "%ld", i);
1669 }
1670 else
1671 {
1672 unsigned long int i = ulongval ();
1673 if (i != ($2))
1674 return 1;
1675 fprintf (f, "%lu", i);
1676 }
1677 /* Do not output a trailing newline, as this causes \r\n confusion
1678 on some platforms. */
1679 return ferror (f) || fclose (f) != 0;
1680
1681 ;
1682 return 0;
1683 }
1684 _ACEOF
1685 if ac_fn_c_try_run "$LINENO"; then :
1686 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1687 else
1688 ac_retval=1
1689 fi
1690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1691 conftest.$ac_objext conftest.beam conftest.$ac_ext
1692 rm -f conftest.val
1693
1694 fi
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 return $ac_retval
1697
1698 } # ac_fn_c_compute_int
1699 cat >config.log <<_ACEOF
1700 This file contains any messages produced by compilers while
1701 running configure, to aid debugging if configure makes a mistake.
1702
1703 It was created by GNU C Runtime Library $as_me 1.0, which was
1704 generated by GNU Autoconf 2.64. Invocation command line was
1705
1706 $ $0 $@
1707
1708 _ACEOF
1709 exec 5>>config.log
1710 {
1711 cat <<_ASUNAME
1712 ## --------- ##
1713 ## Platform. ##
1714 ## --------- ##
1715
1716 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1717 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1718 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1719 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1720 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1721
1722 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1723 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1724
1725 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1726 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1727 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1728 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1729 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1730 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1731 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1732
1733 _ASUNAME
1734
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 $as_echo "PATH: $as_dir"
1741 done
1742 IFS=$as_save_IFS
1743
1744 } >&5
1745
1746 cat >&5 <<_ACEOF
1747
1748
1749 ## ----------- ##
1750 ## Core tests. ##
1751 ## ----------- ##
1752
1753 _ACEOF
1754
1755
1756 # Keep a trace of the command line.
1757 # Strip out --no-create and --no-recursion so they do not pile up.
1758 # Strip out --silent because we don't want to record it for future runs.
1759 # Also quote any args containing shell meta-characters.
1760 # Make two passes to allow for proper duplicate-argument suppression.
1761 ac_configure_args=
1762 ac_configure_args0=
1763 ac_configure_args1=
1764 ac_must_keep_next=false
1765 for ac_pass in 1 2
1766 do
1767 for ac_arg
1768 do
1769 case $ac_arg in
1770 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1772 | -silent | --silent | --silen | --sile | --sil)
1773 continue ;;
1774 *\'*)
1775 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 esac
1777 case $ac_pass in
1778 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1779 2)
1780 as_fn_append ac_configure_args1 " '$ac_arg'"
1781 if test $ac_must_keep_next = true; then
1782 ac_must_keep_next=false # Got value, back to normal.
1783 else
1784 case $ac_arg in
1785 *=* | --config-cache | -C | -disable-* | --disable-* \
1786 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1787 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1788 | -with-* | --with-* | -without-* | --without-* | --x)
1789 case "$ac_configure_args0 " in
1790 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1791 esac
1792 ;;
1793 -* ) ac_must_keep_next=true ;;
1794 esac
1795 fi
1796 as_fn_append ac_configure_args " '$ac_arg'"
1797 ;;
1798 esac
1799 done
1800 done
1801 { ac_configure_args0=; unset ac_configure_args0;}
1802 { ac_configure_args1=; unset ac_configure_args1;}
1803
1804 # When interrupted or exit'd, cleanup temporary files, and complete
1805 # config.log. We remove comments because anyway the quotes in there
1806 # would cause problems or look ugly.
1807 # WARNING: Use '\'' to represent an apostrophe within the trap.
1808 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1809 trap 'exit_status=$?
1810 # Save into config.log some information that might help in debugging.
1811 {
1812 echo
1813
1814 cat <<\_ASBOX
1815 ## ---------------- ##
1816 ## Cache variables. ##
1817 ## ---------------- ##
1818 _ASBOX
1819 echo
1820 # The following way of writing the cache mishandles newlines in values,
1821 (
1822 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1823 eval ac_val=\$$ac_var
1824 case $ac_val in #(
1825 *${as_nl}*)
1826 case $ac_var in #(
1827 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1828 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1829 esac
1830 case $ac_var in #(
1831 _ | IFS | as_nl) ;; #(
1832 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1833 *) { eval $ac_var=; unset $ac_var;} ;;
1834 esac ;;
1835 esac
1836 done
1837 (set) 2>&1 |
1838 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1839 *${as_nl}ac_space=\ *)
1840 sed -n \
1841 "s/'\''/'\''\\\\'\'''\''/g;
1842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1843 ;; #(
1844 *)
1845 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1846 ;;
1847 esac |
1848 sort
1849 )
1850 echo
1851
1852 cat <<\_ASBOX
1853 ## ----------------- ##
1854 ## Output variables. ##
1855 ## ----------------- ##
1856 _ASBOX
1857 echo
1858 for ac_var in $ac_subst_vars
1859 do
1860 eval ac_val=\$$ac_var
1861 case $ac_val in
1862 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863 esac
1864 $as_echo "$ac_var='\''$ac_val'\''"
1865 done | sort
1866 echo
1867
1868 if test -n "$ac_subst_files"; then
1869 cat <<\_ASBOX
1870 ## ------------------- ##
1871 ## File substitutions. ##
1872 ## ------------------- ##
1873 _ASBOX
1874 echo
1875 for ac_var in $ac_subst_files
1876 do
1877 eval ac_val=\$$ac_var
1878 case $ac_val in
1879 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 esac
1881 $as_echo "$ac_var='\''$ac_val'\''"
1882 done | sort
1883 echo
1884 fi
1885
1886 if test -s confdefs.h; then
1887 cat <<\_ASBOX
1888 ## ----------- ##
1889 ## confdefs.h. ##
1890 ## ----------- ##
1891 _ASBOX
1892 echo
1893 cat confdefs.h
1894 echo
1895 fi
1896 test "$ac_signal" != 0 &&
1897 $as_echo "$as_me: caught signal $ac_signal"
1898 $as_echo "$as_me: exit $exit_status"
1899 } >&5
1900 rm -f core *.core core.conftest.* &&
1901 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1902 exit $exit_status
1903 ' 0
1904 for ac_signal in 1 2 13 15; do
1905 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1906 done
1907 ac_signal=0
1908
1909 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1910 rm -f -r conftest* confdefs.h
1911
1912 $as_echo "/* confdefs.h */" > confdefs.h
1913
1914 # Predefined preprocessor variables.
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_NAME "$PACKAGE_NAME"
1918 _ACEOF
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1922 _ACEOF
1923
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1926 _ACEOF
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_STRING "$PACKAGE_STRING"
1930 _ACEOF
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1934 _ACEOF
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_URL "$PACKAGE_URL"
1938 _ACEOF
1939
1940
1941 # Let the site file select an alternate cache file if it wants to.
1942 # Prefer an explicitly selected file to automatically selected ones.
1943 ac_site_file1=NONE
1944 ac_site_file2=NONE
1945 if test -n "$CONFIG_SITE"; then
1946 ac_site_file1=$CONFIG_SITE
1947 elif test "x$prefix" != xNONE; then
1948 ac_site_file1=$prefix/share/config.site
1949 ac_site_file2=$prefix/etc/config.site
1950 else
1951 ac_site_file1=$ac_default_prefix/share/config.site
1952 ac_site_file2=$ac_default_prefix/etc/config.site
1953 fi
1954 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1955 do
1956 test "x$ac_site_file" = xNONE && continue
1957 if test -r "$ac_site_file"; then
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1959 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1960 sed 's/^/| /' "$ac_site_file" >&5
1961 . "$ac_site_file"
1962 fi
1963 done
1964
1965 if test -r "$cache_file"; then
1966 # Some versions of bash will fail to source /dev/null (special
1967 # files actually), so we avoid doing that.
1968 if test -f "$cache_file"; then
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1970 $as_echo "$as_me: loading cache $cache_file" >&6;}
1971 case $cache_file in
1972 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1973 *) . "./$cache_file";;
1974 esac
1975 fi
1976 else
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1978 $as_echo "$as_me: creating cache $cache_file" >&6;}
1979 >$cache_file
1980 fi
1981
1982 # Check that the precious variables saved in the cache have kept the same
1983 # value.
1984 ac_cache_corrupted=false
1985 for ac_var in $ac_precious_vars; do
1986 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1987 eval ac_new_set=\$ac_env_${ac_var}_set
1988 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1989 eval ac_new_val=\$ac_env_${ac_var}_value
1990 case $ac_old_set,$ac_new_set in
1991 set,)
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1993 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1994 ac_cache_corrupted=: ;;
1995 ,set)
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1997 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1998 ac_cache_corrupted=: ;;
1999 ,);;
2000 *)
2001 if test "x$ac_old_val" != "x$ac_new_val"; then
2002 # differences in whitespace do not lead to failure.
2003 ac_old_val_w=`echo x $ac_old_val`
2004 ac_new_val_w=`echo x $ac_new_val`
2005 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2007 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2008 ac_cache_corrupted=:
2009 else
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2011 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2012 eval $ac_var=\$ac_old_val
2013 fi
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2015 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2017 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2018 fi;;
2019 esac
2020 # Pass precious variables to config.status.
2021 if test "$ac_new_set" = set; then
2022 case $ac_new_val in
2023 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2024 *) ac_arg=$ac_var=$ac_new_val ;;
2025 esac
2026 case " $ac_configure_args " in
2027 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2028 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2029 esac
2030 fi
2031 done
2032 if $ac_cache_corrupted; then
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2036 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2037 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2038 fi
2039 ## -------------------- ##
2040 ## Main body of script. ##
2041 ## -------------------- ##
2042
2043 ac_ext=c
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048
2049
2050
2051
2052
2053
2054
2055 # The libgcc should not depend on any header files
2056
2057
2058
2059 # Check whether --with-target-subdir was given.
2060 if test "${with_target_subdir+set}" = set; then :
2061 withval=$with_target_subdir;
2062 fi
2063
2064
2065 # Check whether --with-cross-host was given.
2066 if test "${with_cross_host+set}" = set; then :
2067 withval=$with_cross_host;
2068 fi
2069
2070
2071 # Check whether --with-ld was given.
2072 if test "${with_ld+set}" = set; then :
2073 withval=$with_ld;
2074 fi
2075
2076
2077 if test "${srcdir}" = "."; then
2078 if test -n "${with_build_subdir}"; then
2079 libgcc_topdir="${srcdir}/../.."
2080 with_target_subdir=
2081 elif test -z "${with_target_subdir}"; then
2082 libgcc_topdir="${srcdir}/.."
2083 else
2084 if test "${with_target_subdir}" != "."; then
2085 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2086 else
2087 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2088 fi
2089 fi
2090 else
2091 libgcc_topdir="${srcdir}/.."
2092 fi
2093
2094 ac_aux_dir=
2095 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2096 for ac_t in install-sh install.sh shtool; do
2097 if test -f "$ac_dir/$ac_t"; then
2098 ac_aux_dir=$ac_dir
2099 ac_install_sh="$ac_aux_dir/$ac_t -c"
2100 break 2
2101 fi
2102 done
2103 done
2104 if test -z "$ac_aux_dir"; then
2105 as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2106 fi
2107
2108 # These three variables are undocumented and unsupported,
2109 # and are intended to be withdrawn in a future Autoconf release.
2110 # They can cause serious problems if a builder's source tree is in a directory
2111 # whose full name contains unusual characters.
2112 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2113 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2114 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2115
2116
2117 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2118
2119
2120 # Check whether --enable-shared was given.
2121 if test "${enable_shared+set}" = set; then :
2122 enableval=$enable_shared;
2123 case $enable_shared in
2124 yes | no) ;;
2125 *)
2126 enable_shared=no
2127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2128 for pkg in $enableval; do
2129 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2130 enable_shared=yes
2131 fi
2132 done
2133 IFS="$ac_save_ifs"
2134 ;;
2135 esac
2136
2137 else
2138 enable_shared=yes
2139 fi
2140
2141
2142
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2146
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2148 $as_echo_n "checking build system type... " >&6; }
2149 if test "${ac_cv_build+set}" = set; then :
2150 $as_echo_n "(cached) " >&6
2151 else
2152 ac_build_alias=$build_alias
2153 test "x$ac_build_alias" = x &&
2154 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2155 test "x$ac_build_alias" = x &&
2156 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2158 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2159
2160 fi
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2162 $as_echo "$ac_cv_build" >&6; }
2163 case $ac_cv_build in
2164 *-*-*) ;;
2165 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2166 esac
2167 build=$ac_cv_build
2168 ac_save_IFS=$IFS; IFS='-'
2169 set x $ac_cv_build
2170 shift
2171 build_cpu=$1
2172 build_vendor=$2
2173 shift; shift
2174 # Remember, the first character of IFS is used to create $*,
2175 # except with old shells:
2176 build_os=$*
2177 IFS=$ac_save_IFS
2178 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2179
2180
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2182 $as_echo_n "checking host system type... " >&6; }
2183 if test "${ac_cv_host+set}" = set; then :
2184 $as_echo_n "(cached) " >&6
2185 else
2186 if test "x$host_alias" = x; then
2187 ac_cv_host=$ac_cv_build
2188 else
2189 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2190 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2191 fi
2192
2193 fi
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2195 $as_echo "$ac_cv_host" >&6; }
2196 case $ac_cv_host in
2197 *-*-*) ;;
2198 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2199 esac
2200 host=$ac_cv_host
2201 ac_save_IFS=$IFS; IFS='-'
2202 set x $ac_cv_host
2203 shift
2204 host_cpu=$1
2205 host_vendor=$2
2206 shift; shift
2207 # Remember, the first character of IFS is used to create $*,
2208 # except with old shells:
2209 host_os=$*
2210 IFS=$ac_save_IFS
2211 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2212
2213
2214
2215
2216
2217
2218 case "${host}" in
2219 # PIC is the default on some targets or must not be used.
2220 *-*-darwin*)
2221 # PIC is the default on this platform
2222 # Common symbols not allowed in MH_DYLIB files
2223 PICFLAG=-fno-common
2224 ;;
2225 alpha*-dec-osf5*)
2226 # PIC is the default.
2227 ;;
2228 hppa*64*-*-hpux*)
2229 # PIC is the default for 64-bit PA HP-UX.
2230 ;;
2231 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2232 ;;
2233 i[34567]86-*-mingw* | x86_64-*-mingw*)
2234 ;;
2235 i[34567]86-*-interix[3-9]*)
2236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2237 # Instead, we relocate shared libraries at runtime.
2238 ;;
2239 i[34567]86-*-nto-qnx*)
2240 # QNX uses GNU C++, but need to define -shared option too, otherwise
2241 # it will coredump.
2242 PICFLAG='-fPIC -shared'
2243 ;;
2244 i[34567]86-pc-msdosdjgpp*)
2245 # DJGPP does not support shared libraries at all.
2246 ;;
2247 ia64*-*-hpux*)
2248 # On IA64 HP-UX, PIC is the default but the pic flag
2249 # sets the default TLS model and affects inlining.
2250 PICFLAG=-fPIC
2251 ;;
2252 mips-sgi-irix6*)
2253 # PIC is the default.
2254 ;;
2255 rs6000-ibm-aix* | powerpc-ibm-aix*)
2256 # All AIX code is PIC.
2257 ;;
2258
2259 # Some targets support both -fPIC and -fpic, but prefer the latter.
2260 # FIXME: Why?
2261 i[34567]86-*-* | x86_64-*-*)
2262 PICFLAG=-fpic
2263 ;;
2264 m68k-*-*)
2265 PICFLAG=-fpic
2266 ;;
2267 # FIXME: Override -fPIC default in libgcc only?
2268 sh-*-linux* | sh[2346lbe]*-*-linux*)
2269 PICFLAG=-fpic
2270 ;;
2271 # FIXME: Simplify to sh*-*-netbsd*?
2272 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2273 sh64-*-netbsd* | sh64l*-*-netbsd*)
2274 PICFLAG=-fpic
2275 ;;
2276 # Default to -fPIC unless specified otherwise.
2277 *)
2278 PICFLAG=-fPIC
2279 ;;
2280 esac
2281
2282 # If the user explicitly uses -fpic/-fPIC, keep that.
2283 case "${CFLAGS}" in
2284 *-fpic*)
2285 PICFLAG=-fpic
2286 ;;
2287 *-fPIC*)
2288 PICFLAG=-fPIC
2289 ;;
2290 esac
2291
2292
2293
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2295 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2296 # Check whether --enable-version-specific-runtime-libs was given.
2297 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2298 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2299 yes) version_specific_libs=yes ;;
2300 no) version_specific_libs=no ;;
2301 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2302 esac
2303 else
2304 version_specific_libs=no
2305 fi
2306
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2308 $as_echo "$version_specific_libs" >&6; }
2309
2310
2311 # Check whether --with-slibdir was given.
2312 if test "${with_slibdir+set}" = set; then :
2313 withval=$with_slibdir; slibdir="$with_slibdir"
2314 else
2315 if test "${version_specific_libs}" = yes; then
2316 slibdir='$(libsubdir)'
2317 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2318 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2319 else
2320 slibdir='$(libdir)'
2321 fi
2322 fi
2323
2324
2325
2326 # Command-line options.
2327 # Very limited version of AC_MAINTAINER_MODE.
2328 # Check whether --enable-maintainer-mode was given.
2329 if test "${enable_maintainer_mode+set}" = set; then :
2330 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2331 yes) MAINT='' ;;
2332 no) MAINT='#' ;;
2333 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2334 esac
2335 maintainer_mode=${enableval}
2336 else
2337 MAINT='#'
2338 fi
2339
2340
2341 # Find a good install program. We prefer a C program (faster),
2342 # so one script is as good as another. But avoid the broken or
2343 # incompatible versions:
2344 # SysV /etc/install, /usr/sbin/install
2345 # SunOS /usr/etc/install
2346 # IRIX /sbin/install
2347 # AIX /bin/install
2348 # AmigaOS /C/install, which installs bootblocks on floppy discs
2349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2352 # OS/2's system install, which has a completely different semantic
2353 # ./install, which can be erroneously created by make from ./install.sh.
2354 # Reject install programs that cannot install multiple files.
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2356 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2357 if test -z "$INSTALL"; then
2358 if test "${ac_cv_path_install+set}" = set; then :
2359 $as_echo_n "(cached) " >&6
2360 else
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2363 do
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 # Account for people who put trailing slashes in PATH elements.
2367 case $as_dir/ in #((
2368 ./ | .// | /[cC]/* | \
2369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2370 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2371 /usr/ucb/* ) ;;
2372 *)
2373 # OSF1 and SCO ODT 3.0 have their own names for install.
2374 # Don't use installbsd from OSF since it installs stuff as root
2375 # by default.
2376 for ac_prog in ginstall scoinst install; do
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2379 if test $ac_prog = install &&
2380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381 # AIX install. It has an incompatible calling convention.
2382 :
2383 elif test $ac_prog = install &&
2384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2385 # program-specific install script used by HP pwplus--don't use.
2386 :
2387 else
2388 rm -rf conftest.one conftest.two conftest.dir
2389 echo one > conftest.one
2390 echo two > conftest.two
2391 mkdir conftest.dir
2392 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2393 test -s conftest.one && test -s conftest.two &&
2394 test -s conftest.dir/conftest.one &&
2395 test -s conftest.dir/conftest.two
2396 then
2397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2398 break 3
2399 fi
2400 fi
2401 fi
2402 done
2403 done
2404 ;;
2405 esac
2406
2407 done
2408 IFS=$as_save_IFS
2409
2410 rm -rf conftest.one conftest.two conftest.dir
2411
2412 fi
2413 if test "${ac_cv_path_install+set}" = set; then
2414 INSTALL=$ac_cv_path_install
2415 else
2416 # As a last resort, use the slow shell script. Don't cache a
2417 # value for INSTALL within a source directory, because that will
2418 # break other packages using the cache if that directory is
2419 # removed, or if the value is a relative name.
2420 INSTALL=$ac_install_sh
2421 fi
2422 fi
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2424 $as_echo "$INSTALL" >&6; }
2425
2426 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2427 # It thinks the first close brace ends the variable substitution.
2428 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2429
2430 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2431
2432 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2433
2434
2435 for ac_prog in gawk mawk nawk awk
2436 do
2437 # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2440 $as_echo_n "checking for $ac_word... " >&6; }
2441 if test "${ac_cv_prog_AWK+set}" = set; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 if test -n "$AWK"; then
2445 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_AWK="$ac_prog"
2455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2457 fi
2458 done
2459 done
2460 IFS=$as_save_IFS
2461
2462 fi
2463 fi
2464 AWK=$ac_cv_prog_AWK
2465 if test -n "$AWK"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2467 $as_echo "$AWK" >&6; }
2468 else
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2470 $as_echo "no" >&6; }
2471 fi
2472
2473
2474 test -n "$AWK" && break
2475 done
2476
2477 # We need awk; bail out if it's missing.
2478 case ${AWK} in
2479 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
2480 esac
2481
2482
2483 case ${build_alias} in
2484 "") build_noncanonical=${build} ;;
2485 *) build_noncanonical=${build_alias} ;;
2486 esac
2487
2488 case ${host_alias} in
2489 "") host_noncanonical=${build_noncanonical} ;;
2490 *) host_noncanonical=${host_alias} ;;
2491 esac
2492
2493
2494
2495 case ${target_alias} in
2496 "") target_noncanonical=${host_noncanonical} ;;
2497 *) target_noncanonical=${target_alias} ;;
2498 esac
2499
2500
2501
2502
2503 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2504 # have matching libraries, they should use host libraries: Makefile.tpl
2505 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2506 # However, they still use the build modules, because the corresponding
2507 # host modules (e.g. bison) are only built for the host when bootstrap
2508 # finishes. So:
2509 # - build_subdir is where we find build modules, and never changes.
2510 # - build_libsubdir is where we find build libraries, and can be overridden.
2511
2512 # Prefix 'build-' so this never conflicts with target_subdir.
2513 build_subdir="build-${build_noncanonical}"
2514
2515 # Check whether --with-build-libsubdir was given.
2516 if test "${with_build_libsubdir+set}" = set; then :
2517 withval=$with_build_libsubdir; build_libsubdir="$withval"
2518 else
2519 build_libsubdir="$build_subdir"
2520 fi
2521
2522 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2523 if ( test $srcdir = . && test -d gcc ) \
2524 || test -d $srcdir/../host-${host_noncanonical}; then
2525 host_subdir="host-${host_noncanonical}"
2526 else
2527 host_subdir=.
2528 fi
2529 # No prefix.
2530 target_subdir=${target_noncanonical}
2531
2532
2533 # Calculate toolexeclibdir
2534 # Also toolexecdir, though it's only used in toolexeclibdir
2535 case ${version_specific_libs} in
2536 yes)
2537 # Need the gcc compiler version to know where to install libraries
2538 # and header files if --enable-version-specific-runtime-libs option
2539 # is selected.
2540 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2541 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2542 ;;
2543 no)
2544 if test -n "$with_cross_host" &&
2545 test x"$with_cross_host" != x"no"; then
2546 # Install a library built with a cross compiler in tooldir, not libdir.
2547 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2548 toolexeclibdir='$(toolexecdir)/lib'
2549 else
2550 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2551 toolexeclibdir='$(libdir)'
2552 fi
2553 multi_os_directory=`$CC -print-multi-os-directory`
2554 case $multi_os_directory in
2555 .) ;; # Avoid trailing /.
2556 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2557 esac
2558 ;;
2559 esac
2560
2561
2562
2563 if test -n "$ac_tool_prefix"; then
2564 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2565 set dummy ${ac_tool_prefix}ar; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if test "${ac_cv_prog_AR+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if test -n "$AR"; then
2572 ac_cv_prog_AR="$AR" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_AR="${ac_tool_prefix}ar"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 AR=$ac_cv_prog_AR
2592 if test -n "$AR"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2594 $as_echo "$AR" >&6; }
2595 else
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599
2600
2601 fi
2602 if test -z "$ac_cv_prog_AR"; then
2603 ac_ct_AR=$AR
2604 # Extract the first word of "ar", so it can be a program name with args.
2605 set dummy ar; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 if test -n "$ac_ct_AR"; then
2612 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_ac_ct_AR="ar"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625 done
2626 done
2627 IFS=$as_save_IFS
2628
2629 fi
2630 fi
2631 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2632 if test -n "$ac_ct_AR"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2634 $as_echo "$ac_ct_AR" >&6; }
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2638 fi
2639
2640 if test "x$ac_ct_AR" = x; then
2641 AR=""
2642 else
2643 case $cross_compiling:$ac_tool_warned in
2644 yes:)
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2647 ac_tool_warned=yes ;;
2648 esac
2649 AR=$ac_ct_AR
2650 fi
2651 else
2652 AR="$ac_cv_prog_AR"
2653 fi
2654
2655 if test -n "$ac_tool_prefix"; then
2656 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_LIPO+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 if test -n "$LIPO"; then
2664 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 LIPO=$ac_cv_prog_LIPO
2684 if test -n "$LIPO"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2686 $as_echo "$LIPO" >&6; }
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692
2693 fi
2694 if test -z "$ac_cv_prog_LIPO"; then
2695 ac_ct_LIPO=$LIPO
2696 # Extract the first word of "lipo", so it can be a program name with args.
2697 set dummy lipo; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test -n "$ac_ct_LIPO"; then
2704 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_prog_ac_ct_LIPO="lipo"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2716 fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2724 if test -n "$ac_ct_LIPO"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2726 $as_echo "$ac_ct_LIPO" >&6; }
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732 if test "x$ac_ct_LIPO" = x; then
2733 LIPO=":"
2734 else
2735 case $cross_compiling:$ac_tool_warned in
2736 yes:)
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739 ac_tool_warned=yes ;;
2740 esac
2741 LIPO=$ac_ct_LIPO
2742 fi
2743 else
2744 LIPO="$ac_cv_prog_LIPO"
2745 fi
2746
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}nm; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if test "${ac_cv_prog_NM+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$NM"; then
2756 ac_cv_prog_NM="$NM" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_NM="${ac_tool_prefix}nm"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769 done
2770 done
2771 IFS=$as_save_IFS
2772
2773 fi
2774 fi
2775 NM=$ac_cv_prog_NM
2776 if test -n "$NM"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2778 $as_echo "$NM" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2782 fi
2783
2784
2785 fi
2786 if test -z "$ac_cv_prog_NM"; then
2787 ac_ct_NM=$NM
2788 # Extract the first word of "nm", so it can be a program name with args.
2789 set dummy nm; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$ac_ct_NM"; then
2796 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_ac_ct_NM="nm"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2816 if test -n "$ac_ct_NM"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2818 $as_echo "$ac_ct_NM" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2822 fi
2823
2824 if test "x$ac_ct_NM" = x; then
2825 NM=""
2826 else
2827 case $cross_compiling:$ac_tool_warned in
2828 yes:)
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831 ac_tool_warned=yes ;;
2832 esac
2833 NM=$ac_ct_NM
2834 fi
2835 else
2836 NM="$ac_cv_prog_NM"
2837 fi
2838
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if test -n "$RANLIB"; then
2848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 fi
2866 fi
2867 RANLIB=$ac_cv_prog_RANLIB
2868 if test -n "$RANLIB"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2870 $as_echo "$RANLIB" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 fi
2875
2876
2877 fi
2878 if test -z "$ac_cv_prog_RANLIB"; then
2879 ac_ct_RANLIB=$RANLIB
2880 # Extract the first word of "ranlib", so it can be a program name with args.
2881 set dummy ranlib; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$ac_ct_RANLIB"; then
2888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_ac_ct_RANLIB="ranlib"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2908 if test -n "$ac_ct_RANLIB"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2910 $as_echo "$ac_ct_RANLIB" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916 if test "x$ac_ct_RANLIB" = x; then
2917 RANLIB=":"
2918 else
2919 case $cross_compiling:$ac_tool_warned in
2920 yes:)
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2923 ac_tool_warned=yes ;;
2924 esac
2925 RANLIB=$ac_ct_RANLIB
2926 fi
2927 else
2928 RANLIB="$ac_cv_prog_RANLIB"
2929 fi
2930
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}strip; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if test "${ac_cv_prog_STRIP+set}" = set; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$STRIP"; then
2940 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 STRIP=$ac_cv_prog_STRIP
2960 if test -n "$STRIP"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2962 $as_echo "$STRIP" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 fi
2970 if test -z "$ac_cv_prog_STRIP"; then
2971 ac_ct_STRIP=$STRIP
2972 # Extract the first word of "strip", so it can be a program name with args.
2973 set dummy strip; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2977 $as_echo_n "(cached) " >&6
2978 else
2979 if test -n "$ac_ct_STRIP"; then
2980 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 ac_cv_prog_ac_ct_STRIP="strip"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993 done
2994 done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3000 if test -n "$ac_ct_STRIP"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3002 $as_echo "$ac_ct_STRIP" >&6; }
3003 else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008 if test "x$ac_ct_STRIP" = x; then
3009 STRIP=":"
3010 else
3011 case $cross_compiling:$ac_tool_warned in
3012 yes:)
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017 STRIP=$ac_ct_STRIP
3018 fi
3019 else
3020 STRIP="$ac_cv_prog_STRIP"
3021 fi
3022
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3024 $as_echo_n "checking whether ln -s works... " >&6; }
3025 LN_S=$as_ln_s
3026 if test "$LN_S" = "ln -s"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028 $as_echo "yes" >&6; }
3029 else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3031 $as_echo "no, using $LN_S" >&6; }
3032 fi
3033
3034
3035
3036 ac_ext=c
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_CC+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078
3079 fi
3080 if test -z "$ac_cv_prog_CC"; then
3081 ac_ct_CC=$CC
3082 # Extract the first word of "gcc", so it can be a program name with args.
3083 set dummy gcc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$ac_ct_CC"; then
3090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099 ac_cv_prog_ac_ct_CC="gcc"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3110 if test -n "$ac_ct_CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3112 $as_echo "$ac_ct_CC" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118 if test "x$ac_ct_CC" = x; then
3119 CC=""
3120 else
3121 case $cross_compiling:$ac_tool_warned in
3122 yes:)
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3125 ac_tool_warned=yes ;;
3126 esac
3127 CC=$ac_ct_CC
3128 fi
3129 else
3130 CC="$ac_cv_prog_CC"
3131 fi
3132
3133 if test -z "$CC"; then
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}cc; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if test "${ac_cv_prog_CC+set}" = set; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152 ac_cv_prog_CC="${ac_tool_prefix}cc"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3155 fi
3156 done
3157 done
3158 IFS=$as_save_IFS
3159
3160 fi
3161 fi
3162 CC=$ac_cv_prog_CC
3163 if test -n "$CC"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165 $as_echo "$CC" >&6; }
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 fi
3170
3171
3172 fi
3173 fi
3174 if test -z "$CC"; then
3175 # Extract the first word of "cc", so it can be a program name with args.
3176 set dummy cc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if test "${ac_cv_prog_CC+set}" = set; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184 else
3185 ac_prog_rejected=no
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3194 ac_prog_rejected=yes
3195 continue
3196 fi
3197 ac_cv_prog_CC="cc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 if test $ac_prog_rejected = yes; then
3206 # We found a bogon in the path, so make sure we never use it.
3207 set dummy $ac_cv_prog_CC
3208 shift
3209 if test $# != 0; then
3210 # We chose a different compiler from the bogus one.
3211 # However, it has the same basename, so the bogon will be chosen
3212 # first if we set CC to just the basename; use the full file name.
3213 shift
3214 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3215 fi
3216 fi
3217 fi
3218 fi
3219 CC=$ac_cv_prog_CC
3220 if test -n "$CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229 fi
3230 if test -z "$CC"; then
3231 if test -n "$ac_tool_prefix"; then
3232 for ac_prog in cl.exe
3233 do
3234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if test "${ac_cv_prog_CC+set}" = set; then :
3239 $as_echo_n "(cached) " >&6
3240 else
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 break 2
3254 fi
3255 done
3256 done
3257 IFS=$as_save_IFS
3258
3259 fi
3260 fi
3261 CC=$ac_cv_prog_CC
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 fi
3269
3270
3271 test -n "$CC" && break
3272 done
3273 fi
3274 if test -z "$CC"; then
3275 ac_ct_CC=$CC
3276 for ac_prog in cl.exe
3277 do
3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$ac_ct_CC"; then
3286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295 ac_cv_prog_ac_ct_CC="$ac_prog"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3306 if test -n "$ac_ct_CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3308 $as_echo "$ac_ct_CC" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 test -n "$ac_ct_CC" && break
3316 done
3317
3318 if test "x$ac_ct_CC" = x; then
3319 CC=""
3320 else
3321 case $cross_compiling:$ac_tool_warned in
3322 yes:)
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3325 ac_tool_warned=yes ;;
3326 esac
3327 CC=$ac_ct_CC
3328 fi
3329 fi
3330
3331 fi
3332
3333
3334 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error "no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details." "$LINENO" 5; }
3338
3339 # Provide some information about the compiler.
3340 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3341 set X $ac_compile
3342 ac_compiler=$2
3343 for ac_option in --version -v -V -qversion; do
3344 { { ac_try="$ac_compiler $ac_option >&5"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3352 ac_status=$?
3353 if test -s conftest.err; then
3354 sed '10a\
3355 ... rest of stderr output deleted ...
3356 10q' conftest.err >conftest.er1
3357 cat conftest.er1 >&5
3358 rm -f conftest.er1 conftest.err
3359 fi
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }
3362 done
3363
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366
3367 int
3368 main ()
3369 {
3370
3371 ;
3372 return 0;
3373 }
3374 _ACEOF
3375 # FIXME: Cleanup?
3376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3377 (eval $ac_link) 2>&5
3378 ac_status=$?
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; then :
3381 gcc_no_link=no
3382 else
3383 gcc_no_link=yes
3384 fi
3385 if test x$gcc_no_link = xyes; then
3386 # Setting cross_compile will disable run tests; it will
3387 # also disable AC_CHECK_FILE but that's generally
3388 # correct if we can't link.
3389 cross_compiling=yes
3390 EXEEXT=
3391 else
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3394
3395 int
3396 main ()
3397 {
3398
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 ac_clean_files_save=$ac_clean_files
3404 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3405 # Try to create an executable without -o first, disregard a.out.
3406 # It will help us diagnose broken compilers, and finding out an intuition
3407 # of exeext.
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3409 $as_echo_n "checking for C compiler default output file name... " >&6; }
3410 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3411
3412 # The possible output files:
3413 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3414
3415 ac_rmfiles=
3416 for ac_file in $ac_files
3417 do
3418 case $ac_file in
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3420 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3421 esac
3422 done
3423 rm -f $ac_rmfiles
3424
3425 if { { ac_try="$ac_link_default"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_link_default") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3437 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3438 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3439 # so that the user can short-circuit this test for compilers unknown to
3440 # Autoconf.
3441 for ac_file in $ac_files ''
3442 do
3443 test -f "$ac_file" || continue
3444 case $ac_file in
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3446 ;;
3447 [ab].out )
3448 # We found the default executable, but exeext='' is most
3449 # certainly right.
3450 break;;
3451 *.* )
3452 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3453 then :; else
3454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3455 fi
3456 # We set ac_cv_exeext here because the later test for it is not
3457 # safe: cross compilers may not add the suffix if given an `-o'
3458 # argument, so we may need to know it at that point already.
3459 # Even if this section looks crufty: it has the advantage of
3460 # actually working.
3461 break;;
3462 * )
3463 break;;
3464 esac
3465 done
3466 test "$ac_cv_exeext" = no && ac_cv_exeext=
3467
3468 else
3469 ac_file=''
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3472 $as_echo "$ac_file" >&6; }
3473 if test -z "$ac_file"; then :
3474 $as_echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479 { as_fn_set_status 77
3480 as_fn_error "C compiler cannot create executables
3481 See \`config.log' for more details." "$LINENO" 5; }; }
3482 fi
3483 ac_exeext=$ac_cv_exeext
3484
3485 # Check that the compiler produces executables we can run. If not, either
3486 # the compiler is broken, or we cross compile.
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3488 $as_echo_n "checking whether the C compiler works... " >&6; }
3489 # If not cross compiling, check that we can run a simple program.
3490 if test "$cross_compiling" != yes; then
3491 if { ac_try='./$ac_file'
3492 { { case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498 (eval "$ac_try") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }; }; then
3502 cross_compiling=no
3503 else
3504 if test "$cross_compiling" = maybe; then
3505 cross_compiling=yes
3506 else
3507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 as_fn_error "cannot run C compiled programs.
3510 If you meant to cross compile, use \`--host'.
3511 See \`config.log' for more details." "$LINENO" 5; }
3512 fi
3513 fi
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516 $as_echo "yes" >&6; }
3517
3518 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3519 ac_clean_files=$ac_clean_files_save
3520 # Check that the compiler produces executables we can run. If not, either
3521 # the compiler is broken, or we cross compile.
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3523 $as_echo_n "checking whether we are cross compiling... " >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3525 $as_echo "$cross_compiling" >&6; }
3526
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3528 $as_echo_n "checking for suffix of executables... " >&6; }
3529 if { { ac_try="$ac_link"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_link") 2>&5
3537 ac_status=$?
3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539 test $ac_status = 0; }; then :
3540 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3541 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3542 # work properly (i.e., refer to `conftest.exe'), while it won't with
3543 # `rm'.
3544 for ac_file in conftest.exe conftest conftest.*; do
3545 test -f "$ac_file" || continue
3546 case $ac_file in
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3548 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549 break;;
3550 * ) break;;
3551 esac
3552 done
3553 else
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error "cannot compute suffix of executables: cannot compile and link
3557 See \`config.log' for more details." "$LINENO" 5; }
3558 fi
3559 rm -f conftest$ac_cv_exeext
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3561 $as_echo "$ac_cv_exeext" >&6; }
3562
3563 rm -f conftest.$ac_ext
3564 EXEEXT=$ac_cv_exeext
3565 ac_exeext=$EXEEXT
3566 fi
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3568 $as_echo_n "checking for suffix of object files... " >&6; }
3569 if test "${ac_cv_objext+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 rm -f conftest.o conftest.obj
3584 if { { ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_compile") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; then :
3595 for ac_file in conftest.o conftest.obj conftest.*; do
3596 test -f "$ac_file" || continue;
3597 case $ac_file in
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600 break;;
3601 esac
3602 done
3603 else
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error "cannot compute suffix of object files: cannot compile
3610 See \`config.log' for more details." "$LINENO" 5; }
3611 fi
3612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3615 $as_echo "$ac_cv_objext" >&6; }
3616 OBJEXT=$ac_cv_objext
3617 ac_objext=$OBJEXT
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3620 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625
3626 int
3627 main ()
3628 {
3629 #ifndef __GNUC__
3630 choke me
3631 #endif
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_compiler_gnu=yes
3639 else
3640 ac_compiler_gnu=no
3641 fi
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3644
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3648 if test $ac_compiler_gnu = yes; then
3649 GCC=yes
3650 else
3651 GCC=
3652 fi
3653 ac_test_CFLAGS=${CFLAGS+set}
3654 ac_save_CFLAGS=$CFLAGS
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3657 if test "${ac_cv_prog_cc_g+set}" = set; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 ac_save_c_werror_flag=$ac_c_werror_flag
3661 ac_c_werror_flag=yes
3662 ac_cv_prog_cc_g=no
3663 CFLAGS="-g"
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666
3667 int
3668 main ()
3669 {
3670
3671 ;
3672 return 0;
3673 }
3674 _ACEOF
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_cv_prog_cc_g=yes
3677 else
3678 CFLAGS=""
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681
3682 int
3683 main ()
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691
3692 else
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3694 CFLAGS="-g"
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_g=yes
3708 fi
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 ac_c_werror_flag=$ac_save_c_werror_flag
3715 fi
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3717 $as_echo "$ac_cv_prog_cc_g" >&6; }
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3722 CFLAGS="-g -O2"
3723 else
3724 CFLAGS="-g"
3725 fi
3726 else
3727 if test "$GCC" = yes; then
3728 CFLAGS="-O2"
3729 else
3730 CFLAGS=
3731 fi
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3735 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 ac_cv_prog_cc_c89=no
3739 ac_save_CC=$CC
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742 #include <stdarg.h>
3743 #include <stdio.h>
3744 #include <sys/types.h>
3745 #include <sys/stat.h>
3746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3747 struct buf { int x; };
3748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749 static char *e (p, i)
3750 char **p;
3751 int i;
3752 {
3753 return p[i];
3754 }
3755 static char *f (char * (*g) (char **, int), char **p, ...)
3756 {
3757 char *s;
3758 va_list v;
3759 va_start (v,p);
3760 s = g (p, va_arg (v,int));
3761 va_end (v);
3762 return s;
3763 }
3764
3765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3766 function prototypes and stuff, but not '\xHH' hex character constants.
3767 These don't provoke an error unfortunately, instead are silently treated
3768 as 'x'. The following induces an error, until -std is added to get
3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3770 array size at least. It's necessary to write '\x00'==0 to get something
3771 that's true only with -std. */
3772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773
3774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3775 inside strings and character constants. */
3776 #define FOO(x) 'x'
3777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3778
3779 int test (int i, double x);
3780 struct s1 {int (*f) (int a);};
3781 struct s2 {int (*f) (double a);};
3782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3783 int argc;
3784 char **argv;
3785 int
3786 main ()
3787 {
3788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795 do
3796 CC="$ac_save_CC $ac_arg"
3797 if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_cv_prog_cc_c89=$ac_arg
3799 fi
3800 rm -f core conftest.err conftest.$ac_objext
3801 test "x$ac_cv_prog_cc_c89" != "xno" && break
3802 done
3803 rm -f conftest.$ac_ext
3804 CC=$ac_save_CC
3805
3806 fi
3807 # AC_CACHE_VAL
3808 case "x$ac_cv_prog_cc_c89" in
3809 x)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3811 $as_echo "none needed" >&6; } ;;
3812 xno)
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3814 $as_echo "unsupported" >&6; } ;;
3815 *)
3816 CC="$CC $ac_cv_prog_cc_c89"
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3818 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3819 esac
3820 if test "x$ac_cv_prog_cc_c89" != xno; then :
3821
3822 fi
3823
3824 ac_ext=c
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3836 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3837 # On Suns, sometimes $CPP names a directory.
3838 if test -n "$CPP" && test -d "$CPP"; then
3839 CPP=
3840 fi
3841 if test -z "$CPP"; then
3842 if test "${ac_cv_prog_CPP+set}" = set; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 # Double quotes because CPP needs to be expanded
3846 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3847 do
3848 ac_preproc_ok=false
3849 for ac_c_preproc_warn_flag in '' yes
3850 do
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error" is here to catch this case.
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #ifdef __STDC__
3860 # include <limits.h>
3861 #else
3862 # include <assert.h>
3863 #endif
3864 Syntax error
3865 _ACEOF
3866 if ac_fn_c_try_cpp "$LINENO"; then :
3867
3868 else
3869 # Broken: fails on valid input.
3870 continue
3871 fi
3872 rm -f conftest.err conftest.$ac_ext
3873
3874 # OK, works on sane cases. Now check whether nonexistent headers
3875 # can be detected and how.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <ac_nonexistent.h>
3879 _ACEOF
3880 if ac_fn_c_try_cpp "$LINENO"; then :
3881 # Broken: success on invalid input.
3882 continue
3883 else
3884 # Passes both tests.
3885 ac_preproc_ok=:
3886 break
3887 fi
3888 rm -f conftest.err conftest.$ac_ext
3889
3890 done
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.err conftest.$ac_ext
3893 if $ac_preproc_ok; then :
3894 break
3895 fi
3896
3897 done
3898 ac_cv_prog_CPP=$CPP
3899
3900 fi
3901 CPP=$ac_cv_prog_CPP
3902 else
3903 ac_cv_prog_CPP=$CPP
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3906 $as_echo "$CPP" >&6; }
3907 ac_preproc_ok=false
3908 for ac_c_preproc_warn_flag in '' yes
3909 do
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918 #ifdef __STDC__
3919 # include <limits.h>
3920 #else
3921 # include <assert.h>
3922 #endif
3923 Syntax error
3924 _ACEOF
3925 if ac_fn_c_try_cpp "$LINENO"; then :
3926
3927 else
3928 # Broken: fails on valid input.
3929 continue
3930 fi
3931 rm -f conftest.err conftest.$ac_ext
3932
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3938 _ACEOF
3939 if ac_fn_c_try_cpp "$LINENO"; then :
3940 # Broken: success on invalid input.
3941 continue
3942 else
3943 # Passes both tests.
3944 ac_preproc_ok=:
3945 break
3946 fi
3947 rm -f conftest.err conftest.$ac_ext
3948
3949 done
3950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951 rm -f conftest.err conftest.$ac_ext
3952 if $ac_preproc_ok; then :
3953
3954 else
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3958 See \`config.log' for more details." "$LINENO" 5; }
3959 fi
3960
3961 ac_ext=c
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966
3967
3968 ac_c_preproc_warn_flag=yes
3969
3970
3971
3972 # The cast to long int works around a bug in the HP C Compiler
3973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3975 # This bug is HP SR number 8606223364.
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
3977 $as_echo_n "checking size of double... " >&6; }
3978 if test "${ac_cv_sizeof_double+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
3982
3983 else
3984 if test "$ac_cv_type_double" = yes; then
3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 { as_fn_set_status 77
3988 as_fn_error "cannot compute sizeof (double)
3989 See \`config.log' for more details." "$LINENO" 5; }; }
3990 else
3991 ac_cv_sizeof_double=0
3992 fi
3993 fi
3994
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
3997 $as_echo "$ac_cv_sizeof_double" >&6; }
3998
3999
4000
4001 cat >>confdefs.h <<_ACEOF
4002 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4003 _ACEOF
4004
4005
4006 # The cast to long int works around a bug in the HP C Compiler
4007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4009 # This bug is HP SR number 8606223364.
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4011 $as_echo_n "checking size of long double... " >&6; }
4012 if test "${ac_cv_sizeof_long_double+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4016
4017 else
4018 if test "$ac_cv_type_long_double" = yes; then
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 { as_fn_set_status 77
4022 as_fn_error "cannot compute sizeof (long double)
4023 See \`config.log' for more details." "$LINENO" 5; }; }
4024 else
4025 ac_cv_sizeof_long_double=0
4026 fi
4027 fi
4028
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4031 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4032
4033
4034
4035 cat >>confdefs.h <<_ACEOF
4036 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4037 _ACEOF
4038
4039
4040 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4041 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4042
4043
4044
4045 # Check for decimal float support.
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4047 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4048 if test "${libgcc_cv_dfp+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053 _Decimal32 x;
4054 _ACEOF
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 libgcc_cv_dfp=yes
4057 else
4058 libgcc_cv_dfp=no
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4063 $as_echo "$libgcc_cv_dfp" >&6; }
4064 decimal_float=$libgcc_cv_dfp
4065
4066
4067
4068 # Check whether --enable-decimal-float was given.
4069 if test "${enable_decimal_float+set}" = set; then :
4070 enableval=$enable_decimal_float;
4071 case $enable_decimal_float in
4072 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4073 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4074 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4075 esac
4076
4077 else
4078
4079 case $host in
4080 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4081 i?86*-*-gnu* | \
4082 i?86*-*-mingw* | x86_64*-*-mingw* | \
4083 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4084 enable_decimal_float=yes
4085 ;;
4086 *)
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4088 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4089 enable_decimal_float=no
4090 ;;
4091 esac
4092
4093 fi
4094
4095
4096 # x86's use BID format instead of DPD
4097 case x$enable_decimal_float in
4098 xyes)
4099 case $host in
4100 i?86*-*-* | x86_64*-*-*)
4101 enable_decimal_float=bid
4102 ;;
4103 *)
4104 enable_decimal_float=dpd
4105 ;;
4106 esac
4107 default_decimal_float=$enable_decimal_float
4108 ;;
4109 xno)
4110 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4111 # dependency on libdecnumber.
4112 default_decimal_float=dpd
4113 ;;
4114 esac
4115
4116
4117
4118
4119 # Check for fixed-point support.
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4121 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4122 if test "${libgcc_cv_fixed_point+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 _Sat _Fract x;
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 libgcc_cv_fixed_point=yes
4131 else
4132 libgcc_cv_fixed_point=no
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4137 $as_echo "$libgcc_cv_fixed_point" >&6; }
4138 fixed_point=$libgcc_cv_fixed_point
4139
4140
4141 # For platforms with the unwind ABI which includes an unwind library,
4142 # libunwind, we can choose to use the system libunwind.
4143 # config.gcc also contains tests of with_system_libunwind.
4144
4145
4146 # Check whether --with-system-libunwind was given.
4147 if test "${with_system_libunwind+set}" = set; then :
4148 withval=$with_system_libunwind;
4149 fi
4150
4151 # If system-libunwind was not specifically set, pick a default setting.
4152 if test x$with_system_libunwind = x; then
4153 case ${target} in
4154 ia64-*-hpux*) with_system_libunwind=yes ;;
4155 *) with_system_libunwind=no ;;
4156 esac
4157 fi
4158 # Based on system-libunwind and target, do we have ipinfo?
4159 if test x$with_system_libunwind = xyes; then
4160 case ${target} in
4161 ia64-*-*) have_unwind_getipinfo=no ;;
4162 *) have_unwind_getipinfo=yes ;;
4163 esac
4164 else
4165 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4166
4167 case ${target} in
4168 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4169 *) have_unwind_getipinfo=yes ;;
4170 esac
4171
4172 fi
4173
4174 if test x$have_unwind_getipinfo = xyes; then
4175
4176 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4177
4178 fi
4179
4180
4181 # The sjlj test is almost duplicated here and in libgo/configure.ac (for C),
4182 # libstdc++-v3/acinclude.m4 and libjava/configure.ac (for C++), and
4183 # libobjc/configure.ac (for Objective-C).
4184 # FIXME: This should be centralized in config/sjlj.m4.
4185 # Check whether --enable-sjlj-exceptions was given.
4186 if test "${enable_sjlj_exceptions+set}" = set; then :
4187 enableval=$enable_sjlj_exceptions; case "$enableval" in
4188 yes|no|auto) ;;
4189 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
4190 esac
4191 else
4192 enable_sjlj_exceptions=auto
4193 fi
4194
4195
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
4197 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
4198 if test "${libgcc_cv_lib_sjlj_exceptions+set}" = set; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203
4204 void bar ();
4205 void clean (int *);
4206 void foo ()
4207 {
4208 int i __attribute__ ((cleanup (clean)));
4209 bar();
4210 }
4211
4212 _ACEOF
4213 CFLAGS_hold=$CFLAGS
4214 CFLAGS="--save-temps -fexceptions"
4215 libgcc_cv_lib_sjlj_exceptions=unknown
4216 if ac_fn_c_try_compile; then :
4217 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
4218 libgcc_cv_lib_sjlj_exceptions=yes
4219 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
4220 libgcc_cv_lib_sjlj_exceptions=no
4221 fi
4222 fi
4223 CFLAGS=$CFLAGS_hold
4224 rm -f conftest*
4225
4226 fi
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_lib_sjlj_exceptions" >&5
4228 $as_echo "$libgcc_cv_lib_sjlj_exceptions" >&6; }
4229
4230 if test "$enable_sjlj_exceptions" = "auto"; then
4231 enable_sjlj_exceptions=$libgcc_cv_lib_sjlj_exceptions
4232 fi
4233
4234 case $enable_sjlj_exceptions in
4235 yes)
4236
4237 $as_echo "#define LIBGCC_SJLJ_EXCEPTIONS 1" >>confdefs.h
4238
4239 ;;
4240 no)
4241 ;;
4242 *)
4243 as_fn_error "unable to detect exception model" "$LINENO" 5
4244 ;;
4245 esac
4246
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4248 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4249 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4253 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4254 acl_cv_prog_gnu_ld=yes
4255 else
4256 acl_cv_prog_gnu_ld=no
4257 fi
4258 fi
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4260 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4261 with_gnu_ld=$acl_cv_prog_gnu_ld
4262
4263
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4265 $as_echo_n "checking for thread model used by GCC... " >&6; }
4266 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4268 $as_echo "$target_thread_file" >&6; }
4269
4270 # Check for assembler CFI support.
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4272 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
4273 if test "${libgcc_cv_cfi+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 asm("\n\
4279 .text\n\
4280 .cfi_startproc\n\
4281 .cfi_personality 0, symbol\n\
4282 .cfi_endproc");
4283 _ACEOF
4284 if ac_fn_c_try_compile "$LINENO"; then :
4285 libgcc_cv_cfi=yes
4286 else
4287 libgcc_cv_cfi=no
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 fi
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
4292 $as_echo "$libgcc_cv_cfi" >&6; }
4293
4294 # Check 32bit or 64bit
4295 cat > conftest.c <<EOF
4296 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__))
4297 host_address=64
4298 #else
4299 host_address=32
4300 #endif
4301 EOF
4302 eval `${CC-cc} -E conftest.c | grep host_address=`
4303 rm -f conftest.c
4304
4305 # Collect host-machine-specific information.
4306 . ${srcdir}/config.host
4307
4308 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
4309 # This is after config.host so we can augment tmake_file.
4310 # Link with -nostartfiles -nodefaultlibs since neither are present while
4311 # building libgcc.
4312 case ${host} in
4313 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
4314 cat > conftest.s <<EOF
4315 .section .eh_frame,"a",@unwind
4316 .zero 4
4317 .section .jcr,"aw",@progbits
4318 .zero 8
4319 EOF
4320 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
4321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4322 (eval $ac_try) 2>&5
4323 ac_status=$?
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }; }; then
4326 tmake_file="${tmake_file} i386/t-crtstuff"
4327 fi
4328 ;;
4329 esac
4330
4331 # Check for visibility support. This is after config.host so that
4332 # we can check for asm_hidden_op.
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
4334 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
4335 if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338
4339 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
4340 libgcc_cv_hidden_visibility_attribute=no
4341 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; }; }; then
4347 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
4348 libgcc_cv_hidden_visibility_attribute=yes
4349 fi
4350 fi
4351 rm -f conftest.*
4352
4353 fi
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
4355 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
4356
4357 if test $libgcc_cv_hidden_visibility_attribute = yes; then
4358 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
4359 else
4360 vis_hide=
4361 fi
4362
4363
4364 # See if we have thread-local storage. We can only test assembler
4365 # since link-time and run-time tests require the newly built
4366 # gcc, which can't be used to build executable due to that libgcc
4367 # is yet to be built here.
4368
4369 # Check whether --enable-tls was given.
4370 if test "${enable_tls+set}" = set; then :
4371 enableval=$enable_tls;
4372 case "$enableval" in
4373 yes|no) ;;
4374 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
4375 esac
4376
4377 else
4378 enable_tls=yes
4379 fi
4380
4381
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
4383 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
4384 if test "${gcc_cv_have_cc_tls+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390 __thread int a; int b; int main() { return a = b; }
4391 _ACEOF
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 gcc_cv_have_cc_tls=yes
4394 else
4395 gcc_cv_have_cc_tls=no
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
4401 $as_echo "$gcc_cv_have_cc_tls" >&6; }
4402 set_have_cc_tls=
4403 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
4404 set_have_cc_tls="-DHAVE_CC_TLS"
4405 fi
4406
4407
4408 # See if we have emulated thread-local storage.
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
4411 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
4412 if test "${gcc_cv_use_emutls+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415
4416 gcc_cv_use_emutls=no
4417 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
4418 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
4419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423 test $ac_status = 0; }; }; then
4424 if grep __emutls_get_address conftest.s > /dev/null; then
4425 gcc_cv_use_emutls=yes
4426 fi
4427 fi
4428 rm -f conftest.*
4429
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
4432 $as_echo "$gcc_cv_use_emutls" >&6; }
4433 if test "$gcc_cv_use_emutls" = "yes" ; then
4434
4435 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
4436
4437 fi
4438 set_use_emutls=
4439 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
4440 set_use_emutls="-DUSE_EMUTLS"
4441 fi
4442
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
4445 $as_echo_n "checking for init priority support... " >&6; }
4446 if test "${libgcc_cv_init_priority+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452
4453 int
4454 main ()
4455 {
4456 void ip (void) __attribute__ ((constructor (1)));
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462 libgcc_cv_init_priority=yes
4463 else
4464 libgcc_cv_init_priority=no
4465 fi
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
4469 $as_echo "$libgcc_cv_init_priority" >&6; }
4470 if test $libgcc_cv_init_priority = yes; then
4471
4472 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
4473
4474 fi
4475
4476 # Conditionalize the sfp-machine.h header for this target machine.
4477 if test -z "${sfp_machine_header}"; then
4478 sfp_machine_header=$cpu_type/sfp-machine.h
4479 if test -f ${srcdir}/config/${sfp_machine_header}; then
4480 :
4481 else
4482 sfp_machine_header=no-sfp-machine.h
4483 fi
4484 fi
4485
4486
4487 # Conditionalize the makefile for this target machine.
4488 tmake_file_=
4489 for f in ${tmake_file}
4490 do
4491 if test -f ${srcdir}/config/$f
4492 then
4493 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
4494 fi
4495 done
4496 tmake_file="${tmake_file_}"
4497
4498
4499 # Likewise export definitions for libgcc_tm.h
4500 tm_file_=
4501 for f in ${tm_file}
4502 do
4503 tm_file_="${tm_file_} \$(srcdir)/config/$f"
4504 done
4505 tm_file="${tm_file_}"
4506
4507
4508
4509 # Map from thread model to thread header.
4510
4511 case $target_thread_file in
4512 aix) thread_header=config/rs6000/gthr-aix.h ;;
4513 dce) thread_header=config/pa/gthr-dce.h ;;
4514 lynx) thread_header=config/gthr-lynx.h ;;
4515 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
4516 posix) thread_header=gthr-posix.h ;;
4517 rtems) thread_header=config/gthr-rtems.h ;;
4518 single) thread_header=gthr-single.h ;;
4519 tpf) thread_header=config/s390/gthr-tpf.h ;;
4520 vxworks) thread_header=config/gthr-vxworks.h ;;
4521 win32) thread_header=config/i386/gthr-win32.h ;;
4522 esac
4523
4524
4525
4526 # Substitute configuration variables
4527
4528
4529
4530 ac_config_links="$ac_config_links enable-execute-stack.c:$enable_execute_stack"
4531
4532 ac_config_links="$ac_config_links unwind.h:$unwind_header"
4533
4534 ac_config_links="$ac_config_links md-unwind-support.h:config/$md_unwind_header"
4535
4536 ac_config_links="$ac_config_links sfp-machine.h:config/$sfp_machine_header"
4537
4538 ac_config_links="$ac_config_links gthr-default.h:$thread_header"
4539
4540
4541 # We need multilib support.
4542 ac_config_files="$ac_config_files Makefile"
4543
4544 ac_config_commands="$ac_config_commands default"
4545
4546 cat >confcache <<\_ACEOF
4547 # This file is a shell script that caches the results of configure
4548 # tests run on this system so they can be shared between configure
4549 # scripts and configure runs, see configure's option --config-cache.
4550 # It is not useful on other systems. If it contains results you don't
4551 # want to keep, you may remove or edit it.
4552 #
4553 # config.status only pays attention to the cache file if you give it
4554 # the --recheck option to rerun configure.
4555 #
4556 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4557 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4558 # following values.
4559
4560 _ACEOF
4561
4562 # The following way of writing the cache mishandles newlines in values,
4563 # but we know of no workaround that is simple, portable, and efficient.
4564 # So, we kill variables containing newlines.
4565 # Ultrix sh set writes to stderr and can't be redirected directly,
4566 # and sets the high bit in the cache file unless we assign to the vars.
4567 (
4568 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4569 eval ac_val=\$$ac_var
4570 case $ac_val in #(
4571 *${as_nl}*)
4572 case $ac_var in #(
4573 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4574 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4575 esac
4576 case $ac_var in #(
4577 _ | IFS | as_nl) ;; #(
4578 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4579 *) { eval $ac_var=; unset $ac_var;} ;;
4580 esac ;;
4581 esac
4582 done
4583
4584 (set) 2>&1 |
4585 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4586 *${as_nl}ac_space=\ *)
4587 # `set' does not quote correctly, so add quotes: double-quote
4588 # substitution turns \\\\ into \\, and sed turns \\ into \.
4589 sed -n \
4590 "s/'/'\\\\''/g;
4591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4592 ;; #(
4593 *)
4594 # `set' quotes correctly as required by POSIX, so do not add quotes.
4595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4596 ;;
4597 esac |
4598 sort
4599 ) |
4600 sed '
4601 /^ac_cv_env_/b end
4602 t clear
4603 :clear
4604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4605 t end
4606 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4607 :end' >>confcache
4608 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4609 if test -w "$cache_file"; then
4610 test "x$cache_file" != "x/dev/null" &&
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4612 $as_echo "$as_me: updating cache $cache_file" >&6;}
4613 cat confcache >$cache_file
4614 else
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4616 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4617 fi
4618 fi
4619 rm -f confcache
4620
4621 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4622 # Let make expand exec_prefix.
4623 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4624
4625 DEFS=-DHAVE_CONFIG_H
4626
4627 ac_libobjs=
4628 ac_ltlibobjs=
4629 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4630 # 1. Remove the extension, and $U if already installed.
4631 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4632 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4633 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4634 # will be set to the directory where LIBOBJS objects are built.
4635 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4636 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4637 done
4638 LIBOBJS=$ac_libobjs
4639
4640 LTLIBOBJS=$ac_ltlibobjs
4641
4642
4643
4644 : ${CONFIG_STATUS=./config.status}
4645 ac_write_fail=0
4646 ac_clean_files_save=$ac_clean_files
4647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4649 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4650 as_write_fail=0
4651 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4652 #! $SHELL
4653 # Generated by $as_me.
4654 # Run this file to recreate the current configuration.
4655 # Compiler output produced by configure, useful for debugging
4656 # configure, is in config.log if it exists.
4657
4658 debug=false
4659 ac_cs_recheck=false
4660 ac_cs_silent=false
4661
4662 SHELL=\${CONFIG_SHELL-$SHELL}
4663 export SHELL
4664 _ASEOF
4665 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4666 ## -------------------- ##
4667 ## M4sh Initialization. ##
4668 ## -------------------- ##
4669
4670 # Be more Bourne compatible
4671 DUALCASE=1; export DUALCASE # for MKS sh
4672 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4673 emulate sh
4674 NULLCMD=:
4675 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4676 # is contrary to our usage. Disable this feature.
4677 alias -g '${1+"$@"}'='"$@"'
4678 setopt NO_GLOB_SUBST
4679 else
4680 case `(set -o) 2>/dev/null` in #(
4681 *posix*) :
4682 set -o posix ;; #(
4683 *) :
4684 ;;
4685 esac
4686 fi
4687
4688
4689 as_nl='
4690 '
4691 export as_nl
4692 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4693 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4694 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4695 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4696 # Prefer a ksh shell builtin over an external printf program on Solaris,
4697 # but without wasting forks for bash or zsh.
4698 if test -z "$BASH_VERSION$ZSH_VERSION" \
4699 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4700 as_echo='print -r --'
4701 as_echo_n='print -rn --'
4702 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4703 as_echo='printf %s\n'
4704 as_echo_n='printf %s'
4705 else
4706 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4707 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4708 as_echo_n='/usr/ucb/echo -n'
4709 else
4710 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4711 as_echo_n_body='eval
4712 arg=$1;
4713 case $arg in #(
4714 *"$as_nl"*)
4715 expr "X$arg" : "X\\(.*\\)$as_nl";
4716 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4717 esac;
4718 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4719 '
4720 export as_echo_n_body
4721 as_echo_n='sh -c $as_echo_n_body as_echo'
4722 fi
4723 export as_echo_body
4724 as_echo='sh -c $as_echo_body as_echo'
4725 fi
4726
4727 # The user is always right.
4728 if test "${PATH_SEPARATOR+set}" != set; then
4729 PATH_SEPARATOR=:
4730 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4731 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4732 PATH_SEPARATOR=';'
4733 }
4734 fi
4735
4736
4737 # IFS
4738 # We need space, tab and new line, in precisely that order. Quoting is
4739 # there to prevent editors from complaining about space-tab.
4740 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4741 # splitting by setting IFS to empty value.)
4742 IFS=" "" $as_nl"
4743
4744 # Find who we are. Look in the path if we contain no directory separator.
4745 case $0 in #((
4746 *[\\/]* ) as_myself=$0 ;;
4747 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4753 done
4754 IFS=$as_save_IFS
4755
4756 ;;
4757 esac
4758 # We did not find ourselves, most probably we were run as `sh COMMAND'
4759 # in which case we are not to be found in the path.
4760 if test "x$as_myself" = x; then
4761 as_myself=$0
4762 fi
4763 if test ! -f "$as_myself"; then
4764 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4765 exit 1
4766 fi
4767
4768 # Unset variables that we do not need and which cause bugs (e.g. in
4769 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4770 # suppresses any "Segmentation fault" message there. '((' could
4771 # trigger a bug in pdksh 5.2.14.
4772 for as_var in BASH_ENV ENV MAIL MAILPATH
4773 do eval test x\${$as_var+set} = xset \
4774 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4775 done
4776 PS1='$ '
4777 PS2='> '
4778 PS4='+ '
4779
4780 # NLS nuisances.
4781 LC_ALL=C
4782 export LC_ALL
4783 LANGUAGE=C
4784 export LANGUAGE
4785
4786 # CDPATH.
4787 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4788
4789
4790 # as_fn_error ERROR [LINENO LOG_FD]
4791 # ---------------------------------
4792 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4793 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4794 # script with status $?, using 1 if that was 0.
4795 as_fn_error ()
4796 {
4797 as_status=$?; test $as_status -eq 0 && as_status=1
4798 if test "$3"; then
4799 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4800 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4801 fi
4802 $as_echo "$as_me: error: $1" >&2
4803 as_fn_exit $as_status
4804 } # as_fn_error
4805
4806
4807 # as_fn_set_status STATUS
4808 # -----------------------
4809 # Set $? to STATUS, without forking.
4810 as_fn_set_status ()
4811 {
4812 return $1
4813 } # as_fn_set_status
4814
4815 # as_fn_exit STATUS
4816 # -----------------
4817 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4818 as_fn_exit ()
4819 {
4820 set +e
4821 as_fn_set_status $1
4822 exit $1
4823 } # as_fn_exit
4824
4825 # as_fn_unset VAR
4826 # ---------------
4827 # Portably unset VAR.
4828 as_fn_unset ()
4829 {
4830 { eval $1=; unset $1;}
4831 }
4832 as_unset=as_fn_unset
4833 # as_fn_append VAR VALUE
4834 # ----------------------
4835 # Append the text in VALUE to the end of the definition contained in VAR. Take
4836 # advantage of any shell optimizations that allow amortized linear growth over
4837 # repeated appends, instead of the typical quadratic growth present in naive
4838 # implementations.
4839 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4840 eval 'as_fn_append ()
4841 {
4842 eval $1+=\$2
4843 }'
4844 else
4845 as_fn_append ()
4846 {
4847 eval $1=\$$1\$2
4848 }
4849 fi # as_fn_append
4850
4851 # as_fn_arith ARG...
4852 # ------------------
4853 # Perform arithmetic evaluation on the ARGs, and store the result in the
4854 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4855 # must be portable across $(()) and expr.
4856 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4857 eval 'as_fn_arith ()
4858 {
4859 as_val=$(( $* ))
4860 }'
4861 else
4862 as_fn_arith ()
4863 {
4864 as_val=`expr "$@" || test $? -eq 1`
4865 }
4866 fi # as_fn_arith
4867
4868
4869 if expr a : '\(a\)' >/dev/null 2>&1 &&
4870 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4871 as_expr=expr
4872 else
4873 as_expr=false
4874 fi
4875
4876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4877 as_basename=basename
4878 else
4879 as_basename=false
4880 fi
4881
4882 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4883 as_dirname=dirname
4884 else
4885 as_dirname=false
4886 fi
4887
4888 as_me=`$as_basename -- "$0" ||
4889 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4890 X"$0" : 'X\(//\)$' \| \
4891 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4892 $as_echo X/"$0" |
4893 sed '/^.*\/\([^/][^/]*\)\/*$/{
4894 s//\1/
4895 q
4896 }
4897 /^X\/\(\/\/\)$/{
4898 s//\1/
4899 q
4900 }
4901 /^X\/\(\/\).*/{
4902 s//\1/
4903 q
4904 }
4905 s/.*/./; q'`
4906
4907 # Avoid depending upon Character Ranges.
4908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4911 as_cr_digits='0123456789'
4912 as_cr_alnum=$as_cr_Letters$as_cr_digits
4913
4914 ECHO_C= ECHO_N= ECHO_T=
4915 case `echo -n x` in #(((((
4916 -n*)
4917 case `echo 'xy\c'` in
4918 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4919 xy) ECHO_C='\c';;
4920 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4921 ECHO_T=' ';;
4922 esac;;
4923 *)
4924 ECHO_N='-n';;
4925 esac
4926
4927 rm -f conf$$ conf$$.exe conf$$.file
4928 if test -d conf$$.dir; then
4929 rm -f conf$$.dir/conf$$.file
4930 else
4931 rm -f conf$$.dir
4932 mkdir conf$$.dir 2>/dev/null
4933 fi
4934 if (echo >conf$$.file) 2>/dev/null; then
4935 if ln -s conf$$.file conf$$ 2>/dev/null; then
4936 as_ln_s='ln -s'
4937 # ... but there are two gotchas:
4938 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4939 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4940 # In both cases, we have to default to `cp -p'.
4941 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4942 as_ln_s='cp -p'
4943 elif ln conf$$.file conf$$ 2>/dev/null; then
4944 as_ln_s=ln
4945 else
4946 as_ln_s='cp -p'
4947 fi
4948 else
4949 as_ln_s='cp -p'
4950 fi
4951 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4952 rmdir conf$$.dir 2>/dev/null
4953
4954
4955 # as_fn_mkdir_p
4956 # -------------
4957 # Create "$as_dir" as a directory, including parents if necessary.
4958 as_fn_mkdir_p ()
4959 {
4960
4961 case $as_dir in #(
4962 -*) as_dir=./$as_dir;;
4963 esac
4964 test -d "$as_dir" || eval $as_mkdir_p || {
4965 as_dirs=
4966 while :; do
4967 case $as_dir in #(
4968 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4969 *) as_qdir=$as_dir;;
4970 esac
4971 as_dirs="'$as_qdir' $as_dirs"
4972 as_dir=`$as_dirname -- "$as_dir" ||
4973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4974 X"$as_dir" : 'X\(//\)[^/]' \| \
4975 X"$as_dir" : 'X\(//\)$' \| \
4976 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4977 $as_echo X"$as_dir" |
4978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4979 s//\1/
4980 q
4981 }
4982 /^X\(\/\/\)[^/].*/{
4983 s//\1/
4984 q
4985 }
4986 /^X\(\/\/\)$/{
4987 s//\1/
4988 q
4989 }
4990 /^X\(\/\).*/{
4991 s//\1/
4992 q
4993 }
4994 s/.*/./; q'`
4995 test -d "$as_dir" && break
4996 done
4997 test -z "$as_dirs" || eval "mkdir $as_dirs"
4998 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4999
5000
5001 } # as_fn_mkdir_p
5002 if mkdir -p . 2>/dev/null; then
5003 as_mkdir_p='mkdir -p "$as_dir"'
5004 else
5005 test -d ./-p && rmdir ./-p
5006 as_mkdir_p=false
5007 fi
5008
5009 if test -x / >/dev/null 2>&1; then
5010 as_test_x='test -x'
5011 else
5012 if ls -dL / >/dev/null 2>&1; then
5013 as_ls_L_option=L
5014 else
5015 as_ls_L_option=
5016 fi
5017 as_test_x='
5018 eval sh -c '\''
5019 if test -d "$1"; then
5020 test -d "$1/.";
5021 else
5022 case $1 in #(
5023 -*)set "./$1";;
5024 esac;
5025 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5026 ???[sx]*):;;*)false;;esac;fi
5027 '\'' sh
5028 '
5029 fi
5030 as_executable_p=$as_test_x
5031
5032 # Sed expression to map a string onto a valid CPP name.
5033 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5034
5035 # Sed expression to map a string onto a valid variable name.
5036 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5037
5038
5039 exec 6>&1
5040 ## ----------------------------------- ##
5041 ## Main body of $CONFIG_STATUS script. ##
5042 ## ----------------------------------- ##
5043 _ASEOF
5044 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5045
5046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5047 # Save the log message, to keep $0 and so on meaningful, and to
5048 # report actual input values of CONFIG_FILES etc. instead of their
5049 # values after options handling.
5050 ac_log="
5051 This file was extended by GNU C Runtime Library $as_me 1.0, which was
5052 generated by GNU Autoconf 2.64. Invocation command line was
5053
5054 CONFIG_FILES = $CONFIG_FILES
5055 CONFIG_HEADERS = $CONFIG_HEADERS
5056 CONFIG_LINKS = $CONFIG_LINKS
5057 CONFIG_COMMANDS = $CONFIG_COMMANDS
5058 $ $0 $@
5059
5060 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5061 "
5062
5063 _ACEOF
5064
5065 case $ac_config_files in *"
5066 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5067 esac
5068
5069 case $ac_config_headers in *"
5070 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5071 esac
5072
5073
5074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5075 # Files that config.status was made for.
5076 config_files="$ac_config_files"
5077 config_headers="$ac_config_headers"
5078 config_links="$ac_config_links"
5079 config_commands="$ac_config_commands"
5080
5081 _ACEOF
5082
5083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5084 ac_cs_usage="\
5085 \`$as_me' instantiates files and other configuration actions
5086 from templates according to the current configuration. Unless the files
5087 and actions are specified as TAGs, all are instantiated by default.
5088
5089 Usage: $0 [OPTION]... [TAG]...
5090
5091 -h, --help print this help, then exit
5092 -V, --version print version number and configuration settings, then exit
5093 -q, --quiet, --silent
5094 do not print progress messages
5095 -d, --debug don't remove temporary files
5096 --recheck update $as_me by reconfiguring in the same conditions
5097 --file=FILE[:TEMPLATE]
5098 instantiate the configuration file FILE
5099 --header=FILE[:TEMPLATE]
5100 instantiate the configuration header FILE
5101
5102 Configuration files:
5103 $config_files
5104
5105 Configuration headers:
5106 $config_headers
5107
5108 Configuration links:
5109 $config_links
5110
5111 Configuration commands:
5112 $config_commands
5113
5114 Report bugs to the package provider.
5115 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
5116 General help using GNU software: <http://www.gnu.org/gethelp/>."
5117
5118 _ACEOF
5119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5120 ac_cs_version="\\
5121 GNU C Runtime Library config.status 1.0
5122 configured by $0, generated by GNU Autoconf 2.64,
5123 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5124
5125 Copyright (C) 2009 Free Software Foundation, Inc.
5126 This config.status script is free software; the Free Software Foundation
5127 gives unlimited permission to copy, distribute and modify it."
5128
5129 ac_pwd='$ac_pwd'
5130 srcdir='$srcdir'
5131 INSTALL='$INSTALL'
5132 AWK='$AWK'
5133 test -n "\$AWK" || AWK=awk
5134 _ACEOF
5135
5136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5137 # The default lists apply if the user does not specify any file.
5138 ac_need_defaults=:
5139 while test $# != 0
5140 do
5141 case $1 in
5142 --*=*)
5143 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5144 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5145 ac_shift=:
5146 ;;
5147 *)
5148 ac_option=$1
5149 ac_optarg=$2
5150 ac_shift=shift
5151 ;;
5152 esac
5153
5154 case $ac_option in
5155 # Handling of the options.
5156 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5157 ac_cs_recheck=: ;;
5158 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5159 $as_echo "$ac_cs_version"; exit ;;
5160 --debug | --debu | --deb | --de | --d | -d )
5161 debug=: ;;
5162 --file | --fil | --fi | --f )
5163 $ac_shift
5164 case $ac_optarg in
5165 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5166 esac
5167 as_fn_append CONFIG_FILES " '$ac_optarg'"
5168 ac_need_defaults=false;;
5169 --header | --heade | --head | --hea )
5170 $ac_shift
5171 case $ac_optarg in
5172 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5173 esac
5174 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5175 ac_need_defaults=false;;
5176 --he | --h)
5177 # Conflict between --help and --header
5178 as_fn_error "ambiguous option: \`$1'
5179 Try \`$0 --help' for more information.";;
5180 --help | --hel | -h )
5181 $as_echo "$ac_cs_usage"; exit ;;
5182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5183 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5184 ac_cs_silent=: ;;
5185
5186 # This is an error.
5187 -*) as_fn_error "unrecognized option: \`$1'
5188 Try \`$0 --help' for more information." ;;
5189
5190 *) as_fn_append ac_config_targets " $1"
5191 ac_need_defaults=false ;;
5192
5193 esac
5194 shift
5195 done
5196
5197 ac_configure_extra_args=
5198
5199 if $ac_cs_silent; then
5200 exec 6>/dev/null
5201 ac_configure_extra_args="$ac_configure_extra_args --silent"
5202 fi
5203
5204 _ACEOF
5205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5206 if \$ac_cs_recheck; then
5207 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5208 shift
5209 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5210 CONFIG_SHELL='$SHELL'
5211 export CONFIG_SHELL
5212 exec "\$@"
5213 fi
5214
5215 _ACEOF
5216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5217 exec 5>>config.log
5218 {
5219 echo
5220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5221 ## Running $as_me. ##
5222 _ASBOX
5223 $as_echo "$ac_log"
5224 } >&5
5225
5226 _ACEOF
5227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5228 #
5229 # INIT-COMMANDS
5230 #
5231 srcdir=${srcdir}
5232 host=${host}
5233 with_target_subdir=${with_target_subdir}
5234 with_multisubdir=${with_multisubdir}
5235 ac_configure_args="--enable-multilib ${ac_configure_args}"
5236 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5237 libgcc_topdir=${libgcc_topdir}
5238 CC="${CC}"
5239
5240
5241 _ACEOF
5242
5243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5244
5245 # Handling of arguments.
5246 for ac_config_target in $ac_config_targets
5247 do
5248 case $ac_config_target in
5249 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
5250 "enable-execute-stack.c") CONFIG_LINKS="$CONFIG_LINKS enable-execute-stack.c:$enable_execute_stack" ;;
5251 "unwind.h") CONFIG_LINKS="$CONFIG_LINKS unwind.h:$unwind_header" ;;
5252 "md-unwind-support.h") CONFIG_LINKS="$CONFIG_LINKS md-unwind-support.h:config/$md_unwind_header" ;;
5253 "sfp-machine.h") CONFIG_LINKS="$CONFIG_LINKS sfp-machine.h:config/$sfp_machine_header" ;;
5254 "gthr-default.h") CONFIG_LINKS="$CONFIG_LINKS gthr-default.h:$thread_header" ;;
5255 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5256 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5257
5258 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5259 esac
5260 done
5261
5262
5263 # If the user did not use the arguments to specify the items to instantiate,
5264 # then the envvar interface is used. Set only those that are not.
5265 # We use the long form for the default assignment because of an extremely
5266 # bizarre bug on SunOS 4.1.3.
5267 if $ac_need_defaults; then
5268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5270 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5272 fi
5273
5274 # Have a temporary directory for convenience. Make it in the build tree
5275 # simply because there is no reason against having it here, and in addition,
5276 # creating and moving files from /tmp can sometimes cause problems.
5277 # Hook for its removal unless debugging.
5278 # Note that there is a small window in which the directory will not be cleaned:
5279 # after its creation but before its name has been assigned to `$tmp'.
5280 $debug ||
5281 {
5282 tmp=
5283 trap 'exit_status=$?
5284 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5285 ' 0
5286 trap 'as_fn_exit 1' 1 2 13 15
5287 }
5288 # Create a (secure) tmp directory for tmp files.
5289
5290 {
5291 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5292 test -n "$tmp" && test -d "$tmp"
5293 } ||
5294 {
5295 tmp=./conf$$-$RANDOM
5296 (umask 077 && mkdir "$tmp")
5297 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5298
5299 # Set up the scripts for CONFIG_FILES section.
5300 # No need to generate them if there are no CONFIG_FILES.
5301 # This happens for instance with `./config.status config.h'.
5302 if test -n "$CONFIG_FILES"; then
5303
5304
5305 ac_cr=`echo X | tr X '\015'`
5306 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5307 # But we know of no other shell where ac_cr would be empty at this
5308 # point, so we can use a bashism as a fallback.
5309 if test "x$ac_cr" = x; then
5310 eval ac_cr=\$\'\\r\'
5311 fi
5312 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5313 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5314 ac_cs_awk_cr='\r'
5315 else
5316 ac_cs_awk_cr=$ac_cr
5317 fi
5318
5319 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5320 _ACEOF
5321
5322
5323 {
5324 echo "cat >conf$$subs.awk <<_ACEOF" &&
5325 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5326 echo "_ACEOF"
5327 } >conf$$subs.sh ||
5328 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5329 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5330 ac_delim='%!_!# '
5331 for ac_last_try in false false false false false :; do
5332 . ./conf$$subs.sh ||
5333 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5334
5335 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5336 if test $ac_delim_n = $ac_delim_num; then
5337 break
5338 elif $ac_last_try; then
5339 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5340 else
5341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5342 fi
5343 done
5344 rm -f conf$$subs.sh
5345
5346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5347 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5348 _ACEOF
5349 sed -n '
5350 h
5351 s/^/S["/; s/!.*/"]=/
5352 p
5353 g
5354 s/^[^!]*!//
5355 :repl
5356 t repl
5357 s/'"$ac_delim"'$//
5358 t delim
5359 :nl
5360 h
5361 s/\(.\{148\}\).*/\1/
5362 t more1
5363 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5364 p
5365 n
5366 b repl
5367 :more1
5368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5369 p
5370 g
5371 s/.\{148\}//
5372 t nl
5373 :delim
5374 h
5375 s/\(.\{148\}\).*/\1/
5376 t more2
5377 s/["\\]/\\&/g; s/^/"/; s/$/"/
5378 p
5379 b
5380 :more2
5381 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5382 p
5383 g
5384 s/.\{148\}//
5385 t delim
5386 ' <conf$$subs.awk | sed '
5387 /^[^""]/{
5388 N
5389 s/\n//
5390 }
5391 ' >>$CONFIG_STATUS || ac_write_fail=1
5392 rm -f conf$$subs.awk
5393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5394 _ACAWK
5395 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5396 for (key in S) S_is_set[key] = 1
5397 FS = "\a"
5398
5399 }
5400 {
5401 line = $ 0
5402 nfields = split(line, field, "@")
5403 substed = 0
5404 len = length(field[1])
5405 for (i = 2; i < nfields; i++) {
5406 key = field[i]
5407 keylen = length(key)
5408 if (S_is_set[key]) {
5409 value = S[key]
5410 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5411 len += length(value) + length(field[++i])
5412 substed = 1
5413 } else
5414 len += 1 + keylen
5415 }
5416
5417 print line
5418 }
5419
5420 _ACAWK
5421 _ACEOF
5422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5423 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5424 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5425 else
5426 cat
5427 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5428 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5429 _ACEOF
5430
5431 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5432 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5433 # trailing colons and then remove the whole line if VPATH becomes empty
5434 # (actually we leave an empty line to preserve line numbers).
5435 if test "x$srcdir" = x.; then
5436 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5437 s/:*\$(srcdir):*/:/
5438 s/:*\${srcdir}:*/:/
5439 s/:*@srcdir@:*/:/
5440 s/^\([^=]*=[ ]*\):*/\1/
5441 s/:*$//
5442 s/^[^=]*=[ ]*$//
5443 }'
5444 fi
5445
5446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5447 fi # test -n "$CONFIG_FILES"
5448
5449 # Set up the scripts for CONFIG_HEADERS section.
5450 # No need to generate them if there are no CONFIG_HEADERS.
5451 # This happens for instance with `./config.status Makefile'.
5452 if test -n "$CONFIG_HEADERS"; then
5453 cat >"$tmp/defines.awk" <<\_ACAWK ||
5454 BEGIN {
5455 _ACEOF
5456
5457 # Transform confdefs.h into an awk script `defines.awk', embedded as
5458 # here-document in config.status, that substitutes the proper values into
5459 # config.h.in to produce config.h.
5460
5461 # Create a delimiter string that does not exist in confdefs.h, to ease
5462 # handling of long lines.
5463 ac_delim='%!_!# '
5464 for ac_last_try in false false :; do
5465 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5466 if test -z "$ac_t"; then
5467 break
5468 elif $ac_last_try; then
5469 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5470 else
5471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5472 fi
5473 done
5474
5475 # For the awk script, D is an array of macro values keyed by name,
5476 # likewise P contains macro parameters if any. Preserve backslash
5477 # newline sequences.
5478
5479 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5480 sed -n '
5481 s/.\{148\}/&'"$ac_delim"'/g
5482 t rset
5483 :rset
5484 s/^[ ]*#[ ]*define[ ][ ]*/ /
5485 t def
5486 d
5487 :def
5488 s/\\$//
5489 t bsnl
5490 s/["\\]/\\&/g
5491 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5492 D["\1"]=" \3"/p
5493 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5494 d
5495 :bsnl
5496 s/["\\]/\\&/g
5497 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5498 D["\1"]=" \3\\\\\\n"\\/p
5499 t cont
5500 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5501 t cont
5502 d
5503 :cont
5504 n
5505 s/.\{148\}/&'"$ac_delim"'/g
5506 t clear
5507 :clear
5508 s/\\$//
5509 t bsnlc
5510 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5511 d
5512 :bsnlc
5513 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5514 b cont
5515 ' <confdefs.h | sed '
5516 s/'"$ac_delim"'/"\\\
5517 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5518
5519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5520 for (key in D) D_is_set[key] = 1
5521 FS = "\a"
5522 }
5523 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5524 line = \$ 0
5525 split(line, arg, " ")
5526 if (arg[1] == "#") {
5527 defundef = arg[2]
5528 mac1 = arg[3]
5529 } else {
5530 defundef = substr(arg[1], 2)
5531 mac1 = arg[2]
5532 }
5533 split(mac1, mac2, "(") #)
5534 macro = mac2[1]
5535 prefix = substr(line, 1, index(line, defundef) - 1)
5536 if (D_is_set[macro]) {
5537 # Preserve the white space surrounding the "#".
5538 print prefix "define", macro P[macro] D[macro]
5539 next
5540 } else {
5541 # Replace #undef with comments. This is necessary, for example,
5542 # in the case of _POSIX_SOURCE, which is predefined and required
5543 # on some systems where configure will not decide to define it.
5544 if (defundef == "undef") {
5545 print "/*", prefix defundef, macro, "*/"
5546 next
5547 }
5548 }
5549 }
5550 { print }
5551 _ACAWK
5552 _ACEOF
5553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5554 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5555 fi # test -n "$CONFIG_HEADERS"
5556
5557
5558 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
5559 shift
5560 for ac_tag
5561 do
5562 case $ac_tag in
5563 :[FHLC]) ac_mode=$ac_tag; continue;;
5564 esac
5565 case $ac_mode$ac_tag in
5566 :[FHL]*:*);;
5567 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5568 :[FH]-) ac_tag=-:-;;
5569 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5570 esac
5571 ac_save_IFS=$IFS
5572 IFS=:
5573 set x $ac_tag
5574 IFS=$ac_save_IFS
5575 shift
5576 ac_file=$1
5577 shift
5578
5579 case $ac_mode in
5580 :L) ac_source=$1;;
5581 :[FH])
5582 ac_file_inputs=
5583 for ac_f
5584 do
5585 case $ac_f in
5586 -) ac_f="$tmp/stdin";;
5587 *) # Look for the file first in the build tree, then in the source tree
5588 # (if the path is not absolute). The absolute path cannot be DOS-style,
5589 # because $ac_f cannot contain `:'.
5590 test -f "$ac_f" ||
5591 case $ac_f in
5592 [\\/$]*) false;;
5593 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5594 esac ||
5595 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5596 esac
5597 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5598 as_fn_append ac_file_inputs " '$ac_f'"
5599 done
5600
5601 # Let's still pretend it is `configure' which instantiates (i.e., don't
5602 # use $as_me), people would be surprised to read:
5603 # /* config.h. Generated by config.status. */
5604 configure_input='Generated from '`
5605 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5606 `' by configure.'
5607 if test x"$ac_file" != x-; then
5608 configure_input="$ac_file. $configure_input"
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5610 $as_echo "$as_me: creating $ac_file" >&6;}
5611 fi
5612 # Neutralize special characters interpreted by sed in replacement strings.
5613 case $configure_input in #(
5614 *\&* | *\|* | *\\* )
5615 ac_sed_conf_input=`$as_echo "$configure_input" |
5616 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5617 *) ac_sed_conf_input=$configure_input;;
5618 esac
5619
5620 case $ac_tag in
5621 *:-:* | *:-) cat >"$tmp/stdin" \
5622 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5623 esac
5624 ;;
5625 esac
5626
5627 ac_dir=`$as_dirname -- "$ac_file" ||
5628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5629 X"$ac_file" : 'X\(//\)[^/]' \| \
5630 X"$ac_file" : 'X\(//\)$' \| \
5631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5632 $as_echo X"$ac_file" |
5633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5634 s//\1/
5635 q
5636 }
5637 /^X\(\/\/\)[^/].*/{
5638 s//\1/
5639 q
5640 }
5641 /^X\(\/\/\)$/{
5642 s//\1/
5643 q
5644 }
5645 /^X\(\/\).*/{
5646 s//\1/
5647 q
5648 }
5649 s/.*/./; q'`
5650 as_dir="$ac_dir"; as_fn_mkdir_p
5651 ac_builddir=.
5652
5653 case "$ac_dir" in
5654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5655 *)
5656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5657 # A ".." for each directory in $ac_dir_suffix.
5658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5659 case $ac_top_builddir_sub in
5660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5662 esac ;;
5663 esac
5664 ac_abs_top_builddir=$ac_pwd
5665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5666 # for backward compatibility:
5667 ac_top_builddir=$ac_top_build_prefix
5668
5669 case $srcdir in
5670 .) # We are building in place.
5671 ac_srcdir=.
5672 ac_top_srcdir=$ac_top_builddir_sub
5673 ac_abs_top_srcdir=$ac_pwd ;;
5674 [\\/]* | ?:[\\/]* ) # Absolute name.
5675 ac_srcdir=$srcdir$ac_dir_suffix;
5676 ac_top_srcdir=$srcdir
5677 ac_abs_top_srcdir=$srcdir ;;
5678 *) # Relative name.
5679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5680 ac_top_srcdir=$ac_top_build_prefix$srcdir
5681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5682 esac
5683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5684
5685
5686 case $ac_mode in
5687 :F)
5688 #
5689 # CONFIG_FILE
5690 #
5691
5692 case $INSTALL in
5693 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5694 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5695 esac
5696 _ACEOF
5697
5698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5699 # If the template does not know about datarootdir, expand it.
5700 # FIXME: This hack should be removed a few years after 2.60.
5701 ac_datarootdir_hack=; ac_datarootdir_seen=
5702 ac_sed_dataroot='
5703 /datarootdir/ {
5704 p
5705 q
5706 }
5707 /@datadir@/p
5708 /@docdir@/p
5709 /@infodir@/p
5710 /@localedir@/p
5711 /@mandir@/p'
5712 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5713 *datarootdir*) ac_datarootdir_seen=yes;;
5714 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5716 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5717 _ACEOF
5718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5719 ac_datarootdir_hack='
5720 s&@datadir@&$datadir&g
5721 s&@docdir@&$docdir&g
5722 s&@infodir@&$infodir&g
5723 s&@localedir@&$localedir&g
5724 s&@mandir@&$mandir&g
5725 s&\\\${datarootdir}&$datarootdir&g' ;;
5726 esac
5727 _ACEOF
5728
5729 # Neutralize VPATH when `$srcdir' = `.'.
5730 # Shell code in configure.ac might set extrasub.
5731 # FIXME: do we really want to maintain this feature?
5732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5733 ac_sed_extra="$ac_vpsub
5734 $extrasub
5735 _ACEOF
5736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5737 :t
5738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5739 s|@configure_input@|$ac_sed_conf_input|;t t
5740 s&@top_builddir@&$ac_top_builddir_sub&;t t
5741 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5742 s&@srcdir@&$ac_srcdir&;t t
5743 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5744 s&@top_srcdir@&$ac_top_srcdir&;t t
5745 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5746 s&@builddir@&$ac_builddir&;t t
5747 s&@abs_builddir@&$ac_abs_builddir&;t t
5748 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5749 s&@INSTALL@&$ac_INSTALL&;t t
5750 $ac_datarootdir_hack
5751 "
5752 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5753 || as_fn_error "could not create $ac_file" "$LINENO" 5
5754
5755 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5756 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5757 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5759 which seems to be undefined. Please make sure it is defined." >&5
5760 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5761 which seems to be undefined. Please make sure it is defined." >&2;}
5762
5763 rm -f "$tmp/stdin"
5764 case $ac_file in
5765 -) cat "$tmp/out" && rm -f "$tmp/out";;
5766 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5767 esac \
5768 || as_fn_error "could not create $ac_file" "$LINENO" 5
5769 ;;
5770 :H)
5771 #
5772 # CONFIG_HEADER
5773 #
5774 if test x"$ac_file" != x-; then
5775 {
5776 $as_echo "/* $configure_input */" \
5777 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5778 } >"$tmp/config.h" \
5779 || as_fn_error "could not create $ac_file" "$LINENO" 5
5780 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5782 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5783 else
5784 rm -f "$ac_file"
5785 mv "$tmp/config.h" "$ac_file" \
5786 || as_fn_error "could not create $ac_file" "$LINENO" 5
5787 fi
5788 else
5789 $as_echo "/* $configure_input */" \
5790 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5791 || as_fn_error "could not create -" "$LINENO" 5
5792 fi
5793 ;;
5794 :L)
5795 #
5796 # CONFIG_LINK
5797 #
5798
5799 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
5800 :
5801 else
5802 # Prefer the file from the source tree if names are identical.
5803 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
5804 ac_source=$srcdir/$ac_source
5805 fi
5806
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
5808 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
5809
5810 if test ! -r "$ac_source"; then
5811 as_fn_error "$ac_source: file not found" "$LINENO" 5
5812 fi
5813 rm -f "$ac_file"
5814
5815 # Try a relative symlink, then a hard link, then a copy.
5816 case $srcdir in
5817 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
5818 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
5819 esac
5820 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
5821 ln "$ac_source" "$ac_file" 2>/dev/null ||
5822 cp -p "$ac_source" "$ac_file" ||
5823 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
5824 fi
5825 ;;
5826 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5827 $as_echo "$as_me: executing $ac_file commands" >&6;}
5828 ;;
5829 esac
5830
5831
5832 case $ac_file$ac_mode in
5833 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5834 if test -n "$CONFIG_FILES"; then
5835 # FIXME: We shouldn't need to set ac_file
5836 ac_file=Makefile
5837 . ${libgcc_topdir}/config-ml.in
5838 fi ;;
5839
5840 esac
5841 done # for ac_tag
5842
5843
5844 as_fn_exit 0
5845 _ACEOF
5846 ac_clean_files=$ac_clean_files_save
5847
5848 test $ac_write_fail = 0 ||
5849 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5850
5851
5852 # configure is writing to config.log, and then calls config.status.
5853 # config.status does its own redirection, appending to config.log.
5854 # Unfortunately, on DOS this fails, as config.log is still kept open
5855 # by configure, so config.status won't be able to write to it; its
5856 # output is simply discarded. So we exec the FD to /dev/null,
5857 # effectively closing config.log, so it can be properly (re)opened and
5858 # appended to by config.status. When coming back to configure, we
5859 # need to make the FD available again.
5860 if test "$no_create" != yes; then
5861 ac_cs_success=:
5862 ac_config_status_args=
5863 test "$silent" = yes &&
5864 ac_config_status_args="$ac_config_status_args --quiet"
5865 exec 5>/dev/null
5866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5867 exec 5>>config.log
5868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5869 # would make configure fail if this is the last instruction.
5870 $ac_cs_success || as_fn_exit $?
5871 fi
5872 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5874 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5875 fi
5876