OSDN Git Service

Add file left out of prior commit, and regenerate the proper configure script
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="tree.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 target
662 target_cpu
663 target_vendor
664 target_os
665 target_noncanonical
666 build_libsubdir
667 build_subdir
668 host_subdir
669 target_subdir
670 GENINSRC
671 CC
672 CFLAGS
673 LDFLAGS
674 CPPFLAGS
675 ac_ct_CC
676 EXEEXT
677 OBJEXT
678 NO_MINUS_C_MINUS_O
679 OUTPUT_OPTION
680 CPP
681 GREP
682 EGREP
683 strict_warn
684 cxx_compat_warn
685 warn_cflags
686 nocommon_flag
687 TREEBROWSER
688 valgrind_path
689 valgrind_path_defines
690 valgrind_command
691 coverage_flags
692 enable_multilib
693 enable_decimal_float
694 enable_shared
695 TARGET_SYSTEM_ROOT
696 TARGET_SYSTEM_ROOT_DEFINE
697 CROSS_SYSTEM_HEADER_DIR
698 onestep
699 SET_MAKE
700 AWK
701 LN_S
702 LN
703 RANLIB
704 ranlib_flags
705 INSTALL
706 INSTALL_PROGRAM
707 INSTALL_DATA
708 make_compare_target
709 have_mktemp_command
710 MAKEINFO
711 BUILD_INFO
712 GENERATED_MANPAGES
713 FLEX
714 BISON
715 NM
716 AR
717 COLLECT2_LIBS
718 GNAT_LIBEXC
719 LDEXP_LIB
720 TARGET_GETGROUPS_T
721 LIBICONV
722 LTLIBICONV
723 LIBICONV_DEP
724 manext
725 objext
726 gthread_flags
727 extra_modes_file
728 extra_opt_files
729 USE_NLS
730 LIBINTL
731 LIBINTL_DEP
732 INCINTL
733 XGETTEXT
734 GMSGFMT
735 POSUB
736 CATALOGS
737 DATADIRNAME
738 INSTOBJEXT
739 GENCAT
740 CATOBJEXT
741 host_cc_for_libada
742 CROSS
743 ALL
744 SYSTEM_HEADER_DIR
745 inhibit_libc
746 CC_FOR_BUILD
747 BUILD_CFLAGS
748 STMP_FIXINC
749 STMP_FIXPROTO
750 collect2
751 gcc_cv_as
752 ORIGINAL_AS_FOR_TARGET
753 gcc_cv_ld
754 ORIGINAL_LD_FOR_TARGET
755 gcc_cv_nm
756 ORIGINAL_NM_FOR_TARGET
757 gcc_cv_objdump
758 libgcc_visibility
759 GGC
760 zlibdir
761 zlibinc
762 MAINT
763 gcc_tooldir
764 dollar
765 slibdir
766 objdir
767 subdirs
768 srcdir
769 all_compilers
770 all_gtfiles
771 all_lang_makefrags
772 all_lang_makefiles
773 all_languages
774 all_selected_languages
775 build_exeext
776 build_install_headers_dir
777 build_xm_file_list
778 build_xm_include_list
779 build_xm_defines
780 check_languages
781 cpp_install_dir
782 xmake_file
783 tmake_file
784 extra_gcc_objs
785 extra_headers_list
786 extra_objs
787 extra_parts
788 extra_passes
789 extra_programs
790 float_h_file
791 gcc_config_arguments
792 gcc_gxx_include_dir
793 host_exeext
794 host_xm_file_list
795 host_xm_include_list
796 host_xm_defines
797 out_host_hook_obj
798 install
799 lang_opt_files
800 lang_specs_files
801 lang_tree_files
802 local_prefix
803 md_file
804 objc_boehm_gc
805 out_file
806 out_object_file
807 thread_file
808 tm_file_list
809 tm_include_list
810 tm_defines
811 tm_p_file_list
812 tm_p_include_list
813 xm_file_list
814 xm_include_list
815 xm_defines
816 c_target_objs
817 cxx_target_objs
818 target_cpu_default
819 GMPLIBS
820 GMPINC
821 LIBOBJS
822 LTLIBOBJS'
823 ac_subst_files='language_hooks'
824       ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 CPP
833 GMPLIBS
834 GMPINC'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887   # If the previous option needs an argument, assign it.
888   if test -n "$ac_prev"; then
889     eval $ac_prev=\$ac_option
890     ac_prev=
891     continue
892   fi
893
894   case $ac_option in
895   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896   *)    ac_optarg=yes ;;
897   esac
898
899   # Accept the important Cygnus configure options, so we can diagnose typos.
900
901   case $ac_dashdash$ac_option in
902   --)
903     ac_dashdash=yes ;;
904
905   -bindir | --bindir | --bindi | --bind | --bin | --bi)
906     ac_prev=bindir ;;
907   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908     bindir=$ac_optarg ;;
909
910   -build | --build | --buil | --bui | --bu)
911     ac_prev=build_alias ;;
912   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913     build_alias=$ac_optarg ;;
914
915   -cache-file | --cache-file | --cache-fil | --cache-fi \
916   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917     ac_prev=cache_file ;;
918   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920     cache_file=$ac_optarg ;;
921
922   --config-cache | -C)
923     cache_file=config.cache ;;
924
925   -datadir | --datadir | --datadi | --datad)
926     ac_prev=datadir ;;
927   -datadir=* | --datadir=* | --datadi=* | --datad=*)
928     datadir=$ac_optarg ;;
929
930   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931   | --dataroo | --dataro | --datar)
932     ac_prev=datarootdir ;;
933   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935     datarootdir=$ac_optarg ;;
936
937   -disable-* | --disable-*)
938     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942    { (exit 1); exit 1; }; }
943     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
944     eval enable_$ac_feature=no ;;
945
946   -docdir | --docdir | --docdi | --doc | --do)
947     ac_prev=docdir ;;
948   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949     docdir=$ac_optarg ;;
950
951   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952     ac_prev=dvidir ;;
953   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954     dvidir=$ac_optarg ;;
955
956   -enable-* | --enable-*)
957     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958     # Reject names that are not valid shell variable names.
959     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
960       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
961    { (exit 1); exit 1; }; }
962     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
963     eval enable_$ac_feature=\$ac_optarg ;;
964
965   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967   | --exec | --exe | --ex)
968     ac_prev=exec_prefix ;;
969   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971   | --exec=* | --exe=* | --ex=*)
972     exec_prefix=$ac_optarg ;;
973
974   -gas | --gas | --ga | --g)
975     # Obsolete; use --with-gas.
976     with_gas=yes ;;
977
978   -help | --help | --hel | --he | -h)
979     ac_init_help=long ;;
980   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981     ac_init_help=recursive ;;
982   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983     ac_init_help=short ;;
984
985   -host | --host | --hos | --ho)
986     ac_prev=host_alias ;;
987   -host=* | --host=* | --hos=* | --ho=*)
988     host_alias=$ac_optarg ;;
989
990   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991     ac_prev=htmldir ;;
992   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993   | --ht=*)
994     htmldir=$ac_optarg ;;
995
996   -includedir | --includedir | --includedi | --included | --include \
997   | --includ | --inclu | --incl | --inc)
998     ac_prev=includedir ;;
999   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000   | --includ=* | --inclu=* | --incl=* | --inc=*)
1001     includedir=$ac_optarg ;;
1002
1003   -infodir | --infodir | --infodi | --infod | --info | --inf)
1004     ac_prev=infodir ;;
1005   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006     infodir=$ac_optarg ;;
1007
1008   -libdir | --libdir | --libdi | --libd)
1009     ac_prev=libdir ;;
1010   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011     libdir=$ac_optarg ;;
1012
1013   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014   | --libexe | --libex | --libe)
1015     ac_prev=libexecdir ;;
1016   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017   | --libexe=* | --libex=* | --libe=*)
1018     libexecdir=$ac_optarg ;;
1019
1020   -localedir | --localedir | --localedi | --localed | --locale)
1021     ac_prev=localedir ;;
1022   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023     localedir=$ac_optarg ;;
1024
1025   -localstatedir | --localstatedir | --localstatedi | --localstated \
1026   | --localstate | --localstat | --localsta | --localst | --locals)
1027     ac_prev=localstatedir ;;
1028   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030     localstatedir=$ac_optarg ;;
1031
1032   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033     ac_prev=mandir ;;
1034   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035     mandir=$ac_optarg ;;
1036
1037   -nfp | --nfp | --nf)
1038     # Obsolete; use --without-fp.
1039     with_fp=no ;;
1040
1041   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042   | --no-cr | --no-c | -n)
1043     no_create=yes ;;
1044
1045   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047     no_recursion=yes ;;
1048
1049   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051   | --oldin | --oldi | --old | --ol | --o)
1052     ac_prev=oldincludedir ;;
1053   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056     oldincludedir=$ac_optarg ;;
1057
1058   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059     ac_prev=prefix ;;
1060   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061     prefix=$ac_optarg ;;
1062
1063   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064   | --program-pre | --program-pr | --program-p)
1065     ac_prev=program_prefix ;;
1066   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068     program_prefix=$ac_optarg ;;
1069
1070   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071   | --program-suf | --program-su | --program-s)
1072     ac_prev=program_suffix ;;
1073   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075     program_suffix=$ac_optarg ;;
1076
1077   -program-transform-name | --program-transform-name \
1078   | --program-transform-nam | --program-transform-na \
1079   | --program-transform-n | --program-transform- \
1080   | --program-transform | --program-transfor \
1081   | --program-transfo | --program-transf \
1082   | --program-trans | --program-tran \
1083   | --progr-tra | --program-tr | --program-t)
1084     ac_prev=program_transform_name ;;
1085   -program-transform-name=* | --program-transform-name=* \
1086   | --program-transform-nam=* | --program-transform-na=* \
1087   | --program-transform-n=* | --program-transform-=* \
1088   | --program-transform=* | --program-transfor=* \
1089   | --program-transfo=* | --program-transf=* \
1090   | --program-trans=* | --program-tran=* \
1091   | --progr-tra=* | --program-tr=* | --program-t=*)
1092     program_transform_name=$ac_optarg ;;
1093
1094   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095     ac_prev=pdfdir ;;
1096   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097     pdfdir=$ac_optarg ;;
1098
1099   -psdir | --psdir | --psdi | --psd | --ps)
1100     ac_prev=psdir ;;
1101   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102     psdir=$ac_optarg ;;
1103
1104   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105   | -silent | --silent | --silen | --sile | --sil)
1106     silent=yes ;;
1107
1108   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109     ac_prev=sbindir ;;
1110   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111   | --sbi=* | --sb=*)
1112     sbindir=$ac_optarg ;;
1113
1114   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116   | --sharedst | --shareds | --shared | --share | --shar \
1117   | --sha | --sh)
1118     ac_prev=sharedstatedir ;;
1119   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122   | --sha=* | --sh=*)
1123     sharedstatedir=$ac_optarg ;;
1124
1125   -site | --site | --sit)
1126     ac_prev=site ;;
1127   -site=* | --site=* | --sit=*)
1128     site=$ac_optarg ;;
1129
1130   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131     ac_prev=srcdir ;;
1132   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133     srcdir=$ac_optarg ;;
1134
1135   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136   | --syscon | --sysco | --sysc | --sys | --sy)
1137     ac_prev=sysconfdir ;;
1138   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140     sysconfdir=$ac_optarg ;;
1141
1142   -target | --target | --targe | --targ | --tar | --ta | --t)
1143     ac_prev=target_alias ;;
1144   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145     target_alias=$ac_optarg ;;
1146
1147   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148     verbose=yes ;;
1149
1150   -version | --version | --versio | --versi | --vers | -V)
1151     ac_init_version=: ;;
1152
1153   -with-* | --with-*)
1154     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157       { echo "$as_me: error: invalid package name: $ac_package" >&2
1158    { (exit 1); exit 1; }; }
1159     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1160     eval with_$ac_package=\$ac_optarg ;;
1161
1162   -without-* | --without-*)
1163     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166       { echo "$as_me: error: invalid package name: $ac_package" >&2
1167    { (exit 1); exit 1; }; }
1168     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1169     eval with_$ac_package=no ;;
1170
1171   --x)
1172     # Obsolete; use --with-x.
1173     with_x=yes ;;
1174
1175   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176   | --x-incl | --x-inc | --x-in | --x-i)
1177     ac_prev=x_includes ;;
1178   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180     x_includes=$ac_optarg ;;
1181
1182   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184     ac_prev=x_libraries ;;
1185   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187     x_libraries=$ac_optarg ;;
1188
1189   -*) { echo "$as_me: error: unrecognized option: $ac_option
1190 Try \`$0 --help' for more information." >&2
1191    { (exit 1); exit 1; }; }
1192     ;;
1193
1194   *=*)
1195     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1198       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1199    { (exit 1); exit 1; }; }
1200     eval $ac_envvar=\$ac_optarg
1201     export $ac_envvar ;;
1202
1203   *)
1204     # FIXME: should be removed in autoconf 3.0.
1205     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209     ;;
1210
1211   esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216   { echo "$as_me: error: missing argument to $ac_option" >&2
1217    { (exit 1); exit 1; }; }
1218 fi
1219
1220 # Be sure to have absolute directory names.
1221 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222                 datadir sysconfdir sharedstatedir localstatedir includedir \
1223                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224                 libdir localedir mandir
1225 do
1226   eval ac_val=\$$ac_var
1227   case $ac_val in
1228     [\\/$]* | ?:[\\/]* )  continue;;
1229     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230   esac
1231   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1232    { (exit 1); exit 1; }; }
1233 done
1234
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1241
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244   if test "x$build_alias" = x; then
1245     cross_compiling=maybe
1246     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1247     If a cross compiler is detected then cross compile mode will be used." >&2
1248   elif test "x$build_alias" != "x$host_alias"; then
1249     cross_compiling=yes
1250   fi
1251 fi
1252
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256 test "$silent" = yes && exec 6>/dev/null
1257
1258
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262   { echo "$as_me: error: Working directory cannot be determined" >&2
1263    { (exit 1); exit 1; }; }
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265   { echo "$as_me: error: pwd does not report name of working directory" >&2
1266    { (exit 1); exit 1; }; }
1267
1268
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271   ac_srcdir_defaulted=yes
1272   # Try the directory containing this script, then the parent directory.
1273   ac_confdir=`$as_dirname -- "$0" ||
1274 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275          X"$0" : 'X\(//\)[^/]' \| \
1276          X"$0" : 'X\(//\)$' \| \
1277          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1278 echo X"$0" |
1279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\/\)[^/].*/{
1284             s//\1/
1285             q
1286           }
1287           /^X\(\/\/\)$/{
1288             s//\1/
1289             q
1290           }
1291           /^X\(\/\).*/{
1292             s//\1/
1293             q
1294           }
1295           s/.*/./; q'`
1296   srcdir=$ac_confdir
1297   if test ! -r "$srcdir/$ac_unique_file"; then
1298     srcdir=..
1299   fi
1300 else
1301   ac_srcdir_defaulted=no
1302 fi
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1306    { (exit 1); exit 1; }; }
1307 fi
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1311    { (exit 1); exit 1; }; }
1312         pwd)`
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315   srcdir=.
1316 fi
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1320 case $srcdir in
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 esac
1323 for ac_var in $ac_precious_vars; do
1324   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325   eval ac_env_${ac_var}_value=\$${ac_var}
1326   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 done
1329
1330 #
1331 # Report the --help message.
1332 #
1333 if test "$ac_init_help" = "long"; then
1334   # Omit some internal or obsolete options to make the list less imposing.
1335   # This message is too long to be a string in the A/UX 3.1 sh.
1336   cat <<_ACEOF
1337 \`configure' configures this package to adapt to many kinds of systems.
1338
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE.  See below for descriptions of some of the useful variables.
1343
1344 Defaults for the options are specified in brackets.
1345
1346 Configuration:
1347   -h, --help              display this help and exit
1348       --help=short        display options specific to this package
1349       --help=recursive    display the short help of all the included packages
1350   -V, --version           display version information and exit
1351   -q, --quiet, --silent   do not print \`checking...' messages
1352       --cache-file=FILE   cache test results in FILE [disabled]
1353   -C, --config-cache      alias for \`--cache-file=config.cache'
1354   -n, --no-create         do not create output files
1355       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1356
1357 Installation directories:
1358   --prefix=PREFIX         install architecture-independent files in PREFIX
1359                           [$ac_default_prefix]
1360   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1361                           [PREFIX]
1362
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1367
1368 For better control, use the options below.
1369
1370 Fine tuning of the installation directories:
1371   --bindir=DIR           user executables [EPREFIX/bin]
1372   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1373   --libexecdir=DIR       program executables [EPREFIX/libexec]
1374   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1375   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1376   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1377   --libdir=DIR           object code libraries [EPREFIX/lib]
1378   --includedir=DIR       C header files [PREFIX/include]
1379   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1380   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1381   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1382   --infodir=DIR          info documentation [DATAROOTDIR/info]
1383   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1384   --mandir=DIR           man documentation [DATAROOTDIR/man]
1385   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1386   --htmldir=DIR          html documentation [DOCDIR]
1387   --dvidir=DIR           dvi documentation [DOCDIR]
1388   --pdfdir=DIR           pdf documentation [DOCDIR]
1389   --psdir=DIR            ps documentation [DOCDIR]
1390 _ACEOF
1391
1392   cat <<\_ACEOF
1393
1394 Program names:
1395   --program-prefix=PREFIX            prepend PREFIX to installed program names
1396   --program-suffix=SUFFIX            append SUFFIX to installed program names
1397   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1398
1399 System types:
1400   --build=BUILD     configure for building on BUILD [guessed]
1401   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1402   --target=TARGET   configure for building compilers for TARGET [HOST]
1403 _ACEOF
1404 fi
1405
1406 if test -n "$ac_init_help"; then
1407
1408   cat <<\_ACEOF
1409
1410 Optional Features:
1411   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1412   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1413   --enable-generated-files-in-srcdir
1414                           put copies of generated files in source dir
1415                           intended for creating source tarballs for users
1416                           without texinfo bison or flex.
1417   --enable-werror-always         enable -Werror always
1418   --enable-checking=LIST
1419                           enable expensive run-time checks.  With LIST,
1420                           enable only specific categories of checks.
1421                           Categories are: yes,no,all,none,release.
1422                           Flags are: assert,fold,gc,gcac,misc,
1423                           rtlflag,rtl,runtime,tree,valgrind.
1424   --enable-mapped-location   location_t is fileline integer cookie
1425   --enable-coverage=LEVEL
1426                           enable compiler's code coverage collection.
1427                           Use to measure compiler performance and locate
1428                           unused parts of the compiler. With LEVEL, specify
1429                           optimization. Values are opt, noopt,
1430                           default is noopt
1431   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1432   --enable-multilib       enable library support for multiple ABIs
1433   --enable-__cxa_atexit   enable __cxa_atexit for C++
1434   --enable-decimal-float={no,yes,bid,dpd}
1435                         enable decimal float extension to C.  Selecting 'bid'
1436                         or 'dpd' choses which decimal floating point format
1437                         to use
1438   --enable-threads        enable thread usage for target GCC
1439   --enable-threads=LIB    use LIB thread package for target GCC
1440   --enable-tls            enable or disable generation of tls code
1441                           overriding the assembler check for tls support
1442   --enable-objc-gc        enable the use of Boehm's garbage collector with
1443                           the GNU Objective-C runtime
1444   --disable-shared        don't provide a shared libgcc
1445   --enable-intermodule    build the compiler in one step
1446   --enable-languages=LIST specify which front-ends to build
1447   --disable-rpath         do not hardcode runtime library paths
1448   --enable-initfini-array       use .init_array/.fini_array sections
1449   --enable-sjlj-exceptions
1450                           arrange to use setjmp/longjmp exception handling
1451   --enable-secureplt      enable -msecure-plt by default for PowerPC
1452   --disable-win32-registry
1453                           disable lookup of installation paths in the
1454                           Registry on Windows hosts
1455   --enable-win32-registry enable registry lookup (default)
1456   --enable-win32-registry=KEY
1457                           use KEY instead of GCC version as the last portion
1458                           of the registry key
1459   --enable-maintainer-mode
1460                           enable make rules and dependencies not useful
1461                           (and sometimes confusing) to the casual installer
1462   --enable-version-specific-runtime-libs
1463                           specify that runtime libraries should be
1464                           installed in a compiler-specific directory
1465
1466 Optional Packages:
1467   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1468   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1469   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1470   --with-local-prefix=DIR specifies directory to put local include
1471   --with-gxx-include-dir=DIR
1472                           specifies directory to put g++ header files
1473   --with-cpp-install-dir=DIR
1474                           install the user visible C preprocessor in DIR
1475                           (relative to PREFIX) as well as PREFIX/bin
1476   --with-gnu-ld           arrange to work with GNU ld.
1477   --with-ld               arrange to use the specified ld (full pathname)
1478   --with-demangler-in-ld  try to use demangler in GNU ld.
1479   --with-gnu-as           arrange to work with GNU as
1480   --with-as               arrange to use the specified as (full pathname)
1481   --with-stabs            arrange to use stabs instead of host debug format
1482   --with-dwarf2           force the default debug format to be DWARF 2
1483   --with-build-sysroot=sysroot
1484                           use sysroot as the system root during the build
1485   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1486   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1487   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1488   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1489   --with-system-libunwind use installed libunwind
1490   --with-long-double-128  Use 128-bit long double by default.
1491   --with-gc={page,zone}   choose the garbage collection mechanism to use
1492                           with the compiler
1493   --with-system-zlib      use installed libz
1494   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1495   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
1496   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
1497   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
1498
1499 Some influential environment variables:
1500   CC          C compiler command
1501   CFLAGS      C compiler flags
1502   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1503               nonstandard directory <lib dir>
1504   LIBS        libraries to pass to the linker, e.g. -l<library>
1505   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1506               you have headers in a nonstandard directory <include dir>
1507   CPP         C preprocessor
1508   GMPLIBS     How to link GMP
1509   GMPINC      How to find GMP include files
1510
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519   # If there are subdirs, report their specific --help.
1520   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521     test -d "$ac_dir" || continue
1522     ac_builddir=.
1523
1524 case "$ac_dir" in
1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *)
1527   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1528   # A ".." for each directory in $ac_dir_suffix.
1529   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1530   case $ac_top_builddir_sub in
1531   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533   esac ;;
1534 esac
1535 ac_abs_top_builddir=$ac_pwd
1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537 # for backward compatibility:
1538 ac_top_builddir=$ac_top_build_prefix
1539
1540 case $srcdir in
1541   .)  # We are building in place.
1542     ac_srcdir=.
1543     ac_top_srcdir=$ac_top_builddir_sub
1544     ac_abs_top_srcdir=$ac_pwd ;;
1545   [\\/]* | ?:[\\/]* )  # Absolute name.
1546     ac_srcdir=$srcdir$ac_dir_suffix;
1547     ac_top_srcdir=$srcdir
1548     ac_abs_top_srcdir=$srcdir ;;
1549   *) # Relative name.
1550     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551     ac_top_srcdir=$ac_top_build_prefix$srcdir
1552     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553 esac
1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556     cd "$ac_dir" || { ac_status=$?; continue; }
1557     # Check for guested configure.
1558     if test -f "$ac_srcdir/configure.gnu"; then
1559       echo &&
1560       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561     elif test -f "$ac_srcdir/configure"; then
1562       echo &&
1563       $SHELL "$ac_srcdir/configure" --help=recursive
1564     else
1565       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566     fi || ac_status=$?
1567     cd "$ac_pwd" || { ac_status=$?; break; }
1568   done
1569 fi
1570
1571 test -n "$ac_init_help" && exit $ac_status
1572 if $ac_init_version; then
1573   cat <<\_ACEOF
1574 configure
1575 generated by GNU Autoconf 2.61
1576
1577 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1578 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1581 _ACEOF
1582   exit
1583 fi
1584 cat >config.log <<_ACEOF
1585 This file contains any messages produced by compilers while
1586 running configure, to aid debugging if configure makes a mistake.
1587
1588 It was created by $as_me, which was
1589 generated by GNU Autoconf 2.61.  Invocation command line was
1590
1591   $ $0 $@
1592
1593 _ACEOF
1594 exec 5>>config.log
1595 {
1596 cat <<_ASUNAME
1597 ## --------- ##
1598 ## Platform. ##
1599 ## --------- ##
1600
1601 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1602 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1603 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1604 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1605 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1606
1607 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1608 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1609
1610 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1611 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1612 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1613 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1614 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1615 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1616 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1617
1618 _ASUNAME
1619
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 for as_dir in $PATH
1622 do
1623   IFS=$as_save_IFS
1624   test -z "$as_dir" && as_dir=.
1625   echo "PATH: $as_dir"
1626 done
1627 IFS=$as_save_IFS
1628
1629 } >&5
1630
1631 cat >&5 <<_ACEOF
1632
1633
1634 ## ----------- ##
1635 ## Core tests. ##
1636 ## ----------- ##
1637
1638 _ACEOF
1639
1640
1641 # Keep a trace of the command line.
1642 # Strip out --no-create and --no-recursion so they do not pile up.
1643 # Strip out --silent because we don't want to record it for future runs.
1644 # Also quote any args containing shell meta-characters.
1645 # Make two passes to allow for proper duplicate-argument suppression.
1646 ac_configure_args=
1647 ac_configure_args0=
1648 ac_configure_args1=
1649 ac_must_keep_next=false
1650 for ac_pass in 1 2
1651 do
1652   for ac_arg
1653   do
1654     case $ac_arg in
1655     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1656     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1657     | -silent | --silent | --silen | --sile | --sil)
1658       continue ;;
1659     *\'*)
1660       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1661     esac
1662     case $ac_pass in
1663     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1664     2)
1665       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1666       if test $ac_must_keep_next = true; then
1667         ac_must_keep_next=false # Got value, back to normal.
1668       else
1669         case $ac_arg in
1670           *=* | --config-cache | -C | -disable-* | --disable-* \
1671           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1672           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1673           | -with-* | --with-* | -without-* | --without-* | --x)
1674             case "$ac_configure_args0 " in
1675               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1676             esac
1677             ;;
1678           -* ) ac_must_keep_next=true ;;
1679         esac
1680       fi
1681       ac_configure_args="$ac_configure_args '$ac_arg'"
1682       ;;
1683     esac
1684   done
1685 done
1686 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1687 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1688
1689 # When interrupted or exit'd, cleanup temporary files, and complete
1690 # config.log.  We remove comments because anyway the quotes in there
1691 # would cause problems or look ugly.
1692 # WARNING: Use '\'' to represent an apostrophe within the trap.
1693 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1694 trap 'exit_status=$?
1695   # Save into config.log some information that might help in debugging.
1696   {
1697     echo
1698
1699     cat <<\_ASBOX
1700 ## ---------------- ##
1701 ## Cache variables. ##
1702 ## ---------------- ##
1703 _ASBOX
1704     echo
1705     # The following way of writing the cache mishandles newlines in values,
1706 (
1707   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1708     eval ac_val=\$$ac_var
1709     case $ac_val in #(
1710     *${as_nl}*)
1711       case $ac_var in #(
1712       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1713 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1714       esac
1715       case $ac_var in #(
1716       _ | IFS | as_nl) ;; #(
1717       *) $as_unset $ac_var ;;
1718       esac ;;
1719     esac
1720   done
1721   (set) 2>&1 |
1722     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1723     *${as_nl}ac_space=\ *)
1724       sed -n \
1725         "s/'\''/'\''\\\\'\'''\''/g;
1726           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1727       ;; #(
1728     *)
1729       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1730       ;;
1731     esac |
1732     sort
1733 )
1734     echo
1735
1736     cat <<\_ASBOX
1737 ## ----------------- ##
1738 ## Output variables. ##
1739 ## ----------------- ##
1740 _ASBOX
1741     echo
1742     for ac_var in $ac_subst_vars
1743     do
1744       eval ac_val=\$$ac_var
1745       case $ac_val in
1746       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747       esac
1748       echo "$ac_var='\''$ac_val'\''"
1749     done | sort
1750     echo
1751
1752     if test -n "$ac_subst_files"; then
1753       cat <<\_ASBOX
1754 ## ------------------- ##
1755 ## File substitutions. ##
1756 ## ------------------- ##
1757 _ASBOX
1758       echo
1759       for ac_var in $ac_subst_files
1760       do
1761         eval ac_val=\$$ac_var
1762         case $ac_val in
1763         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764         esac
1765         echo "$ac_var='\''$ac_val'\''"
1766       done | sort
1767       echo
1768     fi
1769
1770     if test -s confdefs.h; then
1771       cat <<\_ASBOX
1772 ## ----------- ##
1773 ## confdefs.h. ##
1774 ## ----------- ##
1775 _ASBOX
1776       echo
1777       cat confdefs.h
1778       echo
1779     fi
1780     test "$ac_signal" != 0 &&
1781       echo "$as_me: caught signal $ac_signal"
1782     echo "$as_me: exit $exit_status"
1783   } >&5
1784   rm -f core *.core core.conftest.* &&
1785     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1786     exit $exit_status
1787 ' 0
1788 for ac_signal in 1 2 13 15; do
1789   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1790 done
1791 ac_signal=0
1792
1793 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1794 rm -f -r conftest* confdefs.h
1795
1796 # Predefined preprocessor variables.
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_NAME "$PACKAGE_NAME"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_STRING "$PACKAGE_STRING"
1815 _ACEOF
1816
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1820 _ACEOF
1821
1822
1823 # Let the site file select an alternate cache file if it wants to.
1824 # Prefer explicitly selected file to automatically selected ones.
1825 if test -n "$CONFIG_SITE"; then
1826   set x "$CONFIG_SITE"
1827 elif test "x$prefix" != xNONE; then
1828   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1829 else
1830   set x "$ac_default_prefix/share/config.site" \
1831         "$ac_default_prefix/etc/config.site"
1832 fi
1833 shift
1834 for ac_site_file
1835 do
1836   if test -r "$ac_site_file"; then
1837     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1838 echo "$as_me: loading site script $ac_site_file" >&6;}
1839     sed 's/^/| /' "$ac_site_file" >&5
1840     . "$ac_site_file"
1841   fi
1842 done
1843
1844 if test -r "$cache_file"; then
1845   # Some versions of bash will fail to source /dev/null (special
1846   # files actually), so we avoid doing that.
1847   if test -f "$cache_file"; then
1848     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1849 echo "$as_me: loading cache $cache_file" >&6;}
1850     case $cache_file in
1851       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1852       *)                      . "./$cache_file";;
1853     esac
1854   fi
1855 else
1856   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1857 echo "$as_me: creating cache $cache_file" >&6;}
1858   >$cache_file
1859 fi
1860
1861 # Check that the precious variables saved in the cache have kept the same
1862 # value.
1863 ac_cache_corrupted=false
1864 for ac_var in $ac_precious_vars; do
1865   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1866   eval ac_new_set=\$ac_env_${ac_var}_set
1867   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1868   eval ac_new_val=\$ac_env_${ac_var}_value
1869   case $ac_old_set,$ac_new_set in
1870     set,)
1871       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1873       ac_cache_corrupted=: ;;
1874     ,set)
1875       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1877       ac_cache_corrupted=: ;;
1878     ,);;
1879     *)
1880       if test "x$ac_old_val" != "x$ac_new_val"; then
1881         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1882 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1883         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1884 echo "$as_me:   former value:  $ac_old_val" >&2;}
1885         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1886 echo "$as_me:   current value: $ac_new_val" >&2;}
1887         ac_cache_corrupted=:
1888       fi;;
1889   esac
1890   # Pass precious variables to config.status.
1891   if test "$ac_new_set" = set; then
1892     case $ac_new_val in
1893     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1894     *) ac_arg=$ac_var=$ac_new_val ;;
1895     esac
1896     case " $ac_configure_args " in
1897       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1898       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1899     esac
1900   fi
1901 done
1902 if $ac_cache_corrupted; then
1903   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1904 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1905   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1906 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1907    { (exit 1); exit 1; }; }
1908 fi
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926 ac_ext=c
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931
1932
1933
1934 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1935
1936
1937 gcc_version=`cat $srcdir/BASE-VER`
1938
1939 # Determine the host, build, and target systems
1940 ac_aux_dir=
1941 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1942   if test -f "$ac_dir/install-sh"; then
1943     ac_aux_dir=$ac_dir
1944     ac_install_sh="$ac_aux_dir/install-sh -c"
1945     break
1946   elif test -f "$ac_dir/install.sh"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/install.sh -c"
1949     break
1950   elif test -f "$ac_dir/shtool"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/shtool install -c"
1953     break
1954   fi
1955 done
1956 if test -z "$ac_aux_dir"; then
1957   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1958 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1969
1970
1971 # Make sure we can run config.sub.
1972 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1973   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1974 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1975    { (exit 1); exit 1; }; }
1976
1977 { echo "$as_me:$LINENO: checking build system type" >&5
1978 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1979 if test "${ac_cv_build+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   ac_build_alias=$build_alias
1983 test "x$ac_build_alias" = x &&
1984   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1985 test "x$ac_build_alias" = x &&
1986   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1987 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1988    { (exit 1); exit 1; }; }
1989 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1990   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1991 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1992    { (exit 1); exit 1; }; }
1993
1994 fi
1995 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1996 echo "${ECHO_T}$ac_cv_build" >&6; }
1997 case $ac_cv_build in
1998 *-*-*) ;;
1999 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2000 echo "$as_me: error: invalid value of canonical build" >&2;}
2001    { (exit 1); exit 1; }; };;
2002 esac
2003 build=$ac_cv_build
2004 ac_save_IFS=$IFS; IFS='-'
2005 set x $ac_cv_build
2006 shift
2007 build_cpu=$1
2008 build_vendor=$2
2009 shift; shift
2010 # Remember, the first character of IFS is used to create $*,
2011 # except with old shells:
2012 build_os=$*
2013 IFS=$ac_save_IFS
2014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2015
2016
2017 { echo "$as_me:$LINENO: checking host system type" >&5
2018 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2019 if test "${ac_cv_host+set}" = set; then
2020   echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022   if test "x$host_alias" = x; then
2023   ac_cv_host=$ac_cv_build
2024 else
2025   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2026     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2027 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2028    { (exit 1); exit 1; }; }
2029 fi
2030
2031 fi
2032 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2033 echo "${ECHO_T}$ac_cv_host" >&6; }
2034 case $ac_cv_host in
2035 *-*-*) ;;
2036 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2037 echo "$as_me: error: invalid value of canonical host" >&2;}
2038    { (exit 1); exit 1; }; };;
2039 esac
2040 host=$ac_cv_host
2041 ac_save_IFS=$IFS; IFS='-'
2042 set x $ac_cv_host
2043 shift
2044 host_cpu=$1
2045 host_vendor=$2
2046 shift; shift
2047 # Remember, the first character of IFS is used to create $*,
2048 # except with old shells:
2049 host_os=$*
2050 IFS=$ac_save_IFS
2051 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2052
2053
2054 { echo "$as_me:$LINENO: checking target system type" >&5
2055 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2056 if test "${ac_cv_target+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test "x$target_alias" = x; then
2060   ac_cv_target=$ac_cv_host
2061 else
2062   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2063     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2064 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2065    { (exit 1); exit 1; }; }
2066 fi
2067
2068 fi
2069 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2070 echo "${ECHO_T}$ac_cv_target" >&6; }
2071 case $ac_cv_target in
2072 *-*-*) ;;
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2074 echo "$as_me: error: invalid value of canonical target" >&2;}
2075    { (exit 1); exit 1; }; };;
2076 esac
2077 target=$ac_cv_target
2078 ac_save_IFS=$IFS; IFS='-'
2079 set x $ac_cv_target
2080 shift
2081 target_cpu=$1
2082 target_vendor=$2
2083 shift; shift
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2086 target_os=$*
2087 IFS=$ac_save_IFS
2088 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2089
2090
2091 # The aliases save the names the user supplied, while $host etc.
2092 # will get canonicalized.
2093 test -n "$target_alias" &&
2094   test "$program_prefix$program_suffix$program_transform_name" = \
2095     NONENONEs,x,x, &&
2096   program_prefix=${target_alias}-
2097
2098 # Determine the noncanonical target name, for directory use.
2099  case ${build_alias} in
2100   "") build_noncanonical=${build} ;;
2101   *) build_noncanonical=${build_alias} ;;
2102 esac
2103
2104  case ${host_alias} in
2105   "") host_noncanonical=${build_noncanonical} ;;
2106   *) host_noncanonical=${host_alias} ;;
2107 esac
2108
2109  case ${target_alias} in
2110   "") target_noncanonical=${host_noncanonical} ;;
2111   *) target_noncanonical=${target_alias} ;;
2112 esac
2113
2114
2115
2116
2117 # Determine the target- and build-specific subdirectories
2118
2119 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2120 # have matching libraries, they should use host libraries: Makefile.tpl
2121 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2122 # However, they still use the build modules, because the corresponding
2123 # host modules (e.g. bison) are only built for the host when bootstrap
2124 # finishes. So:
2125 # - build_subdir is where we find build modules, and never changes.
2126 # - build_libsubdir is where we find build libraries, and can be overridden.
2127
2128 # Prefix 'build-' so this never conflicts with target_subdir.
2129 build_subdir="build-${build_noncanonical}"
2130
2131 # Check whether --with-build-libsubdir was given.
2132 if test "${with_build_libsubdir+set}" = set; then
2133   withval=$with_build_libsubdir; build_libsubdir="$withval"
2134 else
2135   build_libsubdir="$build_subdir"
2136 fi
2137
2138 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2139 if ( test $srcdir = . && test -d gcc ) \
2140    || test -d $srcdir/../host-${host_noncanonical}; then
2141   host_subdir="host-${host_noncanonical}"
2142 else
2143   host_subdir=.
2144 fi
2145 # No prefix.
2146 target_subdir=${target_noncanonical}
2147
2148
2149 # Set program_transform_name
2150 test "$program_prefix" != NONE &&
2151   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2152 # Use a double $ so make ignores it.
2153 test "$program_suffix" != NONE &&
2154   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2155 # Double any \ or $.  echo might interpret backslashes.
2156 # By default was `s,x,x', remove it if useless.
2157 cat <<\_ACEOF >conftest.sed
2158 s/[\\$]/&&/g;s/;s,x,x,$//
2159 _ACEOF
2160 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2161 rm -f conftest.sed
2162
2163
2164 # Check for bogus environment variables.
2165 # Test if LIBRARY_PATH contains the notation for the current directory
2166 # since this would lead to problems installing/building glibc.
2167 # LIBRARY_PATH contains the current directory if one of the following
2168 # is true:
2169 # - one of the terminals (":" and ";") is the first or last sign
2170 # - two terminals occur directly after each other
2171 # - the path contains an element with a dot in it
2172 { echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
2173 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6; }
2174 case ${LIBRARY_PATH} in
2175   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2176     library_path_setting="contains current directory"
2177     ;;
2178   *)
2179     library_path_setting="ok"
2180     ;;
2181 esac
2182 { echo "$as_me:$LINENO: result: $library_path_setting" >&5
2183 echo "${ECHO_T}$library_path_setting" >&6; }
2184 if test "$library_path_setting" != "ok"; then
2185 { { echo "$as_me:$LINENO: error:
2186 *** LIBRARY_PATH shouldn't contain the current directory when
2187 *** building gcc. Please change the environment variable
2188 *** and run configure again." >&5
2189 echo "$as_me: error:
2190 *** LIBRARY_PATH shouldn't contain the current directory when
2191 *** building gcc. Please change the environment variable
2192 *** and run configure again." >&2;}
2193    { (exit 1); exit 1; }; }
2194 fi
2195
2196 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
2197 # since this would lead to problems installing/building glibc.
2198 # GCC_EXEC_PREFIX contains the current directory if one of the following
2199 # is true:
2200 # - one of the terminals (":" and ";") is the first or last sign
2201 # - two terminals occur directly after each other
2202 # - the path contains an element with a dot in it
2203 { echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
2204 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6; }
2205 case ${GCC_EXEC_PREFIX} in
2206   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2207     gcc_exec_prefix_setting="contains current directory"
2208     ;;
2209   *)
2210     gcc_exec_prefix_setting="ok"
2211     ;;
2212 esac
2213 { echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
2214 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6; }
2215 if test "$gcc_exec_prefix_setting" != "ok"; then
2216 { { echo "$as_me:$LINENO: error:
2217 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2218 *** building gcc. Please change the environment variable
2219 *** and run configure again." >&5
2220 echo "$as_me: error:
2221 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2222 *** building gcc. Please change the environment variable
2223 *** and run configure again." >&2;}
2224    { (exit 1); exit 1; }; }
2225 fi
2226
2227 # -----------
2228 # Directories
2229 # -----------
2230
2231 # Specify the local prefix
2232 local_prefix=
2233
2234 # Check whether --with-local-prefix was given.
2235 if test "${with_local_prefix+set}" = set; then
2236   withval=$with_local_prefix; case "${withval}" in
2237 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2238 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2239    { (exit 1); exit 1; }; } ;;
2240 no)     ;;
2241 *)      local_prefix=$with_local_prefix ;;
2242 esac
2243 fi
2244
2245
2246 # Default local prefix if it is empty
2247 if test x$local_prefix = x; then
2248         local_prefix=/usr/local
2249 fi
2250
2251 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
2252 # passed in by the toplevel make and thus we'd get different behavior
2253 # depending on where we built the sources.
2254 gcc_gxx_include_dir=
2255 # Specify the g++ header file directory
2256
2257 # Check whether --with-gxx-include-dir was given.
2258 if test "${with_gxx_include_dir+set}" = set; then
2259   withval=$with_gxx_include_dir; case "${withval}" in
2260 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
2261 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
2262    { (exit 1); exit 1; }; } ;;
2263 no)     ;;
2264 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
2265 esac
2266 fi
2267
2268
2269 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
2270 if test x${gcc_gxx_include_dir} = x; then
2271   if test x${enable_version_specific_runtime_libs} = xyes; then
2272     gcc_gxx_include_dir='${libsubdir}/include/c++'
2273   else
2274     libstdcxx_incdir='include/c++/$(version)'
2275     if test x$host != x$target; then
2276        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
2277     fi
2278     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
2279   fi
2280 fi
2281
2282
2283 # Check whether --with-cpp_install_dir was given.
2284 if test "${with_cpp_install_dir+set}" = set; then
2285   withval=$with_cpp_install_dir; if test x$withval = xyes; then
2286   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
2287 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
2288    { (exit 1); exit 1; }; }
2289 elif test x$withval != xno; then
2290   cpp_install_dir=$withval
2291 fi
2292 fi
2293
2294
2295 # We would like to our source tree to be readonly.  However when releases or
2296 # pre-releases are generated, the flex/bison generated files as well as the
2297 # various formats of manuals need to be included along with the rest of the
2298 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
2299 # just that.
2300
2301 { echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
2302 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6; }
2303     # Check whether --enable-generated-files-in-srcdir was given.
2304 if test "${enable_generated_files_in_srcdir+set}" = set; then
2305   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
2306 else
2307   generated_files_in_srcdir=no
2308 fi
2309
2310
2311 { echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
2312 echo "${ECHO_T}$generated_files_in_srcdir" >&6; }
2313
2314 if test "$generated_files_in_srcdir" = "yes"; then
2315   GENINSRC=''
2316 else
2317   GENINSRC='#'
2318 fi
2319
2320
2321 # -------------------
2322 # Find default linker
2323 # -------------------
2324
2325 # With GNU ld
2326
2327 # Check whether --with-gnu-ld was given.
2328 if test "${with_gnu_ld+set}" = set; then
2329   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
2330 else
2331   gnu_ld_flag=no
2332 fi
2333
2334
2335 # With pre-defined ld
2336
2337 # Check whether --with-ld was given.
2338 if test "${with_ld+set}" = set; then
2339   withval=$with_ld; DEFAULT_LINKER="$with_ld"
2340 fi
2341
2342 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2343   if test ! -x "$DEFAULT_LINKER"; then
2344     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
2345 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
2346    { (exit 1); exit 1; }; }
2347   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2348     gnu_ld_flag=yes
2349   fi
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define DEFAULT_LINKER "$DEFAULT_LINKER"
2353 _ACEOF
2354
2355 fi
2356
2357 { echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2358 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6; }
2359 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2360   if test x"$gnu_ld_flag" = x"no"; then
2361     { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2362 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6; }
2363   else
2364     { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2365 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6; }
2366   fi
2367 else
2368   { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2370 fi
2371
2372 # With demangler in GNU ld
2373
2374 # Check whether --with-demangler-in-ld was given.
2375 if test "${with_demangler_in_ld+set}" = set; then
2376   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
2377 else
2378   demangler_in_ld=no
2379 fi
2380
2381
2382 # ----------------------
2383 # Find default assembler
2384 # ----------------------
2385
2386 # With GNU as
2387
2388 # Check whether --with-gnu-as was given.
2389 if test "${with_gnu_as+set}" = set; then
2390   withval=$with_gnu_as; gas_flag="$with_gnu_as"
2391 else
2392   gas_flag=no
2393 fi
2394
2395
2396
2397 # Check whether --with-as was given.
2398 if test "${with_as+set}" = set; then
2399   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
2400 fi
2401
2402 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2403   if test ! -x "$DEFAULT_ASSEMBLER"; then
2404     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2405 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2406    { (exit 1); exit 1; }; }
2407   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2408     gas_flag=yes
2409   fi
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2413 _ACEOF
2414
2415 fi
2416
2417 { echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2418 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6; }
2419 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2420   if test x"$gas_flag" = x"no"; then
2421     { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2422 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6; }
2423   else
2424     { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2425 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
2426   fi
2427 else
2428   { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2430 fi
2431
2432 # ---------------
2433 # Find C compiler
2434 # ---------------
2435
2436 # If a non-executable a.out is present (e.g. created by GNU as above even if
2437 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2438 # file, even when creating an executable, so an execution test fails.
2439 # Remove possible default executable files to avoid this.
2440 #
2441 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2442 # Autoconf includes it.
2443 rm -f a.out a.exe b.out
2444
2445 # Find the native compiler
2446 ac_ext=c
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 if test -n "$ac_tool_prefix"; then
2452   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_CC+set}" = set; then
2457   echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459   if test -n "$CC"; then
2460   ac_cv_prog_CC="$CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467   for ac_exec_ext in '' $ac_executable_extensions; do
2468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471     break 2
2472   fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 CC=$ac_cv_prog_CC
2480 if test -n "$CC"; then
2481   { echo "$as_me:$LINENO: result: $CC" >&5
2482 echo "${ECHO_T}$CC" >&6; }
2483 else
2484   { echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6; }
2486 fi
2487
2488
2489 fi
2490 if test -z "$ac_cv_prog_CC"; then
2491   ac_ct_CC=$CC
2492   # Extract the first word of "gcc", so it can be a program name with args.
2493 set dummy gcc; ac_word=$2
2494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2497   echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499   if test -n "$ac_ct_CC"; then
2500   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507   for ac_exec_ext in '' $ac_executable_extensions; do
2508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509     ac_cv_prog_ac_ct_CC="gcc"
2510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511     break 2
2512   fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2520 if test -n "$ac_ct_CC"; then
2521   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2522 echo "${ECHO_T}$ac_ct_CC" >&6; }
2523 else
2524   { echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6; }
2526 fi
2527
2528   if test "x$ac_ct_CC" = x; then
2529     CC=""
2530   else
2531     case $cross_compiling:$ac_tool_warned in
2532 yes:)
2533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2534 whose name does not start with the host triplet.  If you think this
2535 configuration is useful to you, please write to autoconf@gnu.org." >&5
2536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2537 whose name does not start with the host triplet.  If you think this
2538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2539 ac_tool_warned=yes ;;
2540 esac
2541     CC=$ac_ct_CC
2542   fi
2543 else
2544   CC="$ac_cv_prog_CC"
2545 fi
2546
2547 if test -z "$CC"; then
2548           if test -n "$ac_tool_prefix"; then
2549     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2550 set dummy ${ac_tool_prefix}cc; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$CC"; then
2557   ac_cv_prog_CC="$CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     ac_cv_prog_CC="${ac_tool_prefix}cc"
2567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578   { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2580 else
2581   { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2583 fi
2584
2585
2586   fi
2587 fi
2588 if test -z "$CC"; then
2589   # Extract the first word of "cc", so it can be a program name with args.
2590 set dummy cc; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594   echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596   if test -n "$CC"; then
2597   ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599   ac_prog_rejected=no
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603   IFS=$as_save_IFS
2604   test -z "$as_dir" && as_dir=.
2605   for ac_exec_ext in '' $ac_executable_extensions; do
2606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2608        ac_prog_rejected=yes
2609        continue
2610      fi
2611     ac_cv_prog_CC="cc"
2612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 if test $ac_prog_rejected = yes; then
2620   # We found a bogon in the path, so make sure we never use it.
2621   set dummy $ac_cv_prog_CC
2622   shift
2623   if test $# != 0; then
2624     # We chose a different compiler from the bogus one.
2625     # However, it has the same basename, so the bogon will be chosen
2626     # first if we set CC to just the basename; use the full file name.
2627     shift
2628     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2629   fi
2630 fi
2631 fi
2632 fi
2633 CC=$ac_cv_prog_CC
2634 if test -n "$CC"; then
2635   { echo "$as_me:$LINENO: result: $CC" >&5
2636 echo "${ECHO_T}$CC" >&6; }
2637 else
2638   { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2640 fi
2641
2642
2643 fi
2644 if test -z "$CC"; then
2645   if test -n "$ac_tool_prefix"; then
2646   for ac_prog in cl.exe
2647   do
2648     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   if test -n "$CC"; then
2656   ac_cv_prog_CC="$CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663   for ac_exec_ext in '' $ac_executable_extensions; do
2664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 CC=$ac_cv_prog_CC
2676 if test -n "$CC"; then
2677   { echo "$as_me:$LINENO: result: $CC" >&5
2678 echo "${ECHO_T}$CC" >&6; }
2679 else
2680   { echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6; }
2682 fi
2683
2684
2685     test -n "$CC" && break
2686   done
2687 fi
2688 if test -z "$CC"; then
2689   ac_ct_CC=$CC
2690   for ac_prog in cl.exe
2691 do
2692   # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   if test -n "$ac_ct_CC"; then
2700   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705   IFS=$as_save_IFS
2706   test -z "$as_dir" && as_dir=.
2707   for ac_exec_ext in '' $ac_executable_extensions; do
2708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709     ac_cv_prog_ac_ct_CC="$ac_prog"
2710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711     break 2
2712   fi
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2720 if test -n "$ac_ct_CC"; then
2721   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2722 echo "${ECHO_T}$ac_ct_CC" >&6; }
2723 else
2724   { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2726 fi
2727
2728
2729   test -n "$ac_ct_CC" && break
2730 done
2731
2732   if test "x$ac_ct_CC" = x; then
2733     CC=""
2734   else
2735     case $cross_compiling:$ac_tool_warned in
2736 yes:)
2737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2738 whose name does not start with the host triplet.  If you think this
2739 configuration is useful to you, please write to autoconf@gnu.org." >&5
2740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2741 whose name does not start with the host triplet.  If you think this
2742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2743 ac_tool_warned=yes ;;
2744 esac
2745     CC=$ac_ct_CC
2746   fi
2747 fi
2748
2749 fi
2750
2751
2752 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2753 See \`config.log' for more details." >&5
2754 echo "$as_me: error: no acceptable C compiler found in \$PATH
2755 See \`config.log' for more details." >&2;}
2756    { (exit 1); exit 1; }; }
2757
2758 # Provide some information about the compiler.
2759 echo "$as_me:$LINENO: checking for C compiler version" >&5
2760 ac_compiler=`set X $ac_compile; echo $2`
2761 { (ac_try="$ac_compiler --version >&5"
2762 case "(($ac_try" in
2763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764   *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767   (eval "$ac_compiler --version >&5") 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }
2771 { (ac_try="$ac_compiler -v >&5"
2772 case "(($ac_try" in
2773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774   *) ac_try_echo=$ac_try;;
2775 esac
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777   (eval "$ac_compiler -v >&5") 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }
2781 { (ac_try="$ac_compiler -V >&5"
2782 case "(($ac_try" in
2783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784   *) ac_try_echo=$ac_try;;
2785 esac
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787   (eval "$ac_compiler -V >&5") 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }
2791
2792 cat >conftest.$ac_ext <<_ACEOF
2793 /* confdefs.h.  */
2794 _ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h.  */
2798
2799 int
2800 main ()
2801 {
2802
2803   ;
2804   return 0;
2805 }
2806 _ACEOF
2807 ac_clean_files_save=$ac_clean_files
2808 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2809 # Try to create an executable without -o first, disregard a.out.
2810 # It will help us diagnose broken compilers, and finding out an intuition
2811 # of exeext.
2812 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2813 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2814 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2815 #
2816 # List of possible output files, starting from the most likely.
2817 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2818 # only as a last resort.  b.out is created by i960 compilers.
2819 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2820 #
2821 # The IRIX 6 linker writes into existing files which may not be
2822 # executable, retaining their permissions.  Remove them first so a
2823 # subsequent execution test works.
2824 ac_rmfiles=
2825 for ac_file in $ac_files
2826 do
2827   case $ac_file in
2828     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2829     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2830   esac
2831 done
2832 rm -f $ac_rmfiles
2833
2834 if { (ac_try="$ac_link_default"
2835 case "(($ac_try" in
2836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837   *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840   (eval "$ac_link_default") 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); }; then
2844   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2845 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2846 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2847 # so that the user can short-circuit this test for compilers unknown to
2848 # Autoconf.
2849 for ac_file in $ac_files ''
2850 do
2851   test -f "$ac_file" || continue
2852   case $ac_file in
2853     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2854         ;;
2855     [ab].out )
2856         # We found the default executable, but exeext='' is most
2857         # certainly right.
2858         break;;
2859     *.* )
2860         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2861         then :; else
2862            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2863         fi
2864         # We set ac_cv_exeext here because the later test for it is not
2865         # safe: cross compilers may not add the suffix if given an `-o'
2866         # argument, so we may need to know it at that point already.
2867         # Even if this section looks crufty: it has the advantage of
2868         # actually working.
2869         break;;
2870     * )
2871         break;;
2872   esac
2873 done
2874 test "$ac_cv_exeext" = no && ac_cv_exeext=
2875
2876 else
2877   ac_file=''
2878 fi
2879
2880 { echo "$as_me:$LINENO: result: $ac_file" >&5
2881 echo "${ECHO_T}$ac_file" >&6; }
2882 if test -z "$ac_file"; then
2883   echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: C compiler cannot create executables
2889 See \`config.log' for more details." >&2;}
2890    { (exit 77); exit 77; }; }
2891 fi
2892
2893 ac_exeext=$ac_cv_exeext
2894
2895 # Check that the compiler produces executables we can run.  If not, either
2896 # the compiler is broken, or we cross compile.
2897 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2898 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2899 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2900 # If not cross compiling, check that we can run a simple program.
2901 if test "$cross_compiling" != yes; then
2902   if { ac_try='./$ac_file'
2903   { (case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_try") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; }; then
2912     cross_compiling=no
2913   else
2914     if test "$cross_compiling" = maybe; then
2915         cross_compiling=yes
2916     else
2917         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2918 If you meant to cross compile, use \`--host'.
2919 See \`config.log' for more details." >&5
2920 echo "$as_me: error: cannot run C compiled programs.
2921 If you meant to cross compile, use \`--host'.
2922 See \`config.log' for more details." >&2;}
2923    { (exit 1); exit 1; }; }
2924     fi
2925   fi
2926 fi
2927 { echo "$as_me:$LINENO: result: yes" >&5
2928 echo "${ECHO_T}yes" >&6; }
2929
2930 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2931 ac_clean_files=$ac_clean_files_save
2932 # Check that the compiler produces executables we can run.  If not, either
2933 # the compiler is broken, or we cross compile.
2934 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2935 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2936 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2937 echo "${ECHO_T}$cross_compiling" >&6; }
2938
2939 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2940 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2941 if { (ac_try="$ac_link"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_link") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; then
2951   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2952 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2953 # work properly (i.e., refer to `conftest.exe'), while it won't with
2954 # `rm'.
2955 for ac_file in conftest.exe conftest conftest.*; do
2956   test -f "$ac_file" || continue
2957   case $ac_file in
2958     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2959     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2960           break;;
2961     * ) break;;
2962   esac
2963 done
2964 else
2965   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2968 See \`config.log' for more details." >&2;}
2969    { (exit 1); exit 1; }; }
2970 fi
2971
2972 rm -f conftest$ac_cv_exeext
2973 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2974 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2975
2976 rm -f conftest.$ac_ext
2977 EXEEXT=$ac_cv_exeext
2978 ac_exeext=$EXEEXT
2979 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2980 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2981 if test "${ac_cv_objext+set}" = set; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984   cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990
2991 int
2992 main ()
2993 {
2994
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.o conftest.obj
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006   (eval "$ac_compile") 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); }; then
3010   for ac_file in conftest.o conftest.obj conftest.*; do
3011   test -f "$ac_file" || continue;
3012   case $ac_file in
3013     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3014     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3015        break;;
3016   esac
3017 done
3018 else
3019   echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3025 See \`config.log' for more details." >&2;}
3026    { (exit 1); exit 1; }; }
3027 fi
3028
3029 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3030 fi
3031 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3032 echo "${ECHO_T}$ac_cv_objext" >&6; }
3033 OBJEXT=$ac_cv_objext
3034 ac_objext=$OBJEXT
3035 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3036 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3037 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3038   echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040   cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h.  */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h.  */
3046
3047 int
3048 main ()
3049 {
3050 #ifndef __GNUC__
3051        choke me
3052 #endif
3053
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3060 case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_compile") 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } && {
3072          test -z "$ac_c_werror_flag" ||
3073          test ! -s conftest.err
3074        } && test -s conftest.$ac_objext; then
3075   ac_compiler_gnu=yes
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080         ac_compiler_gnu=no
3081 fi
3082
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3085
3086 fi
3087 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3088 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3089 GCC=`test $ac_compiler_gnu = yes && echo yes`
3090 ac_test_CFLAGS=${CFLAGS+set}
3091 ac_save_CFLAGS=$CFLAGS
3092 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3093 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3094 if test "${ac_cv_prog_cc_g+set}" = set; then
3095   echo $ECHO_N "(cached) $ECHO_C" >&6
3096 else
3097   ac_save_c_werror_flag=$ac_c_werror_flag
3098    ac_c_werror_flag=yes
3099    ac_cv_prog_cc_g=no
3100    CFLAGS="-g"
3101    cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_compile") 2>conftest.er1
3124   ac_status=$?
3125   grep -v '^ *+' conftest.er1 >conftest.err
3126   rm -f conftest.er1
3127   cat conftest.err >&5
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } && {
3130          test -z "$ac_c_werror_flag" ||
3131          test ! -s conftest.err
3132        } && test -s conftest.$ac_objext; then
3133   ac_cv_prog_cc_g=yes
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         CFLAGS=""
3139       cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145
3146 int
3147 main ()
3148 {
3149
3150   ;
3151   return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (ac_try="$ac_compile"
3156 case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_compile") 2>conftest.er1
3162   ac_status=$?
3163   grep -v '^ *+' conftest.er1 >conftest.err
3164   rm -f conftest.er1
3165   cat conftest.err >&5
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); } && {
3168          test -z "$ac_c_werror_flag" ||
3169          test ! -s conftest.err
3170        } && test -s conftest.$ac_objext; then
3171   :
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176         ac_c_werror_flag=$ac_save_c_werror_flag
3177          CFLAGS="-g"
3178          cat >conftest.$ac_ext <<_ACEOF
3179 /* confdefs.h.  */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h.  */
3184
3185 int
3186 main ()
3187 {
3188
3189   ;
3190   return 0;
3191 }
3192 _ACEOF
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3195 case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200   (eval "$ac_compile") 2>conftest.er1
3201   ac_status=$?
3202   grep -v '^ *+' conftest.er1 >conftest.err
3203   rm -f conftest.er1
3204   cat conftest.err >&5
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); } && {
3207          test -z "$ac_c_werror_flag" ||
3208          test ! -s conftest.err
3209        } && test -s conftest.$ac_objext; then
3210   ac_cv_prog_cc_g=yes
3211 else
3212   echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215
3216 fi
3217
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 fi
3220
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 fi
3223
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225    ac_c_werror_flag=$ac_save_c_werror_flag
3226 fi
3227 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3228 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3229 if test "$ac_test_CFLAGS" = set; then
3230   CFLAGS=$ac_save_CFLAGS
3231 elif test $ac_cv_prog_cc_g = yes; then
3232   if test "$GCC" = yes; then
3233     CFLAGS="-g -O2"
3234   else
3235     CFLAGS="-g"
3236   fi
3237 else
3238   if test "$GCC" = yes; then
3239     CFLAGS="-O2"
3240   else
3241     CFLAGS=
3242   fi
3243 fi
3244 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3245 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3246 if test "${ac_cv_prog_cc_c89+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249   ac_cv_prog_cc_c89=no
3250 ac_save_CC=$CC
3251 cat >conftest.$ac_ext <<_ACEOF
3252 /* confdefs.h.  */
3253 _ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h.  */
3257 #include <stdarg.h>
3258 #include <stdio.h>
3259 #include <sys/types.h>
3260 #include <sys/stat.h>
3261 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3262 struct buf { int x; };
3263 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3264 static char *e (p, i)
3265      char **p;
3266      int i;
3267 {
3268   return p[i];
3269 }
3270 static char *f (char * (*g) (char **, int), char **p, ...)
3271 {
3272   char *s;
3273   va_list v;
3274   va_start (v,p);
3275   s = g (p, va_arg (v,int));
3276   va_end (v);
3277   return s;
3278 }
3279
3280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3281    function prototypes and stuff, but not '\xHH' hex character constants.
3282    These don't provoke an error unfortunately, instead are silently treated
3283    as 'x'.  The following induces an error, until -std is added to get
3284    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3285    array size at least.  It's necessary to write '\x00'==0 to get something
3286    that's true only with -std.  */
3287 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3288
3289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3290    inside strings and character constants.  */
3291 #define FOO(x) 'x'
3292 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3293
3294 int test (int i, double x);
3295 struct s1 {int (*f) (int a);};
3296 struct s2 {int (*f) (double a);};
3297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3298 int argc;
3299 char **argv;
3300 int
3301 main ()
3302 {
3303 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3304   ;
3305   return 0;
3306 }
3307 _ACEOF
3308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3309         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3310 do
3311   CC="$ac_save_CC $ac_arg"
3312   rm -f conftest.$ac_objext
3313 if { (ac_try="$ac_compile"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319   (eval "$ac_compile") 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } && {
3326          test -z "$ac_c_werror_flag" ||
3327          test ! -s conftest.err
3328        } && test -s conftest.$ac_objext; then
3329   ac_cv_prog_cc_c89=$ac_arg
3330 else
3331   echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334
3335 fi
3336
3337 rm -f core conftest.err conftest.$ac_objext
3338   test "x$ac_cv_prog_cc_c89" != "xno" && break
3339 done
3340 rm -f conftest.$ac_ext
3341 CC=$ac_save_CC
3342
3343 fi
3344 # AC_CACHE_VAL
3345 case "x$ac_cv_prog_cc_c89" in
3346   x)
3347     { echo "$as_me:$LINENO: result: none needed" >&5
3348 echo "${ECHO_T}none needed" >&6; } ;;
3349   xno)
3350     { echo "$as_me:$LINENO: result: unsupported" >&5
3351 echo "${ECHO_T}unsupported" >&6; } ;;
3352   *)
3353     CC="$CC $ac_cv_prog_cc_c89"
3354     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3355 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3356 esac
3357
3358
3359 ac_ext=c
3360 ac_cpp='$CPP $CPPFLAGS'
3361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364
3365 if test "x$CC" != xcc; then
3366   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3367 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3368 else
3369   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3370 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3371 fi
3372 set dummy $CC; ac_cc=`echo $2 |
3373                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3374 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h.  */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h.  */
3383
3384 int
3385 main ()
3386 {
3387
3388   ;
3389   return 0;
3390 }
3391 _ACEOF
3392 # Make sure it works both with $CC and with simple cc.
3393 # We do the test twice because some compilers refuse to overwrite an
3394 # existing .o file with -o, though they will create one.
3395 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3396 rm -f conftest2.*
3397 if { (case "(($ac_try" in
3398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399   *) ac_try_echo=$ac_try;;
3400 esac
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402   (eval "$ac_try") 2>&5
3403   ac_status=$?
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } &&
3406    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411   (eval "$ac_try") 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); };
3415 then
3416   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3417   if test "x$CC" != xcc; then
3418     # Test first that cc exists at all.
3419     if { ac_try='cc -c conftest.$ac_ext >&5'
3420   { (case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425   (eval "$ac_try") 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); }; }; then
3429       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3430       rm -f conftest2.*
3431       if { (case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436   (eval "$ac_try") 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } &&
3440          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_try") 2>&5
3446   ac_status=$?
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); };
3449       then
3450         # cc works too.
3451         :
3452       else
3453         # cc exists but doesn't like -o.
3454         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3455       fi
3456     fi
3457   fi
3458 else
3459   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3460 fi
3461 rm -f core conftest*
3462
3463 fi
3464 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3465   { echo "$as_me:$LINENO: result: yes" >&5
3466 echo "${ECHO_T}yes" >&6; }
3467 else
3468   { echo "$as_me:$LINENO: result: no" >&5
3469 echo "${ECHO_T}no" >&6; }
3470
3471 cat >>confdefs.h <<\_ACEOF
3472 #define NO_MINUS_C_MINUS_O 1
3473 _ACEOF
3474
3475 fi
3476
3477 # expand $ac_aux_dir to an absolute path
3478 am_aux_dir=`cd $ac_aux_dir && pwd`
3479
3480 # FIXME: we rely on the cache variable name because
3481 # there is no other way.
3482 set dummy $CC
3483 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3484 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3485    # Losing compiler, so override with the script.
3486    # FIXME: It is wrong to rewrite CC.
3487    # But if we don't then we get into trouble of one sort or another.
3488    # A longer-term fix would be to have automake use am__CC in this case,
3489    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3490    CC="$am_aux_dir/compile $CC"
3491 fi
3492
3493 # autoconf is lame and doesn't give us any substitution variable for this.
3494 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3495   NO_MINUS_C_MINUS_O=yes
3496 else
3497   OUTPUT_OPTION='-o $@'
3498 fi
3499
3500
3501
3502 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3503 # optimizations to be activated explicitly by the toplevel.
3504 case "$CC" in
3505   */prev-gcc/xgcc*) ;;
3506   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3507 esac
3508
3509
3510 # -------------------------
3511 # Check C compiler features
3512 # -------------------------
3513
3514 ac_ext=c
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3520 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3521 # On Suns, sometimes $CPP names a directory.
3522 if test -n "$CPP" && test -d "$CPP"; then
3523   CPP=
3524 fi
3525 if test -z "$CPP"; then
3526   if test "${ac_cv_prog_CPP+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529       # Double quotes because CPP needs to be expanded
3530     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3531     do
3532       ac_preproc_ok=false
3533 for ac_c_preproc_warn_flag in '' yes
3534 do
3535   # Use a header file that comes with gcc, so configuring glibc
3536   # with a fresh cross-compiler works.
3537   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3538   # <limits.h> exists even on freestanding compilers.
3539   # On the NeXT, cc -E runs the code through the compiler's parser,
3540   # not just through cpp. "Syntax error" is here to catch this case.
3541   cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h.  */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h.  */
3547 #ifdef __STDC__
3548 # include <limits.h>
3549 #else
3550 # include <assert.h>
3551 #endif
3552                      Syntax error
3553 _ACEOF
3554 if { (ac_try="$ac_cpp conftest.$ac_ext"
3555 case "(($ac_try" in
3556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557   *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3561   ac_status=$?
3562   grep -v '^ *+' conftest.er1 >conftest.err
3563   rm -f conftest.er1
3564   cat conftest.err >&5
3565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566   (exit $ac_status); } >/dev/null && {
3567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3568          test ! -s conftest.err
3569        }; then
3570   :
3571 else
3572   echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575   # Broken: fails on valid input.
3576 continue
3577 fi
3578
3579 rm -f conftest.err conftest.$ac_ext
3580
3581   # OK, works on sane cases.  Now check whether nonexistent headers
3582   # can be detected and how.
3583   cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589 #include <ac_nonexistent.h>
3590 _ACEOF
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 case "(($ac_try" in
3593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594   *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598   ac_status=$?
3599   grep -v '^ *+' conftest.er1 >conftest.err
3600   rm -f conftest.er1
3601   cat conftest.err >&5
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } >/dev/null && {
3604          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3605          test ! -s conftest.err
3606        }; then
3607   # Broken: success on invalid input.
3608 continue
3609 else
3610   echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613   # Passes both tests.
3614 ac_preproc_ok=:
3615 break
3616 fi
3617
3618 rm -f conftest.err conftest.$ac_ext
3619
3620 done
3621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622 rm -f conftest.err conftest.$ac_ext
3623 if $ac_preproc_ok; then
3624   break
3625 fi
3626
3627     done
3628     ac_cv_prog_CPP=$CPP
3629
3630 fi
3631   CPP=$ac_cv_prog_CPP
3632 else
3633   ac_cv_prog_CPP=$CPP
3634 fi
3635 { echo "$as_me:$LINENO: result: $CPP" >&5
3636 echo "${ECHO_T}$CPP" >&6; }
3637 ac_preproc_ok=false
3638 for ac_c_preproc_warn_flag in '' yes
3639 do
3640   # Use a header file that comes with gcc, so configuring glibc
3641   # with a fresh cross-compiler works.
3642   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643   # <limits.h> exists even on freestanding compilers.
3644   # On the NeXT, cc -E runs the code through the compiler's parser,
3645   # not just through cpp. "Syntax error" is here to catch this case.
3646   cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 #ifdef __STDC__
3653 # include <limits.h>
3654 #else
3655 # include <assert.h>
3656 #endif
3657                      Syntax error
3658 _ACEOF
3659 if { (ac_try="$ac_cpp conftest.$ac_ext"
3660 case "(($ac_try" in
3661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662   *) ac_try_echo=$ac_try;;
3663 esac
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } >/dev/null && {
3672          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3673          test ! -s conftest.err
3674        }; then
3675   :
3676 else
3677   echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680   # Broken: fails on valid input.
3681 continue
3682 fi
3683
3684 rm -f conftest.err conftest.$ac_ext
3685
3686   # OK, works on sane cases.  Now check whether nonexistent headers
3687   # can be detected and how.
3688   cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h.  */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h.  */
3694 #include <ac_nonexistent.h>
3695 _ACEOF
3696 if { (ac_try="$ac_cpp conftest.$ac_ext"
3697 case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3703   ac_status=$?
3704   grep -v '^ *+' conftest.er1 >conftest.err
3705   rm -f conftest.er1
3706   cat conftest.err >&5
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); } >/dev/null && {
3709          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3710          test ! -s conftest.err
3711        }; then
3712   # Broken: success on invalid input.
3713 continue
3714 else
3715   echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718   # Passes both tests.
3719 ac_preproc_ok=:
3720 break
3721 fi
3722
3723 rm -f conftest.err conftest.$ac_ext
3724
3725 done
3726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727 rm -f conftest.err conftest.$ac_ext
3728 if $ac_preproc_ok; then
3729   :
3730 else
3731   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3732 See \`config.log' for more details." >&5
3733 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3734 See \`config.log' for more details." >&2;}
3735    { (exit 1); exit 1; }; }
3736 fi
3737
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744
3745 { echo "$as_me:$LINENO: checking for inline" >&5
3746 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3747 if test "${ac_cv_c_inline+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   ac_cv_c_inline=no
3751 for ac_kw in inline __inline__ __inline; do
3752   cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h.  */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h.  */
3758 #ifndef __cplusplus
3759 typedef int foo_t;
3760 static $ac_kw foo_t static_foo () {return 0; }
3761 $ac_kw foo_t foo () {return 0; }
3762 #endif
3763
3764 _ACEOF
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772   (eval "$ac_compile") 2>conftest.er1
3773   ac_status=$?
3774   grep -v '^ *+' conftest.er1 >conftest.err
3775   rm -f conftest.er1
3776   cat conftest.err >&5
3777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); } && {
3779          test -z "$ac_c_werror_flag" ||
3780          test ! -s conftest.err
3781        } && test -s conftest.$ac_objext; then
3782   ac_cv_c_inline=$ac_kw
3783 else
3784   echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787
3788 fi
3789
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791   test "$ac_cv_c_inline" != no && break
3792 done
3793
3794 fi
3795 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3796 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3797
3798
3799 case $ac_cv_c_inline in
3800   inline | yes) ;;
3801   *)
3802     case $ac_cv_c_inline in
3803       no) ac_val=;;
3804       *) ac_val=$ac_cv_c_inline;;
3805     esac
3806     cat >>confdefs.h <<_ACEOF
3807 #ifndef __cplusplus
3808 #define inline $ac_val
3809 #endif
3810 _ACEOF
3811     ;;
3812 esac
3813
3814
3815 # sizeof(char) is 1 by definition.
3816
3817 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3818 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3819 if test "${ac_cv_path_GREP+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   # Extract the first word of "grep ggrep" to use in msg output
3823 if test -z "$GREP"; then
3824 set dummy grep ggrep; ac_prog_name=$2
3825 if test "${ac_cv_path_GREP+set}" = set; then
3826   echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828   ac_path_GREP_found=false
3829 # Loop through the user's path and test for each of PROGNAME-LIST
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3832 do
3833   IFS=$as_save_IFS
3834   test -z "$as_dir" && as_dir=.
3835   for ac_prog in grep ggrep; do
3836   for ac_exec_ext in '' $ac_executable_extensions; do
3837     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3838     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3839     # Check for GNU ac_path_GREP and select it if it is found.
3840   # Check for GNU $ac_path_GREP
3841 case `"$ac_path_GREP" --version 2>&1` in
3842 *GNU*)
3843   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3844 *)
3845   ac_count=0
3846   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3847   while :
3848   do
3849     cat "conftest.in" "conftest.in" >"conftest.tmp"
3850     mv "conftest.tmp" "conftest.in"
3851     cp "conftest.in" "conftest.nl"
3852     echo 'GREP' >> "conftest.nl"
3853     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3854     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3855     ac_count=`expr $ac_count + 1`
3856     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3857       # Best one so far, save it but keep looking for a better one
3858       ac_cv_path_GREP="$ac_path_GREP"
3859       ac_path_GREP_max=$ac_count
3860     fi
3861     # 10*(2^10) chars as input seems more than enough
3862     test $ac_count -gt 10 && break
3863   done
3864   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3865 esac
3866
3867
3868     $ac_path_GREP_found && break 3
3869   done
3870 done
3871
3872 done
3873 IFS=$as_save_IFS
3874
3875
3876 fi
3877
3878 GREP="$ac_cv_path_GREP"
3879 if test -z "$GREP"; then
3880   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3881 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3882    { (exit 1); exit 1; }; }
3883 fi
3884
3885 else
3886   ac_cv_path_GREP=$GREP
3887 fi
3888
3889
3890 fi
3891 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3892 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3893  GREP="$ac_cv_path_GREP"
3894
3895
3896 { echo "$as_me:$LINENO: checking for egrep" >&5
3897 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3898 if test "${ac_cv_path_EGREP+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3902    then ac_cv_path_EGREP="$GREP -E"
3903    else
3904      # Extract the first word of "egrep" to use in msg output
3905 if test -z "$EGREP"; then
3906 set dummy egrep; ac_prog_name=$2
3907 if test "${ac_cv_path_EGREP+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   ac_path_EGREP_found=false
3911 # Loop through the user's path and test for each of PROGNAME-LIST
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3914 do
3915   IFS=$as_save_IFS
3916   test -z "$as_dir" && as_dir=.
3917   for ac_prog in egrep; do
3918   for ac_exec_ext in '' $ac_executable_extensions; do
3919     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3920     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3921     # Check for GNU ac_path_EGREP and select it if it is found.
3922   # Check for GNU $ac_path_EGREP
3923 case `"$ac_path_EGREP" --version 2>&1` in
3924 *GNU*)
3925   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3926 *)
3927   ac_count=0
3928   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3929   while :
3930   do
3931     cat "conftest.in" "conftest.in" >"conftest.tmp"
3932     mv "conftest.tmp" "conftest.in"
3933     cp "conftest.in" "conftest.nl"
3934     echo 'EGREP' >> "conftest.nl"
3935     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937     ac_count=`expr $ac_count + 1`
3938     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3939       # Best one so far, save it but keep looking for a better one
3940       ac_cv_path_EGREP="$ac_path_EGREP"
3941       ac_path_EGREP_max=$ac_count
3942     fi
3943     # 10*(2^10) chars as input seems more than enough
3944     test $ac_count -gt 10 && break
3945   done
3946   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3947 esac
3948
3949
3950     $ac_path_EGREP_found && break 3
3951   done
3952 done
3953
3954 done
3955 IFS=$as_save_IFS
3956
3957
3958 fi
3959
3960 EGREP="$ac_cv_path_EGREP"
3961 if test -z "$EGREP"; then
3962   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3963 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3964    { (exit 1); exit 1; }; }
3965 fi
3966
3967 else
3968   ac_cv_path_EGREP=$EGREP
3969 fi
3970
3971
3972    fi
3973 fi
3974 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3975 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3976  EGREP="$ac_cv_path_EGREP"
3977
3978
3979 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3980 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3981 if test "${ac_cv_header_stdc+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   cat >conftest.$ac_ext <<_ACEOF
3985 /* confdefs.h.  */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h.  */
3990 #include <stdlib.h>
3991 #include <stdarg.h>
3992 #include <string.h>
3993 #include <float.h>
3994
3995 int
3996 main ()
3997 {
3998
3999   ;
4000   return 0;
4001 }
4002 _ACEOF
4003 rm -f conftest.$ac_objext
4004 if { (ac_try="$ac_compile"
4005 case "(($ac_try" in
4006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007   *) ac_try_echo=$ac_try;;
4008 esac
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010   (eval "$ac_compile") 2>conftest.er1
4011   ac_status=$?
4012   grep -v '^ *+' conftest.er1 >conftest.err
4013   rm -f conftest.er1
4014   cat conftest.err >&5
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); } && {
4017          test -z "$ac_c_werror_flag" ||
4018          test ! -s conftest.err
4019        } && test -s conftest.$ac_objext; then
4020   ac_cv_header_stdc=yes
4021 else
4022   echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025         ac_cv_header_stdc=no
4026 fi
4027
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029
4030 if test $ac_cv_header_stdc = yes; then
4031   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4032   cat >conftest.$ac_ext <<_ACEOF
4033 /* confdefs.h.  */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h.  */
4038 #include <string.h>
4039
4040 _ACEOF
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042   $EGREP "memchr" >/dev/null 2>&1; then
4043   :
4044 else
4045   ac_cv_header_stdc=no
4046 fi
4047 rm -f conftest*
4048
4049 fi
4050
4051 if test $ac_cv_header_stdc = yes; then
4052   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4053   cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h.  */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h.  */
4059 #include <stdlib.h>
4060
4061 _ACEOF
4062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4063   $EGREP "free" >/dev/null 2>&1; then
4064   :
4065 else
4066   ac_cv_header_stdc=no
4067 fi
4068 rm -f conftest*
4069
4070 fi
4071
4072 if test $ac_cv_header_stdc = yes; then
4073   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4074   if test "$cross_compiling" = yes; then
4075   :
4076 else
4077   cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h.  */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h.  */
4083 #include <ctype.h>
4084 #include <stdlib.h>
4085 #if ((' ' & 0x0FF) == 0x020)
4086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4088 #else
4089 # define ISLOWER(c) \
4090                    (('a' <= (c) && (c) <= 'i') \
4091                      || ('j' <= (c) && (c) <= 'r') \
4092                      || ('s' <= (c) && (c) <= 'z'))
4093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4094 #endif
4095
4096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4097 int
4098 main ()
4099 {
4100   int i;
4101   for (i = 0; i < 256; i++)
4102     if (XOR (islower (i), ISLOWER (i))
4103         || toupper (i) != TOUPPER (i))
4104       return 2;
4105   return 0;
4106 }
4107 _ACEOF
4108 rm -f conftest$ac_exeext
4109 if { (ac_try="$ac_link"
4110 case "(($ac_try" in
4111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112   *) ac_try_echo=$ac_try;;
4113 esac
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115   (eval "$ac_link") 2>&5
4116   ac_status=$?
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4119   { (case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_try") 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   :
4129 else
4130   echo "$as_me: program exited with status $ac_status" >&5
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 ( exit $ac_status )
4135 ac_cv_header_stdc=no
4136 fi
4137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4138 fi
4139
4140
4141 fi
4142 fi
4143 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4144 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4145 if test $ac_cv_header_stdc = yes; then
4146
4147 cat >>confdefs.h <<\_ACEOF
4148 #define STDC_HEADERS 1
4149 _ACEOF
4150
4151 fi
4152
4153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4164                   inttypes.h stdint.h unistd.h
4165 do
4166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178 $ac_includes_default
4179
4180 #include <$ac_header>
4181 _ACEOF
4182 rm -f conftest.$ac_objext
4183 if { (ac_try="$ac_compile"
4184 case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189   (eval "$ac_compile") 2>conftest.er1
4190   ac_status=$?
4191   grep -v '^ *+' conftest.er1 >conftest.err
4192   rm -f conftest.er1
4193   cat conftest.err >&5
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); } && {
4196          test -z "$ac_c_werror_flag" ||
4197          test ! -s conftest.err
4198        } && test -s conftest.$ac_objext; then
4199   eval "$as_ac_Header=yes"
4200 else
4201   echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204         eval "$as_ac_Header=no"
4205 fi
4206
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 fi
4209 ac_res=`eval echo '${'$as_ac_Header'}'`
4210                { echo "$as_me:$LINENO: result: $ac_res" >&5
4211 echo "${ECHO_T}$ac_res" >&6; }
4212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4213   cat >>confdefs.h <<_ACEOF
4214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4215 _ACEOF
4216
4217 fi
4218
4219 done
4220
4221
4222 { echo "$as_me:$LINENO: checking for void *" >&5
4223 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4224 if test "${ac_cv_type_void_p+set}" = set; then
4225   echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227   cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h.  */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h.  */
4233 $ac_includes_default
4234 typedef void * ac__type_new_;
4235 int
4236 main ()
4237 {
4238 if ((ac__type_new_ *) 0)
4239   return 0;
4240 if (sizeof (ac__type_new_))
4241   return 0;
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 rm -f conftest.$ac_objext
4247 if { (ac_try="$ac_compile"
4248 case "(($ac_try" in
4249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250   *) ac_try_echo=$ac_try;;
4251 esac
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253   (eval "$ac_compile") 2>conftest.er1
4254   ac_status=$?
4255   grep -v '^ *+' conftest.er1 >conftest.err
4256   rm -f conftest.er1
4257   cat conftest.err >&5
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); } && {
4260          test -z "$ac_c_werror_flag" ||
4261          test ! -s conftest.err
4262        } && test -s conftest.$ac_objext; then
4263   ac_cv_type_void_p=yes
4264 else
4265   echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268         ac_cv_type_void_p=no
4269 fi
4270
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 fi
4273 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4274 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4275
4276 # The cast to long int works around a bug in the HP C Compiler
4277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4279 # This bug is HP SR number 8606223364.
4280 { echo "$as_me:$LINENO: checking size of void *" >&5
4281 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4282 if test "${ac_cv_sizeof_void_p+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   if test "$cross_compiling" = yes; then
4286   # Depending upon the size, compute the lo and hi bounds.
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h.  */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h.  */
4293 $ac_includes_default
4294    typedef void * ac__type_sizeof_;
4295 int
4296 main ()
4297 {
4298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4299 test_array [0] = 0
4300
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (ac_try="$ac_compile"
4307 case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312   (eval "$ac_compile") 2>conftest.er1
4313   ac_status=$?
4314   grep -v '^ *+' conftest.er1 >conftest.err
4315   rm -f conftest.er1
4316   cat conftest.err >&5
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } && {
4319          test -z "$ac_c_werror_flag" ||
4320          test ! -s conftest.err
4321        } && test -s conftest.$ac_objext; then
4322   ac_lo=0 ac_mid=0
4323   while :; do
4324     cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 $ac_includes_default
4331    typedef void * ac__type_sizeof_;
4332 int
4333 main ()
4334 {
4335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4336 test_array [0] = 0
4337
4338   ;
4339   return 0;
4340 }
4341 _ACEOF
4342 rm -f conftest.$ac_objext
4343 if { (ac_try="$ac_compile"
4344 case "(($ac_try" in
4345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346   *) ac_try_echo=$ac_try;;
4347 esac
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349   (eval "$ac_compile") 2>conftest.er1
4350   ac_status=$?
4351   grep -v '^ *+' conftest.er1 >conftest.err
4352   rm -f conftest.er1
4353   cat conftest.err >&5
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); } && {
4356          test -z "$ac_c_werror_flag" ||
4357          test ! -s conftest.err
4358        } && test -s conftest.$ac_objext; then
4359   ac_hi=$ac_mid; break
4360 else
4361   echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364         ac_lo=`expr $ac_mid + 1`
4365                         if test $ac_lo -le $ac_mid; then
4366                           ac_lo= ac_hi=
4367                           break
4368                         fi
4369                         ac_mid=`expr 2 '*' $ac_mid + 1`
4370 fi
4371
4372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373   done
4374 else
4375   echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378         cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 $ac_includes_default
4385    typedef void * ac__type_sizeof_;
4386 int
4387 main ()
4388 {
4389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4390 test_array [0] = 0
4391
4392   ;
4393   return 0;
4394 }
4395 _ACEOF
4396 rm -f conftest.$ac_objext
4397 if { (ac_try="$ac_compile"
4398 case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403   (eval "$ac_compile") 2>conftest.er1
4404   ac_status=$?
4405   grep -v '^ *+' conftest.er1 >conftest.err
4406   rm -f conftest.er1
4407   cat conftest.err >&5
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); } && {
4410          test -z "$ac_c_werror_flag" ||
4411          test ! -s conftest.err
4412        } && test -s conftest.$ac_objext; then
4413   ac_hi=-1 ac_mid=-1
4414   while :; do
4415     cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h.  */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h.  */
4421 $ac_includes_default
4422    typedef void * ac__type_sizeof_;
4423 int
4424 main ()
4425 {
4426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4427 test_array [0] = 0
4428
4429   ;
4430   return 0;
4431 }
4432 _ACEOF
4433 rm -f conftest.$ac_objext
4434 if { (ac_try="$ac_compile"
4435 case "(($ac_try" in
4436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437   *) ac_try_echo=$ac_try;;
4438 esac
4439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440   (eval "$ac_compile") 2>conftest.er1
4441   ac_status=$?
4442   grep -v '^ *+' conftest.er1 >conftest.err
4443   rm -f conftest.er1
4444   cat conftest.err >&5
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); } && {
4447          test -z "$ac_c_werror_flag" ||
4448          test ! -s conftest.err
4449        } && test -s conftest.$ac_objext; then
4450   ac_lo=$ac_mid; break
4451 else
4452   echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4454
4455         ac_hi=`expr '(' $ac_mid ')' - 1`
4456                         if test $ac_mid -le $ac_hi; then
4457                           ac_lo= ac_hi=
4458                           break
4459                         fi
4460                         ac_mid=`expr 2 '*' $ac_mid`
4461 fi
4462
4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464   done
4465 else
4466   echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469         ac_lo= ac_hi=
4470 fi
4471
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 fi
4474
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 # Binary search between lo and hi bounds.
4477 while test "x$ac_lo" != "x$ac_hi"; do
4478   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4479   cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485 $ac_includes_default
4486    typedef void * ac__type_sizeof_;
4487 int
4488 main ()
4489 {
4490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4491 test_array [0] = 0
4492
4493   ;
4494   return 0;
4495 }
4496 _ACEOF
4497 rm -f conftest.$ac_objext
4498 if { (ac_try="$ac_compile"
4499 case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504   (eval "$ac_compile") 2>conftest.er1
4505   ac_status=$?
4506   grep -v '^ *+' conftest.er1 >conftest.err
4507   rm -f conftest.er1
4508   cat conftest.err >&5
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } && {
4511          test -z "$ac_c_werror_flag" ||
4512          test ! -s conftest.err
4513        } && test -s conftest.$ac_objext; then
4514   ac_hi=$ac_mid
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519         ac_lo=`expr '(' $ac_mid ')' + 1`
4520 fi
4521
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 done
4524 case $ac_lo in
4525 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4526 '') if test "$ac_cv_type_void_p" = yes; then
4527      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4528 See \`config.log' for more details." >&5
4529 echo "$as_me: error: cannot compute sizeof (void *)
4530 See \`config.log' for more details." >&2;}
4531    { (exit 77); exit 77; }; }
4532    else
4533      ac_cv_sizeof_void_p=0
4534    fi ;;
4535 esac
4536 else
4537   cat >conftest.$ac_ext <<_ACEOF
4538 /* confdefs.h.  */
4539 _ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h.  */
4543 $ac_includes_default
4544    typedef void * ac__type_sizeof_;
4545 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4546 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4547 #include <stdio.h>
4548 #include <stdlib.h>
4549 int
4550 main ()
4551 {
4552
4553   FILE *f = fopen ("conftest.val", "w");
4554   if (! f)
4555     return 1;
4556   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4557     {
4558       long int i = longval ();
4559       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4560         return 1;
4561       fprintf (f, "%ld\n", i);
4562     }
4563   else
4564     {
4565       unsigned long int i = ulongval ();
4566       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4567         return 1;
4568       fprintf (f, "%lu\n", i);
4569     }
4570   return ferror (f) || fclose (f) != 0;
4571
4572   ;
4573   return 0;
4574 }
4575 _ACEOF
4576 rm -f conftest$ac_exeext
4577 if { (ac_try="$ac_link"
4578 case "(($ac_try" in
4579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580   *) ac_try_echo=$ac_try;;
4581 esac
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583   (eval "$ac_link") 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4587   { (case "(($ac_try" in
4588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589   *) ac_try_echo=$ac_try;;
4590 esac
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592   (eval "$ac_try") 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }; }; then
4596   ac_cv_sizeof_void_p=`cat conftest.val`
4597 else
4598   echo "$as_me: program exited with status $ac_status" >&5
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 ( exit $ac_status )
4603 if test "$ac_cv_type_void_p" = yes; then
4604      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4605 See \`config.log' for more details." >&5
4606 echo "$as_me: error: cannot compute sizeof (void *)
4607 See \`config.log' for more details." >&2;}
4608    { (exit 77); exit 77; }; }
4609    else
4610      ac_cv_sizeof_void_p=0
4611    fi
4612 fi
4613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4614 fi
4615 rm -f conftest.val
4616 fi
4617 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4618 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4619
4620
4621
4622 cat >>confdefs.h <<_ACEOF
4623 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4624 _ACEOF
4625
4626
4627 { echo "$as_me:$LINENO: checking for short" >&5
4628 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4629 if test "${ac_cv_type_short+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638 $ac_includes_default
4639 typedef short ac__type_new_;
4640 int
4641 main ()
4642 {
4643 if ((ac__type_new_ *) 0)
4644   return 0;
4645 if (sizeof (ac__type_new_))
4646   return 0;
4647   ;
4648   return 0;
4649 }
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (ac_try="$ac_compile"
4653 case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658   (eval "$ac_compile") 2>conftest.er1
4659   ac_status=$?
4660   grep -v '^ *+' conftest.er1 >conftest.err
4661   rm -f conftest.er1
4662   cat conftest.err >&5
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } && {
4665          test -z "$ac_c_werror_flag" ||
4666          test ! -s conftest.err
4667        } && test -s conftest.$ac_objext; then
4668   ac_cv_type_short=yes
4669 else
4670   echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673         ac_cv_type_short=no
4674 fi
4675
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 fi
4678 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4679 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4680
4681 # The cast to long int works around a bug in the HP C Compiler
4682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4684 # This bug is HP SR number 8606223364.
4685 { echo "$as_me:$LINENO: checking size of short" >&5
4686 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4687 if test "${ac_cv_sizeof_short+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   if test "$cross_compiling" = yes; then
4691   # Depending upon the size, compute the lo and hi bounds.
4692 cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h.  */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h.  */
4698 $ac_includes_default
4699    typedef short ac__type_sizeof_;
4700 int
4701 main ()
4702 {
4703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4704 test_array [0] = 0
4705
4706   ;
4707   return 0;
4708 }
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (ac_try="$ac_compile"
4712 case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717   (eval "$ac_compile") 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } && {
4724          test -z "$ac_c_werror_flag" ||
4725          test ! -s conftest.err
4726        } && test -s conftest.$ac_objext; then
4727   ac_lo=0 ac_mid=0
4728   while :; do
4729     cat >conftest.$ac_ext <<_ACEOF
4730 /* confdefs.h.  */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h.  */
4735 $ac_includes_default
4736    typedef short ac__type_sizeof_;
4737 int
4738 main ()
4739 {
4740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4741 test_array [0] = 0
4742
4743   ;
4744   return 0;
4745 }
4746 _ACEOF
4747 rm -f conftest.$ac_objext
4748 if { (ac_try="$ac_compile"
4749 case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754   (eval "$ac_compile") 2>conftest.er1
4755   ac_status=$?
4756   grep -v '^ *+' conftest.er1 >conftest.err
4757   rm -f conftest.er1
4758   cat conftest.err >&5
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } && {
4761          test -z "$ac_c_werror_flag" ||
4762          test ! -s conftest.err
4763        } && test -s conftest.$ac_objext; then
4764   ac_hi=$ac_mid; break
4765 else
4766   echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769         ac_lo=`expr $ac_mid + 1`
4770                         if test $ac_lo -le $ac_mid; then
4771                           ac_lo= ac_hi=
4772                           break
4773                         fi
4774                         ac_mid=`expr 2 '*' $ac_mid + 1`
4775 fi
4776
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778   done
4779 else
4780   echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4782
4783         cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h.  */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h.  */
4789 $ac_includes_default
4790    typedef short ac__type_sizeof_;
4791 int
4792 main ()
4793 {
4794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4795 test_array [0] = 0
4796
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 rm -f conftest.$ac_objext
4802 if { (ac_try="$ac_compile"
4803 case "(($ac_try" in
4804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805   *) ac_try_echo=$ac_try;;
4806 esac
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808   (eval "$ac_compile") 2>conftest.er1
4809   ac_status=$?
4810   grep -v '^ *+' conftest.er1 >conftest.err
4811   rm -f conftest.er1
4812   cat conftest.err >&5
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); } && {
4815          test -z "$ac_c_werror_flag" ||
4816          test ! -s conftest.err
4817        } && test -s conftest.$ac_objext; then
4818   ac_hi=-1 ac_mid=-1
4819   while :; do
4820     cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h.  */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h.  */
4826 $ac_includes_default
4827    typedef short ac__type_sizeof_;
4828 int
4829 main ()
4830 {
4831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4832 test_array [0] = 0
4833
4834   ;
4835   return 0;
4836 }
4837 _ACEOF
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4840 case "(($ac_try" in
4841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842   *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845   (eval "$ac_compile") 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } && {
4852          test -z "$ac_c_werror_flag" ||
4853          test ! -s conftest.err
4854        } && test -s conftest.$ac_objext; then
4855   ac_lo=$ac_mid; break
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860         ac_hi=`expr '(' $ac_mid ')' - 1`
4861                         if test $ac_mid -le $ac_hi; then
4862                           ac_lo= ac_hi=
4863                           break
4864                         fi
4865                         ac_mid=`expr 2 '*' $ac_mid`
4866 fi
4867
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869   done
4870 else
4871   echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874         ac_lo= ac_hi=
4875 fi
4876
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 fi
4879
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 # Binary search between lo and hi bounds.
4882 while test "x$ac_lo" != "x$ac_hi"; do
4883   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4884   cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h.  */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h.  */
4890 $ac_includes_default
4891    typedef short ac__type_sizeof_;
4892 int
4893 main ()
4894 {
4895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4896 test_array [0] = 0
4897
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (ac_try="$ac_compile"
4904 case "(($ac_try" in
4905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906   *) ac_try_echo=$ac_try;;
4907 esac
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909   (eval "$ac_compile") 2>conftest.er1
4910   ac_status=$?
4911   grep -v '^ *+' conftest.er1 >conftest.err
4912   rm -f conftest.er1
4913   cat conftest.err >&5
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } && {
4916          test -z "$ac_c_werror_flag" ||
4917          test ! -s conftest.err
4918        } && test -s conftest.$ac_objext; then
4919   ac_hi=$ac_mid
4920 else
4921   echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924         ac_lo=`expr '(' $ac_mid ')' + 1`
4925 fi
4926
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 done
4929 case $ac_lo in
4930 ?*) ac_cv_sizeof_short=$ac_lo;;
4931 '') if test "$ac_cv_type_short" = yes; then
4932      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4933 See \`config.log' for more details." >&5
4934 echo "$as_me: error: cannot compute sizeof (short)
4935 See \`config.log' for more details." >&2;}
4936    { (exit 77); exit 77; }; }
4937    else
4938      ac_cv_sizeof_short=0
4939    fi ;;
4940 esac
4941 else
4942   cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948 $ac_includes_default
4949    typedef short ac__type_sizeof_;
4950 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4951 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4952 #include <stdio.h>
4953 #include <stdlib.h>
4954 int
4955 main ()
4956 {
4957
4958   FILE *f = fopen ("conftest.val", "w");
4959   if (! f)
4960     return 1;
4961   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4962     {
4963       long int i = longval ();
4964       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4965         return 1;
4966       fprintf (f, "%ld\n", i);
4967     }
4968   else
4969     {
4970       unsigned long int i = ulongval ();
4971       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4972         return 1;
4973       fprintf (f, "%lu\n", i);
4974     }
4975   return ferror (f) || fclose (f) != 0;
4976
4977   ;
4978   return 0;
4979 }
4980 _ACEOF
4981 rm -f conftest$ac_exeext
4982 if { (ac_try="$ac_link"
4983 case "(($ac_try" in
4984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985   *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988   (eval "$ac_link") 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4992   { (case "(($ac_try" in
4993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994   *) ac_try_echo=$ac_try;;
4995 esac
4996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997   (eval "$ac_try") 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; }; then
5001   ac_cv_sizeof_short=`cat conftest.val`
5002 else
5003   echo "$as_me: program exited with status $ac_status" >&5
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 ( exit $ac_status )
5008 if test "$ac_cv_type_short" = yes; then
5009      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5010 See \`config.log' for more details." >&5
5011 echo "$as_me: error: cannot compute sizeof (short)
5012 See \`config.log' for more details." >&2;}
5013    { (exit 77); exit 77; }; }
5014    else
5015      ac_cv_sizeof_short=0
5016    fi
5017 fi
5018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 rm -f conftest.val
5021 fi
5022 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5023 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5024
5025
5026
5027 cat >>confdefs.h <<_ACEOF
5028 #define SIZEOF_SHORT $ac_cv_sizeof_short
5029 _ACEOF
5030
5031
5032 { echo "$as_me:$LINENO: checking for int" >&5
5033 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5034 if test "${ac_cv_type_int+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h.  */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h.  */
5043 $ac_includes_default
5044 typedef int ac__type_new_;
5045 int
5046 main ()
5047 {
5048 if ((ac__type_new_ *) 0)
5049   return 0;
5050 if (sizeof (ac__type_new_))
5051   return 0;
5052   ;
5053   return 0;
5054 }
5055 _ACEOF
5056 rm -f conftest.$ac_objext
5057 if { (ac_try="$ac_compile"
5058 case "(($ac_try" in
5059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060   *) ac_try_echo=$ac_try;;
5061 esac
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063   (eval "$ac_compile") 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } && {
5070          test -z "$ac_c_werror_flag" ||
5071          test ! -s conftest.err
5072        } && test -s conftest.$ac_objext; then
5073   ac_cv_type_int=yes
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078         ac_cv_type_int=no
5079 fi
5080
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 fi
5083 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5084 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5085
5086 # The cast to long int works around a bug in the HP C Compiler
5087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5089 # This bug is HP SR number 8606223364.
5090 { echo "$as_me:$LINENO: checking size of int" >&5
5091 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5092 if test "${ac_cv_sizeof_int+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   if test "$cross_compiling" = yes; then
5096   # Depending upon the size, compute the lo and hi bounds.
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h.  */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h.  */
5103 $ac_includes_default
5104    typedef int ac__type_sizeof_;
5105 int
5106 main ()
5107 {
5108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5109 test_array [0] = 0
5110
5111   ;
5112   return 0;
5113 }
5114 _ACEOF
5115 rm -f conftest.$ac_objext
5116 if { (ac_try="$ac_compile"
5117 case "(($ac_try" in
5118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119   *) ac_try_echo=$ac_try;;
5120 esac
5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122   (eval "$ac_compile") 2>conftest.er1
5123   ac_status=$?
5124   grep -v '^ *+' conftest.er1 >conftest.err
5125   rm -f conftest.er1
5126   cat conftest.err >&5
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); } && {
5129          test -z "$ac_c_werror_flag" ||
5130          test ! -s conftest.err
5131        } && test -s conftest.$ac_objext; then
5132   ac_lo=0 ac_mid=0
5133   while :; do
5134     cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140 $ac_includes_default
5141    typedef int ac__type_sizeof_;
5142 int
5143 main ()
5144 {
5145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5146 test_array [0] = 0
5147
5148   ;
5149   return 0;
5150 }
5151 _ACEOF
5152 rm -f conftest.$ac_objext
5153 if { (ac_try="$ac_compile"
5154 case "(($ac_try" in
5155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156   *) ac_try_echo=$ac_try;;
5157 esac
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159   (eval "$ac_compile") 2>conftest.er1
5160   ac_status=$?
5161   grep -v '^ *+' conftest.er1 >conftest.err
5162   rm -f conftest.er1
5163   cat conftest.err >&5
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); } && {
5166          test -z "$ac_c_werror_flag" ||
5167          test ! -s conftest.err
5168        } && test -s conftest.$ac_objext; then
5169   ac_hi=$ac_mid; break
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174         ac_lo=`expr $ac_mid + 1`
5175                         if test $ac_lo -le $ac_mid; then
5176                           ac_lo= ac_hi=
5177                           break
5178                         fi
5179                         ac_mid=`expr 2 '*' $ac_mid + 1`
5180 fi
5181
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183   done
5184 else
5185   echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5187
5188         cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h.  */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h.  */
5194 $ac_includes_default
5195    typedef int ac__type_sizeof_;
5196 int
5197 main ()
5198 {
5199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5200 test_array [0] = 0
5201
5202   ;
5203   return 0;
5204 }
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (ac_try="$ac_compile"
5208 case "(($ac_try" in
5209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210   *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213   (eval "$ac_compile") 2>conftest.er1
5214   ac_status=$?
5215   grep -v '^ *+' conftest.er1 >conftest.err
5216   rm -f conftest.er1
5217   cat conftest.err >&5
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } && {
5220          test -z "$ac_c_werror_flag" ||
5221          test ! -s conftest.err
5222        } && test -s conftest.$ac_objext; then
5223   ac_hi=-1 ac_mid=-1
5224   while :; do
5225     cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h.  */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h.  */
5231 $ac_includes_default
5232    typedef int ac__type_sizeof_;
5233 int
5234 main ()
5235 {
5236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5237 test_array [0] = 0
5238
5239   ;
5240   return 0;
5241 }
5242 _ACEOF
5243 rm -f conftest.$ac_objext
5244 if { (ac_try="$ac_compile"
5245 case "(($ac_try" in
5246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247   *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250   (eval "$ac_compile") 2>conftest.er1
5251   ac_status=$?
5252   grep -v '^ *+' conftest.er1 >conftest.err
5253   rm -f conftest.er1
5254   cat conftest.err >&5
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); } && {
5257          test -z "$ac_c_werror_flag" ||
5258          test ! -s conftest.err
5259        } && test -s conftest.$ac_objext; then
5260   ac_lo=$ac_mid; break
5261 else
5262   echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265         ac_hi=`expr '(' $ac_mid ')' - 1`
5266                         if test $ac_mid -le $ac_hi; then
5267                           ac_lo= ac_hi=
5268                           break
5269                         fi
5270                         ac_mid=`expr 2 '*' $ac_mid`
5271 fi
5272
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274   done
5275 else
5276   echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279         ac_lo= ac_hi=
5280 fi
5281
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 fi
5284
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 # Binary search between lo and hi bounds.
5287 while test "x$ac_lo" != "x$ac_hi"; do
5288   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5289   cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h.  */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h.  */
5295 $ac_includes_default
5296    typedef int ac__type_sizeof_;
5297 int
5298 main ()
5299 {
5300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5301 test_array [0] = 0
5302
5303   ;
5304   return 0;
5305 }
5306 _ACEOF
5307 rm -f conftest.$ac_objext
5308 if { (ac_try="$ac_compile"
5309 case "(($ac_try" in
5310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311   *) ac_try_echo=$ac_try;;
5312 esac
5313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314   (eval "$ac_compile") 2>conftest.er1
5315   ac_status=$?
5316   grep -v '^ *+' conftest.er1 >conftest.err
5317   rm -f conftest.er1
5318   cat conftest.err >&5
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); } && {
5321          test -z "$ac_c_werror_flag" ||
5322          test ! -s conftest.err
5323        } && test -s conftest.$ac_objext; then
5324   ac_hi=$ac_mid
5325 else
5326   echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5328
5329         ac_lo=`expr '(' $ac_mid ')' + 1`
5330 fi
5331
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 done
5334 case $ac_lo in
5335 ?*) ac_cv_sizeof_int=$ac_lo;;
5336 '') if test "$ac_cv_type_int" = yes; then
5337      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5338 See \`config.log' for more details." >&5
5339 echo "$as_me: error: cannot compute sizeof (int)
5340 See \`config.log' for more details." >&2;}
5341    { (exit 77); exit 77; }; }
5342    else
5343      ac_cv_sizeof_int=0
5344    fi ;;
5345 esac
5346 else
5347   cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h.  */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h.  */
5353 $ac_includes_default
5354    typedef int ac__type_sizeof_;
5355 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5356 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5357 #include <stdio.h>
5358 #include <stdlib.h>
5359 int
5360 main ()
5361 {
5362
5363   FILE *f = fopen ("conftest.val", "w");
5364   if (! f)
5365     return 1;
5366   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5367     {
5368       long int i = longval ();
5369       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5370         return 1;
5371       fprintf (f, "%ld\n", i);
5372     }
5373   else
5374     {
5375       unsigned long int i = ulongval ();
5376       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5377         return 1;
5378       fprintf (f, "%lu\n", i);
5379     }
5380   return ferror (f) || fclose (f) != 0;
5381
5382   ;
5383   return 0;
5384 }
5385 _ACEOF
5386 rm -f conftest$ac_exeext
5387 if { (ac_try="$ac_link"
5388 case "(($ac_try" in
5389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390   *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393   (eval "$ac_link") 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5397   { (case "(($ac_try" in
5398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399   *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402   (eval "$ac_try") 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; }; then
5406   ac_cv_sizeof_int=`cat conftest.val`
5407 else
5408   echo "$as_me: program exited with status $ac_status" >&5
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5411
5412 ( exit $ac_status )
5413 if test "$ac_cv_type_int" = yes; then
5414      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5415 See \`config.log' for more details." >&5
5416 echo "$as_me: error: cannot compute sizeof (int)
5417 See \`config.log' for more details." >&2;}
5418    { (exit 77); exit 77; }; }
5419    else
5420      ac_cv_sizeof_int=0
5421    fi
5422 fi
5423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5424 fi
5425 rm -f conftest.val
5426 fi
5427 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5428 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5429
5430
5431
5432 cat >>confdefs.h <<_ACEOF
5433 #define SIZEOF_INT $ac_cv_sizeof_int
5434 _ACEOF
5435
5436
5437 { echo "$as_me:$LINENO: checking for long" >&5
5438 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5439 if test "${ac_cv_type_long+set}" = set; then
5440   echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442   cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h.  */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h.  */
5448 $ac_includes_default
5449 typedef long ac__type_new_;
5450 int
5451 main ()
5452 {
5453 if ((ac__type_new_ *) 0)
5454   return 0;
5455 if (sizeof (ac__type_new_))
5456   return 0;
5457   ;
5458   return 0;
5459 }
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5463 case "(($ac_try" in
5464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465   *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468   (eval "$ac_compile") 2>conftest.er1
5469   ac_status=$?
5470   grep -v '^ *+' conftest.er1 >conftest.err
5471   rm -f conftest.er1
5472   cat conftest.err >&5
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); } && {
5475          test -z "$ac_c_werror_flag" ||
5476          test ! -s conftest.err
5477        } && test -s conftest.$ac_objext; then
5478   ac_cv_type_long=yes
5479 else
5480   echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483         ac_cv_type_long=no
5484 fi
5485
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 fi
5488 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5489 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5490
5491 # The cast to long int works around a bug in the HP C Compiler
5492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5494 # This bug is HP SR number 8606223364.
5495 { echo "$as_me:$LINENO: checking size of long" >&5
5496 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5497 if test "${ac_cv_sizeof_long+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   if test "$cross_compiling" = yes; then
5501   # Depending upon the size, compute the lo and hi bounds.
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h.  */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h.  */
5508 $ac_includes_default
5509    typedef long ac__type_sizeof_;
5510 int
5511 main ()
5512 {
5513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5514 test_array [0] = 0
5515
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5522 case "(($ac_try" in
5523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524   *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527   (eval "$ac_compile") 2>conftest.er1
5528   ac_status=$?
5529   grep -v '^ *+' conftest.er1 >conftest.err
5530   rm -f conftest.er1
5531   cat conftest.err >&5
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); } && {
5534          test -z "$ac_c_werror_flag" ||
5535          test ! -s conftest.err
5536        } && test -s conftest.$ac_objext; then
5537   ac_lo=0 ac_mid=0
5538   while :; do
5539     cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h.  */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h.  */
5545 $ac_includes_default
5546    typedef long ac__type_sizeof_;
5547 int
5548 main ()
5549 {
5550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5551 test_array [0] = 0
5552
5553   ;
5554   return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5559 case "(($ac_try" in
5560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561   *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564   (eval "$ac_compile") 2>conftest.er1
5565   ac_status=$?
5566   grep -v '^ *+' conftest.er1 >conftest.err
5567   rm -f conftest.er1
5568   cat conftest.err >&5
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } && {
5571          test -z "$ac_c_werror_flag" ||
5572          test ! -s conftest.err
5573        } && test -s conftest.$ac_objext; then
5574   ac_hi=$ac_mid; break
5575 else
5576   echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579         ac_lo=`expr $ac_mid + 1`
5580                         if test $ac_lo -le $ac_mid; then
5581                           ac_lo= ac_hi=
5582                           break
5583                         fi
5584                         ac_mid=`expr 2 '*' $ac_mid + 1`
5585 fi
5586
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588   done
5589 else
5590   echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593         cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h.  */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h.  */
5599 $ac_includes_default
5600    typedef long ac__type_sizeof_;
5601 int
5602 main ()
5603 {
5604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5605 test_array [0] = 0
5606
5607   ;
5608   return 0;
5609 }
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5613 case "(($ac_try" in
5614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615   *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618   (eval "$ac_compile") 2>conftest.er1
5619   ac_status=$?
5620   grep -v '^ *+' conftest.er1 >conftest.err
5621   rm -f conftest.er1
5622   cat conftest.err >&5
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); } && {
5625          test -z "$ac_c_werror_flag" ||
5626          test ! -s conftest.err
5627        } && test -s conftest.$ac_objext; then
5628   ac_hi=-1 ac_mid=-1
5629   while :; do
5630     cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h.  */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h.  */
5636 $ac_includes_default
5637    typedef long ac__type_sizeof_;
5638 int
5639 main ()
5640 {
5641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5642 test_array [0] = 0
5643
5644   ;
5645   return 0;
5646 }
5647 _ACEOF
5648 rm -f conftest.$ac_objext
5649 if { (ac_try="$ac_compile"
5650 case "(($ac_try" in
5651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652   *) ac_try_echo=$ac_try;;
5653 esac
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655   (eval "$ac_compile") 2>conftest.er1
5656   ac_status=$?
5657   grep -v '^ *+' conftest.er1 >conftest.err
5658   rm -f conftest.er1
5659   cat conftest.err >&5
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } && {
5662          test -z "$ac_c_werror_flag" ||
5663          test ! -s conftest.err
5664        } && test -s conftest.$ac_objext; then
5665   ac_lo=$ac_mid; break
5666 else
5667   echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5669
5670         ac_hi=`expr '(' $ac_mid ')' - 1`
5671                         if test $ac_mid -le $ac_hi; then
5672                           ac_lo= ac_hi=
5673                           break
5674                         fi
5675                         ac_mid=`expr 2 '*' $ac_mid`
5676 fi
5677
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679   done
5680 else
5681   echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684         ac_lo= ac_hi=
5685 fi
5686
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 fi
5689
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 # Binary search between lo and hi bounds.
5692 while test "x$ac_lo" != "x$ac_hi"; do
5693   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5694   cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h.  */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h.  */
5700 $ac_includes_default
5701    typedef long ac__type_sizeof_;
5702 int
5703 main ()
5704 {
5705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5706 test_array [0] = 0
5707
5708   ;
5709   return 0;
5710 }
5711 _ACEOF
5712 rm -f conftest.$ac_objext
5713 if { (ac_try="$ac_compile"
5714 case "(($ac_try" in
5715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716   *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719   (eval "$ac_compile") 2>conftest.er1
5720   ac_status=$?
5721   grep -v '^ *+' conftest.er1 >conftest.err
5722   rm -f conftest.er1
5723   cat conftest.err >&5
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); } && {
5726          test -z "$ac_c_werror_flag" ||
5727          test ! -s conftest.err
5728        } && test -s conftest.$ac_objext; then
5729   ac_hi=$ac_mid
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734         ac_lo=`expr '(' $ac_mid ')' + 1`
5735 fi
5736
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 done
5739 case $ac_lo in
5740 ?*) ac_cv_sizeof_long=$ac_lo;;
5741 '') if test "$ac_cv_type_long" = yes; then
5742      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5743 See \`config.log' for more details." >&5
5744 echo "$as_me: error: cannot compute sizeof (long)
5745 See \`config.log' for more details." >&2;}
5746    { (exit 77); exit 77; }; }
5747    else
5748      ac_cv_sizeof_long=0
5749    fi ;;
5750 esac
5751 else
5752   cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h.  */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h.  */
5758 $ac_includes_default
5759    typedef long ac__type_sizeof_;
5760 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5761 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5762 #include <stdio.h>
5763 #include <stdlib.h>
5764 int
5765 main ()
5766 {
5767
5768   FILE *f = fopen ("conftest.val", "w");
5769   if (! f)
5770     return 1;
5771   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5772     {
5773       long int i = longval ();
5774       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5775         return 1;
5776       fprintf (f, "%ld\n", i);
5777     }
5778   else
5779     {
5780       unsigned long int i = ulongval ();
5781       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5782         return 1;
5783       fprintf (f, "%lu\n", i);
5784     }
5785   return ferror (f) || fclose (f) != 0;
5786
5787   ;
5788   return 0;
5789 }
5790 _ACEOF
5791 rm -f conftest$ac_exeext
5792 if { (ac_try="$ac_link"
5793 case "(($ac_try" in
5794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795   *) ac_try_echo=$ac_try;;
5796 esac
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798   (eval "$ac_link") 2>&5
5799   ac_status=$?
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5802   { (case "(($ac_try" in
5803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804   *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807   (eval "$ac_try") 2>&5
5808   ac_status=$?
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); }; }; then
5811   ac_cv_sizeof_long=`cat conftest.val`
5812 else
5813   echo "$as_me: program exited with status $ac_status" >&5
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 ( exit $ac_status )
5818 if test "$ac_cv_type_long" = yes; then
5819      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5820 See \`config.log' for more details." >&5
5821 echo "$as_me: error: cannot compute sizeof (long)
5822 See \`config.log' for more details." >&2;}
5823    { (exit 77); exit 77; }; }
5824    else
5825      ac_cv_sizeof_long=0
5826    fi
5827 fi
5828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5829 fi
5830 rm -f conftest.val
5831 fi
5832 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5833 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5834
5835
5836
5837 cat >>confdefs.h <<_ACEOF
5838 #define SIZEOF_LONG $ac_cv_sizeof_long
5839 _ACEOF
5840
5841
5842 { echo "$as_me:$LINENO: checking for long long" >&5
5843 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5844 if test "${ac_cv_type_long_long+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h.  */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h.  */
5853 $ac_includes_default
5854 typedef long long ac__type_new_;
5855 int
5856 main ()
5857 {
5858 if ((ac__type_new_ *) 0)
5859   return 0;
5860 if (sizeof (ac__type_new_))
5861   return 0;
5862   ;
5863   return 0;
5864 }
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (ac_try="$ac_compile"
5868 case "(($ac_try" in
5869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870   *) ac_try_echo=$ac_try;;
5871 esac
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873   (eval "$ac_compile") 2>conftest.er1
5874   ac_status=$?
5875   grep -v '^ *+' conftest.er1 >conftest.err
5876   rm -f conftest.er1
5877   cat conftest.err >&5
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); } && {
5880          test -z "$ac_c_werror_flag" ||
5881          test ! -s conftest.err
5882        } && test -s conftest.$ac_objext; then
5883   ac_cv_type_long_long=yes
5884 else
5885   echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888         ac_cv_type_long_long=no
5889 fi
5890
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 fi
5893 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5894 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5895 if test $ac_cv_type_long_long = yes; then
5896
5897 cat >>confdefs.h <<_ACEOF
5898 #define HAVE_LONG_LONG 1
5899 _ACEOF
5900
5901 { echo "$as_me:$LINENO: checking for long long" >&5
5902 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5903 if test "${ac_cv_type_long_long+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h.  */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h.  */
5912 $ac_includes_default
5913 typedef long long ac__type_new_;
5914 int
5915 main ()
5916 {
5917 if ((ac__type_new_ *) 0)
5918   return 0;
5919 if (sizeof (ac__type_new_))
5920   return 0;
5921   ;
5922   return 0;
5923 }
5924 _ACEOF
5925 rm -f conftest.$ac_objext
5926 if { (ac_try="$ac_compile"
5927 case "(($ac_try" in
5928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929   *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932   (eval "$ac_compile") 2>conftest.er1
5933   ac_status=$?
5934   grep -v '^ *+' conftest.er1 >conftest.err
5935   rm -f conftest.er1
5936   cat conftest.err >&5
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } && {
5939          test -z "$ac_c_werror_flag" ||
5940          test ! -s conftest.err
5941        } && test -s conftest.$ac_objext; then
5942   ac_cv_type_long_long=yes
5943 else
5944   echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5946
5947         ac_cv_type_long_long=no
5948 fi
5949
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 fi
5952 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5953 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5954
5955 # The cast to long int works around a bug in the HP C Compiler
5956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5958 # This bug is HP SR number 8606223364.
5959 { echo "$as_me:$LINENO: checking size of long long" >&5
5960 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
5961 if test "${ac_cv_sizeof_long_long+set}" = set; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   if test "$cross_compiling" = yes; then
5965   # Depending upon the size, compute the lo and hi bounds.
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972 $ac_includes_default
5973    typedef long long ac__type_sizeof_;
5974 int
5975 main ()
5976 {
5977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5978 test_array [0] = 0
5979
5980   ;
5981   return 0;
5982 }
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (ac_try="$ac_compile"
5986 case "(($ac_try" in
5987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988   *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991   (eval "$ac_compile") 2>conftest.er1
5992   ac_status=$?
5993   grep -v '^ *+' conftest.er1 >conftest.err
5994   rm -f conftest.er1
5995   cat conftest.err >&5
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); } && {
5998          test -z "$ac_c_werror_flag" ||
5999          test ! -s conftest.err
6000        } && test -s conftest.$ac_objext; then
6001   ac_lo=0 ac_mid=0
6002   while :; do
6003     cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h.  */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h.  */
6009 $ac_includes_default
6010    typedef long long ac__type_sizeof_;
6011 int
6012 main ()
6013 {
6014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6015 test_array [0] = 0
6016
6017   ;
6018   return 0;
6019 }
6020 _ACEOF
6021 rm -f conftest.$ac_objext
6022 if { (ac_try="$ac_compile"
6023 case "(($ac_try" in
6024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025   *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028   (eval "$ac_compile") 2>conftest.er1
6029   ac_status=$?
6030   grep -v '^ *+' conftest.er1 >conftest.err
6031   rm -f conftest.er1
6032   cat conftest.err >&5
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); } && {
6035          test -z "$ac_c_werror_flag" ||
6036          test ! -s conftest.err
6037        } && test -s conftest.$ac_objext; then
6038   ac_hi=$ac_mid; break
6039 else
6040   echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043         ac_lo=`expr $ac_mid + 1`
6044                         if test $ac_lo -le $ac_mid; then
6045                           ac_lo= ac_hi=
6046                           break
6047                         fi
6048                         ac_mid=`expr 2 '*' $ac_mid + 1`
6049 fi
6050
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052   done
6053 else
6054   echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057         cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h.  */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h.  */
6063 $ac_includes_default
6064    typedef long long ac__type_sizeof_;
6065 int
6066 main ()
6067 {
6068 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6069 test_array [0] = 0
6070
6071   ;
6072   return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (ac_try="$ac_compile"
6077 case "(($ac_try" in
6078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079   *) ac_try_echo=$ac_try;;
6080 esac
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082   (eval "$ac_compile") 2>conftest.er1
6083   ac_status=$?
6084   grep -v '^ *+' conftest.er1 >conftest.err
6085   rm -f conftest.er1
6086   cat conftest.err >&5
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } && {
6089          test -z "$ac_c_werror_flag" ||
6090          test ! -s conftest.err
6091        } && test -s conftest.$ac_objext; then
6092   ac_hi=-1 ac_mid=-1
6093   while :; do
6094     cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h.  */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h.  */
6100 $ac_includes_default
6101    typedef long long ac__type_sizeof_;
6102 int
6103 main ()
6104 {
6105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6106 test_array [0] = 0
6107
6108   ;
6109   return 0;
6110 }
6111 _ACEOF
6112 rm -f conftest.$ac_objext
6113 if { (ac_try="$ac_compile"
6114 case "(($ac_try" in
6115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116   *) ac_try_echo=$ac_try;;
6117 esac
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119   (eval "$ac_compile") 2>conftest.er1
6120   ac_status=$?
6121   grep -v '^ *+' conftest.er1 >conftest.err
6122   rm -f conftest.er1
6123   cat conftest.err >&5
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } && {
6126          test -z "$ac_c_werror_flag" ||
6127          test ! -s conftest.err
6128        } && test -s conftest.$ac_objext; then
6129   ac_lo=$ac_mid; break
6130 else
6131   echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6133
6134         ac_hi=`expr '(' $ac_mid ')' - 1`
6135                         if test $ac_mid -le $ac_hi; then
6136                           ac_lo= ac_hi=
6137                           break
6138                         fi
6139                         ac_mid=`expr 2 '*' $ac_mid`
6140 fi
6141
6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143   done
6144 else
6145   echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6147
6148         ac_lo= ac_hi=
6149 fi
6150
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 fi
6153
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 # Binary search between lo and hi bounds.
6156 while test "x$ac_lo" != "x$ac_hi"; do
6157   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6158   cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h.  */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h.  */
6164 $ac_includes_default
6165    typedef long long ac__type_sizeof_;
6166 int
6167 main ()
6168 {
6169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6170 test_array [0] = 0
6171
6172   ;
6173   return 0;
6174 }
6175 _ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (ac_try="$ac_compile"
6178 case "(($ac_try" in
6179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180   *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183   (eval "$ac_compile") 2>conftest.er1
6184   ac_status=$?
6185   grep -v '^ *+' conftest.er1 >conftest.err
6186   rm -f conftest.er1
6187   cat conftest.err >&5
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); } && {
6190          test -z "$ac_c_werror_flag" ||
6191          test ! -s conftest.err
6192        } && test -s conftest.$ac_objext; then
6193   ac_hi=$ac_mid
6194 else
6195   echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198         ac_lo=`expr '(' $ac_mid ')' + 1`
6199 fi
6200
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 done
6203 case $ac_lo in
6204 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6205 '') if test "$ac_cv_type_long_long" = yes; then
6206      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6207 See \`config.log' for more details." >&5
6208 echo "$as_me: error: cannot compute sizeof (long long)
6209 See \`config.log' for more details." >&2;}
6210    { (exit 77); exit 77; }; }
6211    else
6212      ac_cv_sizeof_long_long=0
6213    fi ;;
6214 esac
6215 else
6216   cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h.  */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h.  */
6222 $ac_includes_default
6223    typedef long long ac__type_sizeof_;
6224 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6225 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6226 #include <stdio.h>
6227 #include <stdlib.h>
6228 int
6229 main ()
6230 {
6231
6232   FILE *f = fopen ("conftest.val", "w");
6233   if (! f)
6234     return 1;
6235   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6236     {
6237       long int i = longval ();
6238       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6239         return 1;
6240       fprintf (f, "%ld\n", i);
6241     }
6242   else
6243     {
6244       unsigned long int i = ulongval ();
6245       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6246         return 1;
6247       fprintf (f, "%lu\n", i);
6248     }
6249   return ferror (f) || fclose (f) != 0;
6250
6251   ;
6252   return 0;
6253 }
6254 _ACEOF
6255 rm -f conftest$ac_exeext
6256 if { (ac_try="$ac_link"
6257 case "(($ac_try" in
6258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259   *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262   (eval "$ac_link") 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6266   { (case "(($ac_try" in
6267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268   *) ac_try_echo=$ac_try;;
6269 esac
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271   (eval "$ac_try") 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; }; then
6275   ac_cv_sizeof_long_long=`cat conftest.val`
6276 else
6277   echo "$as_me: program exited with status $ac_status" >&5
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6280
6281 ( exit $ac_status )
6282 if test "$ac_cv_type_long_long" = yes; then
6283      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6284 See \`config.log' for more details." >&5
6285 echo "$as_me: error: cannot compute sizeof (long long)
6286 See \`config.log' for more details." >&2;}
6287    { (exit 77); exit 77; }; }
6288    else
6289      ac_cv_sizeof_long_long=0
6290    fi
6291 fi
6292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6293 fi
6294 rm -f conftest.val
6295 fi
6296 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6297 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6298
6299
6300
6301 cat >>confdefs.h <<_ACEOF
6302 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6303 _ACEOF
6304
6305
6306 fi
6307
6308 { echo "$as_me:$LINENO: checking for __int64" >&5
6309 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6310 if test "${ac_cv_type___int64+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h.  */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h.  */
6319 $ac_includes_default
6320 typedef __int64 ac__type_new_;
6321 int
6322 main ()
6323 {
6324 if ((ac__type_new_ *) 0)
6325   return 0;
6326 if (sizeof (ac__type_new_))
6327   return 0;
6328   ;
6329   return 0;
6330 }
6331 _ACEOF
6332 rm -f conftest.$ac_objext
6333 if { (ac_try="$ac_compile"
6334 case "(($ac_try" in
6335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336   *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339   (eval "$ac_compile") 2>conftest.er1
6340   ac_status=$?
6341   grep -v '^ *+' conftest.er1 >conftest.err
6342   rm -f conftest.er1
6343   cat conftest.err >&5
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); } && {
6346          test -z "$ac_c_werror_flag" ||
6347          test ! -s conftest.err
6348        } && test -s conftest.$ac_objext; then
6349   ac_cv_type___int64=yes
6350 else
6351   echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354         ac_cv_type___int64=no
6355 fi
6356
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358 fi
6359 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6360 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
6361 if test $ac_cv_type___int64 = yes; then
6362
6363 cat >>confdefs.h <<_ACEOF
6364 #define HAVE___INT64 1
6365 _ACEOF
6366
6367 { echo "$as_me:$LINENO: checking for __int64" >&5
6368 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6369 if test "${ac_cv_type___int64+set}" = set; then
6370   echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372   cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h.  */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h.  */
6378 $ac_includes_default
6379 typedef __int64 ac__type_new_;
6380 int
6381 main ()
6382 {
6383 if ((ac__type_new_ *) 0)
6384   return 0;
6385 if (sizeof (ac__type_new_))
6386   return 0;
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (ac_try="$ac_compile"
6393 case "(($ac_try" in
6394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395   *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398   (eval "$ac_compile") 2>conftest.er1
6399   ac_status=$?
6400   grep -v '^ *+' conftest.er1 >conftest.err
6401   rm -f conftest.er1
6402   cat conftest.err >&5
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); } && {
6405          test -z "$ac_c_werror_flag" ||
6406          test ! -s conftest.err
6407        } && test -s conftest.$ac_objext; then
6408   ac_cv_type___int64=yes
6409 else
6410   echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413         ac_cv_type___int64=no
6414 fi
6415
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 fi
6418 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6419 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
6420
6421 # The cast to long int works around a bug in the HP C Compiler
6422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6424 # This bug is HP SR number 8606223364.
6425 { echo "$as_me:$LINENO: checking size of __int64" >&5
6426 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
6427 if test "${ac_cv_sizeof___int64+set}" = set; then
6428   echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430   if test "$cross_compiling" = yes; then
6431   # Depending upon the size, compute the lo and hi bounds.
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h.  */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h.  */
6438 $ac_includes_default
6439    typedef __int64 ac__type_sizeof_;
6440 int
6441 main ()
6442 {
6443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6444 test_array [0] = 0
6445
6446   ;
6447   return 0;
6448 }
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (ac_try="$ac_compile"
6452 case "(($ac_try" in
6453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454   *) ac_try_echo=$ac_try;;
6455 esac
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457   (eval "$ac_compile") 2>conftest.er1
6458   ac_status=$?
6459   grep -v '^ *+' conftest.er1 >conftest.err
6460   rm -f conftest.er1
6461   cat conftest.err >&5
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); } && {
6464          test -z "$ac_c_werror_flag" ||
6465          test ! -s conftest.err
6466        } && test -s conftest.$ac_objext; then
6467   ac_lo=0 ac_mid=0
6468   while :; do
6469     cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h.  */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h.  */
6475 $ac_includes_default
6476    typedef __int64 ac__type_sizeof_;
6477 int
6478 main ()
6479 {
6480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6481 test_array [0] = 0
6482
6483   ;
6484   return 0;
6485 }
6486 _ACEOF
6487 rm -f conftest.$ac_objext
6488 if { (ac_try="$ac_compile"
6489 case "(($ac_try" in
6490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491   *) ac_try_echo=$ac_try;;
6492 esac
6493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6494   (eval "$ac_compile") 2>conftest.er1
6495   ac_status=$?
6496   grep -v '^ *+' conftest.er1 >conftest.err
6497   rm -f conftest.er1
6498   cat conftest.err >&5
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); } && {
6501          test -z "$ac_c_werror_flag" ||
6502          test ! -s conftest.err
6503        } && test -s conftest.$ac_objext; then
6504   ac_hi=$ac_mid; break
6505 else
6506   echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6508
6509         ac_lo=`expr $ac_mid + 1`
6510                         if test $ac_lo -le $ac_mid; then
6511                           ac_lo= ac_hi=
6512                           break
6513                         fi
6514                         ac_mid=`expr 2 '*' $ac_mid + 1`
6515 fi
6516
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518   done
6519 else
6520   echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6522
6523         cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h.  */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h.  */
6529 $ac_includes_default
6530    typedef __int64 ac__type_sizeof_;
6531 int
6532 main ()
6533 {
6534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6535 test_array [0] = 0
6536
6537   ;
6538   return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest.$ac_objext
6542 if { (ac_try="$ac_compile"
6543 case "(($ac_try" in
6544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545   *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548   (eval "$ac_compile") 2>conftest.er1
6549   ac_status=$?
6550   grep -v '^ *+' conftest.er1 >conftest.err
6551   rm -f conftest.er1
6552   cat conftest.err >&5
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); } && {
6555          test -z "$ac_c_werror_flag" ||
6556          test ! -s conftest.err
6557        } && test -s conftest.$ac_objext; then
6558   ac_hi=-1 ac_mid=-1
6559   while :; do
6560     cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h.  */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h.  */
6566 $ac_includes_default
6567    typedef __int64 ac__type_sizeof_;
6568 int
6569 main ()
6570 {
6571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6572 test_array [0] = 0
6573
6574   ;
6575   return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (ac_try="$ac_compile"
6580 case "(($ac_try" in
6581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582   *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585   (eval "$ac_compile") 2>conftest.er1
6586   ac_status=$?
6587   grep -v '^ *+' conftest.er1 >conftest.err
6588   rm -f conftest.er1
6589   cat conftest.err >&5
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); } && {
6592          test -z "$ac_c_werror_flag" ||
6593          test ! -s conftest.err
6594        } && test -s conftest.$ac_objext; then
6595   ac_lo=$ac_mid; break
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600         ac_hi=`expr '(' $ac_mid ')' - 1`
6601                         if test $ac_mid -le $ac_hi; then
6602                           ac_lo= ac_hi=
6603                           break
6604                         fi
6605                         ac_mid=`expr 2 '*' $ac_mid`
6606 fi
6607
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609   done
6610 else
6611   echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614         ac_lo= ac_hi=
6615 fi
6616
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 fi
6619
6620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 # Binary search between lo and hi bounds.
6622 while test "x$ac_lo" != "x$ac_hi"; do
6623   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6624   cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h.  */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h.  */
6630 $ac_includes_default
6631    typedef __int64 ac__type_sizeof_;
6632 int
6633 main ()
6634 {
6635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6636 test_array [0] = 0
6637
6638   ;
6639   return 0;
6640 }
6641 _ACEOF
6642 rm -f conftest.$ac_objext
6643 if { (ac_try="$ac_compile"
6644 case "(($ac_try" in
6645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646   *) ac_try_echo=$ac_try;;
6647 esac
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649   (eval "$ac_compile") 2>conftest.er1
6650   ac_status=$?
6651   grep -v '^ *+' conftest.er1 >conftest.err
6652   rm -f conftest.er1
6653   cat conftest.err >&5
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); } && {
6656          test -z "$ac_c_werror_flag" ||
6657          test ! -s conftest.err
6658        } && test -s conftest.$ac_objext; then
6659   ac_hi=$ac_mid
6660 else
6661   echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6663
6664         ac_lo=`expr '(' $ac_mid ')' + 1`
6665 fi
6666
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 done
6669 case $ac_lo in
6670 ?*) ac_cv_sizeof___int64=$ac_lo;;
6671 '') if test "$ac_cv_type___int64" = yes; then
6672      { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6673 See \`config.log' for more details." >&5
6674 echo "$as_me: error: cannot compute sizeof (__int64)
6675 See \`config.log' for more details." >&2;}
6676    { (exit 77); exit 77; }; }
6677    else
6678      ac_cv_sizeof___int64=0
6679    fi ;;
6680 esac
6681 else
6682   cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h.  */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h.  */
6688 $ac_includes_default
6689    typedef __int64 ac__type_sizeof_;
6690 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6691 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6692 #include <stdio.h>
6693 #include <stdlib.h>
6694 int
6695 main ()
6696 {
6697
6698   FILE *f = fopen ("conftest.val", "w");
6699   if (! f)
6700     return 1;
6701   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6702     {
6703       long int i = longval ();
6704       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6705         return 1;
6706       fprintf (f, "%ld\n", i);
6707     }
6708   else
6709     {
6710       unsigned long int i = ulongval ();
6711       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6712         return 1;
6713       fprintf (f, "%lu\n", i);
6714     }
6715   return ferror (f) || fclose (f) != 0;
6716
6717   ;
6718   return 0;
6719 }
6720 _ACEOF
6721 rm -f conftest$ac_exeext
6722 if { (ac_try="$ac_link"
6723 case "(($ac_try" in
6724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725   *) ac_try_echo=$ac_try;;
6726 esac
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728   (eval "$ac_link") 2>&5
6729   ac_status=$?
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6732   { (case "(($ac_try" in
6733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734   *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737   (eval "$ac_try") 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; }; then
6741   ac_cv_sizeof___int64=`cat conftest.val`
6742 else
6743   echo "$as_me: program exited with status $ac_status" >&5
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6746
6747 ( exit $ac_status )
6748 if test "$ac_cv_type___int64" = yes; then
6749      { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6750 See \`config.log' for more details." >&5
6751 echo "$as_me: error: cannot compute sizeof (__int64)
6752 See \`config.log' for more details." >&2;}
6753    { (exit 77); exit 77; }; }
6754    else
6755      ac_cv_sizeof___int64=0
6756    fi
6757 fi
6758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6759 fi
6760 rm -f conftest.val
6761 fi
6762 { echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6763 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
6764
6765
6766
6767 cat >>confdefs.h <<_ACEOF
6768 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6769 _ACEOF
6770
6771
6772 fi
6773
6774
6775 # ---------------------
6776 # Warnings and checking
6777 # ---------------------
6778
6779 # Check $CC warning features (if it's GCC).
6780 # We want to use -pedantic, but we don't want warnings about
6781 # * 'long long'
6782 # * variadic macros
6783 # * overlong strings
6784 # So, we only use -pedantic if we can disable those warnings.
6785
6786 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6787 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6; }
6788 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791   save_CFLAGS="$CFLAGS"
6792   CFLAGS="-Wno-long-long"
6793   cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h.  */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h.  */
6799
6800 _ACEOF
6801 rm -f conftest.$ac_objext
6802 if { (ac_try="$ac_compile"
6803 case "(($ac_try" in
6804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805   *) ac_try_echo=$ac_try;;
6806 esac
6807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6808   (eval "$ac_compile") 2>conftest.er1
6809   ac_status=$?
6810   grep -v '^ *+' conftest.er1 >conftest.err
6811   rm -f conftest.er1
6812   cat conftest.err >&5
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); } && {
6815          test -z "$ac_c_werror_flag" ||
6816          test ! -s conftest.err
6817        } && test -s conftest.$ac_objext; then
6818   ac_cv_prog_cc_w_no_long_long=yes
6819 else
6820   echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6822
6823         ac_cv_prog_cc_w_no_long_long=no
6824 fi
6825
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827   CFLAGS="$save_CFLAGS"
6828
6829 fi
6830 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6831 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6; }
6832
6833 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6834 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6; }
6835 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   save_CFLAGS="$CFLAGS"
6839   CFLAGS="-Wno-variadic-macros"
6840   cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h.  */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h.  */
6846
6847 _ACEOF
6848 rm -f conftest.$ac_objext
6849 if { (ac_try="$ac_compile"
6850 case "(($ac_try" in
6851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6852   *) ac_try_echo=$ac_try;;
6853 esac
6854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6855   (eval "$ac_compile") 2>conftest.er1
6856   ac_status=$?
6857   grep -v '^ *+' conftest.er1 >conftest.err
6858   rm -f conftest.er1
6859   cat conftest.err >&5
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); } && {
6862          test -z "$ac_c_werror_flag" ||
6863          test ! -s conftest.err
6864        } && test -s conftest.$ac_objext; then
6865   ac_cv_prog_cc_w_no_variadic_macros=yes
6866 else
6867   echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6869
6870         ac_cv_prog_cc_w_no_variadic_macros=no
6871 fi
6872
6873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874   CFLAGS="$save_CFLAGS"
6875
6876 fi
6877 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6878 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6; }
6879
6880 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6881 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6; }
6882 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   save_CFLAGS="$CFLAGS"
6886   CFLAGS="-Wno-overlength-strings"
6887   cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h.  */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h.  */
6893
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (ac_try="$ac_compile"
6897 case "(($ac_try" in
6898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899   *) ac_try_echo=$ac_try;;
6900 esac
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902   (eval "$ac_compile") 2>conftest.er1
6903   ac_status=$?
6904   grep -v '^ *+' conftest.er1 >conftest.err
6905   rm -f conftest.er1
6906   cat conftest.err >&5
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); } && {
6909          test -z "$ac_c_werror_flag" ||
6910          test ! -s conftest.err
6911        } && test -s conftest.$ac_objext; then
6912   ac_cv_prog_cc_w_no_overlength_strings=yes
6913 else
6914   echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917         ac_cv_prog_cc_w_no_overlength_strings=no
6918 fi
6919
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921   CFLAGS="$save_CFLAGS"
6922
6923 fi
6924 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6925 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6; }
6926
6927 strict_warn=
6928 if test $ac_cv_prog_cc_w_no_long_long = yes \
6929    && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6930    && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6931   strict_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6932 fi
6933
6934 # Add -Wold-style-definition if it's accepted
6935 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6936 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6; }
6937 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   save_CFLAGS="$CFLAGS"
6941   CFLAGS="-Wold-style-definition"
6942   cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h.  */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h.  */
6948
6949 _ACEOF
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6952 case "(($ac_try" in
6953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954   *) ac_try_echo=$ac_try;;
6955 esac
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957   (eval "$ac_compile") 2>conftest.er1
6958   ac_status=$?
6959   grep -v '^ *+' conftest.er1 >conftest.err
6960   rm -f conftest.er1
6961   cat conftest.err >&5
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); } && {
6964          test -z "$ac_c_werror_flag" ||
6965          test ! -s conftest.err
6966        } && test -s conftest.$ac_objext; then
6967   ac_cv_prog_cc_w_old_style_definition=yes
6968 else
6969   echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972         ac_cv_prog_cc_w_old_style_definition=no
6973 fi
6974
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976   CFLAGS="$save_CFLAGS"
6977
6978 fi
6979 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6980 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6; }
6981 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6982   strict_warn="${strict_warn} -Wold-style-definition"
6983 fi
6984
6985 # Add -Wmissing-format-attribute if it's accepted
6986 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6987 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6; }
6988 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   save_CFLAGS="$CFLAGS"
6992   CFLAGS="-Wmissing-format-attribute"
6993   cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h.  */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h.  */
6999
7000 _ACEOF
7001 rm -f conftest.$ac_objext
7002 if { (ac_try="$ac_compile"
7003 case "(($ac_try" in
7004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005   *) ac_try_echo=$ac_try;;
7006 esac
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008   (eval "$ac_compile") 2>conftest.er1
7009   ac_status=$?
7010   grep -v '^ *+' conftest.er1 >conftest.err
7011   rm -f conftest.er1
7012   cat conftest.err >&5
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); } && {
7015          test -z "$ac_c_werror_flag" ||
7016          test ! -s conftest.err
7017        } && test -s conftest.$ac_objext; then
7018   ac_cv_prog_cc_w_missing_format_attribute=yes
7019 else
7020   echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7022
7023         ac_cv_prog_cc_w_missing_format_attribute=no
7024 fi
7025
7026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027   CFLAGS="$save_CFLAGS"
7028
7029 fi
7030 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
7031 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6; }
7032 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
7033   strict_warn="${strict_warn} -Wmissing-format-attribute"
7034 fi
7035
7036 # Enable -Werror, period.
7037 # Check whether --enable-werror_always was given.
7038 if test "${enable_werror_always+set}" = set; then
7039   enableval=$enable_werror_always;
7040 else
7041   enable_werror_always=no
7042 fi
7043
7044 if test x${enable_werror_always} = xyes ; then
7045   strict_warn="${strict_warn} -Werror"
7046 fi
7047
7048
7049 # Get C++ compatibility warning flag, if supported.
7050 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
7051 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6; }
7052 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
7053   echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055   save_CFLAGS="$CFLAGS"
7056   CFLAGS="-Wc++-compat"
7057   cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h.  */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h.  */
7063
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (ac_try="$ac_compile"
7067 case "(($ac_try" in
7068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069   *) ac_try_echo=$ac_try;;
7070 esac
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072   (eval "$ac_compile") 2>conftest.er1
7073   ac_status=$?
7074   grep -v '^ *+' conftest.er1 >conftest.err
7075   rm -f conftest.er1
7076   cat conftest.err >&5
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); } && {
7079          test -z "$ac_c_werror_flag" ||
7080          test ! -s conftest.err
7081        } && test -s conftest.$ac_objext; then
7082   ac_cv_prog_cc_w_cxx_compat=yes
7083 else
7084   echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7086
7087         ac_cv_prog_cc_w_cxx_compat=no
7088 fi
7089
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091   CFLAGS="$save_CFLAGS"
7092
7093 fi
7094 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
7095 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6; }
7096 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
7097   cxx_compat_warn="-Wc++-compat"
7098 fi
7099
7100
7101
7102 # If the native compiler is GCC, we can enable warnings even in stage1.
7103 # That's useful for people building cross-compilers, or just running a
7104 # quick `make'.
7105 warn_cflags=
7106 if test "x$GCC" = "xyes"; then
7107   warn_cflags='$(GCC_WARN_CFLAGS)'
7108 fi
7109
7110
7111 # Enable expensive internal checks
7112 is_release=
7113 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7114   is_release=yes
7115 fi
7116
7117 # Check whether --enable-checking was given.
7118 if test "${enable_checking+set}" = set; then
7119   enableval=$enable_checking; ac_checking_flags="${enableval}"
7120 else
7121
7122 # Determine the default checks.
7123 if test x$is_release = x ; then
7124   ac_checking_flags=yes
7125 else
7126   ac_checking_flags=release
7127 fi
7128 fi
7129
7130 ac_assert_checking=1
7131 ac_checking=
7132 ac_fold_checking=
7133 ac_gc_checking=
7134 ac_gc_always_collect=
7135 ac_rtl_checking=
7136 ac_rtlflag_checking=
7137 ac_runtime_checking=1
7138 ac_tree_checking=
7139 ac_valgrind_checking=
7140 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7141 for check in $ac_checking_flags
7142 do
7143         case $check in
7144         # these set all the flags to specific states
7145         yes)            ac_assert_checking=1 ; ac_checking=1 ;
7146                         ac_fold_checking= ; ac_gc_checking=1 ;
7147                         ac_gc_always_collect= ; ac_rtl_checking= ;
7148                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7149                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
7150         no|none)        ac_assert_checking= ; ac_checking= ;
7151                         ac_fold_checking= ; ac_gc_checking= ;
7152                         ac_gc_always_collect= ; ac_rtl_checking= ;
7153                         ac_rtlflag_checking= ; ac_runtime_checking= ;
7154                         ac_tree_checking= ; ac_valgrind_checking= ;;
7155         all)            ac_assert_checking=1 ; ac_checking=1 ;
7156                         ac_fold_checking=1 ; ac_gc_checking=1 ;
7157                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
7158                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7159                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
7160         release)        ac_assert_checking=1 ; ac_checking= ;
7161                         ac_fold_checking= ; ac_gc_checking= ;
7162                         ac_gc_always_collect= ; ac_rtl_checking= ;
7163                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7164                         ac_tree_checking= ; ac_valgrind_checking= ;;
7165         # these enable particular checks
7166         assert)         ac_assert_checking=1 ;;
7167         fold)           ac_fold_checking=1 ;;
7168         gc)             ac_gc_checking=1 ;;
7169         gcac)           ac_gc_always_collect=1 ;;
7170         misc)           ac_checking=1 ;;
7171         rtl)            ac_rtl_checking=1 ;;
7172         rtlflag)        ac_rtlflag_checking=1 ;;
7173         runtime)        ac_runtime_checking=1 ;;
7174         tree)           ac_tree_checking=1 ;;
7175         valgrind)       ac_valgrind_checking=1 ;;
7176         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7177 echo "$as_me: error: unknown check category $check" >&2;}
7178    { (exit 1); exit 1; }; } ;;
7179         esac
7180 done
7181 IFS="$ac_save_IFS"
7182
7183 nocommon_flag=""
7184 if test x$ac_checking != x ; then
7185
7186 cat >>confdefs.h <<\_ACEOF
7187 #define ENABLE_CHECKING 1
7188 _ACEOF
7189
7190   nocommon_flag=-fno-common
7191 fi
7192
7193 if test x$ac_assert_checking != x ; then
7194
7195 cat >>confdefs.h <<\_ACEOF
7196 #define ENABLE_ASSERT_CHECKING 1
7197 _ACEOF
7198
7199 fi
7200
7201 if test x$ac_runtime_checking != x ; then
7202
7203 cat >>confdefs.h <<\_ACEOF
7204 #define ENABLE_RUNTIME_CHECKING 1
7205 _ACEOF
7206
7207 fi
7208 if test x$ac_tree_checking != x ; then
7209
7210 cat >>confdefs.h <<\_ACEOF
7211 #define ENABLE_TREE_CHECKING 1
7212 _ACEOF
7213
7214   TREEBROWSER=tree-browser.o
7215 fi
7216
7217 if test x$ac_rtl_checking != x ; then
7218
7219 cat >>confdefs.h <<\_ACEOF
7220 #define ENABLE_RTL_CHECKING 1
7221 _ACEOF
7222
7223 fi
7224 if test x$ac_rtlflag_checking != x ; then
7225
7226 cat >>confdefs.h <<\_ACEOF
7227 #define ENABLE_RTL_FLAG_CHECKING 1
7228 _ACEOF
7229
7230 fi
7231 if test x$ac_gc_checking != x ; then
7232
7233 cat >>confdefs.h <<\_ACEOF
7234 #define ENABLE_GC_CHECKING 1
7235 _ACEOF
7236
7237 fi
7238 if test x$ac_gc_always_collect != x ; then
7239
7240 cat >>confdefs.h <<\_ACEOF
7241 #define ENABLE_GC_ALWAYS_COLLECT 1
7242 _ACEOF
7243
7244 fi
7245 if test x$ac_fold_checking != x ; then
7246
7247 cat >>confdefs.h <<\_ACEOF
7248 #define ENABLE_FOLD_CHECKING 1
7249 _ACEOF
7250
7251 fi
7252 valgrind_path_defines=
7253 valgrind_command=
7254
7255 if test "${ac_cv_header_valgrind_h+set}" = set; then
7256   { echo "$as_me:$LINENO: checking for valgrind.h" >&5
7257 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
7258 if test "${ac_cv_header_valgrind_h+set}" = set; then
7259   echo $ECHO_N "(cached) $ECHO_C" >&6
7260 fi
7261 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7262 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
7263 else
7264   # Is the header compilable?
7265 { echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7266 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6; }
7267 cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h.  */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h.  */
7273 $ac_includes_default
7274 #include <valgrind.h>
7275 _ACEOF
7276 rm -f conftest.$ac_objext
7277 if { (ac_try="$ac_compile"
7278 case "(($ac_try" in
7279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280   *) ac_try_echo=$ac_try;;
7281 esac
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283   (eval "$ac_compile") 2>conftest.er1
7284   ac_status=$?
7285   grep -v '^ *+' conftest.er1 >conftest.err
7286   rm -f conftest.er1
7287   cat conftest.err >&5
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); } && {
7290          test -z "$ac_c_werror_flag" ||
7291          test ! -s conftest.err
7292        } && test -s conftest.$ac_objext; then
7293   ac_header_compiler=yes
7294 else
7295   echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7297
7298         ac_header_compiler=no
7299 fi
7300
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7303 echo "${ECHO_T}$ac_header_compiler" >&6; }
7304
7305 # Is the header present?
7306 { echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7307 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6; }
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h.  */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h.  */
7314 #include <valgrind.h>
7315 _ACEOF
7316 if { (ac_try="$ac_cpp conftest.$ac_ext"
7317 case "(($ac_try" in
7318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319   *) ac_try_echo=$ac_try;;
7320 esac
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7323   ac_status=$?
7324   grep -v '^ *+' conftest.er1 >conftest.err
7325   rm -f conftest.er1
7326   cat conftest.err >&5
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); } >/dev/null && {
7329          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7330          test ! -s conftest.err
7331        }; then
7332   ac_header_preproc=yes
7333 else
7334   echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7336
7337   ac_header_preproc=no
7338 fi
7339
7340 rm -f conftest.err conftest.$ac_ext
7341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7342 echo "${ECHO_T}$ac_header_preproc" >&6; }
7343
7344 # So?  What about this header?
7345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7346   yes:no: )
7347     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7348 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7349     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7350 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7351     ac_header_preproc=yes
7352     ;;
7353   no:yes:* )
7354     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7355 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7356     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
7357 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
7358     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7359 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7360     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
7361 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7362     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7363 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7364     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7365 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7366
7367     ;;
7368 esac
7369 { echo "$as_me:$LINENO: checking for valgrind.h" >&5
7370 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
7371 if test "${ac_cv_header_valgrind_h+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   ac_cv_header_valgrind_h=$ac_header_preproc
7375 fi
7376 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7377 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
7378
7379 fi
7380 if test $ac_cv_header_valgrind_h = yes; then
7381   have_valgrind_h=yes
7382 else
7383   have_valgrind_h=no
7384 fi
7385
7386
7387
7388 if test x$ac_valgrind_checking != x ; then
7389   # It is certainly possible that there's valgrind but no valgrind.h.
7390   # GCC relies on making annotations so we must have both.
7391   { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7392 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6; }
7393   cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h.  */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h.  */
7399 #include <valgrind/memcheck.h>
7400 #ifndef VALGRIND_DISCARD
7401 #error VALGRIND_DISCARD not defined
7402 #endif
7403 _ACEOF
7404 if { (ac_try="$ac_cpp conftest.$ac_ext"
7405 case "(($ac_try" in
7406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407   *) ac_try_echo=$ac_try;;
7408 esac
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7411   ac_status=$?
7412   grep -v '^ *+' conftest.er1 >conftest.err
7413   rm -f conftest.er1
7414   cat conftest.err >&5
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); } >/dev/null && {
7417          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7418          test ! -s conftest.err
7419        }; then
7420   gcc_cv_header_valgrind_memcheck_h=yes
7421 else
7422   echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425   gcc_cv_header_valgrind_memcheck_h=no
7426 fi
7427
7428 rm -f conftest.err conftest.$ac_ext
7429   { echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7430 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6; }
7431   { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7432 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6; }
7433   cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439 #include <memcheck.h>
7440 #ifndef VALGRIND_DISCARD
7441 #error VALGRIND_DISCARD not defined
7442 #endif
7443 _ACEOF
7444 if { (ac_try="$ac_cpp conftest.$ac_ext"
7445 case "(($ac_try" in
7446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447   *) ac_try_echo=$ac_try;;
7448 esac
7449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7451   ac_status=$?
7452   grep -v '^ *+' conftest.er1 >conftest.err
7453   rm -f conftest.er1
7454   cat conftest.err >&5
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); } >/dev/null && {
7457          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7458          test ! -s conftest.err
7459        }; then
7460   gcc_cv_header_memcheck_h=yes
7461 else
7462   echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7464
7465   gcc_cv_header_memcheck_h=no
7466 fi
7467
7468 rm -f conftest.err conftest.$ac_ext
7469   { echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7470 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6; }
7471
7472 # Prepare PATH_SEPARATOR.
7473 # The user is always right.
7474 if test "${PATH_SEPARATOR+set}" != set; then
7475   echo "#! /bin/sh" >conf$$.sh
7476   echo  "exit 0"   >>conf$$.sh
7477   chmod +x conf$$.sh
7478   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7479     PATH_SEPARATOR=';'
7480   else
7481     PATH_SEPARATOR=:
7482   fi
7483   rm -f conf$$.sh
7484 fi
7485
7486 # Find out how to test for executable files. Don't use a zero-byte file,
7487 # as systems may use methods other than mode bits to determine executability.
7488 cat >conf$$.file <<_ASEOF
7489 #! /bin/sh
7490 exit 0
7491 _ASEOF
7492 chmod +x conf$$.file
7493 if test -x conf$$.file >/dev/null 2>&1; then
7494   ac_executable_p="test -x"
7495 else
7496   ac_executable_p="test -f"
7497 fi
7498 rm -f conf$$.file
7499
7500 # Extract the first word of "valgrind", so it can be a program name with args.
7501 set dummy valgrind; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_path_valgrind_path+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507   case "$valgrind_path" in
7508   [\\/]* | ?:[\\/]*)
7509     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7510     ;;
7511   *)
7512     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7513     for ac_dir in $PATH; do
7514       IFS="$ac_save_IFS"
7515       test -z "$ac_dir" && ac_dir=.
7516       for ac_exec_ext in '' $ac_executable_extensions; do
7517         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7518           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7519             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7520             break 2
7521           fi
7522         fi
7523       done
7524     done
7525     IFS="$ac_save_IFS"
7526     ;;
7527 esac
7528 fi
7529 valgrind_path="$ac_cv_path_valgrind_path"
7530 if test -n "$valgrind_path"; then
7531   { echo "$as_me:$LINENO: result: $valgrind_path" >&5
7532 echo "${ECHO_T}$valgrind_path" >&6; }
7533 else
7534   { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7536 fi
7537
7538   if test "x$valgrind_path" = "x" \
7539     || (test $have_valgrind_h = no \
7540         && test $gcc_cv_header_memcheck_h = no \
7541         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7542         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7543 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7544    { (exit 1); exit 1; }; }
7545   fi
7546   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7547   valgrind_command="$valgrind_path -q"
7548
7549 cat >>confdefs.h <<\_ACEOF
7550 #define ENABLE_VALGRIND_CHECKING 1
7551 _ACEOF
7552
7553   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7554
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_VALGRIND_MEMCHECK_H 1
7557 _ACEOF
7558
7559   fi
7560   if test $gcc_cv_header_memcheck_h = yes; then
7561
7562 cat >>confdefs.h <<\_ACEOF
7563 #define HAVE_MEMCHECK_H 1
7564 _ACEOF
7565
7566   fi
7567 fi
7568
7569
7570
7571 # Check whether --enable-mapped-location was given.
7572 if test "${enable_mapped_location+set}" = set; then
7573   enableval=$enable_mapped_location;
7574 else
7575   enable_mapped_location=no
7576 fi
7577
7578
7579 if test "$enable_mapped_location" = yes ; then
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define USE_MAPPED_LOCATION 1
7583 _ACEOF
7584
7585 fi
7586
7587 # Enable code coverage collection
7588 # Check whether --enable-coverage was given.
7589 if test "${enable_coverage+set}" = set; then
7590   enableval=$enable_coverage; case "${enableval}" in
7591   yes|noopt)
7592     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7593     ;;
7594   opt)
7595     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7596     ;;
7597   no)
7598     # a.k.a. --disable-coverage
7599     coverage_flags=""
7600     ;;
7601   *)
7602     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7603 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7604    { (exit 1); exit 1; }; }
7605     ;;
7606 esac
7607 else
7608   coverage_flags=""
7609 fi
7610
7611
7612
7613 # Check whether --enable-gather-detailed-mem-stats was given.
7614 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7615   enableval=$enable_gather_detailed_mem_stats;
7616 else
7617   enable_gather_detailed_mem_stats=no
7618 fi
7619
7620 if test x$enable_gather_detailed_mem_stats = xyes ; then
7621
7622 cat >>confdefs.h <<\_ACEOF
7623 #define GATHER_STATISTICS 1
7624 _ACEOF
7625
7626 fi
7627
7628 # -------------------------------
7629 # Miscenalleous configure options
7630 # -------------------------------
7631
7632 # With stabs
7633
7634 # Check whether --with-stabs was given.
7635 if test "${with_stabs+set}" = set; then
7636   withval=$with_stabs; stabs="$with_stabs"
7637 else
7638   stabs=no
7639 fi
7640
7641
7642 # Determine whether or not multilibs are enabled.
7643 # Check whether --enable-multilib was given.
7644 if test "${enable_multilib+set}" = set; then
7645   enableval=$enable_multilib;
7646 else
7647   enable_multilib=yes
7648 fi
7649
7650
7651
7652 # Enable __cxa_atexit for C++.
7653 # Check whether --enable-__cxa_atexit was given.
7654 if test "${enable___cxa_atexit+set}" = set; then
7655   enableval=$enable___cxa_atexit;
7656 fi
7657
7658
7659 # Enable C extension for decimal float if target supports it.
7660 # Check whether --enable-decimal-float was given.
7661 if test "${enable_decimal_float+set}" = set; then
7662   enableval=$enable_decimal_float;
7663   case $enable_decimal_float in
7664     yes | no | bid | dpd) ;;
7665     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7666 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7667 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7668 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7669    { (exit 1); exit 1; }; } ;;
7670   esac
7671
7672 else
7673
7674   case $target in
7675     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7676       enable_decimal_float=yes
7677       ;;
7678     *)
7679       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7680 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7681       enable_decimal_float=no
7682       ;;
7683   esac
7684
7685 fi
7686
7687
7688 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7689
7690 cat >>confdefs.h <<_ACEOF
7691 #define ENABLE_DECIMAL_FLOAT $dfp
7692 _ACEOF
7693
7694
7695 # x86's use BID format instead of DPD
7696 case x$enable_decimal_float in
7697   xyes)
7698     case $target in
7699       i?86*-*-linux* | x86_64*-*-linux*)
7700         enable_decimal_float=bid
7701         ;;
7702       *)
7703         enable_decimal_float=dpd
7704         ;;
7705     esac
7706     ;;
7707   xno)
7708     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7709     # dependency on libdecnumber.
7710     enable_decimal_float=dpd
7711     ;;
7712 esac
7713
7714
7715 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7716
7717 cat >>confdefs.h <<_ACEOF
7718 #define ENABLE_DECIMAL_BID_FORMAT $bid
7719 _ACEOF
7720
7721
7722 # Enable threads
7723 # Pass with no value to take the default
7724 # Pass with a value to specify a thread package
7725 # Check whether --enable-threads was given.
7726 if test "${enable_threads+set}" = set; then
7727   enableval=$enable_threads;
7728 else
7729   enable_threads=''
7730 fi
7731
7732
7733 # Check whether --enable-tls was given.
7734 if test "${enable_tls+set}" = set; then
7735   enableval=$enable_tls;
7736   case $enable_tls in
7737     yes | no) ;;
7738     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7739 Valid choices are 'yes' and 'no'." >&5
7740 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7741 Valid choices are 'yes' and 'no'." >&2;}
7742    { (exit 1); exit 1; }; } ;;
7743   esac
7744
7745 else
7746   enable_tls=''
7747 fi
7748
7749
7750 # Check whether --enable-objc-gc was given.
7751 if test "${enable_objc_gc+set}" = set; then
7752   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7753         objc_boehm_gc=''
7754 else
7755         objc_boehm_gc=1
7756 fi
7757 else
7758   objc_boehm_gc=''
7759 fi
7760
7761
7762
7763 # Check whether --with-dwarf2 was given.
7764 if test "${with_dwarf2+set}" = set; then
7765   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7766 else
7767   dwarf2=no
7768 fi
7769
7770
7771 # Check whether --enable-shared was given.
7772 if test "${enable_shared+set}" = set; then
7773   enableval=$enable_shared;
7774   case $enable_shared in
7775   yes | no) ;;
7776   *)
7777     enable_shared=no
7778     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7779     for pkg in $enableval; do
7780       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7781         enable_shared=yes
7782       fi
7783     done
7784     IFS="$ac_save_ifs"
7785     ;;
7786   esac
7787
7788 else
7789   enable_shared=yes
7790 fi
7791
7792
7793
7794
7795 # Check whether --with-build-sysroot was given.
7796 if test "${with_build_sysroot+set}" = set; then
7797   withval=$with_build_sysroot;
7798 fi
7799
7800
7801
7802 # Check whether --with-sysroot was given.
7803 if test "${with_sysroot+set}" = set; then
7804   withval=$with_sysroot;
7805  case ${with_sysroot} in
7806  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7807  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7808  esac
7809
7810  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7811  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7812
7813  if test "x$exec_prefix" = xNONE; then
7814   if test "x$prefix" = xNONE; then
7815    test_prefix=/usr/local
7816   else
7817    test_prefix=$prefix
7818   fi
7819  else
7820   test_prefix=$exec_prefix
7821  fi
7822  case ${TARGET_SYSTEM_ROOT} in
7823  "${test_prefix}"|"${test_prefix}/"*|\
7824  '${exec_prefix}'|'${exec_prefix}/'*)
7825    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7826    TARGET_SYSTEM_ROOT_DEFINE="$t"
7827    ;;
7828  esac
7829
7830 else
7831
7832  TARGET_SYSTEM_ROOT=
7833  TARGET_SYSTEM_ROOT_DEFINE=
7834  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7835
7836 fi
7837
7838
7839
7840
7841
7842 # Build with intermodule optimisations
7843 # Check whether --enable-intermodule was given.
7844 if test "${enable_intermodule+set}" = set; then
7845   enableval=$enable_intermodule; case ${enable_intermodule} in
7846   yes) onestep="-onestep";;
7847   *) onestep="";;
7848 esac
7849 else
7850   onestep=""
7851 fi
7852
7853
7854
7855 # Sanity check enable_languages in case someone does not run the toplevel
7856 # configure # script.
7857 # Check whether --enable-languages was given.
7858 if test "${enable_languages+set}" = set; then
7859   enableval=$enable_languages; case ,${enable_languages}, in
7860        ,,|,yes,)
7861                 # go safe -- we cannot be much sure without the toplevel
7862                 # configure's
7863                 # analysis of which target libs are present and usable
7864                 enable_languages=c
7865                 ;;
7866          *,all,*)
7867                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7868 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7869    { (exit 1); exit 1; }; }
7870                 ;;
7871         *,c,*)
7872                 ;;
7873         *)
7874                 enable_languages=c,${enable_languages}
7875                 ;;
7876 esac
7877 else
7878   enable_languages=c
7879 fi
7880
7881
7882 # Used by documentation targets
7883
7884
7885
7886
7887 # -------------------------
7888 # Checks for other programs
7889 # -------------------------
7890
7891 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7892 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7893 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7894 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7895   echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897   cat >conftest.make <<\_ACEOF
7898 SHELL = /bin/sh
7899 all:
7900         @echo '@@@%%%=$(MAKE)=@@@%%%'
7901 _ACEOF
7902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7903 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7904   *@@@%%%=?*=@@@%%%*)
7905     eval ac_cv_prog_make_${ac_make}_set=yes;;
7906   *)
7907     eval ac_cv_prog_make_${ac_make}_set=no;;
7908 esac
7909 rm -f conftest.make
7910 fi
7911 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7912   { echo "$as_me:$LINENO: result: yes" >&5
7913 echo "${ECHO_T}yes" >&6; }
7914   SET_MAKE=
7915 else
7916   { echo "$as_me:$LINENO: result: no" >&5
7917 echo "${ECHO_T}no" >&6; }
7918   SET_MAKE="MAKE=${MAKE-make}"
7919 fi
7920
7921
7922 # Find some useful tools
7923 for ac_prog in gawk mawk nawk awk
7924 do
7925   # Extract the first word of "$ac_prog", so it can be a program name with args.
7926 set dummy $ac_prog; ac_word=$2
7927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7929 if test "${ac_cv_prog_AWK+set}" = set; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932   if test -n "$AWK"; then
7933   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938   IFS=$as_save_IFS
7939   test -z "$as_dir" && as_dir=.
7940   for ac_exec_ext in '' $ac_executable_extensions; do
7941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942     ac_cv_prog_AWK="$ac_prog"
7943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7944     break 2
7945   fi
7946 done
7947 done
7948 IFS=$as_save_IFS
7949
7950 fi
7951 fi
7952 AWK=$ac_cv_prog_AWK
7953 if test -n "$AWK"; then
7954   { echo "$as_me:$LINENO: result: $AWK" >&5
7955 echo "${ECHO_T}$AWK" >&6; }
7956 else
7957   { echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6; }
7959 fi
7960
7961
7962   test -n "$AWK" && break
7963 done
7964
7965 # We need awk to create options.c and options.h.
7966 # Bail out if it's missing.
7967 case ${AWK} in
7968   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7969 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7970    { (exit 1); exit 1; }; } ;;
7971 esac
7972
7973 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
7974 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7975 if test "${gcc_cv_prog_LN_S+set}" = set; then
7976   echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978   rm -f conftestdata_t
7979 echo >conftestdata_f
7980 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7981 then
7982   gcc_cv_prog_LN_S="ln -s"
7983 else
7984   if ln conftestdata_f conftestdata_t 2>/dev/null
7985   then
7986     gcc_cv_prog_LN_S=ln
7987   else
7988     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7989     then
7990       gcc_cv_prog_LN_S="cp -p"
7991     else
7992       gcc_cv_prog_LN_S=cp
7993     fi
7994   fi
7995 fi
7996 rm -f conftestdata_f conftestdata_t
7997
7998 fi
7999 LN_S="$gcc_cv_prog_LN_S"
8000 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8001   { echo "$as_me:$LINENO: result: yes" >&5
8002 echo "${ECHO_T}yes" >&6; }
8003 else
8004   if test "$gcc_cv_prog_LN_S" = "ln"; then
8005     { echo "$as_me:$LINENO: result: no, using ln" >&5
8006 echo "${ECHO_T}no, using ln" >&6; }
8007   else
8008     { echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8009 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8010   fi
8011 fi
8012
8013 { echo "$as_me:$LINENO: checking whether ln works" >&5
8014 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
8015 if test "${acx_cv_prog_LN+set}" = set; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018   rm -f conftestdata_t
8019 echo >conftestdata_f
8020 if ln conftestdata_f conftestdata_t 2>/dev/null
8021 then
8022   acx_cv_prog_LN=ln
8023 else
8024   acx_cv_prog_LN=no
8025 fi
8026 rm -f conftestdata_f conftestdata_t
8027
8028 fi
8029 if test $acx_cv_prog_LN = no; then
8030   LN="$LN_S"
8031   { echo "$as_me:$LINENO: result: no, using $LN" >&5
8032 echo "${ECHO_T}no, using $LN" >&6; }
8033 else
8034   LN="$acx_cv_prog_LN"
8035   { echo "$as_me:$LINENO: result: yes" >&5
8036 echo "${ECHO_T}yes" >&6; }
8037 fi
8038
8039 if test -n "$ac_tool_prefix"; then
8040   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8044 if test "${ac_cv_prog_RANLIB+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   if test -n "$RANLIB"; then
8048   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053   IFS=$as_save_IFS
8054   test -z "$as_dir" && as_dir=.
8055   for ac_exec_ext in '' $ac_executable_extensions; do
8056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8057     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8059     break 2
8060   fi
8061 done
8062 done
8063 IFS=$as_save_IFS
8064
8065 fi
8066 fi
8067 RANLIB=$ac_cv_prog_RANLIB
8068 if test -n "$RANLIB"; then
8069   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8070 echo "${ECHO_T}$RANLIB" >&6; }
8071 else
8072   { echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6; }
8074 fi
8075
8076
8077 fi
8078 if test -z "$ac_cv_prog_RANLIB"; then
8079   ac_ct_RANLIB=$RANLIB
8080   # Extract the first word of "ranlib", so it can be a program name with args.
8081 set dummy ranlib; ac_word=$2
8082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8084 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8085   echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087   if test -n "$ac_ct_RANLIB"; then
8088   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093   IFS=$as_save_IFS
8094   test -z "$as_dir" && as_dir=.
8095   for ac_exec_ext in '' $ac_executable_extensions; do
8096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097     ac_cv_prog_ac_ct_RANLIB="ranlib"
8098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8099     break 2
8100   fi
8101 done
8102 done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8108 if test -n "$ac_ct_RANLIB"; then
8109   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8110 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8111 else
8112   { echo "$as_me:$LINENO: result: no" >&5
8113 echo "${ECHO_T}no" >&6; }
8114 fi
8115
8116   if test "x$ac_ct_RANLIB" = x; then
8117     RANLIB=":"
8118   else
8119     case $cross_compiling:$ac_tool_warned in
8120 yes:)
8121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8122 whose name does not start with the host triplet.  If you think this
8123 configuration is useful to you, please write to autoconf@gnu.org." >&5
8124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8125 whose name does not start with the host triplet.  If you think this
8126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8127 ac_tool_warned=yes ;;
8128 esac
8129     RANLIB=$ac_ct_RANLIB
8130   fi
8131 else
8132   RANLIB="$ac_cv_prog_RANLIB"
8133 fi
8134
8135 case "${host}" in
8136 *-*-darwin*)
8137   # By default, the Darwin ranlib will not treat common symbols as
8138   # definitions when  building the archive table of contents.  Other
8139   # ranlibs do that; pass an option to the Darwin ranlib that makes
8140   # it behave similarly.
8141   ranlib_flags="-c"
8142   ;;
8143 *)
8144   ranlib_flags=""
8145 esac
8146
8147
8148 # Find a good install program.  We prefer a C program (faster),
8149 # so one script is as good as another.  But avoid the broken or
8150 # incompatible versions:
8151 # SysV /etc/install, /usr/sbin/install
8152 # SunOS /usr/etc/install
8153 # IRIX /sbin/install
8154 # AIX /bin/install
8155 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8156 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8157 # ./install, which can be erroneously created by make from ./install.sh.
8158 { echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8159 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
8160 if test -z "$INSTALL"; then
8161 if test "${ac_cv_path_install+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8165   for ac_dir in $PATH; do
8166     # Account for people who put trailing slashes in PATH elements.
8167     case "$ac_dir/" in
8168     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8169     *)
8170       # OSF1 and SCO ODT 3.0 have their own names for install.
8171       for ac_prog in ginstall scoinst install; do
8172         if test -f $ac_dir/$ac_prog; then
8173           if test $ac_prog = install &&
8174             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8175             # AIX install.  It has an incompatible calling convention.
8176             # OSF/1 installbsd also uses dspmsg, but is usable.
8177             :
8178           else
8179             ac_cv_path_install="$ac_dir/$ac_prog -c"
8180             break 2
8181           fi
8182         fi
8183       done
8184       ;;
8185     esac
8186   done
8187   IFS="$ac_save_IFS"
8188
8189 fi
8190   if test "${ac_cv_path_install+set}" = set; then
8191     INSTALL="$ac_cv_path_install"
8192   else
8193     # As a last resort, use the slow shell script.  We don't cache a
8194     # path for INSTALL within a source directory, because that will
8195     # break other packages using the cache if that directory is
8196     # removed, or if the path is relative.
8197     INSTALL="$ac_install_sh"
8198   fi
8199 fi
8200 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8201 echo "${ECHO_T}$INSTALL" >&6; }
8202
8203 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8204 # It thinks the first close brace ends the variable substitution.
8205 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8206
8207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8208
8209
8210 # See if cmp has --ignore-initial.
8211 { echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8212 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6; }
8213 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8214   echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216    echo abfoo >t1
8217   echo cdfoo >t2
8218   gcc_cv_prog_cmp_skip=slowcompare
8219   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8220     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8221       :
8222     else
8223       gcc_cv_prog_cmp_skip=gnucompare
8224     fi
8225   fi
8226   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8227     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8228       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8229         :
8230       else
8231         gcc_cv_prog_cmp_skip=fastcompare
8232       fi
8233     fi
8234   fi
8235   rm t1 t2
8236
8237 fi
8238 { echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8239 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; }
8240 make_compare_target=$gcc_cv_prog_cmp_skip
8241
8242
8243
8244 # See if we have the mktemp command.
8245 # Extract the first word of "mktemp", so it can be a program name with args.
8246 set dummy mktemp; ac_word=$2
8247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8249 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   if test -n "$have_mktemp_command"; then
8253   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258   IFS=$as_save_IFS
8259   test -z "$as_dir" && as_dir=.
8260   for ac_exec_ext in '' $ac_executable_extensions; do
8261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262     ac_cv_prog_have_mktemp_command="yes"
8263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264     break 2
8265   fi
8266 done
8267 done
8268 IFS=$as_save_IFS
8269
8270   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8271 fi
8272 fi
8273 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8274 if test -n "$have_mktemp_command"; then
8275   { echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8276 echo "${ECHO_T}$have_mktemp_command" >&6; }
8277 else
8278   { echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6; }
8280 fi
8281
8282
8283
8284 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
8285
8286 # See if makeinfo has been installed and is modern enough
8287 # that we can use it.
8288
8289 ac_executable_extensions="$build_exeext"
8290
8291 # Extract the first word of "makeinfo", so it can be a program name with args.
8292 set dummy makeinfo; ac_word=$2
8293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8295 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   if test -n "$MAKEINFO"; then
8299   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304   IFS=$as_save_IFS
8305   test -z "$as_dir" && as_dir=.
8306   for ac_exec_ext in '' $ac_executable_extensions; do
8307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308     ac_cv_prog_MAKEINFO="makeinfo"
8309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310     break 2
8311   fi
8312 done
8313 done
8314 IFS=$as_save_IFS
8315
8316 fi
8317 fi
8318 MAKEINFO=$ac_cv_prog_MAKEINFO
8319 if test -n "$MAKEINFO"; then
8320   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8321 echo "${ECHO_T}$MAKEINFO" >&6; }
8322 else
8323   { echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6; }
8325 fi
8326
8327
8328 if test -n "$MAKEINFO"; then
8329   # Found it, now check the version.
8330   { echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8331 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6; }
8332 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335     ac_prog_version=`$MAKEINFO --version 2>&1 |
8336                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8337   echo "configure:8337: version of makeinfo is $ac_prog_version" >&5
8338   case $ac_prog_version in
8339     '')     gcc_cv_prog_makeinfo_modern=no;;
8340     4.[4-9]*)
8341             gcc_cv_prog_makeinfo_modern=yes;;
8342     *)      gcc_cv_prog_makeinfo_modern=no;;
8343   esac
8344
8345 fi
8346 { echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8347 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6; }
8348 else
8349   gcc_cv_prog_makeinfo_modern=no
8350 fi
8351
8352 if test $gcc_cv_prog_makeinfo_modern = no; then
8353   MAKEINFO="$MISSING makeinfo"
8354   { echo "$as_me:$LINENO: WARNING:
8355 *** Makeinfo is missing or too old.
8356 *** Info documentation will not be built." >&5
8357 echo "$as_me: WARNING:
8358 *** Makeinfo is missing or too old.
8359 *** Info documentation will not be built." >&2;}
8360   BUILD_INFO=
8361 else
8362   BUILD_INFO=info
8363 fi
8364
8365
8366 # Is pod2man recent enough to regenerate manpages?
8367 { echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8368 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6; }
8369 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8370   { echo "$as_me:$LINENO: result: yes" >&5
8371 echo "${ECHO_T}yes" >&6; }
8372   GENERATED_MANPAGES=generated-manpages
8373 else
8374   { echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6; }
8376   GENERATED_MANPAGES=
8377 fi
8378
8379
8380 # How about lex?
8381 for ac_prog in flex
8382 do
8383   # Extract the first word of "$ac_prog", so it can be a program name with args.
8384 set dummy $ac_prog; ac_word=$2
8385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8387 if test "${ac_cv_prog_FLEX+set}" = set; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   if test -n "$FLEX"; then
8391   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8392 else
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8395 do
8396   IFS=$as_save_IFS
8397   test -z "$as_dir" && as_dir=.
8398   for ac_exec_ext in '' $ac_executable_extensions; do
8399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400     ac_cv_prog_FLEX="$ac_prog"
8401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8402     break 2
8403   fi
8404 done
8405 done
8406 IFS=$as_save_IFS
8407
8408 fi
8409 fi
8410 FLEX=$ac_cv_prog_FLEX
8411 if test -n "$FLEX"; then
8412   { echo "$as_me:$LINENO: result: $FLEX" >&5
8413 echo "${ECHO_T}$FLEX" >&6; }
8414 else
8415   { echo "$as_me:$LINENO: result: no" >&5
8416 echo "${ECHO_T}no" >&6; }
8417 fi
8418
8419
8420   test -n "$FLEX" && break
8421 done
8422 test -n "$FLEX" || FLEX="$MISSING flex"
8423
8424
8425 # Bison?
8426 for ac_prog in bison
8427 do
8428   # Extract the first word of "$ac_prog", so it can be a program name with args.
8429 set dummy $ac_prog; ac_word=$2
8430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8432 if test "${ac_cv_prog_BISON+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   if test -n "$BISON"; then
8436   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8437 else
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441   IFS=$as_save_IFS
8442   test -z "$as_dir" && as_dir=.
8443   for ac_exec_ext in '' $ac_executable_extensions; do
8444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445     ac_cv_prog_BISON="$ac_prog"
8446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8447     break 2
8448   fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 fi
8454 fi
8455 BISON=$ac_cv_prog_BISON
8456 if test -n "$BISON"; then
8457   { echo "$as_me:$LINENO: result: $BISON" >&5
8458 echo "${ECHO_T}$BISON" >&6; }
8459 else
8460   { echo "$as_me:$LINENO: result: no" >&5
8461 echo "${ECHO_T}no" >&6; }
8462 fi
8463
8464
8465   test -n "$BISON" && break
8466 done
8467 test -n "$BISON" || BISON="$MISSING bison"
8468
8469
8470 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8471 # check for build == host before using them.
8472
8473 # NM
8474 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8475   && test -d ../binutils ; then
8476   NM='$(objdir)/../binutils/nm-new'
8477 else
8478   # Extract the first word of "nm", so it can be a program name with args.
8479 set dummy nm; ac_word=$2
8480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8482 if test "${ac_cv_prog_NM+set}" = set; then
8483   echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485   if test -n "$NM"; then
8486   ac_cv_prog_NM="$NM" # Let the user override the test.
8487 else
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8490 do
8491   IFS=$as_save_IFS
8492   test -z "$as_dir" && as_dir=.
8493   for ac_exec_ext in '' $ac_executable_extensions; do
8494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495     ac_cv_prog_NM="nm"
8496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8497     break 2
8498   fi
8499 done
8500 done
8501 IFS=$as_save_IFS
8502
8503   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8504 fi
8505 fi
8506 NM=$ac_cv_prog_NM
8507 if test -n "$NM"; then
8508   { echo "$as_me:$LINENO: result: $NM" >&5
8509 echo "${ECHO_T}$NM" >&6; }
8510 else
8511   { echo "$as_me:$LINENO: result: no" >&5
8512 echo "${ECHO_T}no" >&6; }
8513 fi
8514
8515
8516 fi
8517
8518 # AR
8519 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8520   && test -d ../binutils ; then
8521   AR='$(objdir)/../binutils/ar'
8522 else
8523   # Extract the first word of "ar", so it can be a program name with args.
8524 set dummy ar; ac_word=$2
8525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8527 if test "${ac_cv_prog_AR+set}" = set; then
8528   echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530   if test -n "$AR"; then
8531   ac_cv_prog_AR="$AR" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536   IFS=$as_save_IFS
8537   test -z "$as_dir" && as_dir=.
8538   for ac_exec_ext in '' $ac_executable_extensions; do
8539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8540     ac_cv_prog_AR="ar"
8541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542     break 2
8543   fi
8544 done
8545 done
8546 IFS=$as_save_IFS
8547
8548   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8549 fi
8550 fi
8551 AR=$ac_cv_prog_AR
8552 if test -n "$AR"; then
8553   { echo "$as_me:$LINENO: result: $AR" >&5
8554 echo "${ECHO_T}$AR" >&6; }
8555 else
8556   { echo "$as_me:$LINENO: result: no" >&5
8557 echo "${ECHO_T}no" >&6; }
8558 fi
8559
8560
8561 fi
8562
8563
8564 # --------------------
8565 # Checks for C headers
8566 # --------------------
8567
8568 { echo "$as_me:$LINENO: checking for GNU C library" >&5
8569 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6; }
8570 if test "${gcc_cv_glibc+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579 #include <features.h>
8580 int
8581 main ()
8582 {
8583
8584 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
8585 #error Not a GNU C library system
8586 #endif
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8593 case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598   (eval "$ac_compile") 2>conftest.er1
8599   ac_status=$?
8600   grep -v '^ *+' conftest.er1 >conftest.err
8601   rm -f conftest.er1
8602   cat conftest.err >&5
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } && {
8605          test -z "$ac_c_werror_flag" ||
8606          test ! -s conftest.err
8607        } && test -s conftest.$ac_objext; then
8608   gcc_cv_glibc=yes
8609 else
8610   echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613         gcc_cv_glibc=no
8614 fi
8615
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 fi
8618
8619 { echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8620 echo "${ECHO_T}$gcc_cv_glibc" >&6; }
8621 if test $gcc_cv_glibc = yes; then
8622
8623 cat >>confdefs.h <<\_ACEOF
8624 #define _GNU_SOURCE 1
8625 _ACEOF
8626
8627 fi
8628
8629 # Need to reject headers which give warnings, so that the -Werror bootstrap
8630 # works later. *sigh*  This needs to come before all header checks.
8631
8632 ac_c_preproc_warn_flag=yes
8633
8634 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8635 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8636 if test "${ac_cv_header_stdc+set}" = set; then
8637   echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639   cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h.  */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h.  */
8645 #include <stdlib.h>
8646 #include <stdarg.h>
8647 #include <string.h>
8648 #include <float.h>
8649
8650 int
8651 main ()
8652 {
8653
8654   ;
8655   return 0;
8656 }
8657 _ACEOF
8658 rm -f conftest.$ac_objext
8659 if { (ac_try="$ac_compile"
8660 case "(($ac_try" in
8661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662   *) ac_try_echo=$ac_try;;
8663 esac
8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665   (eval "$ac_compile") 2>conftest.er1
8666   ac_status=$?
8667   grep -v '^ *+' conftest.er1 >conftest.err
8668   rm -f conftest.er1
8669   cat conftest.err >&5
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); } && {
8672          test -z "$ac_c_werror_flag" ||
8673          test ! -s conftest.err
8674        } && test -s conftest.$ac_objext; then
8675   ac_cv_header_stdc=yes
8676 else
8677   echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8679
8680         ac_cv_header_stdc=no
8681 fi
8682
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684
8685 if test $ac_cv_header_stdc = yes; then
8686   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8687   cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8693 #include <string.h>
8694
8695 _ACEOF
8696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8697   $EGREP "memchr" >/dev/null 2>&1; then
8698   :
8699 else
8700   ac_cv_header_stdc=no
8701 fi
8702 rm -f conftest*
8703
8704 fi
8705
8706 if test $ac_cv_header_stdc = yes; then
8707   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8708   cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h.  */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h.  */
8714 #include <stdlib.h>
8715
8716 _ACEOF
8717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8718   $EGREP "free" >/dev/null 2>&1; then
8719   :
8720 else
8721   ac_cv_header_stdc=no
8722 fi
8723 rm -f conftest*
8724
8725 fi
8726
8727 if test $ac_cv_header_stdc = yes; then
8728   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8729   if test "$cross_compiling" = yes; then
8730   :
8731 else
8732   cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h.  */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h.  */
8738 #include <ctype.h>
8739 #include <stdlib.h>
8740 #if ((' ' & 0x0FF) == 0x020)
8741 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8742 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8743 #else
8744 # define ISLOWER(c) \
8745                    (('a' <= (c) && (c) <= 'i') \
8746                      || ('j' <= (c) && (c) <= 'r') \
8747                      || ('s' <= (c) && (c) <= 'z'))
8748 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8749 #endif
8750
8751 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8752 int
8753 main ()
8754 {
8755   int i;
8756   for (i = 0; i < 256; i++)
8757     if (XOR (islower (i), ISLOWER (i))
8758         || toupper (i) != TOUPPER (i))
8759       return 2;
8760   return 0;
8761 }
8762 _ACEOF
8763 rm -f conftest$ac_exeext
8764 if { (ac_try="$ac_link"
8765 case "(($ac_try" in
8766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767   *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770   (eval "$ac_link") 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8774   { (case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_try") 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; }; then
8783   :
8784 else
8785   echo "$as_me: program exited with status $ac_status" >&5
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789 ( exit $ac_status )
8790 ac_cv_header_stdc=no
8791 fi
8792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8793 fi
8794
8795
8796 fi
8797 fi
8798 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8799 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8800 if test $ac_cv_header_stdc = yes; then
8801
8802 cat >>confdefs.h <<\_ACEOF
8803 #define STDC_HEADERS 1
8804 _ACEOF
8805
8806 fi
8807
8808 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8809 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
8810 if test "${ac_cv_header_time+set}" = set; then
8811   echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813   cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h.  */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h.  */
8819 #include <sys/types.h>
8820 #include <sys/time.h>
8821 #include <time.h>
8822
8823 int
8824 main ()
8825 {
8826 if ((struct tm *) 0)
8827 return 0;
8828   ;
8829   return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (ac_try="$ac_compile"
8834 case "(($ac_try" in
8835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836   *) ac_try_echo=$ac_try;;
8837 esac
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839   (eval "$ac_compile") 2>conftest.er1
8840   ac_status=$?
8841   grep -v '^ *+' conftest.er1 >conftest.err
8842   rm -f conftest.er1
8843   cat conftest.err >&5
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } && {
8846          test -z "$ac_c_werror_flag" ||
8847          test ! -s conftest.err
8848        } && test -s conftest.$ac_objext; then
8849   ac_cv_header_time=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854         ac_cv_header_time=no
8855 fi
8856
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858 fi
8859 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8860 echo "${ECHO_T}$ac_cv_header_time" >&6; }
8861 if test $ac_cv_header_time = yes; then
8862
8863 cat >>confdefs.h <<\_ACEOF
8864 #define TIME_WITH_SYS_TIME 1
8865 _ACEOF
8866
8867 fi
8868
8869 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8870 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
8871 if test "${gcc_cv_header_string+set}" = set; then
8872   echo $ECHO_N "(cached) $ECHO_C" >&6
8873 else
8874   cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h.  */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h.  */
8880 #include <string.h>
8881 #include <strings.h>
8882 int
8883 main ()
8884 {
8885
8886   ;
8887   return 0;
8888 }
8889 _ACEOF
8890 rm -f conftest.$ac_objext
8891 if { (ac_try="$ac_compile"
8892 case "(($ac_try" in
8893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894   *) ac_try_echo=$ac_try;;
8895 esac
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897   (eval "$ac_compile") 2>conftest.er1
8898   ac_status=$?
8899   grep -v '^ *+' conftest.er1 >conftest.err
8900   rm -f conftest.er1
8901   cat conftest.err >&5
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } && {
8904          test -z "$ac_c_werror_flag" ||
8905          test ! -s conftest.err
8906        } && test -s conftest.$ac_objext; then
8907   gcc_cv_header_string=yes
8908 else
8909   echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912         gcc_cv_header_string=no
8913 fi
8914
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 fi
8917 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8918 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
8919 if test $gcc_cv_header_string = yes; then
8920
8921 cat >>confdefs.h <<\_ACEOF
8922 #define STRING_WITH_STRINGS 1
8923 _ACEOF
8924
8925 fi
8926
8927 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8928 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8929 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8930   echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932   cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h.  */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h.  */
8938 #include <sys/types.h>
8939 #include <sys/wait.h>
8940 #ifndef WEXITSTATUS
8941 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8942 #endif
8943 #ifndef WIFEXITED
8944 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8945 #endif
8946
8947 int
8948 main ()
8949 {
8950   int s;
8951   wait (&s);
8952   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8953   ;
8954   return 0;
8955 }
8956 _ACEOF
8957 rm -f conftest.$ac_objext
8958 if { (ac_try="$ac_compile"
8959 case "(($ac_try" in
8960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961   *) ac_try_echo=$ac_try;;
8962 esac
8963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964   (eval "$ac_compile") 2>conftest.er1
8965   ac_status=$?
8966   grep -v '^ *+' conftest.er1 >conftest.err
8967   rm -f conftest.er1
8968   cat conftest.err >&5
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); } && {
8971          test -z "$ac_c_werror_flag" ||
8972          test ! -s conftest.err
8973        } && test -s conftest.$ac_objext; then
8974   ac_cv_header_sys_wait_h=yes
8975 else
8976   echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979         ac_cv_header_sys_wait_h=no
8980 fi
8981
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 fi
8984 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8985 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8986 if test $ac_cv_header_sys_wait_h = yes; then
8987
8988 cat >>confdefs.h <<\_ACEOF
8989 #define HAVE_SYS_WAIT_H 1
8990 _ACEOF
8991
8992 fi
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9017                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9018                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
9019                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9020 do
9021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 #include <$ac_header>
9034 _ACEOF
9035 if { (ac_try="$ac_cpp conftest.$ac_ext"
9036 case "(($ac_try" in
9037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038   *) ac_try_echo=$ac_try;;
9039 esac
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9042   ac_status=$?
9043   grep -v '^ *+' conftest.er1 >conftest.err
9044   rm -f conftest.er1
9045   cat conftest.err >&5
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); } >/dev/null && {
9048          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9049          test ! -s conftest.err
9050        }; then
9051   eval "$as_ac_Header=yes"
9052 else
9053   echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9055
9056   eval "$as_ac_Header=no"
9057 fi
9058
9059 rm -f conftest.err conftest.$ac_ext
9060 fi
9061 ac_res=`eval echo '${'$as_ac_Header'}'`
9062                { echo "$as_me:$LINENO: result: $ac_res" >&5
9063 echo "${ECHO_T}$ac_res" >&6; }
9064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9065   cat >>confdefs.h <<_ACEOF
9066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9067 _ACEOF
9068
9069 fi
9070 done
9071
9072
9073 # Check for thread headers.
9074 { echo "$as_me:$LINENO: checking for thread.h" >&5
9075 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6; }
9076 if test "${ac_cv_header_thread_h+set}" = set; then
9077   echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079   cat >conftest.$ac_ext <<_ACEOF
9080 /* confdefs.h.  */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h.  */
9085 #include <thread.h>
9086 _ACEOF
9087 if { (ac_try="$ac_cpp conftest.$ac_ext"
9088 case "(($ac_try" in
9089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090   *) ac_try_echo=$ac_try;;
9091 esac
9092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9094   ac_status=$?
9095   grep -v '^ *+' conftest.er1 >conftest.err
9096   rm -f conftest.er1
9097   cat conftest.err >&5
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); } >/dev/null && {
9100          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9101          test ! -s conftest.err
9102        }; then
9103   ac_cv_header_thread_h=yes
9104 else
9105   echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9107
9108   ac_cv_header_thread_h=no
9109 fi
9110
9111 rm -f conftest.err conftest.$ac_ext
9112 fi
9113 { echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9114 echo "${ECHO_T}$ac_cv_header_thread_h" >&6; }
9115 if test $ac_cv_header_thread_h = yes; then
9116   have_thread_h=yes
9117 else
9118   have_thread_h=
9119 fi
9120
9121 { echo "$as_me:$LINENO: checking for pthread.h" >&5
9122 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
9123 if test "${ac_cv_header_pthread_h+set}" = set; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h.  */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h.  */
9132 #include <pthread.h>
9133 _ACEOF
9134 if { (ac_try="$ac_cpp conftest.$ac_ext"
9135 case "(($ac_try" in
9136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137   *) ac_try_echo=$ac_try;;
9138 esac
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9141   ac_status=$?
9142   grep -v '^ *+' conftest.er1 >conftest.err
9143   rm -f conftest.er1
9144   cat conftest.err >&5
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); } >/dev/null && {
9147          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9148          test ! -s conftest.err
9149        }; then
9150   ac_cv_header_pthread_h=yes
9151 else
9152   echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9154
9155   ac_cv_header_pthread_h=no
9156 fi
9157
9158 rm -f conftest.err conftest.$ac_ext
9159 fi
9160 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9161 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
9162 if test $ac_cv_header_pthread_h = yes; then
9163   have_pthread_h=yes
9164 else
9165   have_pthread_h=
9166 fi
9167
9168
9169 # These tests can't be done till we know if we have limits.h.
9170 { echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9171 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6; }
9172 if test "${gcc_cv_decl_char_bit+set}" = set; then
9173   echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175   cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h.  */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h.  */
9181 #ifdef HAVE_LIMITS_H
9182 #include <limits.h>
9183 #endif
9184 #ifdef CHAR_BIT
9185 found
9186 #endif
9187 _ACEOF
9188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9189   $EGREP "found" >/dev/null 2>&1; then
9190   gcc_cv_decl_char_bit=yes
9191 else
9192   gcc_cv_decl_char_bit=no
9193 fi
9194 rm -f conftest*
9195
9196
9197 fi
9198 { echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9199 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6; }
9200 if test $gcc_cv_decl_char_bit = no; then
9201   { echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9202 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6; }
9203 if test "${gcc_cv_c_nbby+set}" = set; then
9204   echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206   i=8
9207  gcc_cv_c_nbby=
9208  while test $i -lt 65; do
9209    cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h.  */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h.  */
9215
9216 int
9217 main ()
9218 {
9219 switch(0) {
9220   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9221   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9222   ; }
9223   ;
9224   return 0;
9225 }
9226 _ACEOF
9227 rm -f conftest.$ac_objext
9228 if { (ac_try="$ac_compile"
9229 case "(($ac_try" in
9230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231   *) ac_try_echo=$ac_try;;
9232 esac
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234   (eval "$ac_compile") 2>conftest.er1
9235   ac_status=$?
9236   grep -v '^ *+' conftest.er1 >conftest.err
9237   rm -f conftest.er1
9238   cat conftest.err >&5
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); } && {
9241          test -z "$ac_c_werror_flag" ||
9242          test ! -s conftest.err
9243        } && test -s conftest.$ac_objext; then
9244   gcc_cv_c_nbby=$i; break
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249
9250 fi
9251
9252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253    i=`expr $i + 1`
9254  done
9255  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9256
9257 fi
9258 { echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9259 echo "${ECHO_T}$gcc_cv_c_nbby" >&6; }
9260 if test $gcc_cv_c_nbby = failed; then
9261   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9262 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9263    { (exit 1); exit 1; }; }
9264 else
9265
9266 cat >>confdefs.h <<_ACEOF
9267 #define CHAR_BIT $gcc_cv_c_nbby
9268 _ACEOF
9269
9270 fi
9271 fi
9272 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9273 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
9274 if test "${ac_cv_c_bigendian+set}" = set; then
9275   echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277   # See if sys/param.h defines the BYTE_ORDER macro.
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284 #include <sys/types.h>
9285 #include <sys/param.h>
9286
9287 int
9288 main ()
9289 {
9290 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
9291         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
9292  bogus endian macros
9293 #endif
9294
9295   ;
9296   return 0;
9297 }
9298 _ACEOF
9299 rm -f conftest.$ac_objext
9300 if { (ac_try="$ac_compile"
9301 case "(($ac_try" in
9302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303   *) ac_try_echo=$ac_try;;
9304 esac
9305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306   (eval "$ac_compile") 2>conftest.er1
9307   ac_status=$?
9308   grep -v '^ *+' conftest.er1 >conftest.err
9309   rm -f conftest.er1
9310   cat conftest.err >&5
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); } && {
9313          test -z "$ac_c_werror_flag" ||
9314          test ! -s conftest.err
9315        } && test -s conftest.$ac_objext; then
9316   # It does; now see whether it defined to BIG_ENDIAN or not.
9317 cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h.  */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h.  */
9323 #include <sys/types.h>
9324 #include <sys/param.h>
9325
9326 int
9327 main ()
9328 {
9329 #if BYTE_ORDER != BIG_ENDIAN
9330  not big endian
9331 #endif
9332
9333   ;
9334   return 0;
9335 }
9336 _ACEOF
9337 rm -f conftest.$ac_objext
9338 if { (ac_try="$ac_compile"
9339 case "(($ac_try" in
9340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341   *) ac_try_echo=$ac_try;;
9342 esac
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344   (eval "$ac_compile") 2>conftest.er1
9345   ac_status=$?
9346   grep -v '^ *+' conftest.er1 >conftest.err
9347   rm -f conftest.er1
9348   cat conftest.err >&5
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); } && {
9351          test -z "$ac_c_werror_flag" ||
9352          test ! -s conftest.err
9353        } && test -s conftest.$ac_objext; then
9354   ac_cv_c_bigendian=yes
9355 else
9356   echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9358
9359         ac_cv_c_bigendian=no
9360 fi
9361
9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367         # It does not; compile a test program.
9368 if test "$cross_compiling" = yes; then
9369   # try to guess the endianness by grepping values into an object file
9370   ac_cv_c_bigendian=unknown
9371   cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h.  */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h.  */
9377 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9378 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9379 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9380 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9381 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9382 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9383 int
9384 main ()
9385 {
9386  _ascii (); _ebcdic ();
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext
9392 if { (ac_try="$ac_compile"
9393 case "(($ac_try" in
9394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395   *) ac_try_echo=$ac_try;;
9396 esac
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398   (eval "$ac_compile") 2>conftest.er1
9399   ac_status=$?
9400   grep -v '^ *+' conftest.er1 >conftest.err
9401   rm -f conftest.er1
9402   cat conftest.err >&5
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); } && {
9405          test -z "$ac_c_werror_flag" ||
9406          test ! -s conftest.err
9407        } && test -s conftest.$ac_objext; then
9408   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9409   ac_cv_c_bigendian=yes
9410 fi
9411 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9412   if test "$ac_cv_c_bigendian" = unknown; then
9413     ac_cv_c_bigendian=no
9414   else
9415     # finding both strings is unlikely to happen, but who knows?
9416     ac_cv_c_bigendian=unknown
9417   fi
9418 fi
9419 else
9420   echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9422
9423
9424 fi
9425
9426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9427 else
9428   cat >conftest.$ac_ext <<_ACEOF
9429 /* confdefs.h.  */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h.  */
9434 $ac_includes_default
9435 int
9436 main ()
9437 {
9438
9439   /* Are we little or big endian?  From Harbison&Steele.  */
9440   union
9441   {
9442     long int l;
9443     char c[sizeof (long int)];
9444   } u;
9445   u.l = 1;
9446   return u.c[sizeof (long int) - 1] == 1;
9447
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 rm -f conftest$ac_exeext
9453 if { (ac_try="$ac_link"
9454 case "(($ac_try" in
9455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456   *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459   (eval "$ac_link") 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9463   { (case "(($ac_try" in
9464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465   *) ac_try_echo=$ac_try;;
9466 esac
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468   (eval "$ac_try") 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; }; then
9472   ac_cv_c_bigendian=no
9473 else
9474   echo "$as_me: program exited with status $ac_status" >&5
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478 ( exit $ac_status )
9479 ac_cv_c_bigendian=yes
9480 fi
9481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9482 fi
9483
9484
9485 fi
9486
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488 fi
9489 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9490 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
9491 case $ac_cv_c_bigendian in
9492   yes)
9493
9494 cat >>confdefs.h <<\_ACEOF
9495 #define WORDS_BIGENDIAN 1
9496 _ACEOF
9497  ;;
9498   no)
9499      ;;
9500   *)
9501     { { echo "$as_me:$LINENO: error: unknown endianness
9502 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9503 echo "$as_me: error: unknown endianness
9504 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9505    { (exit 1); exit 1; }; } ;;
9506 esac
9507
9508
9509 # --------
9510 # UNSORTED
9511 # --------
9512
9513
9514 # These libraries may be used by collect2.
9515 # We may need a special search path to get them linked.
9516 { echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9517 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6; }
9518 if test "${gcc_cv_collect2_libs+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   save_LIBS="$LIBS"
9522 for libs in '' -lld -lmld \
9523                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9524                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9525 do
9526         LIBS="$libs"
9527         cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h.  */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h.  */
9533
9534 /* Override any GCC internal prototype to avoid an error.
9535    Use char because int might match the return type of a GCC
9536    builtin and then its argument prototype would still apply.  */
9537 #ifdef __cplusplus
9538 extern "C"
9539 #endif
9540 char ldopen ();
9541 int
9542 main ()
9543 {
9544 return ldopen ();
9545   ;
9546   return 0;
9547 }
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9551 case "(($ac_try" in
9552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553   *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556   (eval "$ac_link") 2>conftest.er1
9557   ac_status=$?
9558   grep -v '^ *+' conftest.er1 >conftest.err
9559   rm -f conftest.er1
9560   cat conftest.err >&5
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } && {
9563          test -z "$ac_c_werror_flag" ||
9564          test ! -s conftest.err
9565        } && test -s conftest$ac_exeext &&
9566        $as_test_x conftest$ac_exeext; then
9567   gcc_cv_collect2_libs="$libs"; break
9568 else
9569   echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572
9573 fi
9574
9575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9576       conftest$ac_exeext conftest.$ac_ext
9577 done
9578 LIBS="$save_LIBS"
9579 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9580 fi
9581 { echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9582 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6; }
9583 case $gcc_cv_collect2_libs in
9584         "none required")        ;;
9585         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9586 esac
9587
9588
9589 # When building Ada code on Alpha, we need exc_resume which is usually in
9590 # -lexc.  So test for it.
9591 save_LIBS="$LIBS"
9592 LIBS=
9593 { echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9594 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6; }
9595 if test "${ac_cv_search_exc_resume+set}" = set; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598   ac_func_search_save_LIBS=$LIBS
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605
9606 /* Override any GCC internal prototype to avoid an error.
9607    Use char because int might match the return type of a GCC
9608    builtin and then its argument prototype would still apply.  */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char exc_resume ();
9613 int
9614 main ()
9615 {
9616 return exc_resume ();
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 for ac_lib in '' exc; do
9622   if test -z "$ac_lib"; then
9623     ac_res="none required"
9624   else
9625     ac_res=-l$ac_lib
9626     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9627   fi
9628   rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (ac_try="$ac_link"
9630 case "(($ac_try" in
9631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632   *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635   (eval "$ac_link") 2>conftest.er1
9636   ac_status=$?
9637   grep -v '^ *+' conftest.er1 >conftest.err
9638   rm -f conftest.er1
9639   cat conftest.err >&5
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } && {
9642          test -z "$ac_c_werror_flag" ||
9643          test ! -s conftest.err
9644        } && test -s conftest$ac_exeext &&
9645        $as_test_x conftest$ac_exeext; then
9646   ac_cv_search_exc_resume=$ac_res
9647 else
9648   echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651
9652 fi
9653
9654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9655       conftest$ac_exeext
9656   if test "${ac_cv_search_exc_resume+set}" = set; then
9657   break
9658 fi
9659 done
9660 if test "${ac_cv_search_exc_resume+set}" = set; then
9661   :
9662 else
9663   ac_cv_search_exc_resume=no
9664 fi
9665 rm conftest.$ac_ext
9666 LIBS=$ac_func_search_save_LIBS
9667 fi
9668 { echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9669 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6; }
9670 ac_res=$ac_cv_search_exc_resume
9671 if test "$ac_res" != no; then
9672   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9673
9674 fi
9675
9676 GNAT_LIBEXC="$LIBS"
9677 LIBS="$save_LIBS"
9678
9679
9680 # Some systems put ldexp and frexp in libm instead of libc; assume
9681 # they're both in the same place.  jcf-dump needs them.
9682 save_LIBS="$LIBS"
9683 LIBS=
9684 { echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9685 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6; }
9686 if test "${ac_cv_search_ldexp+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   ac_func_search_save_LIBS=$LIBS
9690 cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696
9697 /* Override any GCC internal prototype to avoid an error.
9698    Use char because int might match the return type of a GCC
9699    builtin and then its argument prototype would still apply.  */
9700 #ifdef __cplusplus
9701 extern "C"
9702 #endif
9703 char ldexp ();
9704 int
9705 main ()
9706 {
9707 return ldexp ();
9708   ;
9709   return 0;
9710 }
9711 _ACEOF
9712 for ac_lib in '' m; do
9713   if test -z "$ac_lib"; then
9714     ac_res="none required"
9715   else
9716     ac_res=-l$ac_lib
9717     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9718   fi
9719   rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (ac_try="$ac_link"
9721 case "(($ac_try" in
9722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723   *) ac_try_echo=$ac_try;;
9724 esac
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726   (eval "$ac_link") 2>conftest.er1
9727   ac_status=$?
9728   grep -v '^ *+' conftest.er1 >conftest.err
9729   rm -f conftest.er1
9730   cat conftest.err >&5
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } && {
9733          test -z "$ac_c_werror_flag" ||
9734          test ! -s conftest.err
9735        } && test -s conftest$ac_exeext &&
9736        $as_test_x conftest$ac_exeext; then
9737   ac_cv_search_ldexp=$ac_res
9738 else
9739   echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742
9743 fi
9744
9745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9746       conftest$ac_exeext
9747   if test "${ac_cv_search_ldexp+set}" = set; then
9748   break
9749 fi
9750 done
9751 if test "${ac_cv_search_ldexp+set}" = set; then
9752   :
9753 else
9754   ac_cv_search_ldexp=no
9755 fi
9756 rm conftest.$ac_ext
9757 LIBS=$ac_func_search_save_LIBS
9758 fi
9759 { echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9760 echo "${ECHO_T}$ac_cv_search_ldexp" >&6; }
9761 ac_res=$ac_cv_search_ldexp
9762 if test "$ac_res" != no; then
9763   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9764
9765 fi
9766
9767 LDEXP_LIB="$LIBS"
9768 LIBS="$save_LIBS"
9769
9770
9771 # Use <inttypes.h> only if it exists,
9772 # doesn't clash with <sys/types.h>, and declares intmax_t.
9773 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9774 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9775 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9776   echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778   cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784 #include <sys/types.h>
9785 #include <inttypes.h>
9786 int
9787 main ()
9788 {
9789 intmax_t i = -1;
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext
9795 if { (ac_try="$ac_compile"
9796 case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_compile") 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } && {
9808          test -z "$ac_c_werror_flag" ||
9809          test ! -s conftest.err
9810        } && test -s conftest.$ac_objext; then
9811   gcc_cv_header_inttypes_h=yes
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816         gcc_cv_header_inttypes_h=no
9817 fi
9818
9819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9820 fi
9821
9822 { echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9823 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6; }
9824 if test $gcc_cv_header_inttypes_h = yes; then
9825
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_INTTYPES_H 1
9828 _ACEOF
9829
9830 fi
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9870         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9871         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9872         clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
9873 do
9874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9878   echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880   cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h.  */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h.  */
9886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9888 #define $ac_func innocuous_$ac_func
9889
9890 /* System header to define __stub macros and hopefully few prototypes,
9891     which can conflict with char $ac_func (); below.
9892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893     <limits.h> exists even on freestanding compilers.  */
9894
9895 #ifdef __STDC__
9896 # include <limits.h>
9897 #else
9898 # include <assert.h>
9899 #endif
9900
9901 #undef $ac_func
9902
9903 /* Override any GCC internal prototype to avoid an error.
9904    Use char because int might match the return type of a GCC
9905    builtin and then its argument prototype would still apply.  */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 char $ac_func ();
9910 /* The GNU C library defines this for functions which it implements
9911     to always fail with ENOSYS.  Some functions are actually named
9912     something starting with __ and the normal name is an alias.  */
9913 #if defined __stub_$ac_func || defined __stub___$ac_func
9914 choke me
9915 #endif
9916
9917 int
9918 main ()
9919 {
9920 return $ac_func ();
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (ac_try="$ac_link"
9927 case "(($ac_try" in
9928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929   *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932   (eval "$ac_link") 2>conftest.er1
9933   ac_status=$?
9934   grep -v '^ *+' conftest.er1 >conftest.err
9935   rm -f conftest.er1
9936   cat conftest.err >&5
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } && {
9939          test -z "$ac_c_werror_flag" ||
9940          test ! -s conftest.err
9941        } && test -s conftest$ac_exeext &&
9942        $as_test_x conftest$ac_exeext; then
9943   eval "$as_ac_var=yes"
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948         eval "$as_ac_var=no"
9949 fi
9950
9951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9952       conftest$ac_exeext conftest.$ac_ext
9953 fi
9954 ac_res=`eval echo '${'$as_ac_var'}'`
9955                { echo "$as_me:$LINENO: result: $ac_res" >&5
9956 echo "${ECHO_T}$ac_res" >&6; }
9957 if test `eval echo '${'$as_ac_var'}'` = yes; then
9958   cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9960 _ACEOF
9961
9962 fi
9963 done
9964
9965
9966 if test x$ac_cv_func_mbstowcs = xyes; then
9967   { echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9968 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6; }
9969 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972       if test "$cross_compiling" = yes; then
9973   gcc_cv_func_mbstowcs_works=yes
9974 else
9975   cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h.  */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h.  */
9981 #include <stdlib.h>
9982 int main()
9983 {
9984   mbstowcs(0, "", 0);
9985   return 0;
9986 }
9987 _ACEOF
9988 rm -f conftest$ac_exeext
9989 if { (ac_try="$ac_link"
9990 case "(($ac_try" in
9991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992   *) ac_try_echo=$ac_try;;
9993 esac
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995   (eval "$ac_link") 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9999   { (case "(($ac_try" in
10000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001   *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004   (eval "$ac_try") 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); }; }; then
10008   gcc_cv_func_mbstowcs_works=yes
10009 else
10010   echo "$as_me: program exited with status $ac_status" >&5
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10013
10014 ( exit $ac_status )
10015 gcc_cv_func_mbstowcs_works=no
10016 fi
10017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10018 fi
10019
10020
10021 fi
10022 { echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10023 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6; }
10024   if test x$gcc_cv_func_mbstowcs_works = xyes; then
10025
10026 cat >>confdefs.h <<\_ACEOF
10027 #define HAVE_WORKING_MBSTOWCS 1
10028 _ACEOF
10029
10030   fi
10031 fi
10032
10033 { echo "$as_me:$LINENO: checking for ssize_t" >&5
10034 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
10035 if test "${ac_cv_type_ssize_t+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038   cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h.  */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h.  */
10044 $ac_includes_default
10045 typedef ssize_t ac__type_new_;
10046 int
10047 main ()
10048 {
10049 if ((ac__type_new_ *) 0)
10050   return 0;
10051 if (sizeof (ac__type_new_))
10052   return 0;
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 rm -f conftest.$ac_objext
10058 if { (ac_try="$ac_compile"
10059 case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_compile") 2>conftest.er1
10065   ac_status=$?
10066   grep -v '^ *+' conftest.er1 >conftest.err
10067   rm -f conftest.er1
10068   cat conftest.err >&5
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); } && {
10071          test -z "$ac_c_werror_flag" ||
10072          test ! -s conftest.err
10073        } && test -s conftest.$ac_objext; then
10074   ac_cv_type_ssize_t=yes
10075 else
10076   echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079         ac_cv_type_ssize_t=no
10080 fi
10081
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 fi
10084 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10085 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
10086 if test $ac_cv_type_ssize_t = yes; then
10087   :
10088 else
10089
10090 cat >>confdefs.h <<_ACEOF
10091 #define ssize_t int
10092 _ACEOF
10093
10094 fi
10095
10096
10097 # Try to determine the array type of the second argument of getgroups
10098 # for the target system (int or gid_t).
10099 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10100 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10101 if test "${ac_cv_type_uid_t+set}" = set; then
10102   echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104   cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110 #include <sys/types.h>
10111
10112 _ACEOF
10113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10114   $EGREP "uid_t" >/dev/null 2>&1; then
10115   ac_cv_type_uid_t=yes
10116 else
10117   ac_cv_type_uid_t=no
10118 fi
10119 rm -f conftest*
10120
10121 fi
10122 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10123 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10124 if test $ac_cv_type_uid_t = no; then
10125
10126 cat >>confdefs.h <<\_ACEOF
10127 #define uid_t int
10128 _ACEOF
10129
10130
10131 cat >>confdefs.h <<\_ACEOF
10132 #define gid_t int
10133 _ACEOF
10134
10135 fi
10136
10137 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10138 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
10139 if test "${ac_cv_type_getgroups+set}" = set; then
10140   echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142   if test "$cross_compiling" = yes; then
10143   ac_cv_type_getgroups=cross
10144 else
10145   cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h.  */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h.  */
10151 /* Thanks to Mike Rendell for this test.  */
10152 $ac_includes_default
10153 #define NGID 256
10154 #undef MAX
10155 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10156
10157 int
10158 main ()
10159 {
10160   gid_t gidset[NGID];
10161   int i, n;
10162   union { gid_t gval; long int lval; }  val;
10163
10164   val.lval = -1;
10165   for (i = 0; i < NGID; i++)
10166     gidset[i] = val.gval;
10167   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10168                  gidset);
10169   /* Exit non-zero if getgroups seems to require an array of ints.  This
10170      happens when gid_t is short int but getgroups modifies an array
10171      of ints.  */
10172   return n > 0 && gidset[n] != val.gval;
10173 }
10174 _ACEOF
10175 rm -f conftest$ac_exeext
10176 if { (ac_try="$ac_link"
10177 case "(($ac_try" in
10178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179   *) ac_try_echo=$ac_try;;
10180 esac
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182   (eval "$ac_link") 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10186   { (case "(($ac_try" in
10187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188   *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191   (eval "$ac_try") 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; }; then
10195   ac_cv_type_getgroups=gid_t
10196 else
10197   echo "$as_me: program exited with status $ac_status" >&5
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10200
10201 ( exit $ac_status )
10202 ac_cv_type_getgroups=int
10203 fi
10204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10205 fi
10206
10207
10208 if test $ac_cv_type_getgroups = cross; then
10209         cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h.  */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h.  */
10215 #include <unistd.h>
10216
10217 _ACEOF
10218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10219   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10220   ac_cv_type_getgroups=gid_t
10221 else
10222   ac_cv_type_getgroups=int
10223 fi
10224 rm -f conftest*
10225
10226 fi
10227 fi
10228 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10229 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
10230
10231 cat >>confdefs.h <<_ACEOF
10232 #define GETGROUPS_T $ac_cv_type_getgroups
10233 _ACEOF
10234
10235
10236 if test "${target}" = "${build}"; then
10237   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10238 else
10239   case "${target}" in
10240         # This condition may need some tweaking.  It should include all
10241         # targets where the array type of the second argument of getgroups
10242         # is int and the type of gid_t is not equivalent to int.
10243         *-*-sunos* | *-*-ultrix*)
10244                 TARGET_GETGROUPS_T=int
10245                 ;;
10246         *)
10247                 TARGET_GETGROUPS_T=gid_t
10248                 ;;
10249   esac
10250 fi
10251
10252
10253
10254 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10255 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
10256 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10257   echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259   cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h.  */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h.  */
10265 #include <sys/mman.h>
10266 _ACEOF
10267 if { (ac_try="$ac_cpp conftest.$ac_ext"
10268 case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10274   ac_status=$?
10275   grep -v '^ *+' conftest.er1 >conftest.err
10276   rm -f conftest.er1
10277   cat conftest.err >&5
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); } >/dev/null && {
10280          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10281          test ! -s conftest.err
10282        }; then
10283   ac_cv_header_sys_mman_h=yes
10284 else
10285   echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10287
10288   ac_cv_header_sys_mman_h=no
10289 fi
10290
10291 rm -f conftest.err conftest.$ac_ext
10292 fi
10293 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10294 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
10295 if test $ac_cv_header_sys_mman_h = yes; then
10296   gcc_header_sys_mman_h=yes
10297 else
10298   gcc_header_sys_mman_h=no
10299 fi
10300
10301 { echo "$as_me:$LINENO: checking for mmap" >&5
10302 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
10303 if test "${ac_cv_func_mmap+set}" = set; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h.  */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h.  */
10312 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10314 #define mmap innocuous_mmap
10315
10316 /* System header to define __stub macros and hopefully few prototypes,
10317     which can conflict with char mmap (); below.
10318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10319     <limits.h> exists even on freestanding compilers.  */
10320
10321 #ifdef __STDC__
10322 # include <limits.h>
10323 #else
10324 # include <assert.h>
10325 #endif
10326
10327 #undef mmap
10328
10329 /* Override any GCC internal prototype to avoid an error.
10330    Use char because int might match the return type of a GCC
10331    builtin and then its argument prototype would still apply.  */
10332 #ifdef __cplusplus
10333 extern "C"
10334 #endif
10335 char mmap ();
10336 /* The GNU C library defines this for functions which it implements
10337     to always fail with ENOSYS.  Some functions are actually named
10338     something starting with __ and the normal name is an alias.  */
10339 #if defined __stub_mmap || defined __stub___mmap
10340 choke me
10341 #endif
10342
10343 int
10344 main ()
10345 {
10346 return mmap ();
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355   *) ac_try_echo=$ac_try;;
10356 esac
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358   (eval "$ac_link") 2>conftest.er1
10359   ac_status=$?
10360   grep -v '^ *+' conftest.er1 >conftest.err
10361   rm -f conftest.er1
10362   cat conftest.err >&5
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } && {
10365          test -z "$ac_c_werror_flag" ||
10366          test ! -s conftest.err
10367        } && test -s conftest$ac_exeext &&
10368        $as_test_x conftest$ac_exeext; then
10369   ac_cv_func_mmap=yes
10370 else
10371   echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10373
10374         ac_cv_func_mmap=no
10375 fi
10376
10377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10378       conftest$ac_exeext conftest.$ac_ext
10379 fi
10380 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10381 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
10382 if test $ac_cv_func_mmap = yes; then
10383   gcc_func_mmap=yes
10384 else
10385   gcc_func_mmap=no
10386 fi
10387
10388 if test "$gcc_header_sys_mman_h" != yes \
10389  || test "$gcc_func_mmap" != yes; then
10390    gcc_cv_func_mmap_file=no
10391    gcc_cv_func_mmap_dev_zero=no
10392    gcc_cv_func_mmap_anon=no
10393 else
10394    { echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10395 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6; }
10396 if test "${gcc_cv_func_mmap_file+set}" = set; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399   # Add a system to this blacklist if
10400    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10401    # memory area containing the same data that you'd get if you applied
10402    # read() to the same fd.  The only system known to have a problem here
10403    # is VMS, where text files have record structure.
10404    case "$host_os" in
10405      vms* | ultrix*)
10406         gcc_cv_func_mmap_file=no ;;
10407      *)
10408         gcc_cv_func_mmap_file=yes;;
10409    esac
10410 fi
10411 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10412 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6; }
10413    { echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10414 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6; }
10415 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10416   echo $ECHO_N "(cached) $ECHO_C" >&6
10417 else
10418   # Add a system to this blacklist if it has mmap() but /dev/zero
10419    # does not exist, or if mmapping /dev/zero does not give anonymous
10420    # zeroed pages with both the following properties:
10421    # 1. If you map N consecutive pages in with one call, and then
10422    #    unmap any subset of those pages, the pages that were not
10423    #    explicitly unmapped remain accessible.
10424    # 2. If you map two adjacent blocks of memory and then unmap them
10425    #    both at once, they must both go away.
10426    # Systems known to be in this category are Windows (all variants),
10427    # VMS, and Darwin.
10428    case "$host_os" in
10429      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10430         gcc_cv_func_mmap_dev_zero=no ;;
10431      *)
10432         gcc_cv_func_mmap_dev_zero=yes;;
10433    esac
10434 fi
10435 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10436 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6; }
10437
10438    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10439    { echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10440 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6; }
10441 if test "${gcc_cv_decl_map_anon+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 #include <sys/types.h>
10451 #include <sys/mman.h>
10452 #include <unistd.h>
10453
10454 #ifndef MAP_ANONYMOUS
10455 #define MAP_ANONYMOUS MAP_ANON
10456 #endif
10457
10458 int
10459 main ()
10460 {
10461 int n = MAP_ANONYMOUS;
10462   ;
10463   return 0;
10464 }
10465 _ACEOF
10466 rm -f conftest.$ac_objext
10467 if { (ac_try="$ac_compile"
10468 case "(($ac_try" in
10469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470   *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473   (eval "$ac_compile") 2>conftest.er1
10474   ac_status=$?
10475   grep -v '^ *+' conftest.er1 >conftest.err
10476   rm -f conftest.er1
10477   cat conftest.err >&5
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); } && {
10480          test -z "$ac_c_werror_flag" ||
10481          test ! -s conftest.err
10482        } && test -s conftest.$ac_objext; then
10483   gcc_cv_decl_map_anon=yes
10484 else
10485   echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488         gcc_cv_decl_map_anon=no
10489 fi
10490
10491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10492 fi
10493 { echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10494 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6; }
10495
10496    if test $gcc_cv_decl_map_anon = no; then
10497      gcc_cv_func_mmap_anon=no
10498    else
10499      { echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10500 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6; }
10501 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10502   echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10505    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10506    # doesn't give anonymous zeroed pages with the same properties listed
10507    # above for use of /dev/zero.
10508    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10509    case "$host_os" in
10510      vms* | cygwin* | pe | mingw* | sco* | udk* )
10511         gcc_cv_func_mmap_anon=no ;;
10512      *)
10513         gcc_cv_func_mmap_anon=yes;;
10514    esac
10515 fi
10516 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10517 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6; }
10518    fi
10519 fi
10520
10521 if test $gcc_cv_func_mmap_file = yes; then
10522
10523 cat >>confdefs.h <<\_ACEOF
10524 #define HAVE_MMAP_FILE 1
10525 _ACEOF
10526
10527 fi
10528 if test $gcc_cv_func_mmap_dev_zero = yes; then
10529
10530 cat >>confdefs.h <<\_ACEOF
10531 #define HAVE_MMAP_DEV_ZERO 1
10532 _ACEOF
10533
10534 fi
10535 if test $gcc_cv_func_mmap_anon = yes; then
10536
10537 cat >>confdefs.h <<\_ACEOF
10538 #define HAVE_MMAP_ANON 1
10539 _ACEOF
10540
10541 fi
10542
10543
10544 case "${host}" in
10545 *-*-*vms*)
10546   # Under VMS, vfork works very differently than on Unix. The standard test
10547   # won't work, and it isn't easily adaptable. It makes more sense to
10548   # just force it.
10549   ac_cv_func_vfork_works=yes
10550   ;;
10551 esac
10552 { echo "$as_me:$LINENO: checking for pid_t" >&5
10553 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10554 if test "${ac_cv_type_pid_t+set}" = set; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563 $ac_includes_default
10564 typedef pid_t ac__type_new_;
10565 int
10566 main ()
10567 {
10568 if ((ac__type_new_ *) 0)
10569   return 0;
10570 if (sizeof (ac__type_new_))
10571   return 0;
10572   ;
10573   return 0;
10574 }
10575 _ACEOF
10576 rm -f conftest.$ac_objext
10577 if { (ac_try="$ac_compile"
10578 case "(($ac_try" in
10579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580   *) ac_try_echo=$ac_try;;
10581 esac
10582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10583   (eval "$ac_compile") 2>conftest.er1
10584   ac_status=$?
10585   grep -v '^ *+' conftest.er1 >conftest.err
10586   rm -f conftest.er1
10587   cat conftest.err >&5
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); } && {
10590          test -z "$ac_c_werror_flag" ||
10591          test ! -s conftest.err
10592        } && test -s conftest.$ac_objext; then
10593   ac_cv_type_pid_t=yes
10594 else
10595   echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598         ac_cv_type_pid_t=no
10599 fi
10600
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 fi
10603 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10604 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10605 if test $ac_cv_type_pid_t = yes; then
10606   :
10607 else
10608
10609 cat >>confdefs.h <<_ACEOF
10610 #define pid_t int
10611 _ACEOF
10612
10613 fi
10614
10615
10616 for ac_header in vfork.h
10617 do
10618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10622   echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624   cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h.  */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h.  */
10630 #include <$ac_header>
10631 _ACEOF
10632 if { (ac_try="$ac_cpp conftest.$ac_ext"
10633 case "(($ac_try" in
10634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635   *) ac_try_echo=$ac_try;;
10636 esac
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10639   ac_status=$?
10640   grep -v '^ *+' conftest.er1 >conftest.err
10641   rm -f conftest.er1
10642   cat conftest.err >&5
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); } >/dev/null && {
10645          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10646          test ! -s conftest.err
10647        }; then
10648   eval "$as_ac_Header=yes"
10649 else
10650   echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653   eval "$as_ac_Header=no"
10654 fi
10655
10656 rm -f conftest.err conftest.$ac_ext
10657 fi
10658 ac_res=`eval echo '${'$as_ac_Header'}'`
10659                { echo "$as_me:$LINENO: result: $ac_res" >&5
10660 echo "${ECHO_T}$ac_res" >&6; }
10661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10662   cat >>confdefs.h <<_ACEOF
10663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10664 _ACEOF
10665
10666 fi
10667 done
10668
10669
10670
10671 for ac_func in fork vfork
10672 do
10673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10677   echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679   cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h.  */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h.  */
10685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10687 #define $ac_func innocuous_$ac_func
10688
10689 /* System header to define __stub macros and hopefully few prototypes,
10690     which can conflict with char $ac_func (); below.
10691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10692     <limits.h> exists even on freestanding compilers.  */
10693
10694 #ifdef __STDC__
10695 # include <limits.h>
10696 #else
10697 # include <assert.h>
10698 #endif
10699
10700 #undef $ac_func
10701
10702 /* Override any GCC internal prototype to avoid an error.
10703    Use char because int might match the return type of a GCC
10704    builtin and then its argument prototype would still apply.  */
10705 #ifdef __cplusplus
10706 extern "C"
10707 #endif
10708 char $ac_func ();
10709 /* The GNU C library defines this for functions which it implements
10710     to always fail with ENOSYS.  Some functions are actually named
10711     something starting with __ and the normal name is an alias.  */
10712 #if defined __stub_$ac_func || defined __stub___$ac_func
10713 choke me
10714 #endif
10715
10716 int
10717 main ()
10718 {
10719 return $ac_func ();
10720   ;
10721   return 0;
10722 }
10723 _ACEOF
10724 rm -f conftest.$ac_objext conftest$ac_exeext
10725 if { (ac_try="$ac_link"
10726 case "(($ac_try" in
10727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728   *) ac_try_echo=$ac_try;;
10729 esac
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731   (eval "$ac_link") 2>conftest.er1
10732   ac_status=$?
10733   grep -v '^ *+' conftest.er1 >conftest.err
10734   rm -f conftest.er1
10735   cat conftest.err >&5
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); } && {
10738          test -z "$ac_c_werror_flag" ||
10739          test ! -s conftest.err
10740        } && test -s conftest$ac_exeext &&
10741        $as_test_x conftest$ac_exeext; then
10742   eval "$as_ac_var=yes"
10743 else
10744   echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10746
10747         eval "$as_ac_var=no"
10748 fi
10749
10750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10751       conftest$ac_exeext conftest.$ac_ext
10752 fi
10753 ac_res=`eval echo '${'$as_ac_var'}'`
10754                { echo "$as_me:$LINENO: result: $ac_res" >&5
10755 echo "${ECHO_T}$ac_res" >&6; }
10756 if test `eval echo '${'$as_ac_var'}'` = yes; then
10757   cat >>confdefs.h <<_ACEOF
10758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10759 _ACEOF
10760
10761 fi
10762 done
10763
10764 if test "x$ac_cv_func_fork" = xyes; then
10765   { echo "$as_me:$LINENO: checking for working fork" >&5
10766 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10767 if test "${ac_cv_func_fork_works+set}" = set; then
10768   echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770   if test "$cross_compiling" = yes; then
10771   ac_cv_func_fork_works=cross
10772 else
10773   cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779 $ac_includes_default
10780 int
10781 main ()
10782 {
10783
10784           /* By Ruediger Kuhlmann. */
10785           return fork () < 0;
10786
10787   ;
10788   return 0;
10789 }
10790 _ACEOF
10791 rm -f conftest$ac_exeext
10792 if { (ac_try="$ac_link"
10793 case "(($ac_try" in
10794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795   *) ac_try_echo=$ac_try;;
10796 esac
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798   (eval "$ac_link") 2>&5
10799   ac_status=$?
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10802   { (case "(($ac_try" in
10803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804   *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807   (eval "$ac_try") 2>&5
10808   ac_status=$?
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); }; }; then
10811   ac_cv_func_fork_works=yes
10812 else
10813   echo "$as_me: program exited with status $ac_status" >&5
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10816
10817 ( exit $ac_status )
10818 ac_cv_func_fork_works=no
10819 fi
10820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10821 fi
10822
10823
10824 fi
10825 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10826 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10827
10828 else
10829   ac_cv_func_fork_works=$ac_cv_func_fork
10830 fi
10831 if test "x$ac_cv_func_fork_works" = xcross; then
10832   case $host in
10833     *-*-amigaos* | *-*-msdosdjgpp*)
10834       # Override, as these systems have only a dummy fork() stub
10835       ac_cv_func_fork_works=no
10836       ;;
10837     *)
10838       ac_cv_func_fork_works=yes
10839       ;;
10840   esac
10841   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10842 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10843 fi
10844 ac_cv_func_vfork_works=$ac_cv_func_vfork
10845 if test "x$ac_cv_func_vfork" = xyes; then
10846   { echo "$as_me:$LINENO: checking for working vfork" >&5
10847 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10848 if test "${ac_cv_func_vfork_works+set}" = set; then
10849   echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851   if test "$cross_compiling" = yes; then
10852   ac_cv_func_vfork_works=cross
10853 else
10854   cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h.  */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h.  */
10860 /* Thanks to Paul Eggert for this test.  */
10861 $ac_includes_default
10862 #include <sys/wait.h>
10863 #ifdef HAVE_VFORK_H
10864 # include <vfork.h>
10865 #endif
10866 /* On some sparc systems, changes by the child to local and incoming
10867    argument registers are propagated back to the parent.  The compiler
10868    is told about this with #include <vfork.h>, but some compilers
10869    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10870    static variable whose address is put into a register that is
10871    clobbered by the vfork.  */
10872 static void
10873 #ifdef __cplusplus
10874 sparc_address_test (int arg)
10875 # else
10876 sparc_address_test (arg) int arg;
10877 #endif
10878 {
10879   static pid_t child;
10880   if (!child) {
10881     child = vfork ();
10882     if (child < 0) {
10883       perror ("vfork");
10884       _exit(2);
10885     }
10886     if (!child) {
10887       arg = getpid();
10888       write(-1, "", 0);
10889       _exit (arg);
10890     }
10891   }
10892 }
10893
10894 int
10895 main ()
10896 {
10897   pid_t parent = getpid ();
10898   pid_t child;
10899
10900   sparc_address_test (0);
10901
10902   child = vfork ();
10903
10904   if (child == 0) {
10905     /* Here is another test for sparc vfork register problems.  This
10906        test uses lots of local variables, at least as many local
10907        variables as main has allocated so far including compiler
10908        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10909        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10910        reuse the register of parent for one of the local variables,
10911        since it will think that parent can't possibly be used any more
10912        in this routine.  Assigning to the local variable will thus
10913        munge parent in the parent process.  */
10914     pid_t
10915       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10916       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10917     /* Convince the compiler that p..p7 are live; otherwise, it might
10918        use the same hardware register for all 8 local variables.  */
10919     if (p != p1 || p != p2 || p != p3 || p != p4
10920         || p != p5 || p != p6 || p != p7)
10921       _exit(1);
10922
10923     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10924        from child file descriptors.  If the child closes a descriptor
10925        before it execs or exits, this munges the parent's descriptor
10926        as well.  Test for this by closing stdout in the child.  */
10927     _exit(close(fileno(stdout)) != 0);
10928   } else {
10929     int status;
10930     struct stat st;
10931
10932     while (wait(&status) != child)
10933       ;
10934     return (
10935          /* Was there some problem with vforking?  */
10936          child < 0
10937
10938          /* Did the child fail?  (This shouldn't happen.)  */
10939          || status
10940
10941          /* Did the vfork/compiler bug occur?  */
10942          || parent != getpid()
10943
10944          /* Did the file descriptor bug occur?  */
10945          || fstat(fileno(stdout), &st) != 0
10946          );
10947   }
10948 }
10949 _ACEOF
10950 rm -f conftest$ac_exeext
10951 if { (ac_try="$ac_link"
10952 case "(($ac_try" in
10953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954   *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957   (eval "$ac_link") 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10961   { (case "(($ac_try" in
10962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963   *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966   (eval "$ac_try") 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; }; then
10970   ac_cv_func_vfork_works=yes
10971 else
10972   echo "$as_me: program exited with status $ac_status" >&5
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976 ( exit $ac_status )
10977 ac_cv_func_vfork_works=no
10978 fi
10979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10980 fi
10981
10982
10983 fi
10984 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10985 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10986
10987 fi;
10988 if test "x$ac_cv_func_fork_works" = xcross; then
10989   ac_cv_func_vfork_works=$ac_cv_func_vfork
10990   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10991 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10992 fi
10993
10994 if test "x$ac_cv_func_vfork_works" = xyes; then
10995
10996 cat >>confdefs.h <<\_ACEOF
10997 #define HAVE_WORKING_VFORK 1
10998 _ACEOF
10999
11000 else
11001
11002 cat >>confdefs.h <<\_ACEOF
11003 #define vfork fork
11004 _ACEOF
11005
11006 fi
11007 if test "x$ac_cv_func_fork_works" = xyes; then
11008
11009 cat >>confdefs.h <<\_ACEOF
11010 #define HAVE_WORKING_FORK 1
11011 _ACEOF
11012
11013 fi
11014
11015
11016
11017       if test "X$prefix" = "XNONE"; then
11018     acl_final_prefix="$ac_default_prefix"
11019   else
11020     acl_final_prefix="$prefix"
11021   fi
11022   if test "X$exec_prefix" = "XNONE"; then
11023     acl_final_exec_prefix='${prefix}'
11024   else
11025     acl_final_exec_prefix="$exec_prefix"
11026   fi
11027   acl_save_prefix="$prefix"
11028   prefix="$acl_final_prefix"
11029   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11030   prefix="$acl_save_prefix"
11031
11032
11033 # Check whether --with-gnu-ld was given.
11034 if test "${with_gnu_ld+set}" = set; then
11035   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11036 else
11037   with_gnu_ld=no
11038 fi
11039
11040 # Prepare PATH_SEPARATOR.
11041 # The user is always right.
11042 if test "${PATH_SEPARATOR+set}" != set; then
11043   echo "#! /bin/sh" >conf$$.sh
11044   echo  "exit 0"   >>conf$$.sh
11045   chmod +x conf$$.sh
11046   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11047     PATH_SEPARATOR=';'
11048   else
11049     PATH_SEPARATOR=:
11050   fi
11051   rm -f conf$$.sh
11052 fi
11053 ac_prog=ld
11054 if test "$GCC" = yes; then
11055   # Check if gcc -print-prog-name=ld gives a path.
11056   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11057 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
11058   case $host in
11059   *-*-mingw*)
11060     # gcc leaves a trailing carriage return which upsets mingw
11061     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11062   *)
11063     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11064   esac
11065   case $ac_prog in
11066     # Accept absolute paths.
11067     [\\/]* | [A-Za-z]:[\\/]*)
11068       re_direlt='/[^/][^/]*/\.\./'
11069       # Canonicalize the path of ld
11070       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11071       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11072         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11073       done
11074       test -z "$LD" && LD="$ac_prog"
11075       ;;
11076   "")
11077     # If it fails, then pretend we aren't using GCC.
11078     ac_prog=ld
11079     ;;
11080   *)
11081     # If it is relative, then search for the first ld in PATH.
11082     with_gnu_ld=unknown
11083     ;;
11084   esac
11085 elif test "$with_gnu_ld" = yes; then
11086   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11087 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11088 else
11089   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11090 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11091 fi
11092 if test "${acl_cv_path_LD+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   if test -z "$LD"; then
11096   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11097   for ac_dir in $PATH; do
11098     test -z "$ac_dir" && ac_dir=.
11099     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11100       acl_cv_path_LD="$ac_dir/$ac_prog"
11101       # Check to see if the program is GNU ld.  I'd rather use --version,
11102       # but apparently some GNU ld's only accept -v.
11103       # Break only if it was the GNU/non-GNU ld that we prefer.
11104       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11105         test "$with_gnu_ld" != no && break
11106       else
11107         test "$with_gnu_ld" != yes && break
11108       fi
11109     fi
11110   done
11111   IFS="$ac_save_ifs"
11112 else
11113   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11114 fi
11115 fi
11116
11117 LD="$acl_cv_path_LD"
11118 if test -n "$LD"; then
11119   { echo "$as_me:$LINENO: result: $LD" >&5
11120 echo "${ECHO_T}$LD" >&6; }
11121 else
11122   { echo "$as_me:$LINENO: result: no" >&5
11123 echo "${ECHO_T}no" >&6; }
11124 fi
11125 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11126 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11127    { (exit 1); exit 1; }; }
11128 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11129 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11130 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11131   echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11134 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11135   acl_cv_prog_gnu_ld=yes
11136 else
11137   acl_cv_prog_gnu_ld=no
11138 fi
11139 fi
11140 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11141 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
11142 with_gnu_ld=$acl_cv_prog_gnu_ld
11143
11144
11145
11146                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11147 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
11148 if test "${acl_cv_rpath+set}" = set; then
11149   echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151
11152     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11153     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11154     . ./conftest.sh
11155     rm -f ./conftest.sh
11156     acl_cv_rpath=done
11157
11158 fi
11159 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11160 echo "${ECHO_T}$acl_cv_rpath" >&6; }
11161   wl="$acl_cv_wl"
11162   libext="$acl_cv_libext"
11163   shlibext="$acl_cv_shlibext"
11164   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11165   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11166   hardcode_direct="$acl_cv_hardcode_direct"
11167   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11168     # Check whether --enable-rpath was given.
11169 if test "${enable_rpath+set}" = set; then
11170   enableval=$enable_rpath; :
11171 else
11172   enable_rpath=yes
11173 fi
11174
11175
11176
11177
11178
11179
11180
11181
11182     use_additional=yes
11183
11184   acl_save_prefix="$prefix"
11185   prefix="$acl_final_prefix"
11186   acl_save_exec_prefix="$exec_prefix"
11187   exec_prefix="$acl_final_exec_prefix"
11188
11189     eval additional_includedir=\"$includedir\"
11190     eval additional_libdir=\"$libdir\"
11191
11192   exec_prefix="$acl_save_exec_prefix"
11193   prefix="$acl_save_prefix"
11194
11195
11196 # Check whether --with-libiconv-prefix was given.
11197 if test "${with_libiconv_prefix+set}" = set; then
11198   withval=$with_libiconv_prefix;
11199     if test "X$withval" = "Xno"; then
11200       use_additional=no
11201     else
11202       if test "X$withval" = "X"; then
11203
11204   acl_save_prefix="$prefix"
11205   prefix="$acl_final_prefix"
11206   acl_save_exec_prefix="$exec_prefix"
11207   exec_prefix="$acl_final_exec_prefix"
11208
11209           eval additional_includedir=\"$includedir\"
11210           eval additional_libdir=\"$libdir\"
11211
11212   exec_prefix="$acl_save_exec_prefix"
11213   prefix="$acl_save_prefix"
11214
11215       else
11216         additional_includedir="$withval/include"
11217         additional_libdir="$withval/lib"
11218       fi
11219     fi
11220
11221 fi
11222
11223       LIBICONV=
11224   LTLIBICONV=
11225   INCICONV=
11226   rpathdirs=
11227   ltrpathdirs=
11228   names_already_handled=
11229   names_next_round='iconv '
11230   while test -n "$names_next_round"; do
11231     names_this_round="$names_next_round"
11232     names_next_round=
11233     for name in $names_this_round; do
11234       already_handled=
11235       for n in $names_already_handled; do
11236         if test "$n" = "$name"; then
11237           already_handled=yes
11238           break
11239         fi
11240       done
11241       if test -z "$already_handled"; then
11242         names_already_handled="$names_already_handled $name"
11243                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11244         eval value=\"\$HAVE_LIB$uppername\"
11245         if test -n "$value"; then
11246           if test "$value" = yes; then
11247             eval value=\"\$LIB$uppername\"
11248             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11249             eval value=\"\$LTLIB$uppername\"
11250             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11251           else
11252                                     :
11253           fi
11254         else
11255                               found_dir=
11256           found_la=
11257           found_so=
11258           found_a=
11259           if test $use_additional = yes; then
11260             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11261               found_dir="$additional_libdir"
11262               found_so="$additional_libdir/lib$name.$shlibext"
11263               if test -f "$additional_libdir/lib$name.la"; then
11264                 found_la="$additional_libdir/lib$name.la"
11265               fi
11266             else
11267               if test -f "$additional_libdir/lib$name.$libext"; then
11268                 found_dir="$additional_libdir"
11269                 found_a="$additional_libdir/lib$name.$libext"
11270                 if test -f "$additional_libdir/lib$name.la"; then
11271                   found_la="$additional_libdir/lib$name.la"
11272                 fi
11273               fi
11274             fi
11275           fi
11276           if test "X$found_dir" = "X"; then
11277             for x in $LDFLAGS $LTLIBICONV; do
11278
11279   acl_save_prefix="$prefix"
11280   prefix="$acl_final_prefix"
11281   acl_save_exec_prefix="$exec_prefix"
11282   exec_prefix="$acl_final_exec_prefix"
11283   eval x=\"$x\"
11284   exec_prefix="$acl_save_exec_prefix"
11285   prefix="$acl_save_prefix"
11286
11287               case "$x" in
11288                 -L*)
11289                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11290                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11291                     found_dir="$dir"
11292                     found_so="$dir/lib$name.$shlibext"
11293                     if test -f "$dir/lib$name.la"; then
11294                       found_la="$dir/lib$name.la"
11295                     fi
11296                   else
11297                     if test -f "$dir/lib$name.$libext"; then
11298                       found_dir="$dir"
11299                       found_a="$dir/lib$name.$libext"
11300                       if test -f "$dir/lib$name.la"; then
11301                         found_la="$dir/lib$name.la"
11302                       fi
11303                     fi
11304                   fi
11305                   ;;
11306               esac
11307               if test "X$found_dir" != "X"; then
11308                 break
11309               fi
11310             done
11311           fi
11312           if test "X$found_dir" != "X"; then
11313                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11314             if test "X$found_so" != "X"; then
11315                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11316                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11317               else
11318                                                                                 haveit=
11319                 for x in $ltrpathdirs; do
11320                   if test "X$x" = "X$found_dir"; then
11321                     haveit=yes
11322                     break
11323                   fi
11324                 done
11325                 if test -z "$haveit"; then
11326                   ltrpathdirs="$ltrpathdirs $found_dir"
11327                 fi
11328                                 if test "$hardcode_direct" = yes; then
11329                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11330                 else
11331                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11332                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11333                                                             haveit=
11334                     for x in $rpathdirs; do
11335                       if test "X$x" = "X$found_dir"; then
11336                         haveit=yes
11337                         break
11338                       fi
11339                     done
11340                     if test -z "$haveit"; then
11341                       rpathdirs="$rpathdirs $found_dir"
11342                     fi
11343                   else
11344                                                                                 haveit=
11345                     for x in $LDFLAGS $LIBICONV; do
11346
11347   acl_save_prefix="$prefix"
11348   prefix="$acl_final_prefix"
11349   acl_save_exec_prefix="$exec_prefix"
11350   exec_prefix="$acl_final_exec_prefix"
11351   eval x=\"$x\"
11352   exec_prefix="$acl_save_exec_prefix"
11353   prefix="$acl_save_prefix"
11354
11355                       if test "X$x" = "X-L$found_dir"; then
11356                         haveit=yes
11357                         break
11358                       fi
11359                     done
11360                     if test -z "$haveit"; then
11361                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11362                     fi
11363                     if test "$hardcode_minus_L" != no; then
11364                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11365                     else
11366                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11367                     fi
11368                   fi
11369                 fi
11370               fi
11371             else
11372               if test "X$found_a" != "X"; then
11373                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11374               else
11375                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11376               fi
11377             fi
11378                         additional_includedir=
11379             case "$found_dir" in
11380               */lib | */lib/)
11381                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11382                 additional_includedir="$basedir/include"
11383                 ;;
11384             esac
11385             if test "X$additional_includedir" != "X"; then
11386                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11387                 haveit=
11388                 if test "X$additional_includedir" = "X/usr/local/include"; then
11389                   if test -n "$GCC"; then
11390                     case $host_os in
11391                       linux*) haveit=yes;;
11392                     esac
11393                   fi
11394                 fi
11395                 if test -z "$haveit"; then
11396                   for x in $CPPFLAGS $INCICONV; do
11397
11398   acl_save_prefix="$prefix"
11399   prefix="$acl_final_prefix"
11400   acl_save_exec_prefix="$exec_prefix"
11401   exec_prefix="$acl_final_exec_prefix"
11402   eval x=\"$x\"
11403   exec_prefix="$acl_save_exec_prefix"
11404   prefix="$acl_save_prefix"
11405
11406                     if test "X$x" = "X-I$additional_includedir"; then
11407                       haveit=yes
11408                       break
11409                     fi
11410                   done
11411                   if test -z "$haveit"; then
11412                     if test -d "$additional_includedir"; then
11413                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11414                     fi
11415                   fi
11416                 fi
11417               fi
11418             fi
11419                         if test -n "$found_la"; then
11420                                                         save_libdir="$libdir"
11421               case "$found_la" in
11422                 */* | *\\*) . "$found_la" ;;
11423                 *) . "./$found_la" ;;
11424               esac
11425               libdir="$save_libdir"
11426                             for dep in $dependency_libs; do
11427                 case "$dep" in
11428                   -L*)
11429                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11430                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11431                       haveit=
11432                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11433                         if test -n "$GCC"; then
11434                           case $host_os in
11435                             linux*) haveit=yes;;
11436                           esac
11437                         fi
11438                       fi
11439                       if test -z "$haveit"; then
11440                         haveit=
11441                         for x in $LDFLAGS $LIBICONV; do
11442
11443   acl_save_prefix="$prefix"
11444   prefix="$acl_final_prefix"
11445   acl_save_exec_prefix="$exec_prefix"
11446   exec_prefix="$acl_final_exec_prefix"
11447   eval x=\"$x\"
11448   exec_prefix="$acl_save_exec_prefix"
11449   prefix="$acl_save_prefix"
11450
11451                           if test "X$x" = "X-L$additional_libdir"; then
11452                             haveit=yes
11453                             break
11454                           fi
11455                         done
11456                         if test -z "$haveit"; then
11457                           if test -d "$additional_libdir"; then
11458                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11459                           fi
11460                         fi
11461                         haveit=
11462                         for x in $LDFLAGS $LTLIBICONV; do
11463
11464   acl_save_prefix="$prefix"
11465   prefix="$acl_final_prefix"
11466   acl_save_exec_prefix="$exec_prefix"
11467   exec_prefix="$acl_final_exec_prefix"
11468   eval x=\"$x\"
11469   exec_prefix="$acl_save_exec_prefix"
11470   prefix="$acl_save_prefix"
11471
11472                           if test "X$x" = "X-L$additional_libdir"; then
11473                             haveit=yes
11474                             break
11475                           fi
11476                         done
11477                         if test -z "$haveit"; then
11478                           if test -d "$additional_libdir"; then
11479                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11480                           fi
11481                         fi
11482                       fi
11483                     fi
11484                     ;;
11485                   -R*)
11486                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11487                     if test "$enable_rpath" != no; then
11488                                                                   haveit=
11489                       for x in $rpathdirs; do
11490                         if test "X$x" = "X$dir"; then
11491                           haveit=yes
11492                           break
11493                         fi
11494                       done
11495                       if test -z "$haveit"; then
11496                         rpathdirs="$rpathdirs $dir"
11497                       fi
11498                                                                   haveit=
11499                       for x in $ltrpathdirs; do
11500                         if test "X$x" = "X$dir"; then
11501                           haveit=yes
11502                           break
11503                         fi
11504                       done
11505                       if test -z "$haveit"; then
11506                         ltrpathdirs="$ltrpathdirs $dir"
11507                       fi
11508                     fi
11509                     ;;
11510                   -l*)
11511                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11512                     ;;
11513                   *.la)
11514                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11515                     ;;
11516                   *)
11517                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11518                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11519                     ;;
11520                 esac
11521               done
11522             fi
11523           else
11524                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11525             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11526           fi
11527         fi
11528       fi
11529     done
11530   done
11531   if test "X$rpathdirs" != "X"; then
11532     if test -n "$hardcode_libdir_separator"; then
11533                         alldirs=
11534       for found_dir in $rpathdirs; do
11535         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11536       done
11537             acl_save_libdir="$libdir"
11538       libdir="$alldirs"
11539       eval flag=\"$hardcode_libdir_flag_spec\"
11540       libdir="$acl_save_libdir"
11541       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11542     else
11543             for found_dir in $rpathdirs; do
11544         acl_save_libdir="$libdir"
11545         libdir="$found_dir"
11546         eval flag=\"$hardcode_libdir_flag_spec\"
11547         libdir="$acl_save_libdir"
11548         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11549       done
11550     fi
11551   fi
11552   if test "X$ltrpathdirs" != "X"; then
11553             for found_dir in $ltrpathdirs; do
11554       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11555     done
11556   fi
11557
11558
11559
11560
11561
11562
11563
11564           am_save_CPPFLAGS="$CPPFLAGS"
11565
11566   for element in $INCICONV; do
11567     haveit=
11568     for x in $CPPFLAGS; do
11569
11570   acl_save_prefix="$prefix"
11571   prefix="$acl_final_prefix"
11572   acl_save_exec_prefix="$exec_prefix"
11573   exec_prefix="$acl_final_exec_prefix"
11574   eval x=\"$x\"
11575   exec_prefix="$acl_save_exec_prefix"
11576   prefix="$acl_save_prefix"
11577
11578       if test "X$x" = "X$element"; then
11579         haveit=yes
11580         break
11581       fi
11582     done
11583     if test -z "$haveit"; then
11584       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11585     fi
11586   done
11587
11588
11589   { echo "$as_me:$LINENO: checking for iconv" >&5
11590 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
11591 if test "${am_cv_func_iconv+set}" = set; then
11592   echo $ECHO_N "(cached) $ECHO_C" >&6
11593 else
11594
11595     am_cv_func_iconv="no, consider installing GNU libiconv"
11596     am_cv_lib_iconv=no
11597     cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h.  */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h.  */
11603 #include <stdlib.h>
11604 #include <iconv.h>
11605 int
11606 main ()
11607 {
11608 iconv_t cd = iconv_open("","");
11609        iconv(cd,NULL,NULL,NULL,NULL);
11610        iconv_close(cd);
11611   ;
11612   return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (ac_try="$ac_link"
11617 case "(($ac_try" in
11618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619   *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622   (eval "$ac_link") 2>conftest.er1
11623   ac_status=$?
11624   grep -v '^ *+' conftest.er1 >conftest.err
11625   rm -f conftest.er1
11626   cat conftest.err >&5
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); } && {
11629          test -z "$ac_c_werror_flag" ||
11630          test ! -s conftest.err
11631        } && test -s conftest$ac_exeext &&
11632        $as_test_x conftest$ac_exeext; then
11633   am_cv_func_iconv=yes
11634 else
11635   echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11637
11638
11639 fi
11640
11641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11642       conftest$ac_exeext conftest.$ac_ext
11643     if test "$am_cv_func_iconv" != yes; then
11644       am_save_LIBS="$LIBS"
11645       LIBS="$LIBS $LIBICONV"
11646       cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652 #include <stdlib.h>
11653 #include <iconv.h>
11654 int
11655 main ()
11656 {
11657 iconv_t cd = iconv_open("","");
11658          iconv(cd,NULL,NULL,NULL,NULL);
11659          iconv_close(cd);
11660   ;
11661   return 0;
11662 }
11663 _ACEOF
11664 rm -f conftest.$ac_objext conftest$ac_exeext
11665 if { (ac_try="$ac_link"
11666 case "(($ac_try" in
11667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668   *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671   (eval "$ac_link") 2>conftest.er1
11672   ac_status=$?
11673   grep -v '^ *+' conftest.er1 >conftest.err
11674   rm -f conftest.er1
11675   cat conftest.err >&5
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } && {
11678          test -z "$ac_c_werror_flag" ||
11679          test ! -s conftest.err
11680        } && test -s conftest$ac_exeext &&
11681        $as_test_x conftest$ac_exeext; then
11682   am_cv_lib_iconv=yes
11683         am_cv_func_iconv=yes
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11687
11688
11689 fi
11690
11691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11692       conftest$ac_exeext conftest.$ac_ext
11693       LIBS="$am_save_LIBS"
11694     fi
11695
11696 fi
11697 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11698 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
11699   if test "$am_cv_func_iconv" = yes; then
11700
11701 cat >>confdefs.h <<\_ACEOF
11702 #define HAVE_ICONV 1
11703 _ACEOF
11704
11705   fi
11706   if test "$am_cv_lib_iconv" = yes; then
11707     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11708 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
11709     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
11710 echo "${ECHO_T}$LIBICONV" >&6; }
11711   else
11712             CPPFLAGS="$am_save_CPPFLAGS"
11713     LIBICONV=
11714     LTLIBICONV=
11715   fi
11716
11717
11718
11719   if test "$am_cv_func_iconv" = yes; then
11720     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
11721 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
11722     if test "${am_cv_proto_iconv+set}" = set; then
11723   echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725
11726       cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h.  */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h.  */
11732
11733 #include <stdlib.h>
11734 #include <iconv.h>
11735 extern
11736 #ifdef __cplusplus
11737 "C"
11738 #endif
11739 #if defined(__STDC__) || defined(__cplusplus)
11740 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11741 #else
11742 size_t iconv();
11743 #endif
11744
11745 int
11746 main ()
11747 {
11748
11749   ;
11750   return 0;
11751 }
11752 _ACEOF
11753 rm -f conftest.$ac_objext
11754 if { (ac_try="$ac_compile"
11755 case "(($ac_try" in
11756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757   *) ac_try_echo=$ac_try;;
11758 esac
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760   (eval "$ac_compile") 2>conftest.er1
11761   ac_status=$?
11762   grep -v '^ *+' conftest.er1 >conftest.err
11763   rm -f conftest.er1
11764   cat conftest.err >&5
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); } && {
11767          test -z "$ac_c_werror_flag" ||
11768          test ! -s conftest.err
11769        } && test -s conftest.$ac_objext; then
11770   am_cv_proto_iconv_arg1=""
11771 else
11772   echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11774
11775         am_cv_proto_iconv_arg1="const"
11776 fi
11777
11778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11779       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11780 fi
11781
11782     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11783     { echo "$as_me:$LINENO: result: ${ac_t:-
11784          }$am_cv_proto_iconv" >&5
11785 echo "${ECHO_T}${ac_t:-
11786          }$am_cv_proto_iconv" >&6; }
11787
11788 cat >>confdefs.h <<_ACEOF
11789 #define ICONV_CONST $am_cv_proto_iconv_arg1
11790 _ACEOF
11791
11792   fi
11793
11794 # Until we have in-tree GNU iconv:
11795 LIBICONV_DEP=
11796
11797
11798
11799   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11800 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
11801 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11802   echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804   cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 #include <locale.h>
11811 int
11812 main ()
11813 {
11814 return LC_MESSAGES
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (ac_try="$ac_link"
11821 case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_link") 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } && {
11833          test -z "$ac_c_werror_flag" ||
11834          test ! -s conftest.err
11835        } && test -s conftest$ac_exeext &&
11836        $as_test_x conftest$ac_exeext; then
11837   am_cv_val_LC_MESSAGES=yes
11838 else
11839   echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11841
11842         am_cv_val_LC_MESSAGES=no
11843 fi
11844
11845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11846       conftest$ac_exeext conftest.$ac_ext
11847 fi
11848 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11849 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
11850   if test $am_cv_val_LC_MESSAGES = yes; then
11851
11852 cat >>confdefs.h <<\_ACEOF
11853 #define HAVE_LC_MESSAGES 1
11854 _ACEOF
11855
11856   fi
11857
11858
11859
11860   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11861 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
11862 if test "${am_cv_langinfo_codeset+set}" = set; then
11863   echo $ECHO_N "(cached) $ECHO_C" >&6
11864 else
11865   cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h.  */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h.  */
11871 #include <langinfo.h>
11872 int
11873 main ()
11874 {
11875 char* cs = nl_langinfo(CODESET);
11876   ;
11877   return 0;
11878 }
11879 _ACEOF
11880 rm -f conftest.$ac_objext conftest$ac_exeext
11881 if { (ac_try="$ac_link"
11882 case "(($ac_try" in
11883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884   *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887   (eval "$ac_link") 2>conftest.er1
11888   ac_status=$?
11889   grep -v '^ *+' conftest.er1 >conftest.err
11890   rm -f conftest.er1
11891   cat conftest.err >&5
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); } && {
11894          test -z "$ac_c_werror_flag" ||
11895          test ! -s conftest.err
11896        } && test -s conftest$ac_exeext &&
11897        $as_test_x conftest$ac_exeext; then
11898   am_cv_langinfo_codeset=yes
11899 else
11900   echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903         am_cv_langinfo_codeset=no
11904 fi
11905
11906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11907       conftest$ac_exeext conftest.$ac_ext
11908
11909 fi
11910 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11911 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
11912   if test $am_cv_langinfo_codeset = yes; then
11913
11914 cat >>confdefs.h <<\_ACEOF
11915 #define HAVE_LANGINFO_CODESET 1
11916 _ACEOF
11917
11918   fi
11919
11920
11921 # We will need to find libiberty.h and ansidecl.h
11922 saved_CFLAGS="$CFLAGS"
11923 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11964         strsignal strstr strverscmp \
11965         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11966         free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
11967 do
11968   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11969 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11970 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
11971 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974   cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h.  */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h.  */
11980 #undef $ac_tr_decl
11981 #define $ac_tr_decl 1
11982
11983 #include "ansidecl.h"
11984 #include "system.h"
11985
11986 int
11987 main ()
11988 {
11989 #ifndef $ac_func
11990 char *(*pfn) = (char *(*)) $ac_func ;
11991 #endif
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000   *) ac_try_echo=$ac_try;;
12001 esac
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003   (eval "$ac_compile") 2>conftest.er1
12004   ac_status=$?
12005   grep -v '^ *+' conftest.er1 >conftest.err
12006   rm -f conftest.er1
12007   cat conftest.err >&5
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); } && {
12010          test -z "$ac_c_werror_flag" ||
12011          test ! -s conftest.err
12012        } && test -s conftest.$ac_objext; then
12013   eval "gcc_cv_have_decl_$ac_func=yes"
12014 else
12015   echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12017
12018         eval "gcc_cv_have_decl_$ac_func=no"
12019 fi
12020
12021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12022 fi
12023
12024 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12025   { echo "$as_me:$LINENO: result: yes" >&5
12026 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12027 #define $ac_tr_decl 1
12028 _ACEOF
12029
12030 else
12031   { echo "$as_me:$LINENO: result: no" >&5
12032 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12033 #define $ac_tr_decl 0
12034 _ACEOF
12035
12036 fi
12037
12038 done
12039
12040
12041
12042
12043
12044 for ac_func in getrlimit setrlimit getrusage
12045 do
12046   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12047 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12048 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12049 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12050   echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052   cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h.  */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h.  */
12058 #undef $ac_tr_decl
12059 #define $ac_tr_decl 1
12060
12061 #include "ansidecl.h"
12062 #include "system.h"
12063 #ifdef HAVE_SYS_RESOURCE_H
12064 #include <sys/resource.h>
12065 #endif
12066
12067
12068 int
12069 main ()
12070 {
12071 #ifndef $ac_func
12072 char *(*pfn) = (char *(*)) $ac_func ;
12073 #endif
12074   ;
12075   return 0;
12076 }
12077 _ACEOF
12078 rm -f conftest.$ac_objext
12079 if { (ac_try="$ac_compile"
12080 case "(($ac_try" in
12081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082   *) ac_try_echo=$ac_try;;
12083 esac
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085   (eval "$ac_compile") 2>conftest.er1
12086   ac_status=$?
12087   grep -v '^ *+' conftest.er1 >conftest.err
12088   rm -f conftest.er1
12089   cat conftest.err >&5
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); } && {
12092          test -z "$ac_c_werror_flag" ||
12093          test ! -s conftest.err
12094        } && test -s conftest.$ac_objext; then
12095   eval "gcc_cv_have_decl_$ac_func=yes"
12096 else
12097   echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100         eval "gcc_cv_have_decl_$ac_func=no"
12101 fi
12102
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 fi
12105
12106 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12107   { echo "$as_me:$LINENO: result: yes" >&5
12108 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12109 #define $ac_tr_decl 1
12110 _ACEOF
12111
12112 else
12113   { echo "$as_me:$LINENO: result: no" >&5
12114 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12115 #define $ac_tr_decl 0
12116 _ACEOF
12117
12118 fi
12119
12120 done
12121
12122
12123 cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h.  */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h.  */
12129
12130 #include "ansidecl.h"
12131 #include "system.h"
12132 #ifdef HAVE_SYS_RESOURCE_H
12133 #include <sys/resource.h>
12134 #endif
12135
12136 int
12137 main ()
12138 {
12139 rlim_t l = 0;
12140   ;
12141   return 0;
12142 }
12143 _ACEOF
12144 rm -f conftest.$ac_objext
12145 if { (ac_try="$ac_compile"
12146 case "(($ac_try" in
12147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148   *) ac_try_echo=$ac_try;;
12149 esac
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151   (eval "$ac_compile") 2>conftest.er1
12152   ac_status=$?
12153   grep -v '^ *+' conftest.er1 >conftest.err
12154   rm -f conftest.er1
12155   cat conftest.err >&5
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); } && {
12158          test -z "$ac_c_werror_flag" ||
12159          test ! -s conftest.err
12160        } && test -s conftest.$ac_objext; then
12161   :
12162 else
12163   echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12165
12166
12167 cat >>confdefs.h <<\_ACEOF
12168 #define rlim_t long
12169 _ACEOF
12170
12171 fi
12172
12173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174
12175 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12176 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12177 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12178 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12179
12180 for ac_func in ldgetname
12181 do
12182   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12183 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12184 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12185 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12186   echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188   cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h.  */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h.  */
12194 #undef $ac_tr_decl
12195 #define $ac_tr_decl 1
12196
12197 #include "ansidecl.h"
12198 #include "system.h"
12199 #ifdef HAVE_LDFCN_H
12200 #undef FREAD
12201 #undef FWRITE
12202 #include <ldfcn.h>
12203 #endif
12204
12205
12206 int
12207 main ()
12208 {
12209 #ifndef $ac_func
12210 char *(*pfn) = (char *(*)) $ac_func ;
12211 #endif
12212   ;
12213   return 0;
12214 }
12215 _ACEOF
12216 rm -f conftest.$ac_objext
12217 if { (ac_try="$ac_compile"
12218 case "(($ac_try" in
12219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220   *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223   (eval "$ac_compile") 2>conftest.er1
12224   ac_status=$?
12225   grep -v '^ *+' conftest.er1 >conftest.err
12226   rm -f conftest.er1
12227   cat conftest.err >&5
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); } && {
12230          test -z "$ac_c_werror_flag" ||
12231          test ! -s conftest.err
12232        } && test -s conftest.$ac_objext; then
12233   eval "gcc_cv_have_decl_$ac_func=yes"
12234 else
12235   echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12237
12238         eval "gcc_cv_have_decl_$ac_func=no"
12239 fi
12240
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 fi
12243
12244 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12245   { echo "$as_me:$LINENO: result: yes" >&5
12246 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12247 #define $ac_tr_decl 1
12248 _ACEOF
12249
12250 else
12251   { echo "$as_me:$LINENO: result: no" >&5
12252 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12253 #define $ac_tr_decl 0
12254 _ACEOF
12255
12256 fi
12257
12258 done
12259
12260
12261
12262 for ac_func in times
12263 do
12264   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12265 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12266 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12267 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12268   echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270   cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276 #undef $ac_tr_decl
12277 #define $ac_tr_decl 1
12278
12279 #include "ansidecl.h"
12280 #include "system.h"
12281 #ifdef HAVE_SYS_TIMES_H
12282 #include <sys/times.h>
12283 #endif
12284
12285
12286 int
12287 main ()
12288 {
12289 #ifndef $ac_func
12290 char *(*pfn) = (char *(*)) $ac_func ;
12291 #endif
12292   ;
12293   return 0;
12294 }
12295 _ACEOF
12296 rm -f conftest.$ac_objext
12297 if { (ac_try="$ac_compile"
12298 case "(($ac_try" in
12299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300   *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303   (eval "$ac_compile") 2>conftest.er1
12304   ac_status=$?
12305   grep -v '^ *+' conftest.er1 >conftest.err
12306   rm -f conftest.er1
12307   cat conftest.err >&5
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); } && {
12310          test -z "$ac_c_werror_flag" ||
12311          test ! -s conftest.err
12312        } && test -s conftest.$ac_objext; then
12313   eval "gcc_cv_have_decl_$ac_func=yes"
12314 else
12315   echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12317
12318         eval "gcc_cv_have_decl_$ac_func=no"
12319 fi
12320
12321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 fi
12323
12324 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12325   { echo "$as_me:$LINENO: result: yes" >&5
12326 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12327 #define $ac_tr_decl 1
12328 _ACEOF
12329
12330 else
12331   { echo "$as_me:$LINENO: result: no" >&5
12332 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12333 #define $ac_tr_decl 0
12334 _ACEOF
12335
12336 fi
12337
12338 done
12339
12340
12341
12342 for ac_func in sigaltstack
12343 do
12344   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12345 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12346 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12347 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12348   echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350   cat >conftest.$ac_ext <<_ACEOF
12351 /* confdefs.h.  */
12352 _ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h.  */
12356 #undef $ac_tr_decl
12357 #define $ac_tr_decl 1
12358
12359 #include "ansidecl.h"
12360 #include "system.h"
12361 #include <signal.h>
12362
12363
12364 int
12365 main ()
12366 {
12367 #ifndef $ac_func
12368 char *(*pfn) = (char *(*)) $ac_func ;
12369 #endif
12370   ;
12371   return 0;
12372 }
12373 _ACEOF
12374 rm -f conftest.$ac_objext
12375 if { (ac_try="$ac_compile"
12376 case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381   (eval "$ac_compile") 2>conftest.er1
12382   ac_status=$?
12383   grep -v '^ *+' conftest.er1 >conftest.err
12384   rm -f conftest.er1
12385   cat conftest.err >&5
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } && {
12388          test -z "$ac_c_werror_flag" ||
12389          test ! -s conftest.err
12390        } && test -s conftest.$ac_objext; then
12391   eval "gcc_cv_have_decl_$ac_func=yes"
12392 else
12393   echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12395
12396         eval "gcc_cv_have_decl_$ac_func=no"
12397 fi
12398
12399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12400 fi
12401
12402 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12403   { echo "$as_me:$LINENO: result: yes" >&5
12404 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12405 #define $ac_tr_decl 1
12406 _ACEOF
12407
12408 else
12409   { echo "$as_me:$LINENO: result: no" >&5
12410 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12411 #define $ac_tr_decl 0
12412 _ACEOF
12413
12414 fi
12415
12416 done
12417
12418
12419 # More time-related stuff.
12420 { echo "$as_me:$LINENO: checking for struct tms" >&5
12421 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6; }
12422 if test "${ac_cv_struct_tms+set}" = set; then
12423   echo $ECHO_N "(cached) $ECHO_C" >&6
12424 else
12425
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h.  */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h.  */
12432
12433 #include "ansidecl.h"
12434 #include "system.h"
12435 #ifdef HAVE_SYS_TIMES_H
12436 #include <sys/times.h>
12437 #endif
12438
12439 int
12440 main ()
12441 {
12442 struct tms tms;
12443   ;
12444   return 0;
12445 }
12446 _ACEOF
12447 rm -f conftest.$ac_objext
12448 if { (ac_try="$ac_compile"
12449 case "(($ac_try" in
12450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451   *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454   (eval "$ac_compile") 2>conftest.er1
12455   ac_status=$?
12456   grep -v '^ *+' conftest.er1 >conftest.err
12457   rm -f conftest.er1
12458   cat conftest.err >&5
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); } && {
12461          test -z "$ac_c_werror_flag" ||
12462          test ! -s conftest.err
12463        } && test -s conftest.$ac_objext; then
12464   ac_cv_struct_tms=yes
12465 else
12466   echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469         ac_cv_struct_tms=no
12470 fi
12471
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473 fi
12474 { echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12475 echo "${ECHO_T}$ac_cv_struct_tms" >&6; }
12476 if test $ac_cv_struct_tms = yes; then
12477
12478 cat >>confdefs.h <<\_ACEOF
12479 #define HAVE_STRUCT_TMS 1
12480 _ACEOF
12481
12482 fi
12483
12484 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12485 # revisit after autoconf 2.50.
12486 { echo "$as_me:$LINENO: checking for clock_t" >&5
12487 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
12488 if test "${gcc_cv_type_clock_t+set}" = set; then
12489   echo $ECHO_N "(cached) $ECHO_C" >&6
12490 else
12491
12492 cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h.  */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h.  */
12498
12499 #include "ansidecl.h"
12500 #include "system.h"
12501
12502 int
12503 main ()
12504 {
12505 clock_t x;
12506   ;
12507   return 0;
12508 }
12509 _ACEOF
12510 rm -f conftest.$ac_objext
12511 if { (ac_try="$ac_compile"
12512 case "(($ac_try" in
12513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514   *) ac_try_echo=$ac_try;;
12515 esac
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517   (eval "$ac_compile") 2>conftest.er1
12518   ac_status=$?
12519   grep -v '^ *+' conftest.er1 >conftest.err
12520   rm -f conftest.er1
12521   cat conftest.err >&5
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); } && {
12524          test -z "$ac_c_werror_flag" ||
12525          test ! -s conftest.err
12526        } && test -s conftest.$ac_objext; then
12527   gcc_cv_type_clock_t=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532         gcc_cv_type_clock_t=no
12533 fi
12534
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536 fi
12537 { echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12538 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6; }
12539 if test $gcc_cv_type_clock_t = yes; then
12540
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_CLOCK_T 1
12543 _ACEOF
12544
12545 fi
12546
12547 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12548 CFLAGS="$saved_CFLAGS"
12549
12550 # Check whether --enable-initfini-array was given.
12551 if test "${enable_initfini_array+set}" = set; then
12552   enableval=$enable_initfini_array;
12553 else
12554
12555 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12556 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
12557 if test "${gcc_cv_initfini_array+set}" = set; then
12558   echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560     if test "$cross_compiling" = yes; then
12561   gcc_cv_initfini_array=no
12562 else
12563   cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h.  */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h.  */
12569
12570 static int x = -1;
12571 int main (void) { return x; }
12572 int foo (void) { x = 0; }
12573 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12574 _ACEOF
12575 rm -f conftest$ac_exeext
12576 if { (ac_try="$ac_link"
12577 case "(($ac_try" in
12578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579   *) ac_try_echo=$ac_try;;
12580 esac
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582   (eval "$ac_link") 2>&5
12583   ac_status=$?
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12586   { (case "(($ac_try" in
12587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588   *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591   (eval "$ac_try") 2>&5
12592   ac_status=$?
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); }; }; then
12595   gcc_cv_initfini_array=yes
12596 else
12597   echo "$as_me: program exited with status $ac_status" >&5
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12600
12601 ( exit $ac_status )
12602 gcc_cv_initfini_array=no
12603 fi
12604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12605 fi
12606
12607
12608 fi
12609 { echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12610 echo "${ECHO_T}$gcc_cv_initfini_array" >&6; }
12611   enable_initfini_array=$gcc_cv_initfini_array
12612
12613 fi
12614
12615 if test $enable_initfini_array = yes; then
12616
12617 cat >>confdefs.h <<\_ACEOF
12618 #define HAVE_INITFINI_ARRAY 1
12619 _ACEOF
12620
12621 fi
12622
12623 # mkdir takes a single argument on some systems.
12624 { echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12625 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; }
12626 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12627   echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629   cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635
12636 #include <sys/types.h>
12637 #ifdef HAVE_SYS_STAT_H
12638 # include <sys/stat.h>
12639 #endif
12640 #ifdef HAVE_UNISTD_H
12641 # include <unistd.h>
12642 #endif
12643 #ifdef HAVE_DIRECT_H
12644 # include <direct.h>
12645 #endif
12646 int
12647 main ()
12648 {
12649 mkdir ("foo", 0);
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext
12655 if { (ac_try="$ac_compile"
12656 case "(($ac_try" in
12657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658   *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661   (eval "$ac_compile") 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } && {
12668          test -z "$ac_c_werror_flag" ||
12669          test ! -s conftest.err
12670        } && test -s conftest.$ac_objext; then
12671   gcc_cv_mkdir_takes_one_arg=no
12672 else
12673   echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676         gcc_cv_mkdir_takes_one_arg=yes
12677 fi
12678
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680 fi
12681 { echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12682 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6; }
12683 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12684
12685 cat >>confdefs.h <<\_ACEOF
12686 #define MKDIR_TAKES_ONE_ARG 1
12687 _ACEOF
12688
12689 fi
12690
12691
12692 # File extensions
12693 manext='.1'
12694 objext='.o'
12695
12696
12697
12698 # With Setjmp/Longjmp based exception handling.
12699 # Check whether --enable-sjlj-exceptions was given.
12700 if test "${enable_sjlj_exceptions+set}" = set; then
12701   enableval=$enable_sjlj_exceptions; sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12702
12703 cat >>confdefs.h <<_ACEOF
12704 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12705 _ACEOF
12706
12707 fi
12708
12709
12710 # For platforms with the unwind ABI which includes an unwind library,
12711 # libunwind, we can choose to use the system libunwind.
12712
12713 # Check whether --with-system-libunwind was given.
12714 if test "${with_system_libunwind+set}" = set; then
12715   withval=$with_system_libunwind;
12716 fi
12717
12718
12719 # config.gcc also contains tests of with_system_libunwind.
12720 if test x$with_system_libunwind = xyes; then
12721
12722 cat >>confdefs.h <<\_ACEOF
12723 #define HAVE_GETIPINFO 1
12724 _ACEOF
12725
12726 fi
12727
12728 # --------------------------------------------------------
12729 # Build, host, and target specific configuration fragments
12730 # --------------------------------------------------------
12731
12732 # Collect build-machine-specific information.
12733 . ${srcdir}/config.build
12734
12735 # Collect host-machine-specific information.
12736 . ${srcdir}/config.host
12737
12738 target_gtfiles=
12739
12740 # Collect target-machine-specific information.
12741 . ${srcdir}/config.gcc
12742
12743 extra_objs="${host_extra_objs} ${extra_objs}"
12744 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12745
12746 # Default the target-machine variables that were not explicitly set.
12747 if test x"$tm_file" = x
12748 then tm_file=$cpu_type/$cpu_type.h; fi
12749
12750 if test x"$extra_headers" = x
12751 then extra_headers=; fi
12752
12753 if test x$md_file = x
12754 then md_file=$cpu_type/$cpu_type.md; fi
12755
12756 if test x$out_file = x
12757 then out_file=$cpu_type/$cpu_type.c; fi
12758
12759 if test x"$tmake_file" = x
12760 then tmake_file=$cpu_type/t-$cpu_type
12761 fi
12762
12763 if test x"$dwarf2" = xyes
12764 then tm_file="$tm_file tm-dwarf2.h"
12765 fi
12766
12767 # Say what files are being used for the output code and MD file.
12768 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12769 echo "Using \`$srcdir/config/$md_file' as machine description file."
12770
12771 # If any of the xm_file variables contain nonexistent files, warn
12772 # about them and drop them.
12773
12774 bx=
12775 for x in $build_xm_file; do
12776   if    test -f $srcdir/config/$x
12777   then      bx="$bx $x"
12778   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12779 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12780   fi
12781 done
12782 build_xm_file="$bx"
12783
12784 hx=
12785 for x in $host_xm_file; do
12786   if    test -f $srcdir/config/$x
12787   then      hx="$hx $x"
12788   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12789 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12790   fi
12791 done
12792 host_xm_file="$hx"
12793
12794 tx=
12795 for x in $xm_file; do
12796   if    test -f $srcdir/config/$x
12797   then      tx="$tx $x"
12798   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12799 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12800   fi
12801 done
12802 xm_file="$tx"
12803
12804 count=a
12805 for f in $tm_file; do
12806         count=${count}x
12807 done
12808 if test $count = ax; then
12809         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12810 else
12811         echo "Using the following target machine macro files:"
12812         for f in $tm_file; do
12813                 echo "  $srcdir/config/$f"
12814         done
12815 fi
12816
12817 if test x$need_64bit_hwint = xyes; then
12818
12819 cat >>confdefs.h <<\_ACEOF
12820 #define NEED_64BIT_HOST_WIDE_INT 1
12821 _ACEOF
12822
12823 fi
12824
12825 if test x$use_long_long_for_widest_fast_int = xyes; then
12826
12827 cat >>confdefs.h <<\_ACEOF
12828 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12829 _ACEOF
12830
12831 fi
12832
12833 count=a
12834 for f in $host_xm_file; do
12835         count=${count}x
12836 done
12837 if test $count = a; then
12838         :
12839 elif test $count = ax; then
12840         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12841 else
12842         echo "Using the following host machine macro files:"
12843         for f in $host_xm_file; do
12844                 echo "  $srcdir/config/$f"
12845         done
12846 fi
12847 echo "Using ${out_host_hook_obj} for host machine hooks."
12848
12849 if test "$host_xm_file" != "$build_xm_file"; then
12850         count=a
12851         for f in $build_xm_file; do
12852                 count=${count}x
12853         done
12854         if test $count = a; then
12855                 :
12856         elif test $count = ax; then
12857                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12858         else
12859                 echo "Using the following build machine macro files:"
12860                 for f in $build_xm_file; do
12861                         echo "  $srcdir/config/$f"
12862                 done
12863         fi
12864 fi
12865
12866 case ${host} in
12867   powerpc*-*-darwin*)
12868     { echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12869 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6; }
12870 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12871   echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873   cat >conftest.$ac_ext <<_ACEOF
12874
12875 #include <sys/cdefs.h>
12876 #include <sys/signal.h>
12877 #include <ucontext.h>
12878 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12879
12880 _ACEOF
12881 rm -f conftest.$ac_objext
12882 if { (ac_try="$ac_compile"
12883 case "(($ac_try" in
12884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885   *) ac_try_echo=$ac_try;;
12886 esac
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888   (eval "$ac_compile") 2>conftest.er1
12889   ac_status=$?
12890   grep -v '^ *+' conftest.er1 >conftest.err
12891   rm -f conftest.er1
12892   cat conftest.err >&5
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); } && {
12895          test -z "$ac_c_werror_flag" ||
12896          test ! -s conftest.err
12897        } && test -s conftest.$ac_objext; then
12898   gcc_cv_mcontext_underscores=no
12899 else
12900   echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12902
12903         gcc_cv_mcontext_underscores=yes
12904 fi
12905
12906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907 fi
12908 { echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12909 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6; }
12910       if test $gcc_cv_mcontext_underscores = yes; then
12911
12912 cat >>confdefs.h <<\_ACEOF
12913 #define HAS_MCONTEXT_T_UNDERSCORES
12914 _ACEOF
12915
12916       fi
12917     ;;
12918 esac
12919
12920 # ---------
12921 # Threading
12922 # ---------
12923
12924 # Check if a valid thread package
12925 case ${enable_threads} in
12926   "" | no)
12927     # No threads
12928     target_thread_file='single'
12929     ;;
12930   yes)
12931     # default
12932     target_thread_file='single'
12933     ;;
12934   aix | dce | gnat | irix | posix | posix95 | rtems | \
12935   single | solaris | vxworks | win32 )
12936     target_thread_file=${enable_threads}
12937     ;;
12938   *)
12939     echo "${enable_threads} is an unknown thread package" 1>&2
12940     exit 1
12941     ;;
12942 esac
12943
12944 if test x${thread_file} = x; then
12945   # No thread file set by target-specific clauses in config.gcc,
12946   # so use file chosen by default logic above
12947   thread_file=${target_thread_file}
12948 fi
12949
12950 # Make gthr-default.h if we have a thread file.
12951 gthread_flags=
12952 if test $thread_file != single; then
12953   rm -f gthr-default.h
12954   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12955   gthread_flags=-DHAVE_GTHR_DEFAULT
12956 fi
12957
12958
12959 # --------
12960 # UNSORTED
12961 # --------
12962
12963 use_cxa_atexit=no
12964 if test x$enable___cxa_atexit = xyes || \
12965    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12966   if test x$host = x$target; then
12967     case $host in
12968       # mingw32 doesn't have __cxa_atexit but uses atexit registration
12969       # keyed to flag_use_cxa_atexit
12970       *-*-mingw32*)
12971         use_cxa_atexit=yes
12972         ;;
12973       *)
12974         { echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12975 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6; }
12976 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12977   echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979   cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h.  */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h.  */
12985 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12987 #define __cxa_atexit innocuous___cxa_atexit
12988
12989 /* System header to define __stub macros and hopefully few prototypes,
12990     which can conflict with char __cxa_atexit (); below.
12991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12992     <limits.h> exists even on freestanding compilers.  */
12993
12994 #ifdef __STDC__
12995 # include <limits.h>
12996 #else
12997 # include <assert.h>
12998 #endif
12999
13000 #undef __cxa_atexit
13001
13002 /* Override any GCC internal prototype to avoid an error.
13003    Use char because int might match the return type of a GCC
13004    builtin and then its argument prototype would still apply.  */
13005 #ifdef __cplusplus
13006 extern "C"
13007 #endif
13008 char __cxa_atexit ();
13009 /* The GNU C library defines this for functions which it implements
13010     to always fail with ENOSYS.  Some functions are actually named
13011     something starting with __ and the normal name is an alias.  */
13012 #if defined __stub___cxa_atexit || defined __stub_____cxa_atexit
13013 choke me
13014 #endif
13015
13016 int
13017 main ()
13018 {
13019 return __cxa_atexit ();
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 rm -f conftest.$ac_objext conftest$ac_exeext
13025 if { (ac_try="$ac_link"
13026 case "(($ac_try" in
13027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028   *) ac_try_echo=$ac_try;;
13029 esac
13030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031   (eval "$ac_link") 2>conftest.er1
13032   ac_status=$?
13033   grep -v '^ *+' conftest.er1 >conftest.err
13034   rm -f conftest.er1
13035   cat conftest.err >&5
13036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037   (exit $ac_status); } && {
13038          test -z "$ac_c_werror_flag" ||
13039          test ! -s conftest.err
13040        } && test -s conftest$ac_exeext &&
13041        $as_test_x conftest$ac_exeext; then
13042   ac_cv_func___cxa_atexit=yes
13043 else
13044   echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13046
13047         ac_cv_func___cxa_atexit=no
13048 fi
13049
13050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13051       conftest$ac_exeext conftest.$ac_ext
13052 fi
13053 { echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13054 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6; }
13055 if test $ac_cv_func___cxa_atexit = yes; then
13056   use_cxa_atexit=yes
13057 else
13058   echo "__cxa_atexit can't be enabled on this target"
13059 fi
13060
13061         ;;
13062     esac
13063   else
13064     # We can't check for __cxa_atexit when building a cross, so assume
13065     # it is available
13066     use_cxa_atexit=yes
13067   fi
13068   if test x$use_cxa_atexit = xyes; then
13069
13070 cat >>confdefs.h <<\_ACEOF
13071 #define DEFAULT_USE_CXA_ATEXIT 2
13072 _ACEOF
13073
13074   fi
13075 fi
13076
13077 use_getipinfo=yes
13078 if test x$with_system_libunwind = xyes; then
13079    if test x$host = x$target; then
13080      { echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13081 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6; }
13082 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13083   echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085   ac_func_search_save_LIBS=$LIBS
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h.  */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h.  */
13092
13093 /* Override any GCC internal prototype to avoid an error.
13094    Use char because int might match the return type of a GCC
13095    builtin and then its argument prototype would still apply.  */
13096 #ifdef __cplusplus
13097 extern "C"
13098 #endif
13099 char _Unwind_GetIPInfo ();
13100 int
13101 main ()
13102 {
13103 return _Unwind_GetIPInfo ();
13104   ;
13105   return 0;
13106 }
13107 _ACEOF
13108 for ac_lib in '' unwind; do
13109   if test -z "$ac_lib"; then
13110     ac_res="none required"
13111   else
13112     ac_res=-l$ac_lib
13113     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13114   fi
13115   rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (ac_try="$ac_link"
13117 case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_link") 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } && {
13129          test -z "$ac_c_werror_flag" ||
13130          test ! -s conftest.err
13131        } && test -s conftest$ac_exeext &&
13132        $as_test_x conftest$ac_exeext; then
13133   ac_cv_search__Unwind_GetIPInfo=$ac_res
13134 else
13135   echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138
13139 fi
13140
13141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13142       conftest$ac_exeext
13143   if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13144   break
13145 fi
13146 done
13147 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13148   :
13149 else
13150   ac_cv_search__Unwind_GetIPInfo=no
13151 fi
13152 rm conftest.$ac_ext
13153 LIBS=$ac_func_search_save_LIBS
13154 fi
13155 { echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13156 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6; }
13157 ac_res=$ac_cv_search__Unwind_GetIPInfo
13158 if test "$ac_res" != no; then
13159   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13160
13161 else
13162   use_getipinfo=no
13163 fi
13164
13165    fi
13166 fi
13167
13168 if test x$use_getipinfo = xyes; then
13169
13170 cat >>confdefs.h <<\_ACEOF
13171 #define HAVE_GETIPINFO 1
13172 _ACEOF
13173
13174 else
13175    echo "The system unwind library does not support _Unwind_GetIPInfo."
13176 fi
13177
13178 # Look for a file containing extra machine modes.
13179 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13180   extra_modes_file='$(srcdir)'/config/${extra_modes}
13181
13182
13183 cat >>confdefs.h <<_ACEOF
13184 #define EXTRA_MODES_FILE "config/$extra_modes"
13185 _ACEOF
13186
13187 fi
13188
13189 # Convert extra_options into a form suitable for Makefile use.
13190 extra_opt_files=
13191 for f in $extra_options; do
13192   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13193 done
13194
13195
13196 # auto-host.h is the file containing items generated by autoconf and is
13197 # the first file included by config.h.
13198 # If host=build, it is correct to have bconfig include auto-host.h
13199 # as well.  If host!=build, we are in error and need to do more
13200 # work to find out the build config parameters.
13201 if test x$host = x$build
13202 then
13203         build_auto=auto-host.h
13204 else
13205         # We create a subdir, then run autoconf in the subdir.
13206         # To prevent recursion we set host and build for the new
13207         # invocation of configure to the build for this invocation
13208         # of configure.
13209         tempdir=build.$$
13210         rm -rf $tempdir
13211         mkdir $tempdir
13212         cd $tempdir
13213         case ${srcdir} in
13214         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13215         *) realsrcdir=../${srcdir};;
13216         esac
13217         saved_CFLAGS="${CFLAGS}"
13218         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13219         ${realsrcdir}/configure \
13220                 --enable-languages=${enable_languages-all} \
13221                 --target=$target_alias --host=$build_alias --build=$build_alias
13222         CFLAGS="${saved_CFLAGS}"
13223
13224         # We just finished tests for the build machine, so rename
13225         # the file auto-build.h in the gcc directory.
13226         mv auto-host.h ../auto-build.h
13227         cd ..
13228         rm -rf $tempdir
13229         build_auto=auto-build.h
13230 fi
13231
13232
13233 tm_file="${tm_file} defaults.h"
13234 tm_p_file="${tm_p_file} tm-preds.h"
13235 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13236 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13237 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13238 # put this back in temporarily.
13239 xm_file="auto-host.h ansidecl.h ${xm_file}"
13240
13241 # --------
13242 # UNSORTED
13243 # --------
13244
13245 # Compile in configure arguments.
13246 if test -f configargs.h ; then
13247         # Being re-configured.
13248         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13249         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13250 else
13251         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13252 fi
13253
13254 # Double all backslashes and backslash all quotes to turn
13255 # gcc_config_arguments into a C string.
13256 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13257 $gcc_config_arguments
13258 EOF
13259 gcc_config_arguments_str=`cat conftest.out`
13260 rm -f conftest.out
13261
13262 cat > configargs.h <<EOF
13263 /* Generated automatically. */
13264 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13265 static const char thread_model[] = "$thread_file";
13266
13267 static const struct {
13268   const char *name, *value;
13269 } configure_default_options[] = $configure_default_options;
13270 EOF
13271
13272 # Internationalization
13273 # If we haven't got the data from the intl directory,
13274 # assume NLS is disabled.
13275 USE_NLS=no
13276 LIBINTL=
13277 LIBINTL_DEP=
13278 INCINTL=
13279 XGETTEXT=
13280 GMSGFMT=
13281 POSUB=
13282
13283 if test -f  ../intl/config.intl; then
13284   .  ../intl/config.intl
13285 fi
13286 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13287 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13288 if test x"$USE_NLS" != xyes; then
13289   { echo "$as_me:$LINENO: result: no" >&5
13290 echo "${ECHO_T}no" >&6; }
13291 else
13292   { echo "$as_me:$LINENO: result: yes" >&5
13293 echo "${ECHO_T}yes" >&6; }
13294
13295 cat >>confdefs.h <<\_ACEOF
13296 #define ENABLE_NLS 1
13297 _ACEOF
13298
13299
13300   { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13301 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
13302   # Look for .po and .gmo files in the source directory.
13303   CATALOGS=
13304   XLINGUAS=
13305   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13306     # If there aren't any .gmo files the shell will give us the
13307     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13308     # weeded out.
13309     case "$cat" in *\**)
13310       continue;;
13311     esac
13312     # The quadruple backslash is collapsed to a double backslash
13313     # by the backticks, then collapsed again by the double quotes,
13314     # leaving us with one backslash in the sed expression (right
13315     # before the dot that mustn't act as a wildcard).
13316     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13317     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13318     # The user is allowed to set LINGUAS to a list of languages to
13319     # install catalogs for.  If it's empty that means "all of them."
13320     if test "x$LINGUAS" = x; then
13321       CATALOGS="$CATALOGS $cat"
13322       XLINGUAS="$XLINGUAS $lang"
13323     else
13324       case "$LINGUAS" in *$lang*)
13325         CATALOGS="$CATALOGS $cat"
13326         XLINGUAS="$XLINGUAS $lang"
13327         ;;
13328       esac
13329     fi
13330   done
13331   LINGUAS="$XLINGUAS"
13332   { echo "$as_me:$LINENO: result: $LINGUAS" >&5
13333 echo "${ECHO_T}$LINGUAS" >&6; }
13334
13335
13336     DATADIRNAME=share
13337
13338   INSTOBJEXT=.mo
13339
13340   GENCAT=gencat
13341
13342   CATOBJEXT=.gmo
13343
13344 fi
13345
13346 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13347 # -liconv on the link line twice.
13348 case "$LIBINTL" in *$LIBICONV*)
13349         LIBICONV= ;;
13350 esac
13351
13352 # Check whether --enable-secureplt was given.
13353 if test "${enable_secureplt+set}" = set; then
13354   enableval=$enable_secureplt;
13355 fi
13356
13357
13358 # Windows32 Registry support for specifying GCC installation paths.
13359 # Check whether --enable-win32-registry was given.
13360 if test "${enable_win32_registry+set}" = set; then
13361   enableval=$enable_win32_registry;
13362 fi
13363
13364
13365 case $host_os in
13366   win32 | pe | cygwin* | mingw32* | uwin*)
13367     if test "x$enable_win32_registry" != xno; then
13368       { echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13369 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6; }
13370 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13371   echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373   ac_func_search_save_LIBS=$LIBS
13374 cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h.  */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h.  */
13380
13381 /* Override any GCC internal prototype to avoid an error.
13382    Use char because int might match the return type of a GCC
13383    builtin and then its argument prototype would still apply.  */
13384 #ifdef __cplusplus
13385 extern "C"
13386 #endif
13387 char RegOpenKeyExA ();
13388 int
13389 main ()
13390 {
13391 return RegOpenKeyExA ();
13392   ;
13393   return 0;
13394 }
13395 _ACEOF
13396 for ac_lib in '' advapi32; do
13397   if test -z "$ac_lib"; then
13398     ac_res="none required"
13399   else
13400     ac_res=-l$ac_lib
13401     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13402   fi
13403   rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_link") 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } && {
13417          test -z "$ac_c_werror_flag" ||
13418          test ! -s conftest.err
13419        } && test -s conftest$ac_exeext &&
13420        $as_test_x conftest$ac_exeext; then
13421   ac_cv_search_RegOpenKeyExA=$ac_res
13422 else
13423   echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13425
13426
13427 fi
13428
13429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13430       conftest$ac_exeext
13431   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13432   break
13433 fi
13434 done
13435 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13436   :
13437 else
13438   ac_cv_search_RegOpenKeyExA=no
13439 fi
13440 rm conftest.$ac_ext
13441 LIBS=$ac_func_search_save_LIBS
13442 fi
13443 { echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13444 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6; }
13445 ac_res=$ac_cv_search_RegOpenKeyExA
13446 if test "$ac_res" != no; then
13447   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13448
13449 else
13450   enable_win32_registry=no
13451 fi
13452
13453     fi
13454
13455     if test "x$enable_win32_registry" != xno; then
13456
13457 cat >>confdefs.h <<\_ACEOF
13458 #define ENABLE_WIN32_REGISTRY 1
13459 _ACEOF
13460
13461
13462       if test "x$enable_win32_registry" != xyes \
13463          && test "x$enable_win32_registry" != x; then
13464
13465 cat >>confdefs.h <<_ACEOF
13466 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13467 _ACEOF
13468
13469       fi
13470     fi
13471   ;;
13472 esac
13473
13474 # Get an absolute path to the GCC top-level source directory
13475 holddir=`${PWDCMD-pwd}`
13476 cd $srcdir
13477 topdir=`${PWDCMD-pwd}`
13478 cd $holddir
13479
13480 # Conditionalize the makefile for this host machine.
13481 xmake_file=
13482 for f in ${host_xmake_file}
13483 do
13484         if test -f ${srcdir}/config/$f
13485         then
13486                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13487         fi
13488 done
13489
13490 # Conditionalize the makefile for this target machine.
13491 tmake_file_=
13492 for f in ${tmake_file}
13493 do
13494         if test -f ${srcdir}/config/$f
13495         then
13496                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13497         fi
13498 done
13499 tmake_file="${tmake_file_}"
13500
13501 # This is a terrible hack which will go away some day.
13502 host_cc_for_libada=${CC}
13503
13504
13505 out_object_file=`basename $out_file .c`.o
13506
13507 tm_file_list="options.h"
13508 tm_include_list="options.h"
13509 for f in $tm_file; do
13510   case $f in
13511     ./* )
13512        f=`echo $f | sed 's/^..//'`
13513        tm_file_list="${tm_file_list} $f"
13514        tm_include_list="${tm_include_list} $f"
13515        ;;
13516     defaults.h )
13517        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13518        tm_include_list="${tm_include_list} $f"
13519        ;;
13520     * )
13521        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13522        tm_include_list="${tm_include_list} config/$f"
13523        ;;
13524   esac
13525 done
13526
13527 tm_p_file_list=
13528 tm_p_include_list=
13529 for f in $tm_p_file; do
13530   case $f in
13531     tm-preds.h )
13532        tm_p_file_list="${tm_p_file_list} $f"
13533        tm_p_include_list="${tm_p_include_list} $f"
13534        ;;
13535     * )
13536        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13537        tm_p_include_list="${tm_p_include_list} config/$f"
13538   esac
13539 done
13540
13541 xm_file_list=
13542 xm_include_list=
13543 for f in $xm_file; do
13544   case $f in
13545     ansidecl.h )
13546        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13547        xm_include_list="${xm_include_list} $f"
13548        ;;
13549     auto-host.h )
13550        xm_file_list="${xm_file_list} $f"
13551        xm_include_list="${xm_include_list} $f"
13552        ;;
13553     * )
13554        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13555        xm_include_list="${xm_include_list} config/$f"
13556        ;;
13557   esac
13558 done
13559
13560 host_xm_file_list=
13561 host_xm_include_list=
13562 for f in $host_xm_file; do
13563   case $f in
13564     ansidecl.h )
13565        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13566        host_xm_include_list="${host_xm_include_list} $f"
13567        ;;
13568     auto-host.h )
13569        host_xm_file_list="${host_xm_file_list} $f"
13570        host_xm_include_list="${host_xm_include_list} $f"
13571        ;;
13572     * )
13573        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13574        host_xm_include_list="${host_xm_include_list} config/$f"
13575        ;;
13576   esac
13577 done
13578
13579 build_xm_file_list=
13580 for f in $build_xm_file; do
13581   case $f in
13582     ansidecl.h )
13583        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13584        build_xm_include_list="${build_xm_include_list} $f"
13585        ;;
13586     auto-build.h | auto-host.h )
13587        build_xm_file_list="${build_xm_file_list} $f"
13588        build_xm_include_list="${build_xm_include_list} $f"
13589        ;;
13590     * )
13591        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13592        build_xm_include_list="${build_xm_include_list} config/$f"
13593        ;;
13594   esac
13595 done
13596
13597 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13598 # cross-compiler which does not use the native headers and libraries.
13599 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13600 CROSS=
13601 ALL=all.internal
13602 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13603
13604 if test "x$with_build_sysroot" != x; then
13605   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13606 else
13607   # This value is used, even on a native system, because
13608   # CROSS_SYSTEM_HEADER_DIR is just
13609   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13610   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13611 fi
13612
13613 if test x$host != x$target
13614 then
13615         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13616         ALL=all.cross
13617         SYSTEM_HEADER_DIR=$build_system_header_dir
13618         case "$host","$target" in
13619         # Darwin crosses can use the host system's libraries and headers,
13620         # because of the fat library support.  Of course, it must be the
13621         # same version of Darwin on both sides.  Allow the user to
13622         # just say --target=foo-darwin without a version number to mean
13623         # "the version on this system".
13624             *-*-darwin*,*-*-darwin*)
13625                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13626                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13627                 if test $hostos = $targetos -o $targetos = darwin ; then
13628                     CROSS=
13629                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13630                     with_headers=yes
13631                 fi
13632                 ;;
13633
13634             i?86-*-*,x86_64-*-* \
13635             | powerpc*-*-*,powerpc64*-*-*)
13636                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13637         esac
13638 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13639         SYSTEM_HEADER_DIR=$build_system_header_dir
13640 fi
13641
13642 # If this is a cross-compiler that does not
13643 # have its own set of headers then define
13644 # inhibit_libc
13645
13646 # If this is using newlib, without having the headers available now,
13647 # then define inhibit_libc in LIBGCC2_CFLAGS.
13648 # This prevents libgcc2 from containing any code which requires libc
13649 # support.
13650 inhibit_libc=false
13651 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13652        test x$with_newlib = xyes ; } &&
13653      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13654        inhibit_libc=true
13655 fi
13656
13657
13658 # When building gcc with a cross-compiler, we need to adjust things so
13659 # that the generator programs are still built with the native compiler.
13660 # Also, we cannot run fixincludes or fix-header.
13661
13662 # These are the normal (build=host) settings:
13663 CC_FOR_BUILD='$(CC)'
13664 BUILD_CFLAGS='$(ALL_CFLAGS)'
13665 STMP_FIXINC=stmp-fixinc
13666
13667 # Possibly disable fixproto, on a per-target basis.
13668 case ${use_fixproto} in
13669   no)
13670     STMP_FIXPROTO=
13671     ;;
13672   yes)
13673     STMP_FIXPROTO=stmp-fixproto
13674     ;;
13675 esac
13676
13677
13678 # And these apply if build != host, or we are generating coverage data
13679 if test x$build != x$host || test "x$coverage_flags" != x
13680 then
13681     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13682
13683     if test "x$TARGET_SYSTEM_ROOT" = x; then
13684         if test "x$STMP_FIXPROTO" != x; then
13685           STMP_FIXPROTO=stmp-install-fixproto
13686         fi
13687     fi
13688 fi
13689
13690 # Expand extra_headers to include complete path.
13691 # This substitutes for lots of t-* files.
13692 extra_headers_list=
13693 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13694 for file in ${extra_headers} ; do
13695   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13696 done
13697
13698 # Define collect2 in Makefile.
13699 case $host_can_use_collect2 in
13700   no) collect2= ;;
13701   *) collect2='collect2$(exeext)' ;;
13702 esac
13703
13704
13705 # Add a definition of USE_COLLECT2 if system wants one.
13706 case $use_collect2 in
13707   no) use_collect2= ;;
13708   "") ;;
13709   *)
13710     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13711     xm_defines="${xm_defines} USE_COLLECT2"
13712     case $host_can_use_collect2 in
13713       no)
13714         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13715 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13716    { (exit 1); exit 1; }; }
13717         ;;
13718     esac
13719     ;;
13720 esac
13721
13722 # ---------------------------
13723 # Assembler & linker features
13724 # ---------------------------
13725
13726 # Identify the assembler which will work hand-in-glove with the newly
13727 # built GCC, so that we can examine its features.  This is the assembler
13728 # which will be driven by the driver program.
13729 #
13730 # If build != host, and we aren't building gas in-tree, we identify a
13731 # build->target assembler and hope that it will have the same features
13732 # as the host->target assembler we'll be using.
13733 gcc_cv_gas_major_version=
13734 gcc_cv_gas_minor_version=
13735 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13736
13737 if test "${gcc_cv_as+set}" = set; then
13738   :
13739 else
13740
13741 if test -x "$DEFAULT_ASSEMBLER"; then
13742         gcc_cv_as="$DEFAULT_ASSEMBLER"
13743 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13744      && test -f ../gas/Makefile \
13745      && test x$build = x$host; then
13746         gcc_cv_as=../gas/as-new$build_exeext
13747 elif test -x as$build_exeext; then
13748         # Build using assembler in the current directory.
13749         gcc_cv_as=./as$build_exeext
13750 elif test -x $AS_FOR_TARGET; then
13751         gcc_cv_as="$AS_FOR_TARGET"
13752 else
13753         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13754 set dummy $AS_FOR_TARGET; ac_word=$2
13755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13757 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13758   echo $ECHO_N "(cached) $ECHO_C" >&6
13759 else
13760   case $gcc_cv_as in
13761   [\\/]* | ?:[\\/]*)
13762   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13763   ;;
13764   *)
13765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13767 do
13768   IFS=$as_save_IFS
13769   test -z "$as_dir" && as_dir=.
13770   for ac_exec_ext in '' $ac_executable_extensions; do
13771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13772     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13774     break 2
13775   fi
13776 done
13777 done
13778 IFS=$as_save_IFS
13779
13780   ;;
13781 esac
13782 fi
13783 gcc_cv_as=$ac_cv_path_gcc_cv_as
13784 if test -n "$gcc_cv_as"; then
13785   { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13786 echo "${ECHO_T}$gcc_cv_as" >&6; }
13787 else
13788   { echo "$as_me:$LINENO: result: no" >&5
13789 echo "${ECHO_T}no" >&6; }
13790 fi
13791
13792
13793 fi
13794 fi
13795
13796
13797 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13798
13799
13800 { echo "$as_me:$LINENO: checking what assembler to use" >&5
13801 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6; }
13802 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13803   # Single tree build which includes gas.  We want to prefer it
13804   # over whatever linker top-level may have detected, since
13805   # we'll use what we're building after installation anyway.
13806   { echo "$as_me:$LINENO: result: newly built gas" >&5
13807 echo "${ECHO_T}newly built gas" >&6; }
13808   in_tree_gas=yes
13809   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13810 for f in $gcc_cv_as_bfd_srcdir/configure \
13811          $gcc_cv_as_gas_srcdir/configure \
13812          $gcc_cv_as_gas_srcdir/configure.in \
13813          $gcc_cv_as_gas_srcdir/Makefile.in ; do
13814   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13815   if test x$gcc_cv_gas_version != x; then
13816     break
13817   fi
13818 done
13819 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13820 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13821 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13822 case $gcc_cv_gas_patch_version in
13823   "") gcc_cv_gas_patch_version="0" ;;
13824 esac
13825 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13826                             + $gcc_cv_gas_minor_version \) \* 1000 \
13827                             + $gcc_cv_gas_patch_version`
13828
13829   in_tree_gas_is_elf=no
13830   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13831      || (grep 'obj_format = multi' ../gas/Makefile \
13832          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13833   then
13834     in_tree_gas_is_elf=yes
13835   fi
13836 else
13837   { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13838 echo "${ECHO_T}$gcc_cv_as" >&6; }
13839   in_tree_gas=no
13840 fi
13841
13842 # Identify the linker which will work hand-in-glove with the newly
13843 # built GCC, so that we can examine its features.  This is the linker
13844 # which will be driven by the driver program.
13845 #
13846 # If build != host, and we aren't building gas in-tree, we identify a
13847 # build->target linker and hope that it will have the same features
13848 # as the host->target linker we'll be using.
13849 gcc_cv_gld_major_version=
13850 gcc_cv_gld_minor_version=
13851 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13852 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13853
13854 if test "${gcc_cv_ld+set}" = set; then
13855   :
13856 else
13857
13858 if test -x "$DEFAULT_LINKER"; then
13859         gcc_cv_ld="$DEFAULT_LINKER"
13860 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13861      && test -f ../ld/Makefile \
13862      && test x$build = x$host; then
13863         gcc_cv_ld=../ld/ld-new$build_exeext
13864 elif test -x collect-ld$build_exeext; then
13865         # Build using linker in the current directory.
13866         gcc_cv_ld=./collect-ld$build_exeext
13867 elif test -x $LD_FOR_TARGET; then
13868         gcc_cv_ld="$LD_FOR_TARGET"
13869 else
13870         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13871 set dummy $LD_FOR_TARGET; ac_word=$2
13872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13874 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877   case $gcc_cv_ld in
13878   [\\/]* | ?:[\\/]*)
13879   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13880   ;;
13881   *)
13882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $PATH
13884 do
13885   IFS=$as_save_IFS
13886   test -z "$as_dir" && as_dir=.
13887   for ac_exec_ext in '' $ac_executable_extensions; do
13888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13889     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13891     break 2
13892   fi
13893 done
13894 done
13895 IFS=$as_save_IFS
13896
13897   ;;
13898 esac
13899 fi
13900 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13901 if test -n "$gcc_cv_ld"; then
13902   { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13903 echo "${ECHO_T}$gcc_cv_ld" >&6; }
13904 else
13905   { echo "$as_me:$LINENO: result: no" >&5
13906 echo "${ECHO_T}no" >&6; }
13907 fi
13908
13909
13910 fi
13911 fi
13912
13913
13914 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13915
13916
13917 { echo "$as_me:$LINENO: checking what linker to use" >&5
13918 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6; }
13919 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13920         # Single tree build which includes ld.  We want to prefer it
13921         # over whatever linker top-level may have detected, since
13922         # we'll use what we're building after installation anyway.
13923         { echo "$as_me:$LINENO: result: newly built ld" >&5
13924 echo "${ECHO_T}newly built ld" >&6; }
13925         in_tree_ld=yes
13926         in_tree_ld_is_elf=no
13927         if (grep 'EMUL = .*elf' ../ld/Makefile \
13928             || grep 'EMUL = .*linux' ../ld/Makefile \
13929             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13930           in_tree_ld_is_elf=yes
13931         fi
13932         for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
13933         do
13934                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13935                 if test x$gcc_cv_gld_version != x; then
13936                         break
13937                 fi
13938         done
13939         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13940         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13941 else
13942         { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13943 echo "${ECHO_T}$gcc_cv_ld" >&6; }
13944         in_tree_ld=no
13945 fi
13946
13947 # Figure out what nm we will be using.
13948 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13949 if test "${gcc_cv_nm+set}" = set; then
13950   :
13951 else
13952
13953 if test -f $gcc_cv_binutils_srcdir/configure.in \
13954      && test -f ../binutils/Makefile \
13955      && test x$build = x$host; then
13956         gcc_cv_nm=../binutils/nm-new$build_exeext
13957 elif test -x nm$build_exeext; then
13958         gcc_cv_nm=./nm$build_exeext
13959 elif test -x $NM_FOR_TARGET; then
13960         gcc_cv_nm="$NM_FOR_TARGET"
13961 else
13962         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13963 set dummy $NM_FOR_TARGET; ac_word=$2
13964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13966 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13967   echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969   case $gcc_cv_nm in
13970   [\\/]* | ?:[\\/]*)
13971   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13972   ;;
13973   *)
13974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13975 for as_dir in $PATH
13976 do
13977   IFS=$as_save_IFS
13978   test -z "$as_dir" && as_dir=.
13979   for ac_exec_ext in '' $ac_executable_extensions; do
13980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13981     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13983     break 2
13984   fi
13985 done
13986 done
13987 IFS=$as_save_IFS
13988
13989   ;;
13990 esac
13991 fi
13992 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13993 if test -n "$gcc_cv_nm"; then
13994   { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13995 echo "${ECHO_T}$gcc_cv_nm" >&6; }
13996 else
13997   { echo "$as_me:$LINENO: result: no" >&5
13998 echo "${ECHO_T}no" >&6; }
13999 fi
14000
14001
14002 fi
14003 fi
14004
14005
14006 { echo "$as_me:$LINENO: checking what nm to use" >&5
14007 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6; }
14008 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
14009         # Single tree build which includes binutils.
14010         { echo "$as_me:$LINENO: result: newly built nm" >&5
14011 echo "${ECHO_T}newly built nm" >&6; }
14012         in_tree_nm=yes
14013 else
14014         { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14015 echo "${ECHO_T}$gcc_cv_nm" >&6; }
14016         in_tree_nm=no
14017 fi
14018
14019 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
14020
14021
14022 # Figure out what objdump we will be using.
14023 if test "${gcc_cv_objdump+set}" = set; then
14024   :
14025 else
14026
14027 if test -f $gcc_cv_binutils_srcdir/configure.in \
14028      && test -f ../binutils/Makefile \
14029      && test x$build = x$host; then
14030         # Single tree build which includes binutils.
14031         gcc_cv_objdump=../binutils/objdump$build_exeext
14032 elif test -x objdump$build_exeext; then
14033         gcc_cv_objdump=./objdump$build_exeext
14034 elif test -x $OBJDUMP_FOR_TARGET; then
14035         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
14036 else
14037         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14038 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
14039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14041 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14042   echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044   case $gcc_cv_objdump in
14045   [\\/]* | ?:[\\/]*)
14046   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14047   ;;
14048   *)
14049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050 for as_dir in $PATH
14051 do
14052   IFS=$as_save_IFS
14053   test -z "$as_dir" && as_dir=.
14054   for ac_exec_ext in '' $ac_executable_extensions; do
14055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14056     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14058     break 2
14059   fi
14060 done
14061 done
14062 IFS=$as_save_IFS
14063
14064   ;;
14065 esac
14066 fi
14067 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14068 if test -n "$gcc_cv_objdump"; then
14069   { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14070 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
14071 else
14072   { echo "$as_me:$LINENO: result: no" >&5
14073 echo "${ECHO_T}no" >&6; }
14074 fi
14075
14076
14077 fi
14078 fi
14079
14080
14081 { echo "$as_me:$LINENO: checking what objdump to use" >&5
14082 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6; }
14083 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
14084         # Single tree build which includes binutils.
14085         { echo "$as_me:$LINENO: result: newly built objdump" >&5
14086 echo "${ECHO_T}newly built objdump" >&6; }
14087 elif test x$gcc_cv_objdump = x; then
14088         { echo "$as_me:$LINENO: result: not found" >&5
14089 echo "${ECHO_T}not found" >&6; }
14090 else
14091         { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14092 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
14093 fi
14094
14095 # Figure out what assembler alignment features are present.
14096 { echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14097 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6; }
14098 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14099   echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101   gcc_cv_as_balign_and_p2align=no
14102     if test $in_tree_gas = yes; then
14103     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14104   then gcc_cv_as_balign_and_p2align=yes
14105 fi
14106   elif test x$gcc_cv_as != x; then
14107     echo '.balign 4
14108 .p2align 2' > conftest.s
14109     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111   (eval $ac_try) 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); }; }
14115     then
14116         gcc_cv_as_balign_and_p2align=yes
14117     else
14118       echo "configure: failed program was" >&5
14119       cat conftest.s >&5
14120     fi
14121     rm -f conftest.o conftest.s
14122   fi
14123 fi
14124 { echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14125 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6; }
14126 if test $gcc_cv_as_balign_and_p2align = yes; then
14127
14128 cat >>confdefs.h <<\_ACEOF
14129 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14130 _ACEOF
14131
14132 fi
14133
14134 { echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14135 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6; }
14136 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14137   echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139   gcc_cv_as_max_skip_p2align=no
14140     if test $in_tree_gas = yes; then
14141     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14142   then gcc_cv_as_max_skip_p2align=yes
14143 fi
14144   elif test x$gcc_cv_as != x; then
14145     echo '.p2align 4,,7' > conftest.s
14146     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148   (eval $ac_try) 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; }
14152     then
14153         gcc_cv_as_max_skip_p2align=yes
14154     else
14155       echo "configure: failed program was" >&5
14156       cat conftest.s >&5
14157     fi
14158     rm -f conftest.o conftest.s
14159   fi
14160 fi
14161 { echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14162 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6; }
14163 if test $gcc_cv_as_max_skip_p2align = yes; then
14164
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14167 _ACEOF
14168
14169 fi
14170
14171 { echo "$as_me:$LINENO: checking assembler for .literal16" >&5
14172 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6; }
14173 if test "${gcc_cv_as_literal16+set}" = set; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   gcc_cv_as_literal16=no
14177     if test $in_tree_gas = yes; then
14178     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14179   then gcc_cv_as_literal16=yes
14180 fi
14181   elif test x$gcc_cv_as != x; then
14182     echo '.literal16' > conftest.s
14183     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185   (eval $ac_try) 2>&5
14186   ac_status=$?
14187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); }; }
14189     then
14190         gcc_cv_as_literal16=yes
14191     else
14192       echo "configure: failed program was" >&5
14193       cat conftest.s >&5
14194     fi
14195     rm -f conftest.o conftest.s
14196   fi
14197 fi
14198 { echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
14199 echo "${ECHO_T}$gcc_cv_as_literal16" >&6; }
14200 if test $gcc_cv_as_literal16 = yes; then
14201
14202 cat >>confdefs.h <<\_ACEOF
14203 #define HAVE_GAS_LITERAL16 1
14204 _ACEOF
14205
14206 fi
14207
14208 { echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14209 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6; }
14210 if test "${gcc_cv_as_subsection_m1+set}" = set; then
14211   echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213   gcc_cv_as_subsection_m1=no
14214     if test $in_tree_gas = yes; then
14215     if test $in_tree_gas_is_elf = yes \
14216   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14217   then gcc_cv_as_subsection_m1=yes
14218 fi
14219   elif test x$gcc_cv_as != x; then
14220     echo 'conftest_label1: .word 0
14221 .subsection -1
14222 conftest_label2: .word 0
14223 .previous' > conftest.s
14224     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226   (eval $ac_try) 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; }
14230     then
14231         if test x$gcc_cv_nm != x; then
14232     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
14233     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
14234     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
14235     then :
14236     else gcc_cv_as_subsection_m1=yes
14237     fi
14238     rm -f conftest.nm1 conftest.nm2
14239   fi
14240     else
14241       echo "configure: failed program was" >&5
14242       cat conftest.s >&5
14243     fi
14244     rm -f conftest.o conftest.s
14245   fi
14246 fi
14247 { echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14248 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6; }
14249 if test $gcc_cv_as_subsection_m1 = yes; then
14250
14251 cat >>confdefs.h <<\_ACEOF
14252 #define HAVE_GAS_SUBSECTION_ORDERING 1
14253 _ACEOF
14254
14255 fi
14256
14257 { echo "$as_me:$LINENO: checking assembler for .weak" >&5
14258 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6; }
14259 if test "${gcc_cv_as_weak+set}" = set; then
14260   echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262   gcc_cv_as_weak=no
14263     if test $in_tree_gas = yes; then
14264     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14265   then gcc_cv_as_weak=yes
14266 fi
14267   elif test x$gcc_cv_as != x; then
14268     echo '      .weak foobar' > conftest.s
14269     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271   (eval $ac_try) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; }
14275     then
14276         gcc_cv_as_weak=yes
14277     else
14278       echo "configure: failed program was" >&5
14279       cat conftest.s >&5
14280     fi
14281     rm -f conftest.o conftest.s
14282   fi
14283 fi
14284 { echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14285 echo "${ECHO_T}$gcc_cv_as_weak" >&6; }
14286 if test $gcc_cv_as_weak = yes; then
14287
14288 cat >>confdefs.h <<\_ACEOF
14289 #define HAVE_GAS_WEAK 1
14290 _ACEOF
14291
14292 fi
14293
14294 { echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14295 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6; }
14296 if test "${gcc_cv_as_weakref+set}" = set; then
14297   echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
14299   gcc_cv_as_weakref=no
14300     if test $in_tree_gas = yes; then
14301     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14302   then gcc_cv_as_weakref=yes
14303 fi
14304   elif test x$gcc_cv_as != x; then
14305     echo '      .weakref foobar, barfnot' > conftest.s
14306     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308   (eval $ac_try) 2>&5
14309   ac_status=$?
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); }; }
14312     then
14313         gcc_cv_as_weakref=yes
14314     else
14315       echo "configure: failed program was" >&5
14316       cat conftest.s >&5
14317     fi
14318     rm -f conftest.o conftest.s
14319   fi
14320 fi
14321 { echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14322 echo "${ECHO_T}$gcc_cv_as_weakref" >&6; }
14323 if test $gcc_cv_as_weakref = yes; then
14324
14325 cat >>confdefs.h <<\_ACEOF
14326 #define HAVE_GAS_WEAKREF 1
14327 _ACEOF
14328
14329 fi
14330
14331 { echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14332 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6; }
14333 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14334   echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336   gcc_cv_as_nsubspa_comdat=no
14337     if test $in_tree_gas = yes; then
14338     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14339   then gcc_cv_as_nsubspa_comdat=yes
14340 fi
14341   elif test x$gcc_cv_as != x; then
14342     echo '      .SPACE $TEXT$
14343         .NSUBSPA $CODE$,COMDAT' > conftest.s
14344     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346   (eval $ac_try) 2>&5
14347   ac_status=$?
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); }; }
14350     then
14351         gcc_cv_as_nsubspa_comdat=yes
14352     else
14353       echo "configure: failed program was" >&5
14354       cat conftest.s >&5
14355     fi
14356     rm -f conftest.o conftest.s
14357   fi
14358 fi
14359 { echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14360 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6; }
14361 if test $gcc_cv_as_nsubspa_comdat = yes; then
14362
14363 cat >>confdefs.h <<\_ACEOF
14364 #define HAVE_GAS_NSUBSPA_COMDAT 1
14365 _ACEOF
14366
14367 fi
14368
14369 # .hidden needs to be supported in both the assembler and the linker,
14370 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14371 # This is irritatingly difficult to feature test for; we have to check the
14372 # date string after the version number.  If we've got an in-tree
14373 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14374 # to be safe.
14375 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14376 { echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14377 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6; }
14378 if test "${gcc_cv_as_hidden+set}" = set; then
14379   echo $ECHO_N "(cached) $ECHO_C" >&6
14380 else
14381   gcc_cv_as_hidden=no
14382     if test $in_tree_gas = yes; then
14383     if test $in_tree_gas_is_elf = yes \
14384   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14385   then gcc_cv_as_hidden=yes
14386 fi
14387   elif test x$gcc_cv_as != x; then
14388     echo '      .hidden foobar
14389 foobar:' > conftest.s
14390     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392   (eval $ac_try) 2>&5
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); }; }
14396     then
14397         gcc_cv_as_hidden=yes
14398     else
14399       echo "configure: failed program was" >&5
14400       cat conftest.s >&5
14401     fi
14402     rm -f conftest.o conftest.s
14403   fi
14404 fi
14405 { echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14406 echo "${ECHO_T}$gcc_cv_as_hidden" >&6; }
14407
14408
14409 { echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14410 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6; }
14411 if test "${gcc_cv_ld_hidden+set}" = set; then
14412   echo $ECHO_N "(cached) $ECHO_C" >&6
14413 else
14414   if test $in_tree_ld = yes ; then
14415   gcc_cv_ld_hidden=no
14416   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
14417      && test $in_tree_ld_is_elf = yes; then
14418      gcc_cv_ld_hidden=yes
14419   fi
14420 else
14421   gcc_cv_ld_hidden=yes
14422   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14423   if echo "$ld_ver" | grep GNU > /dev/null; then
14424     ld_vers=`echo $ld_ver | sed -n \
14425         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14426         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14427         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14428         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
14429         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
14430         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
14431         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   -].*$,\1,p'`
14432     ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
14433     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14434     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14435     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14436     if test 0"$ld_date" -lt 20020404; then
14437       if test -n "$ld_date"; then
14438         # If there was date string, but was earlier than 2002-04-04, fail
14439         gcc_cv_ld_hidden=no
14440       elif test -z "$ld_vers"; then
14441         # If there was no date string nor ld version number, something is wrong
14442         gcc_cv_ld_hidden=no
14443       else
14444         test -z "$ld_vers_patch" && ld_vers_patch=0
14445         if test "$ld_vers_major" -lt 2; then
14446           gcc_cv_ld_hidden=no
14447         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14448           gcc_cv_ld_hidden="no"
14449         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14450           gcc_cv_ld_hidden=no
14451         fi
14452       fi
14453     fi
14454   else
14455     case "${target}" in
14456       hppa64*-*-hpux* | ia64*-*-hpux*)
14457         gcc_cv_ld_hidden=yes
14458         ;;
14459       *)
14460         gcc_cv_ld_hidden=no
14461         ;;
14462     esac
14463   fi
14464 fi
14465 fi
14466 { echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14467 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6; }
14468 libgcc_visibility=no
14469
14470
14471 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14472   libgcc_visibility=yes
14473
14474 cat >>confdefs.h <<\_ACEOF
14475 #define HAVE_GAS_HIDDEN 1
14476 _ACEOF
14477
14478 fi
14479
14480 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14481 { echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14482 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6; }
14483 if test "${gcc_cv_as_leb128+set}" = set; then
14484   echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486   gcc_cv_as_leb128=no
14487     if test $in_tree_gas = yes; then
14488     if test $in_tree_gas_is_elf = yes \
14489   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14490   then gcc_cv_as_leb128=yes
14491 fi
14492   elif test x$gcc_cv_as != x; then
14493     echo '      .data
14494         .uleb128 L2 - L1
14495 L1:
14496         .uleb128 1280
14497         .sleb128 -1010
14498 L2:' > conftest.s
14499     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501   (eval $ac_try) 2>&5
14502   ac_status=$?
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); }; }
14505     then
14506         # GAS versions before 2.11 do not support uleb128,
14507   # despite appearing to.
14508   # ??? There exists an elf-specific test that will crash
14509   # the assembler.  Perhaps it's better to figure out whether
14510   # arbitrary sections are supported and try the test.
14511   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14512   if echo "$as_ver" | grep GNU > /dev/null; then
14513     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14514     as_major=`echo $as_ver | sed 's/\..*//'`
14515     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14516     if test $as_major -eq 2 && test $as_minor -lt 11
14517     then :
14518     else gcc_cv_as_leb128=yes
14519     fi
14520   fi
14521     else
14522       echo "configure: failed program was" >&5
14523       cat conftest.s >&5
14524     fi
14525     rm -f conftest.o conftest.s
14526   fi
14527 fi
14528 { echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14529 echo "${ECHO_T}$gcc_cv_as_leb128" >&6; }
14530 if test $gcc_cv_as_leb128 = yes; then
14531
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_AS_LEB128 1
14534 _ACEOF
14535
14536 fi
14537
14538 # GAS versions up to and including 2.11.0 may mis-optimize
14539 # .eh_frame data.
14540 { echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14541 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6; }
14542 if test "${gcc_cv_as_eh_frame+set}" = set; then
14543   echo $ECHO_N "(cached) $ECHO_C" >&6
14544 else
14545   gcc_cv_as_eh_frame=no
14546     if test $in_tree_gas = yes; then
14547     if test $in_tree_gas_is_elf = yes \
14548   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14549   then gcc_cv_as_eh_frame=yes
14550 fi
14551   elif test x$gcc_cv_as != x; then
14552     echo '      .text
14553 .LFB1:
14554         .4byte  0
14555 .L1:
14556         .4byte  0
14557 .LFE1:
14558         .section        .eh_frame,"aw",@progbits
14559 __FRAME_BEGIN__:
14560         .4byte  .LECIE1-.LSCIE1
14561 .LSCIE1:
14562         .4byte  0x0
14563         .byte   0x1
14564         .ascii "z\0"
14565         .byte   0x1
14566         .byte   0x78
14567         .byte   0x1a
14568         .byte   0x0
14569         .byte   0x4
14570         .4byte  1
14571         .p2align 1
14572 .LECIE1:
14573 .LSFDE1:
14574         .4byte  .LEFDE1-.LASFDE1
14575 .LASFDE1:
14576         .4byte  .LASFDE1-__FRAME_BEGIN__
14577         .4byte  .LFB1
14578         .4byte  .LFE1-.LFB1
14579         .byte   0x4
14580         .4byte  .LFE1-.LFB1
14581         .byte   0x4
14582         .4byte  .L1-.LFB1
14583 .LEFDE1:' > conftest.s
14584     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586   (eval $ac_try) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; }
14590     then
14591           cat > conftest.lit <<EOF
14592  0000 10000000 00000000 017a0001 781a0004  .........z..x...
14593  0010 01000000 12000000 18000000 00000000  ................
14594  0020 08000000 04080000 0044               .........D      
14595 EOF
14596 cat > conftest.big <<EOF
14597  0000 00000010 00000000 017a0001 781a0004  .........z..x...
14598  0010 00000001 00000012 00000018 00000000  ................
14599  0020 00000008 04000000 0844               .........D      
14600 EOF
14601   # If the assembler didn't choke, and we can objdump,
14602   # and we got the correct data, then succeed.
14603   # The text in the here-document typically retains its unix-style line
14604   # endings, while the output of objdump will use host line endings.
14605   # Therefore, use diff -b for the comparisons.
14606   if test x$gcc_cv_objdump != x \
14607   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14608      | tail -3 > conftest.got \
14609   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14610     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14611   then
14612     gcc_cv_as_eh_frame=yes
14613   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; }; then
14619     gcc_cv_as_eh_frame=buggy
14620   else
14621     # Uh oh, what do we do now?
14622     gcc_cv_as_eh_frame=no
14623   fi
14624     else
14625       echo "configure: failed program was" >&5
14626       cat conftest.s >&5
14627     fi
14628     rm -f conftest.o conftest.s
14629   fi
14630 fi
14631 { echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14632 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6; }
14633
14634
14635 if test $gcc_cv_as_eh_frame = buggy; then
14636
14637 cat >>confdefs.h <<\_ACEOF
14638 #define USE_AS_TRADITIONAL_FORMAT 1
14639 _ACEOF
14640
14641 fi
14642
14643 { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14644 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
14645 if test "${gcc_cv_as_shf_merge+set}" = set; then
14646   echo $ECHO_N "(cached) $ECHO_C" >&6
14647 else
14648   gcc_cv_as_shf_merge=no
14649     if test $in_tree_gas = yes; then
14650     if test $in_tree_gas_is_elf = yes \
14651   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14652   then gcc_cv_as_shf_merge=yes
14653 fi
14654   elif test x$gcc_cv_as != x; then
14655     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14656     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658   (eval $ac_try) 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); }; }
14662     then
14663         gcc_cv_as_shf_merge=yes
14664     else
14665       echo "configure: failed program was" >&5
14666       cat conftest.s >&5
14667     fi
14668     rm -f conftest.o conftest.s
14669   fi
14670 fi
14671 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14672 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
14673
14674 if test $gcc_cv_as_shf_merge = no; then
14675   { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14676 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
14677 if test "${gcc_cv_as_shf_merge+set}" = set; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680   gcc_cv_as_shf_merge=no
14681     if test $in_tree_gas = yes; then
14682     if test $in_tree_gas_is_elf = yes \
14683   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14684   then gcc_cv_as_shf_merge=yes
14685 fi
14686   elif test x$gcc_cv_as != x; then
14687     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14688     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690   (eval $ac_try) 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; }
14694     then
14695         gcc_cv_as_shf_merge=yes
14696     else
14697       echo "configure: failed program was" >&5
14698       cat conftest.s >&5
14699     fi
14700     rm -f conftest.o conftest.s
14701   fi
14702 fi
14703 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14704 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
14705
14706 fi
14707
14708 cat >>confdefs.h <<_ACEOF
14709 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14710 _ACEOF
14711
14712
14713 { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14714 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
14715 if test "${gcc_cv_as_comdat_group+set}" = set; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   gcc_cv_as_comdat_group=no
14719     if test $in_tree_gas = yes; then
14720     if test $in_tree_gas_is_elf = yes \
14721   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14722   then gcc_cv_as_comdat_group=yes
14723 fi
14724   elif test x$gcc_cv_as != x; then
14725     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14726     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728   (eval $ac_try) 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); }; }
14732     then
14733         gcc_cv_as_comdat_group=yes
14734     else
14735       echo "configure: failed program was" >&5
14736       cat conftest.s >&5
14737     fi
14738     rm -f conftest.o conftest.s
14739   fi
14740 fi
14741 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14742 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6; }
14743
14744 if test $gcc_cv_as_comdat_group = yes; then
14745   gcc_cv_as_comdat_group_percent=no
14746 else
14747  { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14748 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
14749 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14750   echo $ECHO_N "(cached) $ECHO_C" >&6
14751 else
14752   gcc_cv_as_comdat_group_percent=no
14753     if test $in_tree_gas = yes; then
14754     if test $in_tree_gas_is_elf = yes \
14755   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14756   then gcc_cv_as_comdat_group_percent=yes
14757 fi
14758   elif test x$gcc_cv_as != x; then
14759     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14760     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762   (eval $ac_try) 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; }
14766     then
14767         gcc_cv_as_comdat_group_percent=yes
14768     else
14769       echo "configure: failed program was" >&5
14770       cat conftest.s >&5
14771     fi
14772     rm -f conftest.o conftest.s
14773   fi
14774 fi
14775 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14776 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6; }
14777
14778 fi
14779 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14780   comdat_group=yes
14781   if test 0"$ld_date" -lt 20050308; then
14782     if test -n "$ld_date"; then
14783       # If there was date string, but was earlier than 2005-03-08, fail
14784       comdat_group=no
14785     elif test "$ld_vers_major" -lt 2; then
14786       comdat_group=no
14787     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14788       comdat_group=no
14789     fi
14790   fi
14791 else
14792   # assume linkers other than GNU ld don't support COMDAT group
14793   comdat_group=no
14794 fi
14795 if test $comdat_group = no; then
14796   gcc_cv_as_comdat_group=no
14797   gcc_cv_as_comdat_group_percent=no
14798 fi
14799
14800 cat >>confdefs.h <<_ACEOF
14801 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14802 _ACEOF
14803
14804
14805 # Thread-local storage - the check is heavily parametrized.
14806 conftest_s=
14807 tls_first_major=
14808 tls_first_minor=
14809 tls_as_opt=
14810 case "$target" in
14811   alpha*-*-*)
14812     conftest_s='
14813         .section ".tdata","awT",@progbits
14814 foo:    .long   25
14815         .text
14816         ldq     $27,__tls_get_addr($29)         !literal!1
14817         lda     $16,foo($29)                    !tlsgd!1
14818         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14819         ldq     $27,__tls_get_addr($29)         !literal!2
14820         lda     $16,foo($29)                    !tlsldm!2
14821         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14822         ldq     $1,foo($29)                     !gotdtprel
14823         ldah    $2,foo($29)                     !dtprelhi
14824         lda     $3,foo($2)                      !dtprello
14825         lda     $4,foo($29)                     !dtprel
14826         ldq     $1,foo($29)                     !gottprel
14827         ldah    $2,foo($29)                     !tprelhi
14828         lda     $3,foo($2)                      !tprello
14829         lda     $4,foo($29)                     !tprel'
14830         tls_first_major=2
14831         tls_first_minor=13
14832         tls_as_opt=--fatal-warnings
14833         ;;
14834   frv*-*-*)
14835     conftest_s='
14836         .section ".tdata","awT",@progbits
14837 x:      .long   25
14838         .text
14839         call    #gettlsoff(x)'
14840         tls_first_major=2
14841         tls_first_minor=14
14842         ;;
14843   hppa*-*-linux*)
14844     conftest_s='
14845 t1:     .reg    %r20
14846 t2:     .reg    %r21
14847 gp:     .reg    %r19
14848         .section ".tdata","awT",@progbits
14849 foo:    .long   25
14850         .text
14851         .align  4
14852         addil LT%foo-$tls_gdidx$,gp
14853         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14854         b __tls_get_addr
14855         nop
14856         addil LT%foo-$tls_ldidx$,gp
14857         b __tls_get_addr
14858         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14859         addil LR%foo-$tls_dtpoff$,%ret0
14860         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14861         mfctl %cr27,%t1
14862         addil LT%foo-$tls_ieoff$,gp
14863         ldw RT%foo-$tls_ieoff$(%r1),%t2
14864         add %t1,%t2,%t3
14865         mfctl %cr27,%t1
14866         addil LR%foo-$tls_leoff$,%t1
14867         ldo RR%foo-$tls_leoff$(%r1),%t2'
14868         tls_first_major=2
14869         tls_first_minor=15
14870         tls_as_opt=--fatal-warnings
14871         ;;
14872   arm*-*-*)
14873     conftest_s='
14874         .section ".tdata","awT",%progbits
14875 foo:    .long   25
14876         .text
14877 .word foo(gottpoff)
14878 .word foo(tpoff)
14879 .word foo(tlsgd)
14880 .word foo(tlsldm)
14881 .word foo(tlsldo)'
14882         tls_first_major=2
14883         tls_first_minor=17
14884         ;;
14885   i[34567]86-*-*)
14886     conftest_s='
14887         .section ".tdata","awT",@progbits
14888 foo:    .long   25
14889         .text
14890         movl    %gs:0, %eax
14891         leal    foo@TLSGD(,%ebx,1), %eax
14892         leal    foo@TLSLDM(%ebx), %eax
14893         leal    foo@DTPOFF(%eax), %edx
14894         movl    foo@GOTTPOFF(%ebx), %eax
14895         subl    foo@GOTTPOFF(%ebx), %eax
14896         addl    foo@GOTNTPOFF(%ebx), %eax
14897         movl    foo@INDNTPOFF, %eax
14898         movl    $foo@TPOFF, %eax
14899         subl    $foo@TPOFF, %eax
14900         leal    foo@NTPOFF(%ecx), %eax'
14901         tls_first_major=2
14902         tls_first_minor=14
14903         tls_as_opt=--fatal-warnings
14904         ;;
14905   x86_64-*-*)
14906     conftest_s='
14907         .section ".tdata","awT",@progbits
14908 foo:    .long   25
14909         .text
14910         movq    %fs:0, %rax
14911         leaq    foo@TLSGD(%rip), %rdi
14912         leaq    foo@TLSLD(%rip), %rdi
14913         leaq    foo@DTPOFF(%rax), %rdx
14914         movq    foo@GOTTPOFF(%rip), %rax
14915         movq    $foo@TPOFF, %rax'
14916         tls_first_major=2
14917         tls_first_minor=14
14918         tls_as_opt=--fatal-warnings
14919         ;;
14920   ia64-*-*)
14921     conftest_s='
14922         .section ".tdata","awT",@progbits
14923 foo:    data8   25
14924         .text
14925         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14926         addl    r17 = @ltoff(@dtprel(foo#)), gp
14927         addl    r18 = @ltoff(@tprel(foo#)), gp
14928         addl    r19 = @dtprel(foo#), gp
14929         adds    r21 = @dtprel(foo#), r13
14930         movl    r23 = @dtprel(foo#)
14931         addl    r20 = @tprel(foo#), gp
14932         adds    r22 = @tprel(foo#), r13
14933         movl    r24 = @tprel(foo#)'
14934         tls_first_major=2
14935         tls_first_minor=13
14936         tls_as_opt=--fatal-warnings
14937         ;;
14938   mips*-*-*)
14939     conftest_s='
14940         .section .tdata,"awT",@progbits
14941 x:
14942         .word 2
14943         .text
14944         addiu $4, $28, %tlsgd(x)
14945         addiu $4, $28, %tlsldm(x)
14946         lui $4, %dtprel_hi(x)
14947         addiu $4, $4, %dtprel_lo(x)
14948         lw $4, %gottprel(x)($28)
14949         lui $4, %tprel_hi(x)
14950         addiu $4, $4, %tprel_lo(x)'
14951         tls_first_major=2
14952         tls_first_minor=16
14953         tls_as_opt='-32 --fatal-warnings'
14954         ;;
14955   powerpc-*-*)
14956     conftest_s='
14957         .section ".tdata","awT",@progbits
14958         .align 2
14959 ld0:    .space 4
14960 ld1:    .space 4
14961 x1:     .space 4
14962 x2:     .space 4
14963 x3:     .space 4
14964         .text
14965         addi 3,31,ld0@got@tlsgd
14966         bl __tls_get_addr
14967         addi 3,31,x1@got@tlsld
14968         bl __tls_get_addr
14969         addi 9,3,x1@dtprel
14970         addis 9,3,x2@dtprel@ha
14971         addi 9,9,x2@dtprel@l
14972         lwz 9,x3@got@tprel(31)
14973         add 9,9,x@tls
14974         addi 9,2,x1@tprel
14975         addis 9,2,x2@tprel@ha
14976         addi 9,9,x2@tprel@l'
14977         tls_first_major=2
14978         tls_first_minor=14
14979         tls_as_opt="-a32 --fatal-warnings"
14980         ;;
14981   powerpc64-*-*)
14982     conftest_s='
14983         .section ".tdata","awT",@progbits
14984         .align 3
14985 ld0:    .space 8
14986 ld1:    .space 8
14987 x1:     .space 8
14988 x2:     .space 8
14989 x3:     .space 8
14990         .text
14991         addi 3,2,ld0@got@tlsgd
14992         bl .__tls_get_addr
14993         nop
14994         addi 3,2,ld1@toc
14995         bl .__tls_get_addr
14996         nop
14997         addi 3,2,x1@got@tlsld
14998         bl .__tls_get_addr
14999         nop
15000         addi 9,3,x1@dtprel
15001         bl .__tls_get_addr
15002         nop
15003         addis 9,3,x2@dtprel@ha
15004         addi 9,9,x2@dtprel@l
15005         bl .__tls_get_addr
15006         nop
15007         ld 9,x3@got@dtprel(2)
15008         add 9,9,3
15009         bl .__tls_get_addr
15010         nop'
15011         tls_first_major=2
15012         tls_first_minor=14
15013         tls_as_opt="-a64 --fatal-warnings"
15014         ;;
15015   s390-*-*)
15016     conftest_s='
15017         .section ".tdata","awT",@progbits
15018 foo:    .long   25
15019         .text
15020         .long   foo@TLSGD
15021         .long   foo@TLSLDM
15022         .long   foo@DTPOFF
15023         .long   foo@NTPOFF
15024         .long   foo@GOTNTPOFF
15025         .long   foo@INDNTPOFF
15026         l       %r1,foo@GOTNTPOFF(%r12)
15027         l       %r1,0(%r1):tls_load:foo
15028         bas     %r14,0(%r1,%r13):tls_gdcall:foo
15029         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
15030         tls_first_major=2
15031         tls_first_minor=14
15032         tls_as_opt="-m31 --fatal-warnings"
15033         ;;
15034   s390x-*-*)
15035     conftest_s='
15036         .section ".tdata","awT",@progbits
15037 foo:    .long   25
15038         .text
15039         .quad   foo@TLSGD
15040         .quad   foo@TLSLDM
15041         .quad   foo@DTPOFF
15042         .quad   foo@NTPOFF
15043         .quad   foo@GOTNTPOFF
15044         lg      %r1,foo@GOTNTPOFF(%r12)
15045         larl    %r1,foo@INDNTPOFF
15046         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
15047         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
15048         tls_first_major=2
15049         tls_first_minor=14
15050         tls_as_opt="-m64 -Aesame --fatal-warnings"
15051         ;;
15052   sh-*-* | sh[34]-*-*)
15053     conftest_s='
15054         .section ".tdata","awT",@progbits
15055 foo:    .long   25
15056         .text
15057         .long   foo@TLSGD
15058         .long   foo@TLSLDM
15059         .long   foo@DTPOFF
15060         .long   foo@GOTTPOFF
15061         .long   foo@TPOFF'
15062         tls_first_major=2
15063         tls_first_minor=13
15064         tls_as_opt=--fatal-warnings
15065         ;;
15066   sparc*-*-*)
15067     case "$target" in
15068       sparc*-sun-solaris2.[56789]*)
15069         # TLS was introduced in the Solaris 9 4/04 release but
15070         # we do not enable it by default on Solaris 9 either.
15071         if test "x$enable_tls" = xyes ; then
15072           on_solaris=yes
15073         else
15074           enable_tls=no;
15075         fi
15076         ;;
15077       sparc*-sun-solaris2.*)
15078         on_solaris=yes
15079         ;;
15080       *)
15081         on_solaris=no
15082         ;;
15083     esac
15084     if test x$on_solaris = xyes && test x$gas_flag = xno; then
15085       conftest_s='
15086         .section ".tdata",#alloc,#write,#tls
15087 foo:    .long   25
15088         .text
15089         sethi   %tgd_hi22(foo), %o0
15090         add     %o0, %tgd_lo10(foo), %o1
15091         add     %l7, %o1, %o0, %tgd_add(foo)
15092         call    __tls_get_addr, %tgd_call(foo)
15093         sethi   %tldm_hi22(foo), %l1
15094         add     %l1, %tldm_lo10(foo), %l2
15095         add     %l7, %l2, %o0, %tldm_add(foo)
15096         call    __tls_get_addr, %tldm_call(foo)
15097         sethi   %tldo_hix22(foo), %l3
15098         xor     %l3, %tldo_lox10(foo), %l4
15099         add     %o0, %l4, %l5, %tldo_add(foo)
15100         sethi   %tie_hi22(foo), %o3
15101         add     %o3, %tie_lo10(foo), %o3
15102         ld      [%l7 + %o3], %o2, %tie_ld(foo)
15103         add     %g7, %o2, %o4, %tie_add(foo)
15104         sethi   %tle_hix22(foo), %l1
15105         xor     %l1, %tle_lox10(foo), %o5
15106         ld      [%g7 + %o5], %o1'
15107         tls_first_major=0
15108         tls_first_minor=0
15109     else
15110       conftest_s='
15111         .section ".tdata","awT",@progbits
15112 foo:    .long   25
15113         .text
15114         sethi   %tgd_hi22(foo), %o0
15115         add     %o0, %tgd_lo10(foo), %o1
15116         add     %l7, %o1, %o0, %tgd_add(foo)
15117         call    __tls_get_addr, %tgd_call(foo)
15118         sethi   %tldm_hi22(foo), %l1
15119         add     %l1, %tldm_lo10(foo), %l2
15120         add     %l7, %l2, %o0, %tldm_add(foo)
15121         call    __tls_get_addr, %tldm_call(foo)
15122         sethi   %tldo_hix22(foo), %l3
15123         xor     %l3, %tldo_lox10(foo), %l4
15124         add     %o0, %l4, %l5, %tldo_add(foo)
15125         sethi   %tie_hi22(foo), %o3
15126         add     %o3, %tie_lo10(foo), %o3
15127         ld      [%l7 + %o3], %o2, %tie_ld(foo)
15128         add     %g7, %o2, %o4, %tie_add(foo)
15129         sethi   %tle_hix22(foo), %l1
15130         xor     %l1, %tle_lox10(foo), %o5
15131         ld      [%g7 + %o5], %o1'
15132         tls_first_major=2
15133         tls_first_minor=14
15134         tls_as_opt="-32 --fatal-warnings"
15135       fi
15136         ;;
15137 esac
15138 set_have_as_tls=no
15139 if test "x$enable_tls" = xno ; then
15140   : # TLS explicitly disabled.
15141 elif test "x$enable_tls" = xyes ; then
15142   set_have_as_tls=yes # TLS explicitly enabled.
15143 elif test -z "$tls_first_major"; then
15144   : # If we don't have a check, assume no support.
15145 else
15146   { echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15147 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6; }
15148 if test "${gcc_cv_as_tls+set}" = set; then
15149   echo $ECHO_N "(cached) $ECHO_C" >&6
15150 else
15151   gcc_cv_as_tls=no
15152     if test $in_tree_gas = yes; then
15153     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15154   then gcc_cv_as_tls=yes
15155 fi
15156   elif test x$gcc_cv_as != x; then
15157     echo "$conftest_s" > conftest.s
15158     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160   (eval $ac_try) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; }
15164     then
15165         gcc_cv_as_tls=yes
15166     else
15167       echo "configure: failed program was" >&5
15168       cat conftest.s >&5
15169     fi
15170     rm -f conftest.o conftest.s
15171   fi
15172 fi
15173 { echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15174 echo "${ECHO_T}$gcc_cv_as_tls" >&6; }
15175 if test $gcc_cv_as_tls = yes; then
15176   set_have_as_tls=yes
15177 fi
15178 fi
15179 if test $set_have_as_tls = yes ; then
15180
15181 cat >>confdefs.h <<\_ACEOF
15182 #define HAVE_AS_TLS 1
15183 _ACEOF
15184
15185 fi
15186
15187 # Target-specific assembler checks.
15188
15189 { echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15190 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6; }
15191 gcc_cv_ld_static_dynamic=no
15192 if test $in_tree_ld = yes ; then
15193   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15194     gcc_cv_ld_static_dynamic=yes
15195   fi
15196 elif test x$gcc_cv_ld != x; then
15197         # Check if linker supports -Bstatic/-Bdynamic option
15198         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
15199           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
15200                 gcc_cv_ld_static_dynamic=yes
15201         fi
15202 fi
15203 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
15204
15205 cat >>confdefs.h <<\_ACEOF
15206 #define HAVE_LD_STATIC_DYNAMIC 1
15207 _ACEOF
15208
15209 fi
15210 { echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15211 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6; }
15212
15213 if test x"$demangler_in_ld" = xyes; then
15214   { echo "$as_me:$LINENO: checking linker --demangle support" >&5
15215 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6; }
15216   gcc_cv_ld_demangle=no
15217   if test $in_tree_ld = yes; then
15218     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
15219       gcc_cv_ld_demangle=yes
15220     fi
15221   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
15222     # Check if the GNU linker supports --demangle option
15223     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
15224       gcc_cv_ld_demangle=yes
15225     fi
15226   fi
15227   if test x"$gcc_cv_ld_demangle" = xyes; then
15228
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_LD_DEMANGLE 1
15231 _ACEOF
15232
15233   fi
15234   { echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15235 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6; }
15236 fi
15237
15238 case "$target" in
15239   # All TARGET_ABI_OSF targets.
15240   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
15241     { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15242 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
15243 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15244   echo $ECHO_N "(cached) $ECHO_C" >&6
15245 else
15246   gcc_cv_as_alpha_explicit_relocs=no
15247     if test $in_tree_gas = yes; then
15248     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15249   then gcc_cv_as_alpha_explicit_relocs=yes
15250 fi
15251   elif test x$gcc_cv_as != x; then
15252     echo '      .set nomacro
15253         .text
15254         extbl   $3, $2, $3      !lituse_bytoff!1
15255         ldq     $2, a($29)      !literal!1
15256         ldq     $4, b($29)      !literal!2
15257         ldq_u   $3, 0($2)       !lituse_base!1
15258         ldq     $27, f($29)     !literal!5
15259         jsr     $26, ($27), f   !lituse_jsr!5
15260         ldah    $29, 0($26)     !gpdisp!3
15261         lda     $0, c($29)      !gprel
15262         ldah    $1, d($29)      !gprelhigh
15263         lda     $1, d($1)       !gprellow
15264         lda     $29, 0($29)     !gpdisp!3' > conftest.s
15265     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267   (eval $ac_try) 2>&5
15268   ac_status=$?
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); }; }
15271     then
15272         gcc_cv_as_alpha_explicit_relocs=yes
15273     else
15274       echo "configure: failed program was" >&5
15275       cat conftest.s >&5
15276     fi
15277     rm -f conftest.o conftest.s
15278   fi
15279 fi
15280 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15281 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6; }
15282 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15283
15284 cat >>confdefs.h <<\_ACEOF
15285 #define HAVE_AS_EXPLICIT_RELOCS 1
15286 _ACEOF
15287
15288 fi
15289     { echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15290 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6; }
15291 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15292   echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294   gcc_cv_as_alpha_jsrdirect_relocs=no
15295     if test $in_tree_gas = yes; then
15296     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15297   then gcc_cv_as_alpha_jsrdirect_relocs=yes
15298 fi
15299   elif test x$gcc_cv_as != x; then
15300     echo '      .set nomacro
15301         .text
15302         ldq     $27, a($29)     !literal!1
15303         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
15304     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306   (eval $ac_try) 2>&5
15307   ac_status=$?
15308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309   (exit $ac_status); }; }
15310     then
15311         gcc_cv_as_alpha_jsrdirect_relocs=yes
15312     else
15313       echo "configure: failed program was" >&5
15314       cat conftest.s >&5
15315     fi
15316     rm -f conftest.o conftest.s
15317   fi
15318 fi
15319 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15320 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
15321 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15322
15323 cat >>confdefs.h <<\_ACEOF
15324 #define HAVE_AS_JSRDIRECT_RELOCS 1
15325 _ACEOF
15326
15327 fi
15328     ;;
15329
15330   cris-*-*)
15331     { echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15332 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6; }
15333 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15334   echo $ECHO_N "(cached) $ECHO_C" >&6
15335 else
15336   gcc_cv_as_cris_no_mul_bug=no
15337     if test $in_tree_gas = yes; then
15338     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15339   then gcc_cv_as_cris_no_mul_bug=yes
15340 fi
15341   elif test x$gcc_cv_as != x; then
15342     echo '.text' > conftest.s
15343     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345   (eval $ac_try) 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }
15349     then
15350         gcc_cv_as_cris_no_mul_bug=yes
15351     else
15352       echo "configure: failed program was" >&5
15353       cat conftest.s >&5
15354     fi
15355     rm -f conftest.o conftest.s
15356   fi
15357 fi
15358 { echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15359 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6; }
15360 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15361
15362 cat >>confdefs.h <<\_ACEOF
15363 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15364 _ACEOF
15365
15366 fi
15367     ;;
15368
15369   sparc*-*-*)
15370     { echo "$as_me:$LINENO: checking assembler for .register" >&5
15371 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6; }
15372 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   gcc_cv_as_sparc_register_op=no
15376   if test x$gcc_cv_as != x; then
15377     echo '.register %g2, #scratch' > conftest.s
15378     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380   (eval $ac_try) 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); }; }
15384     then
15385         gcc_cv_as_sparc_register_op=yes
15386     else
15387       echo "configure: failed program was" >&5
15388       cat conftest.s >&5
15389     fi
15390     rm -f conftest.o conftest.s
15391   fi
15392 fi
15393 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15394 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6; }
15395 if test $gcc_cv_as_sparc_register_op = yes; then
15396
15397 cat >>confdefs.h <<\_ACEOF
15398 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15399 _ACEOF
15400
15401 fi
15402
15403     { echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15404 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6; }
15405 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15406   echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408   gcc_cv_as_sparc_relax=no
15409   if test x$gcc_cv_as != x; then
15410     echo '.text' > conftest.s
15411     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413   (eval $ac_try) 2>&5
15414   ac_status=$?
15415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416   (exit $ac_status); }; }
15417     then
15418         gcc_cv_as_sparc_relax=yes
15419     else
15420       echo "configure: failed program was" >&5
15421       cat conftest.s >&5
15422     fi
15423     rm -f conftest.o conftest.s
15424   fi
15425 fi
15426 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15427 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6; }
15428 if test $gcc_cv_as_sparc_relax = yes; then
15429
15430 cat >>confdefs.h <<\_ACEOF
15431 #define HAVE_AS_RELAX_OPTION 1
15432 _ACEOF
15433
15434 fi
15435
15436     { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15437 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6; }
15438 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441   gcc_cv_as_sparc_ua_pcrel=no
15442   if test x$gcc_cv_as != x; then
15443     echo '.text
15444 foo:
15445         nop
15446 .data
15447 .align 4
15448 .byte 0
15449 .uaword %r_disp32(foo)' > conftest.s
15450     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452   (eval $ac_try) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); }; }
15456     then
15457         if test x$gcc_cv_ld != x \
15458        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15459          gcc_cv_as_sparc_ua_pcrel=yes
15460        fi
15461        rm -f conftest
15462     else
15463       echo "configure: failed program was" >&5
15464       cat conftest.s >&5
15465     fi
15466     rm -f conftest.o conftest.s
15467   fi
15468 fi
15469 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15470 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6; }
15471 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15472
15473 cat >>confdefs.h <<\_ACEOF
15474 #define HAVE_AS_SPARC_UA_PCREL 1
15475 _ACEOF
15476
15477
15478       { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15479 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6; }
15480 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15481   echo $ECHO_N "(cached) $ECHO_C" >&6
15482 else
15483   gcc_cv_as_sparc_ua_pcrel_hidden=no
15484   if test x$gcc_cv_as != x; then
15485     echo '.data
15486 .align 4
15487 .byte 0x31
15488 .uaword %r_disp32(foo)
15489 .byte 0x32, 0x33, 0x34
15490 .global foo
15491 .hidden foo
15492 foo:
15493 .skip 4' > conftest.s
15494     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496   (eval $ac_try) 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; }
15500     then
15501         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15502          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15503          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15504             | grep ' 31000000 07323334' > /dev/null 2>&1; then
15505             if $gcc_cv_objdump -R conftest 2> /dev/null \
15506                | grep 'DISP32' > /dev/null 2>&1; then
15507                 :
15508             else
15509                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15510             fi
15511          fi
15512          rm -f conftest
15513     else
15514       echo "configure: failed program was" >&5
15515       cat conftest.s >&5
15516     fi
15517     rm -f conftest.o conftest.s
15518   fi
15519 fi
15520 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15521 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
15522 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15523
15524 cat >>confdefs.h <<\_ACEOF
15525 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15526 _ACEOF
15527
15528 fi
15529
15530 fi # unaligned pcrel relocs
15531
15532     { echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15533 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6; }
15534 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15535   echo $ECHO_N "(cached) $ECHO_C" >&6
15536 else
15537   gcc_cv_as_sparc_offsetable_lo10=no
15538   if test x$gcc_cv_as != x; then
15539     echo '.text
15540         or %g1, %lo(ab) + 12, %g1
15541         or %g1, %lo(ab + 12), %g1' > conftest.s
15542     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544   (eval $ac_try) 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); }; }
15548     then
15549         if test x$gcc_cv_objdump != x \
15550        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15551           | grep ' 82106000 82106000' > /dev/null 2>&1; then
15552          gcc_cv_as_sparc_offsetable_lo10=yes
15553        fi
15554     else
15555       echo "configure: failed program was" >&5
15556       cat conftest.s >&5
15557     fi
15558     rm -f conftest.o conftest.s
15559   fi
15560 fi
15561 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15562 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6; }
15563 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15564
15565 cat >>confdefs.h <<\_ACEOF
15566 #define HAVE_AS_OFFSETABLE_LO10 1
15567 _ACEOF
15568
15569 fi
15570     ;;
15571
15572   i[34567]86-*-* | x86_64-*-*)
15573     case $target_os in
15574       cygwin* | pe | mingw32*)
15575         # Used for DWARF 2 in PE
15576         { echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15577 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6; }
15578 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15579   echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581   gcc_cv_as_ix86_pe_secrel32=no
15582     if test $in_tree_gas = yes; then
15583     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15584   then gcc_cv_as_ix86_pe_secrel32=yes
15585 fi
15586   elif test x$gcc_cv_as != x; then
15587     echo '.text
15588 foo:    nop
15589 .data
15590         .secrel32 foo' > conftest.s
15591     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }
15597     then
15598         if test x$gcc_cv_ld != x \
15599            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15600              gcc_cv_as_ix86_pe_secrel32=yes
15601            fi
15602            rm -f conftest
15603     else
15604       echo "configure: failed program was" >&5
15605       cat conftest.s >&5
15606     fi
15607     rm -f conftest.o conftest.s
15608   fi
15609 fi
15610 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15611 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6; }
15612 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15613
15614 cat >>confdefs.h <<\_ACEOF
15615 #define HAVE_GAS_PE_SECREL32_RELOC 1
15616 _ACEOF
15617
15618 fi
15619         ;;
15620     esac
15621
15622     { echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15623 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6; }
15624 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15625   echo $ECHO_N "(cached) $ECHO_C" >&6
15626 else
15627   gcc_cv_as_ix86_filds_fists=no
15628     if test $in_tree_gas = yes; then
15629     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15630   then gcc_cv_as_ix86_filds_fists=yes
15631 fi
15632   elif test x$gcc_cv_as != x; then
15633     echo 'filds mem; fists mem' > conftest.s
15634     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636   (eval $ac_try) 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; }
15640     then
15641         gcc_cv_as_ix86_filds_fists=yes
15642     else
15643       echo "configure: failed program was" >&5
15644       cat conftest.s >&5
15645     fi
15646     rm -f conftest.o conftest.s
15647   fi
15648 fi
15649 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15650 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6; }
15651 if test $gcc_cv_as_ix86_filds_fists = yes; then
15652
15653 cat >>confdefs.h <<\_ACEOF
15654 #define HAVE_GAS_FILDS_FISTS 1
15655 _ACEOF
15656
15657 fi
15658
15659     { echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15660 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6; }
15661 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15662   echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664   gcc_cv_as_ix86_cmov_sun_syntax=no
15665   if test x$gcc_cv_as != x; then
15666     echo 'cmovl.l %edx, %eax' > conftest.s
15667     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669   (eval $ac_try) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; }
15673     then
15674         gcc_cv_as_ix86_cmov_sun_syntax=yes
15675     else
15676       echo "configure: failed program was" >&5
15677       cat conftest.s >&5
15678     fi
15679     rm -f conftest.o conftest.s
15680   fi
15681 fi
15682 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15683 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
15684 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15685
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15688 _ACEOF
15689
15690 fi
15691
15692     { echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15693 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6; }
15694 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15695   echo $ECHO_N "(cached) $ECHO_C" >&6
15696 else
15697   gcc_cv_as_ix86_ffreep=no
15698   if test x$gcc_cv_as != x; then
15699     echo 'ffreep %st(1)' > conftest.s
15700     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702   (eval $ac_try) 2>&5
15703   ac_status=$?
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); }; }
15706     then
15707         gcc_cv_as_ix86_ffreep=yes
15708     else
15709       echo "configure: failed program was" >&5
15710       cat conftest.s >&5
15711     fi
15712     rm -f conftest.o conftest.s
15713   fi
15714 fi
15715 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15716 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6; }
15717 if test $gcc_cv_as_ix86_ffreep = yes; then
15718
15719 cat >>confdefs.h <<\_ACEOF
15720 #define HAVE_AS_IX86_FFREEP 1
15721 _ACEOF
15722
15723 fi
15724
15725     { echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15726 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6; }
15727 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15728   echo $ECHO_N "(cached) $ECHO_C" >&6
15729 else
15730   gcc_cv_as_ix86_sahf=no
15731   if test x$gcc_cv_as != x; then
15732     echo 'sahf' > conftest.s
15733     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }
15739     then
15740         gcc_cv_as_ix86_sahf=yes
15741     else
15742       echo "configure: failed program was" >&5
15743       cat conftest.s >&5
15744     fi
15745     rm -f conftest.o conftest.s
15746   fi
15747 fi
15748 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15749 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6; }
15750 if test $gcc_cv_as_ix86_sahf = yes; then
15751
15752 cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_AS_IX86_SAHF 1
15754 _ACEOF
15755
15756 fi
15757
15758     { echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15759 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6; }
15760 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15761   echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763   gcc_cv_as_ix86_diff_sect_delta=no
15764   if test x$gcc_cv_as != x; then
15765     echo '.section .rodata
15766 .L1:
15767         .long .L2-.L1
15768         .long .L3-.L1
15769         .text
15770 .L3:    nop
15771 .L2:    nop' > conftest.s
15772     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774   (eval $ac_try) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; }
15778     then
15779         gcc_cv_as_ix86_diff_sect_delta=yes
15780     else
15781       echo "configure: failed program was" >&5
15782       cat conftest.s >&5
15783     fi
15784     rm -f conftest.o conftest.s
15785   fi
15786 fi
15787 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15788 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6; }
15789 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15790
15791 cat >>confdefs.h <<\_ACEOF
15792 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15793 _ACEOF
15794
15795 fi
15796
15797     # This one is used unconditionally by i386.[ch]; it is to be defined
15798     # to 1 if the feature is present, 0 otherwise.
15799     { echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15800 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6; }
15801 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15802   echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804   gcc_cv_as_ix86_gotoff_in_data=no
15805     if test $in_tree_gas = yes; then
15806     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15807   then gcc_cv_as_ix86_gotoff_in_data=yes
15808 fi
15809   elif test x$gcc_cv_as != x; then
15810     echo '      .text
15811 .L0:
15812         nop
15813         .data
15814         .long .L0@GOTOFF' > conftest.s
15815     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817   (eval $ac_try) 2>&5
15818   ac_status=$?
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); }; }
15821     then
15822         gcc_cv_as_ix86_gotoff_in_data=yes
15823     else
15824       echo "configure: failed program was" >&5
15825       cat conftest.s >&5
15826     fi
15827     rm -f conftest.o conftest.s
15828   fi
15829 fi
15830 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15831 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6; }
15832
15833
15834 cat >>confdefs.h <<_ACEOF
15835 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15836 _ACEOF
15837
15838     ;;
15839
15840   ia64*-*-*)
15841     { echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15842 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6; }
15843 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15844   echo $ECHO_N "(cached) $ECHO_C" >&6
15845 else
15846   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15847     if test $in_tree_gas = yes; then
15848     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15849   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15850 fi
15851   elif test x$gcc_cv_as != x; then
15852     echo '      .text
15853         addl r15 = @ltoffx(x#), gp
15854         ;;
15855         ld8.mov r16 = [r15], x#' > conftest.s
15856     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858   (eval $ac_try) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; }
15862     then
15863         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15864     else
15865       echo "configure: failed program was" >&5
15866       cat conftest.s >&5
15867     fi
15868     rm -f conftest.o conftest.s
15869   fi
15870 fi
15871 { echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15872 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
15873 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15874
15875 cat >>confdefs.h <<\_ACEOF
15876 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15877 _ACEOF
15878
15879 fi
15880
15881     ;;
15882
15883   powerpc*-*-*)
15884     case $target in
15885       *-*-aix*) conftest_s='    .machine "pwr5"
15886         .csect .text[PR]
15887         mfcr 3,128';;
15888       *-*-darwin*)
15889         { echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15890 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6; }
15891 if test "${gcc_cv_as_machine_directive+set}" = set; then
15892   echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894   gcc_cv_as_machine_directive=no
15895   if test x$gcc_cv_as != x; then
15896     echo '      .machine ppc7400' > conftest.s
15897     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899   (eval $ac_try) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }; }
15903     then
15904         gcc_cv_as_machine_directive=yes
15905     else
15906       echo "configure: failed program was" >&5
15907       cat conftest.s >&5
15908     fi
15909     rm -f conftest.o conftest.s
15910   fi
15911 fi
15912 { echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15913 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6; }
15914
15915         if test x$gcc_cv_as_machine_directive != xyes; then
15916           echo "*** This target requires an assembler supporting \".machine\"" >&2
15917           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15918           test x$build = x$target && exit 1
15919         fi
15920         conftest_s='    .text
15921         mfcr r3,128';;
15922       *) conftest_s='   .machine power4
15923         .text
15924         mfcr 3,128';;
15925     esac
15926
15927     { echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15928 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6; }
15929 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15930   echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932   gcc_cv_as_powerpc_mfcrf=no
15933     if test $in_tree_gas = yes; then
15934     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15935   then gcc_cv_as_powerpc_mfcrf=yes
15936 fi
15937   elif test x$gcc_cv_as != x; then
15938     echo "$conftest_s" > conftest.s
15939     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941   (eval $ac_try) 2>&5
15942   ac_status=$?
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); }; }
15945     then
15946         gcc_cv_as_powerpc_mfcrf=yes
15947     else
15948       echo "configure: failed program was" >&5
15949       cat conftest.s >&5
15950     fi
15951     rm -f conftest.o conftest.s
15952   fi
15953 fi
15954 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15955 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6; }
15956 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15957
15958 cat >>confdefs.h <<\_ACEOF
15959 #define HAVE_AS_MFCRF 1
15960 _ACEOF
15961
15962 fi
15963
15964     case $target in
15965       *-*-aix*) conftest_s='    .machine "pwr5"
15966         .csect .text[PR]
15967         popcntb 3,3';;
15968       *) conftest_s='   .machine power5
15969         .text
15970         popcntb 3,3';;
15971     esac
15972
15973     { echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15974 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6; }
15975 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15976   echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978   gcc_cv_as_powerpc_popcntb=no
15979     if test $in_tree_gas = yes; then
15980     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15981   then gcc_cv_as_powerpc_popcntb=yes
15982 fi
15983   elif test x$gcc_cv_as != x; then
15984     echo "$conftest_s" > conftest.s
15985     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987   (eval $ac_try) 2>&5
15988   ac_status=$?
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); }; }
15991     then
15992         gcc_cv_as_powerpc_popcntb=yes
15993     else
15994       echo "configure: failed program was" >&5
15995       cat conftest.s >&5
15996     fi
15997     rm -f conftest.o conftest.s
15998   fi
15999 fi
16000 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
16001 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6; }
16002 if test $gcc_cv_as_powerpc_popcntb = yes; then
16003
16004 cat >>confdefs.h <<\_ACEOF
16005 #define HAVE_AS_POPCNTB 1
16006 _ACEOF
16007
16008 fi
16009
16010     case $target in
16011       *-*-aix*) conftest_s='    .machine "pwr5x"
16012         .csect .text[PR]
16013         frin 1,1';;
16014       *) conftest_s='   .machine power5
16015         .text
16016         frin 1,1';;
16017     esac
16018
16019     { echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16020 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6; }
16021 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16022   echo $ECHO_N "(cached) $ECHO_C" >&6
16023 else
16024   gcc_cv_as_powerpc_fprnd=no
16025     if test $in_tree_gas = yes; then
16026     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16027   then gcc_cv_as_powerpc_fprnd=yes
16028 fi
16029   elif test x$gcc_cv_as != x; then
16030     echo "$conftest_s" > conftest.s
16031     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033   (eval $ac_try) 2>&5
16034   ac_status=$?
16035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036   (exit $ac_status); }; }
16037     then
16038         gcc_cv_as_powerpc_fprnd=yes
16039     else
16040       echo "configure: failed program was" >&5
16041       cat conftest.s >&5
16042     fi
16043     rm -f conftest.o conftest.s
16044   fi
16045 fi
16046 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16047 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6; }
16048 if test $gcc_cv_as_powerpc_fprnd = yes; then
16049
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_AS_FPRND 1
16052 _ACEOF
16053
16054 fi
16055
16056     case $target in
16057       *-*-aix*) conftest_s='    .machine "pwr6"
16058         .csect .text[PR]
16059         mffgpr 1,3';;
16060       *) conftest_s='   .machine power6
16061         .text
16062         mffgpr 1,3';;
16063     esac
16064
16065     { echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
16066 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6; }
16067 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
16068   echo $ECHO_N "(cached) $ECHO_C" >&6
16069 else
16070   gcc_cv_as_powerpc_mfpgpr=no
16071     if test $in_tree_gas = yes; then
16072     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16073   then gcc_cv_as_powerpc_mfpgpr=yes
16074 fi
16075   elif test x$gcc_cv_as != x; then
16076     echo "$conftest_s" > conftest.s
16077     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079   (eval $ac_try) 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; }
16083     then
16084         gcc_cv_as_powerpc_mfpgpr=yes
16085     else
16086       echo "configure: failed program was" >&5
16087       cat conftest.s >&5
16088     fi
16089     rm -f conftest.o conftest.s
16090   fi
16091 fi
16092 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
16093 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6; }
16094 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
16095
16096 cat >>confdefs.h <<\_ACEOF
16097 #define HAVE_AS_MFPGPR 1
16098 _ACEOF
16099
16100 fi
16101
16102     case $target in
16103       *-*-aix*) conftest_s='    .csect .text[PR]
16104 LCF..0:
16105         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16106       *-*-darwin*)
16107         conftest_s='    .text
16108 LCF0:
16109         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16110       *) conftest_s='   .text
16111 .LCF0:
16112         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16113     esac
16114
16115     { echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16116 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6; }
16117 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   gcc_cv_as_powerpc_rel16=no
16121     if test $in_tree_gas = yes; then
16122     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16123   then gcc_cv_as_powerpc_rel16=yes
16124 fi
16125   elif test x$gcc_cv_as != x; then
16126     echo "$conftest_s" > conftest.s
16127     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129   (eval $ac_try) 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); }; }
16133     then
16134         gcc_cv_as_powerpc_rel16=yes
16135     else
16136       echo "configure: failed program was" >&5
16137       cat conftest.s >&5
16138     fi
16139     rm -f conftest.o conftest.s
16140   fi
16141 fi
16142 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16143 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6; }
16144 if test $gcc_cv_as_powerpc_rel16 = yes; then
16145
16146 cat >>confdefs.h <<\_ACEOF
16147 #define HAVE_AS_REL16 1
16148 _ACEOF
16149
16150 fi
16151
16152     case $target in
16153       *-*-aix*) conftest_s='    .machine "pwr6"
16154         .csect .text[PR]
16155         cmpb 3,4,5';;
16156       *) conftest_s='   .machine power6
16157         .text
16158         cmpb 3,4,5';;
16159     esac
16160
16161     { echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
16162 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6; }
16163 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166   gcc_cv_as_powerpc_cmpb=no
16167     if test $in_tree_gas = yes; then
16168     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16169   then gcc_cv_as_powerpc_cmpb=yes
16170 fi
16171   elif test x$gcc_cv_as != x; then
16172     echo "$conftest_s" > conftest.s
16173     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175   (eval $ac_try) 2>&5
16176   ac_status=$?
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); }; }
16179     then
16180         gcc_cv_as_powerpc_cmpb=yes
16181     else
16182       echo "configure: failed program was" >&5
16183       cat conftest.s >&5
16184     fi
16185     rm -f conftest.o conftest.s
16186   fi
16187 fi
16188 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
16189 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6; }
16190 if test $gcc_cv_as_powerpc_cmpb = yes; then
16191
16192 cat >>confdefs.h <<\_ACEOF
16193 #define HAVE_AS_CMPB 1
16194 _ACEOF
16195
16196 fi
16197
16198     case $target in
16199       *-*-aix*) conftest_s='    .machine "pwr6"
16200         .csect .text[PR]
16201         dadd 1,3';;
16202       *) conftest_s='   .machine power6
16203         .text
16204         dadd 1,3';;
16205     esac
16206
16207     { echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
16208 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6; }
16209 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
16210   echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212   gcc_cv_as_powerpc_dfp=no
16213     if test $in_tree_gas = yes; then
16214     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16215   then gcc_cv_as_powerpc_dfp=yes
16216 fi
16217   elif test x$gcc_cv_as != x; then
16218     echo "$conftest_s" > conftest.s
16219     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221   (eval $ac_try) 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); }; }
16225     then
16226         gcc_cv_as_powerpc_dfp=yes
16227     else
16228       echo "configure: failed program was" >&5
16229       cat conftest.s >&5
16230     fi
16231     rm -f conftest.o conftest.s
16232   fi
16233 fi
16234 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
16235 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6; }
16236 if test $gcc_cv_as_powerpc_dfp = yes; then
16237
16238 cat >>confdefs.h <<\_ACEOF
16239 #define HAVE_AS_DFP 1
16240 _ACEOF
16241
16242 fi
16243     ;;
16244
16245   mips*-*-*)
16246     { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16247 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
16248 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16249   echo $ECHO_N "(cached) $ECHO_C" >&6
16250 else
16251   gcc_cv_as_mips_explicit_relocs=no
16252     if test $in_tree_gas = yes; then
16253     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16254   then gcc_cv_as_mips_explicit_relocs=yes
16255 fi
16256   elif test x$gcc_cv_as != x; then
16257     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
16258     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }
16264     then
16265         gcc_cv_as_mips_explicit_relocs=yes
16266     else
16267       echo "configure: failed program was" >&5
16268       cat conftest.s >&5
16269     fi
16270     rm -f conftest.o conftest.s
16271   fi
16272 fi
16273 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16274 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6; }
16275 if test $gcc_cv_as_mips_explicit_relocs = yes; then
16276   if test x$target_cpu_default = x
16277        then target_cpu_default=MASK_EXPLICIT_RELOCS
16278        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16279        fi
16280 fi
16281     { echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
16282 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6; }
16283 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
16284   echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286   gcc_cv_as_mips_no_shared=no
16287     if test $in_tree_gas = yes; then
16288     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16289   then gcc_cv_as_mips_no_shared=yes
16290 fi
16291   elif test x$gcc_cv_as != x; then
16292     echo 'nop' > conftest.s
16293     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
16294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295   (eval $ac_try) 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; }
16299     then
16300         gcc_cv_as_mips_no_shared=yes
16301     else
16302       echo "configure: failed program was" >&5
16303       cat conftest.s >&5
16304     fi
16305     rm -f conftest.o conftest.s
16306   fi
16307 fi
16308 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
16309 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6; }
16310 if test $gcc_cv_as_mips_no_shared = yes; then
16311
16312 cat >>confdefs.h <<\_ACEOF
16313 #define HAVE_AS_NO_SHARED 1
16314 _ACEOF
16315
16316 fi
16317     ;;
16318 esac
16319
16320 # Mips and HP-UX need the GNU assembler.
16321 # Linux on IA64 might be able to use the Intel assembler.
16322
16323 case "$target" in
16324   mips*-*-* | *-*-hpux* )
16325     if test x$gas_flag = xyes \
16326        || test x"$host" != x"$build" \
16327        || test ! -x "$gcc_cv_as" \
16328        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16329       :
16330     else
16331       echo "*** This configuration requires the GNU assembler" >&2
16332       exit 1
16333     fi
16334     ;;
16335 esac
16336
16337 # ??? Not all targets support dwarf2 debug_line, even within a version
16338 # of gas.  Moreover, we need to emit a valid instruction to trigger any
16339 # info to the output file.  So, as supported targets are added to gas 2.11,
16340 # add some instruction here to (also) show we expect this might work.
16341 # ??? Once 2.11 is released, probably need to add first known working
16342 # version to the per-target configury.
16343 case "$target" in
16344   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16345   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16346   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16347     insn="nop"
16348     ;;
16349   ia64*-*-* | s390*-*-*)
16350     insn="nop 0"
16351     ;;
16352   mmix-*-*)
16353     insn="swym 0"
16354     ;;
16355 esac
16356 if test x"$insn" != x; then
16357  conftest_s="\
16358         .file 1 \"conftest.s\"
16359         .loc 1 3 0
16360         $insn"
16361  { echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16362 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6; }
16363 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16364   echo $ECHO_N "(cached) $ECHO_C" >&6
16365 else
16366   gcc_cv_as_dwarf2_debug_line=no
16367     if test $in_tree_gas = yes; then
16368     if test $in_tree_gas_is_elf = yes \
16369   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16370   then gcc_cv_as_dwarf2_debug_line=yes
16371 fi
16372   elif test x$gcc_cv_as != x; then
16373     echo "$conftest_s" > conftest.s
16374     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376   (eval $ac_try) 2>&5
16377   ac_status=$?
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); }; }
16380     then
16381         if test x$gcc_cv_objdump != x \
16382    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16383       | grep debug_line > /dev/null 2>&1; then
16384      gcc_cv_as_dwarf2_debug_line=yes
16385    fi
16386     else
16387       echo "configure: failed program was" >&5
16388       cat conftest.s >&5
16389     fi
16390     rm -f conftest.o conftest.s
16391   fi
16392 fi
16393 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16394 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6; }
16395
16396
16397 # The .debug_line file table must be in the exact order that
16398 # we specified the files, since these indices are also used
16399 # by DW_AT_decl_file.  Approximate this test by testing if
16400 # the assembler bitches if the same index is assigned twice.
16401  { echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16402 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6; }
16403 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16404   echo $ECHO_N "(cached) $ECHO_C" >&6
16405 else
16406   gcc_cv_as_dwarf2_file_buggy=no
16407   if test x$gcc_cv_as != x; then
16408     echo '      .file 1 "foo.s"
16409         .file 1 "bar.s"' > conftest.s
16410     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412   (eval $ac_try) 2>&5
16413   ac_status=$?
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); }; }
16416     then
16417         gcc_cv_as_dwarf2_file_buggy=yes
16418     else
16419       echo "configure: failed program was" >&5
16420       cat conftest.s >&5
16421     fi
16422     rm -f conftest.o conftest.s
16423   fi
16424 fi
16425 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16426 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6; }
16427
16428
16429  if test $gcc_cv_as_dwarf2_debug_line = yes \
16430  && test $gcc_cv_as_dwarf2_file_buggy = no; then
16431
16432 cat >>confdefs.h <<\_ACEOF
16433 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16434 _ACEOF
16435
16436  fi
16437
16438  { echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16439 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6; }
16440 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16441   echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443   gcc_cv_as_gdwarf2_flag=no
16444     if test $in_tree_gas = yes; then
16445     if test $in_tree_gas_is_elf = yes \
16446   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16447   then gcc_cv_as_gdwarf2_flag=yes
16448 fi
16449   elif test x$gcc_cv_as != x; then
16450     echo "$insn" > conftest.s
16451     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453   (eval $ac_try) 2>&5
16454   ac_status=$?
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); }; }
16457     then
16458         gcc_cv_as_gdwarf2_flag=yes
16459     else
16460       echo "configure: failed program was" >&5
16461       cat conftest.s >&5
16462     fi
16463     rm -f conftest.o conftest.s
16464   fi
16465 fi
16466 { echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16467 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6; }
16468 if test $gcc_cv_as_gdwarf2_flag = yes; then
16469
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16472 _ACEOF
16473
16474 fi
16475
16476  { echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16477 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6; }
16478 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481   gcc_cv_as_gstabs_flag=no
16482     if test $in_tree_gas = yes; then
16483     if test $in_tree_gas_is_elf = yes \
16484   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16485   then gcc_cv_as_gstabs_flag=yes
16486 fi
16487   elif test x$gcc_cv_as != x; then
16488     echo "$insn" > conftest.s
16489     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; }
16495     then
16496         # The native Solaris 9/Intel assembler doesn't understand --gstabs
16497    # and warns about it, but still exits successfully.  So check for
16498    # this.
16499    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501   (eval $ac_try) 2>&5
16502   ac_status=$?
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); }; }
16505    then :
16506    else gcc_cv_as_gstabs_flag=yes
16507    fi
16508     else
16509       echo "configure: failed program was" >&5
16510       cat conftest.s >&5
16511     fi
16512     rm -f conftest.o conftest.s
16513   fi
16514 fi
16515 { echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16516 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6; }
16517 if test $gcc_cv_as_gstabs_flag = yes; then
16518
16519 cat >>confdefs.h <<\_ACEOF
16520 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16521 _ACEOF
16522
16523 fi
16524 fi
16525
16526 { echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16527 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6; }
16528 if test "${gcc_cv_as_line_zero+set}" = set; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531   gcc_cv_as_line_zero=no
16532   if test $in_tree_gas = yes; then
16533     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16534   then gcc_cv_as_line_zero=yes
16535 fi
16536   elif test "x$gcc_cv_as" != x; then
16537     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16538     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540   (eval $ac_try) 2>&5
16541   ac_status=$?
16542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543   (exit $ac_status); }; } &&
16544        test "x`cat conftest.out`" = x
16545     then
16546       gcc_cv_as_line_zero=yes
16547     else
16548       echo "configure: failed program was" >&5
16549       cat conftest.s >&5
16550       echo "configure: error output was" >&5
16551       cat conftest.out >&5
16552     fi
16553     rm -f conftest.o conftest.s conftest.out
16554   fi
16555 fi
16556 { echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16557 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6; }
16558 if test "x$gcc_cv_as_line_zero" = xyes; then
16559
16560 cat >>confdefs.h <<\_ACEOF
16561 #define HAVE_AS_LINE_ZERO 1
16562 _ACEOF
16563
16564 fi
16565
16566 { echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16567 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6; }
16568 gcc_cv_ld_ro_rw_mix=unknown
16569 if test $in_tree_ld = yes ; then
16570   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
16571      && test $in_tree_ld_is_elf = yes; then
16572     gcc_cv_ld_ro_rw_mix=read-write
16573   fi
16574 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16575   echo '.section myfoosect, "a"' > conftest1.s
16576   echo '.section myfoosect, "aw"' > conftest2.s
16577   echo '.byte 1' >> conftest2.s
16578   echo '.section myfoosect, "a"' > conftest3.s
16579   echo '.byte 0' >> conftest3.s
16580   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16581      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16582      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16583      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16584         conftest2.o conftest3.o > /dev/null 2>&1; then
16585     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16586                          | sed -e '/myfoosect/!d' -e N`
16587     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16588       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16589         gcc_cv_ld_ro_rw_mix=read-only
16590       else
16591         gcc_cv_ld_ro_rw_mix=read-write
16592       fi
16593     fi
16594   fi
16595   rm -f conftest.* conftest[123].*
16596 fi
16597 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16598
16599 cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16601 _ACEOF
16602
16603 fi
16604 { echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16605 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6; }
16606
16607 { echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16608 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6; }
16609 gcc_cv_ld_eh_frame_hdr=no
16610 if test $in_tree_ld = yes ; then
16611   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
16612      && test $in_tree_ld_is_elf = yes; then
16613     gcc_cv_ld_eh_frame_hdr=yes
16614   fi
16615 elif test x$gcc_cv_ld != x; then
16616         # Check if linker supports --eh-frame-hdr option
16617         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16618                 gcc_cv_ld_eh_frame_hdr=yes
16619         fi
16620 fi
16621
16622 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16623
16624 cat >>confdefs.h <<\_ACEOF
16625 #define HAVE_LD_EH_FRAME_HDR 1
16626 _ACEOF
16627
16628 fi
16629 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16630 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6; }
16631
16632 { echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16633 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6; }
16634 gcc_cv_ld_pie=no
16635 if test $in_tree_ld = yes ; then
16636   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
16637      && test $in_tree_ld_is_elf = yes; then
16638     gcc_cv_ld_pie=yes
16639   fi
16640 elif test x$gcc_cv_ld != x; then
16641         # Check if linker supports -pie option
16642         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16643                 gcc_cv_ld_pie=yes
16644         fi
16645 fi
16646 if test x"$gcc_cv_ld_pie" = xyes; then
16647
16648 cat >>confdefs.h <<\_ACEOF
16649 #define HAVE_LD_PIE 1
16650 _ACEOF
16651
16652 fi
16653 { echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16654 echo "${ECHO_T}$gcc_cv_ld_pie" >&6; }
16655
16656 { echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16657 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6; }
16658 gcc_cv_ld_eh_gc_sections=no
16659 if test $in_tree_ld = yes ; then
16660   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16661      && test $in_tree_ld_is_elf = yes; then
16662     gcc_cv_ld_eh_gc_sections=yes
16663   fi
16664 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16665   cat > conftest.s <<EOF
16666         .section        .text
16667 .globl _start
16668         .type _start, @function
16669 _start:
16670         .long foo
16671         .size _start, .-_start
16672         .section        .text.foo,"ax",@progbits
16673         .type foo, @function
16674 foo:
16675         .long 0
16676         .size foo, .-foo
16677         .section        .gcc_except_table.foo,"a",@progbits
16678 .L0:
16679         .long 0
16680         .section        .eh_frame,"a",@progbits
16681         .long .L0
16682 EOF
16683   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16684     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16685          | grep "gc-sections option ignored" > /dev/null; then
16686       gcc_cv_ld_eh_gc_sections=no
16687     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16688       gcc_cv_ld_eh_gc_sections=yes
16689       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16690       if test x$gcc_cv_as_comdat_group != xyes; then
16691         gcc_cv_ld_eh_gc_sections=no
16692         cat > conftest.s <<EOF
16693         .section        .text
16694 .globl _start
16695         .type _start, @function
16696 _start:
16697         .long foo
16698         .size _start, .-_start
16699         .section        .gnu.linkonce.t.foo,"ax",@progbits
16700         .type foo, @function
16701 foo:
16702         .long 0
16703         .size foo, .-foo
16704         .section        .gcc_except_table.foo,"a",@progbits
16705 .L0:
16706         .long 0
16707         .section        .eh_frame,"a",@progbits
16708         .long .L0
16709 EOF
16710         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16711           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16712                | grep "gc-sections option ignored" > /dev/null; then
16713             gcc_cv_ld_eh_gc_sections=no
16714           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16715             gcc_cv_ld_eh_gc_sections=yes
16716           fi
16717         fi
16718       fi
16719     fi
16720   fi
16721   rm -f conftest.s conftest.o conftest
16722 fi
16723 case "$target" in
16724   hppa*-*-linux*)
16725     # ??? This apparently exposes a binutils bug with PC-relative relocations.
16726     gcc_cv_ld_eh_gc_sections=no
16727     ;;
16728 esac
16729 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16730
16731 cat >>confdefs.h <<\_ACEOF
16732 #define HAVE_LD_EH_GC_SECTIONS 1
16733 _ACEOF
16734
16735 fi
16736 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16737 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6; }
16738
16739 # --------
16740 # UNSORTED
16741 # --------
16742
16743 { echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16744 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6; }
16745 if test "${gcc_cv_ld_as_needed+set}" = set; then
16746   echo $ECHO_N "(cached) $ECHO_C" >&6
16747 else
16748   gcc_cv_ld_as_needed=no
16749 if test $in_tree_ld = yes ; then
16750   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
16751      && test $in_tree_ld_is_elf = yes; then
16752     gcc_cv_ld_as_needed=yes
16753   fi
16754 elif test x$gcc_cv_ld != x; then
16755         # Check if linker supports --as-needed and --no-as-needed options
16756         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16757                 gcc_cv_ld_as_needed=yes
16758         fi
16759 fi
16760
16761 fi
16762 { echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16763 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6; }
16764 if test x"$gcc_cv_ld_as_needed" = xyes; then
16765
16766 cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_LD_AS_NEEDED 1
16768 _ACEOF
16769
16770 fi
16771
16772 case "$target:$tm_file" in
16773   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16774     { echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16775 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6; }
16776 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16777   echo $ECHO_N "(cached) $ECHO_C" >&6
16778 else
16779   gcc_cv_ld_no_dot_syms=no
16780     if test $in_tree_ld = yes ; then
16781       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
16782         gcc_cv_ld_no_dot_syms=yes
16783       fi
16784     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16785       cat > conftest1.s <<EOF
16786         .text
16787         bl .foo
16788 EOF
16789       cat > conftest2.s <<EOF
16790         .section ".opd","aw"
16791         .align 3
16792         .globl foo
16793         .type foo,@function
16794 foo:
16795         .quad .LEfoo,.TOC.@tocbase,0
16796         .text
16797 .LEfoo:
16798         blr
16799         .size foo,.-.LEfoo
16800 EOF
16801       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16802          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16803          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16804         gcc_cv_ld_no_dot_syms=yes
16805       fi
16806       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16807     fi
16808
16809 fi
16810 { echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16811 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6; }
16812     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16813
16814 cat >>confdefs.h <<\_ACEOF
16815 #define HAVE_LD_NO_DOT_SYMS 1
16816 _ACEOF
16817
16818     fi
16819     ;;
16820 esac
16821
16822 { echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16823 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6; }
16824 if test "${gcc_cv_ld_sysroot+set}" = set; then
16825   echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827   gcc_cv_ld_sysroot=no
16828   if test $in_tree_ld = yes ; then
16829       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
16830         gcc_cv_ld_sysroot=yes
16831       fi
16832   elif test x$gcc_cv_ld != x; then
16833     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16834       gcc_cv_ld_sysroot=yes
16835     fi
16836   fi
16837 fi
16838 { echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16839 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6; }
16840 if test x"$gcc_cv_ld_sysroot" = xyes; then
16841
16842 cat >>confdefs.h <<\_ACEOF
16843 #define HAVE_LD_SYSROOT 1
16844 _ACEOF
16845
16846 fi
16847
16848 if test x$with_sysroot = x && test x$host = x$target \
16849    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16850    && test "$prefix" != "NONE"; then
16851
16852 cat >>confdefs.h <<_ACEOF
16853 #define PREFIX_INCLUDE_DIR "$prefix/include"
16854 _ACEOF
16855
16856 fi
16857
16858 # Test for stack protector support in target C library.
16859 { echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16860 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6; }
16861 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16862   echo $ECHO_N "(cached) $ECHO_C" >&6
16863 else
16864   gcc_cv_libc_provides_ssp=no
16865     case "$target" in
16866        *-*-linux*)
16867       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16868         if test "x$with_sysroot" = x; then
16869           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16870         elif test "x$with_build_sysroot" != "x"; then
16871           glibc_header_dir="${with_build_sysroot}/usr/include"
16872         elif test "x$with_sysroot" = xyes; then
16873           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16874         else
16875           glibc_header_dir="${with_sysroot}/usr/include"
16876         fi
16877       else
16878         glibc_header_dir=/usr/include
16879       fi
16880       # glibc 2.4 and later provides __stack_chk_fail and
16881       # either __stack_chk_guard, or TLS access to stack guard canary.
16882       if test -f $glibc_header_dir/features.h \
16883          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
16884             $glibc_header_dir/features.h > /dev/null; then
16885         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
16886            $glibc_header_dir/features.h > /dev/null; then
16887           gcc_cv_libc_provides_ssp=yes
16888         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
16889              $glibc_header_dir/features.h > /dev/null \
16890              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
16891              $glibc_header_dir/features.h > /dev/null; then
16892           gcc_cv_libc_provides_ssp=yes
16893         fi
16894         fi
16895         ;;
16896        *-*-darwin*)
16897          { echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16898 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6; }
16899 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16900   echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902   cat >conftest.$ac_ext <<_ACEOF
16903 /* confdefs.h.  */
16904 _ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h.  */
16908 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16910 #define __stack_chk_fail innocuous___stack_chk_fail
16911
16912 /* System header to define __stub macros and hopefully few prototypes,
16913     which can conflict with char __stack_chk_fail (); below.
16914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16915     <limits.h> exists even on freestanding compilers.  */
16916
16917 #ifdef __STDC__
16918 # include <limits.h>
16919 #else
16920 # include <assert.h>
16921 #endif
16922
16923 #undef __stack_chk_fail
16924
16925 /* Override any GCC internal prototype to avoid an error.
16926    Use char because int might match the return type of a GCC
16927    builtin and then its argument prototype would still apply.  */
16928 #ifdef __cplusplus
16929 extern "C"
16930 #endif
16931 char __stack_chk_fail ();
16932 /* The GNU C library defines this for functions which it implements
16933     to always fail with ENOSYS.  Some functions are actually named
16934     something starting with __ and the normal name is an alias.  */
16935 #if defined __stub___stack_chk_fail || defined __stub_____stack_chk_fail
16936 choke me
16937 #endif
16938
16939 int
16940 main ()
16941 {
16942 return __stack_chk_fail ();
16943   ;
16944   return 0;
16945 }
16946 _ACEOF
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (ac_try="$ac_link"
16949 case "(($ac_try" in
16950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951   *) ac_try_echo=$ac_try;;
16952 esac
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954   (eval "$ac_link") 2>conftest.er1
16955   ac_status=$?
16956   grep -v '^ *+' conftest.er1 >conftest.err
16957   rm -f conftest.er1
16958   cat conftest.err >&5
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); } && {
16961          test -z "$ac_c_werror_flag" ||
16962          test ! -s conftest.err
16963        } && test -s conftest$ac_exeext &&
16964        $as_test_x conftest$ac_exeext; then
16965   ac_cv_func___stack_chk_fail=yes
16966 else
16967   echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970         ac_cv_func___stack_chk_fail=no
16971 fi
16972
16973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16974       conftest$ac_exeext conftest.$ac_ext
16975 fi
16976 { echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16977 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6; }
16978 if test $ac_cv_func___stack_chk_fail = yes; then
16979   gcc_cv_libc_provides_ssp=yes
16980 else
16981   echo "no __stack_chk_fail on this target"
16982 fi
16983
16984         ;;
16985   *) gcc_cv_libc_provides_ssp=no ;;
16986     esac
16987 fi
16988 { echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16989 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6; }
16990
16991 if test x$gcc_cv_libc_provides_ssp = xyes; then
16992
16993 cat >>confdefs.h <<\_ACEOF
16994 #define TARGET_LIBC_PROVIDES_SSP 1
16995 _ACEOF
16996
16997 fi
16998
16999 # Check if TFmode long double should be used by default or not.
17000 # Some glibc targets used DFmode long double, but with glibc 2.4
17001 # and later they can use TFmode.
17002 case "$target" in
17003   powerpc*-*-*gnu* | \
17004   sparc*-*-linux* | \
17005   s390*-*-linux* | \
17006   alpha*-*-linux*)
17007
17008 # Check whether --with-long-double-128 was given.
17009 if test "${with_long_double_128+set}" = set; then
17010   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
17011 else
17012   gcc_cv_target_ldbl128=no
17013       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17014         if test "x$with_sysroot" = x; then
17015           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17016         elif test "x$with_build_sysroot" != "x"; then
17017           glibc_header_dir="${with_build_sysroot}/usr/include"
17018         elif test "x$with_sysroot" = xyes; then
17019           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17020         else
17021           glibc_header_dir="${with_sysroot}/usr/include"
17022         fi
17023       else
17024         glibc_header_dir=/usr/include
17025       fi
17026       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
17027         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
17028       && gcc_cv_target_ldbl128=yes
17029
17030 fi
17031
17032     ;;
17033 esac
17034 if test x$gcc_cv_target_ldbl128 = xyes; then
17035
17036 cat >>confdefs.h <<\_ACEOF
17037 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
17038 _ACEOF
17039
17040 fi
17041
17042 # Find out what GC implementation we want, or may, use.
17043
17044 # Check whether --with-gc was given.
17045 if test "${with_gc+set}" = set; then
17046   withval=$with_gc; case "$withval" in
17047   page)
17048     GGC=ggc-$withval
17049     ;;
17050   zone)
17051     GGC=ggc-$withval
17052
17053 cat >>confdefs.h <<\_ACEOF
17054 #define GGC_ZONE 1
17055 _ACEOF
17056
17057     ;;
17058   *)
17059     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
17060 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
17061    { (exit 1); exit 1; }; }
17062     ;;
17063 esac
17064 else
17065   GGC=ggc-page
17066 fi
17067
17068
17069 echo "Using $GGC for garbage collection."
17070
17071 # Use the system's zlib library.
17072 zlibdir=-L../zlib
17073 zlibinc="-I\$(srcdir)/../zlib"
17074
17075 # Check whether --with-system-zlib was given.
17076 if test "${with_system_zlib+set}" = set; then
17077   withval=$with_system_zlib; zlibdir=
17078 zlibinc=
17079
17080 fi
17081
17082
17083
17084
17085
17086 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
17087 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
17088     # Check whether --enable-maintainer-mode was given.
17089 if test "${enable_maintainer_mode+set}" = set; then
17090   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
17091 else
17092   maintainer_mode=no
17093 fi
17094
17095
17096 { echo "$as_me:$LINENO: result: $maintainer_mode" >&5
17097 echo "${ECHO_T}$maintainer_mode" >&6; }
17098
17099 if test "$maintainer_mode" = "yes"; then
17100   MAINT=''
17101 else
17102   MAINT='#'
17103 fi
17104
17105 # --------------
17106 # Language hooks
17107 # --------------
17108
17109 # Make empty files to contain the specs and options for each language.
17110 # Then add #include lines to for a compiler that has specs and/or options.
17111
17112 subdirs=
17113 lang_opt_files=
17114 lang_specs_files=
17115 lang_tree_files=
17116 # These (without "all_") are set in each config-lang.in.
17117 # `language' must be a single word so is spelled singularly.
17118 all_languages=
17119 all_compilers=
17120 all_outputs='Makefile gccbug libada-mk'
17121 # List of language makefile fragments.
17122 all_lang_makefrags=
17123 # List of language subdirectory makefiles.  Deprecated.
17124 all_lang_makefiles=
17125 # Additional files for gengtype
17126 all_gtfiles="$target_gtfiles"
17127
17128 # These are the languages that are set in --enable-languages,
17129 # and are available in the GCC tree.
17130 all_selected_languages=
17131
17132 # Add the language fragments.
17133 # Languages are added via two mechanisms.  Some information must be
17134 # recorded in makefile variables, these are defined in config-lang.in.
17135 # We accumulate them and plug them into the main Makefile.
17136 # The other mechanism is a set of hooks for each of the main targets
17137 # like `clean', `install', etc.
17138
17139 language_hooks="Make-hooks"
17140
17141 for lang in ${srcdir}/*/config-lang.in
17142 do
17143         test "$lang" = "${srcdir}/*/config-lang.in" && continue
17144
17145         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
17146         if test "x$lang_alias" = x
17147         then
17148               echo "$lang doesn't set \$language." 1>&2
17149               exit 1
17150         fi
17151         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
17152         subdirs="$subdirs $subdir"
17153         case ",$enable_languages," in
17154         *,$lang_alias,*)
17155             all_selected_languages="$all_selected_languages $lang_alias"
17156             if test -f $srcdir/$subdir/lang-specs.h; then
17157                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17158             fi
17159             ;;
17160         esac
17161
17162         language=
17163         boot_language=
17164         compilers=
17165         outputs=
17166         gtfiles=
17167         subdir_requires=
17168         . ${srcdir}/$subdir/config-lang.in
17169         if test "x$language" = x
17170         then
17171                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
17172                 exit 1
17173         fi
17174
17175         ok=:
17176         case ",$enable_languages," in
17177                 *,$lang_alias,*) ;;
17178                 *)
17179                         for i in $subdir_requires; do
17180                                 test -f "${srcdir}/$i/config-lang.in" && continue
17181                                 ok=false
17182                                 break
17183                         done
17184                 ;;
17185         esac
17186         $ok || continue
17187
17188         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
17189         if test -f $srcdir/$subdir/lang.opt; then
17190             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17191         fi
17192         if test -f $srcdir/$subdir/$subdir-tree.def; then
17193             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17194         fi
17195         if test -f ${srcdir}/$subdir/Makefile.in
17196                 then all_lang_makefiles="$subdir/Makefile"
17197         fi
17198         all_languages="$all_languages $language"
17199         all_compilers="$all_compilers $compilers"
17200         all_outputs="$all_outputs $outputs"
17201         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
17202 done
17203
17204 # Pick up gtfiles for c
17205 gtfiles=
17206 . ${srcdir}/c-config-lang.in
17207 all_gtfiles="$all_gtfiles [c] $gtfiles"
17208
17209 check_languages=
17210 for language in $all_selected_languages
17211 do
17212         check_languages="$check_languages check-$language"
17213 done
17214
17215 # We link each language in with a set of hooks, reached indirectly via
17216 # lang.${target}.  Only do so for selected languages.
17217
17218 rm -f Make-hooks
17219 touch Make-hooks
17220 target_list="all.cross start.encap rest.encap tags \
17221         install-common install-man install-info install-pdf dvi pdf \
17222         html uninstall info man srcextra srcman srcinfo \
17223         mostlyclean clean distclean maintainer-clean"
17224
17225 for t in $target_list
17226 do
17227         x=
17228         for lang in $all_selected_languages
17229         do
17230                 x="$x $lang.$t"
17231         done
17232         echo "lang.$t: $x" >> Make-hooks
17233 done
17234
17235 # --------
17236 # UNSORTED
17237 # --------
17238
17239 # Create .gdbinit.
17240
17241 echo "dir ." > .gdbinit
17242 echo "dir ${srcdir}" >> .gdbinit
17243 if test x$gdb_needs_out_file_path = xyes
17244 then
17245         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17246 fi
17247 if test "x$subdirs" != x; then
17248         for s in $subdirs
17249         do
17250                 echo "dir ${srcdir}/$s" >> .gdbinit
17251         done
17252 fi
17253 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17254
17255 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
17256 # absolute path for gcc_tooldir based on inserting the number of up-directory
17257 # movements required to get from $(exec_prefix) to $(prefix) into the basic
17258 # $(libsubdir)/@(unlibsubdir) based path.
17259 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
17260 # make and thus we'd get different behavior depending on where we built the
17261 # sources.
17262 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
17263     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
17264 else
17265 # An explanation of the sed strings:
17266 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
17267 #  -e 's|/$||'            match a trailing forward slash and eliminates it
17268 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
17269 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
17270 #
17271 # (*) Note this pattern overwrites the first character of the string
17272 # with a forward slash if one is not already present.  This is not a
17273 # problem because the exact names of the sub-directories concerned is
17274 # unimportant, just the number of them matters.
17275 #
17276 # The practical upshot of these patterns is like this:
17277 #
17278 #  prefix     exec_prefix        result
17279 #  ------     -----------        ------
17280 #   /foo        /foo/bar          ../
17281 #   /foo/       /foo/bar          ../
17282 #   /foo        /foo/bar/         ../
17283 #   /foo/       /foo/bar/         ../
17284 #   /foo        /foo/bar/ugg      ../../
17285 #
17286     dollar='$$'
17287     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
17288 fi
17289
17290
17291
17292 # Find a directory in which to install a shared libgcc.
17293
17294 # Check whether --enable-version-specific-runtime-libs was given.
17295 if test "${enable_version_specific_runtime_libs+set}" = set; then
17296   enableval=$enable_version_specific_runtime_libs;
17297 fi
17298
17299
17300
17301 # Check whether --with-slibdir was given.
17302 if test "${with_slibdir+set}" = set; then
17303   withval=$with_slibdir; slibdir="$with_slibdir"
17304 else
17305   if test "${enable_version_specific_runtime_libs+set}" = set; then
17306   slibdir='$(libsubdir)'
17307 elif test "$host" != "$target"; then
17308   slibdir='$(build_tooldir)/lib'
17309 else
17310   slibdir='$(libdir)'
17311 fi
17312 fi
17313
17314
17315
17316 objdir=`${PWDCMD-pwd}`
17317
17318
17319
17320 # Check whether --with-datarootdir was given.
17321 if test "${with_datarootdir+set}" = set; then
17322   withval=$with_datarootdir; datarootdir="\${prefix}/$with_datarootdir"
17323 else
17324   datarootdir='$(prefix)/share'
17325 fi
17326
17327
17328
17329
17330 # Check whether --with-docdir was given.
17331 if test "${with_docdir+set}" = set; then
17332   withval=$with_docdir; docdir="\${prefix}/$with_docdir"
17333 else
17334   docdir='$(datarootdir)'
17335 fi
17336
17337
17338
17339
17340 # Check whether --with-htmldir was given.
17341 if test "${with_htmldir+set}" = set; then
17342   withval=$with_htmldir; htmldir="\${prefix}/$with_htmldir"
17343 else
17344   htmldir='$(docdir)'
17345 fi
17346
17347
17348
17349 # Substitute configuration variables
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405 # Echo link setup.
17406 if test x${build} = x${host} ; then
17407   if test x${host} = x${target} ; then
17408     echo "Links are now set up to build a native compiler for ${target}." 1>&2
17409   else
17410     echo "Links are now set up to build a cross-compiler" 1>&2
17411     echo " from ${host} to ${target}." 1>&2
17412   fi
17413 else
17414   if test x${host} = x${target} ; then
17415     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17416     echo " for ${target}." 1>&2
17417   else
17418     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17419     echo " from ${host} to ${target}." 1>&2
17420   fi
17421 fi
17422
17423
17424
17425
17426 # Configure the subdirectories
17427 # AC_CONFIG_SUBDIRS($subdirs)
17428
17429 # Create the Makefile
17430 # and configure language subdirectories
17431 ac_config_files="$ac_config_files $all_outputs"
17432
17433
17434 ac_config_commands="$ac_config_commands default"
17435
17436 cat >confcache <<\_ACEOF
17437 # This file is a shell script that caches the results of configure
17438 # tests run on this system so they can be shared between configure
17439 # scripts and configure runs, see configure's option --config-cache.
17440 # It is not useful on other systems.  If it contains results you don't
17441 # want to keep, you may remove or edit it.
17442 #
17443 # config.status only pays attention to the cache file if you give it
17444 # the --recheck option to rerun configure.
17445 #
17446 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17447 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17448 # following values.
17449
17450 _ACEOF
17451
17452 # The following way of writing the cache mishandles newlines in values,
17453 # but we know of no workaround that is simple, portable, and efficient.
17454 # So, we kill variables containing newlines.
17455 # Ultrix sh set writes to stderr and can't be redirected directly,
17456 # and sets the high bit in the cache file unless we assign to the vars.
17457 (
17458   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17459     eval ac_val=\$$ac_var
17460     case $ac_val in #(
17461     *${as_nl}*)
17462       case $ac_var in #(
17463       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17464 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17465       esac
17466       case $ac_var in #(
17467       _ | IFS | as_nl) ;; #(
17468       *) $as_unset $ac_var ;;
17469       esac ;;
17470     esac
17471   done
17472
17473   (set) 2>&1 |
17474     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17475     *${as_nl}ac_space=\ *)
17476       # `set' does not quote correctly, so add quotes (double-quote
17477       # substitution turns \\\\ into \\, and sed turns \\ into \).
17478       sed -n \
17479         "s/'/'\\\\''/g;
17480           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17481       ;; #(
17482     *)
17483       # `set' quotes correctly as required by POSIX, so do not add quotes.
17484       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17485       ;;
17486     esac |
17487     sort
17488 ) |
17489   sed '
17490      /^ac_cv_env_/b end
17491      t clear
17492      :clear
17493      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17494      t end
17495      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17496      :end' >>confcache
17497 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17498   if test -w "$cache_file"; then
17499     test "x$cache_file" != "x/dev/null" &&
17500       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17501 echo "$as_me: updating cache $cache_file" >&6;}
17502     cat confcache >$cache_file
17503   else
17504     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17505 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17506   fi
17507 fi
17508 rm -f confcache
17509
17510 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17511 # Let make expand exec_prefix.
17512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17513
17514 DEFS=-DHAVE_CONFIG_H
17515
17516 ac_libobjs=
17517 ac_ltlibobjs=
17518 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17519   # 1. Remove the extension, and $U if already installed.
17520   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17521   ac_i=`echo "$ac_i" | sed "$ac_script"`
17522   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17523   #    will be set to the directory where LIBOBJS objects are built.
17524   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17525   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17526 done
17527 LIBOBJS=$ac_libobjs
17528
17529 LTLIBOBJS=$ac_ltlibobjs
17530
17531
17532
17533 : ${CONFIG_STATUS=./config.status}
17534 ac_clean_files_save=$ac_clean_files
17535 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17536 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17537 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17538 cat >$CONFIG_STATUS <<_ACEOF
17539 #! $SHELL
17540 # Generated by $as_me.
17541 # Run this file to recreate the current configuration.
17542 # Compiler output produced by configure, useful for debugging
17543 # configure, is in config.log if it exists.
17544
17545 debug=false
17546 ac_cs_recheck=false
17547 ac_cs_silent=false
17548 SHELL=\${CONFIG_SHELL-$SHELL}
17549 _ACEOF
17550
17551 cat >>$CONFIG_STATUS <<\_ACEOF
17552 ## --------------------- ##
17553 ## M4sh Initialization.  ##
17554 ## --------------------- ##
17555
17556 # Be more Bourne compatible
17557 DUALCASE=1; export DUALCASE # for MKS sh
17558 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17559   emulate sh
17560   NULLCMD=:
17561   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17562   # is contrary to our usage.  Disable this feature.
17563   alias -g '${1+"$@"}'='"$@"'
17564   setopt NO_GLOB_SUBST
17565 else
17566   case `(set -o) 2>/dev/null` in
17567   *posix*) set -o posix ;;
17568 esac
17569
17570 fi
17571
17572
17573
17574
17575 # PATH needs CR
17576 # Avoid depending upon Character Ranges.
17577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17580 as_cr_digits='0123456789'
17581 as_cr_alnum=$as_cr_Letters$as_cr_digits
17582
17583 # The user is always right.
17584 if test "${PATH_SEPARATOR+set}" != set; then
17585   echo "#! /bin/sh" >conf$$.sh
17586   echo  "exit 0"   >>conf$$.sh
17587   chmod +x conf$$.sh
17588   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17589     PATH_SEPARATOR=';'
17590   else
17591     PATH_SEPARATOR=:
17592   fi
17593   rm -f conf$$.sh
17594 fi
17595
17596 # Support unset when possible.
17597 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17598   as_unset=unset
17599 else
17600   as_unset=false
17601 fi
17602
17603
17604 # IFS
17605 # We need space, tab and new line, in precisely that order.  Quoting is
17606 # there to prevent editors from complaining about space-tab.
17607 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17608 # splitting by setting IFS to empty value.)
17609 as_nl='
17610 '
17611 IFS=" ""        $as_nl"
17612
17613 # Find who we are.  Look in the path if we contain no directory separator.
17614 case $0 in
17615   *[\\/]* ) as_myself=$0 ;;
17616   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17617 for as_dir in $PATH
17618 do
17619   IFS=$as_save_IFS
17620   test -z "$as_dir" && as_dir=.
17621   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17622 done
17623 IFS=$as_save_IFS
17624
17625      ;;
17626 esac
17627 # We did not find ourselves, most probably we were run as `sh COMMAND'
17628 # in which case we are not to be found in the path.
17629 if test "x$as_myself" = x; then
17630   as_myself=$0
17631 fi
17632 if test ! -f "$as_myself"; then
17633   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17634   { (exit 1); exit 1; }
17635 fi
17636
17637 # Work around bugs in pre-3.0 UWIN ksh.
17638 for as_var in ENV MAIL MAILPATH
17639 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17640 done
17641 PS1='$ '
17642 PS2='> '
17643 PS4='+ '
17644
17645 # NLS nuisances.
17646 for as_var in \
17647   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17648   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17649   LC_TELEPHONE LC_TIME
17650 do
17651   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17652     eval $as_var=C; export $as_var
17653   else
17654     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17655   fi
17656 done
17657
17658 # Required to use basename.
17659 if expr a : '\(a\)' >/dev/null 2>&1 &&
17660    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17661   as_expr=expr
17662 else
17663   as_expr=false
17664 fi
17665
17666 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17667   as_basename=basename
17668 else
17669   as_basename=false
17670 fi
17671
17672
17673 # Name of the executable.
17674 as_me=`$as_basename -- "$0" ||
17675 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17676          X"$0" : 'X\(//\)$' \| \
17677          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17678 echo X/"$0" |
17679     sed '/^.*\/\([^/][^/]*\)\/*$/{
17680             s//\1/
17681             q
17682           }
17683           /^X\/\(\/\/\)$/{
17684             s//\1/
17685             q
17686           }
17687           /^X\/\(\/\).*/{
17688             s//\1/
17689             q
17690           }
17691           s/.*/./; q'`
17692
17693 # CDPATH.
17694 $as_unset CDPATH
17695
17696
17697
17698   as_lineno_1=$LINENO
17699   as_lineno_2=$LINENO
17700   test "x$as_lineno_1" != "x$as_lineno_2" &&
17701   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17702
17703   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17704   # uniformly replaced by the line number.  The first 'sed' inserts a
17705   # line-number line after each line using $LINENO; the second 'sed'
17706   # does the real work.  The second script uses 'N' to pair each
17707   # line-number line with the line containing $LINENO, and appends
17708   # trailing '-' during substitution so that $LINENO is not a special
17709   # case at line end.
17710   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17711   # scripts with optimization help from Paolo Bonzini.  Blame Lee
17712   # E. McMahon (1931-1989) for sed's syntax.  :-)
17713   sed -n '
17714     p
17715     /[$]LINENO/=
17716   ' <$as_myself |
17717     sed '
17718       s/[$]LINENO.*/&-/
17719       t lineno
17720       b
17721       :lineno
17722       N
17723       :loop
17724       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17725       t loop
17726       s/-\n.*//
17727     ' >$as_me.lineno &&
17728   chmod +x "$as_me.lineno" ||
17729     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17730    { (exit 1); exit 1; }; }
17731
17732   # Don't try to exec as it changes $[0], causing all sort of problems
17733   # (the dirname of $[0] is not the place where we might find the
17734   # original and so on.  Autoconf is especially sensitive to this).
17735   . "./$as_me.lineno"
17736   # Exit status is that of the last command.
17737   exit
17738 }
17739
17740
17741 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17742   as_dirname=dirname
17743 else
17744   as_dirname=false
17745 fi
17746
17747 ECHO_C= ECHO_N= ECHO_T=
17748 case `echo -n x` in
17749 -n*)
17750   case `echo 'x\c'` in
17751   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17752   *)   ECHO_C='\c';;
17753   esac;;
17754 *)
17755   ECHO_N='-n';;
17756 esac
17757
17758 if expr a : '\(a\)' >/dev/null 2>&1 &&
17759    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17760   as_expr=expr
17761 else
17762   as_expr=false
17763 fi
17764
17765 rm -f conf$$ conf$$.exe conf$$.file
17766 if test -d conf$$.dir; then
17767   rm -f conf$$.dir/conf$$.file
17768 else
17769   rm -f conf$$.dir
17770   mkdir conf$$.dir
17771 fi
17772 echo >conf$$.file
17773 if ln -s conf$$.file conf$$ 2>/dev/null; then
17774   as_ln_s='ln -s'
17775   # ... but there are two gotchas:
17776   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17777   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17778   # In both cases, we have to default to `cp -p'.
17779   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17780     as_ln_s='cp -p'
17781 elif ln conf$$.file conf$$ 2>/dev/null; then
17782   as_ln_s=ln
17783 else
17784   as_ln_s='cp -p'
17785 fi
17786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17787 rmdir conf$$.dir 2>/dev/null
17788
17789 if mkdir -p . 2>/dev/null; then
17790   as_mkdir_p=:
17791 else
17792   test -d ./-p && rmdir ./-p
17793   as_mkdir_p=false
17794 fi
17795
17796 if test -x / >/dev/null 2>&1; then
17797   as_test_x='test -x'
17798 else
17799   if ls -dL / >/dev/null 2>&1; then
17800     as_ls_L_option=L
17801   else
17802     as_ls_L_option=
17803   fi
17804   as_test_x='
17805     eval sh -c '\''
17806       if test -d "$1"; then
17807         test -d "$1/.";
17808       else
17809         case $1 in
17810         -*)set "./$1";;
17811         esac;
17812         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17813         ???[sx]*):;;*)false;;esac;fi
17814     '\'' sh
17815   '
17816 fi
17817 as_executable_p=$as_test_x
17818
17819 # Sed expression to map a string onto a valid CPP name.
17820 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17821
17822 # Sed expression to map a string onto a valid variable name.
17823 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17824
17825
17826 exec 6>&1
17827
17828 # Save the log message, to keep $[0] and so on meaningful, and to
17829 # report actual input values of CONFIG_FILES etc. instead of their
17830 # values after options handling.
17831 ac_log="
17832 This file was extended by $as_me, which was
17833 generated by GNU Autoconf 2.61.  Invocation command line was
17834
17835   CONFIG_FILES    = $CONFIG_FILES
17836   CONFIG_HEADERS  = $CONFIG_HEADERS
17837   CONFIG_LINKS    = $CONFIG_LINKS
17838   CONFIG_COMMANDS = $CONFIG_COMMANDS
17839   $ $0 $@
17840
17841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17842 "
17843
17844 _ACEOF
17845
17846 cat >>$CONFIG_STATUS <<_ACEOF
17847 # Files that config.status was made for.
17848 config_files="$ac_config_files"
17849 config_headers="$ac_config_headers"
17850 config_commands="$ac_config_commands"
17851
17852 _ACEOF
17853
17854 cat >>$CONFIG_STATUS <<\_ACEOF
17855 ac_cs_usage="\
17856 \`$as_me' instantiates files from templates according to the
17857 current configuration.
17858
17859 Usage: $0 [OPTIONS] [FILE]...
17860
17861   -h, --help       print this help, then exit
17862   -V, --version    print version number and configuration settings, then exit
17863   -q, --quiet      do not print progress messages
17864   -d, --debug      don't remove temporary files
17865       --recheck    update $as_me by reconfiguring in the same conditions
17866   --file=FILE[:TEMPLATE]
17867                    instantiate the configuration file FILE
17868   --header=FILE[:TEMPLATE]
17869                    instantiate the configuration header FILE
17870
17871 Configuration files:
17872 $config_files
17873
17874 Configuration headers:
17875 $config_headers
17876
17877 Configuration commands:
17878 $config_commands
17879
17880 Report bugs to <bug-autoconf@gnu.org>."
17881
17882 _ACEOF
17883 cat >>$CONFIG_STATUS <<_ACEOF
17884 ac_cs_version="\\
17885 config.status
17886 configured by $0, generated by GNU Autoconf 2.61,
17887   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17888
17889 Copyright (C) 2006 Free Software Foundation, Inc.
17890 This config.status script is free software; the Free Software Foundation
17891 gives unlimited permission to copy, distribute and modify it."
17892
17893 ac_pwd='$ac_pwd'
17894 srcdir='$srcdir'
17895 _ACEOF
17896
17897 cat >>$CONFIG_STATUS <<\_ACEOF
17898 # If no file are specified by the user, then we need to provide default
17899 # value.  By we need to know if files were specified by the user.
17900 ac_need_defaults=:
17901 while test $# != 0
17902 do
17903   case $1 in
17904   --*=*)
17905     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17906     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17907     ac_shift=:
17908     ;;
17909   *)
17910     ac_option=$1
17911     ac_optarg=$2
17912     ac_shift=shift
17913     ;;
17914   esac
17915
17916   case $ac_option in
17917   # Handling of the options.
17918   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17919     ac_cs_recheck=: ;;
17920   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17921     echo "$ac_cs_version"; exit ;;
17922   --debug | --debu | --deb | --de | --d | -d )
17923     debug=: ;;
17924   --file | --fil | --fi | --f )
17925     $ac_shift
17926     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17927     ac_need_defaults=false;;
17928   --header | --heade | --head | --hea )
17929     $ac_shift
17930     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17931     ac_need_defaults=false;;
17932   --he | --h)
17933     # Conflict between --help and --header
17934     { echo "$as_me: error: ambiguous option: $1
17935 Try \`$0 --help' for more information." >&2
17936    { (exit 1); exit 1; }; };;
17937   --help | --hel | -h )
17938     echo "$ac_cs_usage"; exit ;;
17939   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17940   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17941     ac_cs_silent=: ;;
17942
17943   # This is an error.
17944   -*) { echo "$as_me: error: unrecognized option: $1
17945 Try \`$0 --help' for more information." >&2
17946    { (exit 1); exit 1; }; } ;;
17947
17948   *) ac_config_targets="$ac_config_targets $1"
17949      ac_need_defaults=false ;;
17950
17951   esac
17952   shift
17953 done
17954
17955 ac_configure_extra_args=
17956
17957 if $ac_cs_silent; then
17958   exec 6>/dev/null
17959   ac_configure_extra_args="$ac_configure_extra_args --silent"
17960 fi
17961
17962 _ACEOF
17963 cat >>$CONFIG_STATUS <<_ACEOF
17964 if \$ac_cs_recheck; then
17965   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17966   CONFIG_SHELL=$SHELL
17967   export CONFIG_SHELL
17968   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17969 fi
17970
17971 _ACEOF
17972 cat >>$CONFIG_STATUS <<\_ACEOF
17973 exec 5>>config.log
17974 {
17975   echo
17976   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17977 ## Running $as_me. ##
17978 _ASBOX
17979   echo "$ac_log"
17980 } >&5
17981
17982 _ACEOF
17983 cat >>$CONFIG_STATUS <<_ACEOF
17984 #
17985 # INIT-COMMANDS
17986 #
17987 subdirs='$subdirs'
17988
17989 _ACEOF
17990
17991 cat >>$CONFIG_STATUS <<\_ACEOF
17992
17993 # Handling of arguments.
17994 for ac_config_target in $ac_config_targets
17995 do
17996   case $ac_config_target in
17997     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17998     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17999     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18000
18001   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18002 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18003    { (exit 1); exit 1; }; };;
18004   esac
18005 done
18006
18007
18008 # If the user did not use the arguments to specify the items to instantiate,
18009 # then the envvar interface is used.  Set only those that are not.
18010 # We use the long form for the default assignment because of an extremely
18011 # bizarre bug on SunOS 4.1.3.
18012 if $ac_need_defaults; then
18013   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18014   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18015   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18016 fi
18017
18018 # Have a temporary directory for convenience.  Make it in the build tree
18019 # simply because there is no reason against having it here, and in addition,
18020 # creating and moving files from /tmp can sometimes cause problems.
18021 # Hook for its removal unless debugging.
18022 # Note that there is a small window in which the directory will not be cleaned:
18023 # after its creation but before its name has been assigned to `$tmp'.
18024 $debug ||
18025 {
18026   tmp=
18027   trap 'exit_status=$?
18028   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18029 ' 0
18030   trap '{ (exit 1); exit 1; }' 1 2 13 15
18031 }
18032 # Create a (secure) tmp directory for tmp files.
18033
18034 {
18035   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18036   test -n "$tmp" && test -d "$tmp"
18037 }  ||
18038 {
18039   tmp=./conf$$-$RANDOM
18040   (umask 077 && mkdir "$tmp")
18041 } ||
18042 {
18043    echo "$me: cannot create a temporary directory in ." >&2
18044    { (exit 1); exit 1; }
18045 }
18046
18047 #
18048 # Set up the sed scripts for CONFIG_FILES section.
18049 #
18050
18051 # No need to generate the scripts if there are no CONFIG_FILES.
18052 # This happens for instance when ./config.status config.h
18053 if test -n "$CONFIG_FILES"; then
18054
18055 _ACEOF
18056
18057 # Create sed commands to just substitute file output variables.
18058
18059 # Remaining file output variables are in a fragment that also has non-file
18060 # output varibles.
18061
18062
18063
18064 ac_delim='%!_!# '
18065 for ac_last_try in false false false false false :; do
18066   cat >conf$$subs.sed <<_ACEOF
18067 SHELL!$SHELL$ac_delim
18068 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18069 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18070 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18071 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18072 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18073 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18074 exec_prefix!$exec_prefix$ac_delim
18075 prefix!$prefix$ac_delim
18076 program_transform_name!$program_transform_name$ac_delim
18077 bindir!$bindir$ac_delim
18078 sbindir!$sbindir$ac_delim
18079 libexecdir!$libexecdir$ac_delim
18080 datarootdir!$datarootdir$ac_delim
18081 datadir!$datadir$ac_delim
18082 sysconfdir!$sysconfdir$ac_delim
18083 sharedstatedir!$sharedstatedir$ac_delim
18084 localstatedir!$localstatedir$ac_delim
18085 includedir!$includedir$ac_delim
18086 oldincludedir!$oldincludedir$ac_delim
18087 docdir!$docdir$ac_delim
18088 infodir!$infodir$ac_delim
18089 htmldir!$htmldir$ac_delim
18090 dvidir!$dvidir$ac_delim
18091 pdfdir!$pdfdir$ac_delim
18092 psdir!$psdir$ac_delim
18093 libdir!$libdir$ac_delim
18094 localedir!$localedir$ac_delim
18095 mandir!$mandir$ac_delim
18096 DEFS!$DEFS$ac_delim
18097 ECHO_C!$ECHO_C$ac_delim
18098 ECHO_N!$ECHO_N$ac_delim
18099 ECHO_T!$ECHO_T$ac_delim
18100 LIBS!$LIBS$ac_delim
18101 build_alias!$build_alias$ac_delim
18102 host_alias!$host_alias$ac_delim
18103 target_alias!$target_alias$ac_delim
18104 build!$build$ac_delim
18105 build_cpu!$build_cpu$ac_delim
18106 build_vendor!$build_vendor$ac_delim
18107 build_os!$build_os$ac_delim
18108 host!$host$ac_delim
18109 host_cpu!$host_cpu$ac_delim
18110 host_vendor!$host_vendor$ac_delim
18111 host_os!$host_os$ac_delim
18112 target!$target$ac_delim
18113 target_cpu!$target_cpu$ac_delim
18114 target_vendor!$target_vendor$ac_delim
18115 target_os!$target_os$ac_delim
18116 target_noncanonical!$target_noncanonical$ac_delim
18117 build_libsubdir!$build_libsubdir$ac_delim
18118 build_subdir!$build_subdir$ac_delim
18119 host_subdir!$host_subdir$ac_delim
18120 target_subdir!$target_subdir$ac_delim
18121 GENINSRC!$GENINSRC$ac_delim
18122 CC!$CC$ac_delim
18123 CFLAGS!$CFLAGS$ac_delim
18124 LDFLAGS!$LDFLAGS$ac_delim
18125 CPPFLAGS!$CPPFLAGS$ac_delim
18126 ac_ct_CC!$ac_ct_CC$ac_delim
18127 EXEEXT!$EXEEXT$ac_delim
18128 OBJEXT!$OBJEXT$ac_delim
18129 NO_MINUS_C_MINUS_O!$NO_MINUS_C_MINUS_O$ac_delim
18130 OUTPUT_OPTION!$OUTPUT_OPTION$ac_delim
18131 CPP!$CPP$ac_delim
18132 GREP!$GREP$ac_delim
18133 EGREP!$EGREP$ac_delim
18134 strict_warn!$strict_warn$ac_delim
18135 cxx_compat_warn!$cxx_compat_warn$ac_delim
18136 warn_cflags!$warn_cflags$ac_delim
18137 nocommon_flag!$nocommon_flag$ac_delim
18138 TREEBROWSER!$TREEBROWSER$ac_delim
18139 valgrind_path!$valgrind_path$ac_delim
18140 valgrind_path_defines!$valgrind_path_defines$ac_delim
18141 valgrind_command!$valgrind_command$ac_delim
18142 coverage_flags!$coverage_flags$ac_delim
18143 enable_multilib!$enable_multilib$ac_delim
18144 enable_decimal_float!$enable_decimal_float$ac_delim
18145 enable_shared!$enable_shared$ac_delim
18146 TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
18147 TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
18148 CROSS_SYSTEM_HEADER_DIR!$CROSS_SYSTEM_HEADER_DIR$ac_delim
18149 onestep!$onestep$ac_delim
18150 SET_MAKE!$SET_MAKE$ac_delim
18151 AWK!$AWK$ac_delim
18152 LN_S!$LN_S$ac_delim
18153 LN!$LN$ac_delim
18154 RANLIB!$RANLIB$ac_delim
18155 ranlib_flags!$ranlib_flags$ac_delim
18156 INSTALL!$INSTALL$ac_delim
18157 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18158 INSTALL_DATA!$INSTALL_DATA$ac_delim
18159 make_compare_target!$make_compare_target$ac_delim
18160 have_mktemp_command!$have_mktemp_command$ac_delim
18161 _ACEOF
18162
18163   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
18164     break
18165   elif $ac_last_try; then
18166     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18167 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18168    { (exit 1); exit 1; }; }
18169   else
18170     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18171   fi
18172 done
18173
18174 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18175 if test -n "$ac_eof"; then
18176   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18177   ac_eof=`expr $ac_eof + 1`
18178 fi
18179
18180 cat >>$CONFIG_STATUS <<_ACEOF
18181 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18183 /^[      ]*@language_hooks@[     ]*$/{
18184 r $language_hooks
18185 d
18186 }
18187 _ACEOF
18188 sed '
18189 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18190 s/^/s,@/; s/!/@,|#_!!_#|/
18191 :n
18192 t n
18193 s/'"$ac_delim"'$/,g/; t
18194 s/$/\\/; p
18195 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18196 ' >>$CONFIG_STATUS <conf$$subs.sed
18197 rm -f conf$$subs.sed
18198 cat >>$CONFIG_STATUS <<_ACEOF
18199 CEOF$ac_eof
18200 _ACEOF
18201
18202
18203 ac_delim='%!_!# '
18204 for ac_last_try in false false false false false :; do
18205   cat >conf$$subs.sed <<_ACEOF
18206 MAKEINFO!$MAKEINFO$ac_delim
18207 BUILD_INFO!$BUILD_INFO$ac_delim
18208 GENERATED_MANPAGES!$GENERATED_MANPAGES$ac_delim
18209 FLEX!$FLEX$ac_delim
18210 BISON!$BISON$ac_delim
18211 NM!$NM$ac_delim
18212 AR!$AR$ac_delim
18213 COLLECT2_LIBS!$COLLECT2_LIBS$ac_delim
18214 GNAT_LIBEXC!$GNAT_LIBEXC$ac_delim
18215 LDEXP_LIB!$LDEXP_LIB$ac_delim
18216 TARGET_GETGROUPS_T!$TARGET_GETGROUPS_T$ac_delim
18217 LIBICONV!$LIBICONV$ac_delim
18218 LTLIBICONV!$LTLIBICONV$ac_delim
18219 LIBICONV_DEP!$LIBICONV_DEP$ac_delim
18220 manext!$manext$ac_delim
18221 objext!$objext$ac_delim
18222 gthread_flags!$gthread_flags$ac_delim
18223 extra_modes_file!$extra_modes_file$ac_delim
18224 extra_opt_files!$extra_opt_files$ac_delim
18225 USE_NLS!$USE_NLS$ac_delim
18226 LIBINTL!$LIBINTL$ac_delim
18227 LIBINTL_DEP!$LIBINTL_DEP$ac_delim
18228 INCINTL!$INCINTL$ac_delim
18229 XGETTEXT!$XGETTEXT$ac_delim
18230 GMSGFMT!$GMSGFMT$ac_delim
18231 POSUB!$POSUB$ac_delim
18232 CATALOGS!$CATALOGS$ac_delim
18233 DATADIRNAME!$DATADIRNAME$ac_delim
18234 INSTOBJEXT!$INSTOBJEXT$ac_delim
18235 GENCAT!$GENCAT$ac_delim
18236 CATOBJEXT!$CATOBJEXT$ac_delim
18237 host_cc_for_libada!$host_cc_for_libada$ac_delim
18238 CROSS!$CROSS$ac_delim
18239 ALL!$ALL$ac_delim
18240 SYSTEM_HEADER_DIR!$SYSTEM_HEADER_DIR$ac_delim
18241 inhibit_libc!$inhibit_libc$ac_delim
18242 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
18243 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
18244 STMP_FIXINC!$STMP_FIXINC$ac_delim
18245 STMP_FIXPROTO!$STMP_FIXPROTO$ac_delim
18246 collect2!$collect2$ac_delim
18247 gcc_cv_as!$gcc_cv_as$ac_delim
18248 ORIGINAL_AS_FOR_TARGET!$ORIGINAL_AS_FOR_TARGET$ac_delim
18249 gcc_cv_ld!$gcc_cv_ld$ac_delim
18250 ORIGINAL_LD_FOR_TARGET!$ORIGINAL_LD_FOR_TARGET$ac_delim
18251 gcc_cv_nm!$gcc_cv_nm$ac_delim
18252 ORIGINAL_NM_FOR_TARGET!$ORIGINAL_NM_FOR_TARGET$ac_delim
18253 gcc_cv_objdump!$gcc_cv_objdump$ac_delim
18254 libgcc_visibility!$libgcc_visibility$ac_delim
18255 GGC!$GGC$ac_delim
18256 zlibdir!$zlibdir$ac_delim
18257 zlibinc!$zlibinc$ac_delim
18258 MAINT!$MAINT$ac_delim
18259 gcc_tooldir!$gcc_tooldir$ac_delim
18260 dollar!$dollar$ac_delim
18261 slibdir!$slibdir$ac_delim
18262 objdir!$objdir$ac_delim
18263 subdirs!$subdirs$ac_delim
18264 srcdir!$srcdir$ac_delim
18265 all_compilers!$all_compilers$ac_delim
18266 all_gtfiles!$all_gtfiles$ac_delim
18267 all_lang_makefrags!$all_lang_makefrags$ac_delim
18268 all_lang_makefiles!$all_lang_makefiles$ac_delim
18269 all_languages!$all_languages$ac_delim
18270 all_selected_languages!$all_selected_languages$ac_delim
18271 build_exeext!$build_exeext$ac_delim
18272 build_install_headers_dir!$build_install_headers_dir$ac_delim
18273 build_xm_file_list!$build_xm_file_list$ac_delim
18274 build_xm_include_list!$build_xm_include_list$ac_delim
18275 build_xm_defines!$build_xm_defines$ac_delim
18276 check_languages!$check_languages$ac_delim
18277 cpp_install_dir!$cpp_install_dir$ac_delim
18278 xmake_file!$xmake_file$ac_delim
18279 tmake_file!$tmake_file$ac_delim
18280 extra_gcc_objs!$extra_gcc_objs$ac_delim
18281 extra_headers_list!$extra_headers_list$ac_delim
18282 extra_objs!$extra_objs$ac_delim
18283 extra_parts!$extra_parts$ac_delim
18284 extra_passes!$extra_passes$ac_delim
18285 extra_programs!$extra_programs$ac_delim
18286 float_h_file!$float_h_file$ac_delim
18287 gcc_config_arguments!$gcc_config_arguments$ac_delim
18288 gcc_gxx_include_dir!$gcc_gxx_include_dir$ac_delim
18289 host_exeext!$host_exeext$ac_delim
18290 host_xm_file_list!$host_xm_file_list$ac_delim
18291 host_xm_include_list!$host_xm_include_list$ac_delim
18292 host_xm_defines!$host_xm_defines$ac_delim
18293 out_host_hook_obj!$out_host_hook_obj$ac_delim
18294 install!$install$ac_delim
18295 lang_opt_files!$lang_opt_files$ac_delim
18296 lang_specs_files!$lang_specs_files$ac_delim
18297 lang_tree_files!$lang_tree_files$ac_delim
18298 local_prefix!$local_prefix$ac_delim
18299 md_file!$md_file$ac_delim
18300 objc_boehm_gc!$objc_boehm_gc$ac_delim
18301 out_file!$out_file$ac_delim
18302 out_object_file!$out_object_file$ac_delim
18303 _ACEOF
18304
18305   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18306     break
18307   elif $ac_last_try; then
18308     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18309 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18310    { (exit 1); exit 1; }; }
18311   else
18312     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18313   fi
18314 done
18315
18316 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18317 if test -n "$ac_eof"; then
18318   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18319   ac_eof=`expr $ac_eof + 1`
18320 fi
18321
18322 cat >>$CONFIG_STATUS <<_ACEOF
18323 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18325 _ACEOF
18326 sed '
18327 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18328 s/^/s,@/; s/!/@,|#_!!_#|/
18329 :n
18330 t n
18331 s/'"$ac_delim"'$/,g/; t
18332 s/$/\\/; p
18333 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18334 ' >>$CONFIG_STATUS <conf$$subs.sed
18335 rm -f conf$$subs.sed
18336 cat >>$CONFIG_STATUS <<_ACEOF
18337 CEOF$ac_eof
18338 _ACEOF
18339
18340
18341 ac_delim='%!_!# '
18342 for ac_last_try in false false false false false :; do
18343   cat >conf$$subs.sed <<_ACEOF
18344 thread_file!$thread_file$ac_delim
18345 tm_file_list!$tm_file_list$ac_delim
18346 tm_include_list!$tm_include_list$ac_delim
18347 tm_defines!$tm_defines$ac_delim
18348 tm_p_file_list!$tm_p_file_list$ac_delim
18349 tm_p_include_list!$tm_p_include_list$ac_delim
18350 xm_file_list!$xm_file_list$ac_delim
18351 xm_include_list!$xm_include_list$ac_delim
18352 xm_defines!$xm_defines$ac_delim
18353 c_target_objs!$c_target_objs$ac_delim
18354 cxx_target_objs!$cxx_target_objs$ac_delim
18355 target_cpu_default!$target_cpu_default$ac_delim
18356 GMPLIBS!$GMPLIBS$ac_delim
18357 GMPINC!$GMPINC$ac_delim
18358 LIBOBJS!$LIBOBJS$ac_delim
18359 LTLIBOBJS!$LTLIBOBJS$ac_delim
18360 _ACEOF
18361
18362   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
18363     break
18364   elif $ac_last_try; then
18365     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18366 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18367    { (exit 1); exit 1; }; }
18368   else
18369     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18370   fi
18371 done
18372
18373 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18374 if test -n "$ac_eof"; then
18375   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18376   ac_eof=`expr $ac_eof + 1`
18377 fi
18378
18379 cat >>$CONFIG_STATUS <<_ACEOF
18380 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
18381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18382 _ACEOF
18383 sed '
18384 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18385 s/^/s,@/; s/!/@,|#_!!_#|/
18386 :n
18387 t n
18388 s/'"$ac_delim"'$/,g/; t
18389 s/$/\\/; p
18390 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18391 ' >>$CONFIG_STATUS <conf$$subs.sed
18392 rm -f conf$$subs.sed
18393 cat >>$CONFIG_STATUS <<_ACEOF
18394 :end
18395 s/|#_!!_#|//g
18396 CEOF$ac_eof
18397 _ACEOF
18398
18399
18400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18402 # trailing colons and then remove the whole line if VPATH becomes empty
18403 # (actually we leave an empty line to preserve line numbers).
18404 if test "x$srcdir" = x.; then
18405   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18406 s/:*\$(srcdir):*/:/
18407 s/:*\${srcdir}:*/:/
18408 s/:*@srcdir@:*/:/
18409 s/^\([^=]*=[     ]*\):*/\1/
18410 s/:*$//
18411 s/^[^=]*=[       ]*$//
18412 }'
18413 fi
18414
18415 cat >>$CONFIG_STATUS <<\_ACEOF
18416 fi # test -n "$CONFIG_FILES"
18417
18418
18419 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
18420 do
18421   case $ac_tag in
18422   :[FHLC]) ac_mode=$ac_tag; continue;;
18423   esac
18424   case $ac_mode$ac_tag in
18425   :[FHL]*:*);;
18426   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18427 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18428    { (exit 1); exit 1; }; };;
18429   :[FH]-) ac_tag=-:-;;
18430   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18431   esac
18432   ac_save_IFS=$IFS
18433   IFS=:
18434   set x $ac_tag
18435   IFS=$ac_save_IFS
18436   shift
18437   ac_file=$1
18438   shift
18439
18440   case $ac_mode in
18441   :L) ac_source=$1;;
18442   :[FH])
18443     ac_file_inputs=
18444     for ac_f
18445     do
18446       case $ac_f in
18447       -) ac_f="$tmp/stdin";;
18448       *) # Look for the file first in the build tree, then in the source tree
18449          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18450          # because $ac_f cannot contain `:'.
18451          test -f "$ac_f" ||
18452            case $ac_f in
18453            [\\/$]*) false;;
18454            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18455            esac ||
18456            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18457 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18458    { (exit 1); exit 1; }; };;
18459       esac
18460       ac_file_inputs="$ac_file_inputs $ac_f"
18461     done
18462
18463     # Let's still pretend it is `configure' which instantiates (i.e., don't
18464     # use $as_me), people would be surprised to read:
18465     #    /* config.h.  Generated by config.status.  */
18466     configure_input="Generated from "`IFS=:
18467           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18468     if test x"$ac_file" != x-; then
18469       configure_input="$ac_file.  $configure_input"
18470       { echo "$as_me:$LINENO: creating $ac_file" >&5
18471 echo "$as_me: creating $ac_file" >&6;}
18472     fi
18473
18474     case $ac_tag in
18475     *:-:* | *:-) cat >"$tmp/stdin";;
18476     esac
18477     ;;
18478   esac
18479
18480   ac_dir=`$as_dirname -- "$ac_file" ||
18481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18482          X"$ac_file" : 'X\(//\)[^/]' \| \
18483          X"$ac_file" : 'X\(//\)$' \| \
18484          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18485 echo X"$ac_file" |
18486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18487             s//\1/
18488             q
18489           }
18490           /^X\(\/\/\)[^/].*/{
18491             s//\1/
18492             q
18493           }
18494           /^X\(\/\/\)$/{
18495             s//\1/
18496             q
18497           }
18498           /^X\(\/\).*/{
18499             s//\1/
18500             q
18501           }
18502           s/.*/./; q'`
18503   { as_dir="$ac_dir"
18504   case $as_dir in #(
18505   -*) as_dir=./$as_dir;;
18506   esac
18507   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18508     as_dirs=
18509     while :; do
18510       case $as_dir in #(
18511       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18512       *) as_qdir=$as_dir;;
18513       esac
18514       as_dirs="'$as_qdir' $as_dirs"
18515       as_dir=`$as_dirname -- "$as_dir" ||
18516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18517          X"$as_dir" : 'X\(//\)[^/]' \| \
18518          X"$as_dir" : 'X\(//\)$' \| \
18519          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18520 echo X"$as_dir" |
18521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18522             s//\1/
18523             q
18524           }
18525           /^X\(\/\/\)[^/].*/{
18526             s//\1/
18527             q
18528           }
18529           /^X\(\/\/\)$/{
18530             s//\1/
18531             q
18532           }
18533           /^X\(\/\).*/{
18534             s//\1/
18535             q
18536           }
18537           s/.*/./; q'`
18538       test -d "$as_dir" && break
18539     done
18540     test -z "$as_dirs" || eval "mkdir $as_dirs"
18541   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18542 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18543    { (exit 1); exit 1; }; }; }
18544   ac_builddir=.
18545
18546 case "$ac_dir" in
18547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18548 *)
18549   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18550   # A ".." for each directory in $ac_dir_suffix.
18551   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18552   case $ac_top_builddir_sub in
18553   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18554   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18555   esac ;;
18556 esac
18557 ac_abs_top_builddir=$ac_pwd
18558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18559 # for backward compatibility:
18560 ac_top_builddir=$ac_top_build_prefix
18561
18562 case $srcdir in
18563   .)  # We are building in place.
18564     ac_srcdir=.
18565     ac_top_srcdir=$ac_top_builddir_sub
18566     ac_abs_top_srcdir=$ac_pwd ;;
18567   [\\/]* | ?:[\\/]* )  # Absolute name.
18568     ac_srcdir=$srcdir$ac_dir_suffix;
18569     ac_top_srcdir=$srcdir
18570     ac_abs_top_srcdir=$srcdir ;;
18571   *) # Relative name.
18572     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18573     ac_top_srcdir=$ac_top_build_prefix$srcdir
18574     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18575 esac
18576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18577
18578
18579   case $ac_mode in
18580   :F)
18581   #
18582   # CONFIG_FILE
18583   #
18584
18585 _ACEOF
18586
18587 cat >>$CONFIG_STATUS <<\_ACEOF
18588 # If the template does not know about datarootdir, expand it.
18589 # FIXME: This hack should be removed a few years after 2.60.
18590 ac_datarootdir_hack=; ac_datarootdir_seen=
18591
18592 case `sed -n '/datarootdir/ {
18593   p
18594   q
18595 }
18596 /@datadir@/p
18597 /@docdir@/p
18598 /@infodir@/p
18599 /@localedir@/p
18600 /@mandir@/p
18601 ' $ac_file_inputs` in
18602 *datarootdir*) ac_datarootdir_seen=yes;;
18603 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18604   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18605 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18606 _ACEOF
18607 cat >>$CONFIG_STATUS <<_ACEOF
18608   ac_datarootdir_hack='
18609   s&@datadir@&$datadir&g
18610   s&@docdir@&$docdir&g
18611   s&@infodir@&$infodir&g
18612   s&@localedir@&$localedir&g
18613   s&@mandir@&$mandir&g
18614     s&\\\${datarootdir}&$datarootdir&g' ;;
18615 esac
18616 _ACEOF
18617
18618 # Neutralize VPATH when `$srcdir' = `.'.
18619 # Shell code in configure.ac might set extrasub.
18620 # FIXME: do we really want to maintain this feature?
18621 cat >>$CONFIG_STATUS <<_ACEOF
18622   sed "$ac_vpsub
18623 $extrasub
18624 _ACEOF
18625 cat >>$CONFIG_STATUS <<\_ACEOF
18626 :t
18627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18628 s&@configure_input@&$configure_input&;t t
18629 s&@top_builddir@&$ac_top_builddir_sub&;t t
18630 s&@srcdir@&$ac_srcdir&;t t
18631 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18632 s&@top_srcdir@&$ac_top_srcdir&;t t
18633 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18634 s&@builddir@&$ac_builddir&;t t
18635 s&@abs_builddir@&$ac_abs_builddir&;t t
18636 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18637 $ac_datarootdir_hack
18638 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
18639
18640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18641   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18642   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18643   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18644 which seems to be undefined.  Please make sure it is defined." >&5
18645 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18646 which seems to be undefined.  Please make sure it is defined." >&2;}
18647
18648   rm -f "$tmp/stdin"
18649   case $ac_file in
18650   -) cat "$tmp/out"; rm -f "$tmp/out";;
18651   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18652   esac
18653  ;;
18654   :H)
18655   #
18656   # CONFIG_HEADER
18657   #
18658 _ACEOF
18659
18660 # Transform confdefs.h into a sed script `conftest.defines', that
18661 # substitutes the proper values into config.h.in to produce config.h.
18662 rm -f conftest.defines conftest.tail
18663 # First, append a space to every undef/define line, to ease matching.
18664 echo 's/$/ /' >conftest.defines
18665 # Then, protect against being on the right side of a sed subst, or in
18666 # an unquoted here document, in config.status.  If some macros were
18667 # called several times there might be several #defines for the same
18668 # symbol, which is useless.  But do not sort them, since the last
18669 # AC_DEFINE must be honored.
18670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18671 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
18672 # NAME is the cpp macro being defined, VALUE is the value it is being given.
18673 # PARAMS is the parameter list in the macro definition--in most cases, it's
18674 # just an empty string.
18675 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
18676 ac_dB='\\)[      (].*,\\1define\\2'
18677 ac_dC=' '
18678 ac_dD=' ,'
18679
18680 uniq confdefs.h |
18681   sed -n '
18682         t rset
18683         :rset
18684         s/^[     ]*#[    ]*define[       ][      ]*//
18685         t ok
18686         d
18687         :ok
18688         s/[\\&,]/\\&/g
18689         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
18690         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
18691   ' >>conftest.defines
18692
18693 # Remove the space that was appended to ease matching.
18694 # Then replace #undef with comments.  This is necessary, for
18695 # example, in the case of _POSIX_SOURCE, which is predefined and required
18696 # on some systems where configure will not decide to define it.
18697 # (The regexp can be short, since the line contains either #define or #undef.)
18698 echo 's/ $//
18699 s,^[     #]*u.*,/* & */,' >>conftest.defines
18700
18701 # Break up conftest.defines:
18702 ac_max_sed_lines=50
18703
18704 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
18705 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
18706 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
18707 # et cetera.
18708 ac_in='$ac_file_inputs'
18709 ac_out='"$tmp/out1"'
18710 ac_nxt='"$tmp/out2"'
18711
18712 while :
18713 do
18714   # Write a here document:
18715     cat >>$CONFIG_STATUS <<_ACEOF
18716     # First, check the format of the line:
18717     cat >"\$tmp/defines.sed" <<\\CEOF
18718 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
18719 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
18720 b
18721 :def
18722 _ACEOF
18723   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
18724   echo 'CEOF
18725     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
18726   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
18727   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
18728   grep . conftest.tail >/dev/null || break
18729   rm -f conftest.defines
18730   mv conftest.tail conftest.defines
18731 done
18732 rm -f conftest.defines conftest.tail
18733
18734 echo "ac_result=$ac_in" >>$CONFIG_STATUS
18735 cat >>$CONFIG_STATUS <<\_ACEOF
18736   if test x"$ac_file" != x-; then
18737     echo "/* $configure_input  */" >"$tmp/config.h"
18738     cat "$ac_result" >>"$tmp/config.h"
18739     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
18740       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18741 echo "$as_me: $ac_file is unchanged" >&6;}
18742     else
18743       rm -f $ac_file
18744       mv "$tmp/config.h" $ac_file
18745     fi
18746   else
18747     echo "/* $configure_input  */"
18748     cat "$ac_result"
18749   fi
18750   rm -f "$tmp/out12"
18751  ;;
18752
18753   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18754 echo "$as_me: executing $ac_file commands" >&6;}
18755  ;;
18756   esac
18757
18758
18759   case $ac_file$ac_mode in
18760     "default":C)
18761 case ${CONFIG_HEADERS} in
18762   *auto-host.h:config.in*)
18763   echo > cstamp-h ;;
18764 esac
18765 # Make sure all the subdirs exist.
18766 for d in $subdirs doc build
18767 do
18768     test -d $d || mkdir $d
18769 done
18770  ;;
18771
18772   esac
18773 done # for ac_tag
18774
18775
18776 { (exit 0); exit 0; }
18777 _ACEOF
18778 chmod +x $CONFIG_STATUS
18779 ac_clean_files=$ac_clean_files_save
18780
18781
18782 # configure is writing to config.log, and then calls config.status.
18783 # config.status does its own redirection, appending to config.log.
18784 # Unfortunately, on DOS this fails, as config.log is still kept open
18785 # by configure, so config.status won't be able to write to it; its
18786 # output is simply discarded.  So we exec the FD to /dev/null,
18787 # effectively closing config.log, so it can be properly (re)opened and
18788 # appended to by config.status.  When coming back to configure, we
18789 # need to make the FD available again.
18790 if test "$no_create" != yes; then
18791   ac_cs_success=:
18792   ac_config_status_args=
18793   test "$silent" = yes &&
18794     ac_config_status_args="$ac_config_status_args --quiet"
18795   exec 5>/dev/null
18796   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18797   exec 5>>config.log
18798   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18799   # would make configure fail if this is the last instruction.
18800   $ac_cs_success || { (exit 1); exit 1; }
18801 fi
18802