1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.62.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574exec 7<&0 </dev/null 6>&1
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581#
582# Initializations.
583#
584ac_default_prefix=/usr/local
585ac_clean_files=
586ac_config_libobj_dir=.
587LIBOBJS=
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="tree.c"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
605#ifdef HAVE_SYS_TYPES_H
606# include <sys/types.h>
607#endif
608#ifdef HAVE_SYS_STAT_H
609# include <sys/stat.h>
610#endif
611#ifdef STDC_HEADERS
612# include <stdlib.h>
613# include <stddef.h>
614#else
615# ifdef HAVE_STDLIB_H
616#  include <stdlib.h>
617# endif
618#endif
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621#  include <memory.h>
622# endif
623# include <string.h>
624#endif
625#ifdef HAVE_STRINGS_H
626# include <strings.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_UNISTD_H
635# include <unistd.h>
636#endif"
637
638ac_subst_vars='SHELL
639PATH_SEPARATOR
640PACKAGE_NAME
641PACKAGE_TARNAME
642PACKAGE_VERSION
643PACKAGE_STRING
644PACKAGE_BUGREPORT
645exec_prefix
646prefix
647program_transform_name
648bindir
649sbindir
650libexecdir
651datarootdir
652datadir
653sysconfdir
654sharedstatedir
655localstatedir
656includedir
657oldincludedir
658docdir
659infodir
660htmldir
661dvidir
662pdfdir
663psdir
664libdir
665localedir
666mandir
667DEFS
668ECHO_C
669ECHO_N
670ECHO_T
671LIBS
672build_alias
673host_alias
674target_alias
675build
676build_cpu
677build_vendor
678build_os
679host
680host_cpu
681host_vendor
682host_os
683target
684target_cpu
685target_vendor
686target_os
687target_noncanonical
688build_subdir
689host_subdir
690target_subdir
691GENINSRC
692CC
693CFLAGS
694LDFLAGS
695CPPFLAGS
696ac_ct_CC
697EXEEXT
698OBJEXT
699NO_MINUS_C_MINUS_O
700OUTPUT_OPTION
701CPP
702GREP
703EGREP
704strict1_warn
705warn_cflags
706WERROR
707nocommon_flag
708TREEBROWSER
709valgrind_path
710valgrind_path_defines
711valgrind_command
712coverage_flags
713enable_multilib
714enable_shared
715TARGET_SYSTEM_ROOT
716TARGET_SYSTEM_ROOT_DEFINE
717CROSS_SYSTEM_HEADER_DIR
718onestep
719SET_MAKE
720AWK
721LN_S
722LN
723RANLIB
724ranlib_flags
725INSTALL
726INSTALL_PROGRAM
727INSTALL_DATA
728make_compare_target
729have_mktemp_command
730MAKEINFO
731BUILD_INFO
732GENERATED_MANPAGES
733FLEX
734BISON
735NM
736AR
737stage1_cflags
738COLLECT2_LIBS
739GNAT_LIBEXC
740LDEXP_LIB
741TARGET_GETGROUPS_T
742LIBICONV
743LTLIBICONV
744LIBICONV_DEP
745manext
746objext
747gthread_flags
748extra_modes_file
749extra_opt_files
750USE_NLS
751LIBINTL
752LIBINTL_DEP
753INCINTL
754XGETTEXT
755GMSGFMT
756POSUB
757CATALOGS
758host_cc_for_libada
759CROSS
760ALL
761SYSTEM_HEADER_DIR
762inhibit_libc
763CC_FOR_BUILD
764BUILD_CFLAGS
765STMP_FIXINC
766STMP_FIXPROTO
767collect2
768gcc_cv_as
769ORIGINAL_AS_FOR_TARGET
770gcc_cv_ld
771ORIGINAL_LD_FOR_TARGET
772gcc_cv_nm
773ORIGINAL_NM_FOR_TARGET
774gcc_cv_objdump
775ORIGINAL_OBJDUMP_FOR_TARGET
776libgcc_visibility
777GGC
778zlibdir
779zlibinc
780MAINT
781gcc_tooldir
782dollar
783slibdir
784objdir
785subdirs
786srcdir
787all_boot_languages
788all_compilers
789all_gtfiles
790all_gtfiles_files_langs
791all_gtfiles_files_files
792all_lang_makefrags
793all_lang_makefiles
794all_languages
795all_stagestuff
796build_exeext
797build_install_headers_dir
798build_xm_file_list
799build_xm_include_list
800build_xm_defines
801check_languages
802cc_set_by_configure
803quoted_cc_set_by_configure
804cpp_install_dir
805xmake_file
806tmake_file
807extra_gcc_objs
808extra_headers_list
809extra_objs
810extra_parts
811extra_passes
812extra_programs
813float_h_file
814gcc_config_arguments
815gcc_gxx_include_dir
816libstdcxx_incdir
817host_exeext
818host_xm_file_list
819host_xm_include_list
820host_xm_defines
821out_host_hook_obj
822install
823lang_opt_files
824lang_specs_files
825lang_tree_files
826local_prefix
827md_file
828objc_boehm_gc
829out_file
830out_object_file
831stage_prefix_set_by_configure
832quoted_stage_prefix_set_by_configure
833thread_file
834tm_file_list
835tm_include_list
836tm_defines
837tm_p_file_list
838tm_p_include_list
839xm_file_list
840xm_include_list
841xm_defines
842c_target_objs
843cxx_target_objs
844target_cpu_default
845GMPLIBS
846GMPINC
847LIBOBJS
848LTLIBOBJS'
849ac_subst_files='language_hooks'
850ac_user_opts='
851enable_option_checking
852with_local_prefix
853with_gxx_include_dir
854with_cpp_install_dir
855enable_generated_files_in_srcdir
856with_gnu_ld
857with_ld
858with_demangler_in_ld
859with_gnu_as
860with_as
861enable_werror_always
862enable_werror
863enable_checking
864enable_mapped_location
865enable_coverage
866enable_gather_detailed_mem_stats
867with_stabs
868enable_multilib
869enable___cxa_atexit
870enable_threads
871enable_tls
872enable_objc_gc
873with_dwarf2
874enable_shared
875with_build_sysroot
876with_sysroot
877enable_intermodule
878enable_languages
879enable_rpath
880with_libiconv_prefix
881enable_initfini_array
882enable_sjlj_exceptions
883with_system_libunwind
884enable_secureplt
885enable_win32_registry
886with_gc
887with_system_zlib
888enable_maintainer_mode
889enable_version_specific_runtime_libs
890with_slibdir
891'
892      ac_precious_vars='build_alias
893host_alias
894target_alias
895CC
896CFLAGS
897LDFLAGS
898LIBS
899CPPFLAGS
900CPP
901GMPLIBS
902GMPINC'
903
904
905# Initialize some variables set by options.
906ac_init_help=
907ac_init_version=false
908ac_unrecognized_opts=
909ac_unrecognized_sep=
910# The variables have the same names as the options, with
911# dashes changed to underlines.
912cache_file=/dev/null
913exec_prefix=NONE
914no_create=
915no_recursion=
916prefix=NONE
917program_prefix=NONE
918program_suffix=NONE
919program_transform_name=s,x,x,
920silent=
921site=
922srcdir=
923verbose=
924x_includes=NONE
925x_libraries=NONE
926
927# Installation directory options.
928# These are left unexpanded so users can "make install exec_prefix=/foo"
929# and all the variables that are supposed to be based on exec_prefix
930# by default will actually change.
931# Use braces instead of parens because sh, perl, etc. also accept them.
932# (The list follows the same order as the GNU Coding Standards.)
933bindir='${exec_prefix}/bin'
934sbindir='${exec_prefix}/sbin'
935libexecdir='${exec_prefix}/libexec'
936datarootdir='${prefix}/share'
937datadir='${datarootdir}'
938sysconfdir='${prefix}/etc'
939sharedstatedir='${prefix}/com'
940localstatedir='${prefix}/var'
941includedir='${prefix}/include'
942oldincludedir='/usr/include'
943docdir='${datarootdir}/doc/${PACKAGE}'
944infodir='${datarootdir}/info'
945htmldir='${docdir}'
946dvidir='${docdir}'
947pdfdir='${docdir}'
948psdir='${docdir}'
949libdir='${exec_prefix}/lib'
950localedir='${datarootdir}/locale'
951mandir='${datarootdir}/man'
952
953ac_prev=
954ac_dashdash=
955for ac_option
956do
957  # If the previous option needs an argument, assign it.
958  if test -n "$ac_prev"; then
959    eval $ac_prev=\$ac_option
960    ac_prev=
961    continue
962  fi
963
964  case $ac_option in
965  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966  *)	ac_optarg=yes ;;
967  esac
968
969  # Accept the important Cygnus configure options, so we can diagnose typos.
970
971  case $ac_dashdash$ac_option in
972  --)
973    ac_dashdash=yes ;;
974
975  -bindir | --bindir | --bindi | --bind | --bin | --bi)
976    ac_prev=bindir ;;
977  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978    bindir=$ac_optarg ;;
979
980  -build | --build | --buil | --bui | --bu)
981    ac_prev=build_alias ;;
982  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983    build_alias=$ac_optarg ;;
984
985  -cache-file | --cache-file | --cache-fil | --cache-fi \
986  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987    ac_prev=cache_file ;;
988  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990    cache_file=$ac_optarg ;;
991
992  --config-cache | -C)
993    cache_file=config.cache ;;
994
995  -datadir | --datadir | --datadi | --datad)
996    ac_prev=datadir ;;
997  -datadir=* | --datadir=* | --datadi=* | --datad=*)
998    datadir=$ac_optarg ;;
999
1000  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001  | --dataroo | --dataro | --datar)
1002    ac_prev=datarootdir ;;
1003  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005    datarootdir=$ac_optarg ;;
1006
1007  -disable-* | --disable-*)
1008    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009    # Reject names that are not valid shell variable names.
1010    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1012   { (exit 1); exit 1; }; }
1013    ac_useropt_orig=$ac_useropt
1014    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015    case $ac_user_opts in
1016      *"
1017"enable_$ac_useropt"
1018"*) ;;
1019      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020	 ac_unrecognized_sep=', ';;
1021    esac
1022    eval enable_$ac_useropt=no ;;
1023
1024  -docdir | --docdir | --docdi | --doc | --do)
1025    ac_prev=docdir ;;
1026  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027    docdir=$ac_optarg ;;
1028
1029  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030    ac_prev=dvidir ;;
1031  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032    dvidir=$ac_optarg ;;
1033
1034  -enable-* | --enable-*)
1035    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036    # Reject names that are not valid shell variable names.
1037    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1039   { (exit 1); exit 1; }; }
1040    ac_useropt_orig=$ac_useropt
1041    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042    case $ac_user_opts in
1043      *"
1044"enable_$ac_useropt"
1045"*) ;;
1046      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047	 ac_unrecognized_sep=', ';;
1048    esac
1049    eval enable_$ac_useropt=\$ac_optarg ;;
1050
1051  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053  | --exec | --exe | --ex)
1054    ac_prev=exec_prefix ;;
1055  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057  | --exec=* | --exe=* | --ex=*)
1058    exec_prefix=$ac_optarg ;;
1059
1060  -gas | --gas | --ga | --g)
1061    # Obsolete; use --with-gas.
1062    with_gas=yes ;;
1063
1064  -help | --help | --hel | --he | -h)
1065    ac_init_help=long ;;
1066  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067    ac_init_help=recursive ;;
1068  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069    ac_init_help=short ;;
1070
1071  -host | --host | --hos | --ho)
1072    ac_prev=host_alias ;;
1073  -host=* | --host=* | --hos=* | --ho=*)
1074    host_alias=$ac_optarg ;;
1075
1076  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077    ac_prev=htmldir ;;
1078  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079  | --ht=*)
1080    htmldir=$ac_optarg ;;
1081
1082  -includedir | --includedir | --includedi | --included | --include \
1083  | --includ | --inclu | --incl | --inc)
1084    ac_prev=includedir ;;
1085  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086  | --includ=* | --inclu=* | --incl=* | --inc=*)
1087    includedir=$ac_optarg ;;
1088
1089  -infodir | --infodir | --infodi | --infod | --info | --inf)
1090    ac_prev=infodir ;;
1091  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092    infodir=$ac_optarg ;;
1093
1094  -libdir | --libdir | --libdi | --libd)
1095    ac_prev=libdir ;;
1096  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097    libdir=$ac_optarg ;;
1098
1099  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100  | --libexe | --libex | --libe)
1101    ac_prev=libexecdir ;;
1102  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103  | --libexe=* | --libex=* | --libe=*)
1104    libexecdir=$ac_optarg ;;
1105
1106  -localedir | --localedir | --localedi | --localed | --locale)
1107    ac_prev=localedir ;;
1108  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109    localedir=$ac_optarg ;;
1110
1111  -localstatedir | --localstatedir | --localstatedi | --localstated \
1112  | --localstate | --localstat | --localsta | --localst | --locals)
1113    ac_prev=localstatedir ;;
1114  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116    localstatedir=$ac_optarg ;;
1117
1118  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119    ac_prev=mandir ;;
1120  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121    mandir=$ac_optarg ;;
1122
1123  -nfp | --nfp | --nf)
1124    # Obsolete; use --without-fp.
1125    with_fp=no ;;
1126
1127  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128  | --no-cr | --no-c | -n)
1129    no_create=yes ;;
1130
1131  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133    no_recursion=yes ;;
1134
1135  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137  | --oldin | --oldi | --old | --ol | --o)
1138    ac_prev=oldincludedir ;;
1139  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142    oldincludedir=$ac_optarg ;;
1143
1144  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145    ac_prev=prefix ;;
1146  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147    prefix=$ac_optarg ;;
1148
1149  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150  | --program-pre | --program-pr | --program-p)
1151    ac_prev=program_prefix ;;
1152  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154    program_prefix=$ac_optarg ;;
1155
1156  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157  | --program-suf | --program-su | --program-s)
1158    ac_prev=program_suffix ;;
1159  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161    program_suffix=$ac_optarg ;;
1162
1163  -program-transform-name | --program-transform-name \
1164  | --program-transform-nam | --program-transform-na \
1165  | --program-transform-n | --program-transform- \
1166  | --program-transform | --program-transfor \
1167  | --program-transfo | --program-transf \
1168  | --program-trans | --program-tran \
1169  | --progr-tra | --program-tr | --program-t)
1170    ac_prev=program_transform_name ;;
1171  -program-transform-name=* | --program-transform-name=* \
1172  | --program-transform-nam=* | --program-transform-na=* \
1173  | --program-transform-n=* | --program-transform-=* \
1174  | --program-transform=* | --program-transfor=* \
1175  | --program-transfo=* | --program-transf=* \
1176  | --program-trans=* | --program-tran=* \
1177  | --progr-tra=* | --program-tr=* | --program-t=*)
1178    program_transform_name=$ac_optarg ;;
1179
1180  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181    ac_prev=pdfdir ;;
1182  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183    pdfdir=$ac_optarg ;;
1184
1185  -psdir | --psdir | --psdi | --psd | --ps)
1186    ac_prev=psdir ;;
1187  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188    psdir=$ac_optarg ;;
1189
1190  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191  | -silent | --silent | --silen | --sile | --sil)
1192    silent=yes ;;
1193
1194  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195    ac_prev=sbindir ;;
1196  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197  | --sbi=* | --sb=*)
1198    sbindir=$ac_optarg ;;
1199
1200  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202  | --sharedst | --shareds | --shared | --share | --shar \
1203  | --sha | --sh)
1204    ac_prev=sharedstatedir ;;
1205  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208  | --sha=* | --sh=*)
1209    sharedstatedir=$ac_optarg ;;
1210
1211  -site | --site | --sit)
1212    ac_prev=site ;;
1213  -site=* | --site=* | --sit=*)
1214    site=$ac_optarg ;;
1215
1216  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217    ac_prev=srcdir ;;
1218  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219    srcdir=$ac_optarg ;;
1220
1221  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222  | --syscon | --sysco | --sysc | --sys | --sy)
1223    ac_prev=sysconfdir ;;
1224  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226    sysconfdir=$ac_optarg ;;
1227
1228  -target | --target | --targe | --targ | --tar | --ta | --t)
1229    ac_prev=target_alias ;;
1230  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231    target_alias=$ac_optarg ;;
1232
1233  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234    verbose=yes ;;
1235
1236  -version | --version | --versio | --versi | --vers | -V)
1237    ac_init_version=: ;;
1238
1239  -with-* | --with-*)
1240    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241    # Reject names that are not valid shell variable names.
1242    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1244   { (exit 1); exit 1; }; }
1245    ac_useropt_orig=$ac_useropt
1246    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247    case $ac_user_opts in
1248      *"
1249"with_$ac_useropt"
1250"*) ;;
1251      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252	 ac_unrecognized_sep=', ';;
1253    esac
1254    eval with_$ac_useropt=\$ac_optarg ;;
1255
1256  -without-* | --without-*)
1257    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258    # Reject names that are not valid shell variable names.
1259    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1261   { (exit 1); exit 1; }; }
1262    ac_useropt_orig=$ac_useropt
1263    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264    case $ac_user_opts in
1265      *"
1266"with_$ac_useropt"
1267"*) ;;
1268      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269	 ac_unrecognized_sep=', ';;
1270    esac
1271    eval with_$ac_useropt=no ;;
1272
1273  --x)
1274    # Obsolete; use --with-x.
1275    with_x=yes ;;
1276
1277  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278  | --x-incl | --x-inc | --x-in | --x-i)
1279    ac_prev=x_includes ;;
1280  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282    x_includes=$ac_optarg ;;
1283
1284  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286    ac_prev=x_libraries ;;
1287  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289    x_libraries=$ac_optarg ;;
1290
1291  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1292Try \`$0 --help' for more information." >&2
1293   { (exit 1); exit 1; }; }
1294    ;;
1295
1296  *=*)
1297    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298    # Reject names that are not valid shell variable names.
1299    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1300      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1301   { (exit 1); exit 1; }; }
1302    eval $ac_envvar=\$ac_optarg
1303    export $ac_envvar ;;
1304
1305  *)
1306    # FIXME: should be removed in autoconf 3.0.
1307    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1311    ;;
1312
1313  esac
1314done
1315
1316if test -n "$ac_prev"; then
1317  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1319   { (exit 1); exit 1; }; }
1320fi
1321
1322if test -n "$ac_unrecognized_opts"; then
1323  case $enable_option_checking in
1324    no) ;;
1325    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1326   { (exit 1); exit 1; }; } ;;
1327    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328  esac
1329fi
1330
1331# Check all directory arguments for consistency.
1332for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333		datadir sysconfdir sharedstatedir localstatedir includedir \
1334		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335		libdir localedir mandir
1336do
1337  eval ac_val=\$$ac_var
1338  # Remove trailing slashes.
1339  case $ac_val in
1340    */ )
1341      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342      eval $ac_var=\$ac_val;;
1343  esac
1344  # Be sure to have absolute directory names.
1345  case $ac_val in
1346    [\\/$]* | ?:[\\/]* )  continue;;
1347    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348  esac
1349  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1350   { (exit 1); exit 1; }; }
1351done
1352
1353# There might be people who depend on the old broken behavior: `$host'
1354# used to hold the argument of --host etc.
1355# FIXME: To remove some day.
1356build=$build_alias
1357host=$host_alias
1358target=$target_alias
1359
1360# FIXME: To remove some day.
1361if test "x$host_alias" != x; then
1362  if test "x$build_alias" = x; then
1363    cross_compiling=maybe
1364    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1365    If a cross compiler is detected then cross compile mode will be used." >&2
1366  elif test "x$build_alias" != "x$host_alias"; then
1367    cross_compiling=yes
1368  fi
1369fi
1370
1371ac_tool_prefix=
1372test -n "$host_alias" && ac_tool_prefix=$host_alias-
1373
1374test "$silent" = yes && exec 6>/dev/null
1375
1376
1377ac_pwd=`pwd` && test -n "$ac_pwd" &&
1378ac_ls_di=`ls -di .` &&
1379ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1380  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1381   { (exit 1); exit 1; }; }
1382test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1384   { (exit 1); exit 1; }; }
1385
1386
1387# Find the source files, if location was not specified.
1388if test -z "$srcdir"; then
1389  ac_srcdir_defaulted=yes
1390  # Try the directory containing this script, then the parent directory.
1391  ac_confdir=`$as_dirname -- "$as_myself" ||
1392$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393	 X"$as_myself" : 'X\(//\)[^/]' \| \
1394	 X"$as_myself" : 'X\(//\)$' \| \
1395	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396$as_echo X"$as_myself" |
1397    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398	    s//\1/
1399	    q
1400	  }
1401	  /^X\(\/\/\)[^/].*/{
1402	    s//\1/
1403	    q
1404	  }
1405	  /^X\(\/\/\)$/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\).*/{
1410	    s//\1/
1411	    q
1412	  }
1413	  s/.*/./; q'`
1414  srcdir=$ac_confdir
1415  if test ! -r "$srcdir/$ac_unique_file"; then
1416    srcdir=..
1417  fi
1418else
1419  ac_srcdir_defaulted=no
1420fi
1421if test ! -r "$srcdir/$ac_unique_file"; then
1422  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1424   { (exit 1); exit 1; }; }
1425fi
1426ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427ac_abs_confdir=`(
1428	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1429   { (exit 1); exit 1; }; }
1430	pwd)`
1431# When building in place, set srcdir=.
1432if test "$ac_abs_confdir" = "$ac_pwd"; then
1433  srcdir=.
1434fi
1435# Remove unnecessary trailing slashes from srcdir.
1436# Double slashes in file names in object file debugging info
1437# mess up M-x gdb in Emacs.
1438case $srcdir in
1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440esac
1441for ac_var in $ac_precious_vars; do
1442  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443  eval ac_env_${ac_var}_value=\$${ac_var}
1444  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446done
1447
1448#
1449# Report the --help message.
1450#
1451if test "$ac_init_help" = "long"; then
1452  # Omit some internal or obsolete options to make the list less imposing.
1453  # This message is too long to be a string in the A/UX 3.1 sh.
1454  cat <<_ACEOF
1455\`configure' configures this package to adapt to many kinds of systems.
1456
1457Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460VAR=VALUE.  See below for descriptions of some of the useful variables.
1461
1462Defaults for the options are specified in brackets.
1463
1464Configuration:
1465  -h, --help              display this help and exit
1466      --help=short        display options specific to this package
1467      --help=recursive    display the short help of all the included packages
1468  -V, --version           display version information and exit
1469  -q, --quiet, --silent   do not print \`checking...' messages
1470      --cache-file=FILE   cache test results in FILE [disabled]
1471  -C, --config-cache      alias for \`--cache-file=config.cache'
1472  -n, --no-create         do not create output files
1473      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1474
1475Installation directories:
1476  --prefix=PREFIX         install architecture-independent files in PREFIX
1477                          [$ac_default_prefix]
1478  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1479                          [PREFIX]
1480
1481By default, \`make install' will install all the files in
1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1483an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484for instance \`--prefix=\$HOME'.
1485
1486For better control, use the options below.
1487
1488Fine tuning of the installation directories:
1489  --bindir=DIR            user executables [EPREFIX/bin]
1490  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1491  --libexecdir=DIR        program executables [EPREFIX/libexec]
1492  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1493  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1494  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1495  --libdir=DIR            object code libraries [EPREFIX/lib]
1496  --includedir=DIR        C header files [PREFIX/include]
1497  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1498  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1499  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1500  --infodir=DIR           info documentation [DATAROOTDIR/info]
1501  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1502  --mandir=DIR            man documentation [DATAROOTDIR/man]
1503  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1504  --htmldir=DIR           html documentation [DOCDIR]
1505  --dvidir=DIR            dvi documentation [DOCDIR]
1506  --pdfdir=DIR            pdf documentation [DOCDIR]
1507  --psdir=DIR             ps documentation [DOCDIR]
1508_ACEOF
1509
1510  cat <<\_ACEOF
1511
1512Program names:
1513  --program-prefix=PREFIX            prepend PREFIX to installed program names
1514  --program-suffix=SUFFIX            append SUFFIX to installed program names
1515  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1516
1517System types:
1518  --build=BUILD     configure for building on BUILD [guessed]
1519  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520  --target=TARGET   configure for building compilers for TARGET [HOST]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525
1526  cat <<\_ACEOF
1527
1528Optional Features:
1529  --disable-option-checking  ignore unrecognized --enable/--with options
1530  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1531  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1532  --enable-generated-files-in-srcdir
1533                          put copies of generated files in source dir
1534                          intended for creating source tarballs for users
1535                          without texinfo bison or flex.
1536  --enable-werror-always         enable -Werror always
1537  --enable-werror         enable -Werror in bootstrap stage2 and later
1538  --enable-checking=LIST
1539			  enable expensive run-time checks.  With LIST,
1540			  enable only specific categories of checks.
1541			  Categories are: yes,no,all,none,release.
1542			  Flags are: assert,fold,gc,gcac,misc,
1543			  rtlflag,rtl,runtime,tree,valgrind.
1544  --enable-mapped-location   location_t is fileline integer cookie
1545  --enable-coverage=LEVEL
1546			  enable compiler's code coverage collection.
1547			  Use to measure compiler performance and locate
1548			  unused parts of the compiler. With LEVEL, specify
1549			  optimization. Values are opt, noopt,
1550			  default is noopt
1551  --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1552  --enable-multilib       enable library support for multiple ABIs
1553  --enable-__cxa_atexit   enable __cxa_atexit for C++
1554  --enable-threads        enable thread usage for target GCC
1555  --enable-threads=LIB    use LIB thread package for target GCC
1556  --enable-tls            enable or disable generation of tls code
1557                          overriding the assembler check for tls support
1558  --enable-objc-gc	  enable the use of Boehm's garbage collector with
1559			  the GNU Objective-C runtime
1560  --disable-shared        don't provide a shared libgcc
1561  --enable-intermodule    build the compiler in one step
1562  --enable-languages=LIST specify which front-ends to build
1563  --disable-rpath         do not hardcode runtime library paths
1564  --enable-initfini-array	use .init_array/.fini_array sections
1565  --enable-sjlj-exceptions
1566                          arrange to use setjmp/longjmp exception handling
1567  --enable-secureplt      enable -msecure-plt by default for PowerPC
1568  --disable-win32-registry
1569                          disable lookup of installation paths in the
1570                          Registry on Windows hosts
1571  --enable-win32-registry enable registry lookup (default)
1572  --enable-win32-registry=KEY
1573                          use KEY instead of GCC version as the last portion
1574                          of the registry key
1575  --enable-maintainer-mode
1576                          enable make rules and dependencies not useful
1577                          (and sometimes confusing) to the casual installer
1578  --enable-version-specific-runtime-libs
1579                          specify that runtime libraries should be
1580                          installed in a compiler-specific directory
1581
1582Optional Packages:
1583  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1584  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1585  --with-local-prefix=DIR specifies directory to put local include
1586  --with-gxx-include-dir=DIR
1587                          specifies directory to put g++ header files
1588  --with-cpp-install-dir=DIR
1589                          install the user visible C preprocessor in DIR
1590                          (relative to PREFIX) as well as PREFIX/bin
1591  --with-gnu-ld           arrange to work with GNU ld.
1592  --with-ld               arrange to use the specified ld (full pathname)
1593  --with-demangler-in-ld  try to use demangler in GNU ld.
1594  --with-gnu-as           arrange to work with GNU as
1595  --with-as               arrange to use the specified as (full pathname)
1596  --with-stabs            arrange to use stabs instead of host debug format
1597  --with-dwarf2           force the default debug format to be DWARF 2
1598  --with-build-sysroot=sysroot
1599                          use sysroot as the system root during the build
1600  --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1601  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1602  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1603  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1604  --with-system-libunwind use installed libunwind
1605  --with-gc={page,zone}   choose the garbage collection mechanism to use
1606                          with the compiler
1607  --with-system-zlib      use installed libz
1608  --with-slibdir=DIR      shared libraries in DIR LIBDIR
1609
1610Some influential environment variables:
1611  CC          C compiler command
1612  CFLAGS      C compiler flags
1613  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1614              nonstandard directory <lib dir>
1615  LIBS        libraries to pass to the linker, e.g. -l<library>
1616  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1617              you have headers in a nonstandard directory <include dir>
1618  CPP         C preprocessor
1619  GMPLIBS     How to link GMP
1620  GMPINC      How to find GMP include files
1621
1622Use these variables to override the choices made by `configure' or to help
1623it to find libraries and programs with nonstandard names/locations.
1624
1625_ACEOF
1626ac_status=$?
1627fi
1628
1629if test "$ac_init_help" = "recursive"; then
1630  # If there are subdirs, report their specific --help.
1631  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632    test -d "$ac_dir" ||
1633      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1634      continue
1635    ac_builddir=.
1636
1637case "$ac_dir" in
1638.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639*)
1640  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1641  # A ".." for each directory in $ac_dir_suffix.
1642  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1643  case $ac_top_builddir_sub in
1644  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646  esac ;;
1647esac
1648ac_abs_top_builddir=$ac_pwd
1649ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650# for backward compatibility:
1651ac_top_builddir=$ac_top_build_prefix
1652
1653case $srcdir in
1654  .)  # We are building in place.
1655    ac_srcdir=.
1656    ac_top_srcdir=$ac_top_builddir_sub
1657    ac_abs_top_srcdir=$ac_pwd ;;
1658  [\\/]* | ?:[\\/]* )  # Absolute name.
1659    ac_srcdir=$srcdir$ac_dir_suffix;
1660    ac_top_srcdir=$srcdir
1661    ac_abs_top_srcdir=$srcdir ;;
1662  *) # Relative name.
1663    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664    ac_top_srcdir=$ac_top_build_prefix$srcdir
1665    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666esac
1667ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668
1669    cd "$ac_dir" || { ac_status=$?; continue; }
1670    # Check for guested configure.
1671    if test -f "$ac_srcdir/configure.gnu"; then
1672      echo &&
1673      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674    elif test -f "$ac_srcdir/configure"; then
1675      echo &&
1676      $SHELL "$ac_srcdir/configure" --help=recursive
1677    else
1678      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679    fi || ac_status=$?
1680    cd "$ac_pwd" || { ac_status=$?; break; }
1681  done
1682fi
1683
1684test -n "$ac_init_help" && exit $ac_status
1685if $ac_init_version; then
1686  cat <<\_ACEOF
1687configure
1688generated by GNU Autoconf 2.62
1689
1690Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16912002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1692This configure script is free software; the Free Software Foundation
1693gives unlimited permission to copy, distribute and modify it.
1694_ACEOF
1695  exit
1696fi
1697cat >config.log <<_ACEOF
1698This file contains any messages produced by compilers while
1699running configure, to aid debugging if configure makes a mistake.
1700
1701It was created by $as_me, which was
1702generated by GNU Autoconf 2.62.  Invocation command line was
1703
1704  $ $0 $@
1705
1706_ACEOF
1707exec 5>>config.log
1708{
1709cat <<_ASUNAME
1710## --------- ##
1711## Platform. ##
1712## --------- ##
1713
1714hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1715uname -m = `(uname -m) 2>/dev/null || echo unknown`
1716uname -r = `(uname -r) 2>/dev/null || echo unknown`
1717uname -s = `(uname -s) 2>/dev/null || echo unknown`
1718uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719
1720/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1721/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1722
1723/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1724/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1725/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1726/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1727/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1728/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1729/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1730
1731_ASUNAME
1732
1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734for as_dir in $PATH
1735do
1736  IFS=$as_save_IFS
1737  test -z "$as_dir" && as_dir=.
1738  $as_echo "PATH: $as_dir"
1739done
1740IFS=$as_save_IFS
1741
1742} >&5
1743
1744cat >&5 <<_ACEOF
1745
1746
1747## ----------- ##
1748## Core tests. ##
1749## ----------- ##
1750
1751_ACEOF
1752
1753
1754# Keep a trace of the command line.
1755# Strip out --no-create and --no-recursion so they do not pile up.
1756# Strip out --silent because we don't want to record it for future runs.
1757# Also quote any args containing shell meta-characters.
1758# Make two passes to allow for proper duplicate-argument suppression.
1759ac_configure_args=
1760ac_configure_args0=
1761ac_configure_args1=
1762ac_must_keep_next=false
1763for ac_pass in 1 2
1764do
1765  for ac_arg
1766  do
1767    case $ac_arg in
1768    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1769    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1770    | -silent | --silent | --silen | --sile | --sil)
1771      continue ;;
1772    *\'*)
1773      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774    esac
1775    case $ac_pass in
1776    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1777    2)
1778      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1779      if test $ac_must_keep_next = true; then
1780	ac_must_keep_next=false # Got value, back to normal.
1781      else
1782	case $ac_arg in
1783	  *=* | --config-cache | -C | -disable-* | --disable-* \
1784	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1785	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1786	  | -with-* | --with-* | -without-* | --without-* | --x)
1787	    case "$ac_configure_args0 " in
1788	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789	    esac
1790	    ;;
1791	  -* ) ac_must_keep_next=true ;;
1792	esac
1793      fi
1794      ac_configure_args="$ac_configure_args '$ac_arg'"
1795      ;;
1796    esac
1797  done
1798done
1799$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1800$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1801
1802# When interrupted or exit'd, cleanup temporary files, and complete
1803# config.log.  We remove comments because anyway the quotes in there
1804# would cause problems or look ugly.
1805# WARNING: Use '\'' to represent an apostrophe within the trap.
1806# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1807trap 'exit_status=$?
1808  # Save into config.log some information that might help in debugging.
1809  {
1810    echo
1811
1812    cat <<\_ASBOX
1813## ---------------- ##
1814## Cache variables. ##
1815## ---------------- ##
1816_ASBOX
1817    echo
1818    # The following way of writing the cache mishandles newlines in values,
1819(
1820  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1821    eval ac_val=\$$ac_var
1822    case $ac_val in #(
1823    *${as_nl}*)
1824      case $ac_var in #(
1825      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1826$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1827      esac
1828      case $ac_var in #(
1829      _ | IFS | as_nl) ;; #(
1830      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1831      *) $as_unset $ac_var ;;
1832      esac ;;
1833    esac
1834  done
1835  (set) 2>&1 |
1836    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1837    *${as_nl}ac_space=\ *)
1838      sed -n \
1839	"s/'\''/'\''\\\\'\'''\''/g;
1840	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1841      ;; #(
1842    *)
1843      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1844      ;;
1845    esac |
1846    sort
1847)
1848    echo
1849
1850    cat <<\_ASBOX
1851## ----------------- ##
1852## Output variables. ##
1853## ----------------- ##
1854_ASBOX
1855    echo
1856    for ac_var in $ac_subst_vars
1857    do
1858      eval ac_val=\$$ac_var
1859      case $ac_val in
1860      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1861      esac
1862      $as_echo "$ac_var='\''$ac_val'\''"
1863    done | sort
1864    echo
1865
1866    if test -n "$ac_subst_files"; then
1867      cat <<\_ASBOX
1868## ------------------- ##
1869## File substitutions. ##
1870## ------------------- ##
1871_ASBOX
1872      echo
1873      for ac_var in $ac_subst_files
1874      do
1875	eval ac_val=\$$ac_var
1876	case $ac_val in
1877	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878	esac
1879	$as_echo "$ac_var='\''$ac_val'\''"
1880      done | sort
1881      echo
1882    fi
1883
1884    if test -s confdefs.h; then
1885      cat <<\_ASBOX
1886## ----------- ##
1887## confdefs.h. ##
1888## ----------- ##
1889_ASBOX
1890      echo
1891      cat confdefs.h
1892      echo
1893    fi
1894    test "$ac_signal" != 0 &&
1895      $as_echo "$as_me: caught signal $ac_signal"
1896    $as_echo "$as_me: exit $exit_status"
1897  } >&5
1898  rm -f core *.core core.conftest.* &&
1899    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900    exit $exit_status
1901' 0
1902for ac_signal in 1 2 13 15; do
1903  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1904done
1905ac_signal=0
1906
1907# confdefs.h avoids OS command line length limits that DEFS can exceed.
1908rm -f -r conftest* confdefs.h
1909
1910# Predefined preprocessor variables.
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_NAME "$PACKAGE_NAME"
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<_ACEOF
1918#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1919_ACEOF
1920
1921
1922cat >>confdefs.h <<_ACEOF
1923#define PACKAGE_VERSION "$PACKAGE_VERSION"
1924_ACEOF
1925
1926
1927cat >>confdefs.h <<_ACEOF
1928#define PACKAGE_STRING "$PACKAGE_STRING"
1929_ACEOF
1930
1931
1932cat >>confdefs.h <<_ACEOF
1933#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1934_ACEOF
1935
1936
1937# Let the site file select an alternate cache file if it wants to.
1938# Prefer an explicitly selected file to automatically selected ones.
1939ac_site_file1=NONE
1940ac_site_file2=NONE
1941if test -n "$CONFIG_SITE"; then
1942  ac_site_file1=$CONFIG_SITE
1943elif test "x$prefix" != xNONE; then
1944  ac_site_file1=$prefix/share/config.site
1945  ac_site_file2=$prefix/etc/config.site
1946else
1947  ac_site_file1=$ac_default_prefix/share/config.site
1948  ac_site_file2=$ac_default_prefix/etc/config.site
1949fi
1950for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1951do
1952  test "x$ac_site_file" = xNONE && continue
1953  if test -r "$ac_site_file"; then
1954    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1955$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1956    sed 's/^/| /' "$ac_site_file" >&5
1957    . "$ac_site_file"
1958  fi
1959done
1960
1961if test -r "$cache_file"; then
1962  # Some versions of bash will fail to source /dev/null (special
1963  # files actually), so we avoid doing that.
1964  if test -f "$cache_file"; then
1965    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1966$as_echo "$as_me: loading cache $cache_file" >&6;}
1967    case $cache_file in
1968      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1969      *)                      . "./$cache_file";;
1970    esac
1971  fi
1972else
1973  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1974$as_echo "$as_me: creating cache $cache_file" >&6;}
1975  >$cache_file
1976fi
1977
1978# Check that the precious variables saved in the cache have kept the same
1979# value.
1980ac_cache_corrupted=false
1981for ac_var in $ac_precious_vars; do
1982  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1983  eval ac_new_set=\$ac_env_${ac_var}_set
1984  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1985  eval ac_new_val=\$ac_env_${ac_var}_value
1986  case $ac_old_set,$ac_new_set in
1987    set,)
1988      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1989$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1990      ac_cache_corrupted=: ;;
1991    ,set)
1992      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1993$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1994      ac_cache_corrupted=: ;;
1995    ,);;
1996    *)
1997      if test "x$ac_old_val" != "x$ac_new_val"; then
1998	# differences in whitespace do not lead to failure.
1999	ac_old_val_w=`echo x $ac_old_val`
2000	ac_new_val_w=`echo x $ac_new_val`
2001	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2002	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2003$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2004	  ac_cache_corrupted=:
2005	else
2006	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2007$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2008	  eval $ac_var=\$ac_old_val
2009	fi
2010	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2011$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2012	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2013$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2014      fi;;
2015  esac
2016  # Pass precious variables to config.status.
2017  if test "$ac_new_set" = set; then
2018    case $ac_new_val in
2019    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2020    *) ac_arg=$ac_var=$ac_new_val ;;
2021    esac
2022    case " $ac_configure_args " in
2023      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2024      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2025    esac
2026  fi
2027done
2028if $ac_cache_corrupted; then
2029  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2030$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2031  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2032$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2033   { (exit 1); exit 1; }; }
2034fi
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052ac_ext=c
2053ac_cpp='$CPP $CPPFLAGS'
2054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
2058
2059
2060ac_config_headers="$ac_config_headers auto-host.h:config.in"
2061
2062
2063gcc_version=`cat $srcdir/BASE-VER`
2064
2065# Determine the host, build, and target systems
2066ac_aux_dir=
2067for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2068  if test -f "$ac_dir/install-sh"; then
2069    ac_aux_dir=$ac_dir
2070    ac_install_sh="$ac_aux_dir/install-sh -c"
2071    break
2072  elif test -f "$ac_dir/install.sh"; then
2073    ac_aux_dir=$ac_dir
2074    ac_install_sh="$ac_aux_dir/install.sh -c"
2075    break
2076  elif test -f "$ac_dir/shtool"; then
2077    ac_aux_dir=$ac_dir
2078    ac_install_sh="$ac_aux_dir/shtool install -c"
2079    break
2080  fi
2081done
2082if test -z "$ac_aux_dir"; then
2083  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2084$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2085   { (exit 1); exit 1; }; }
2086fi
2087
2088# These three variables are undocumented and unsupported,
2089# and are intended to be withdrawn in a future Autoconf release.
2090# They can cause serious problems if a builder's source tree is in a directory
2091# whose full name contains unusual characters.
2092ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2093ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2094ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2095
2096
2097# Make sure we can run config.sub.
2098$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2099  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2100$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2101   { (exit 1); exit 1; }; }
2102
2103{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2104$as_echo_n "checking build system type... " >&6; }
2105if test "${ac_cv_build+set}" = set; then
2106  $as_echo_n "(cached) " >&6
2107else
2108  ac_build_alias=$build_alias
2109test "x$ac_build_alias" = x &&
2110  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2111test "x$ac_build_alias" = x &&
2112  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2113$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2114   { (exit 1); exit 1; }; }
2115ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2116  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2117$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2118   { (exit 1); exit 1; }; }
2119
2120fi
2121{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2122$as_echo "$ac_cv_build" >&6; }
2123case $ac_cv_build in
2124*-*-*) ;;
2125*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2126$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2127   { (exit 1); exit 1; }; };;
2128esac
2129build=$ac_cv_build
2130ac_save_IFS=$IFS; IFS='-'
2131set x $ac_cv_build
2132shift
2133build_cpu=$1
2134build_vendor=$2
2135shift; shift
2136# Remember, the first character of IFS is used to create $*,
2137# except with old shells:
2138build_os=$*
2139IFS=$ac_save_IFS
2140case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2141
2142
2143{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2144$as_echo_n "checking host system type... " >&6; }
2145if test "${ac_cv_host+set}" = set; then
2146  $as_echo_n "(cached) " >&6
2147else
2148  if test "x$host_alias" = x; then
2149  ac_cv_host=$ac_cv_build
2150else
2151  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2152    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2153$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2154   { (exit 1); exit 1; }; }
2155fi
2156
2157fi
2158{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2159$as_echo "$ac_cv_host" >&6; }
2160case $ac_cv_host in
2161*-*-*) ;;
2162*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2163$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2164   { (exit 1); exit 1; }; };;
2165esac
2166host=$ac_cv_host
2167ac_save_IFS=$IFS; IFS='-'
2168set x $ac_cv_host
2169shift
2170host_cpu=$1
2171host_vendor=$2
2172shift; shift
2173# Remember, the first character of IFS is used to create $*,
2174# except with old shells:
2175host_os=$*
2176IFS=$ac_save_IFS
2177case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2178
2179
2180{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2181$as_echo_n "checking target system type... " >&6; }
2182if test "${ac_cv_target+set}" = set; then
2183  $as_echo_n "(cached) " >&6
2184else
2185  if test "x$target_alias" = x; then
2186  ac_cv_target=$ac_cv_host
2187else
2188  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2189    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2190$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2191   { (exit 1); exit 1; }; }
2192fi
2193
2194fi
2195{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2196$as_echo "$ac_cv_target" >&6; }
2197case $ac_cv_target in
2198*-*-*) ;;
2199*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2200$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2201   { (exit 1); exit 1; }; };;
2202esac
2203target=$ac_cv_target
2204ac_save_IFS=$IFS; IFS='-'
2205set x $ac_cv_target
2206shift
2207target_cpu=$1
2208target_vendor=$2
2209shift; shift
2210# Remember, the first character of IFS is used to create $*,
2211# except with old shells:
2212target_os=$*
2213IFS=$ac_save_IFS
2214case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2215
2216
2217# The aliases save the names the user supplied, while $host etc.
2218# will get canonicalized.
2219test -n "$target_alias" &&
2220  test "$program_prefix$program_suffix$program_transform_name" = \
2221    NONENONEs,x,x, &&
2222  program_prefix=${target_alias}-
2223
2224# Determine the noncanonical target name, for directory use.
2225 case ${build_alias} in
2226  "") build_noncanonical=${build} ;;
2227  *) build_noncanonical=${build_alias} ;;
2228esac
2229
2230 case ${host_alias} in
2231  "") host_noncanonical=${build_noncanonical} ;;
2232  *) host_noncanonical=${host_alias} ;;
2233esac
2234
2235 case ${target_alias} in
2236  "") target_noncanonical=${host_noncanonical} ;;
2237  *) target_noncanonical=${target_alias} ;;
2238esac
2239
2240
2241
2242
2243# Determine the target- and build-specific subdirectories
2244  # Prefix 'build-' so this never conflicts with target_subdir.
2245build_subdir="build-${build_noncanonical}"
2246# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2247if ( test $srcdir = . && test -d gcc ) \
2248   || test -d $srcdir/../host-${host_noncanonical}; then
2249  host_subdir="host-${host_noncanonical}"
2250else
2251  host_subdir=.
2252fi
2253# No prefix.
2254target_subdir=${target_noncanonical}
2255
2256
2257# Set program_transform_name
2258test "$program_prefix" != NONE &&
2259  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2260# Use a double $ so make ignores it.
2261test "$program_suffix" != NONE &&
2262  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2263# Double any \ or $.
2264# By default was `s,x,x', remove it if useless.
2265ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2266program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2267
2268
2269# Check for bogus environment variables.
2270# Test if LIBRARY_PATH contains the notation for the current directory
2271# since this would lead to problems installing/building glibc.
2272# LIBRARY_PATH contains the current directory if one of the following
2273# is true:
2274# - one of the terminals (":" and ";") is the first or last sign
2275# - two terminals occur directly after each other
2276# - the path contains an element with a dot in it
2277{ $as_echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
2278$as_echo_n "checking LIBRARY_PATH variable... " >&6; }
2279case ${LIBRARY_PATH} in
2280  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2281    library_path_setting="contains current directory"
2282    ;;
2283  *)
2284    library_path_setting="ok"
2285    ;;
2286esac
2287{ $as_echo "$as_me:$LINENO: result: $library_path_setting" >&5
2288$as_echo "$library_path_setting" >&6; }
2289if test "$library_path_setting" != "ok"; then
2290{ { $as_echo "$as_me:$LINENO: error:
2291*** LIBRARY_PATH shouldn't contain the current directory when
2292*** building gcc. Please change the environment variable
2293*** and run configure again." >&5
2294$as_echo "$as_me: error:
2295*** LIBRARY_PATH shouldn't contain the current directory when
2296*** building gcc. Please change the environment variable
2297*** and run configure again." >&2;}
2298   { (exit 1); exit 1; }; }
2299fi
2300
2301# Test if GCC_EXEC_PREFIX contains the notation for the current directory
2302# since this would lead to problems installing/building glibc.
2303# GCC_EXEC_PREFIX contains the current directory if one of the following
2304# is true:
2305# - one of the terminals (":" and ";") is the first or last sign
2306# - two terminals occur directly after each other
2307# - the path contains an element with a dot in it
2308{ $as_echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
2309$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
2310case ${GCC_EXEC_PREFIX} in
2311  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2312    gcc_exec_prefix_setting="contains current directory"
2313    ;;
2314  *)
2315    gcc_exec_prefix_setting="ok"
2316    ;;
2317esac
2318{ $as_echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
2319$as_echo "$gcc_exec_prefix_setting" >&6; }
2320if test "$gcc_exec_prefix_setting" != "ok"; then
2321{ { $as_echo "$as_me:$LINENO: error:
2322*** GCC_EXEC_PREFIX shouldn't contain the current directory when
2323*** building gcc. Please change the environment variable
2324*** and run configure again." >&5
2325$as_echo "$as_me: error:
2326*** GCC_EXEC_PREFIX shouldn't contain the current directory when
2327*** building gcc. Please change the environment variable
2328*** and run configure again." >&2;}
2329   { (exit 1); exit 1; }; }
2330fi
2331
2332# -----------
2333# Directories
2334# -----------
2335
2336# Specify the local prefix
2337local_prefix=
2338
2339# Check whether --with-local-prefix was given.
2340if test "${with_local_prefix+set}" = set; then
2341  withval=$with_local_prefix; case "${withval}" in
2342yes)	{ { $as_echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2343$as_echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2344   { (exit 1); exit 1; }; } ;;
2345no)	;;
2346*)	local_prefix=$with_local_prefix ;;
2347esac
2348fi
2349
2350
2351# Default local prefix if it is empty
2352if test x$local_prefix = x; then
2353	local_prefix=/usr/local
2354fi
2355
2356# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
2357# passed in by the toplevel make and thus we'd get different behavior
2358# depending on where we built the sources.
2359gcc_gxx_include_dir=
2360# Specify the g++ header file directory
2361
2362# Check whether --with-gxx-include-dir was given.
2363if test "${with_gxx_include_dir+set}" = set; then
2364  withval=$with_gxx_include_dir; case "${withval}" in
2365yes)	{ { $as_echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
2366$as_echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
2367   { (exit 1); exit 1; }; } ;;
2368no)	;;
2369*)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
2370esac
2371fi
2372
2373
2374if test x${gcc_gxx_include_dir} = x; then
2375  if test x${enable_version_specific_runtime_libs} = xyes; then
2376    gcc_gxx_include_dir='${libsubdir}/include/c++'
2377  else
2378    libstdcxx_incdir='c++/$(version)'
2379    gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
2380  fi
2381fi
2382
2383
2384# Check whether --with-cpp_install_dir was given.
2385if test "${with_cpp_install_dir+set}" = set; then
2386  withval=$with_cpp_install_dir; if test x$withval = xyes; then
2387  { { $as_echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
2388$as_echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
2389   { (exit 1); exit 1; }; }
2390elif test x$withval != xno; then
2391  cpp_install_dir=$withval
2392fi
2393fi
2394
2395
2396# We would like to our source tree to be readonly.  However when releases or
2397# pre-releases are generated, the flex/bison generated files as well as the
2398# various formats of manuals need to be included along with the rest of the
2399# sources.  Therefore we have --enable-generated-files-in-srcdir to do
2400# just that.
2401
2402{ $as_echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
2403$as_echo_n "checking whether to place generated files in the source directory... " >&6; }
2404    # Check whether --enable-generated-files-in-srcdir was given.
2405if test "${enable_generated_files_in_srcdir+set}" = set; then
2406  enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
2407else
2408  generated_files_in_srcdir=no
2409fi
2410
2411
2412{ $as_echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
2413$as_echo "$generated_files_in_srcdir" >&6; }
2414
2415if test "$generated_files_in_srcdir" = "yes"; then
2416  GENINSRC=''
2417else
2418  GENINSRC='#'
2419fi
2420
2421
2422# -------------------
2423# Find default linker
2424# -------------------
2425
2426# With GNU ld
2427
2428# Check whether --with-gnu-ld was given.
2429if test "${with_gnu_ld+set}" = set; then
2430  withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
2431else
2432  gnu_ld_flag=no
2433fi
2434
2435
2436# With pre-defined ld
2437
2438# Check whether --with-ld was given.
2439if test "${with_ld+set}" = set; then
2440  withval=$with_ld; DEFAULT_LINKER="$with_ld"
2441fi
2442
2443if test x"${DEFAULT_LINKER+set}" = x"set"; then
2444  if test ! -x "$DEFAULT_LINKER"; then
2445    { { $as_echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
2446$as_echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
2447   { (exit 1); exit 1; }; }
2448  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2449    gnu_ld_flag=yes
2450  fi
2451
2452cat >>confdefs.h <<_ACEOF
2453#define DEFAULT_LINKER "$DEFAULT_LINKER"
2454_ACEOF
2455
2456fi
2457
2458{ $as_echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2459$as_echo_n "checking whether a default linker was specified... " >&6; }
2460if test x"${DEFAULT_LINKER+set}" = x"set"; then
2461  if test x"$gnu_ld_flag" = x"no"; then
2462    { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2463$as_echo "yes ($DEFAULT_LINKER)" >&6; }
2464  else
2465    { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2466$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
2467  fi
2468else
2469  { $as_echo "$as_me:$LINENO: result: no" >&5
2470$as_echo "no" >&6; }
2471fi
2472
2473# With demangler in GNU ld
2474
2475# Check whether --with-demangler-in-ld was given.
2476if test "${with_demangler_in_ld+set}" = set; then
2477  withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
2478else
2479  demangler_in_ld=no
2480fi
2481
2482
2483# ----------------------
2484# Find default assembler
2485# ----------------------
2486
2487# With GNU as
2488
2489# Check whether --with-gnu-as was given.
2490if test "${with_gnu_as+set}" = set; then
2491  withval=$with_gnu_as; gas_flag="$with_gnu_as"
2492else
2493  gas_flag=no
2494fi
2495
2496
2497
2498# Check whether --with-as was given.
2499if test "${with_as+set}" = set; then
2500  withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
2501fi
2502
2503if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2504  if test ! -x "$DEFAULT_ASSEMBLER"; then
2505    { { $as_echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2506$as_echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2507   { (exit 1); exit 1; }; }
2508  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2509    gas_flag=yes
2510  fi
2511
2512cat >>confdefs.h <<_ACEOF
2513#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2514_ACEOF
2515
2516fi
2517
2518{ $as_echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2519$as_echo_n "checking whether a default assembler was specified... " >&6; }
2520if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2521  if test x"$gas_flag" = x"no"; then
2522    { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2523$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
2524  else
2525    { $as_echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2526$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
2527  fi
2528else
2529  { $as_echo "$as_me:$LINENO: result: no" >&5
2530$as_echo "no" >&6; }
2531fi
2532
2533# ---------------
2534# Find C compiler
2535# ---------------
2536
2537# If a non-executable a.out is present (e.g. created by GNU as above even if
2538# invoked with -v only), the IRIX 6 native ld just overwrites the existing
2539# file, even when creating an executable, so an execution test fails.
2540# Remove possible default executable files to avoid this.
2541#
2542# FIXME: This really belongs into AC_PROG_CC and can be removed once
2543# Autoconf includes it.
2544rm -f a.out a.exe b.out
2545
2546# Find the native compiler
2547ac_ext=c
2548ac_cpp='$CPP $CPPFLAGS'
2549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552if test -n "$ac_tool_prefix"; then
2553  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2554set dummy ${ac_tool_prefix}gcc; ac_word=$2
2555{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2556$as_echo_n "checking for $ac_word... " >&6; }
2557if test "${ac_cv_prog_CC+set}" = set; then
2558  $as_echo_n "(cached) " >&6
2559else
2560  if test -n "$CC"; then
2561  ac_cv_prog_CC="$CC" # Let the user override the test.
2562else
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566  IFS=$as_save_IFS
2567  test -z "$as_dir" && as_dir=.
2568  for ac_exec_ext in '' $ac_executable_extensions; do
2569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2571    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572    break 2
2573  fi
2574done
2575done
2576IFS=$as_save_IFS
2577
2578fi
2579fi
2580CC=$ac_cv_prog_CC
2581if test -n "$CC"; then
2582  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2583$as_echo "$CC" >&6; }
2584else
2585  { $as_echo "$as_me:$LINENO: result: no" >&5
2586$as_echo "no" >&6; }
2587fi
2588
2589
2590fi
2591if test -z "$ac_cv_prog_CC"; then
2592  ac_ct_CC=$CC
2593  # Extract the first word of "gcc", so it can be a program name with args.
2594set dummy gcc; ac_word=$2
2595{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2596$as_echo_n "checking for $ac_word... " >&6; }
2597if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598  $as_echo_n "(cached) " >&6
2599else
2600  if test -n "$ac_ct_CC"; then
2601  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606  IFS=$as_save_IFS
2607  test -z "$as_dir" && as_dir=.
2608  for ac_exec_ext in '' $ac_executable_extensions; do
2609  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610    ac_cv_prog_ac_ct_CC="gcc"
2611    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612    break 2
2613  fi
2614done
2615done
2616IFS=$as_save_IFS
2617
2618fi
2619fi
2620ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621if test -n "$ac_ct_CC"; then
2622  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623$as_echo "$ac_ct_CC" >&6; }
2624else
2625  { $as_echo "$as_me:$LINENO: result: no" >&5
2626$as_echo "no" >&6; }
2627fi
2628
2629  if test "x$ac_ct_CC" = x; then
2630    CC=""
2631  else
2632    case $cross_compiling:$ac_tool_warned in
2633yes:)
2634{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2635whose name does not start with the host triplet.  If you think this
2636configuration is useful to you, please write to autoconf@gnu.org." >&5
2637$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2638whose name does not start with the host triplet.  If you think this
2639configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2640ac_tool_warned=yes ;;
2641esac
2642    CC=$ac_ct_CC
2643  fi
2644else
2645  CC="$ac_cv_prog_CC"
2646fi
2647
2648if test -z "$CC"; then
2649          if test -n "$ac_tool_prefix"; then
2650    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2651set dummy ${ac_tool_prefix}cc; ac_word=$2
2652{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653$as_echo_n "checking for $ac_word... " >&6; }
2654if test "${ac_cv_prog_CC+set}" = set; then
2655  $as_echo_n "(cached) " >&6
2656else
2657  if test -n "$CC"; then
2658  ac_cv_prog_CC="$CC" # Let the user override the test.
2659else
2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663  IFS=$as_save_IFS
2664  test -z "$as_dir" && as_dir=.
2665  for ac_exec_ext in '' $ac_executable_extensions; do
2666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667    ac_cv_prog_CC="${ac_tool_prefix}cc"
2668    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669    break 2
2670  fi
2671done
2672done
2673IFS=$as_save_IFS
2674
2675fi
2676fi
2677CC=$ac_cv_prog_CC
2678if test -n "$CC"; then
2679  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2680$as_echo "$CC" >&6; }
2681else
2682  { $as_echo "$as_me:$LINENO: result: no" >&5
2683$as_echo "no" >&6; }
2684fi
2685
2686
2687  fi
2688fi
2689if test -z "$CC"; then
2690  # Extract the first word of "cc", so it can be a program name with args.
2691set dummy cc; ac_word=$2
2692{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693$as_echo_n "checking for $ac_word... " >&6; }
2694if test "${ac_cv_prog_CC+set}" = set; then
2695  $as_echo_n "(cached) " >&6
2696else
2697  if test -n "$CC"; then
2698  ac_cv_prog_CC="$CC" # Let the user override the test.
2699else
2700  ac_prog_rejected=no
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704  IFS=$as_save_IFS
2705  test -z "$as_dir" && as_dir=.
2706  for ac_exec_ext in '' $ac_executable_extensions; do
2707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2709       ac_prog_rejected=yes
2710       continue
2711     fi
2712    ac_cv_prog_CC="cc"
2713    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714    break 2
2715  fi
2716done
2717done
2718IFS=$as_save_IFS
2719
2720if test $ac_prog_rejected = yes; then
2721  # We found a bogon in the path, so make sure we never use it.
2722  set dummy $ac_cv_prog_CC
2723  shift
2724  if test $# != 0; then
2725    # We chose a different compiler from the bogus one.
2726    # However, it has the same basename, so the bogon will be chosen
2727    # first if we set CC to just the basename; use the full file name.
2728    shift
2729    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2730  fi
2731fi
2732fi
2733fi
2734CC=$ac_cv_prog_CC
2735if test -n "$CC"; then
2736  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2737$as_echo "$CC" >&6; }
2738else
2739  { $as_echo "$as_me:$LINENO: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743
2744fi
2745if test -z "$CC"; then
2746  if test -n "$ac_tool_prefix"; then
2747  for ac_prog in cl.exe
2748  do
2749    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2750set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2751{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2752$as_echo_n "checking for $ac_word... " >&6; }
2753if test "${ac_cv_prog_CC+set}" = set; then
2754  $as_echo_n "(cached) " >&6
2755else
2756  if test -n "$CC"; then
2757  ac_cv_prog_CC="$CC" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762  IFS=$as_save_IFS
2763  test -z "$as_dir" && as_dir=.
2764  for ac_exec_ext in '' $ac_executable_extensions; do
2765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2767    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768    break 2
2769  fi
2770done
2771done
2772IFS=$as_save_IFS
2773
2774fi
2775fi
2776CC=$ac_cv_prog_CC
2777if test -n "$CC"; then
2778  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2779$as_echo "$CC" >&6; }
2780else
2781  { $as_echo "$as_me:$LINENO: result: no" >&5
2782$as_echo "no" >&6; }
2783fi
2784
2785
2786    test -n "$CC" && break
2787  done
2788fi
2789if test -z "$CC"; then
2790  ac_ct_CC=$CC
2791  for ac_prog in cl.exe
2792do
2793  # Extract the first word of "$ac_prog", so it can be a program name with args.
2794set dummy $ac_prog; ac_word=$2
2795{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2798  $as_echo_n "(cached) " >&6
2799else
2800  if test -n "$ac_ct_CC"; then
2801  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806  IFS=$as_save_IFS
2807  test -z "$as_dir" && as_dir=.
2808  for ac_exec_ext in '' $ac_executable_extensions; do
2809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810    ac_cv_prog_ac_ct_CC="$ac_prog"
2811    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812    break 2
2813  fi
2814done
2815done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821if test -n "$ac_ct_CC"; then
2822  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2823$as_echo "$ac_ct_CC" >&6; }
2824else
2825  { $as_echo "$as_me:$LINENO: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829
2830  test -n "$ac_ct_CC" && break
2831done
2832
2833  if test "x$ac_ct_CC" = x; then
2834    CC=""
2835  else
2836    case $cross_compiling:$ac_tool_warned in
2837yes:)
2838{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2839whose name does not start with the host triplet.  If you think this
2840configuration is useful to you, please write to autoconf@gnu.org." >&5
2841$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2842whose name does not start with the host triplet.  If you think this
2843configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2844ac_tool_warned=yes ;;
2845esac
2846    CC=$ac_ct_CC
2847  fi
2848fi
2849
2850fi
2851
2852
2853test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2854See \`config.log' for more details." >&5
2855$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2856See \`config.log' for more details." >&2;}
2857   { (exit 1); exit 1; }; }
2858
2859# Provide some information about the compiler.
2860$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2861set X $ac_compile
2862ac_compiler=$2
2863{ (ac_try="$ac_compiler --version >&5"
2864case "(($ac_try" in
2865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866  *) ac_try_echo=$ac_try;;
2867esac
2868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2869$as_echo "$ac_try_echo") >&5
2870  (eval "$ac_compiler --version >&5") 2>&5
2871  ac_status=$?
2872  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873  (exit $ac_status); }
2874{ (ac_try="$ac_compiler -v >&5"
2875case "(($ac_try" in
2876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877  *) ac_try_echo=$ac_try;;
2878esac
2879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880$as_echo "$ac_try_echo") >&5
2881  (eval "$ac_compiler -v >&5") 2>&5
2882  ac_status=$?
2883  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884  (exit $ac_status); }
2885{ (ac_try="$ac_compiler -V >&5"
2886case "(($ac_try" in
2887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888  *) ac_try_echo=$ac_try;;
2889esac
2890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2891$as_echo "$ac_try_echo") >&5
2892  (eval "$ac_compiler -V >&5") 2>&5
2893  ac_status=$?
2894  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); }
2896
2897cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h.  */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h.  */
2903
2904int
2905main ()
2906{
2907
2908  ;
2909  return 0;
2910}
2911_ACEOF
2912ac_clean_files_save=$ac_clean_files
2913ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2914# Try to create an executable without -o first, disregard a.out.
2915# It will help us diagnose broken compilers, and finding out an intuition
2916# of exeext.
2917{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2918$as_echo_n "checking for C compiler default output file name... " >&6; }
2919ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2920
2921# The possible output files:
2922ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2923
2924ac_rmfiles=
2925for ac_file in $ac_files
2926do
2927  case $ac_file in
2928    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2929    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2930  esac
2931done
2932rm -f $ac_rmfiles
2933
2934if { (ac_try="$ac_link_default"
2935case "(($ac_try" in
2936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937  *) ac_try_echo=$ac_try;;
2938esac
2939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940$as_echo "$ac_try_echo") >&5
2941  (eval "$ac_link_default") 2>&5
2942  ac_status=$?
2943  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); }; then
2945  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2946# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2947# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2948# so that the user can short-circuit this test for compilers unknown to
2949# Autoconf.
2950for ac_file in $ac_files ''
2951do
2952  test -f "$ac_file" || continue
2953  case $ac_file in
2954    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2955	;;
2956    [ab].out )
2957	# We found the default executable, but exeext='' is most
2958	# certainly right.
2959	break;;
2960    *.* )
2961        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2962	then :; else
2963	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2964	fi
2965	# We set ac_cv_exeext here because the later test for it is not
2966	# safe: cross compilers may not add the suffix if given an `-o'
2967	# argument, so we may need to know it at that point already.
2968	# Even if this section looks crufty: it has the advantage of
2969	# actually working.
2970	break;;
2971    * )
2972	break;;
2973  esac
2974done
2975test "$ac_cv_exeext" = no && ac_cv_exeext=
2976
2977else
2978  ac_file=''
2979fi
2980
2981{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2982$as_echo "$ac_file" >&6; }
2983if test -z "$ac_file"; then
2984  $as_echo "$as_me: failed program was:" >&5
2985sed 's/^/| /' conftest.$ac_ext >&5
2986
2987{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2988See \`config.log' for more details." >&5
2989$as_echo "$as_me: error: C compiler cannot create executables
2990See \`config.log' for more details." >&2;}
2991   { (exit 77); exit 77; }; }
2992fi
2993
2994ac_exeext=$ac_cv_exeext
2995
2996# Check that the compiler produces executables we can run.  If not, either
2997# the compiler is broken, or we cross compile.
2998{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2999$as_echo_n "checking whether the C compiler works... " >&6; }
3000# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3001# If not cross compiling, check that we can run a simple program.
3002if test "$cross_compiling" != yes; then
3003  if { ac_try='./$ac_file'
3004  { (case "(($ac_try" in
3005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006  *) ac_try_echo=$ac_try;;
3007esac
3008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3009$as_echo "$ac_try_echo") >&5
3010  (eval "$ac_try") 2>&5
3011  ac_status=$?
3012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); }; }; then
3014    cross_compiling=no
3015  else
3016    if test "$cross_compiling" = maybe; then
3017	cross_compiling=yes
3018    else
3019	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3020If you meant to cross compile, use \`--host'.
3021See \`config.log' for more details." >&5
3022$as_echo "$as_me: error: cannot run C compiled programs.
3023If you meant to cross compile, use \`--host'.
3024See \`config.log' for more details." >&2;}
3025   { (exit 1); exit 1; }; }
3026    fi
3027  fi
3028fi
3029{ $as_echo "$as_me:$LINENO: result: yes" >&5
3030$as_echo "yes" >&6; }
3031
3032rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3033ac_clean_files=$ac_clean_files_save
3034# Check that the compiler produces executables we can run.  If not, either
3035# the compiler is broken, or we cross compile.
3036{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3037$as_echo_n "checking whether we are cross compiling... " >&6; }
3038{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3039$as_echo "$cross_compiling" >&6; }
3040
3041{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3042$as_echo_n "checking for suffix of executables... " >&6; }
3043if { (ac_try="$ac_link"
3044case "(($ac_try" in
3045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046  *) ac_try_echo=$ac_try;;
3047esac
3048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049$as_echo "$ac_try_echo") >&5
3050  (eval "$ac_link") 2>&5
3051  ac_status=$?
3052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; then
3054  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3055# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3056# work properly (i.e., refer to `conftest.exe'), while it won't with
3057# `rm'.
3058for ac_file in conftest.exe conftest conftest.*; do
3059  test -f "$ac_file" || continue
3060  case $ac_file in
3061    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3062    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3063	  break;;
3064    * ) break;;
3065  esac
3066done
3067else
3068  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3069See \`config.log' for more details." >&5
3070$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3071See \`config.log' for more details." >&2;}
3072   { (exit 1); exit 1; }; }
3073fi
3074
3075rm -f conftest$ac_cv_exeext
3076{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3077$as_echo "$ac_cv_exeext" >&6; }
3078
3079rm -f conftest.$ac_ext
3080EXEEXT=$ac_cv_exeext
3081ac_exeext=$EXEEXT
3082{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3083$as_echo_n "checking for suffix of object files... " >&6; }
3084if test "${ac_cv_objext+set}" = set; then
3085  $as_echo_n "(cached) " >&6
3086else
3087  cat >conftest.$ac_ext <<_ACEOF
3088/* confdefs.h.  */
3089_ACEOF
3090cat confdefs.h >>conftest.$ac_ext
3091cat >>conftest.$ac_ext <<_ACEOF
3092/* end confdefs.h.  */
3093
3094int
3095main ()
3096{
3097
3098  ;
3099  return 0;
3100}
3101_ACEOF
3102rm -f conftest.o conftest.obj
3103if { (ac_try="$ac_compile"
3104case "(($ac_try" in
3105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106  *) ac_try_echo=$ac_try;;
3107esac
3108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3109$as_echo "$ac_try_echo") >&5
3110  (eval "$ac_compile") 2>&5
3111  ac_status=$?
3112  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); }; then
3114  for ac_file in conftest.o conftest.obj conftest.*; do
3115  test -f "$ac_file" || continue;
3116  case $ac_file in
3117    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3118    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3119       break;;
3120  esac
3121done
3122else
3123  $as_echo "$as_me: failed program was:" >&5
3124sed 's/^/| /' conftest.$ac_ext >&5
3125
3126{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127See \`config.log' for more details." >&5
3128$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129See \`config.log' for more details." >&2;}
3130   { (exit 1); exit 1; }; }
3131fi
3132
3133rm -f conftest.$ac_cv_objext conftest.$ac_ext
3134fi
3135{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136$as_echo "$ac_cv_objext" >&6; }
3137OBJEXT=$ac_cv_objext
3138ac_objext=$OBJEXT
3139{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142  $as_echo_n "(cached) " >&6
3143else
3144  cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h.  */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h.  */
3150
3151int
3152main ()
3153{
3154#ifndef __GNUC__
3155       choke me
3156#endif
3157
3158  ;
3159  return 0;
3160}
3161_ACEOF
3162rm -f conftest.$ac_objext
3163if { (ac_try="$ac_compile"
3164case "(($ac_try" in
3165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166  *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169$as_echo "$ac_try_echo") >&5
3170  (eval "$ac_compile") 2>conftest.er1
3171  ac_status=$?
3172  grep -v '^ *+' conftest.er1 >conftest.err
3173  rm -f conftest.er1
3174  cat conftest.err >&5
3175  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176  (exit $ac_status); } && {
3177	 test -z "$ac_c_werror_flag" ||
3178	 test ! -s conftest.err
3179       } && test -s conftest.$ac_objext; then
3180  ac_compiler_gnu=yes
3181else
3182  $as_echo "$as_me: failed program was:" >&5
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
3185	ac_compiler_gnu=no
3186fi
3187
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190
3191fi
3192{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194if test $ac_compiler_gnu = yes; then
3195  GCC=yes
3196else
3197  GCC=
3198fi
3199ac_test_CFLAGS=${CFLAGS+set}
3200ac_save_CFLAGS=$CFLAGS
3201{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202$as_echo_n "checking whether $CC accepts -g... " >&6; }
3203if test "${ac_cv_prog_cc_g+set}" = set; then
3204  $as_echo_n "(cached) " >&6
3205else
3206  ac_save_c_werror_flag=$ac_c_werror_flag
3207   ac_c_werror_flag=yes
3208   ac_cv_prog_cc_g=no
3209   CFLAGS="-g"
3210   cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h.  */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h.  */
3216
3217int
3218main ()
3219{
3220
3221  ;
3222  return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
3226if { (ac_try="$ac_compile"
3227case "(($ac_try" in
3228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229  *) ac_try_echo=$ac_try;;
3230esac
3231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232$as_echo "$ac_try_echo") >&5
3233  (eval "$ac_compile") 2>conftest.er1
3234  ac_status=$?
3235  grep -v '^ *+' conftest.er1 >conftest.err
3236  rm -f conftest.er1
3237  cat conftest.err >&5
3238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239  (exit $ac_status); } && {
3240	 test -z "$ac_c_werror_flag" ||
3241	 test ! -s conftest.err
3242       } && test -s conftest.$ac_objext; then
3243  ac_cv_prog_cc_g=yes
3244else
3245  $as_echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248	CFLAGS=""
3249      cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h.  */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h.  */
3255
3256int
3257main ()
3258{
3259
3260  ;
3261  return 0;
3262}
3263_ACEOF
3264rm -f conftest.$ac_objext
3265if { (ac_try="$ac_compile"
3266case "(($ac_try" in
3267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268  *) ac_try_echo=$ac_try;;
3269esac
3270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271$as_echo "$ac_try_echo") >&5
3272  (eval "$ac_compile") 2>conftest.er1
3273  ac_status=$?
3274  grep -v '^ *+' conftest.er1 >conftest.err
3275  rm -f conftest.er1
3276  cat conftest.err >&5
3277  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278  (exit $ac_status); } && {
3279	 test -z "$ac_c_werror_flag" ||
3280	 test ! -s conftest.err
3281       } && test -s conftest.$ac_objext; then
3282  :
3283else
3284  $as_echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287	ac_c_werror_flag=$ac_save_c_werror_flag
3288	 CFLAGS="-g"
3289	 cat >conftest.$ac_ext <<_ACEOF
3290/* confdefs.h.  */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h.  */
3295
3296int
3297main ()
3298{
3299
3300  ;
3301  return 0;
3302}
3303_ACEOF
3304rm -f conftest.$ac_objext
3305if { (ac_try="$ac_compile"
3306case "(($ac_try" in
3307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308  *) ac_try_echo=$ac_try;;
3309esac
3310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311$as_echo "$ac_try_echo") >&5
3312  (eval "$ac_compile") 2>conftest.er1
3313  ac_status=$?
3314  grep -v '^ *+' conftest.er1 >conftest.err
3315  rm -f conftest.er1
3316  cat conftest.err >&5
3317  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318  (exit $ac_status); } && {
3319	 test -z "$ac_c_werror_flag" ||
3320	 test ! -s conftest.err
3321       } && test -s conftest.$ac_objext; then
3322  ac_cv_prog_cc_g=yes
3323else
3324  $as_echo "$as_me: failed program was:" >&5
3325sed 's/^/| /' conftest.$ac_ext >&5
3326
3327
3328fi
3329
3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331fi
3332
3333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334fi
3335
3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337   ac_c_werror_flag=$ac_save_c_werror_flag
3338fi
3339{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3340$as_echo "$ac_cv_prog_cc_g" >&6; }
3341if test "$ac_test_CFLAGS" = set; then
3342  CFLAGS=$ac_save_CFLAGS
3343elif test $ac_cv_prog_cc_g = yes; then
3344  if test "$GCC" = yes; then
3345    CFLAGS="-g -O2"
3346  else
3347    CFLAGS="-g"
3348  fi
3349else
3350  if test "$GCC" = yes; then
3351    CFLAGS="-O2"
3352  else
3353    CFLAGS=
3354  fi
3355fi
3356{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3357$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3358if test "${ac_cv_prog_cc_c89+set}" = set; then
3359  $as_echo_n "(cached) " >&6
3360else
3361  ac_cv_prog_cc_c89=no
3362ac_save_CC=$CC
3363cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h.  */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h.  */
3369#include <stdarg.h>
3370#include <stdio.h>
3371#include <sys/types.h>
3372#include <sys/stat.h>
3373/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3374struct buf { int x; };
3375FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376static char *e (p, i)
3377     char **p;
3378     int i;
3379{
3380  return p[i];
3381}
3382static char *f (char * (*g) (char **, int), char **p, ...)
3383{
3384  char *s;
3385  va_list v;
3386  va_start (v,p);
3387  s = g (p, va_arg (v,int));
3388  va_end (v);
3389  return s;
3390}
3391
3392/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3393   function prototypes and stuff, but not '\xHH' hex character constants.
3394   These don't provoke an error unfortunately, instead are silently treated
3395   as 'x'.  The following induces an error, until -std is added to get
3396   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3397   array size at least.  It's necessary to write '\x00'==0 to get something
3398   that's true only with -std.  */
3399int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400
3401/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402   inside strings and character constants.  */
3403#define FOO(x) 'x'
3404int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405
3406int test (int i, double x);
3407struct s1 {int (*f) (int a);};
3408struct s2 {int (*f) (double a);};
3409int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410int argc;
3411char **argv;
3412int
3413main ()
3414{
3415return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422do
3423  CC="$ac_save_CC $ac_arg"
3424  rm -f conftest.$ac_objext
3425if { (ac_try="$ac_compile"
3426case "(($ac_try" in
3427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428  *) ac_try_echo=$ac_try;;
3429esac
3430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431$as_echo "$ac_try_echo") >&5
3432  (eval "$ac_compile") 2>conftest.er1
3433  ac_status=$?
3434  grep -v '^ *+' conftest.er1 >conftest.err
3435  rm -f conftest.er1
3436  cat conftest.err >&5
3437  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438  (exit $ac_status); } && {
3439	 test -z "$ac_c_werror_flag" ||
3440	 test ! -s conftest.err
3441       } && test -s conftest.$ac_objext; then
3442  ac_cv_prog_cc_c89=$ac_arg
3443else
3444  $as_echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
3447
3448fi
3449
3450rm -f core conftest.err conftest.$ac_objext
3451  test "x$ac_cv_prog_cc_c89" != "xno" && break
3452done
3453rm -f conftest.$ac_ext
3454CC=$ac_save_CC
3455
3456fi
3457# AC_CACHE_VAL
3458case "x$ac_cv_prog_cc_c89" in
3459  x)
3460    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3461$as_echo "none needed" >&6; } ;;
3462  xno)
3463    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3464$as_echo "unsupported" >&6; } ;;
3465  *)
3466    CC="$CC $ac_cv_prog_cc_c89"
3467    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3468$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3469esac
3470
3471
3472ac_ext=c
3473ac_cpp='$CPP $CPPFLAGS'
3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
3478if test "x$CC" != xcc; then
3479  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3480$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3481else
3482  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3483$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3484fi
3485set dummy $CC; ac_cc=`$as_echo "$2" |
3486		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3487if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3488  $as_echo_n "(cached) " >&6
3489else
3490  cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h.  */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h.  */
3496
3497int
3498main ()
3499{
3500
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505# Make sure it works both with $CC and with simple cc.
3506# We do the test twice because some compilers refuse to overwrite an
3507# existing .o file with -o, though they will create one.
3508ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3509rm -f conftest2.*
3510if { (case "(($ac_try" in
3511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512  *) ac_try_echo=$ac_try;;
3513esac
3514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3515$as_echo "$ac_try_echo") >&5
3516  (eval "$ac_try") 2>&5
3517  ac_status=$?
3518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519  (exit $ac_status); } &&
3520   test -f conftest2.$ac_objext && { (case "(($ac_try" in
3521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522  *) ac_try_echo=$ac_try;;
3523esac
3524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525$as_echo "$ac_try_echo") >&5
3526  (eval "$ac_try") 2>&5
3527  ac_status=$?
3528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); };
3530then
3531  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3532  if test "x$CC" != xcc; then
3533    # Test first that cc exists at all.
3534    if { ac_try='cc -c conftest.$ac_ext >&5'
3535  { (case "(($ac_try" in
3536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537  *) ac_try_echo=$ac_try;;
3538esac
3539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540$as_echo "$ac_try_echo") >&5
3541  (eval "$ac_try") 2>&5
3542  ac_status=$?
3543  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); }; }; then
3545      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3546      rm -f conftest2.*
3547      if { (case "(($ac_try" in
3548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549  *) ac_try_echo=$ac_try;;
3550esac
3551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3552$as_echo "$ac_try_echo") >&5
3553  (eval "$ac_try") 2>&5
3554  ac_status=$?
3555  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); } &&
3557	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559  *) ac_try_echo=$ac_try;;
3560esac
3561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3562$as_echo "$ac_try_echo") >&5
3563  (eval "$ac_try") 2>&5
3564  ac_status=$?
3565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566  (exit $ac_status); };
3567      then
3568	# cc works too.
3569	:
3570      else
3571	# cc exists but doesn't like -o.
3572	eval ac_cv_prog_cc_${ac_cc}_c_o=no
3573      fi
3574    fi
3575  fi
3576else
3577  eval ac_cv_prog_cc_${ac_cc}_c_o=no
3578fi
3579rm -f core conftest*
3580
3581fi
3582if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3583  { $as_echo "$as_me:$LINENO: result: yes" >&5
3584$as_echo "yes" >&6; }
3585else
3586  { $as_echo "$as_me:$LINENO: result: no" >&5
3587$as_echo "no" >&6; }
3588
3589cat >>confdefs.h <<\_ACEOF
3590#define NO_MINUS_C_MINUS_O 1
3591_ACEOF
3592
3593fi
3594
3595# expand $ac_aux_dir to an absolute path
3596am_aux_dir=`cd $ac_aux_dir && pwd`
3597
3598# FIXME: we rely on the cache variable name because
3599# there is no other way.
3600set dummy $CC
3601ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3602if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3603   # Losing compiler, so override with the script.
3604   # FIXME: It is wrong to rewrite CC.
3605   # But if we don't then we get into trouble of one sort or another.
3606   # A longer-term fix would be to have automake use am__CC in this case,
3607   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3608   CC="$am_aux_dir/compile $CC"
3609fi
3610
3611# autoconf is lame and doesn't give us any substitution variable for this.
3612if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3613  NO_MINUS_C_MINUS_O=yes
3614else
3615  OUTPUT_OPTION='-o $@'
3616fi
3617
3618
3619
3620# -------------------------
3621# Check C compiler features
3622# -------------------------
3623
3624ac_ext=c
3625ac_cpp='$CPP $CPPFLAGS'
3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3630$as_echo_n "checking how to run the C preprocessor... " >&6; }
3631# On Suns, sometimes $CPP names a directory.
3632if test -n "$CPP" && test -d "$CPP"; then
3633  CPP=
3634fi
3635if test -z "$CPP"; then
3636  if test "${ac_cv_prog_CPP+set}" = set; then
3637  $as_echo_n "(cached) " >&6
3638else
3639      # Double quotes because CPP needs to be expanded
3640    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3641    do
3642      ac_preproc_ok=false
3643for ac_c_preproc_warn_flag in '' yes
3644do
3645  # Use a header file that comes with gcc, so configuring glibc
3646  # with a fresh cross-compiler works.
3647  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3648  # <limits.h> exists even on freestanding compilers.
3649  # On the NeXT, cc -E runs the code through the compiler's parser,
3650  # not just through cpp. "Syntax error" is here to catch this case.
3651  cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h.  */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h.  */
3657#ifdef __STDC__
3658# include <limits.h>
3659#else
3660# include <assert.h>
3661#endif
3662		     Syntax error
3663_ACEOF
3664if { (ac_try="$ac_cpp conftest.$ac_ext"
3665case "(($ac_try" in
3666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667  *) ac_try_echo=$ac_try;;
3668esac
3669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3670$as_echo "$ac_try_echo") >&5
3671  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3672  ac_status=$?
3673  grep -v '^ *+' conftest.er1 >conftest.err
3674  rm -f conftest.er1
3675  cat conftest.err >&5
3676  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677  (exit $ac_status); } >/dev/null && {
3678	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3679	 test ! -s conftest.err
3680       }; then
3681  :
3682else
3683  $as_echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
3686  # Broken: fails on valid input.
3687continue
3688fi
3689
3690rm -f conftest.err conftest.$ac_ext
3691
3692  # OK, works on sane cases.  Now check whether nonexistent headers
3693  # can be detected and how.
3694  cat >conftest.$ac_ext <<_ACEOF
3695/* confdefs.h.  */
3696_ACEOF
3697cat confdefs.h >>conftest.$ac_ext
3698cat >>conftest.$ac_ext <<_ACEOF
3699/* end confdefs.h.  */
3700#include <ac_nonexistent.h>
3701_ACEOF
3702if { (ac_try="$ac_cpp conftest.$ac_ext"
3703case "(($ac_try" in
3704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705  *) ac_try_echo=$ac_try;;
3706esac
3707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708$as_echo "$ac_try_echo") >&5
3709  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3710  ac_status=$?
3711  grep -v '^ *+' conftest.er1 >conftest.err
3712  rm -f conftest.er1
3713  cat conftest.err >&5
3714  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); } >/dev/null && {
3716	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3717	 test ! -s conftest.err
3718       }; then
3719  # Broken: success on invalid input.
3720continue
3721else
3722  $as_echo "$as_me: failed program was:" >&5
3723sed 's/^/| /' conftest.$ac_ext >&5
3724
3725  # Passes both tests.
3726ac_preproc_ok=:
3727break
3728fi
3729
3730rm -f conftest.err conftest.$ac_ext
3731
3732done
3733# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3734rm -f conftest.err conftest.$ac_ext
3735if $ac_preproc_ok; then
3736  break
3737fi
3738
3739    done
3740    ac_cv_prog_CPP=$CPP
3741
3742fi
3743  CPP=$ac_cv_prog_CPP
3744else
3745  ac_cv_prog_CPP=$CPP
3746fi
3747{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3748$as_echo "$CPP" >&6; }
3749ac_preproc_ok=false
3750for ac_c_preproc_warn_flag in '' yes
3751do
3752  # Use a header file that comes with gcc, so configuring glibc
3753  # with a fresh cross-compiler works.
3754  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755  # <limits.h> exists even on freestanding compilers.
3756  # On the NeXT, cc -E runs the code through the compiler's parser,
3757  # not just through cpp. "Syntax error" is here to catch this case.
3758  cat >conftest.$ac_ext <<_ACEOF
3759/* confdefs.h.  */
3760_ACEOF
3761cat confdefs.h >>conftest.$ac_ext
3762cat >>conftest.$ac_ext <<_ACEOF
3763/* end confdefs.h.  */
3764#ifdef __STDC__
3765# include <limits.h>
3766#else
3767# include <assert.h>
3768#endif
3769		     Syntax error
3770_ACEOF
3771if { (ac_try="$ac_cpp conftest.$ac_ext"
3772case "(($ac_try" in
3773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774  *) ac_try_echo=$ac_try;;
3775esac
3776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3777$as_echo "$ac_try_echo") >&5
3778  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3779  ac_status=$?
3780  grep -v '^ *+' conftest.er1 >conftest.err
3781  rm -f conftest.er1
3782  cat conftest.err >&5
3783  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); } >/dev/null && {
3785	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3786	 test ! -s conftest.err
3787       }; then
3788  :
3789else
3790  $as_echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793  # Broken: fails on valid input.
3794continue
3795fi
3796
3797rm -f conftest.err conftest.$ac_ext
3798
3799  # OK, works on sane cases.  Now check whether nonexistent headers
3800  # can be detected and how.
3801  cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h.  */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h.  */
3807#include <ac_nonexistent.h>
3808_ACEOF
3809if { (ac_try="$ac_cpp conftest.$ac_ext"
3810case "(($ac_try" in
3811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812  *) ac_try_echo=$ac_try;;
3813esac
3814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3815$as_echo "$ac_try_echo") >&5
3816  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3817  ac_status=$?
3818  grep -v '^ *+' conftest.er1 >conftest.err
3819  rm -f conftest.er1
3820  cat conftest.err >&5
3821  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822  (exit $ac_status); } >/dev/null && {
3823	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3824	 test ! -s conftest.err
3825       }; then
3826  # Broken: success on invalid input.
3827continue
3828else
3829  $as_echo "$as_me: failed program was:" >&5
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
3832  # Passes both tests.
3833ac_preproc_ok=:
3834break
3835fi
3836
3837rm -f conftest.err conftest.$ac_ext
3838
3839done
3840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841rm -f conftest.err conftest.$ac_ext
3842if $ac_preproc_ok; then
3843  :
3844else
3845  { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3846See \`config.log' for more details." >&5
3847$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3848See \`config.log' for more details." >&2;}
3849   { (exit 1); exit 1; }; }
3850fi
3851
3852ac_ext=c
3853ac_cpp='$CPP $CPPFLAGS'
3854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
3858
3859{ $as_echo "$as_me:$LINENO: checking for inline" >&5
3860$as_echo_n "checking for inline... " >&6; }
3861if test "${ac_cv_c_inline+set}" = set; then
3862  $as_echo_n "(cached) " >&6
3863else
3864  ac_cv_c_inline=no
3865for ac_kw in inline __inline__ __inline; do
3866  cat >conftest.$ac_ext <<_ACEOF
3867/* confdefs.h.  */
3868_ACEOF
3869cat confdefs.h >>conftest.$ac_ext
3870cat >>conftest.$ac_ext <<_ACEOF
3871/* end confdefs.h.  */
3872#ifndef __cplusplus
3873typedef int foo_t;
3874static $ac_kw foo_t static_foo () {return 0; }
3875$ac_kw foo_t foo () {return 0; }
3876#endif
3877
3878_ACEOF
3879rm -f conftest.$ac_objext
3880if { (ac_try="$ac_compile"
3881case "(($ac_try" in
3882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883  *) ac_try_echo=$ac_try;;
3884esac
3885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3886$as_echo "$ac_try_echo") >&5
3887  (eval "$ac_compile") 2>conftest.er1
3888  ac_status=$?
3889  grep -v '^ *+' conftest.er1 >conftest.err
3890  rm -f conftest.er1
3891  cat conftest.err >&5
3892  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); } && {
3894	 test -z "$ac_c_werror_flag" ||
3895	 test ! -s conftest.err
3896       } && test -s conftest.$ac_objext; then
3897  ac_cv_c_inline=$ac_kw
3898else
3899  $as_echo "$as_me: failed program was:" >&5
3900sed 's/^/| /' conftest.$ac_ext >&5
3901
3902
3903fi
3904
3905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906  test "$ac_cv_c_inline" != no && break
3907done
3908
3909fi
3910{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3911$as_echo "$ac_cv_c_inline" >&6; }
3912
3913
3914case $ac_cv_c_inline in
3915  inline | yes) ;;
3916  *)
3917    case $ac_cv_c_inline in
3918      no) ac_val=;;
3919      *) ac_val=$ac_cv_c_inline;;
3920    esac
3921    cat >>confdefs.h <<_ACEOF
3922#ifndef __cplusplus
3923#define inline $ac_val
3924#endif
3925_ACEOF
3926    ;;
3927esac
3928
3929
3930# sizeof(char) is 1 by definition.
3931
3932{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3933$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3934if test "${ac_cv_path_GREP+set}" = set; then
3935  $as_echo_n "(cached) " >&6
3936else
3937  if test -z "$GREP"; then
3938  ac_path_GREP_found=false
3939  # Loop through the user's path and test for each of PROGNAME-LIST
3940  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3942do
3943  IFS=$as_save_IFS
3944  test -z "$as_dir" && as_dir=.
3945  for ac_prog in grep ggrep; do
3946    for ac_exec_ext in '' $ac_executable_extensions; do
3947      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3948      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3949# Check for GNU ac_path_GREP and select it if it is found.
3950  # Check for GNU $ac_path_GREP
3951case `"$ac_path_GREP" --version 2>&1` in
3952*GNU*)
3953  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3954*)
3955  ac_count=0
3956  $as_echo_n 0123456789 >"conftest.in"
3957  while :
3958  do
3959    cat "conftest.in" "conftest.in" >"conftest.tmp"
3960    mv "conftest.tmp" "conftest.in"
3961    cp "conftest.in" "conftest.nl"
3962    $as_echo 'GREP' >> "conftest.nl"
3963    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965    ac_count=`expr $ac_count + 1`
3966    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967      # Best one so far, save it but keep looking for a better one
3968      ac_cv_path_GREP="$ac_path_GREP"
3969      ac_path_GREP_max=$ac_count
3970    fi
3971    # 10*(2^10) chars as input seems more than enough
3972    test $ac_count -gt 10 && break
3973  done
3974  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3975esac
3976
3977      $ac_path_GREP_found && break 3
3978    done
3979  done
3980done
3981IFS=$as_save_IFS
3982  if test -z "$ac_cv_path_GREP"; then
3983    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3984$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3985   { (exit 1); exit 1; }; }
3986  fi
3987else
3988  ac_cv_path_GREP=$GREP
3989fi
3990
3991fi
3992{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3993$as_echo "$ac_cv_path_GREP" >&6; }
3994 GREP="$ac_cv_path_GREP"
3995
3996
3997{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3998$as_echo_n "checking for egrep... " >&6; }
3999if test "${ac_cv_path_EGREP+set}" = set; then
4000  $as_echo_n "(cached) " >&6
4001else
4002  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4003   then ac_cv_path_EGREP="$GREP -E"
4004   else
4005     if test -z "$EGREP"; then
4006  ac_path_EGREP_found=false
4007  # Loop through the user's path and test for each of PROGNAME-LIST
4008  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4010do
4011  IFS=$as_save_IFS
4012  test -z "$as_dir" && as_dir=.
4013  for ac_prog in egrep; do
4014    for ac_exec_ext in '' $ac_executable_extensions; do
4015      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4016      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4017# Check for GNU ac_path_EGREP and select it if it is found.
4018  # Check for GNU $ac_path_EGREP
4019case `"$ac_path_EGREP" --version 2>&1` in
4020*GNU*)
4021  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4022*)
4023  ac_count=0
4024  $as_echo_n 0123456789 >"conftest.in"
4025  while :
4026  do
4027    cat "conftest.in" "conftest.in" >"conftest.tmp"
4028    mv "conftest.tmp" "conftest.in"
4029    cp "conftest.in" "conftest.nl"
4030    $as_echo 'EGREP' >> "conftest.nl"
4031    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4032    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4033    ac_count=`expr $ac_count + 1`
4034    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4035      # Best one so far, save it but keep looking for a better one
4036      ac_cv_path_EGREP="$ac_path_EGREP"
4037      ac_path_EGREP_max=$ac_count
4038    fi
4039    # 10*(2^10) chars as input seems more than enough
4040    test $ac_count -gt 10 && break
4041  done
4042  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043esac
4044
4045      $ac_path_EGREP_found && break 3
4046    done
4047  done
4048done
4049IFS=$as_save_IFS
4050  if test -z "$ac_cv_path_EGREP"; then
4051    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053   { (exit 1); exit 1; }; }
4054  fi
4055else
4056  ac_cv_path_EGREP=$EGREP
4057fi
4058
4059   fi
4060fi
4061{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4062$as_echo "$ac_cv_path_EGREP" >&6; }
4063 EGREP="$ac_cv_path_EGREP"
4064
4065
4066{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4067$as_echo_n "checking for ANSI C header files... " >&6; }
4068if test "${ac_cv_header_stdc+set}" = set; then
4069  $as_echo_n "(cached) " >&6
4070else
4071  cat >conftest.$ac_ext <<_ACEOF
4072/* confdefs.h.  */
4073_ACEOF
4074cat confdefs.h >>conftest.$ac_ext
4075cat >>conftest.$ac_ext <<_ACEOF
4076/* end confdefs.h.  */
4077#include <stdlib.h>
4078#include <stdarg.h>
4079#include <string.h>
4080#include <float.h>
4081
4082int
4083main ()
4084{
4085
4086  ;
4087  return 0;
4088}
4089_ACEOF
4090rm -f conftest.$ac_objext
4091if { (ac_try="$ac_compile"
4092case "(($ac_try" in
4093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094  *) ac_try_echo=$ac_try;;
4095esac
4096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097$as_echo "$ac_try_echo") >&5
4098  (eval "$ac_compile") 2>conftest.er1
4099  ac_status=$?
4100  grep -v '^ *+' conftest.er1 >conftest.err
4101  rm -f conftest.er1
4102  cat conftest.err >&5
4103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104  (exit $ac_status); } && {
4105	 test -z "$ac_c_werror_flag" ||
4106	 test ! -s conftest.err
4107       } && test -s conftest.$ac_objext; then
4108  ac_cv_header_stdc=yes
4109else
4110  $as_echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113	ac_cv_header_stdc=no
4114fi
4115
4116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117
4118if test $ac_cv_header_stdc = yes; then
4119  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4120  cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h.  */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h.  */
4126#include <string.h>
4127
4128_ACEOF
4129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130  $EGREP "memchr" >/dev/null 2>&1; then
4131  :
4132else
4133  ac_cv_header_stdc=no
4134fi
4135rm -f conftest*
4136
4137fi
4138
4139if test $ac_cv_header_stdc = yes; then
4140  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4141  cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h.  */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h.  */
4147#include <stdlib.h>
4148
4149_ACEOF
4150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151  $EGREP "free" >/dev/null 2>&1; then
4152  :
4153else
4154  ac_cv_header_stdc=no
4155fi
4156rm -f conftest*
4157
4158fi
4159
4160if test $ac_cv_header_stdc = yes; then
4161  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4162  if test "$cross_compiling" = yes; then
4163  :
4164else
4165  cat >conftest.$ac_ext <<_ACEOF
4166/* confdefs.h.  */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h.  */
4171#include <ctype.h>
4172#include <stdlib.h>
4173#if ((' ' & 0x0FF) == 0x020)
4174# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4175# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4176#else
4177# define ISLOWER(c) \
4178		   (('a' <= (c) && (c) <= 'i') \
4179		     || ('j' <= (c) && (c) <= 'r') \
4180		     || ('s' <= (c) && (c) <= 'z'))
4181# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4182#endif
4183
4184#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4185int
4186main ()
4187{
4188  int i;
4189  for (i = 0; i < 256; i++)
4190    if (XOR (islower (i), ISLOWER (i))
4191	|| toupper (i) != TOUPPER (i))
4192      return 2;
4193  return 0;
4194}
4195_ACEOF
4196rm -f conftest$ac_exeext
4197if { (ac_try="$ac_link"
4198case "(($ac_try" in
4199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200  *) ac_try_echo=$ac_try;;
4201esac
4202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4203$as_echo "$ac_try_echo") >&5
4204  (eval "$ac_link") 2>&5
4205  ac_status=$?
4206  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4208  { (case "(($ac_try" in
4209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210  *) ac_try_echo=$ac_try;;
4211esac
4212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4213$as_echo "$ac_try_echo") >&5
4214  (eval "$ac_try") 2>&5
4215  ac_status=$?
4216  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217  (exit $ac_status); }; }; then
4218  :
4219else
4220  $as_echo "$as_me: program exited with status $ac_status" >&5
4221$as_echo "$as_me: failed program was:" >&5
4222sed 's/^/| /' conftest.$ac_ext >&5
4223
4224( exit $ac_status )
4225ac_cv_header_stdc=no
4226fi
4227rm -rf conftest.dSYM
4228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4229fi
4230
4231
4232fi
4233fi
4234{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4235$as_echo "$ac_cv_header_stdc" >&6; }
4236if test $ac_cv_header_stdc = yes; then
4237
4238cat >>confdefs.h <<\_ACEOF
4239#define STDC_HEADERS 1
4240_ACEOF
4241
4242fi
4243
4244# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255		  inttypes.h stdint.h unistd.h
4256do
4257as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4259$as_echo_n "checking for $ac_header... " >&6; }
4260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4261  $as_echo_n "(cached) " >&6
4262else
4263  cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h.  */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h.  */
4269$ac_includes_default
4270
4271#include <$ac_header>
4272_ACEOF
4273rm -f conftest.$ac_objext
4274if { (ac_try="$ac_compile"
4275case "(($ac_try" in
4276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277  *) ac_try_echo=$ac_try;;
4278esac
4279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4280$as_echo "$ac_try_echo") >&5
4281  (eval "$ac_compile") 2>conftest.er1
4282  ac_status=$?
4283  grep -v '^ *+' conftest.er1 >conftest.err
4284  rm -f conftest.er1
4285  cat conftest.err >&5
4286  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287  (exit $ac_status); } && {
4288	 test -z "$ac_c_werror_flag" ||
4289	 test ! -s conftest.err
4290       } && test -s conftest.$ac_objext; then
4291  eval "$as_ac_Header=yes"
4292else
4293  $as_echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296	eval "$as_ac_Header=no"
4297fi
4298
4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300fi
4301ac_res=`eval 'as_val=${'$as_ac_Header'}
4302		 $as_echo "$as_val"'`
4303	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4304$as_echo "$ac_res" >&6; }
4305if test `eval 'as_val=${'$as_ac_Header'}
4306		 $as_echo "$as_val"'` = yes; then
4307  cat >>confdefs.h <<_ACEOF
4308#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4309_ACEOF
4310
4311fi
4312
4313done
4314
4315
4316# The cast to long int works around a bug in the HP C Compiler
4317# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4318# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4319# This bug is HP SR number 8606223364.
4320{ $as_echo "$as_me:$LINENO: checking size of void *" >&5
4321$as_echo_n "checking size of void *... " >&6; }
4322if test "${ac_cv_sizeof_void_p+set}" = set; then
4323  $as_echo_n "(cached) " >&6
4324else
4325  if test "$cross_compiling" = yes; then
4326  # Depending upon the size, compute the lo and hi bounds.
4327cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h.  */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h.  */
4333$ac_includes_default
4334int
4335main ()
4336{
4337static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
4338test_array [0] = 0
4339
4340  ;
4341  return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext
4345if { (ac_try="$ac_compile"
4346case "(($ac_try" in
4347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348  *) ac_try_echo=$ac_try;;
4349esac
4350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4351$as_echo "$ac_try_echo") >&5
4352  (eval "$ac_compile") 2>conftest.er1
4353  ac_status=$?
4354  grep -v '^ *+' conftest.er1 >conftest.err
4355  rm -f conftest.er1
4356  cat conftest.err >&5
4357  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358  (exit $ac_status); } && {
4359	 test -z "$ac_c_werror_flag" ||
4360	 test ! -s conftest.err
4361       } && test -s conftest.$ac_objext; then
4362  ac_lo=0 ac_mid=0
4363  while :; do
4364    cat >conftest.$ac_ext <<_ACEOF
4365/* confdefs.h.  */
4366_ACEOF
4367cat confdefs.h >>conftest.$ac_ext
4368cat >>conftest.$ac_ext <<_ACEOF
4369/* end confdefs.h.  */
4370$ac_includes_default
4371int
4372main ()
4373{
4374static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
4375test_array [0] = 0
4376
4377  ;
4378  return 0;
4379}
4380_ACEOF
4381rm -f conftest.$ac_objext
4382if { (ac_try="$ac_compile"
4383case "(($ac_try" in
4384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385  *) ac_try_echo=$ac_try;;
4386esac
4387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4388$as_echo "$ac_try_echo") >&5
4389  (eval "$ac_compile") 2>conftest.er1
4390  ac_status=$?
4391  grep -v '^ *+' conftest.er1 >conftest.err
4392  rm -f conftest.er1
4393  cat conftest.err >&5
4394  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395  (exit $ac_status); } && {
4396	 test -z "$ac_c_werror_flag" ||
4397	 test ! -s conftest.err
4398       } && test -s conftest.$ac_objext; then
4399  ac_hi=$ac_mid; break
4400else
4401  $as_echo "$as_me: failed program was:" >&5
4402sed 's/^/| /' conftest.$ac_ext >&5
4403
4404	ac_lo=`expr $ac_mid + 1`
4405			if test $ac_lo -le $ac_mid; then
4406			  ac_lo= ac_hi=
4407			  break
4408			fi
4409			ac_mid=`expr 2 '*' $ac_mid + 1`
4410fi
4411
4412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413  done
4414else
4415  $as_echo "$as_me: failed program was:" >&5
4416sed 's/^/| /' conftest.$ac_ext >&5
4417
4418	cat >conftest.$ac_ext <<_ACEOF
4419/* confdefs.h.  */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h.  */
4424$ac_includes_default
4425int
4426main ()
4427{
4428static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
4429test_array [0] = 0
4430
4431  ;
4432  return 0;
4433}
4434_ACEOF
4435rm -f conftest.$ac_objext
4436if { (ac_try="$ac_compile"
4437case "(($ac_try" in
4438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439  *) ac_try_echo=$ac_try;;
4440esac
4441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4442$as_echo "$ac_try_echo") >&5
4443  (eval "$ac_compile") 2>conftest.er1
4444  ac_status=$?
4445  grep -v '^ *+' conftest.er1 >conftest.err
4446  rm -f conftest.er1
4447  cat conftest.err >&5
4448  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449  (exit $ac_status); } && {
4450	 test -z "$ac_c_werror_flag" ||
4451	 test ! -s conftest.err
4452       } && test -s conftest.$ac_objext; then
4453  ac_hi=-1 ac_mid=-1
4454  while :; do
4455    cat >conftest.$ac_ext <<_ACEOF
4456/* confdefs.h.  */
4457_ACEOF
4458cat confdefs.h >>conftest.$ac_ext
4459cat >>conftest.$ac_ext <<_ACEOF
4460/* end confdefs.h.  */
4461$ac_includes_default
4462int
4463main ()
4464{
4465static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
4466test_array [0] = 0
4467
4468  ;
4469  return 0;
4470}
4471_ACEOF
4472rm -f conftest.$ac_objext
4473if { (ac_try="$ac_compile"
4474case "(($ac_try" in
4475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476  *) ac_try_echo=$ac_try;;
4477esac
4478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4479$as_echo "$ac_try_echo") >&5
4480  (eval "$ac_compile") 2>conftest.er1
4481  ac_status=$?
4482  grep -v '^ *+' conftest.er1 >conftest.err
4483  rm -f conftest.er1
4484  cat conftest.err >&5
4485  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486  (exit $ac_status); } && {
4487	 test -z "$ac_c_werror_flag" ||
4488	 test ! -s conftest.err
4489       } && test -s conftest.$ac_objext; then
4490  ac_lo=$ac_mid; break
4491else
4492  $as_echo "$as_me: failed program was:" >&5
4493sed 's/^/| /' conftest.$ac_ext >&5
4494
4495	ac_hi=`expr '(' $ac_mid ')' - 1`
4496			if test $ac_mid -le $ac_hi; then
4497			  ac_lo= ac_hi=
4498			  break
4499			fi
4500			ac_mid=`expr 2 '*' $ac_mid`
4501fi
4502
4503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504  done
4505else
4506  $as_echo "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
4509	ac_lo= ac_hi=
4510fi
4511
4512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513fi
4514
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516# Binary search between lo and hi bounds.
4517while test "x$ac_lo" != "x$ac_hi"; do
4518  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4519  cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h.  */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h.  */
4525$ac_includes_default
4526int
4527main ()
4528{
4529static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
4530test_array [0] = 0
4531
4532  ;
4533  return 0;
4534}
4535_ACEOF
4536rm -f conftest.$ac_objext
4537if { (ac_try="$ac_compile"
4538case "(($ac_try" in
4539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540  *) ac_try_echo=$ac_try;;
4541esac
4542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4543$as_echo "$ac_try_echo") >&5
4544  (eval "$ac_compile") 2>conftest.er1
4545  ac_status=$?
4546  grep -v '^ *+' conftest.er1 >conftest.err
4547  rm -f conftest.er1
4548  cat conftest.err >&5
4549  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); } && {
4551	 test -z "$ac_c_werror_flag" ||
4552	 test ! -s conftest.err
4553       } && test -s conftest.$ac_objext; then
4554  ac_hi=$ac_mid
4555else
4556  $as_echo "$as_me: failed program was:" >&5
4557sed 's/^/| /' conftest.$ac_ext >&5
4558
4559	ac_lo=`expr '(' $ac_mid ')' + 1`
4560fi
4561
4562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563done
4564case $ac_lo in
4565?*) ac_cv_sizeof_void_p=$ac_lo;;
4566'') if test "$ac_cv_type_void_p" = yes; then
4567     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4568See \`config.log' for more details." >&5
4569$as_echo "$as_me: error: cannot compute sizeof (void *)
4570See \`config.log' for more details." >&2;}
4571   { (exit 77); exit 77; }; }
4572   else
4573     ac_cv_sizeof_void_p=0
4574   fi ;;
4575esac
4576else
4577  cat >conftest.$ac_ext <<_ACEOF
4578/* confdefs.h.  */
4579_ACEOF
4580cat confdefs.h >>conftest.$ac_ext
4581cat >>conftest.$ac_ext <<_ACEOF
4582/* end confdefs.h.  */
4583$ac_includes_default
4584static long int longval () { return (long int) (sizeof (void *)); }
4585static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
4586#include <stdio.h>
4587#include <stdlib.h>
4588int
4589main ()
4590{
4591
4592  FILE *f = fopen ("conftest.val", "w");
4593  if (! f)
4594    return 1;
4595  if (((long int) (sizeof (void *))) < 0)
4596    {
4597      long int i = longval ();
4598      if (i != ((long int) (sizeof (void *))))
4599	return 1;
4600      fprintf (f, "%ld", i);
4601    }
4602  else
4603    {
4604      unsigned long int i = ulongval ();
4605      if (i != ((long int) (sizeof (void *))))
4606	return 1;
4607      fprintf (f, "%lu", i);
4608    }
4609  /* Do not output a trailing newline, as this causes \r\n confusion
4610     on some platforms.  */
4611  return ferror (f) || fclose (f) != 0;
4612
4613  ;
4614  return 0;
4615}
4616_ACEOF
4617rm -f conftest$ac_exeext
4618if { (ac_try="$ac_link"
4619case "(($ac_try" in
4620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621  *) ac_try_echo=$ac_try;;
4622esac
4623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4624$as_echo "$ac_try_echo") >&5
4625  (eval "$ac_link") 2>&5
4626  ac_status=$?
4627  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4629  { (case "(($ac_try" in
4630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631  *) ac_try_echo=$ac_try;;
4632esac
4633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634$as_echo "$ac_try_echo") >&5
4635  (eval "$ac_try") 2>&5
4636  ac_status=$?
4637  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638  (exit $ac_status); }; }; then
4639  ac_cv_sizeof_void_p=`cat conftest.val`
4640else
4641  $as_echo "$as_me: program exited with status $ac_status" >&5
4642$as_echo "$as_me: failed program was:" >&5
4643sed 's/^/| /' conftest.$ac_ext >&5
4644
4645( exit $ac_status )
4646if test "$ac_cv_type_void_p" = yes; then
4647     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4648See \`config.log' for more details." >&5
4649$as_echo "$as_me: error: cannot compute sizeof (void *)
4650See \`config.log' for more details." >&2;}
4651   { (exit 77); exit 77; }; }
4652   else
4653     ac_cv_sizeof_void_p=0
4654   fi
4655fi
4656rm -rf conftest.dSYM
4657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4658fi
4659rm -f conftest.val
4660fi
4661{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4662$as_echo "$ac_cv_sizeof_void_p" >&6; }
4663
4664
4665
4666cat >>confdefs.h <<_ACEOF
4667#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4668_ACEOF
4669
4670
4671# The cast to long int works around a bug in the HP C Compiler
4672# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4673# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4674# This bug is HP SR number 8606223364.
4675{ $as_echo "$as_me:$LINENO: checking size of short" >&5
4676$as_echo_n "checking size of short... " >&6; }
4677if test "${ac_cv_sizeof_short+set}" = set; then
4678  $as_echo_n "(cached) " >&6
4679else
4680  if test "$cross_compiling" = yes; then
4681  # Depending upon the size, compute the lo and hi bounds.
4682cat >conftest.$ac_ext <<_ACEOF
4683/* confdefs.h.  */
4684_ACEOF
4685cat confdefs.h >>conftest.$ac_ext
4686cat >>conftest.$ac_ext <<_ACEOF
4687/* end confdefs.h.  */
4688$ac_includes_default
4689int
4690main ()
4691{
4692static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
4693test_array [0] = 0
4694
4695  ;
4696  return 0;
4697}
4698_ACEOF
4699rm -f conftest.$ac_objext
4700if { (ac_try="$ac_compile"
4701case "(($ac_try" in
4702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703  *) ac_try_echo=$ac_try;;
4704esac
4705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706$as_echo "$ac_try_echo") >&5
4707  (eval "$ac_compile") 2>conftest.er1
4708  ac_status=$?
4709  grep -v '^ *+' conftest.er1 >conftest.err
4710  rm -f conftest.er1
4711  cat conftest.err >&5
4712  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713  (exit $ac_status); } && {
4714	 test -z "$ac_c_werror_flag" ||
4715	 test ! -s conftest.err
4716       } && test -s conftest.$ac_objext; then
4717  ac_lo=0 ac_mid=0
4718  while :; do
4719    cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h.  */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h.  */
4725$ac_includes_default
4726int
4727main ()
4728{
4729static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
4730test_array [0] = 0
4731
4732  ;
4733  return 0;
4734}
4735_ACEOF
4736rm -f conftest.$ac_objext
4737if { (ac_try="$ac_compile"
4738case "(($ac_try" in
4739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740  *) ac_try_echo=$ac_try;;
4741esac
4742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4743$as_echo "$ac_try_echo") >&5
4744  (eval "$ac_compile") 2>conftest.er1
4745  ac_status=$?
4746  grep -v '^ *+' conftest.er1 >conftest.err
4747  rm -f conftest.er1
4748  cat conftest.err >&5
4749  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750  (exit $ac_status); } && {
4751	 test -z "$ac_c_werror_flag" ||
4752	 test ! -s conftest.err
4753       } && test -s conftest.$ac_objext; then
4754  ac_hi=$ac_mid; break
4755else
4756  $as_echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759	ac_lo=`expr $ac_mid + 1`
4760			if test $ac_lo -le $ac_mid; then
4761			  ac_lo= ac_hi=
4762			  break
4763			fi
4764			ac_mid=`expr 2 '*' $ac_mid + 1`
4765fi
4766
4767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768  done
4769else
4770  $as_echo "$as_me: failed program was:" >&5
4771sed 's/^/| /' conftest.$ac_ext >&5
4772
4773	cat >conftest.$ac_ext <<_ACEOF
4774/* confdefs.h.  */
4775_ACEOF
4776cat confdefs.h >>conftest.$ac_ext
4777cat >>conftest.$ac_ext <<_ACEOF
4778/* end confdefs.h.  */
4779$ac_includes_default
4780int
4781main ()
4782{
4783static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
4784test_array [0] = 0
4785
4786  ;
4787  return 0;
4788}
4789_ACEOF
4790rm -f conftest.$ac_objext
4791if { (ac_try="$ac_compile"
4792case "(($ac_try" in
4793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794  *) ac_try_echo=$ac_try;;
4795esac
4796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797$as_echo "$ac_try_echo") >&5
4798  (eval "$ac_compile") 2>conftest.er1
4799  ac_status=$?
4800  grep -v '^ *+' conftest.er1 >conftest.err
4801  rm -f conftest.er1
4802  cat conftest.err >&5
4803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); } && {
4805	 test -z "$ac_c_werror_flag" ||
4806	 test ! -s conftest.err
4807       } && test -s conftest.$ac_objext; then
4808  ac_hi=-1 ac_mid=-1
4809  while :; do
4810    cat >conftest.$ac_ext <<_ACEOF
4811/* confdefs.h.  */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h.  */
4816$ac_includes_default
4817int
4818main ()
4819{
4820static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
4821test_array [0] = 0
4822
4823  ;
4824  return 0;
4825}
4826_ACEOF
4827rm -f conftest.$ac_objext
4828if { (ac_try="$ac_compile"
4829case "(($ac_try" in
4830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831  *) ac_try_echo=$ac_try;;
4832esac
4833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4834$as_echo "$ac_try_echo") >&5
4835  (eval "$ac_compile") 2>conftest.er1
4836  ac_status=$?
4837  grep -v '^ *+' conftest.er1 >conftest.err
4838  rm -f conftest.er1
4839  cat conftest.err >&5
4840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841  (exit $ac_status); } && {
4842	 test -z "$ac_c_werror_flag" ||
4843	 test ! -s conftest.err
4844       } && test -s conftest.$ac_objext; then
4845  ac_lo=$ac_mid; break
4846else
4847  $as_echo "$as_me: failed program was:" >&5
4848sed 's/^/| /' conftest.$ac_ext >&5
4849
4850	ac_hi=`expr '(' $ac_mid ')' - 1`
4851			if test $ac_mid -le $ac_hi; then
4852			  ac_lo= ac_hi=
4853			  break
4854			fi
4855			ac_mid=`expr 2 '*' $ac_mid`
4856fi
4857
4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859  done
4860else
4861  $as_echo "$as_me: failed program was:" >&5
4862sed 's/^/| /' conftest.$ac_ext >&5
4863
4864	ac_lo= ac_hi=
4865fi
4866
4867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868fi
4869
4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871# Binary search between lo and hi bounds.
4872while test "x$ac_lo" != "x$ac_hi"; do
4873  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4874  cat >conftest.$ac_ext <<_ACEOF
4875/* confdefs.h.  */
4876_ACEOF
4877cat confdefs.h >>conftest.$ac_ext
4878cat >>conftest.$ac_ext <<_ACEOF
4879/* end confdefs.h.  */
4880$ac_includes_default
4881int
4882main ()
4883{
4884static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
4885test_array [0] = 0
4886
4887  ;
4888  return 0;
4889}
4890_ACEOF
4891rm -f conftest.$ac_objext
4892if { (ac_try="$ac_compile"
4893case "(($ac_try" in
4894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895  *) ac_try_echo=$ac_try;;
4896esac
4897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898$as_echo "$ac_try_echo") >&5
4899  (eval "$ac_compile") 2>conftest.er1
4900  ac_status=$?
4901  grep -v '^ *+' conftest.er1 >conftest.err
4902  rm -f conftest.er1
4903  cat conftest.err >&5
4904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905  (exit $ac_status); } && {
4906	 test -z "$ac_c_werror_flag" ||
4907	 test ! -s conftest.err
4908       } && test -s conftest.$ac_objext; then
4909  ac_hi=$ac_mid
4910else
4911  $as_echo "$as_me: failed program was:" >&5
4912sed 's/^/| /' conftest.$ac_ext >&5
4913
4914	ac_lo=`expr '(' $ac_mid ')' + 1`
4915fi
4916
4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918done
4919case $ac_lo in
4920?*) ac_cv_sizeof_short=$ac_lo;;
4921'') if test "$ac_cv_type_short" = yes; then
4922     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4923See \`config.log' for more details." >&5
4924$as_echo "$as_me: error: cannot compute sizeof (short)
4925See \`config.log' for more details." >&2;}
4926   { (exit 77); exit 77; }; }
4927   else
4928     ac_cv_sizeof_short=0
4929   fi ;;
4930esac
4931else
4932  cat >conftest.$ac_ext <<_ACEOF
4933/* confdefs.h.  */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h.  */
4938$ac_includes_default
4939static long int longval () { return (long int) (sizeof (short)); }
4940static unsigned long int ulongval () { return (long int) (sizeof (short)); }
4941#include <stdio.h>
4942#include <stdlib.h>
4943int
4944main ()
4945{
4946
4947  FILE *f = fopen ("conftest.val", "w");
4948  if (! f)
4949    return 1;
4950  if (((long int) (sizeof (short))) < 0)
4951    {
4952      long int i = longval ();
4953      if (i != ((long int) (sizeof (short))))
4954	return 1;
4955      fprintf (f, "%ld", i);
4956    }
4957  else
4958    {
4959      unsigned long int i = ulongval ();
4960      if (i != ((long int) (sizeof (short))))
4961	return 1;
4962      fprintf (f, "%lu", i);
4963    }
4964  /* Do not output a trailing newline, as this causes \r\n confusion
4965     on some platforms.  */
4966  return ferror (f) || fclose (f) != 0;
4967
4968  ;
4969  return 0;
4970}
4971_ACEOF
4972rm -f conftest$ac_exeext
4973if { (ac_try="$ac_link"
4974case "(($ac_try" in
4975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976  *) ac_try_echo=$ac_try;;
4977esac
4978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4979$as_echo "$ac_try_echo") >&5
4980  (eval "$ac_link") 2>&5
4981  ac_status=$?
4982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4984  { (case "(($ac_try" in
4985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986  *) ac_try_echo=$ac_try;;
4987esac
4988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4989$as_echo "$ac_try_echo") >&5
4990  (eval "$ac_try") 2>&5
4991  ac_status=$?
4992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993  (exit $ac_status); }; }; then
4994  ac_cv_sizeof_short=`cat conftest.val`
4995else
4996  $as_echo "$as_me: program exited with status $ac_status" >&5
4997$as_echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000( exit $ac_status )
5001if test "$ac_cv_type_short" = yes; then
5002     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5003See \`config.log' for more details." >&5
5004$as_echo "$as_me: error: cannot compute sizeof (short)
5005See \`config.log' for more details." >&2;}
5006   { (exit 77); exit 77; }; }
5007   else
5008     ac_cv_sizeof_short=0
5009   fi
5010fi
5011rm -rf conftest.dSYM
5012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5013fi
5014rm -f conftest.val
5015fi
5016{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5017$as_echo "$ac_cv_sizeof_short" >&6; }
5018
5019
5020
5021cat >>confdefs.h <<_ACEOF
5022#define SIZEOF_SHORT $ac_cv_sizeof_short
5023_ACEOF
5024
5025
5026# The cast to long int works around a bug in the HP C Compiler
5027# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5028# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5029# This bug is HP SR number 8606223364.
5030{ $as_echo "$as_me:$LINENO: checking size of int" >&5
5031$as_echo_n "checking size of int... " >&6; }
5032if test "${ac_cv_sizeof_int+set}" = set; then
5033  $as_echo_n "(cached) " >&6
5034else
5035  if test "$cross_compiling" = yes; then
5036  # Depending upon the size, compute the lo and hi bounds.
5037cat >conftest.$ac_ext <<_ACEOF
5038/* confdefs.h.  */
5039_ACEOF
5040cat confdefs.h >>conftest.$ac_ext
5041cat >>conftest.$ac_ext <<_ACEOF
5042/* end confdefs.h.  */
5043$ac_includes_default
5044int
5045main ()
5046{
5047static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
5048test_array [0] = 0
5049
5050  ;
5051  return 0;
5052}
5053_ACEOF
5054rm -f conftest.$ac_objext
5055if { (ac_try="$ac_compile"
5056case "(($ac_try" in
5057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058  *) ac_try_echo=$ac_try;;
5059esac
5060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5061$as_echo "$ac_try_echo") >&5
5062  (eval "$ac_compile") 2>conftest.er1
5063  ac_status=$?
5064  grep -v '^ *+' conftest.er1 >conftest.err
5065  rm -f conftest.er1
5066  cat conftest.err >&5
5067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068  (exit $ac_status); } && {
5069	 test -z "$ac_c_werror_flag" ||
5070	 test ! -s conftest.err
5071       } && test -s conftest.$ac_objext; then
5072  ac_lo=0 ac_mid=0
5073  while :; do
5074    cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h.  */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h.  */
5080$ac_includes_default
5081int
5082main ()
5083{
5084static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5085test_array [0] = 0
5086
5087  ;
5088  return 0;
5089}
5090_ACEOF
5091rm -f conftest.$ac_objext
5092if { (ac_try="$ac_compile"
5093case "(($ac_try" in
5094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095  *) ac_try_echo=$ac_try;;
5096esac
5097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098$as_echo "$ac_try_echo") >&5
5099  (eval "$ac_compile") 2>conftest.er1
5100  ac_status=$?
5101  grep -v '^ *+' conftest.er1 >conftest.err
5102  rm -f conftest.er1
5103  cat conftest.err >&5
5104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); } && {
5106	 test -z "$ac_c_werror_flag" ||
5107	 test ! -s conftest.err
5108       } && test -s conftest.$ac_objext; then
5109  ac_hi=$ac_mid; break
5110else
5111  $as_echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
5114	ac_lo=`expr $ac_mid + 1`
5115			if test $ac_lo -le $ac_mid; then
5116			  ac_lo= ac_hi=
5117			  break
5118			fi
5119			ac_mid=`expr 2 '*' $ac_mid + 1`
5120fi
5121
5122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123  done
5124else
5125  $as_echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
5128	cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h.  */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h.  */
5134$ac_includes_default
5135int
5136main ()
5137{
5138static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
5139test_array [0] = 0
5140
5141  ;
5142  return 0;
5143}
5144_ACEOF
5145rm -f conftest.$ac_objext
5146if { (ac_try="$ac_compile"
5147case "(($ac_try" in
5148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149  *) ac_try_echo=$ac_try;;
5150esac
5151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5152$as_echo "$ac_try_echo") >&5
5153  (eval "$ac_compile") 2>conftest.er1
5154  ac_status=$?
5155  grep -v '^ *+' conftest.er1 >conftest.err
5156  rm -f conftest.er1
5157  cat conftest.err >&5
5158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159  (exit $ac_status); } && {
5160	 test -z "$ac_c_werror_flag" ||
5161	 test ! -s conftest.err
5162       } && test -s conftest.$ac_objext; then
5163  ac_hi=-1 ac_mid=-1
5164  while :; do
5165    cat >conftest.$ac_ext <<_ACEOF
5166/* confdefs.h.  */
5167_ACEOF
5168cat confdefs.h >>conftest.$ac_ext
5169cat >>conftest.$ac_ext <<_ACEOF
5170/* end confdefs.h.  */
5171$ac_includes_default
5172int
5173main ()
5174{
5175static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
5176test_array [0] = 0
5177
5178  ;
5179  return 0;
5180}
5181_ACEOF
5182rm -f conftest.$ac_objext
5183if { (ac_try="$ac_compile"
5184case "(($ac_try" in
5185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186  *) ac_try_echo=$ac_try;;
5187esac
5188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189$as_echo "$ac_try_echo") >&5
5190  (eval "$ac_compile") 2>conftest.er1
5191  ac_status=$?
5192  grep -v '^ *+' conftest.er1 >conftest.err
5193  rm -f conftest.er1
5194  cat conftest.err >&5
5195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196  (exit $ac_status); } && {
5197	 test -z "$ac_c_werror_flag" ||
5198	 test ! -s conftest.err
5199       } && test -s conftest.$ac_objext; then
5200  ac_lo=$ac_mid; break
5201else
5202  $as_echo "$as_me: failed program was:" >&5
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
5205	ac_hi=`expr '(' $ac_mid ')' - 1`
5206			if test $ac_mid -le $ac_hi; then
5207			  ac_lo= ac_hi=
5208			  break
5209			fi
5210			ac_mid=`expr 2 '*' $ac_mid`
5211fi
5212
5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214  done
5215else
5216  $as_echo "$as_me: failed program was:" >&5
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
5219	ac_lo= ac_hi=
5220fi
5221
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223fi
5224
5225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226# Binary search between lo and hi bounds.
5227while test "x$ac_lo" != "x$ac_hi"; do
5228  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5229  cat >conftest.$ac_ext <<_ACEOF
5230/* confdefs.h.  */
5231_ACEOF
5232cat confdefs.h >>conftest.$ac_ext
5233cat >>conftest.$ac_ext <<_ACEOF
5234/* end confdefs.h.  */
5235$ac_includes_default
5236int
5237main ()
5238{
5239static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5240test_array [0] = 0
5241
5242  ;
5243  return 0;
5244}
5245_ACEOF
5246rm -f conftest.$ac_objext
5247if { (ac_try="$ac_compile"
5248case "(($ac_try" in
5249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250  *) ac_try_echo=$ac_try;;
5251esac
5252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5253$as_echo "$ac_try_echo") >&5
5254  (eval "$ac_compile") 2>conftest.er1
5255  ac_status=$?
5256  grep -v '^ *+' conftest.er1 >conftest.err
5257  rm -f conftest.er1
5258  cat conftest.err >&5
5259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); } && {
5261	 test -z "$ac_c_werror_flag" ||
5262	 test ! -s conftest.err
5263       } && test -s conftest.$ac_objext; then
5264  ac_hi=$ac_mid
5265else
5266  $as_echo "$as_me: failed program was:" >&5
5267sed 's/^/| /' conftest.$ac_ext >&5
5268
5269	ac_lo=`expr '(' $ac_mid ')' + 1`
5270fi
5271
5272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273done
5274case $ac_lo in
5275?*) ac_cv_sizeof_int=$ac_lo;;
5276'') if test "$ac_cv_type_int" = yes; then
5277     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5278See \`config.log' for more details." >&5
5279$as_echo "$as_me: error: cannot compute sizeof (int)
5280See \`config.log' for more details." >&2;}
5281   { (exit 77); exit 77; }; }
5282   else
5283     ac_cv_sizeof_int=0
5284   fi ;;
5285esac
5286else
5287  cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h.  */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h.  */
5293$ac_includes_default
5294static long int longval () { return (long int) (sizeof (int)); }
5295static unsigned long int ulongval () { return (long int) (sizeof (int)); }
5296#include <stdio.h>
5297#include <stdlib.h>
5298int
5299main ()
5300{
5301
5302  FILE *f = fopen ("conftest.val", "w");
5303  if (! f)
5304    return 1;
5305  if (((long int) (sizeof (int))) < 0)
5306    {
5307      long int i = longval ();
5308      if (i != ((long int) (sizeof (int))))
5309	return 1;
5310      fprintf (f, "%ld", i);
5311    }
5312  else
5313    {
5314      unsigned long int i = ulongval ();
5315      if (i != ((long int) (sizeof (int))))
5316	return 1;
5317      fprintf (f, "%lu", i);
5318    }
5319  /* Do not output a trailing newline, as this causes \r\n confusion
5320     on some platforms.  */
5321  return ferror (f) || fclose (f) != 0;
5322
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327rm -f conftest$ac_exeext
5328if { (ac_try="$ac_link"
5329case "(($ac_try" in
5330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331  *) ac_try_echo=$ac_try;;
5332esac
5333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5334$as_echo "$ac_try_echo") >&5
5335  (eval "$ac_link") 2>&5
5336  ac_status=$?
5337  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5339  { (case "(($ac_try" in
5340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341  *) ac_try_echo=$ac_try;;
5342esac
5343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5344$as_echo "$ac_try_echo") >&5
5345  (eval "$ac_try") 2>&5
5346  ac_status=$?
5347  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); }; }; then
5349  ac_cv_sizeof_int=`cat conftest.val`
5350else
5351  $as_echo "$as_me: program exited with status $ac_status" >&5
5352$as_echo "$as_me: failed program was:" >&5
5353sed 's/^/| /' conftest.$ac_ext >&5
5354
5355( exit $ac_status )
5356if test "$ac_cv_type_int" = yes; then
5357     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5358See \`config.log' for more details." >&5
5359$as_echo "$as_me: error: cannot compute sizeof (int)
5360See \`config.log' for more details." >&2;}
5361   { (exit 77); exit 77; }; }
5362   else
5363     ac_cv_sizeof_int=0
5364   fi
5365fi
5366rm -rf conftest.dSYM
5367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5368fi
5369rm -f conftest.val
5370fi
5371{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5372$as_echo "$ac_cv_sizeof_int" >&6; }
5373
5374
5375
5376cat >>confdefs.h <<_ACEOF
5377#define SIZEOF_INT $ac_cv_sizeof_int
5378_ACEOF
5379
5380
5381# The cast to long int works around a bug in the HP C Compiler
5382# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5383# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5384# This bug is HP SR number 8606223364.
5385{ $as_echo "$as_me:$LINENO: checking size of long" >&5
5386$as_echo_n "checking size of long... " >&6; }
5387if test "${ac_cv_sizeof_long+set}" = set; then
5388  $as_echo_n "(cached) " >&6
5389else
5390  if test "$cross_compiling" = yes; then
5391  # Depending upon the size, compute the lo and hi bounds.
5392cat >conftest.$ac_ext <<_ACEOF
5393/* confdefs.h.  */
5394_ACEOF
5395cat confdefs.h >>conftest.$ac_ext
5396cat >>conftest.$ac_ext <<_ACEOF
5397/* end confdefs.h.  */
5398$ac_includes_default
5399int
5400main ()
5401{
5402static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
5403test_array [0] = 0
5404
5405  ;
5406  return 0;
5407}
5408_ACEOF
5409rm -f conftest.$ac_objext
5410if { (ac_try="$ac_compile"
5411case "(($ac_try" in
5412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413  *) ac_try_echo=$ac_try;;
5414esac
5415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5416$as_echo "$ac_try_echo") >&5
5417  (eval "$ac_compile") 2>conftest.er1
5418  ac_status=$?
5419  grep -v '^ *+' conftest.er1 >conftest.err
5420  rm -f conftest.er1
5421  cat conftest.err >&5
5422  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423  (exit $ac_status); } && {
5424	 test -z "$ac_c_werror_flag" ||
5425	 test ! -s conftest.err
5426       } && test -s conftest.$ac_objext; then
5427  ac_lo=0 ac_mid=0
5428  while :; do
5429    cat >conftest.$ac_ext <<_ACEOF
5430/* confdefs.h.  */
5431_ACEOF
5432cat confdefs.h >>conftest.$ac_ext
5433cat >>conftest.$ac_ext <<_ACEOF
5434/* end confdefs.h.  */
5435$ac_includes_default
5436int
5437main ()
5438{
5439static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
5440test_array [0] = 0
5441
5442  ;
5443  return 0;
5444}
5445_ACEOF
5446rm -f conftest.$ac_objext
5447if { (ac_try="$ac_compile"
5448case "(($ac_try" in
5449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450  *) ac_try_echo=$ac_try;;
5451esac
5452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5453$as_echo "$ac_try_echo") >&5
5454  (eval "$ac_compile") 2>conftest.er1
5455  ac_status=$?
5456  grep -v '^ *+' conftest.er1 >conftest.err
5457  rm -f conftest.er1
5458  cat conftest.err >&5
5459  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460  (exit $ac_status); } && {
5461	 test -z "$ac_c_werror_flag" ||
5462	 test ! -s conftest.err
5463       } && test -s conftest.$ac_objext; then
5464  ac_hi=$ac_mid; break
5465else
5466  $as_echo "$as_me: failed program was:" >&5
5467sed 's/^/| /' conftest.$ac_ext >&5
5468
5469	ac_lo=`expr $ac_mid + 1`
5470			if test $ac_lo -le $ac_mid; then
5471			  ac_lo= ac_hi=
5472			  break
5473			fi
5474			ac_mid=`expr 2 '*' $ac_mid + 1`
5475fi
5476
5477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478  done
5479else
5480  $as_echo "$as_me: failed program was:" >&5
5481sed 's/^/| /' conftest.$ac_ext >&5
5482
5483	cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h.  */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h.  */
5489$ac_includes_default
5490int
5491main ()
5492{
5493static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
5494test_array [0] = 0
5495
5496  ;
5497  return 0;
5498}
5499_ACEOF
5500rm -f conftest.$ac_objext
5501if { (ac_try="$ac_compile"
5502case "(($ac_try" in
5503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504  *) ac_try_echo=$ac_try;;
5505esac
5506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507$as_echo "$ac_try_echo") >&5
5508  (eval "$ac_compile") 2>conftest.er1
5509  ac_status=$?
5510  grep -v '^ *+' conftest.er1 >conftest.err
5511  rm -f conftest.er1
5512  cat conftest.err >&5
5513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); } && {
5515	 test -z "$ac_c_werror_flag" ||
5516	 test ! -s conftest.err
5517       } && test -s conftest.$ac_objext; then
5518  ac_hi=-1 ac_mid=-1
5519  while :; do
5520    cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h.  */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h.  */
5526$ac_includes_default
5527int
5528main ()
5529{
5530static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
5531test_array [0] = 0
5532
5533  ;
5534  return 0;
5535}
5536_ACEOF
5537rm -f conftest.$ac_objext
5538if { (ac_try="$ac_compile"
5539case "(($ac_try" in
5540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541  *) ac_try_echo=$ac_try;;
5542esac
5543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5544$as_echo "$ac_try_echo") >&5
5545  (eval "$ac_compile") 2>conftest.er1
5546  ac_status=$?
5547  grep -v '^ *+' conftest.er1 >conftest.err
5548  rm -f conftest.er1
5549  cat conftest.err >&5
5550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551  (exit $ac_status); } && {
5552	 test -z "$ac_c_werror_flag" ||
5553	 test ! -s conftest.err
5554       } && test -s conftest.$ac_objext; then
5555  ac_lo=$ac_mid; break
5556else
5557  $as_echo "$as_me: failed program was:" >&5
5558sed 's/^/| /' conftest.$ac_ext >&5
5559
5560	ac_hi=`expr '(' $ac_mid ')' - 1`
5561			if test $ac_mid -le $ac_hi; then
5562			  ac_lo= ac_hi=
5563			  break
5564			fi
5565			ac_mid=`expr 2 '*' $ac_mid`
5566fi
5567
5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569  done
5570else
5571  $as_echo "$as_me: failed program was:" >&5
5572sed 's/^/| /' conftest.$ac_ext >&5
5573
5574	ac_lo= ac_hi=
5575fi
5576
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578fi
5579
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581# Binary search between lo and hi bounds.
5582while test "x$ac_lo" != "x$ac_hi"; do
5583  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5584  cat >conftest.$ac_ext <<_ACEOF
5585/* confdefs.h.  */
5586_ACEOF
5587cat confdefs.h >>conftest.$ac_ext
5588cat >>conftest.$ac_ext <<_ACEOF
5589/* end confdefs.h.  */
5590$ac_includes_default
5591int
5592main ()
5593{
5594static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
5595test_array [0] = 0
5596
5597  ;
5598  return 0;
5599}
5600_ACEOF
5601rm -f conftest.$ac_objext
5602if { (ac_try="$ac_compile"
5603case "(($ac_try" in
5604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605  *) ac_try_echo=$ac_try;;
5606esac
5607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5608$as_echo "$ac_try_echo") >&5
5609  (eval "$ac_compile") 2>conftest.er1
5610  ac_status=$?
5611  grep -v '^ *+' conftest.er1 >conftest.err
5612  rm -f conftest.er1
5613  cat conftest.err >&5
5614  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); } && {
5616	 test -z "$ac_c_werror_flag" ||
5617	 test ! -s conftest.err
5618       } && test -s conftest.$ac_objext; then
5619  ac_hi=$ac_mid
5620else
5621  $as_echo "$as_me: failed program was:" >&5
5622sed 's/^/| /' conftest.$ac_ext >&5
5623
5624	ac_lo=`expr '(' $ac_mid ')' + 1`
5625fi
5626
5627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628done
5629case $ac_lo in
5630?*) ac_cv_sizeof_long=$ac_lo;;
5631'') if test "$ac_cv_type_long" = yes; then
5632     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5633See \`config.log' for more details." >&5
5634$as_echo "$as_me: error: cannot compute sizeof (long)
5635See \`config.log' for more details." >&2;}
5636   { (exit 77); exit 77; }; }
5637   else
5638     ac_cv_sizeof_long=0
5639   fi ;;
5640esac
5641else
5642  cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h.  */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h.  */
5648$ac_includes_default
5649static long int longval () { return (long int) (sizeof (long)); }
5650static unsigned long int ulongval () { return (long int) (sizeof (long)); }
5651#include <stdio.h>
5652#include <stdlib.h>
5653int
5654main ()
5655{
5656
5657  FILE *f = fopen ("conftest.val", "w");
5658  if (! f)
5659    return 1;
5660  if (((long int) (sizeof (long))) < 0)
5661    {
5662      long int i = longval ();
5663      if (i != ((long int) (sizeof (long))))
5664	return 1;
5665      fprintf (f, "%ld", i);
5666    }
5667  else
5668    {
5669      unsigned long int i = ulongval ();
5670      if (i != ((long int) (sizeof (long))))
5671	return 1;
5672      fprintf (f, "%lu", i);
5673    }
5674  /* Do not output a trailing newline, as this causes \r\n confusion
5675     on some platforms.  */
5676  return ferror (f) || fclose (f) != 0;
5677
5678  ;
5679  return 0;
5680}
5681_ACEOF
5682rm -f conftest$ac_exeext
5683if { (ac_try="$ac_link"
5684case "(($ac_try" in
5685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686  *) ac_try_echo=$ac_try;;
5687esac
5688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5689$as_echo "$ac_try_echo") >&5
5690  (eval "$ac_link") 2>&5
5691  ac_status=$?
5692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5694  { (case "(($ac_try" in
5695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696  *) ac_try_echo=$ac_try;;
5697esac
5698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5699$as_echo "$ac_try_echo") >&5
5700  (eval "$ac_try") 2>&5
5701  ac_status=$?
5702  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); }; }; then
5704  ac_cv_sizeof_long=`cat conftest.val`
5705else
5706  $as_echo "$as_me: program exited with status $ac_status" >&5
5707$as_echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
5710( exit $ac_status )
5711if test "$ac_cv_type_long" = yes; then
5712     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5713See \`config.log' for more details." >&5
5714$as_echo "$as_me: error: cannot compute sizeof (long)
5715See \`config.log' for more details." >&2;}
5716   { (exit 77); exit 77; }; }
5717   else
5718     ac_cv_sizeof_long=0
5719   fi
5720fi
5721rm -rf conftest.dSYM
5722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5723fi
5724rm -f conftest.val
5725fi
5726{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5727$as_echo "$ac_cv_sizeof_long" >&6; }
5728
5729
5730
5731cat >>confdefs.h <<_ACEOF
5732#define SIZEOF_LONG $ac_cv_sizeof_long
5733_ACEOF
5734
5735
5736{ $as_echo "$as_me:$LINENO: checking for long long" >&5
5737$as_echo_n "checking for long long... " >&6; }
5738if test "${ac_cv_type_long_long+set}" = set; then
5739  $as_echo_n "(cached) " >&6
5740else
5741  ac_cv_type_long_long=no
5742cat >conftest.$ac_ext <<_ACEOF
5743/* confdefs.h.  */
5744_ACEOF
5745cat confdefs.h >>conftest.$ac_ext
5746cat >>conftest.$ac_ext <<_ACEOF
5747/* end confdefs.h.  */
5748$ac_includes_default
5749int
5750main ()
5751{
5752if (sizeof (long long))
5753       return 0;
5754  ;
5755  return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext
5759if { (ac_try="$ac_compile"
5760case "(($ac_try" in
5761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762  *) ac_try_echo=$ac_try;;
5763esac
5764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5765$as_echo "$ac_try_echo") >&5
5766  (eval "$ac_compile") 2>conftest.er1
5767  ac_status=$?
5768  grep -v '^ *+' conftest.er1 >conftest.err
5769  rm -f conftest.er1
5770  cat conftest.err >&5
5771  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); } && {
5773	 test -z "$ac_c_werror_flag" ||
5774	 test ! -s conftest.err
5775       } && test -s conftest.$ac_objext; then
5776  cat >conftest.$ac_ext <<_ACEOF
5777/* confdefs.h.  */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h.  */
5782$ac_includes_default
5783int
5784main ()
5785{
5786if (sizeof ((long long)))
5787	  return 0;
5788  ;
5789  return 0;
5790}
5791_ACEOF
5792rm -f conftest.$ac_objext
5793if { (ac_try="$ac_compile"
5794case "(($ac_try" in
5795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796  *) ac_try_echo=$ac_try;;
5797esac
5798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5799$as_echo "$ac_try_echo") >&5
5800  (eval "$ac_compile") 2>conftest.er1
5801  ac_status=$?
5802  grep -v '^ *+' conftest.er1 >conftest.err
5803  rm -f conftest.er1
5804  cat conftest.err >&5
5805  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806  (exit $ac_status); } && {
5807	 test -z "$ac_c_werror_flag" ||
5808	 test ! -s conftest.err
5809       } && test -s conftest.$ac_objext; then
5810  :
5811else
5812  $as_echo "$as_me: failed program was:" >&5
5813sed 's/^/| /' conftest.$ac_ext >&5
5814
5815	ac_cv_type_long_long=yes
5816fi
5817
5818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819else
5820  $as_echo "$as_me: failed program was:" >&5
5821sed 's/^/| /' conftest.$ac_ext >&5
5822
5823
5824fi
5825
5826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827fi
5828{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5829$as_echo "$ac_cv_type_long_long" >&6; }
5830if test $ac_cv_type_long_long = yes; then
5831
5832cat >>confdefs.h <<_ACEOF
5833#define HAVE_LONG_LONG 1
5834_ACEOF
5835
5836# The cast to long int works around a bug in the HP C Compiler
5837# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5838# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5839# This bug is HP SR number 8606223364.
5840{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
5841$as_echo_n "checking size of long long... " >&6; }
5842if test "${ac_cv_sizeof_long_long+set}" = set; then
5843  $as_echo_n "(cached) " >&6
5844else
5845  if test "$cross_compiling" = yes; then
5846  # Depending upon the size, compute the lo and hi bounds.
5847cat >conftest.$ac_ext <<_ACEOF
5848/* confdefs.h.  */
5849_ACEOF
5850cat confdefs.h >>conftest.$ac_ext
5851cat >>conftest.$ac_ext <<_ACEOF
5852/* end confdefs.h.  */
5853$ac_includes_default
5854int
5855main ()
5856{
5857static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
5858test_array [0] = 0
5859
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (ac_try="$ac_compile"
5866case "(($ac_try" in
5867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868  *) ac_try_echo=$ac_try;;
5869esac
5870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5871$as_echo "$ac_try_echo") >&5
5872  (eval "$ac_compile") 2>conftest.er1
5873  ac_status=$?
5874  grep -v '^ *+' conftest.er1 >conftest.err
5875  rm -f conftest.er1
5876  cat conftest.err >&5
5877  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878  (exit $ac_status); } && {
5879	 test -z "$ac_c_werror_flag" ||
5880	 test ! -s conftest.err
5881       } && test -s conftest.$ac_objext; then
5882  ac_lo=0 ac_mid=0
5883  while :; do
5884    cat >conftest.$ac_ext <<_ACEOF
5885/* confdefs.h.  */
5886_ACEOF
5887cat confdefs.h >>conftest.$ac_ext
5888cat >>conftest.$ac_ext <<_ACEOF
5889/* end confdefs.h.  */
5890$ac_includes_default
5891int
5892main ()
5893{
5894static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
5895test_array [0] = 0
5896
5897  ;
5898  return 0;
5899}
5900_ACEOF
5901rm -f conftest.$ac_objext
5902if { (ac_try="$ac_compile"
5903case "(($ac_try" in
5904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905  *) ac_try_echo=$ac_try;;
5906esac
5907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5908$as_echo "$ac_try_echo") >&5
5909  (eval "$ac_compile") 2>conftest.er1
5910  ac_status=$?
5911  grep -v '^ *+' conftest.er1 >conftest.err
5912  rm -f conftest.er1
5913  cat conftest.err >&5
5914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); } && {
5916	 test -z "$ac_c_werror_flag" ||
5917	 test ! -s conftest.err
5918       } && test -s conftest.$ac_objext; then
5919  ac_hi=$ac_mid; break
5920else
5921  $as_echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
5923
5924	ac_lo=`expr $ac_mid + 1`
5925			if test $ac_lo -le $ac_mid; then
5926			  ac_lo= ac_hi=
5927			  break
5928			fi
5929			ac_mid=`expr 2 '*' $ac_mid + 1`
5930fi
5931
5932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933  done
5934else
5935  $as_echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938	cat >conftest.$ac_ext <<_ACEOF
5939/* confdefs.h.  */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
5943/* end confdefs.h.  */
5944$ac_includes_default
5945int
5946main ()
5947{
5948static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
5949test_array [0] = 0
5950
5951  ;
5952  return 0;
5953}
5954_ACEOF
5955rm -f conftest.$ac_objext
5956if { (ac_try="$ac_compile"
5957case "(($ac_try" in
5958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959  *) ac_try_echo=$ac_try;;
5960esac
5961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5962$as_echo "$ac_try_echo") >&5
5963  (eval "$ac_compile") 2>conftest.er1
5964  ac_status=$?
5965  grep -v '^ *+' conftest.er1 >conftest.err
5966  rm -f conftest.er1
5967  cat conftest.err >&5
5968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969  (exit $ac_status); } && {
5970	 test -z "$ac_c_werror_flag" ||
5971	 test ! -s conftest.err
5972       } && test -s conftest.$ac_objext; then
5973  ac_hi=-1 ac_mid=-1
5974  while :; do
5975    cat >conftest.$ac_ext <<_ACEOF
5976/* confdefs.h.  */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h.  */
5981$ac_includes_default
5982int
5983main ()
5984{
5985static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
5986test_array [0] = 0
5987
5988  ;
5989  return 0;
5990}
5991_ACEOF
5992rm -f conftest.$ac_objext
5993if { (ac_try="$ac_compile"
5994case "(($ac_try" in
5995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996  *) ac_try_echo=$ac_try;;
5997esac
5998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5999$as_echo "$ac_try_echo") >&5
6000  (eval "$ac_compile") 2>conftest.er1
6001  ac_status=$?
6002  grep -v '^ *+' conftest.er1 >conftest.err
6003  rm -f conftest.er1
6004  cat conftest.err >&5
6005  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006  (exit $ac_status); } && {
6007	 test -z "$ac_c_werror_flag" ||
6008	 test ! -s conftest.err
6009       } && test -s conftest.$ac_objext; then
6010  ac_lo=$ac_mid; break
6011else
6012  $as_echo "$as_me: failed program was:" >&5
6013sed 's/^/| /' conftest.$ac_ext >&5
6014
6015	ac_hi=`expr '(' $ac_mid ')' - 1`
6016			if test $ac_mid -le $ac_hi; then
6017			  ac_lo= ac_hi=
6018			  break
6019			fi
6020			ac_mid=`expr 2 '*' $ac_mid`
6021fi
6022
6023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024  done
6025else
6026  $as_echo "$as_me: failed program was:" >&5
6027sed 's/^/| /' conftest.$ac_ext >&5
6028
6029	ac_lo= ac_hi=
6030fi
6031
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033fi
6034
6035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036# Binary search between lo and hi bounds.
6037while test "x$ac_lo" != "x$ac_hi"; do
6038  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6039  cat >conftest.$ac_ext <<_ACEOF
6040/* confdefs.h.  */
6041_ACEOF
6042cat confdefs.h >>conftest.$ac_ext
6043cat >>conftest.$ac_ext <<_ACEOF
6044/* end confdefs.h.  */
6045$ac_includes_default
6046int
6047main ()
6048{
6049static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
6050test_array [0] = 0
6051
6052  ;
6053  return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext
6057if { (ac_try="$ac_compile"
6058case "(($ac_try" in
6059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060  *) ac_try_echo=$ac_try;;
6061esac
6062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6063$as_echo "$ac_try_echo") >&5
6064  (eval "$ac_compile") 2>conftest.er1
6065  ac_status=$?
6066  grep -v '^ *+' conftest.er1 >conftest.err
6067  rm -f conftest.er1
6068  cat conftest.err >&5
6069  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); } && {
6071	 test -z "$ac_c_werror_flag" ||
6072	 test ! -s conftest.err
6073       } && test -s conftest.$ac_objext; then
6074  ac_hi=$ac_mid
6075else
6076  $as_echo "$as_me: failed program was:" >&5
6077sed 's/^/| /' conftest.$ac_ext >&5
6078
6079	ac_lo=`expr '(' $ac_mid ')' + 1`
6080fi
6081
6082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083done
6084case $ac_lo in
6085?*) ac_cv_sizeof_long_long=$ac_lo;;
6086'') if test "$ac_cv_type_long_long" = yes; then
6087     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6088See \`config.log' for more details." >&5
6089$as_echo "$as_me: error: cannot compute sizeof (long long)
6090See \`config.log' for more details." >&2;}
6091   { (exit 77); exit 77; }; }
6092   else
6093     ac_cv_sizeof_long_long=0
6094   fi ;;
6095esac
6096else
6097  cat >conftest.$ac_ext <<_ACEOF
6098/* confdefs.h.  */
6099_ACEOF
6100cat confdefs.h >>conftest.$ac_ext
6101cat >>conftest.$ac_ext <<_ACEOF
6102/* end confdefs.h.  */
6103$ac_includes_default
6104static long int longval () { return (long int) (sizeof (long long)); }
6105static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
6106#include <stdio.h>
6107#include <stdlib.h>
6108int
6109main ()
6110{
6111
6112  FILE *f = fopen ("conftest.val", "w");
6113  if (! f)
6114    return 1;
6115  if (((long int) (sizeof (long long))) < 0)
6116    {
6117      long int i = longval ();
6118      if (i != ((long int) (sizeof (long long))))
6119	return 1;
6120      fprintf (f, "%ld", i);
6121    }
6122  else
6123    {
6124      unsigned long int i = ulongval ();
6125      if (i != ((long int) (sizeof (long long))))
6126	return 1;
6127      fprintf (f, "%lu", i);
6128    }
6129  /* Do not output a trailing newline, as this causes \r\n confusion
6130     on some platforms.  */
6131  return ferror (f) || fclose (f) != 0;
6132
6133  ;
6134  return 0;
6135}
6136_ACEOF
6137rm -f conftest$ac_exeext
6138if { (ac_try="$ac_link"
6139case "(($ac_try" in
6140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141  *) ac_try_echo=$ac_try;;
6142esac
6143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6144$as_echo "$ac_try_echo") >&5
6145  (eval "$ac_link") 2>&5
6146  ac_status=$?
6147  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6149  { (case "(($ac_try" in
6150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151  *) ac_try_echo=$ac_try;;
6152esac
6153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6154$as_echo "$ac_try_echo") >&5
6155  (eval "$ac_try") 2>&5
6156  ac_status=$?
6157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158  (exit $ac_status); }; }; then
6159  ac_cv_sizeof_long_long=`cat conftest.val`
6160else
6161  $as_echo "$as_me: program exited with status $ac_status" >&5
6162$as_echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165( exit $ac_status )
6166if test "$ac_cv_type_long_long" = yes; then
6167     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6168See \`config.log' for more details." >&5
6169$as_echo "$as_me: error: cannot compute sizeof (long long)
6170See \`config.log' for more details." >&2;}
6171   { (exit 77); exit 77; }; }
6172   else
6173     ac_cv_sizeof_long_long=0
6174   fi
6175fi
6176rm -rf conftest.dSYM
6177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6178fi
6179rm -f conftest.val
6180fi
6181{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6182$as_echo "$ac_cv_sizeof_long_long" >&6; }
6183
6184
6185
6186cat >>confdefs.h <<_ACEOF
6187#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6188_ACEOF
6189
6190
6191fi
6192
6193{ $as_echo "$as_me:$LINENO: checking for __int64" >&5
6194$as_echo_n "checking for __int64... " >&6; }
6195if test "${ac_cv_type___int64+set}" = set; then
6196  $as_echo_n "(cached) " >&6
6197else
6198  ac_cv_type___int64=no
6199cat >conftest.$ac_ext <<_ACEOF
6200/* confdefs.h.  */
6201_ACEOF
6202cat confdefs.h >>conftest.$ac_ext
6203cat >>conftest.$ac_ext <<_ACEOF
6204/* end confdefs.h.  */
6205$ac_includes_default
6206int
6207main ()
6208{
6209if (sizeof (__int64))
6210       return 0;
6211  ;
6212  return 0;
6213}
6214_ACEOF
6215rm -f conftest.$ac_objext
6216if { (ac_try="$ac_compile"
6217case "(($ac_try" in
6218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219  *) ac_try_echo=$ac_try;;
6220esac
6221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6222$as_echo "$ac_try_echo") >&5
6223  (eval "$ac_compile") 2>conftest.er1
6224  ac_status=$?
6225  grep -v '^ *+' conftest.er1 >conftest.err
6226  rm -f conftest.er1
6227  cat conftest.err >&5
6228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229  (exit $ac_status); } && {
6230	 test -z "$ac_c_werror_flag" ||
6231	 test ! -s conftest.err
6232       } && test -s conftest.$ac_objext; then
6233  cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h.  */
6235_ACEOF
6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h.  */
6239$ac_includes_default
6240int
6241main ()
6242{
6243if (sizeof ((__int64)))
6244	  return 0;
6245  ;
6246  return 0;
6247}
6248_ACEOF
6249rm -f conftest.$ac_objext
6250if { (ac_try="$ac_compile"
6251case "(($ac_try" in
6252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253  *) ac_try_echo=$ac_try;;
6254esac
6255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256$as_echo "$ac_try_echo") >&5
6257  (eval "$ac_compile") 2>conftest.er1
6258  ac_status=$?
6259  grep -v '^ *+' conftest.er1 >conftest.err
6260  rm -f conftest.er1
6261  cat conftest.err >&5
6262  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263  (exit $ac_status); } && {
6264	 test -z "$ac_c_werror_flag" ||
6265	 test ! -s conftest.err
6266       } && test -s conftest.$ac_objext; then
6267  :
6268else
6269  $as_echo "$as_me: failed program was:" >&5
6270sed 's/^/| /' conftest.$ac_ext >&5
6271
6272	ac_cv_type___int64=yes
6273fi
6274
6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276else
6277  $as_echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
6279
6280
6281fi
6282
6283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284fi
6285{ $as_echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6286$as_echo "$ac_cv_type___int64" >&6; }
6287if test $ac_cv_type___int64 = yes; then
6288
6289cat >>confdefs.h <<_ACEOF
6290#define HAVE___INT64 1
6291_ACEOF
6292
6293# The cast to long int works around a bug in the HP C Compiler
6294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6296# This bug is HP SR number 8606223364.
6297{ $as_echo "$as_me:$LINENO: checking size of __int64" >&5
6298$as_echo_n "checking size of __int64... " >&6; }
6299if test "${ac_cv_sizeof___int64+set}" = set; then
6300  $as_echo_n "(cached) " >&6
6301else
6302  if test "$cross_compiling" = yes; then
6303  # Depending upon the size, compute the lo and hi bounds.
6304cat >conftest.$ac_ext <<_ACEOF
6305/* confdefs.h.  */
6306_ACEOF
6307cat confdefs.h >>conftest.$ac_ext
6308cat >>conftest.$ac_ext <<_ACEOF
6309/* end confdefs.h.  */
6310$ac_includes_default
6311int
6312main ()
6313{
6314static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) >= 0)];
6315test_array [0] = 0
6316
6317  ;
6318  return 0;
6319}
6320_ACEOF
6321rm -f conftest.$ac_objext
6322if { (ac_try="$ac_compile"
6323case "(($ac_try" in
6324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325  *) ac_try_echo=$ac_try;;
6326esac
6327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6328$as_echo "$ac_try_echo") >&5
6329  (eval "$ac_compile") 2>conftest.er1
6330  ac_status=$?
6331  grep -v '^ *+' conftest.er1 >conftest.err
6332  rm -f conftest.er1
6333  cat conftest.err >&5
6334  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335  (exit $ac_status); } && {
6336	 test -z "$ac_c_werror_flag" ||
6337	 test ! -s conftest.err
6338       } && test -s conftest.$ac_objext; then
6339  ac_lo=0 ac_mid=0
6340  while :; do
6341    cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h.  */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h.  */
6347$ac_includes_default
6348int
6349main ()
6350{
6351static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) <= $ac_mid)];
6352test_array [0] = 0
6353
6354  ;
6355  return 0;
6356}
6357_ACEOF
6358rm -f conftest.$ac_objext
6359if { (ac_try="$ac_compile"
6360case "(($ac_try" in
6361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362  *) ac_try_echo=$ac_try;;
6363esac
6364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365$as_echo "$ac_try_echo") >&5
6366  (eval "$ac_compile") 2>conftest.er1
6367  ac_status=$?
6368  grep -v '^ *+' conftest.er1 >conftest.err
6369  rm -f conftest.er1
6370  cat conftest.err >&5
6371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); } && {
6373	 test -z "$ac_c_werror_flag" ||
6374	 test ! -s conftest.err
6375       } && test -s conftest.$ac_objext; then
6376  ac_hi=$ac_mid; break
6377else
6378  $as_echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381	ac_lo=`expr $ac_mid + 1`
6382			if test $ac_lo -le $ac_mid; then
6383			  ac_lo= ac_hi=
6384			  break
6385			fi
6386			ac_mid=`expr 2 '*' $ac_mid + 1`
6387fi
6388
6389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390  done
6391else
6392  $as_echo "$as_me: failed program was:" >&5
6393sed 's/^/| /' conftest.$ac_ext >&5
6394
6395	cat >conftest.$ac_ext <<_ACEOF
6396/* confdefs.h.  */
6397_ACEOF
6398cat confdefs.h >>conftest.$ac_ext
6399cat >>conftest.$ac_ext <<_ACEOF
6400/* end confdefs.h.  */
6401$ac_includes_default
6402int
6403main ()
6404{
6405static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) < 0)];
6406test_array [0] = 0
6407
6408  ;
6409  return 0;
6410}
6411_ACEOF
6412rm -f conftest.$ac_objext
6413if { (ac_try="$ac_compile"
6414case "(($ac_try" in
6415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416  *) ac_try_echo=$ac_try;;
6417esac
6418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6419$as_echo "$ac_try_echo") >&5
6420  (eval "$ac_compile") 2>conftest.er1
6421  ac_status=$?
6422  grep -v '^ *+' conftest.er1 >conftest.err
6423  rm -f conftest.er1
6424  cat conftest.err >&5
6425  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426  (exit $ac_status); } && {
6427	 test -z "$ac_c_werror_flag" ||
6428	 test ! -s conftest.err
6429       } && test -s conftest.$ac_objext; then
6430  ac_hi=-1 ac_mid=-1
6431  while :; do
6432    cat >conftest.$ac_ext <<_ACEOF
6433/* confdefs.h.  */
6434_ACEOF
6435cat confdefs.h >>conftest.$ac_ext
6436cat >>conftest.$ac_ext <<_ACEOF
6437/* end confdefs.h.  */
6438$ac_includes_default
6439int
6440main ()
6441{
6442static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) >= $ac_mid)];
6443test_array [0] = 0
6444
6445  ;
6446  return 0;
6447}
6448_ACEOF
6449rm -f conftest.$ac_objext
6450if { (ac_try="$ac_compile"
6451case "(($ac_try" in
6452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453  *) ac_try_echo=$ac_try;;
6454esac
6455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6456$as_echo "$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  $as_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=$ac_mid; break
6468else
6469  $as_echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6471
6472	ac_hi=`expr '(' $ac_mid ')' - 1`
6473			if test $ac_mid -le $ac_hi; then
6474			  ac_lo= ac_hi=
6475			  break
6476			fi
6477			ac_mid=`expr 2 '*' $ac_mid`
6478fi
6479
6480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481  done
6482else
6483  $as_echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
6486	ac_lo= ac_hi=
6487fi
6488
6489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490fi
6491
6492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493# Binary search between lo and hi bounds.
6494while test "x$ac_lo" != "x$ac_hi"; do
6495  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6496  cat >conftest.$ac_ext <<_ACEOF
6497/* confdefs.h.  */
6498_ACEOF
6499cat confdefs.h >>conftest.$ac_ext
6500cat >>conftest.$ac_ext <<_ACEOF
6501/* end confdefs.h.  */
6502$ac_includes_default
6503int
6504main ()
6505{
6506static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) <= $ac_mid)];
6507test_array [0] = 0
6508
6509  ;
6510  return 0;
6511}
6512_ACEOF
6513rm -f conftest.$ac_objext
6514if { (ac_try="$ac_compile"
6515case "(($ac_try" in
6516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517  *) ac_try_echo=$ac_try;;
6518esac
6519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6520$as_echo "$ac_try_echo") >&5
6521  (eval "$ac_compile") 2>conftest.er1
6522  ac_status=$?
6523  grep -v '^ *+' conftest.er1 >conftest.err
6524  rm -f conftest.er1
6525  cat conftest.err >&5
6526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527  (exit $ac_status); } && {
6528	 test -z "$ac_c_werror_flag" ||
6529	 test ! -s conftest.err
6530       } && test -s conftest.$ac_objext; then
6531  ac_hi=$ac_mid
6532else
6533  $as_echo "$as_me: failed program was:" >&5
6534sed 's/^/| /' conftest.$ac_ext >&5
6535
6536	ac_lo=`expr '(' $ac_mid ')' + 1`
6537fi
6538
6539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540done
6541case $ac_lo in
6542?*) ac_cv_sizeof___int64=$ac_lo;;
6543'') if test "$ac_cv_type___int64" = yes; then
6544     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6545See \`config.log' for more details." >&5
6546$as_echo "$as_me: error: cannot compute sizeof (__int64)
6547See \`config.log' for more details." >&2;}
6548   { (exit 77); exit 77; }; }
6549   else
6550     ac_cv_sizeof___int64=0
6551   fi ;;
6552esac
6553else
6554  cat >conftest.$ac_ext <<_ACEOF
6555/* confdefs.h.  */
6556_ACEOF
6557cat confdefs.h >>conftest.$ac_ext
6558cat >>conftest.$ac_ext <<_ACEOF
6559/* end confdefs.h.  */
6560$ac_includes_default
6561static long int longval () { return (long int) (sizeof (__int64)); }
6562static unsigned long int ulongval () { return (long int) (sizeof (__int64)); }
6563#include <stdio.h>
6564#include <stdlib.h>
6565int
6566main ()
6567{
6568
6569  FILE *f = fopen ("conftest.val", "w");
6570  if (! f)
6571    return 1;
6572  if (((long int) (sizeof (__int64))) < 0)
6573    {
6574      long int i = longval ();
6575      if (i != ((long int) (sizeof (__int64))))
6576	return 1;
6577      fprintf (f, "%ld", i);
6578    }
6579  else
6580    {
6581      unsigned long int i = ulongval ();
6582      if (i != ((long int) (sizeof (__int64))))
6583	return 1;
6584      fprintf (f, "%lu", i);
6585    }
6586  /* Do not output a trailing newline, as this causes \r\n confusion
6587     on some platforms.  */
6588  return ferror (f) || fclose (f) != 0;
6589
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594rm -f conftest$ac_exeext
6595if { (ac_try="$ac_link"
6596case "(($ac_try" in
6597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598  *) ac_try_echo=$ac_try;;
6599esac
6600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601$as_echo "$ac_try_echo") >&5
6602  (eval "$ac_link") 2>&5
6603  ac_status=$?
6604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6606  { (case "(($ac_try" in
6607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608  *) ac_try_echo=$ac_try;;
6609esac
6610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6611$as_echo "$ac_try_echo") >&5
6612  (eval "$ac_try") 2>&5
6613  ac_status=$?
6614  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }; }; then
6616  ac_cv_sizeof___int64=`cat conftest.val`
6617else
6618  $as_echo "$as_me: program exited with status $ac_status" >&5
6619$as_echo "$as_me: failed program was:" >&5
6620sed 's/^/| /' conftest.$ac_ext >&5
6621
6622( exit $ac_status )
6623if test "$ac_cv_type___int64" = yes; then
6624     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6625See \`config.log' for more details." >&5
6626$as_echo "$as_me: error: cannot compute sizeof (__int64)
6627See \`config.log' for more details." >&2;}
6628   { (exit 77); exit 77; }; }
6629   else
6630     ac_cv_sizeof___int64=0
6631   fi
6632fi
6633rm -rf conftest.dSYM
6634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6635fi
6636rm -f conftest.val
6637fi
6638{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6639$as_echo "$ac_cv_sizeof___int64" >&6; }
6640
6641
6642
6643cat >>confdefs.h <<_ACEOF
6644#define SIZEOF___INT64 $ac_cv_sizeof___int64
6645_ACEOF
6646
6647
6648fi
6649
6650
6651# ---------------------
6652# Warnings and checking
6653# ---------------------
6654
6655# Check $CC warning features (if it's GCC).
6656# We want to use -pedantic, but we don't want warnings about
6657# * 'long long'
6658# * variadic macros
6659# So, we only use -pedantic if we can disable those warnings.
6660
6661{ $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6662$as_echo_n "checking whether ${CC} accepts -Wno-long-long... " >&6; }
6663if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6664  $as_echo_n "(cached) " >&6
6665else
6666  save_CFLAGS="$CFLAGS"
6667  CFLAGS="-Wno-long-long"
6668  cat >conftest.$ac_ext <<_ACEOF
6669/* confdefs.h.  */
6670_ACEOF
6671cat confdefs.h >>conftest.$ac_ext
6672cat >>conftest.$ac_ext <<_ACEOF
6673/* end confdefs.h.  */
6674
6675_ACEOF
6676rm -f conftest.$ac_objext
6677if { (ac_try="$ac_compile"
6678case "(($ac_try" in
6679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680  *) ac_try_echo=$ac_try;;
6681esac
6682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6683$as_echo "$ac_try_echo") >&5
6684  (eval "$ac_compile") 2>conftest.er1
6685  ac_status=$?
6686  grep -v '^ *+' conftest.er1 >conftest.err
6687  rm -f conftest.er1
6688  cat conftest.err >&5
6689  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690  (exit $ac_status); } && {
6691	 test -z "$ac_c_werror_flag" ||
6692	 test ! -s conftest.err
6693       } && test -s conftest.$ac_objext; then
6694  ac_cv_prog_cc_w_no_long_long=yes
6695else
6696  $as_echo "$as_me: failed program was:" >&5
6697sed 's/^/| /' conftest.$ac_ext >&5
6698
6699	ac_cv_prog_cc_w_no_long_long=no
6700fi
6701
6702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703  CFLAGS="$save_CFLAGS"
6704
6705fi
6706{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6707$as_echo "$ac_cv_prog_cc_w_no_long_long" >&6; }
6708
6709{ $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6710$as_echo_n "checking whether ${CC} accepts -Wno-variadic-macros... " >&6; }
6711if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6712  $as_echo_n "(cached) " >&6
6713else
6714  save_CFLAGS="$CFLAGS"
6715  CFLAGS="-Wno-variadic-macros"
6716  cat >conftest.$ac_ext <<_ACEOF
6717/* confdefs.h.  */
6718_ACEOF
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h.  */
6722
6723_ACEOF
6724rm -f conftest.$ac_objext
6725if { (ac_try="$ac_compile"
6726case "(($ac_try" in
6727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728  *) ac_try_echo=$ac_try;;
6729esac
6730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6731$as_echo "$ac_try_echo") >&5
6732  (eval "$ac_compile") 2>conftest.er1
6733  ac_status=$?
6734  grep -v '^ *+' conftest.er1 >conftest.err
6735  rm -f conftest.er1
6736  cat conftest.err >&5
6737  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738  (exit $ac_status); } && {
6739	 test -z "$ac_c_werror_flag" ||
6740	 test ! -s conftest.err
6741       } && test -s conftest.$ac_objext; then
6742  ac_cv_prog_cc_w_no_variadic_macros=yes
6743else
6744  $as_echo "$as_me: failed program was:" >&5
6745sed 's/^/| /' conftest.$ac_ext >&5
6746
6747	ac_cv_prog_cc_w_no_variadic_macros=no
6748fi
6749
6750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751  CFLAGS="$save_CFLAGS"
6752
6753fi
6754{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6755$as_echo "$ac_cv_prog_cc_w_no_variadic_macros" >&6; }
6756
6757strict1_warn=
6758if test $ac_cv_prog_cc_w_no_long_long = yes \
6759   && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6760  strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6761fi
6762
6763# Add -Wold-style-definition if it's accepted
6764{ $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6765$as_echo_n "checking whether ${CC} accepts -Wold-style-definition... " >&6; }
6766if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6767  $as_echo_n "(cached) " >&6
6768else
6769  save_CFLAGS="$CFLAGS"
6770  CFLAGS="-Wold-style-definition"
6771  cat >conftest.$ac_ext <<_ACEOF
6772/* confdefs.h.  */
6773_ACEOF
6774cat confdefs.h >>conftest.$ac_ext
6775cat >>conftest.$ac_ext <<_ACEOF
6776/* end confdefs.h.  */
6777
6778_ACEOF
6779rm -f conftest.$ac_objext
6780if { (ac_try="$ac_compile"
6781case "(($ac_try" in
6782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6783  *) ac_try_echo=$ac_try;;
6784esac
6785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6786$as_echo "$ac_try_echo") >&5
6787  (eval "$ac_compile") 2>conftest.er1
6788  ac_status=$?
6789  grep -v '^ *+' conftest.er1 >conftest.err
6790  rm -f conftest.er1
6791  cat conftest.err >&5
6792  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793  (exit $ac_status); } && {
6794	 test -z "$ac_c_werror_flag" ||
6795	 test ! -s conftest.err
6796       } && test -s conftest.$ac_objext; then
6797  ac_cv_prog_cc_w_old_style_definition=yes
6798else
6799  $as_echo "$as_me: failed program was:" >&5
6800sed 's/^/| /' conftest.$ac_ext >&5
6801
6802	ac_cv_prog_cc_w_old_style_definition=no
6803fi
6804
6805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806  CFLAGS="$save_CFLAGS"
6807
6808fi
6809{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6810$as_echo "$ac_cv_prog_cc_w_old_style_definition" >&6; }
6811if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6812  strict1_warn="${strict1_warn} -Wold-style-definition"
6813fi
6814
6815# Add -Wmissing-format-attribute if it's accepted
6816{ $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6817$as_echo_n "checking whether ${CC} accepts -Wmissing-format-attribute... " >&6; }
6818if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6819  $as_echo_n "(cached) " >&6
6820else
6821  save_CFLAGS="$CFLAGS"
6822  CFLAGS="-Wmissing-format-attribute"
6823  cat >conftest.$ac_ext <<_ACEOF
6824/* confdefs.h.  */
6825_ACEOF
6826cat confdefs.h >>conftest.$ac_ext
6827cat >>conftest.$ac_ext <<_ACEOF
6828/* end confdefs.h.  */
6829
6830_ACEOF
6831rm -f conftest.$ac_objext
6832if { (ac_try="$ac_compile"
6833case "(($ac_try" in
6834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835  *) ac_try_echo=$ac_try;;
6836esac
6837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6838$as_echo "$ac_try_echo") >&5
6839  (eval "$ac_compile") 2>conftest.er1
6840  ac_status=$?
6841  grep -v '^ *+' conftest.er1 >conftest.err
6842  rm -f conftest.er1
6843  cat conftest.err >&5
6844  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845  (exit $ac_status); } && {
6846	 test -z "$ac_c_werror_flag" ||
6847	 test ! -s conftest.err
6848       } && test -s conftest.$ac_objext; then
6849  ac_cv_prog_cc_w_missing_format_attribute=yes
6850else
6851  $as_echo "$as_me: failed program was:" >&5
6852sed 's/^/| /' conftest.$ac_ext >&5
6853
6854	ac_cv_prog_cc_w_missing_format_attribute=no
6855fi
6856
6857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858  CFLAGS="$save_CFLAGS"
6859
6860fi
6861{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6862$as_echo "$ac_cv_prog_cc_w_missing_format_attribute" >&6; }
6863if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6864  strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6865fi
6866
6867# Enable -Werror, period.
6868# Check whether --enable-werror_always was given.
6869if test "${enable_werror_always+set}" = set; then
6870  enableval=$enable_werror_always;
6871else
6872  enable_werror_always=no
6873fi
6874
6875if test x${enable_werror_always} = xyes ; then
6876  strict1_warn="${strict1_warn} -Werror"
6877  WERROR=-Werror
6878fi
6879
6880
6881
6882# If the native compiler is GCC, we can enable warnings even in stage1.
6883# That's useful for people building cross-compilers, or just running a
6884# quick `make'.
6885warn_cflags=
6886if test "x$GCC" = "xyes"; then
6887  warn_cflags='$(GCC_WARN_CFLAGS)'
6888fi
6889
6890
6891# Enable -Werror in bootstrap stage2 and later.
6892is_release=
6893if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6894  is_release=yes
6895fi
6896# Check whether --enable-werror was given.
6897if test "${enable_werror+set}" = set; then
6898  enableval=$enable_werror;
6899else
6900  if test x$is_release = x ; then
6901  # Default to "yes" on development branches.
6902  enable_werror=yes
6903else
6904  # Default to "no" on release branches.
6905  enable_werror=no
6906fi
6907fi
6908
6909if test x$enable_werror = xyes ; then
6910  WERROR=-Werror
6911fi
6912
6913
6914# Enable expensive internal checks
6915# Check whether --enable-checking was given.
6916if test "${enable_checking+set}" = set; then
6917  enableval=$enable_checking; ac_checking_flags="${enableval}"
6918else
6919
6920# Determine the default checks.
6921if test x$is_release = x ; then
6922  ac_checking_flags=yes
6923else
6924  ac_checking_flags=release
6925fi
6926fi
6927
6928ac_assert_checking=1
6929ac_checking=
6930ac_fold_checking=
6931ac_gc_checking=
6932ac_gc_always_collect=
6933ac_rtl_checking=
6934ac_rtlflag_checking=
6935ac_runtime_checking=1
6936ac_tree_checking=
6937ac_valgrind_checking=
6938IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
6939for check in $ac_checking_flags
6940do
6941	case $check in
6942	# these set all the flags to specific states
6943	yes)		ac_assert_checking=1 ; ac_checking=1 ;
6944			ac_fold_checking= ; ac_gc_checking=1 ;
6945			ac_gc_always_collect= ; ac_rtl_checking= ;
6946			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6947			ac_tree_checking=1 ; ac_valgrind_checking= ;;
6948	no|none)	ac_assert_checking= ; ac_checking= ;
6949			ac_fold_checking= ; ac_gc_checking= ;
6950			ac_gc_always_collect= ; ac_rtl_checking= ;
6951			ac_rtlflag_checking= ; ac_runtime_checking= ;
6952			ac_tree_checking= ; ac_valgrind_checking= ;;
6953	all)		ac_assert_checking=1 ; ac_checking=1 ;
6954			ac_fold_checking=1 ; ac_gc_checking=1 ;
6955			ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6956			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6957			ac_tree_checking=1 ; ac_valgrind_checking= ;;
6958	release)	ac_assert_checking=1 ; ac_checking= ;
6959			ac_fold_checking= ; ac_gc_checking= ;
6960			ac_gc_always_collect= ; ac_rtl_checking= ;
6961			ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6962			ac_tree_checking= ; ac_valgrind_checking= ;;
6963	# these enable particular checks
6964	assert) 	ac_assert_checking=1 ;;
6965	fold)		ac_fold_checking=1 ;;
6966	gc)		ac_gc_checking=1 ;;
6967	gcac)		ac_gc_always_collect=1 ;;
6968	misc)		ac_checking=1 ;;
6969	rtl)		ac_rtl_checking=1 ;;
6970	rtlflag)	ac_rtlflag_checking=1 ;;
6971	runtime)	ac_runtime_checking=1 ;;
6972	tree)		ac_tree_checking=1 ;;
6973	valgrind)	ac_valgrind_checking=1 ;;
6974	*)	{ { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
6975$as_echo "$as_me: error: unknown check category $check" >&2;}
6976   { (exit 1); exit 1; }; } ;;
6977	esac
6978done
6979IFS="$ac_save_IFS"
6980
6981nocommon_flag=""
6982if test x$ac_checking != x ; then
6983
6984cat >>confdefs.h <<\_ACEOF
6985#define ENABLE_CHECKING 1
6986_ACEOF
6987
6988  nocommon_flag=-fno-common
6989fi
6990
6991if test x$ac_assert_checking != x ; then
6992
6993cat >>confdefs.h <<\_ACEOF
6994#define ENABLE_ASSERT_CHECKING 1
6995_ACEOF
6996
6997fi
6998
6999if test x$ac_runtime_checking != x ; then
7000
7001cat >>confdefs.h <<\_ACEOF
7002#define ENABLE_RUNTIME_CHECKING 1
7003_ACEOF
7004
7005fi
7006if test x$ac_tree_checking != x ; then
7007
7008cat >>confdefs.h <<\_ACEOF
7009#define ENABLE_TREE_CHECKING 1
7010_ACEOF
7011
7012  TREEBROWSER=tree-browser.o
7013fi
7014
7015if test x$ac_rtl_checking != x ; then
7016
7017cat >>confdefs.h <<\_ACEOF
7018#define ENABLE_RTL_CHECKING 1
7019_ACEOF
7020
7021fi
7022if test x$ac_rtlflag_checking != x ; then
7023
7024cat >>confdefs.h <<\_ACEOF
7025#define ENABLE_RTL_FLAG_CHECKING 1
7026_ACEOF
7027
7028fi
7029if test x$ac_gc_checking != x ; then
7030
7031cat >>confdefs.h <<\_ACEOF
7032#define ENABLE_GC_CHECKING 1
7033_ACEOF
7034
7035fi
7036if test x$ac_gc_always_collect != x ; then
7037
7038cat >>confdefs.h <<\_ACEOF
7039#define ENABLE_GC_ALWAYS_COLLECT 1
7040_ACEOF
7041
7042fi
7043if test x$ac_fold_checking != x ; then
7044
7045cat >>confdefs.h <<\_ACEOF
7046#define ENABLE_FOLD_CHECKING 1
7047_ACEOF
7048
7049fi
7050valgrind_path_defines=
7051valgrind_command=
7052
7053if test "${ac_cv_header_valgrind_h+set}" = set; then
7054  { $as_echo "$as_me:$LINENO: checking for valgrind.h" >&5
7055$as_echo_n "checking for valgrind.h... " >&6; }
7056if test "${ac_cv_header_valgrind_h+set}" = set; then
7057  $as_echo_n "(cached) " >&6
7058fi
7059{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7060$as_echo "$ac_cv_header_valgrind_h" >&6; }
7061else
7062  # Is the header compilable?
7063{ $as_echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7064$as_echo_n "checking valgrind.h usability... " >&6; }
7065cat >conftest.$ac_ext <<_ACEOF
7066/* confdefs.h.  */
7067_ACEOF
7068cat confdefs.h >>conftest.$ac_ext
7069cat >>conftest.$ac_ext <<_ACEOF
7070/* end confdefs.h.  */
7071$ac_includes_default
7072#include <valgrind.h>
7073_ACEOF
7074rm -f conftest.$ac_objext
7075if { (ac_try="$ac_compile"
7076case "(($ac_try" in
7077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078  *) ac_try_echo=$ac_try;;
7079esac
7080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7081$as_echo "$ac_try_echo") >&5
7082  (eval "$ac_compile") 2>conftest.er1
7083  ac_status=$?
7084  grep -v '^ *+' conftest.er1 >conftest.err
7085  rm -f conftest.er1
7086  cat conftest.err >&5
7087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088  (exit $ac_status); } && {
7089	 test -z "$ac_c_werror_flag" ||
7090	 test ! -s conftest.err
7091       } && test -s conftest.$ac_objext; then
7092  ac_header_compiler=yes
7093else
7094  $as_echo "$as_me: failed program was:" >&5
7095sed 's/^/| /' conftest.$ac_ext >&5
7096
7097	ac_header_compiler=no
7098fi
7099
7100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7102$as_echo "$ac_header_compiler" >&6; }
7103
7104# Is the header present?
7105{ $as_echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7106$as_echo_n "checking valgrind.h presence... " >&6; }
7107cat >conftest.$ac_ext <<_ACEOF
7108/* confdefs.h.  */
7109_ACEOF
7110cat confdefs.h >>conftest.$ac_ext
7111cat >>conftest.$ac_ext <<_ACEOF
7112/* end confdefs.h.  */
7113#include <valgrind.h>
7114_ACEOF
7115if { (ac_try="$ac_cpp conftest.$ac_ext"
7116case "(($ac_try" in
7117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118  *) ac_try_echo=$ac_try;;
7119esac
7120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7121$as_echo "$ac_try_echo") >&5
7122  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7123  ac_status=$?
7124  grep -v '^ *+' conftest.er1 >conftest.err
7125  rm -f conftest.er1
7126  cat conftest.err >&5
7127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128  (exit $ac_status); } >/dev/null && {
7129	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7130	 test ! -s conftest.err
7131       }; then
7132  ac_header_preproc=yes
7133else
7134  $as_echo "$as_me: failed program was:" >&5
7135sed 's/^/| /' conftest.$ac_ext >&5
7136
7137  ac_header_preproc=no
7138fi
7139
7140rm -f conftest.err conftest.$ac_ext
7141{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7142$as_echo "$ac_header_preproc" >&6; }
7143
7144# So?  What about this header?
7145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7146  yes:no: )
7147    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7148$as_echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7149    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7150$as_echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7151    ac_header_preproc=yes
7152    ;;
7153  no:yes:* )
7154    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7155$as_echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7156    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
7157$as_echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
7158    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7159$as_echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7160    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
7161$as_echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7162    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7163$as_echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7164    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7165$as_echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7166
7167    ;;
7168esac
7169{ $as_echo "$as_me:$LINENO: checking for valgrind.h" >&5
7170$as_echo_n "checking for valgrind.h... " >&6; }
7171if test "${ac_cv_header_valgrind_h+set}" = set; then
7172  $as_echo_n "(cached) " >&6
7173else
7174  ac_cv_header_valgrind_h=$ac_header_preproc
7175fi
7176{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7177$as_echo "$ac_cv_header_valgrind_h" >&6; }
7178
7179fi
7180if test $ac_cv_header_valgrind_h = yes; then
7181  have_valgrind_h=yes
7182else
7183  have_valgrind_h=no
7184fi
7185
7186
7187
7188if test x$ac_valgrind_checking != x ; then
7189  # It is certainly possible that there's valgrind but no valgrind.h.
7190  # GCC relies on making annotations so we must have both.
7191  { $as_echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7192$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7193  cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h.  */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h.  */
7199#include <valgrind/memcheck.h>
7200#ifndef VALGRIND_DISCARD
7201#error VALGRIND_DISCARD not defined
7202#endif
7203_ACEOF
7204if { (ac_try="$ac_cpp conftest.$ac_ext"
7205case "(($ac_try" in
7206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207  *) ac_try_echo=$ac_try;;
7208esac
7209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7210$as_echo "$ac_try_echo") >&5
7211  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7212  ac_status=$?
7213  grep -v '^ *+' conftest.er1 >conftest.err
7214  rm -f conftest.er1
7215  cat conftest.err >&5
7216  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217  (exit $ac_status); } >/dev/null && {
7218	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7219	 test ! -s conftest.err
7220       }; then
7221  gcc_cv_header_valgrind_memcheck_h=yes
7222else
7223  $as_echo "$as_me: failed program was:" >&5
7224sed 's/^/| /' conftest.$ac_ext >&5
7225
7226  gcc_cv_header_valgrind_memcheck_h=no
7227fi
7228
7229rm -f conftest.err conftest.$ac_ext
7230  { $as_echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7231$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7232  { $as_echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7233$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7234  cat >conftest.$ac_ext <<_ACEOF
7235/* confdefs.h.  */
7236_ACEOF
7237cat confdefs.h >>conftest.$ac_ext
7238cat >>conftest.$ac_ext <<_ACEOF
7239/* end confdefs.h.  */
7240#include <memcheck.h>
7241#ifndef VALGRIND_DISCARD
7242#error VALGRIND_DISCARD not defined
7243#endif
7244_ACEOF
7245if { (ac_try="$ac_cpp conftest.$ac_ext"
7246case "(($ac_try" in
7247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248  *) ac_try_echo=$ac_try;;
7249esac
7250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7251$as_echo "$ac_try_echo") >&5
7252  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7253  ac_status=$?
7254  grep -v '^ *+' conftest.er1 >conftest.err
7255  rm -f conftest.er1
7256  cat conftest.err >&5
7257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258  (exit $ac_status); } >/dev/null && {
7259	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7260	 test ! -s conftest.err
7261       }; then
7262  gcc_cv_header_memcheck_h=yes
7263else
7264  $as_echo "$as_me: failed program was:" >&5
7265sed 's/^/| /' conftest.$ac_ext >&5
7266
7267  gcc_cv_header_memcheck_h=no
7268fi
7269
7270rm -f conftest.err conftest.$ac_ext
7271  { $as_echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7272$as_echo "$gcc_cv_header_memcheck_h" >&6; }
7273
7274# Prepare PATH_SEPARATOR.
7275# The user is always right.
7276if test "${PATH_SEPARATOR+set}" != set; then
7277  echo "#! /bin/sh" >conf$$.sh
7278  echo  "exit 0"   >>conf$$.sh
7279  chmod +x conf$$.sh
7280  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7281    PATH_SEPARATOR=';'
7282  else
7283    PATH_SEPARATOR=:
7284  fi
7285  rm -f conf$$.sh
7286fi
7287
7288# Find out how to test for executable files. Don't use a zero-byte file,
7289# as systems may use methods other than mode bits to determine executability.
7290cat >conf$$.file <<_ASEOF
7291#! /bin/sh
7292exit 0
7293_ASEOF
7294chmod +x conf$$.file
7295if test -x conf$$.file >/dev/null 2>&1; then
7296  ac_executable_p="test -x"
7297else
7298  ac_executable_p="test -f"
7299fi
7300rm -f conf$$.file
7301
7302# Extract the first word of "valgrind", so it can be a program name with args.
7303set dummy valgrind; ac_word=$2
7304{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7305$as_echo_n "checking for $ac_word... " >&6; }
7306if test "${ac_cv_path_valgrind_path+set}" = set; then
7307  $as_echo_n "(cached) " >&6
7308else
7309  case "$valgrind_path" in
7310  [\\/]* | ?:[\\/]*)
7311    ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7312    ;;
7313  *)
7314    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7315    for ac_dir in $PATH; do
7316      IFS="$ac_save_IFS"
7317      test -z "$ac_dir" && ac_dir=.
7318      for ac_exec_ext in '' $ac_executable_extensions; do
7319        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7320          if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7321            ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7322            break 2
7323          fi
7324        fi
7325      done
7326    done
7327    IFS="$ac_save_IFS"
7328    ;;
7329esac
7330fi
7331valgrind_path="$ac_cv_path_valgrind_path"
7332if test -n "$valgrind_path"; then
7333  { $as_echo "$as_me:$LINENO: result: $valgrind_path" >&5
7334$as_echo "$valgrind_path" >&6; }
7335else
7336  { $as_echo "$as_me:$LINENO: result: no" >&5
7337$as_echo "no" >&6; }
7338fi
7339
7340  if test "x$valgrind_path" = "x" \
7341    || (test $have_valgrind_h = no \
7342	&& test $gcc_cv_header_memcheck_h = no \
7343	&& test $gcc_cv_header_valgrind_memcheck_h = no); then
7344	{ { $as_echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7345$as_echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7346   { (exit 1); exit 1; }; }
7347  fi
7348  valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7349  valgrind_command="$valgrind_path -q"
7350
7351cat >>confdefs.h <<\_ACEOF
7352#define ENABLE_VALGRIND_CHECKING 1
7353_ACEOF
7354
7355  if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7356
7357cat >>confdefs.h <<\_ACEOF
7358#define HAVE_VALGRIND_MEMCHECK_H 1
7359_ACEOF
7360
7361  fi
7362  if test $gcc_cv_header_memcheck_h = yes; then
7363
7364cat >>confdefs.h <<\_ACEOF
7365#define HAVE_MEMCHECK_H 1
7366_ACEOF
7367
7368  fi
7369fi
7370
7371
7372
7373# Check whether --enable-mapped-location was given.
7374if test "${enable_mapped_location+set}" = set; then
7375  enableval=$enable_mapped_location;
7376else
7377  enable_mapped_location=no
7378fi
7379
7380
7381if test "$enable_mapped_location" = yes ; then
7382
7383cat >>confdefs.h <<\_ACEOF
7384#define USE_MAPPED_LOCATION 1
7385_ACEOF
7386
7387fi
7388
7389# Enable code coverage collection
7390# Check whether --enable-coverage was given.
7391if test "${enable_coverage+set}" = set; then
7392  enableval=$enable_coverage; case "${enableval}" in
7393  yes|noopt)
7394    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7395    ;;
7396  opt)
7397    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7398    ;;
7399  no)
7400    # a.k.a. --disable-coverage
7401    coverage_flags=""
7402    ;;
7403  *)
7404    { { $as_echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7405$as_echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7406   { (exit 1); exit 1; }; }
7407    ;;
7408esac
7409else
7410  coverage_flags=""
7411fi
7412
7413
7414
7415# Check whether --enable-gather-detailed-mem-stats was given.
7416if test "${enable_gather_detailed_mem_stats+set}" = set; then
7417  enableval=$enable_gather_detailed_mem_stats;
7418else
7419  enable_gather_detailed_mem_stats=no
7420fi
7421
7422if test x$enable_gather_detailed_mem_stats = xyes ; then
7423
7424cat >>confdefs.h <<\_ACEOF
7425#define GATHER_STATISTICS 1
7426_ACEOF
7427
7428fi
7429
7430# -------------------------------
7431# Miscenalleous configure options
7432# -------------------------------
7433
7434# With stabs
7435
7436# Check whether --with-stabs was given.
7437if test "${with_stabs+set}" = set; then
7438  withval=$with_stabs; stabs="$with_stabs"
7439else
7440  stabs=no
7441fi
7442
7443
7444# Determine whether or not multilibs are enabled.
7445# Check whether --enable-multilib was given.
7446if test "${enable_multilib+set}" = set; then
7447  enableval=$enable_multilib;
7448else
7449  enable_multilib=yes
7450fi
7451
7452
7453
7454# Enable __cxa_atexit for C++.
7455# Check whether --enable-__cxa_atexit was given.
7456if test "${enable___cxa_atexit+set}" = set; then
7457  enableval=$enable___cxa_atexit;
7458fi
7459
7460
7461# Enable threads
7462# Pass with no value to take the default
7463# Pass with a value to specify a thread package
7464# Check whether --enable-threads was given.
7465if test "${enable_threads+set}" = set; then
7466  enableval=$enable_threads;
7467else
7468  enable_threads=''
7469fi
7470
7471
7472# Check whether --enable-tls was given.
7473if test "${enable_tls+set}" = set; then
7474  enableval=$enable_tls;
7475  case $enable_tls in
7476    yes | no) ;;
7477    *) { { $as_echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7478Valid choices are 'yes' and 'no'." >&5
7479$as_echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7480Valid choices are 'yes' and 'no'." >&2;}
7481   { (exit 1); exit 1; }; } ;;
7482  esac
7483
7484else
7485  enable_tls=''
7486fi
7487
7488
7489# Check whether --enable-objc-gc was given.
7490if test "${enable_objc_gc+set}" = set; then
7491  enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7492	objc_boehm_gc=''
7493else
7494	objc_boehm_gc=1
7495fi
7496else
7497  objc_boehm_gc=''
7498fi
7499
7500
7501
7502# Check whether --with-dwarf2 was given.
7503if test "${with_dwarf2+set}" = set; then
7504  withval=$with_dwarf2; dwarf2="$with_dwarf2"
7505else
7506  dwarf2=no
7507fi
7508
7509
7510# Check whether --enable-shared was given.
7511if test "${enable_shared+set}" = set; then
7512  enableval=$enable_shared;
7513  case $enable_shared in
7514  yes | no) ;;
7515  *)
7516    enable_shared=no
7517    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7518    for pkg in $enableval; do
7519      if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7520        enable_shared=yes
7521      fi
7522    done
7523    IFS="$ac_save_ifs"
7524    ;;
7525  esac
7526
7527else
7528  enable_shared=yes
7529fi
7530
7531
7532
7533
7534# Check whether --with-build-sysroot was given.
7535if test "${with_build_sysroot+set}" = set; then
7536  withval=$with_build_sysroot;
7537fi
7538
7539
7540
7541# Check whether --with-sysroot was given.
7542if test "${with_sysroot+set}" = set; then
7543  withval=$with_sysroot;
7544 case ${with_sysroot} in
7545 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7546 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7547 esac
7548
7549 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7550 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7551
7552 if test "x$exec_prefix" = xNONE; then
7553  if test "x$prefix" = xNONE; then
7554   test_prefix=/usr/local
7555  else
7556   test_prefix=$prefix
7557  fi
7558 else
7559  test_prefix=$exec_prefix
7560 fi
7561 case ${TARGET_SYSTEM_ROOT} in
7562 "${test_prefix}"|"${test_prefix}/"*|\
7563 '${exec_prefix}'|'${exec_prefix}/'*)
7564   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7565   TARGET_SYSTEM_ROOT_DEFINE="$t"
7566   ;;
7567 esac
7568
7569else
7570
7571 TARGET_SYSTEM_ROOT=
7572 TARGET_SYSTEM_ROOT_DEFINE=
7573 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7574
7575fi
7576
7577
7578
7579
7580
7581# Build with intermodule optimisations
7582# Check whether --enable-intermodule was given.
7583if test "${enable_intermodule+set}" = set; then
7584  enableval=$enable_intermodule; case ${enable_intermodule} in
7585  yes) onestep="-onestep";;
7586  *) onestep="";;
7587esac
7588else
7589  onestep=""
7590fi
7591
7592
7593
7594# Sanity check enable_languages in case someone does not run the toplevel
7595# configure # script.
7596# Check whether --enable-languages was given.
7597if test "${enable_languages+set}" = set; then
7598  enableval=$enable_languages; case ,${enable_languages}, in
7599       ,,|,yes,)
7600		# go safe -- we cannot be much sure without the toplevel
7601		# configure's
7602		# analysis of which target libs are present and usable
7603		enable_languages=c
7604		;;
7605	 *,all,*)
7606		{ { $as_echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7607$as_echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7608   { (exit 1); exit 1; }; }
7609		;;
7610	*,c,*)
7611		;;
7612        *)
7613		enable_languages=c,${enable_languages}
7614		;;
7615esac
7616else
7617  enable_languages=c
7618fi
7619
7620
7621subdirs=
7622for lang in ${srcdir}/*/config-lang.in
7623do
7624	case $lang in
7625	# The odd quoting in the next line works around
7626	# an apparent bug in bash 1.12 on linux.
7627	${srcdir}/[*]/config-lang.in) ;;
7628	*)
7629	  lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
7630	  if test "x$lang_alias" = x
7631	  then
7632	        echo "$lang doesn't set \$language." 1>&2
7633	        exit 1
7634	  fi
7635	  case ",$enable_languages," in
7636	  *,$lang_alias,*)
7637	    subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7638	  esac
7639	  ;;
7640	esac
7641done
7642
7643
7644# -------------------------
7645# Checks for other programs
7646# -------------------------
7647
7648{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7649$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7650set x ${MAKE-make}
7651ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7652if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7653  $as_echo_n "(cached) " >&6
7654else
7655  cat >conftest.make <<\_ACEOF
7656SHELL = /bin/sh
7657all:
7658	@echo '@@@%%%=$(MAKE)=@@@%%%'
7659_ACEOF
7660# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7661case `${MAKE-make} -f conftest.make 2>/dev/null` in
7662  *@@@%%%=?*=@@@%%%*)
7663    eval ac_cv_prog_make_${ac_make}_set=yes;;
7664  *)
7665    eval ac_cv_prog_make_${ac_make}_set=no;;
7666esac
7667rm -f conftest.make
7668fi
7669if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7670  { $as_echo "$as_me:$LINENO: result: yes" >&5
7671$as_echo "yes" >&6; }
7672  SET_MAKE=
7673else
7674  { $as_echo "$as_me:$LINENO: result: no" >&5
7675$as_echo "no" >&6; }
7676  SET_MAKE="MAKE=${MAKE-make}"
7677fi
7678
7679
7680# Find some useful tools
7681for ac_prog in gawk mawk nawk awk
7682do
7683  # Extract the first word of "$ac_prog", so it can be a program name with args.
7684set dummy $ac_prog; ac_word=$2
7685{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7686$as_echo_n "checking for $ac_word... " >&6; }
7687if test "${ac_cv_prog_AWK+set}" = set; then
7688  $as_echo_n "(cached) " >&6
7689else
7690  if test -n "$AWK"; then
7691  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7692else
7693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694for as_dir in $PATH
7695do
7696  IFS=$as_save_IFS
7697  test -z "$as_dir" && as_dir=.
7698  for ac_exec_ext in '' $ac_executable_extensions; do
7699  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7700    ac_cv_prog_AWK="$ac_prog"
7701    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7702    break 2
7703  fi
7704done
7705done
7706IFS=$as_save_IFS
7707
7708fi
7709fi
7710AWK=$ac_cv_prog_AWK
7711if test -n "$AWK"; then
7712  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7713$as_echo "$AWK" >&6; }
7714else
7715  { $as_echo "$as_me:$LINENO: result: no" >&5
7716$as_echo "no" >&6; }
7717fi
7718
7719
7720  test -n "$AWK" && break
7721done
7722
7723# We need awk to create options.c and options.h.
7724# Bail out if it's missing.
7725case ${AWK} in
7726  "") { { $as_echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7727$as_echo "$as_me: error: can't build without awk, bailing out" >&2;}
7728   { (exit 1); exit 1; }; } ;;
7729esac
7730
7731{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7732$as_echo_n "checking whether ln -s works... " >&6; }
7733if test "${gcc_cv_prog_LN_S+set}" = set; then
7734  $as_echo_n "(cached) " >&6
7735else
7736  rm -f conftestdata_t
7737echo >conftestdata_f
7738if ln -s conftestdata_f conftestdata_t 2>/dev/null
7739then
7740  gcc_cv_prog_LN_S="ln -s"
7741else
7742  if ln conftestdata_f conftestdata_t 2>/dev/null
7743  then
7744    gcc_cv_prog_LN_S=ln
7745  else
7746    if cp -p conftestdata_f conftestdata_t 2>/dev/null
7747    then
7748      gcc_cv_prog_LN_S="cp -p"
7749    else
7750      gcc_cv_prog_LN_S=cp
7751    fi
7752  fi
7753fi
7754rm -f conftestdata_f conftestdata_t
7755
7756fi
7757LN_S="$gcc_cv_prog_LN_S"
7758if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7759  { $as_echo "$as_me:$LINENO: result: yes" >&5
7760$as_echo "yes" >&6; }
7761else
7762  if test "$gcc_cv_prog_LN_S" = "ln"; then
7763    { $as_echo "$as_me:$LINENO: result: no, using ln" >&5
7764$as_echo "no, using ln" >&6; }
7765  else
7766    { $as_echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7767$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7768  fi
7769fi
7770
7771{ $as_echo "$as_me:$LINENO: checking whether ln works" >&5
7772$as_echo_n "checking whether ln works... " >&6; }
7773if test "${acx_cv_prog_LN+set}" = set; then
7774  $as_echo_n "(cached) " >&6
7775else
7776  rm -f conftestdata_t
7777echo >conftestdata_f
7778if ln conftestdata_f conftestdata_t 2>/dev/null
7779then
7780  acx_cv_prog_LN=ln
7781else
7782  acx_cv_prog_LN=no
7783fi
7784rm -f conftestdata_f conftestdata_t
7785
7786fi
7787if test $acx_cv_prog_LN = no; then
7788  LN="$LN_S"
7789  { $as_echo "$as_me:$LINENO: result: no, using $LN" >&5
7790$as_echo "no, using $LN" >&6; }
7791else
7792  LN="$acx_cv_prog_LN"
7793  { $as_echo "$as_me:$LINENO: result: yes" >&5
7794$as_echo "yes" >&6; }
7795fi
7796
7797if test -n "$ac_tool_prefix"; then
7798  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7799set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7800{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7801$as_echo_n "checking for $ac_word... " >&6; }
7802if test "${ac_cv_prog_RANLIB+set}" = set; then
7803  $as_echo_n "(cached) " >&6
7804else
7805  if test -n "$RANLIB"; then
7806  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7807else
7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811  IFS=$as_save_IFS
7812  test -z "$as_dir" && as_dir=.
7813  for ac_exec_ext in '' $ac_executable_extensions; do
7814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7816    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817    break 2
7818  fi
7819done
7820done
7821IFS=$as_save_IFS
7822
7823fi
7824fi
7825RANLIB=$ac_cv_prog_RANLIB
7826if test -n "$RANLIB"; then
7827  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7828$as_echo "$RANLIB" >&6; }
7829else
7830  { $as_echo "$as_me:$LINENO: result: no" >&5
7831$as_echo "no" >&6; }
7832fi
7833
7834
7835fi
7836if test -z "$ac_cv_prog_RANLIB"; then
7837  ac_ct_RANLIB=$RANLIB
7838  # Extract the first word of "ranlib", so it can be a program name with args.
7839set dummy ranlib; ac_word=$2
7840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7841$as_echo_n "checking for $ac_word... " >&6; }
7842if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7843  $as_echo_n "(cached) " >&6
7844else
7845  if test -n "$ac_ct_RANLIB"; then
7846  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7847else
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  test -z "$as_dir" && as_dir=.
7853  for ac_exec_ext in '' $ac_executable_extensions; do
7854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855    ac_cv_prog_ac_ct_RANLIB="ranlib"
7856    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857    break 2
7858  fi
7859done
7860done
7861IFS=$as_save_IFS
7862
7863fi
7864fi
7865ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7866if test -n "$ac_ct_RANLIB"; then
7867  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7868$as_echo "$ac_ct_RANLIB" >&6; }
7869else
7870  { $as_echo "$as_me:$LINENO: result: no" >&5
7871$as_echo "no" >&6; }
7872fi
7873
7874  if test "x$ac_ct_RANLIB" = x; then
7875    RANLIB=":"
7876  else
7877    case $cross_compiling:$ac_tool_warned in
7878yes:)
7879{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7880whose name does not start with the host triplet.  If you think this
7881configuration is useful to you, please write to autoconf@gnu.org." >&5
7882$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7883whose name does not start with the host triplet.  If you think this
7884configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7885ac_tool_warned=yes ;;
7886esac
7887    RANLIB=$ac_ct_RANLIB
7888  fi
7889else
7890  RANLIB="$ac_cv_prog_RANLIB"
7891fi
7892
7893case "${host}" in
7894*-*-darwin*)
7895  # By default, the Darwin ranlib will not treat common symbols as
7896  # definitions when  building the archive table of contents.  Other
7897  # ranlibs do that; pass an option to the Darwin ranlib that makes
7898  # it behave similarly.
7899  ranlib_flags="-c"
7900  ;;
7901*)
7902  ranlib_flags=""
7903esac
7904
7905
7906# Find a good install program.  We prefer a C program (faster),
7907# so one script is as good as another.  But avoid the broken or
7908# incompatible versions:
7909# SysV /etc/install, /usr/sbin/install
7910# SunOS /usr/etc/install
7911# IRIX /sbin/install
7912# AIX /bin/install
7913# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7914# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7915# ./install, which can be erroneously created by make from ./install.sh.
7916{ $as_echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7917$as_echo_n "checking for a BSD compatible install... " >&6; }
7918if test -z "$INSTALL"; then
7919if test "${ac_cv_path_install+set}" = set; then
7920  $as_echo_n "(cached) " >&6
7921else
7922    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7923  for ac_dir in $PATH; do
7924    # Account for people who put trailing slashes in PATH elements.
7925    case "$ac_dir/" in
7926    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7927    *)
7928      # OSF1 and SCO ODT 3.0 have their own names for install.
7929      for ac_prog in ginstall scoinst install; do
7930        if test -f $ac_dir/$ac_prog; then
7931	  if test $ac_prog = install &&
7932            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7933	    # AIX install.  It has an incompatible calling convention.
7934	    # OSF/1 installbsd also uses dspmsg, but is usable.
7935	    :
7936	  else
7937	    ac_cv_path_install="$ac_dir/$ac_prog -c"
7938	    break 2
7939	  fi
7940	fi
7941      done
7942      ;;
7943    esac
7944  done
7945  IFS="$ac_save_IFS"
7946
7947fi
7948  if test "${ac_cv_path_install+set}" = set; then
7949    INSTALL="$ac_cv_path_install"
7950  else
7951    # As a last resort, use the slow shell script.  We don't cache a
7952    # path for INSTALL within a source directory, because that will
7953    # break other packages using the cache if that directory is
7954    # removed, or if the path is relative.
7955    INSTALL="$ac_install_sh"
7956  fi
7957fi
7958{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7959$as_echo "$INSTALL" >&6; }
7960
7961# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7962# It thinks the first close brace ends the variable substitution.
7963test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7964
7965test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7966
7967
7968# See if cmp has --ignore-initial.
7969{ $as_echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7970$as_echo_n "checking for cmp's capabilities... " >&6; }
7971if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7972  $as_echo_n "(cached) " >&6
7973else
7974   echo abfoo >t1
7975  echo cdfoo >t2
7976  gcc_cv_prog_cmp_skip=slowcompare
7977  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7978    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7979      :
7980    else
7981      gcc_cv_prog_cmp_skip=gnucompare
7982    fi
7983  fi
7984  if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7985    if cmp t1 t2 2 2 > /dev/null 2>&1; then
7986      if cmp t1 t2 1 1 > /dev/null 2>&1; then
7987        :
7988      else
7989        gcc_cv_prog_cmp_skip=fastcompare
7990      fi
7991    fi
7992  fi
7993  rm t1 t2
7994
7995fi
7996{ $as_echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7997$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7998make_compare_target=$gcc_cv_prog_cmp_skip
7999
8000
8001
8002# See if we have the mktemp command.
8003# Extract the first word of "mktemp", so it can be a program name with args.
8004set dummy mktemp; ac_word=$2
8005{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8006$as_echo_n "checking for $ac_word... " >&6; }
8007if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8008  $as_echo_n "(cached) " >&6
8009else
8010  if test -n "$have_mktemp_command"; then
8011  ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8012else
8013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014for as_dir in $PATH
8015do
8016  IFS=$as_save_IFS
8017  test -z "$as_dir" && as_dir=.
8018  for ac_exec_ext in '' $ac_executable_extensions; do
8019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8020    ac_cv_prog_have_mktemp_command="yes"
8021    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022    break 2
8023  fi
8024done
8025done
8026IFS=$as_save_IFS
8027
8028  test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8029fi
8030fi
8031have_mktemp_command=$ac_cv_prog_have_mktemp_command
8032if test -n "$have_mktemp_command"; then
8033  { $as_echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8034$as_echo "$have_mktemp_command" >&6; }
8035else
8036  { $as_echo "$as_me:$LINENO: result: no" >&5
8037$as_echo "no" >&6; }
8038fi
8039
8040
8041
8042MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
8043
8044# See if makeinfo has been installed and is modern enough
8045# that we can use it.
8046
8047ac_executable_extensions="$build_exeext"
8048
8049# Extract the first word of "makeinfo", so it can be a program name with args.
8050set dummy makeinfo; ac_word=$2
8051{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8052$as_echo_n "checking for $ac_word... " >&6; }
8053if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8054  $as_echo_n "(cached) " >&6
8055else
8056  if test -n "$MAKEINFO"; then
8057  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8058else
8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062  IFS=$as_save_IFS
8063  test -z "$as_dir" && as_dir=.
8064  for ac_exec_ext in '' $ac_executable_extensions; do
8065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066    ac_cv_prog_MAKEINFO="makeinfo"
8067    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068    break 2
8069  fi
8070done
8071done
8072IFS=$as_save_IFS
8073
8074fi
8075fi
8076MAKEINFO=$ac_cv_prog_MAKEINFO
8077if test -n "$MAKEINFO"; then
8078  { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8079$as_echo "$MAKEINFO" >&6; }
8080else
8081  { $as_echo "$as_me:$LINENO: result: no" >&5
8082$as_echo "no" >&6; }
8083fi
8084
8085
8086if test -n "$MAKEINFO"; then
8087  # Found it, now check the version.
8088  { $as_echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8089$as_echo_n "checking for modern makeinfo... " >&6; }
8090if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8091  $as_echo_n "(cached) " >&6
8092else
8093    ac_prog_version=`$MAKEINFO --version 2>&1 |
8094                   sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8095  echo "configure:8095: version of makeinfo is $ac_prog_version" >&5
8096  case $ac_prog_version in
8097    '')     gcc_cv_prog_makeinfo_modern=no;;
8098    4.[2-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)
8099            gcc_cv_prog_makeinfo_modern=yes;;
8100    *)      gcc_cv_prog_makeinfo_modern=no;;
8101  esac
8102
8103fi
8104{ $as_echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8105$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8106else
8107  gcc_cv_prog_makeinfo_modern=no
8108fi
8109
8110if test $gcc_cv_prog_makeinfo_modern = no; then
8111  MAKEINFO="$MISSING makeinfo"
8112  { $as_echo "$as_me:$LINENO: WARNING:
8113*** Makeinfo is missing or too old.
8114*** Info documentation will not be built." >&5
8115$as_echo "$as_me: WARNING:
8116*** Makeinfo is missing or too old.
8117*** Info documentation will not be built." >&2;}
8118  BUILD_INFO=
8119else
8120  BUILD_INFO=info
8121fi
8122
8123
8124# Is pod2man recent enough to regenerate manpages?
8125{ $as_echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8126$as_echo_n "checking for recent Pod::Man... " >&6; }
8127if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8128  { $as_echo "$as_me:$LINENO: result: yes" >&5
8129$as_echo "yes" >&6; }
8130  GENERATED_MANPAGES=generated-manpages
8131else
8132  { $as_echo "$as_me:$LINENO: result: no" >&5
8133$as_echo "no" >&6; }
8134  GENERATED_MANPAGES=
8135fi
8136
8137
8138# How about lex?
8139for ac_prog in flex
8140do
8141  # Extract the first word of "$ac_prog", so it can be a program name with args.
8142set dummy $ac_prog; ac_word=$2
8143{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8144$as_echo_n "checking for $ac_word... " >&6; }
8145if test "${ac_cv_prog_FLEX+set}" = set; then
8146  $as_echo_n "(cached) " >&6
8147else
8148  if test -n "$FLEX"; then
8149  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8150else
8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152for as_dir in $PATH
8153do
8154  IFS=$as_save_IFS
8155  test -z "$as_dir" && as_dir=.
8156  for ac_exec_ext in '' $ac_executable_extensions; do
8157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8158    ac_cv_prog_FLEX="$ac_prog"
8159    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160    break 2
8161  fi
8162done
8163done
8164IFS=$as_save_IFS
8165
8166fi
8167fi
8168FLEX=$ac_cv_prog_FLEX
8169if test -n "$FLEX"; then
8170  { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
8171$as_echo "$FLEX" >&6; }
8172else
8173  { $as_echo "$as_me:$LINENO: result: no" >&5
8174$as_echo "no" >&6; }
8175fi
8176
8177
8178  test -n "$FLEX" && break
8179done
8180test -n "$FLEX" || FLEX="$MISSING flex"
8181
8182
8183# Bison?
8184for ac_prog in bison
8185do
8186  # Extract the first word of "$ac_prog", so it can be a program name with args.
8187set dummy $ac_prog; ac_word=$2
8188{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8189$as_echo_n "checking for $ac_word... " >&6; }
8190if test "${ac_cv_prog_BISON+set}" = set; then
8191  $as_echo_n "(cached) " >&6
8192else
8193  if test -n "$BISON"; then
8194  ac_cv_prog_BISON="$BISON" # Let the user override the test.
8195else
8196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH
8198do
8199  IFS=$as_save_IFS
8200  test -z "$as_dir" && as_dir=.
8201  for ac_exec_ext in '' $ac_executable_extensions; do
8202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8203    ac_cv_prog_BISON="$ac_prog"
8204    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8205    break 2
8206  fi
8207done
8208done
8209IFS=$as_save_IFS
8210
8211fi
8212fi
8213BISON=$ac_cv_prog_BISON
8214if test -n "$BISON"; then
8215  { $as_echo "$as_me:$LINENO: result: $BISON" >&5
8216$as_echo "$BISON" >&6; }
8217else
8218  { $as_echo "$as_me:$LINENO: result: no" >&5
8219$as_echo "no" >&6; }
8220fi
8221
8222
8223  test -n "$BISON" && break
8224done
8225test -n "$BISON" || BISON="$MISSING bison"
8226
8227
8228# Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8229# check for build == host before using them.
8230
8231# NM
8232if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8233  && test -d ../binutils ; then
8234  NM='$(objdir)/../binutils/nm-new'
8235else
8236  # Extract the first word of "nm", so it can be a program name with args.
8237set dummy nm; ac_word=$2
8238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8239$as_echo_n "checking for $ac_word... " >&6; }
8240if test "${ac_cv_prog_NM+set}" = set; then
8241  $as_echo_n "(cached) " >&6
8242else
8243  if test -n "$NM"; then
8244  ac_cv_prog_NM="$NM" # Let the user override the test.
8245else
8246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247for as_dir in $PATH
8248do
8249  IFS=$as_save_IFS
8250  test -z "$as_dir" && as_dir=.
8251  for ac_exec_ext in '' $ac_executable_extensions; do
8252  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8253    ac_cv_prog_NM="nm"
8254    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255    break 2
8256  fi
8257done
8258done
8259IFS=$as_save_IFS
8260
8261  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8262fi
8263fi
8264NM=$ac_cv_prog_NM
8265if test -n "$NM"; then
8266  { $as_echo "$as_me:$LINENO: result: $NM" >&5
8267$as_echo "$NM" >&6; }
8268else
8269  { $as_echo "$as_me:$LINENO: result: no" >&5
8270$as_echo "no" >&6; }
8271fi
8272
8273
8274fi
8275
8276# AR
8277if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8278  && test -d ../binutils ; then
8279  AR='$(objdir)/../binutils/ar'
8280else
8281  # Extract the first word of "ar", so it can be a program name with args.
8282set dummy ar; ac_word=$2
8283{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8284$as_echo_n "checking for $ac_word... " >&6; }
8285if test "${ac_cv_prog_AR+set}" = set; then
8286  $as_echo_n "(cached) " >&6
8287else
8288  if test -n "$AR"; then
8289  ac_cv_prog_AR="$AR" # Let the user override the test.
8290else
8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294  IFS=$as_save_IFS
8295  test -z "$as_dir" && as_dir=.
8296  for ac_exec_ext in '' $ac_executable_extensions; do
8297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8298    ac_cv_prog_AR="ar"
8299    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300    break 2
8301  fi
8302done
8303done
8304IFS=$as_save_IFS
8305
8306  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8307fi
8308fi
8309AR=$ac_cv_prog_AR
8310if test -n "$AR"; then
8311  { $as_echo "$as_me:$LINENO: result: $AR" >&5
8312$as_echo "$AR" >&6; }
8313else
8314  { $as_echo "$as_me:$LINENO: result: no" >&5
8315$as_echo "no" >&6; }
8316fi
8317
8318
8319fi
8320
8321
8322# --------------------
8323# Checks for C headers
8324# --------------------
8325
8326{ $as_echo "$as_me:$LINENO: checking for GNU C library" >&5
8327$as_echo_n "checking for GNU C library... " >&6; }
8328if test "${gcc_cv_glibc+set}" = set; then
8329  $as_echo_n "(cached) " >&6
8330else
8331  cat >conftest.$ac_ext <<_ACEOF
8332/* confdefs.h.  */
8333_ACEOF
8334cat confdefs.h >>conftest.$ac_ext
8335cat >>conftest.$ac_ext <<_ACEOF
8336/* end confdefs.h.  */
8337#include <features.h>
8338int
8339main ()
8340{
8341
8342#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
8343#error Not a GNU C library system
8344#endif
8345  ;
8346  return 0;
8347}
8348_ACEOF
8349rm -f conftest.$ac_objext
8350if { (ac_try="$ac_compile"
8351case "(($ac_try" in
8352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353  *) ac_try_echo=$ac_try;;
8354esac
8355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8356$as_echo "$ac_try_echo") >&5
8357  (eval "$ac_compile") 2>conftest.er1
8358  ac_status=$?
8359  grep -v '^ *+' conftest.er1 >conftest.err
8360  rm -f conftest.er1
8361  cat conftest.err >&5
8362  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363  (exit $ac_status); } && {
8364	 test -z "$ac_c_werror_flag" ||
8365	 test ! -s conftest.err
8366       } && test -s conftest.$ac_objext; then
8367  gcc_cv_glibc=yes
8368else
8369  $as_echo "$as_me: failed program was:" >&5
8370sed 's/^/| /' conftest.$ac_ext >&5
8371
8372	gcc_cv_glibc=no
8373fi
8374
8375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376fi
8377
8378{ $as_echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8379$as_echo "$gcc_cv_glibc" >&6; }
8380if test $gcc_cv_glibc = yes; then
8381
8382cat >>confdefs.h <<\_ACEOF
8383#define _GNU_SOURCE 1
8384_ACEOF
8385
8386fi
8387
8388# Need to reject headers which give warnings, so that the -Werror bootstrap
8389# works later. *sigh*  This needs to come before all header checks.
8390
8391ac_c_preproc_warn_flag=yes
8392
8393{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8394$as_echo_n "checking for ANSI C header files... " >&6; }
8395if test "${ac_cv_header_stdc+set}" = set; then
8396  $as_echo_n "(cached) " >&6
8397else
8398  cat >conftest.$ac_ext <<_ACEOF
8399/* confdefs.h.  */
8400_ACEOF
8401cat confdefs.h >>conftest.$ac_ext
8402cat >>conftest.$ac_ext <<_ACEOF
8403/* end confdefs.h.  */
8404#include <stdlib.h>
8405#include <stdarg.h>
8406#include <string.h>
8407#include <float.h>
8408
8409int
8410main ()
8411{
8412
8413  ;
8414  return 0;
8415}
8416_ACEOF
8417rm -f conftest.$ac_objext
8418if { (ac_try="$ac_compile"
8419case "(($ac_try" in
8420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421  *) ac_try_echo=$ac_try;;
8422esac
8423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8424$as_echo "$ac_try_echo") >&5
8425  (eval "$ac_compile") 2>conftest.er1
8426  ac_status=$?
8427  grep -v '^ *+' conftest.er1 >conftest.err
8428  rm -f conftest.er1
8429  cat conftest.err >&5
8430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431  (exit $ac_status); } && {
8432	 test -z "$ac_c_werror_flag" ||
8433	 test ! -s conftest.err
8434       } && test -s conftest.$ac_objext; then
8435  ac_cv_header_stdc=yes
8436else
8437  $as_echo "$as_me: failed program was:" >&5
8438sed 's/^/| /' conftest.$ac_ext >&5
8439
8440	ac_cv_header_stdc=no
8441fi
8442
8443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444
8445if test $ac_cv_header_stdc = yes; then
8446  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8447  cat >conftest.$ac_ext <<_ACEOF
8448/* confdefs.h.  */
8449_ACEOF
8450cat confdefs.h >>conftest.$ac_ext
8451cat >>conftest.$ac_ext <<_ACEOF
8452/* end confdefs.h.  */
8453#include <string.h>
8454
8455_ACEOF
8456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8457  $EGREP "memchr" >/dev/null 2>&1; then
8458  :
8459else
8460  ac_cv_header_stdc=no
8461fi
8462rm -f conftest*
8463
8464fi
8465
8466if test $ac_cv_header_stdc = yes; then
8467  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8468  cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h.  */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h.  */
8474#include <stdlib.h>
8475
8476_ACEOF
8477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8478  $EGREP "free" >/dev/null 2>&1; then
8479  :
8480else
8481  ac_cv_header_stdc=no
8482fi
8483rm -f conftest*
8484
8485fi
8486
8487if test $ac_cv_header_stdc = yes; then
8488  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8489  if test "$cross_compiling" = yes; then
8490  :
8491else
8492  cat >conftest.$ac_ext <<_ACEOF
8493/* confdefs.h.  */
8494_ACEOF
8495cat confdefs.h >>conftest.$ac_ext
8496cat >>conftest.$ac_ext <<_ACEOF
8497/* end confdefs.h.  */
8498#include <ctype.h>
8499#include <stdlib.h>
8500#if ((' ' & 0x0FF) == 0x020)
8501# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8502# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8503#else
8504# define ISLOWER(c) \
8505		   (('a' <= (c) && (c) <= 'i') \
8506		     || ('j' <= (c) && (c) <= 'r') \
8507		     || ('s' <= (c) && (c) <= 'z'))
8508# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8509#endif
8510
8511#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8512int
8513main ()
8514{
8515  int i;
8516  for (i = 0; i < 256; i++)
8517    if (XOR (islower (i), ISLOWER (i))
8518	|| toupper (i) != TOUPPER (i))
8519      return 2;
8520  return 0;
8521}
8522_ACEOF
8523rm -f conftest$ac_exeext
8524if { (ac_try="$ac_link"
8525case "(($ac_try" in
8526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527  *) ac_try_echo=$ac_try;;
8528esac
8529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530$as_echo "$ac_try_echo") >&5
8531  (eval "$ac_link") 2>&5
8532  ac_status=$?
8533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8535  { (case "(($ac_try" in
8536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537  *) ac_try_echo=$ac_try;;
8538esac
8539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8540$as_echo "$ac_try_echo") >&5
8541  (eval "$ac_try") 2>&5
8542  ac_status=$?
8543  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544  (exit $ac_status); }; }; then
8545  :
8546else
8547  $as_echo "$as_me: program exited with status $ac_status" >&5
8548$as_echo "$as_me: failed program was:" >&5
8549sed 's/^/| /' conftest.$ac_ext >&5
8550
8551( exit $ac_status )
8552ac_cv_header_stdc=no
8553fi
8554rm -rf conftest.dSYM
8555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8556fi
8557
8558
8559fi
8560fi
8561{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8562$as_echo "$ac_cv_header_stdc" >&6; }
8563if test $ac_cv_header_stdc = yes; then
8564
8565cat >>confdefs.h <<\_ACEOF
8566#define STDC_HEADERS 1
8567_ACEOF
8568
8569fi
8570
8571{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8572$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8573if test "${ac_cv_header_time+set}" = set; then
8574  $as_echo_n "(cached) " >&6
8575else
8576  cat >conftest.$ac_ext <<_ACEOF
8577/* confdefs.h.  */
8578_ACEOF
8579cat confdefs.h >>conftest.$ac_ext
8580cat >>conftest.$ac_ext <<_ACEOF
8581/* end confdefs.h.  */
8582#include <sys/types.h>
8583#include <sys/time.h>
8584#include <time.h>
8585
8586int
8587main ()
8588{
8589if ((struct tm *) 0)
8590return 0;
8591  ;
8592  return 0;
8593}
8594_ACEOF
8595rm -f conftest.$ac_objext
8596if { (ac_try="$ac_compile"
8597case "(($ac_try" in
8598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599  *) ac_try_echo=$ac_try;;
8600esac
8601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602$as_echo "$ac_try_echo") >&5
8603  (eval "$ac_compile") 2>conftest.er1
8604  ac_status=$?
8605  grep -v '^ *+' conftest.er1 >conftest.err
8606  rm -f conftest.er1
8607  cat conftest.err >&5
8608  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609  (exit $ac_status); } && {
8610	 test -z "$ac_c_werror_flag" ||
8611	 test ! -s conftest.err
8612       } && test -s conftest.$ac_objext; then
8613  ac_cv_header_time=yes
8614else
8615  $as_echo "$as_me: failed program was:" >&5
8616sed 's/^/| /' conftest.$ac_ext >&5
8617
8618	ac_cv_header_time=no
8619fi
8620
8621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622fi
8623{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8624$as_echo "$ac_cv_header_time" >&6; }
8625if test $ac_cv_header_time = yes; then
8626
8627cat >>confdefs.h <<\_ACEOF
8628#define TIME_WITH_SYS_TIME 1
8629_ACEOF
8630
8631fi
8632
8633{ $as_echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8634$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8635if test "${gcc_cv_header_string+set}" = set; then
8636  $as_echo_n "(cached) " >&6
8637else
8638  cat >conftest.$ac_ext <<_ACEOF
8639/* confdefs.h.  */
8640_ACEOF
8641cat confdefs.h >>conftest.$ac_ext
8642cat >>conftest.$ac_ext <<_ACEOF
8643/* end confdefs.h.  */
8644#include <string.h>
8645#include <strings.h>
8646int
8647main ()
8648{
8649
8650  ;
8651  return 0;
8652}
8653_ACEOF
8654rm -f conftest.$ac_objext
8655if { (ac_try="$ac_compile"
8656case "(($ac_try" in
8657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658  *) ac_try_echo=$ac_try;;
8659esac
8660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8661$as_echo "$ac_try_echo") >&5
8662  (eval "$ac_compile") 2>conftest.er1
8663  ac_status=$?
8664  grep -v '^ *+' conftest.er1 >conftest.err
8665  rm -f conftest.er1
8666  cat conftest.err >&5
8667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); } && {
8669	 test -z "$ac_c_werror_flag" ||
8670	 test ! -s conftest.err
8671       } && test -s conftest.$ac_objext; then
8672  gcc_cv_header_string=yes
8673else
8674  $as_echo "$as_me: failed program was:" >&5
8675sed 's/^/| /' conftest.$ac_ext >&5
8676
8677	gcc_cv_header_string=no
8678fi
8679
8680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681fi
8682{ $as_echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8683$as_echo "$gcc_cv_header_string" >&6; }
8684if test $gcc_cv_header_string = yes; then
8685
8686cat >>confdefs.h <<\_ACEOF
8687#define STRING_WITH_STRINGS 1
8688_ACEOF
8689
8690fi
8691
8692{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8693$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8694if test "${ac_cv_header_sys_wait_h+set}" = set; then
8695  $as_echo_n "(cached) " >&6
8696else
8697  cat >conftest.$ac_ext <<_ACEOF
8698/* confdefs.h.  */
8699_ACEOF
8700cat confdefs.h >>conftest.$ac_ext
8701cat >>conftest.$ac_ext <<_ACEOF
8702/* end confdefs.h.  */
8703#include <sys/types.h>
8704#include <sys/wait.h>
8705#ifndef WEXITSTATUS
8706# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8707#endif
8708#ifndef WIFEXITED
8709# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8710#endif
8711
8712int
8713main ()
8714{
8715  int s;
8716  wait (&s);
8717  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8718  ;
8719  return 0;
8720}
8721_ACEOF
8722rm -f conftest.$ac_objext
8723if { (ac_try="$ac_compile"
8724case "(($ac_try" in
8725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726  *) ac_try_echo=$ac_try;;
8727esac
8728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8729$as_echo "$ac_try_echo") >&5
8730  (eval "$ac_compile") 2>conftest.er1
8731  ac_status=$?
8732  grep -v '^ *+' conftest.er1 >conftest.err
8733  rm -f conftest.er1
8734  cat conftest.err >&5
8735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736  (exit $ac_status); } && {
8737	 test -z "$ac_c_werror_flag" ||
8738	 test ! -s conftest.err
8739       } && test -s conftest.$ac_objext; then
8740  ac_cv_header_sys_wait_h=yes
8741else
8742  $as_echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745	ac_cv_header_sys_wait_h=no
8746fi
8747
8748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749fi
8750{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8751$as_echo "$ac_cv_header_sys_wait_h" >&6; }
8752if test $ac_cv_header_sys_wait_h = yes; then
8753
8754cat >>confdefs.h <<\_ACEOF
8755#define HAVE_SYS_WAIT_H 1
8756_ACEOF
8757
8758fi
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8783		 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8784		 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8785		 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8786do
8787as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8788{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8789$as_echo_n "checking for $ac_header... " >&6; }
8790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8791  $as_echo_n "(cached) " >&6
8792else
8793  cat >conftest.$ac_ext <<_ACEOF
8794/* confdefs.h.  */
8795_ACEOF
8796cat confdefs.h >>conftest.$ac_ext
8797cat >>conftest.$ac_ext <<_ACEOF
8798/* end confdefs.h.  */
8799#include <$ac_header>
8800_ACEOF
8801if { (ac_try="$ac_cpp conftest.$ac_ext"
8802case "(($ac_try" in
8803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804  *) ac_try_echo=$ac_try;;
8805esac
8806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8807$as_echo "$ac_try_echo") >&5
8808  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8809  ac_status=$?
8810  grep -v '^ *+' conftest.er1 >conftest.err
8811  rm -f conftest.er1
8812  cat conftest.err >&5
8813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814  (exit $ac_status); } >/dev/null && {
8815	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8816	 test ! -s conftest.err
8817       }; then
8818  eval "$as_ac_Header=yes"
8819else
8820  $as_echo "$as_me: failed program was:" >&5
8821sed 's/^/| /' conftest.$ac_ext >&5
8822
8823  eval "$as_ac_Header=no"
8824fi
8825
8826rm -f conftest.err conftest.$ac_ext
8827fi
8828ac_res=`eval 'as_val=${'$as_ac_Header'}
8829		 $as_echo "$as_val"'`
8830	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8831$as_echo "$ac_res" >&6; }
8832if test `eval 'as_val=${'$as_ac_Header'}
8833		 $as_echo "$as_val"'` = yes; then
8834  cat >>confdefs.h <<_ACEOF
8835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8836_ACEOF
8837
8838fi
8839done
8840
8841
8842# Check for thread headers.
8843{ $as_echo "$as_me:$LINENO: checking for thread.h" >&5
8844$as_echo_n "checking for thread.h... " >&6; }
8845if test "${ac_cv_header_thread_h+set}" = set; then
8846  $as_echo_n "(cached) " >&6
8847else
8848  cat >conftest.$ac_ext <<_ACEOF
8849/* confdefs.h.  */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
8853/* end confdefs.h.  */
8854#include <thread.h>
8855_ACEOF
8856if { (ac_try="$ac_cpp conftest.$ac_ext"
8857case "(($ac_try" in
8858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859  *) ac_try_echo=$ac_try;;
8860esac
8861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8862$as_echo "$ac_try_echo") >&5
8863  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8864  ac_status=$?
8865  grep -v '^ *+' conftest.er1 >conftest.err
8866  rm -f conftest.er1
8867  cat conftest.err >&5
8868  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869  (exit $ac_status); } >/dev/null && {
8870	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8871	 test ! -s conftest.err
8872       }; then
8873  ac_cv_header_thread_h=yes
8874else
8875  $as_echo "$as_me: failed program was:" >&5
8876sed 's/^/| /' conftest.$ac_ext >&5
8877
8878  ac_cv_header_thread_h=no
8879fi
8880
8881rm -f conftest.err conftest.$ac_ext
8882fi
8883{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8884$as_echo "$ac_cv_header_thread_h" >&6; }
8885if test $ac_cv_header_thread_h = yes; then
8886  have_thread_h=yes
8887else
8888  have_thread_h=
8889fi
8890
8891{ $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
8892$as_echo_n "checking for pthread.h... " >&6; }
8893if test "${ac_cv_header_pthread_h+set}" = set; then
8894  $as_echo_n "(cached) " >&6
8895else
8896  cat >conftest.$ac_ext <<_ACEOF
8897/* confdefs.h.  */
8898_ACEOF
8899cat confdefs.h >>conftest.$ac_ext
8900cat >>conftest.$ac_ext <<_ACEOF
8901/* end confdefs.h.  */
8902#include <pthread.h>
8903_ACEOF
8904if { (ac_try="$ac_cpp conftest.$ac_ext"
8905case "(($ac_try" in
8906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907  *) ac_try_echo=$ac_try;;
8908esac
8909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8910$as_echo "$ac_try_echo") >&5
8911  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8912  ac_status=$?
8913  grep -v '^ *+' conftest.er1 >conftest.err
8914  rm -f conftest.er1
8915  cat conftest.err >&5
8916  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917  (exit $ac_status); } >/dev/null && {
8918	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8919	 test ! -s conftest.err
8920       }; then
8921  ac_cv_header_pthread_h=yes
8922else
8923  $as_echo "$as_me: failed program was:" >&5
8924sed 's/^/| /' conftest.$ac_ext >&5
8925
8926  ac_cv_header_pthread_h=no
8927fi
8928
8929rm -f conftest.err conftest.$ac_ext
8930fi
8931{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8932$as_echo "$ac_cv_header_pthread_h" >&6; }
8933if test $ac_cv_header_pthread_h = yes; then
8934  have_pthread_h=yes
8935else
8936  have_pthread_h=
8937fi
8938
8939
8940# These tests can't be done till we know if we have limits.h.
8941{ $as_echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8942$as_echo_n "checking for CHAR_BIT... " >&6; }
8943if test "${gcc_cv_decl_char_bit+set}" = set; then
8944  $as_echo_n "(cached) " >&6
8945else
8946  cat >conftest.$ac_ext <<_ACEOF
8947/* confdefs.h.  */
8948_ACEOF
8949cat confdefs.h >>conftest.$ac_ext
8950cat >>conftest.$ac_ext <<_ACEOF
8951/* end confdefs.h.  */
8952#ifdef HAVE_LIMITS_H
8953#include <limits.h>
8954#endif
8955#ifdef CHAR_BIT
8956found
8957#endif
8958_ACEOF
8959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8960  $EGREP "found" >/dev/null 2>&1; then
8961  gcc_cv_decl_char_bit=yes
8962else
8963  gcc_cv_decl_char_bit=no
8964fi
8965rm -f conftest*
8966
8967
8968fi
8969{ $as_echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8970$as_echo "$gcc_cv_decl_char_bit" >&6; }
8971if test $gcc_cv_decl_char_bit = no; then
8972  { $as_echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8973$as_echo_n "checking number of bits in a byte... " >&6; }
8974if test "${gcc_cv_c_nbby+set}" = set; then
8975  $as_echo_n "(cached) " >&6
8976else
8977  i=8
8978 gcc_cv_c_nbby=
8979 while test $i -lt 65; do
8980   cat >conftest.$ac_ext <<_ACEOF
8981/* confdefs.h.  */
8982_ACEOF
8983cat confdefs.h >>conftest.$ac_ext
8984cat >>conftest.$ac_ext <<_ACEOF
8985/* end confdefs.h.  */
8986
8987int
8988main ()
8989{
8990switch(0) {
8991  case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8992  case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8993  ; }
8994  ;
8995  return 0;
8996}
8997_ACEOF
8998rm -f conftest.$ac_objext
8999if { (ac_try="$ac_compile"
9000case "(($ac_try" in
9001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002  *) ac_try_echo=$ac_try;;
9003esac
9004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9005$as_echo "$ac_try_echo") >&5
9006  (eval "$ac_compile") 2>conftest.er1
9007  ac_status=$?
9008  grep -v '^ *+' conftest.er1 >conftest.err
9009  rm -f conftest.er1
9010  cat conftest.err >&5
9011  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012  (exit $ac_status); } && {
9013	 test -z "$ac_c_werror_flag" ||
9014	 test ! -s conftest.err
9015       } && test -s conftest.$ac_objext; then
9016  gcc_cv_c_nbby=$i; break
9017else
9018  $as_echo "$as_me: failed program was:" >&5
9019sed 's/^/| /' conftest.$ac_ext >&5
9020
9021
9022fi
9023
9024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025   i=`expr $i + 1`
9026 done
9027 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9028
9029fi
9030{ $as_echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9031$as_echo "$gcc_cv_c_nbby" >&6; }
9032if test $gcc_cv_c_nbby = failed; then
9033  { { $as_echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9034$as_echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9035   { (exit 1); exit 1; }; }
9036else
9037
9038cat >>confdefs.h <<_ACEOF
9039#define CHAR_BIT $gcc_cv_c_nbby
9040_ACEOF
9041
9042fi
9043fi
9044
9045 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9046$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9047if test "${ac_cv_c_bigendian+set}" = set; then
9048  $as_echo_n "(cached) " >&6
9049else
9050  ac_cv_c_bigendian=unknown
9051    # See if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined.
9052       cat >conftest.$ac_ext <<_ACEOF
9053/* confdefs.h.  */
9054_ACEOF
9055cat confdefs.h >>conftest.$ac_ext
9056cat >>conftest.$ac_ext <<_ACEOF
9057/* end confdefs.h.  */
9058#ifdef __NetBSD__
9059	always fail this on netbsd;
9060#endif
9061#if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__)
9062	       neither is defined;
9063	     #endif
9064	     typedef int dummy;
9065
9066_ACEOF
9067rm -f conftest.$ac_objext
9068if { (ac_try="$ac_compile"
9069case "(($ac_try" in
9070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071  *) ac_try_echo=$ac_try;;
9072esac
9073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9074$as_echo "$ac_try_echo") >&5
9075  (eval "$ac_compile") 2>conftest.er1
9076  ac_status=$?
9077  grep -v '^ *+' conftest.er1 >conftest.err
9078  rm -f conftest.er1
9079  cat conftest.err >&5
9080  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081  (exit $ac_status); } && {
9082	 test -z "$ac_c_werror_flag" ||
9083	 test ! -s conftest.err
9084       } && test -s conftest.$ac_objext; then
9085  ac_cv_c_bigendian=universal
9086else
9087  $as_echo "$as_me: failed program was:" >&5
9088sed 's/^/| /' conftest.$ac_ext >&5
9089
9090
9091fi
9092
9093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094    if test $ac_cv_c_bigendian = unknown; then
9095      # See if sys/param.h defines the BYTE_ORDER macro.
9096      cat >conftest.$ac_ext <<_ACEOF
9097/* confdefs.h.  */
9098_ACEOF
9099cat confdefs.h >>conftest.$ac_ext
9100cat >>conftest.$ac_ext <<_ACEOF
9101/* end confdefs.h.  */
9102#include <sys/types.h>
9103	     #include <sys/param.h>
9104
9105int
9106main ()
9107{
9108#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9109		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9110		     && LITTLE_ENDIAN)
9111	      bogus endian macros
9112	     #endif
9113
9114  ;
9115  return 0;
9116}
9117_ACEOF
9118rm -f conftest.$ac_objext
9119if { (ac_try="$ac_compile"
9120case "(($ac_try" in
9121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122  *) ac_try_echo=$ac_try;;
9123esac
9124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9125$as_echo "$ac_try_echo") >&5
9126  (eval "$ac_compile") 2>conftest.er1
9127  ac_status=$?
9128  grep -v '^ *+' conftest.er1 >conftest.err
9129  rm -f conftest.er1
9130  cat conftest.err >&5
9131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132  (exit $ac_status); } && {
9133	 test -z "$ac_c_werror_flag" ||
9134	 test ! -s conftest.err
9135       } && test -s conftest.$ac_objext; then
9136  # It does; now see whether it defined to BIG_ENDIAN or not.
9137	 cat >conftest.$ac_ext <<_ACEOF
9138/* confdefs.h.  */
9139_ACEOF
9140cat confdefs.h >>conftest.$ac_ext
9141cat >>conftest.$ac_ext <<_ACEOF
9142/* end confdefs.h.  */
9143#include <sys/types.h>
9144		#include <sys/param.h>
9145
9146int
9147main ()
9148{
9149#if BYTE_ORDER != BIG_ENDIAN
9150		 not big endian
9151		#endif
9152
9153  ;
9154  return 0;
9155}
9156_ACEOF
9157rm -f conftest.$ac_objext
9158if { (ac_try="$ac_compile"
9159case "(($ac_try" in
9160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161  *) ac_try_echo=$ac_try;;
9162esac
9163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9164$as_echo "$ac_try_echo") >&5
9165  (eval "$ac_compile") 2>conftest.er1
9166  ac_status=$?
9167  grep -v '^ *+' conftest.er1 >conftest.err
9168  rm -f conftest.er1
9169  cat conftest.err >&5
9170  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171  (exit $ac_status); } && {
9172	 test -z "$ac_c_werror_flag" ||
9173	 test ! -s conftest.err
9174       } && test -s conftest.$ac_objext; then
9175  ac_cv_c_bigendian=yes
9176else
9177  $as_echo "$as_me: failed program was:" >&5
9178sed 's/^/| /' conftest.$ac_ext >&5
9179
9180	ac_cv_c_bigendian=no
9181fi
9182
9183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184else
9185  $as_echo "$as_me: failed program was:" >&5
9186sed 's/^/| /' conftest.$ac_ext >&5
9187
9188
9189fi
9190
9191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9192    fi
9193    if test $ac_cv_c_bigendian = unknown; then
9194      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9195      cat >conftest.$ac_ext <<_ACEOF
9196/* confdefs.h.  */
9197_ACEOF
9198cat confdefs.h >>conftest.$ac_ext
9199cat >>conftest.$ac_ext <<_ACEOF
9200/* end confdefs.h.  */
9201#include <limits.h>
9202
9203int
9204main ()
9205{
9206#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9207	      bogus endian macros
9208	     #endif
9209
9210  ;
9211  return 0;
9212}
9213_ACEOF
9214rm -f conftest.$ac_objext
9215if { (ac_try="$ac_compile"
9216case "(($ac_try" in
9217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218  *) ac_try_echo=$ac_try;;
9219esac
9220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9221$as_echo "$ac_try_echo") >&5
9222  (eval "$ac_compile") 2>conftest.er1
9223  ac_status=$?
9224  grep -v '^ *+' conftest.er1 >conftest.err
9225  rm -f conftest.er1
9226  cat conftest.err >&5
9227  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228  (exit $ac_status); } && {
9229	 test -z "$ac_c_werror_flag" ||
9230	 test ! -s conftest.err
9231       } && test -s conftest.$ac_objext; then
9232  # It does; now see whether it defined to _BIG_ENDIAN or not.
9233	 cat >conftest.$ac_ext <<_ACEOF
9234/* confdefs.h.  */
9235_ACEOF
9236cat confdefs.h >>conftest.$ac_ext
9237cat >>conftest.$ac_ext <<_ACEOF
9238/* end confdefs.h.  */
9239#include <limits.h>
9240
9241int
9242main ()
9243{
9244#ifndef _BIG_ENDIAN
9245		 not big endian
9246		#endif
9247
9248  ;
9249  return 0;
9250}
9251_ACEOF
9252rm -f conftest.$ac_objext
9253if { (ac_try="$ac_compile"
9254case "(($ac_try" in
9255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256  *) ac_try_echo=$ac_try;;
9257esac
9258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9259$as_echo "$ac_try_echo") >&5
9260  (eval "$ac_compile") 2>conftest.er1
9261  ac_status=$?
9262  grep -v '^ *+' conftest.er1 >conftest.err
9263  rm -f conftest.er1
9264  cat conftest.err >&5
9265  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266  (exit $ac_status); } && {
9267	 test -z "$ac_c_werror_flag" ||
9268	 test ! -s conftest.err
9269       } && test -s conftest.$ac_objext; then
9270  ac_cv_c_bigendian=yes
9271else
9272  $as_echo "$as_me: failed program was:" >&5
9273sed 's/^/| /' conftest.$ac_ext >&5
9274
9275	ac_cv_c_bigendian=no
9276fi
9277
9278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279else
9280  $as_echo "$as_me: failed program was:" >&5
9281sed 's/^/| /' conftest.$ac_ext >&5
9282
9283
9284fi
9285
9286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287    fi
9288    if test $ac_cv_c_bigendian = unknown; then
9289      # Compile a test program.
9290      if test "$cross_compiling" = yes; then
9291  # Try to guess by grepping values from an object file.
9292	 cat >conftest.$ac_ext <<_ACEOF
9293/* confdefs.h.  */
9294_ACEOF
9295cat confdefs.h >>conftest.$ac_ext
9296cat >>conftest.$ac_ext <<_ACEOF
9297/* end confdefs.h.  */
9298short int ascii_mm[] =
9299		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9300		short int ascii_ii[] =
9301		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9302		int use_ascii (int i) {
9303		  return ascii_mm[i] + ascii_ii[i];
9304		}
9305		short int ebcdic_ii[] =
9306		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9307		short int ebcdic_mm[] =
9308		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9309		int use_ebcdic (int i) {
9310		  return ebcdic_mm[i] + ebcdic_ii[i];
9311		}
9312		extern int foo;
9313
9314int
9315main ()
9316{
9317return use_ascii (foo) == use_ebcdic (foo);
9318  ;
9319  return 0;
9320}
9321_ACEOF
9322rm -f conftest.$ac_objext
9323if { (ac_try="$ac_compile"
9324case "(($ac_try" in
9325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326  *) ac_try_echo=$ac_try;;
9327esac
9328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9329$as_echo "$ac_try_echo") >&5
9330  (eval "$ac_compile") 2>conftest.er1
9331  ac_status=$?
9332  grep -v '^ *+' conftest.er1 >conftest.err
9333  rm -f conftest.er1
9334  cat conftest.err >&5
9335  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336  (exit $ac_status); } && {
9337	 test -z "$ac_c_werror_flag" ||
9338	 test ! -s conftest.err
9339       } && test -s conftest.$ac_objext; then
9340  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9341	      ac_cv_c_bigendian=yes
9342	    fi
9343	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9344	      if test "$ac_cv_c_bigendian" = unknown; then
9345		ac_cv_c_bigendian=no
9346	      else
9347		# finding both strings is unlikely to happen, but who knows?
9348		ac_cv_c_bigendian=unknown
9349	      fi
9350	    fi
9351else
9352  $as_echo "$as_me: failed program was:" >&5
9353sed 's/^/| /' conftest.$ac_ext >&5
9354
9355
9356fi
9357
9358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359else
9360  cat >conftest.$ac_ext <<_ACEOF
9361/* confdefs.h.  */
9362_ACEOF
9363cat confdefs.h >>conftest.$ac_ext
9364cat >>conftest.$ac_ext <<_ACEOF
9365/* end confdefs.h.  */
9366$ac_includes_default
9367int
9368main ()
9369{
9370
9371	     /* Are we little or big endian?  From Harbison&Steele.  */
9372	     union
9373	     {
9374	       long int l;
9375	       char c[sizeof (long int)];
9376	     } u;
9377	     u.l = 1;
9378	     return u.c[sizeof (long int) - 1] == 1;
9379
9380  ;
9381  return 0;
9382}
9383_ACEOF
9384rm -f conftest$ac_exeext
9385if { (ac_try="$ac_link"
9386case "(($ac_try" in
9387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388  *) ac_try_echo=$ac_try;;
9389esac
9390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9391$as_echo "$ac_try_echo") >&5
9392  (eval "$ac_link") 2>&5
9393  ac_status=$?
9394  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9396  { (case "(($ac_try" in
9397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398  *) ac_try_echo=$ac_try;;
9399esac
9400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9401$as_echo "$ac_try_echo") >&5
9402  (eval "$ac_try") 2>&5
9403  ac_status=$?
9404  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405  (exit $ac_status); }; }; then
9406  ac_cv_c_bigendian=no
9407else
9408  $as_echo "$as_me: program exited with status $ac_status" >&5
9409$as_echo "$as_me: failed program was:" >&5
9410sed 's/^/| /' conftest.$ac_ext >&5
9411
9412( exit $ac_status )
9413ac_cv_c_bigendian=yes
9414fi
9415rm -rf conftest.dSYM
9416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9417fi
9418
9419
9420    fi
9421fi
9422{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9423$as_echo "$ac_cv_c_bigendian" >&6; }
9424 case $ac_cv_c_bigendian in #(
9425   yes)
9426     cat >>confdefs.h <<\_ACEOF
9427#define WORDS_BIGENDIAN 1
9428_ACEOF
9429;; #(
9430   no)
9431      ;; #(
9432   universal)
9433      ;; #(
9434   *)
9435     { { $as_echo "$as_me:$LINENO: error: unknown endianness
9436 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9437$as_echo "$as_me: error: unknown endianness
9438 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9439   { (exit 1); exit 1; }; } ;;
9440 esac
9441
9442
9443# --------
9444# UNSORTED
9445# --------
9446
9447# Stage specific cflags for build.
9448stage1_cflags=
9449case $build in
9450vax-*-*)
9451  if test x$GCC = xyes
9452  then
9453    stage1_cflags="-Wa,-J"
9454  else
9455    stage1_cflags="-J"
9456  fi
9457  ;;
9458powerpc-*-darwin*)
9459  # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
9460  # sources; use -no-cpp-precomp to get to GNU cpp.
9461  # Apple's GCC has bugs in designated initializer handling, so disable
9462  # that too.
9463  stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
9464  ;;
9465esac
9466
9467
9468# These libraries may be used by collect2.
9469# We may need a special search path to get them linked.
9470{ $as_echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9471$as_echo_n "checking for collect2 libraries... " >&6; }
9472if test "${gcc_cv_collect2_libs+set}" = set; then
9473  $as_echo_n "(cached) " >&6
9474else
9475  save_LIBS="$LIBS"
9476for libs in '' -lld -lmld \
9477		'-L/usr/lib/cmplrs/cc2.11 -lmld' \
9478		'-L/usr/lib/cmplrs/cc3.11 -lmld'
9479do
9480	LIBS="$libs"
9481	cat >conftest.$ac_ext <<_ACEOF
9482/* confdefs.h.  */
9483_ACEOF
9484cat confdefs.h >>conftest.$ac_ext
9485cat >>conftest.$ac_ext <<_ACEOF
9486/* end confdefs.h.  */
9487
9488/* Override any GCC internal prototype to avoid an error.
9489   Use char because int might match the return type of a GCC
9490   builtin and then its argument prototype would still apply.  */
9491#ifdef __cplusplus
9492extern "C"
9493#endif
9494char ldopen ();
9495int
9496main ()
9497{
9498return ldopen ();
9499  ;
9500  return 0;
9501}
9502_ACEOF
9503rm -f conftest.$ac_objext conftest$ac_exeext
9504if { (ac_try="$ac_link"
9505case "(($ac_try" in
9506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507  *) ac_try_echo=$ac_try;;
9508esac
9509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9510$as_echo "$ac_try_echo") >&5
9511  (eval "$ac_link") 2>conftest.er1
9512  ac_status=$?
9513  grep -v '^ *+' conftest.er1 >conftest.err
9514  rm -f conftest.er1
9515  cat conftest.err >&5
9516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517  (exit $ac_status); } && {
9518	 test -z "$ac_c_werror_flag" ||
9519	 test ! -s conftest.err
9520       } && test -s conftest$ac_exeext && {
9521	 test "$cross_compiling" = yes ||
9522	 $as_test_x conftest$ac_exeext
9523       }; then
9524  gcc_cv_collect2_libs="$libs"; break
9525else
9526  $as_echo "$as_me: failed program was:" >&5
9527sed 's/^/| /' conftest.$ac_ext >&5
9528
9529
9530fi
9531
9532rm -rf conftest.dSYM
9533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534      conftest$ac_exeext conftest.$ac_ext
9535done
9536LIBS="$save_LIBS"
9537test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9538fi
9539{ $as_echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9540$as_echo "$gcc_cv_collect2_libs" >&6; }
9541case $gcc_cv_collect2_libs in
9542	"none required")	;;
9543	*)	COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9544esac
9545
9546
9547# When building Ada code on Alpha, we need exc_resume which is usually in
9548# -lexc.  So test for it.
9549save_LIBS="$LIBS"
9550LIBS=
9551{ $as_echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9552$as_echo_n "checking for library containing exc_resume... " >&6; }
9553if test "${ac_cv_search_exc_resume+set}" = set; then
9554  $as_echo_n "(cached) " >&6
9555else
9556  ac_func_search_save_LIBS=$LIBS
9557cat >conftest.$ac_ext <<_ACEOF
9558/* confdefs.h.  */
9559_ACEOF
9560cat confdefs.h >>conftest.$ac_ext
9561cat >>conftest.$ac_ext <<_ACEOF
9562/* end confdefs.h.  */
9563
9564/* Override any GCC internal prototype to avoid an error.
9565   Use char because int might match the return type of a GCC
9566   builtin and then its argument prototype would still apply.  */
9567#ifdef __cplusplus
9568extern "C"
9569#endif
9570char exc_resume ();
9571int
9572main ()
9573{
9574return exc_resume ();
9575  ;
9576  return 0;
9577}
9578_ACEOF
9579for ac_lib in '' exc; do
9580  if test -z "$ac_lib"; then
9581    ac_res="none required"
9582  else
9583    ac_res=-l$ac_lib
9584    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9585  fi
9586  rm -f conftest.$ac_objext conftest$ac_exeext
9587if { (ac_try="$ac_link"
9588case "(($ac_try" in
9589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590  *) ac_try_echo=$ac_try;;
9591esac
9592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9593$as_echo "$ac_try_echo") >&5
9594  (eval "$ac_link") 2>conftest.er1
9595  ac_status=$?
9596  grep -v '^ *+' conftest.er1 >conftest.err
9597  rm -f conftest.er1
9598  cat conftest.err >&5
9599  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600  (exit $ac_status); } && {
9601	 test -z "$ac_c_werror_flag" ||
9602	 test ! -s conftest.err
9603       } && test -s conftest$ac_exeext && {
9604	 test "$cross_compiling" = yes ||
9605	 $as_test_x conftest$ac_exeext
9606       }; then
9607  ac_cv_search_exc_resume=$ac_res
9608else
9609  $as_echo "$as_me: failed program was:" >&5
9610sed 's/^/| /' conftest.$ac_ext >&5
9611
9612
9613fi
9614
9615rm -rf conftest.dSYM
9616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9617      conftest$ac_exeext
9618  if test "${ac_cv_search_exc_resume+set}" = set; then
9619  break
9620fi
9621done
9622if test "${ac_cv_search_exc_resume+set}" = set; then
9623  :
9624else
9625  ac_cv_search_exc_resume=no
9626fi
9627rm conftest.$ac_ext
9628LIBS=$ac_func_search_save_LIBS
9629fi
9630{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9631$as_echo "$ac_cv_search_exc_resume" >&6; }
9632ac_res=$ac_cv_search_exc_resume
9633if test "$ac_res" != no; then
9634  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9635
9636fi
9637
9638GNAT_LIBEXC="$LIBS"
9639LIBS="$save_LIBS"
9640
9641
9642# Some systems put ldexp and frexp in libm instead of libc; assume
9643# they're both in the same place.  jcf-dump needs them.
9644save_LIBS="$LIBS"
9645LIBS=
9646{ $as_echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9647$as_echo_n "checking for library containing ldexp... " >&6; }
9648if test "${ac_cv_search_ldexp+set}" = set; then
9649  $as_echo_n "(cached) " >&6
9650else
9651  ac_func_search_save_LIBS=$LIBS
9652cat >conftest.$ac_ext <<_ACEOF
9653/* confdefs.h.  */
9654_ACEOF
9655cat confdefs.h >>conftest.$ac_ext
9656cat >>conftest.$ac_ext <<_ACEOF
9657/* end confdefs.h.  */
9658
9659/* Override any GCC internal prototype to avoid an error.
9660   Use char because int might match the return type of a GCC
9661   builtin and then its argument prototype would still apply.  */
9662#ifdef __cplusplus
9663extern "C"
9664#endif
9665char ldexp ();
9666int
9667main ()
9668{
9669return ldexp ();
9670  ;
9671  return 0;
9672}
9673_ACEOF
9674for ac_lib in '' m; do
9675  if test -z "$ac_lib"; then
9676    ac_res="none required"
9677  else
9678    ac_res=-l$ac_lib
9679    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9680  fi
9681  rm -f conftest.$ac_objext conftest$ac_exeext
9682if { (ac_try="$ac_link"
9683case "(($ac_try" in
9684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685  *) ac_try_echo=$ac_try;;
9686esac
9687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9688$as_echo "$ac_try_echo") >&5
9689  (eval "$ac_link") 2>conftest.er1
9690  ac_status=$?
9691  grep -v '^ *+' conftest.er1 >conftest.err
9692  rm -f conftest.er1
9693  cat conftest.err >&5
9694  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695  (exit $ac_status); } && {
9696	 test -z "$ac_c_werror_flag" ||
9697	 test ! -s conftest.err
9698       } && test -s conftest$ac_exeext && {
9699	 test "$cross_compiling" = yes ||
9700	 $as_test_x conftest$ac_exeext
9701       }; then
9702  ac_cv_search_ldexp=$ac_res
9703else
9704  $as_echo "$as_me: failed program was:" >&5
9705sed 's/^/| /' conftest.$ac_ext >&5
9706
9707
9708fi
9709
9710rm -rf conftest.dSYM
9711rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712      conftest$ac_exeext
9713  if test "${ac_cv_search_ldexp+set}" = set; then
9714  break
9715fi
9716done
9717if test "${ac_cv_search_ldexp+set}" = set; then
9718  :
9719else
9720  ac_cv_search_ldexp=no
9721fi
9722rm conftest.$ac_ext
9723LIBS=$ac_func_search_save_LIBS
9724fi
9725{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9726$as_echo "$ac_cv_search_ldexp" >&6; }
9727ac_res=$ac_cv_search_ldexp
9728if test "$ac_res" != no; then
9729  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9730
9731fi
9732
9733LDEXP_LIB="$LIBS"
9734LIBS="$save_LIBS"
9735
9736
9737# Use <inttypes.h> only if it exists,
9738# doesn't clash with <sys/types.h>, and declares intmax_t.
9739{ $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
9740$as_echo_n "checking for inttypes.h... " >&6; }
9741if test "${gcc_cv_header_inttypes_h+set}" = set; then
9742  $as_echo_n "(cached) " >&6
9743else
9744  cat >conftest.$ac_ext <<_ACEOF
9745/* confdefs.h.  */
9746_ACEOF
9747cat confdefs.h >>conftest.$ac_ext
9748cat >>conftest.$ac_ext <<_ACEOF
9749/* end confdefs.h.  */
9750#include <sys/types.h>
9751#include <inttypes.h>
9752int
9753main ()
9754{
9755intmax_t i = -1;
9756  ;
9757  return 0;
9758}
9759_ACEOF
9760rm -f conftest.$ac_objext
9761if { (ac_try="$ac_compile"
9762case "(($ac_try" in
9763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764  *) ac_try_echo=$ac_try;;
9765esac
9766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9767$as_echo "$ac_try_echo") >&5
9768  (eval "$ac_compile") 2>conftest.er1
9769  ac_status=$?
9770  grep -v '^ *+' conftest.er1 >conftest.err
9771  rm -f conftest.er1
9772  cat conftest.err >&5
9773  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774  (exit $ac_status); } && {
9775	 test -z "$ac_c_werror_flag" ||
9776	 test ! -s conftest.err
9777       } && test -s conftest.$ac_objext; then
9778  gcc_cv_header_inttypes_h=yes
9779else
9780  $as_echo "$as_me: failed program was:" >&5
9781sed 's/^/| /' conftest.$ac_ext >&5
9782
9783	gcc_cv_header_inttypes_h=no
9784fi
9785
9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787fi
9788
9789{ $as_echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9790$as_echo "$gcc_cv_header_inttypes_h" >&6; }
9791if test $gcc_cv_header_inttypes_h = yes; then
9792
9793cat >>confdefs.h <<\_ACEOF
9794#define HAVE_INTTYPES_H 1
9795_ACEOF
9796
9797fi
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9837	sysconf strsignal getrusage nl_langinfo scandir alphasort \
9838	gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9839	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
9840do
9841as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9842{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9843$as_echo_n "checking for $ac_func... " >&6; }
9844if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9845  $as_echo_n "(cached) " >&6
9846else
9847  cat >conftest.$ac_ext <<_ACEOF
9848/* confdefs.h.  */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h.  */
9853/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9854   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9855#define $ac_func innocuous_$ac_func
9856
9857/* System header to define __stub macros and hopefully few prototypes,
9858    which can conflict with char $ac_func (); below.
9859    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9860    <limits.h> exists even on freestanding compilers.  */
9861
9862#ifdef __STDC__
9863# include <limits.h>
9864#else
9865# include <assert.h>
9866#endif
9867
9868#undef $ac_func
9869
9870/* Override any GCC internal prototype to avoid an error.
9871   Use char because int might match the return type of a GCC
9872   builtin and then its argument prototype would still apply.  */
9873#ifdef __cplusplus
9874extern "C"
9875#endif
9876char $ac_func ();
9877/* The GNU C library defines this for functions which it implements
9878    to always fail with ENOSYS.  Some functions are actually named
9879    something starting with __ and the normal name is an alias.  */
9880#if defined __stub_$ac_func || defined __stub___$ac_func
9881choke me
9882#endif
9883
9884int
9885main ()
9886{
9887return $ac_func ();
9888  ;
9889  return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext conftest$ac_exeext
9893if { (ac_try="$ac_link"
9894case "(($ac_try" in
9895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896  *) ac_try_echo=$ac_try;;
9897esac
9898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9899$as_echo "$ac_try_echo") >&5
9900  (eval "$ac_link") 2>conftest.er1
9901  ac_status=$?
9902  grep -v '^ *+' conftest.er1 >conftest.err
9903  rm -f conftest.er1
9904  cat conftest.err >&5
9905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906  (exit $ac_status); } && {
9907	 test -z "$ac_c_werror_flag" ||
9908	 test ! -s conftest.err
9909       } && test -s conftest$ac_exeext && {
9910	 test "$cross_compiling" = yes ||
9911	 $as_test_x conftest$ac_exeext
9912       }; then
9913  eval "$as_ac_var=yes"
9914else
9915  $as_echo "$as_me: failed program was:" >&5
9916sed 's/^/| /' conftest.$ac_ext >&5
9917
9918	eval "$as_ac_var=no"
9919fi
9920
9921rm -rf conftest.dSYM
9922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9923      conftest$ac_exeext conftest.$ac_ext
9924fi
9925ac_res=`eval 'as_val=${'$as_ac_var'}
9926		 $as_echo "$as_val"'`
9927	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9928$as_echo "$ac_res" >&6; }
9929if test `eval 'as_val=${'$as_ac_var'}
9930		 $as_echo "$as_val"'` = yes; then
9931  cat >>confdefs.h <<_ACEOF
9932#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9933_ACEOF
9934
9935fi
9936done
9937
9938
9939if test x$ac_cv_func_mbstowcs = xyes; then
9940  { $as_echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9941$as_echo_n "checking whether mbstowcs works... " >&6; }
9942if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9943  $as_echo_n "(cached) " >&6
9944else
9945      if test "$cross_compiling" = yes; then
9946  gcc_cv_func_mbstowcs_works=yes
9947else
9948  cat >conftest.$ac_ext <<_ACEOF
9949/* confdefs.h.  */
9950_ACEOF
9951cat confdefs.h >>conftest.$ac_ext
9952cat >>conftest.$ac_ext <<_ACEOF
9953/* end confdefs.h.  */
9954#include <stdlib.h>
9955int main()
9956{
9957  mbstowcs(0, "", 0);
9958  return 0;
9959}
9960_ACEOF
9961rm -f conftest$ac_exeext
9962if { (ac_try="$ac_link"
9963case "(($ac_try" in
9964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965  *) ac_try_echo=$ac_try;;
9966esac
9967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9968$as_echo "$ac_try_echo") >&5
9969  (eval "$ac_link") 2>&5
9970  ac_status=$?
9971  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9973  { (case "(($ac_try" in
9974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975  *) ac_try_echo=$ac_try;;
9976esac
9977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9978$as_echo "$ac_try_echo") >&5
9979  (eval "$ac_try") 2>&5
9980  ac_status=$?
9981  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982  (exit $ac_status); }; }; then
9983  gcc_cv_func_mbstowcs_works=yes
9984else
9985  $as_echo "$as_me: program exited with status $ac_status" >&5
9986$as_echo "$as_me: failed program was:" >&5
9987sed 's/^/| /' conftest.$ac_ext >&5
9988
9989( exit $ac_status )
9990gcc_cv_func_mbstowcs_works=no
9991fi
9992rm -rf conftest.dSYM
9993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9994fi
9995
9996
9997fi
9998{ $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9999$as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10000  if test x$gcc_cv_func_mbstowcs_works = xyes; then
10001
10002cat >>confdefs.h <<\_ACEOF
10003#define HAVE_WORKING_MBSTOWCS 1
10004_ACEOF
10005
10006  fi
10007fi
10008
10009{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
10010$as_echo_n "checking for ssize_t... " >&6; }
10011if test "${ac_cv_type_ssize_t+set}" = set; then
10012  $as_echo_n "(cached) " >&6
10013else
10014  ac_cv_type_ssize_t=no
10015cat >conftest.$ac_ext <<_ACEOF
10016/* confdefs.h.  */
10017_ACEOF
10018cat confdefs.h >>conftest.$ac_ext
10019cat >>conftest.$ac_ext <<_ACEOF
10020/* end confdefs.h.  */
10021$ac_includes_default
10022int
10023main ()
10024{
10025if (sizeof (ssize_t))
10026       return 0;
10027  ;
10028  return 0;
10029}
10030_ACEOF
10031rm -f conftest.$ac_objext
10032if { (ac_try="$ac_compile"
10033case "(($ac_try" in
10034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035  *) ac_try_echo=$ac_try;;
10036esac
10037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10038$as_echo "$ac_try_echo") >&5
10039  (eval "$ac_compile") 2>conftest.er1
10040  ac_status=$?
10041  grep -v '^ *+' conftest.er1 >conftest.err
10042  rm -f conftest.er1
10043  cat conftest.err >&5
10044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045  (exit $ac_status); } && {
10046	 test -z "$ac_c_werror_flag" ||
10047	 test ! -s conftest.err
10048       } && test -s conftest.$ac_objext; then
10049  cat >conftest.$ac_ext <<_ACEOF
10050/* confdefs.h.  */
10051_ACEOF
10052cat confdefs.h >>conftest.$ac_ext
10053cat >>conftest.$ac_ext <<_ACEOF
10054/* end confdefs.h.  */
10055$ac_includes_default
10056int
10057main ()
10058{
10059if (sizeof ((ssize_t)))
10060	  return 0;
10061  ;
10062  return 0;
10063}
10064_ACEOF
10065rm -f conftest.$ac_objext
10066if { (ac_try="$ac_compile"
10067case "(($ac_try" in
10068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069  *) ac_try_echo=$ac_try;;
10070esac
10071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10072$as_echo "$ac_try_echo") >&5
10073  (eval "$ac_compile") 2>conftest.er1
10074  ac_status=$?
10075  grep -v '^ *+' conftest.er1 >conftest.err
10076  rm -f conftest.er1
10077  cat conftest.err >&5
10078  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079  (exit $ac_status); } && {
10080	 test -z "$ac_c_werror_flag" ||
10081	 test ! -s conftest.err
10082       } && test -s conftest.$ac_objext; then
10083  :
10084else
10085  $as_echo "$as_me: failed program was:" >&5
10086sed 's/^/| /' conftest.$ac_ext >&5
10087
10088	ac_cv_type_ssize_t=yes
10089fi
10090
10091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092else
10093  $as_echo "$as_me: failed program was:" >&5
10094sed 's/^/| /' conftest.$ac_ext >&5
10095
10096
10097fi
10098
10099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10100fi
10101{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10102$as_echo "$ac_cv_type_ssize_t" >&6; }
10103if test $ac_cv_type_ssize_t = yes; then
10104  :
10105else
10106
10107cat >>confdefs.h <<_ACEOF
10108#define ssize_t int
10109_ACEOF
10110
10111fi
10112
10113
10114# Try to determine the array type of the second argument of getgroups
10115# for the target system (int or gid_t).
10116{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10117$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10118if test "${ac_cv_type_uid_t+set}" = set; then
10119  $as_echo_n "(cached) " >&6
10120else
10121  cat >conftest.$ac_ext <<_ACEOF
10122/* confdefs.h.  */
10123_ACEOF
10124cat confdefs.h >>conftest.$ac_ext
10125cat >>conftest.$ac_ext <<_ACEOF
10126/* end confdefs.h.  */
10127#include <sys/types.h>
10128
10129_ACEOF
10130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10131  $EGREP "uid_t" >/dev/null 2>&1; then
10132  ac_cv_type_uid_t=yes
10133else
10134  ac_cv_type_uid_t=no
10135fi
10136rm -f conftest*
10137
10138fi
10139{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10140$as_echo "$ac_cv_type_uid_t" >&6; }
10141if test $ac_cv_type_uid_t = no; then
10142
10143cat >>confdefs.h <<\_ACEOF
10144#define uid_t int
10145_ACEOF
10146
10147
10148cat >>confdefs.h <<\_ACEOF
10149#define gid_t int
10150_ACEOF
10151
10152fi
10153
10154{ $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10155$as_echo_n "checking type of array argument to getgroups... " >&6; }
10156if test "${ac_cv_type_getgroups+set}" = set; then
10157  $as_echo_n "(cached) " >&6
10158else
10159  if test "$cross_compiling" = yes; then
10160  ac_cv_type_getgroups=cross
10161else
10162  cat >conftest.$ac_ext <<_ACEOF
10163/* confdefs.h.  */
10164_ACEOF
10165cat confdefs.h >>conftest.$ac_ext
10166cat >>conftest.$ac_ext <<_ACEOF
10167/* end confdefs.h.  */
10168/* Thanks to Mike Rendell for this test.  */
10169$ac_includes_default
10170#define NGID 256
10171#undef MAX
10172#define MAX(x, y) ((x) > (y) ? (x) : (y))
10173
10174int
10175main ()
10176{
10177  gid_t gidset[NGID];
10178  int i, n;
10179  union { gid_t gval; long int lval; }  val;
10180
10181  val.lval = -1;
10182  for (i = 0; i < NGID; i++)
10183    gidset[i] = val.gval;
10184  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10185		 gidset);
10186  /* Exit non-zero if getgroups seems to require an array of ints.  This
10187     happens when gid_t is short int but getgroups modifies an array
10188     of ints.  */
10189  return n > 0 && gidset[n] != val.gval;
10190}
10191_ACEOF
10192rm -f conftest$ac_exeext
10193if { (ac_try="$ac_link"
10194case "(($ac_try" in
10195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196  *) ac_try_echo=$ac_try;;
10197esac
10198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10199$as_echo "$ac_try_echo") >&5
10200  (eval "$ac_link") 2>&5
10201  ac_status=$?
10202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10204  { (case "(($ac_try" in
10205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206  *) ac_try_echo=$ac_try;;
10207esac
10208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10209$as_echo "$ac_try_echo") >&5
10210  (eval "$ac_try") 2>&5
10211  ac_status=$?
10212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213  (exit $ac_status); }; }; then
10214  ac_cv_type_getgroups=gid_t
10215else
10216  $as_echo "$as_me: program exited with status $ac_status" >&5
10217$as_echo "$as_me: failed program was:" >&5
10218sed 's/^/| /' conftest.$ac_ext >&5
10219
10220( exit $ac_status )
10221ac_cv_type_getgroups=int
10222fi
10223rm -rf conftest.dSYM
10224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10225fi
10226
10227
10228if test $ac_cv_type_getgroups = cross; then
10229        cat >conftest.$ac_ext <<_ACEOF
10230/* confdefs.h.  */
10231_ACEOF
10232cat confdefs.h >>conftest.$ac_ext
10233cat >>conftest.$ac_ext <<_ACEOF
10234/* end confdefs.h.  */
10235#include <unistd.h>
10236
10237_ACEOF
10238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10239  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10240  ac_cv_type_getgroups=gid_t
10241else
10242  ac_cv_type_getgroups=int
10243fi
10244rm -f conftest*
10245
10246fi
10247fi
10248{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10249$as_echo "$ac_cv_type_getgroups" >&6; }
10250
10251cat >>confdefs.h <<_ACEOF
10252#define GETGROUPS_T $ac_cv_type_getgroups
10253_ACEOF
10254
10255
10256if test "${target}" = "${build}"; then
10257  TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10258else
10259  case "${target}" in
10260	# This condition may need some tweaking.  It should include all
10261	# targets where the array type of the second argument of getgroups
10262	# is int and the type of gid_t is not equivalent to int.
10263	*-*-sunos* | *-*-ultrix*)
10264		TARGET_GETGROUPS_T=int
10265		;;
10266	*)
10267		TARGET_GETGROUPS_T=gid_t
10268		;;
10269  esac
10270fi
10271
10272
10273
10274{ $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10275$as_echo_n "checking for sys/mman.h... " >&6; }
10276if test "${ac_cv_header_sys_mman_h+set}" = set; then
10277  $as_echo_n "(cached) " >&6
10278else
10279  cat >conftest.$ac_ext <<_ACEOF
10280/* confdefs.h.  */
10281_ACEOF
10282cat confdefs.h >>conftest.$ac_ext
10283cat >>conftest.$ac_ext <<_ACEOF
10284/* end confdefs.h.  */
10285#include <sys/mman.h>
10286_ACEOF
10287if { (ac_try="$ac_cpp conftest.$ac_ext"
10288case "(($ac_try" in
10289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290  *) ac_try_echo=$ac_try;;
10291esac
10292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293$as_echo "$ac_try_echo") >&5
10294  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10295  ac_status=$?
10296  grep -v '^ *+' conftest.er1 >conftest.err
10297  rm -f conftest.er1
10298  cat conftest.err >&5
10299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300  (exit $ac_status); } >/dev/null && {
10301	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10302	 test ! -s conftest.err
10303       }; then
10304  ac_cv_header_sys_mman_h=yes
10305else
10306  $as_echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309  ac_cv_header_sys_mman_h=no
10310fi
10311
10312rm -f conftest.err conftest.$ac_ext
10313fi
10314{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10315$as_echo "$ac_cv_header_sys_mman_h" >&6; }
10316if test $ac_cv_header_sys_mman_h = yes; then
10317  gcc_header_sys_mman_h=yes
10318else
10319  gcc_header_sys_mman_h=no
10320fi
10321
10322{ $as_echo "$as_me:$LINENO: checking for mmap" >&5
10323$as_echo_n "checking for mmap... " >&6; }
10324if test "${ac_cv_func_mmap+set}" = set; then
10325  $as_echo_n "(cached) " >&6
10326else
10327  cat >conftest.$ac_ext <<_ACEOF
10328/* confdefs.h.  */
10329_ACEOF
10330cat confdefs.h >>conftest.$ac_ext
10331cat >>conftest.$ac_ext <<_ACEOF
10332/* end confdefs.h.  */
10333/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10334   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10335#define mmap innocuous_mmap
10336
10337/* System header to define __stub macros and hopefully few prototypes,
10338    which can conflict with char mmap (); below.
10339    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10340    <limits.h> exists even on freestanding compilers.  */
10341
10342#ifdef __STDC__
10343# include <limits.h>
10344#else
10345# include <assert.h>
10346#endif
10347
10348#undef mmap
10349
10350/* Override any GCC internal prototype to avoid an error.
10351   Use char because int might match the return type of a GCC
10352   builtin and then its argument prototype would still apply.  */
10353#ifdef __cplusplus
10354extern "C"
10355#endif
10356char mmap ();
10357/* The GNU C library defines this for functions which it implements
10358    to always fail with ENOSYS.  Some functions are actually named
10359    something starting with __ and the normal name is an alias.  */
10360#if defined __stub_mmap || defined __stub___mmap
10361choke me
10362#endif
10363
10364int
10365main ()
10366{
10367return mmap ();
10368  ;
10369  return 0;
10370}
10371_ACEOF
10372rm -f conftest.$ac_objext conftest$ac_exeext
10373if { (ac_try="$ac_link"
10374case "(($ac_try" in
10375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376  *) ac_try_echo=$ac_try;;
10377esac
10378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10379$as_echo "$ac_try_echo") >&5
10380  (eval "$ac_link") 2>conftest.er1
10381  ac_status=$?
10382  grep -v '^ *+' conftest.er1 >conftest.err
10383  rm -f conftest.er1
10384  cat conftest.err >&5
10385  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386  (exit $ac_status); } && {
10387	 test -z "$ac_c_werror_flag" ||
10388	 test ! -s conftest.err
10389       } && test -s conftest$ac_exeext && {
10390	 test "$cross_compiling" = yes ||
10391	 $as_test_x conftest$ac_exeext
10392       }; then
10393  ac_cv_func_mmap=yes
10394else
10395  $as_echo "$as_me: failed program was:" >&5
10396sed 's/^/| /' conftest.$ac_ext >&5
10397
10398	ac_cv_func_mmap=no
10399fi
10400
10401rm -rf conftest.dSYM
10402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10403      conftest$ac_exeext conftest.$ac_ext
10404fi
10405{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10406$as_echo "$ac_cv_func_mmap" >&6; }
10407if test $ac_cv_func_mmap = yes; then
10408  gcc_func_mmap=yes
10409else
10410  gcc_func_mmap=no
10411fi
10412
10413if test "$gcc_header_sys_mman_h" != yes \
10414 || test "$gcc_func_mmap" != yes; then
10415   gcc_cv_func_mmap_file=no
10416   gcc_cv_func_mmap_dev_zero=no
10417   gcc_cv_func_mmap_anon=no
10418else
10419   { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10420$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10421if test "${gcc_cv_func_mmap_file+set}" = set; then
10422  $as_echo_n "(cached) " >&6
10423else
10424  # Add a system to this blacklist if
10425   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10426   # memory area containing the same data that you'd get if you applied
10427   # read() to the same fd.  The only system known to have a problem here
10428   # is VMS, where text files have record structure.
10429   case "$host_os" in
10430     vms* | ultrix*)
10431        gcc_cv_func_mmap_file=no ;;
10432     *)
10433        gcc_cv_func_mmap_file=yes;;
10434   esac
10435fi
10436{ $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10437$as_echo "$gcc_cv_func_mmap_file" >&6; }
10438   { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10439$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10440if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10441  $as_echo_n "(cached) " >&6
10442else
10443  # Add a system to this blacklist if it has mmap() but /dev/zero
10444   # does not exist, or if mmapping /dev/zero does not give anonymous
10445   # zeroed pages with both the following properties:
10446   # 1. If you map N consecutive pages in with one call, and then
10447   #    unmap any subset of those pages, the pages that were not
10448   #    explicitly unmapped remain accessible.
10449   # 2. If you map two adjacent blocks of memory and then unmap them
10450   #    both at once, they must both go away.
10451   # Systems known to be in this category are Windows (all variants),
10452   # VMS, and Darwin.
10453   case "$host_os" in
10454     vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10455        gcc_cv_func_mmap_dev_zero=no ;;
10456     *)
10457        gcc_cv_func_mmap_dev_zero=yes;;
10458   esac
10459fi
10460{ $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10461$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10462
10463   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10464   { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10465$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10466if test "${gcc_cv_decl_map_anon+set}" = set; then
10467  $as_echo_n "(cached) " >&6
10468else
10469  cat >conftest.$ac_ext <<_ACEOF
10470/* confdefs.h.  */
10471_ACEOF
10472cat confdefs.h >>conftest.$ac_ext
10473cat >>conftest.$ac_ext <<_ACEOF
10474/* end confdefs.h.  */
10475#include <sys/types.h>
10476#include <sys/mman.h>
10477#include <unistd.h>
10478
10479#ifndef MAP_ANONYMOUS
10480#define MAP_ANONYMOUS MAP_ANON
10481#endif
10482
10483int
10484main ()
10485{
10486int n = MAP_ANONYMOUS;
10487  ;
10488  return 0;
10489}
10490_ACEOF
10491rm -f conftest.$ac_objext
10492if { (ac_try="$ac_compile"
10493case "(($ac_try" in
10494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495  *) ac_try_echo=$ac_try;;
10496esac
10497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10498$as_echo "$ac_try_echo") >&5
10499  (eval "$ac_compile") 2>conftest.er1
10500  ac_status=$?
10501  grep -v '^ *+' conftest.er1 >conftest.err
10502  rm -f conftest.er1
10503  cat conftest.err >&5
10504  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505  (exit $ac_status); } && {
10506	 test -z "$ac_c_werror_flag" ||
10507	 test ! -s conftest.err
10508       } && test -s conftest.$ac_objext; then
10509  gcc_cv_decl_map_anon=yes
10510else
10511  $as_echo "$as_me: failed program was:" >&5
10512sed 's/^/| /' conftest.$ac_ext >&5
10513
10514	gcc_cv_decl_map_anon=no
10515fi
10516
10517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518fi
10519{ $as_echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10520$as_echo "$gcc_cv_decl_map_anon" >&6; }
10521
10522   if test $gcc_cv_decl_map_anon = no; then
10523     gcc_cv_func_mmap_anon=no
10524   else
10525     { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10526$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10527if test "${gcc_cv_func_mmap_anon+set}" = set; then
10528  $as_echo_n "(cached) " >&6
10529else
10530  # Add a system to this blacklist if it has mmap() and MAP_ANON or
10531   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10532   # doesn't give anonymous zeroed pages with the same properties listed
10533   # above for use of /dev/zero.
10534   # Systems known to be in this category are Windows, VMS, and SCO Unix.
10535   case "$host_os" in
10536     vms* | cygwin* | pe | mingw* | sco* | udk* )
10537        gcc_cv_func_mmap_anon=no ;;
10538     *)
10539        gcc_cv_func_mmap_anon=yes;;
10540   esac
10541fi
10542{ $as_echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10543$as_echo "$gcc_cv_func_mmap_anon" >&6; }
10544   fi
10545fi
10546
10547if test $gcc_cv_func_mmap_file = yes; then
10548
10549cat >>confdefs.h <<\_ACEOF
10550#define HAVE_MMAP_FILE 1
10551_ACEOF
10552
10553fi
10554if test $gcc_cv_func_mmap_dev_zero = yes; then
10555
10556cat >>confdefs.h <<\_ACEOF
10557#define HAVE_MMAP_DEV_ZERO 1
10558_ACEOF
10559
10560fi
10561if test $gcc_cv_func_mmap_anon = yes; then
10562
10563cat >>confdefs.h <<\_ACEOF
10564#define HAVE_MMAP_ANON 1
10565_ACEOF
10566
10567fi
10568
10569
10570case "${host}" in
10571*-*-*vms*)
10572  # Under VMS, vfork works very differently than on Unix. The standard test
10573  # won't work, and it isn't easily adaptable. It makes more sense to
10574  # just force it.
10575  ac_cv_func_vfork_works=yes
10576  ;;
10577esac
10578{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
10579$as_echo_n "checking for pid_t... " >&6; }
10580if test "${ac_cv_type_pid_t+set}" = set; then
10581  $as_echo_n "(cached) " >&6
10582else
10583  ac_cv_type_pid_t=no
10584cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h.  */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h.  */
10590$ac_includes_default
10591int
10592main ()
10593{
10594if (sizeof (pid_t))
10595       return 0;
10596  ;
10597  return 0;
10598}
10599_ACEOF
10600rm -f conftest.$ac_objext
10601if { (ac_try="$ac_compile"
10602case "(($ac_try" in
10603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604  *) ac_try_echo=$ac_try;;
10605esac
10606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10607$as_echo "$ac_try_echo") >&5
10608  (eval "$ac_compile") 2>conftest.er1
10609  ac_status=$?
10610  grep -v '^ *+' conftest.er1 >conftest.err
10611  rm -f conftest.er1
10612  cat conftest.err >&5
10613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614  (exit $ac_status); } && {
10615	 test -z "$ac_c_werror_flag" ||
10616	 test ! -s conftest.err
10617       } && test -s conftest.$ac_objext; then
10618  cat >conftest.$ac_ext <<_ACEOF
10619/* confdefs.h.  */
10620_ACEOF
10621cat confdefs.h >>conftest.$ac_ext
10622cat >>conftest.$ac_ext <<_ACEOF
10623/* end confdefs.h.  */
10624$ac_includes_default
10625int
10626main ()
10627{
10628if (sizeof ((pid_t)))
10629	  return 0;
10630  ;
10631  return 0;
10632}
10633_ACEOF
10634rm -f conftest.$ac_objext
10635if { (ac_try="$ac_compile"
10636case "(($ac_try" in
10637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638  *) ac_try_echo=$ac_try;;
10639esac
10640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10641$as_echo "$ac_try_echo") >&5
10642  (eval "$ac_compile") 2>conftest.er1
10643  ac_status=$?
10644  grep -v '^ *+' conftest.er1 >conftest.err
10645  rm -f conftest.er1
10646  cat conftest.err >&5
10647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); } && {
10649	 test -z "$ac_c_werror_flag" ||
10650	 test ! -s conftest.err
10651       } && test -s conftest.$ac_objext; then
10652  :
10653else
10654  $as_echo "$as_me: failed program was:" >&5
10655sed 's/^/| /' conftest.$ac_ext >&5
10656
10657	ac_cv_type_pid_t=yes
10658fi
10659
10660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661else
10662  $as_echo "$as_me: failed program was:" >&5
10663sed 's/^/| /' conftest.$ac_ext >&5
10664
10665
10666fi
10667
10668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10669fi
10670{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10671$as_echo "$ac_cv_type_pid_t" >&6; }
10672if test $ac_cv_type_pid_t = yes; then
10673  :
10674else
10675
10676cat >>confdefs.h <<_ACEOF
10677#define pid_t int
10678_ACEOF
10679
10680fi
10681
10682
10683for ac_header in vfork.h
10684do
10685as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10687$as_echo_n "checking for $ac_header... " >&6; }
10688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10689  $as_echo_n "(cached) " >&6
10690else
10691  cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h.  */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h.  */
10697#include <$ac_header>
10698_ACEOF
10699if { (ac_try="$ac_cpp conftest.$ac_ext"
10700case "(($ac_try" in
10701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702  *) ac_try_echo=$ac_try;;
10703esac
10704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10705$as_echo "$ac_try_echo") >&5
10706  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10707  ac_status=$?
10708  grep -v '^ *+' conftest.er1 >conftest.err
10709  rm -f conftest.er1
10710  cat conftest.err >&5
10711  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712  (exit $ac_status); } >/dev/null && {
10713	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10714	 test ! -s conftest.err
10715       }; then
10716  eval "$as_ac_Header=yes"
10717else
10718  $as_echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721  eval "$as_ac_Header=no"
10722fi
10723
10724rm -f conftest.err conftest.$ac_ext
10725fi
10726ac_res=`eval 'as_val=${'$as_ac_Header'}
10727		 $as_echo "$as_val"'`
10728	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10729$as_echo "$ac_res" >&6; }
10730if test `eval 'as_val=${'$as_ac_Header'}
10731		 $as_echo "$as_val"'` = yes; then
10732  cat >>confdefs.h <<_ACEOF
10733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10734_ACEOF
10735
10736fi
10737done
10738
10739
10740
10741for ac_func in fork vfork
10742do
10743as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10744{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10745$as_echo_n "checking for $ac_func... " >&6; }
10746if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10747  $as_echo_n "(cached) " >&6
10748else
10749  cat >conftest.$ac_ext <<_ACEOF
10750/* confdefs.h.  */
10751_ACEOF
10752cat confdefs.h >>conftest.$ac_ext
10753cat >>conftest.$ac_ext <<_ACEOF
10754/* end confdefs.h.  */
10755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10756   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10757#define $ac_func innocuous_$ac_func
10758
10759/* System header to define __stub macros and hopefully few prototypes,
10760    which can conflict with char $ac_func (); below.
10761    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10762    <limits.h> exists even on freestanding compilers.  */
10763
10764#ifdef __STDC__
10765# include <limits.h>
10766#else
10767# include <assert.h>
10768#endif
10769
10770#undef $ac_func
10771
10772/* Override any GCC internal prototype to avoid an error.
10773   Use char because int might match the return type of a GCC
10774   builtin and then its argument prototype would still apply.  */
10775#ifdef __cplusplus
10776extern "C"
10777#endif
10778char $ac_func ();
10779/* The GNU C library defines this for functions which it implements
10780    to always fail with ENOSYS.  Some functions are actually named
10781    something starting with __ and the normal name is an alias.  */
10782#if defined __stub_$ac_func || defined __stub___$ac_func
10783choke me
10784#endif
10785
10786int
10787main ()
10788{
10789return $ac_func ();
10790  ;
10791  return 0;
10792}
10793_ACEOF
10794rm -f conftest.$ac_objext conftest$ac_exeext
10795if { (ac_try="$ac_link"
10796case "(($ac_try" in
10797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798  *) ac_try_echo=$ac_try;;
10799esac
10800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10801$as_echo "$ac_try_echo") >&5
10802  (eval "$ac_link") 2>conftest.er1
10803  ac_status=$?
10804  grep -v '^ *+' conftest.er1 >conftest.err
10805  rm -f conftest.er1
10806  cat conftest.err >&5
10807  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808  (exit $ac_status); } && {
10809	 test -z "$ac_c_werror_flag" ||
10810	 test ! -s conftest.err
10811       } && test -s conftest$ac_exeext && {
10812	 test "$cross_compiling" = yes ||
10813	 $as_test_x conftest$ac_exeext
10814       }; then
10815  eval "$as_ac_var=yes"
10816else
10817  $as_echo "$as_me: failed program was:" >&5
10818sed 's/^/| /' conftest.$ac_ext >&5
10819
10820	eval "$as_ac_var=no"
10821fi
10822
10823rm -rf conftest.dSYM
10824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825      conftest$ac_exeext conftest.$ac_ext
10826fi
10827ac_res=`eval 'as_val=${'$as_ac_var'}
10828		 $as_echo "$as_val"'`
10829	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10830$as_echo "$ac_res" >&6; }
10831if test `eval 'as_val=${'$as_ac_var'}
10832		 $as_echo "$as_val"'` = yes; then
10833  cat >>confdefs.h <<_ACEOF
10834#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10835_ACEOF
10836
10837fi
10838done
10839
10840if test "x$ac_cv_func_fork" = xyes; then
10841  { $as_echo "$as_me:$LINENO: checking for working fork" >&5
10842$as_echo_n "checking for working fork... " >&6; }
10843if test "${ac_cv_func_fork_works+set}" = set; then
10844  $as_echo_n "(cached) " >&6
10845else
10846  if test "$cross_compiling" = yes; then
10847  ac_cv_func_fork_works=cross
10848else
10849  cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h.  */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h.  */
10855$ac_includes_default
10856int
10857main ()
10858{
10859
10860	  /* By Ruediger Kuhlmann. */
10861	  return fork () < 0;
10862
10863  ;
10864  return 0;
10865}
10866_ACEOF
10867rm -f conftest$ac_exeext
10868if { (ac_try="$ac_link"
10869case "(($ac_try" in
10870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871  *) ac_try_echo=$ac_try;;
10872esac
10873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10874$as_echo "$ac_try_echo") >&5
10875  (eval "$ac_link") 2>&5
10876  ac_status=$?
10877  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10879  { (case "(($ac_try" in
10880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881  *) ac_try_echo=$ac_try;;
10882esac
10883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10884$as_echo "$ac_try_echo") >&5
10885  (eval "$ac_try") 2>&5
10886  ac_status=$?
10887  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888  (exit $ac_status); }; }; then
10889  ac_cv_func_fork_works=yes
10890else
10891  $as_echo "$as_me: program exited with status $ac_status" >&5
10892$as_echo "$as_me: failed program was:" >&5
10893sed 's/^/| /' conftest.$ac_ext >&5
10894
10895( exit $ac_status )
10896ac_cv_func_fork_works=no
10897fi
10898rm -rf conftest.dSYM
10899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10900fi
10901
10902
10903fi
10904{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10905$as_echo "$ac_cv_func_fork_works" >&6; }
10906
10907else
10908  ac_cv_func_fork_works=$ac_cv_func_fork
10909fi
10910if test "x$ac_cv_func_fork_works" = xcross; then
10911  case $host in
10912    *-*-amigaos* | *-*-msdosdjgpp*)
10913      # Override, as these systems have only a dummy fork() stub
10914      ac_cv_func_fork_works=no
10915      ;;
10916    *)
10917      ac_cv_func_fork_works=yes
10918      ;;
10919  esac
10920  { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10921$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10922fi
10923ac_cv_func_vfork_works=$ac_cv_func_vfork
10924if test "x$ac_cv_func_vfork" = xyes; then
10925  { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
10926$as_echo_n "checking for working vfork... " >&6; }
10927if test "${ac_cv_func_vfork_works+set}" = set; then
10928  $as_echo_n "(cached) " >&6
10929else
10930  if test "$cross_compiling" = yes; then
10931  ac_cv_func_vfork_works=cross
10932else
10933  cat >conftest.$ac_ext <<_ACEOF
10934/* confdefs.h.  */
10935_ACEOF
10936cat confdefs.h >>conftest.$ac_ext
10937cat >>conftest.$ac_ext <<_ACEOF
10938/* end confdefs.h.  */
10939/* Thanks to Paul Eggert for this test.  */
10940$ac_includes_default
10941#include <sys/wait.h>
10942#ifdef HAVE_VFORK_H
10943# include <vfork.h>
10944#endif
10945/* On some sparc systems, changes by the child to local and incoming
10946   argument registers are propagated back to the parent.  The compiler
10947   is told about this with #include <vfork.h>, but some compilers
10948   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10949   static variable whose address is put into a register that is
10950   clobbered by the vfork.  */
10951static void
10952#ifdef __cplusplus
10953sparc_address_test (int arg)
10954# else
10955sparc_address_test (arg) int arg;
10956#endif
10957{
10958  static pid_t child;
10959  if (!child) {
10960    child = vfork ();
10961    if (child < 0) {
10962      perror ("vfork");
10963      _exit(2);
10964    }
10965    if (!child) {
10966      arg = getpid();
10967      write(-1, "", 0);
10968      _exit (arg);
10969    }
10970  }
10971}
10972
10973int
10974main ()
10975{
10976  pid_t parent = getpid ();
10977  pid_t child;
10978
10979  sparc_address_test (0);
10980
10981  child = vfork ();
10982
10983  if (child == 0) {
10984    /* Here is another test for sparc vfork register problems.  This
10985       test uses lots of local variables, at least as many local
10986       variables as main has allocated so far including compiler
10987       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10988       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10989       reuse the register of parent for one of the local variables,
10990       since it will think that parent can't possibly be used any more
10991       in this routine.  Assigning to the local variable will thus
10992       munge parent in the parent process.  */
10993    pid_t
10994      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10995      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10996    /* Convince the compiler that p..p7 are live; otherwise, it might
10997       use the same hardware register for all 8 local variables.  */
10998    if (p != p1 || p != p2 || p != p3 || p != p4
10999	|| p != p5 || p != p6 || p != p7)
11000      _exit(1);
11001
11002    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11003       from child file descriptors.  If the child closes a descriptor
11004       before it execs or exits, this munges the parent's descriptor
11005       as well.  Test for this by closing stdout in the child.  */
11006    _exit(close(fileno(stdout)) != 0);
11007  } else {
11008    int status;
11009    struct stat st;
11010
11011    while (wait(&status) != child)
11012      ;
11013    return (
11014	 /* Was there some problem with vforking?  */
11015	 child < 0
11016
11017	 /* Did the child fail?  (This shouldn't happen.)  */
11018	 || status
11019
11020	 /* Did the vfork/compiler bug occur?  */
11021	 || parent != getpid()
11022
11023	 /* Did the file descriptor bug occur?  */
11024	 || fstat(fileno(stdout), &st) != 0
11025	 );
11026  }
11027}
11028_ACEOF
11029rm -f conftest$ac_exeext
11030if { (ac_try="$ac_link"
11031case "(($ac_try" in
11032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033  *) ac_try_echo=$ac_try;;
11034esac
11035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11036$as_echo "$ac_try_echo") >&5
11037  (eval "$ac_link") 2>&5
11038  ac_status=$?
11039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11041  { (case "(($ac_try" in
11042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043  *) ac_try_echo=$ac_try;;
11044esac
11045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11046$as_echo "$ac_try_echo") >&5
11047  (eval "$ac_try") 2>&5
11048  ac_status=$?
11049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050  (exit $ac_status); }; }; then
11051  ac_cv_func_vfork_works=yes
11052else
11053  $as_echo "$as_me: program exited with status $ac_status" >&5
11054$as_echo "$as_me: failed program was:" >&5
11055sed 's/^/| /' conftest.$ac_ext >&5
11056
11057( exit $ac_status )
11058ac_cv_func_vfork_works=no
11059fi
11060rm -rf conftest.dSYM
11061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11062fi
11063
11064
11065fi
11066{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11067$as_echo "$ac_cv_func_vfork_works" >&6; }
11068
11069fi;
11070if test "x$ac_cv_func_fork_works" = xcross; then
11071  ac_cv_func_vfork_works=$ac_cv_func_vfork
11072  { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11073$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11074fi
11075
11076if test "x$ac_cv_func_vfork_works" = xyes; then
11077
11078cat >>confdefs.h <<\_ACEOF
11079#define HAVE_WORKING_VFORK 1
11080_ACEOF
11081
11082else
11083
11084cat >>confdefs.h <<\_ACEOF
11085#define vfork fork
11086_ACEOF
11087
11088fi
11089if test "x$ac_cv_func_fork_works" = xyes; then
11090
11091cat >>confdefs.h <<\_ACEOF
11092#define HAVE_WORKING_FORK 1
11093_ACEOF
11094
11095fi
11096
11097
11098
11099      if test "X$prefix" = "XNONE"; then
11100    acl_final_prefix="$ac_default_prefix"
11101  else
11102    acl_final_prefix="$prefix"
11103  fi
11104  if test "X$exec_prefix" = "XNONE"; then
11105    acl_final_exec_prefix='${prefix}'
11106  else
11107    acl_final_exec_prefix="$exec_prefix"
11108  fi
11109  acl_save_prefix="$prefix"
11110  prefix="$acl_final_prefix"
11111  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11112  prefix="$acl_save_prefix"
11113
11114
11115# Check whether --with-gnu-ld was given.
11116if test "${with_gnu_ld+set}" = set; then
11117  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11118else
11119  with_gnu_ld=no
11120fi
11121
11122# Prepare PATH_SEPARATOR.
11123# The user is always right.
11124if test "${PATH_SEPARATOR+set}" != set; then
11125  echo "#! /bin/sh" >conf$$.sh
11126  echo  "exit 0"   >>conf$$.sh
11127  chmod +x conf$$.sh
11128  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11129    PATH_SEPARATOR=';'
11130  else
11131    PATH_SEPARATOR=:
11132  fi
11133  rm -f conf$$.sh
11134fi
11135ac_prog=ld
11136if test "$GCC" = yes; then
11137  # Check if gcc -print-prog-name=ld gives a path.
11138  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11139$as_echo_n "checking for ld used by GCC... " >&6; }
11140  case $host in
11141  *-*-mingw*)
11142    # gcc leaves a trailing carriage return which upsets mingw
11143    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11144  *)
11145    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11146  esac
11147  case $ac_prog in
11148    # Accept absolute paths.
11149    [\\/]* | [A-Za-z]:[\\/]*)
11150      re_direlt='/[^/][^/]*/\.\./'
11151      # Canonicalize the path of ld
11152      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11153      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11154	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11155      done
11156      test -z "$LD" && LD="$ac_prog"
11157      ;;
11158  "")
11159    # If it fails, then pretend we aren't using GCC.
11160    ac_prog=ld
11161    ;;
11162  *)
11163    # If it is relative, then search for the first ld in PATH.
11164    with_gnu_ld=unknown
11165    ;;
11166  esac
11167elif test "$with_gnu_ld" = yes; then
11168  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11169$as_echo_n "checking for GNU ld... " >&6; }
11170else
11171  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11172$as_echo_n "checking for non-GNU ld... " >&6; }
11173fi
11174if test "${acl_cv_path_LD+set}" = set; then
11175  $as_echo_n "(cached) " >&6
11176else
11177  if test -z "$LD"; then
11178  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11179  for ac_dir in $PATH; do
11180    test -z "$ac_dir" && ac_dir=.
11181    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11182      acl_cv_path_LD="$ac_dir/$ac_prog"
11183      # Check to see if the program is GNU ld.  I'd rather use --version,
11184      # but apparently some GNU ld's only accept -v.
11185      # Break only if it was the GNU/non-GNU ld that we prefer.
11186      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11187	test "$with_gnu_ld" != no && break
11188      else
11189	test "$with_gnu_ld" != yes && break
11190      fi
11191    fi
11192  done
11193  IFS="$ac_save_ifs"
11194else
11195  acl_cv_path_LD="$LD" # Let the user override the test with a path.
11196fi
11197fi
11198
11199LD="$acl_cv_path_LD"
11200if test -n "$LD"; then
11201  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11202$as_echo "$LD" >&6; }
11203else
11204  { $as_echo "$as_me:$LINENO: result: no" >&5
11205$as_echo "no" >&6; }
11206fi
11207test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11208$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11209   { (exit 1); exit 1; }; }
11210{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11211$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11212if test "${acl_cv_prog_gnu_ld+set}" = set; then
11213  $as_echo_n "(cached) " >&6
11214else
11215  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11216if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11217  acl_cv_prog_gnu_ld=yes
11218else
11219  acl_cv_prog_gnu_ld=no
11220fi
11221fi
11222{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11223$as_echo "$acl_cv_prog_gnu_ld" >&6; }
11224with_gnu_ld=$acl_cv_prog_gnu_ld
11225
11226
11227
11228                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11229$as_echo_n "checking for shared library run path origin... " >&6; }
11230if test "${acl_cv_rpath+set}" = set; then
11231  $as_echo_n "(cached) " >&6
11232else
11233
11234    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11235    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11236    . ./conftest.sh
11237    rm -f ./conftest.sh
11238    acl_cv_rpath=done
11239
11240fi
11241{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11242$as_echo "$acl_cv_rpath" >&6; }
11243  wl="$acl_cv_wl"
11244  libext="$acl_cv_libext"
11245  shlibext="$acl_cv_shlibext"
11246  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11247  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11248  hardcode_direct="$acl_cv_hardcode_direct"
11249  hardcode_minus_L="$acl_cv_hardcode_minus_L"
11250    # Check whether --enable-rpath was given.
11251if test "${enable_rpath+set}" = set; then
11252  enableval=$enable_rpath; :
11253else
11254  enable_rpath=yes
11255fi
11256
11257
11258
11259
11260
11261
11262
11263
11264    use_additional=yes
11265
11266  acl_save_prefix="$prefix"
11267  prefix="$acl_final_prefix"
11268  acl_save_exec_prefix="$exec_prefix"
11269  exec_prefix="$acl_final_exec_prefix"
11270
11271    eval additional_includedir=\"$includedir\"
11272    eval additional_libdir=\"$libdir\"
11273
11274  exec_prefix="$acl_save_exec_prefix"
11275  prefix="$acl_save_prefix"
11276
11277
11278# Check whether --with-libiconv-prefix was given.
11279if test "${with_libiconv_prefix+set}" = set; then
11280  withval=$with_libiconv_prefix;
11281    if test "X$withval" = "Xno"; then
11282      use_additional=no
11283    else
11284      if test "X$withval" = "X"; then
11285
11286  acl_save_prefix="$prefix"
11287  prefix="$acl_final_prefix"
11288  acl_save_exec_prefix="$exec_prefix"
11289  exec_prefix="$acl_final_exec_prefix"
11290
11291          eval additional_includedir=\"$includedir\"
11292          eval additional_libdir=\"$libdir\"
11293
11294  exec_prefix="$acl_save_exec_prefix"
11295  prefix="$acl_save_prefix"
11296
11297      else
11298        additional_includedir="$withval/include"
11299        additional_libdir="$withval/lib"
11300      fi
11301    fi
11302
11303fi
11304
11305      LIBICONV=
11306  LTLIBICONV=
11307  INCICONV=
11308  rpathdirs=
11309  ltrpathdirs=
11310  names_already_handled=
11311  names_next_round='iconv '
11312  while test -n "$names_next_round"; do
11313    names_this_round="$names_next_round"
11314    names_next_round=
11315    for name in $names_this_round; do
11316      already_handled=
11317      for n in $names_already_handled; do
11318        if test "$n" = "$name"; then
11319          already_handled=yes
11320          break
11321        fi
11322      done
11323      if test -z "$already_handled"; then
11324        names_already_handled="$names_already_handled $name"
11325                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11326        eval value=\"\$HAVE_LIB$uppername\"
11327        if test -n "$value"; then
11328          if test "$value" = yes; then
11329            eval value=\"\$LIB$uppername\"
11330            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11331            eval value=\"\$LTLIB$uppername\"
11332            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11333          else
11334                                    :
11335          fi
11336        else
11337                              found_dir=
11338          found_la=
11339          found_so=
11340          found_a=
11341          if test $use_additional = yes; then
11342            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11343              found_dir="$additional_libdir"
11344              found_so="$additional_libdir/lib$name.$shlibext"
11345              if test -f "$additional_libdir/lib$name.la"; then
11346                found_la="$additional_libdir/lib$name.la"
11347              fi
11348            else
11349              if test -f "$additional_libdir/lib$name.$libext"; then
11350                found_dir="$additional_libdir"
11351                found_a="$additional_libdir/lib$name.$libext"
11352                if test -f "$additional_libdir/lib$name.la"; then
11353                  found_la="$additional_libdir/lib$name.la"
11354                fi
11355              fi
11356            fi
11357          fi
11358          if test "X$found_dir" = "X"; then
11359            for x in $LDFLAGS $LTLIBICONV; do
11360
11361  acl_save_prefix="$prefix"
11362  prefix="$acl_final_prefix"
11363  acl_save_exec_prefix="$exec_prefix"
11364  exec_prefix="$acl_final_exec_prefix"
11365  eval x=\"$x\"
11366  exec_prefix="$acl_save_exec_prefix"
11367  prefix="$acl_save_prefix"
11368
11369              case "$x" in
11370                -L*)
11371                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11372                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11373                    found_dir="$dir"
11374                    found_so="$dir/lib$name.$shlibext"
11375                    if test -f "$dir/lib$name.la"; then
11376                      found_la="$dir/lib$name.la"
11377                    fi
11378                  else
11379                    if test -f "$dir/lib$name.$libext"; then
11380                      found_dir="$dir"
11381                      found_a="$dir/lib$name.$libext"
11382                      if test -f "$dir/lib$name.la"; then
11383                        found_la="$dir/lib$name.la"
11384                      fi
11385                    fi
11386                  fi
11387                  ;;
11388              esac
11389              if test "X$found_dir" != "X"; then
11390                break
11391              fi
11392            done
11393          fi
11394          if test "X$found_dir" != "X"; then
11395                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11396            if test "X$found_so" != "X"; then
11397                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11398                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11399              else
11400                                                                                haveit=
11401                for x in $ltrpathdirs; do
11402                  if test "X$x" = "X$found_dir"; then
11403                    haveit=yes
11404                    break
11405                  fi
11406                done
11407                if test -z "$haveit"; then
11408                  ltrpathdirs="$ltrpathdirs $found_dir"
11409                fi
11410                                if test "$hardcode_direct" = yes; then
11411                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11412                else
11413                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11414                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11415                                                            haveit=
11416                    for x in $rpathdirs; do
11417                      if test "X$x" = "X$found_dir"; then
11418                        haveit=yes
11419                        break
11420                      fi
11421                    done
11422                    if test -z "$haveit"; then
11423                      rpathdirs="$rpathdirs $found_dir"
11424                    fi
11425                  else
11426                                                                                haveit=
11427                    for x in $LDFLAGS $LIBICONV; do
11428
11429  acl_save_prefix="$prefix"
11430  prefix="$acl_final_prefix"
11431  acl_save_exec_prefix="$exec_prefix"
11432  exec_prefix="$acl_final_exec_prefix"
11433  eval x=\"$x\"
11434  exec_prefix="$acl_save_exec_prefix"
11435  prefix="$acl_save_prefix"
11436
11437                      if test "X$x" = "X-L$found_dir"; then
11438                        haveit=yes
11439                        break
11440                      fi
11441                    done
11442                    if test -z "$haveit"; then
11443                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11444                    fi
11445                    if test "$hardcode_minus_L" != no; then
11446                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11447                    else
11448                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11449                    fi
11450                  fi
11451                fi
11452              fi
11453            else
11454              if test "X$found_a" != "X"; then
11455                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11456              else
11457                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11458              fi
11459            fi
11460                        additional_includedir=
11461            case "$found_dir" in
11462              */lib | */lib/)
11463                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11464                additional_includedir="$basedir/include"
11465                ;;
11466            esac
11467            if test "X$additional_includedir" != "X"; then
11468                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11469                haveit=
11470                if test "X$additional_includedir" = "X/usr/local/include"; then
11471                  if test -n "$GCC"; then
11472                    case $host_os in
11473                      linux*) haveit=yes;;
11474                    esac
11475                  fi
11476                fi
11477                if test -z "$haveit"; then
11478                  for x in $CPPFLAGS $INCICONV; do
11479
11480  acl_save_prefix="$prefix"
11481  prefix="$acl_final_prefix"
11482  acl_save_exec_prefix="$exec_prefix"
11483  exec_prefix="$acl_final_exec_prefix"
11484  eval x=\"$x\"
11485  exec_prefix="$acl_save_exec_prefix"
11486  prefix="$acl_save_prefix"
11487
11488                    if test "X$x" = "X-I$additional_includedir"; then
11489                      haveit=yes
11490                      break
11491                    fi
11492                  done
11493                  if test -z "$haveit"; then
11494                    if test -d "$additional_includedir"; then
11495                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11496                    fi
11497                  fi
11498                fi
11499              fi
11500            fi
11501                        if test -n "$found_la"; then
11502                                                        save_libdir="$libdir"
11503              case "$found_la" in
11504                */* | *\\*) . "$found_la" ;;
11505                *) . "./$found_la" ;;
11506              esac
11507              libdir="$save_libdir"
11508                            for dep in $dependency_libs; do
11509                case "$dep" in
11510                  -L*)
11511                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11512                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
11513                      haveit=
11514                      if test "X$additional_libdir" = "X/usr/local/lib"; then
11515                        if test -n "$GCC"; then
11516                          case $host_os in
11517                            linux*) haveit=yes;;
11518                          esac
11519                        fi
11520                      fi
11521                      if test -z "$haveit"; then
11522                        haveit=
11523                        for x in $LDFLAGS $LIBICONV; do
11524
11525  acl_save_prefix="$prefix"
11526  prefix="$acl_final_prefix"
11527  acl_save_exec_prefix="$exec_prefix"
11528  exec_prefix="$acl_final_exec_prefix"
11529  eval x=\"$x\"
11530  exec_prefix="$acl_save_exec_prefix"
11531  prefix="$acl_save_prefix"
11532
11533                          if test "X$x" = "X-L$additional_libdir"; then
11534                            haveit=yes
11535                            break
11536                          fi
11537                        done
11538                        if test -z "$haveit"; then
11539                          if test -d "$additional_libdir"; then
11540                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11541                          fi
11542                        fi
11543                        haveit=
11544                        for x in $LDFLAGS $LTLIBICONV; do
11545
11546  acl_save_prefix="$prefix"
11547  prefix="$acl_final_prefix"
11548  acl_save_exec_prefix="$exec_prefix"
11549  exec_prefix="$acl_final_exec_prefix"
11550  eval x=\"$x\"
11551  exec_prefix="$acl_save_exec_prefix"
11552  prefix="$acl_save_prefix"
11553
11554                          if test "X$x" = "X-L$additional_libdir"; then
11555                            haveit=yes
11556                            break
11557                          fi
11558                        done
11559                        if test -z "$haveit"; then
11560                          if test -d "$additional_libdir"; then
11561                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11562                          fi
11563                        fi
11564                      fi
11565                    fi
11566                    ;;
11567                  -R*)
11568                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11569                    if test "$enable_rpath" != no; then
11570                                                                  haveit=
11571                      for x in $rpathdirs; do
11572                        if test "X$x" = "X$dir"; then
11573                          haveit=yes
11574                          break
11575                        fi
11576                      done
11577                      if test -z "$haveit"; then
11578                        rpathdirs="$rpathdirs $dir"
11579                      fi
11580                                                                  haveit=
11581                      for x in $ltrpathdirs; do
11582                        if test "X$x" = "X$dir"; then
11583                          haveit=yes
11584                          break
11585                        fi
11586                      done
11587                      if test -z "$haveit"; then
11588                        ltrpathdirs="$ltrpathdirs $dir"
11589                      fi
11590                    fi
11591                    ;;
11592                  -l*)
11593                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11594                    ;;
11595                  *.la)
11596                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11597                    ;;
11598                  *)
11599                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11600                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11601                    ;;
11602                esac
11603              done
11604            fi
11605          else
11606                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11607            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11608          fi
11609        fi
11610      fi
11611    done
11612  done
11613  if test "X$rpathdirs" != "X"; then
11614    if test -n "$hardcode_libdir_separator"; then
11615                        alldirs=
11616      for found_dir in $rpathdirs; do
11617        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11618      done
11619            acl_save_libdir="$libdir"
11620      libdir="$alldirs"
11621      eval flag=\"$hardcode_libdir_flag_spec\"
11622      libdir="$acl_save_libdir"
11623      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11624    else
11625            for found_dir in $rpathdirs; do
11626        acl_save_libdir="$libdir"
11627        libdir="$found_dir"
11628        eval flag=\"$hardcode_libdir_flag_spec\"
11629        libdir="$acl_save_libdir"
11630        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11631      done
11632    fi
11633  fi
11634  if test "X$ltrpathdirs" != "X"; then
11635            for found_dir in $ltrpathdirs; do
11636      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11637    done
11638  fi
11639
11640
11641
11642
11643
11644
11645
11646          am_save_CPPFLAGS="$CPPFLAGS"
11647
11648  for element in $INCICONV; do
11649    haveit=
11650    for x in $CPPFLAGS; do
11651
11652  acl_save_prefix="$prefix"
11653  prefix="$acl_final_prefix"
11654  acl_save_exec_prefix="$exec_prefix"
11655  exec_prefix="$acl_final_exec_prefix"
11656  eval x=\"$x\"
11657  exec_prefix="$acl_save_exec_prefix"
11658  prefix="$acl_save_prefix"
11659
11660      if test "X$x" = "X$element"; then
11661        haveit=yes
11662        break
11663      fi
11664    done
11665    if test -z "$haveit"; then
11666      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11667    fi
11668  done
11669
11670
11671  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
11672$as_echo_n "checking for iconv... " >&6; }
11673if test "${am_cv_func_iconv+set}" = set; then
11674  $as_echo_n "(cached) " >&6
11675else
11676
11677    am_cv_func_iconv="no, consider installing GNU libiconv"
11678    am_cv_lib_iconv=no
11679    cat >conftest.$ac_ext <<_ACEOF
11680/* confdefs.h.  */
11681_ACEOF
11682cat confdefs.h >>conftest.$ac_ext
11683cat >>conftest.$ac_ext <<_ACEOF
11684/* end confdefs.h.  */
11685#include <stdlib.h>
11686#include <iconv.h>
11687int
11688main ()
11689{
11690iconv_t cd = iconv_open("","");
11691       iconv(cd,NULL,NULL,NULL,NULL);
11692       iconv_close(cd);
11693  ;
11694  return 0;
11695}
11696_ACEOF
11697rm -f conftest.$ac_objext conftest$ac_exeext
11698if { (ac_try="$ac_link"
11699case "(($ac_try" in
11700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701  *) ac_try_echo=$ac_try;;
11702esac
11703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11704$as_echo "$ac_try_echo") >&5
11705  (eval "$ac_link") 2>conftest.er1
11706  ac_status=$?
11707  grep -v '^ *+' conftest.er1 >conftest.err
11708  rm -f conftest.er1
11709  cat conftest.err >&5
11710  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711  (exit $ac_status); } && {
11712	 test -z "$ac_c_werror_flag" ||
11713	 test ! -s conftest.err
11714       } && test -s conftest$ac_exeext && {
11715	 test "$cross_compiling" = yes ||
11716	 $as_test_x conftest$ac_exeext
11717       }; then
11718  am_cv_func_iconv=yes
11719else
11720  $as_echo "$as_me: failed program was:" >&5
11721sed 's/^/| /' conftest.$ac_ext >&5
11722
11723
11724fi
11725
11726rm -rf conftest.dSYM
11727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11728      conftest$ac_exeext conftest.$ac_ext
11729    if test "$am_cv_func_iconv" != yes; then
11730      am_save_LIBS="$LIBS"
11731      LIBS="$LIBS $LIBICONV"
11732      cat >conftest.$ac_ext <<_ACEOF
11733/* confdefs.h.  */
11734_ACEOF
11735cat confdefs.h >>conftest.$ac_ext
11736cat >>conftest.$ac_ext <<_ACEOF
11737/* end confdefs.h.  */
11738#include <stdlib.h>
11739#include <iconv.h>
11740int
11741main ()
11742{
11743iconv_t cd = iconv_open("","");
11744         iconv(cd,NULL,NULL,NULL,NULL);
11745         iconv_close(cd);
11746  ;
11747  return 0;
11748}
11749_ACEOF
11750rm -f conftest.$ac_objext conftest$ac_exeext
11751if { (ac_try="$ac_link"
11752case "(($ac_try" in
11753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754  *) ac_try_echo=$ac_try;;
11755esac
11756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11757$as_echo "$ac_try_echo") >&5
11758  (eval "$ac_link") 2>conftest.er1
11759  ac_status=$?
11760  grep -v '^ *+' conftest.er1 >conftest.err
11761  rm -f conftest.er1
11762  cat conftest.err >&5
11763  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764  (exit $ac_status); } && {
11765	 test -z "$ac_c_werror_flag" ||
11766	 test ! -s conftest.err
11767       } && test -s conftest$ac_exeext && {
11768	 test "$cross_compiling" = yes ||
11769	 $as_test_x conftest$ac_exeext
11770       }; then
11771  am_cv_lib_iconv=yes
11772        am_cv_func_iconv=yes
11773else
11774  $as_echo "$as_me: failed program was:" >&5
11775sed 's/^/| /' conftest.$ac_ext >&5
11776
11777
11778fi
11779
11780rm -rf conftest.dSYM
11781rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11782      conftest$ac_exeext conftest.$ac_ext
11783      LIBS="$am_save_LIBS"
11784    fi
11785
11786fi
11787{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11788$as_echo "$am_cv_func_iconv" >&6; }
11789  if test "$am_cv_func_iconv" = yes; then
11790
11791cat >>confdefs.h <<\_ACEOF
11792#define HAVE_ICONV 1
11793_ACEOF
11794
11795  fi
11796  if test "$am_cv_lib_iconv" = yes; then
11797    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11798$as_echo_n "checking how to link with libiconv... " >&6; }
11799    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
11800$as_echo "$LIBICONV" >&6; }
11801  else
11802            CPPFLAGS="$am_save_CPPFLAGS"
11803    LIBICONV=
11804    LTLIBICONV=
11805  fi
11806
11807
11808
11809  if test "$am_cv_func_iconv" = yes; then
11810    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
11811$as_echo_n "checking for iconv declaration... " >&6; }
11812    if test "${am_cv_proto_iconv+set}" = set; then
11813  $as_echo_n "(cached) " >&6
11814else
11815
11816      cat >conftest.$ac_ext <<_ACEOF
11817/* confdefs.h.  */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h.  */
11822
11823#include <stdlib.h>
11824#include <iconv.h>
11825extern
11826#ifdef __cplusplus
11827"C"
11828#endif
11829#if defined(__STDC__) || defined(__cplusplus)
11830size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11831#else
11832size_t iconv();
11833#endif
11834
11835int
11836main ()
11837{
11838
11839  ;
11840  return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext
11844if { (ac_try="$ac_compile"
11845case "(($ac_try" in
11846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847  *) ac_try_echo=$ac_try;;
11848esac
11849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11850$as_echo "$ac_try_echo") >&5
11851  (eval "$ac_compile") 2>conftest.er1
11852  ac_status=$?
11853  grep -v '^ *+' conftest.er1 >conftest.err
11854  rm -f conftest.er1
11855  cat conftest.err >&5
11856  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857  (exit $ac_status); } && {
11858	 test -z "$ac_c_werror_flag" ||
11859	 test ! -s conftest.err
11860       } && test -s conftest.$ac_objext; then
11861  am_cv_proto_iconv_arg1=""
11862else
11863  $as_echo "$as_me: failed program was:" >&5
11864sed 's/^/| /' conftest.$ac_ext >&5
11865
11866	am_cv_proto_iconv_arg1="const"
11867fi
11868
11869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870      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);"
11871fi
11872
11873    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11874    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
11875         }$am_cv_proto_iconv" >&5
11876$as_echo "${ac_t:-
11877         }$am_cv_proto_iconv" >&6; }
11878
11879cat >>confdefs.h <<_ACEOF
11880#define ICONV_CONST $am_cv_proto_iconv_arg1
11881_ACEOF
11882
11883  fi
11884
11885# Until we have in-tree GNU iconv:
11886LIBICONV_DEP=
11887
11888
11889
11890  { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11891$as_echo_n "checking for LC_MESSAGES... " >&6; }
11892if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11893  $as_echo_n "(cached) " >&6
11894else
11895  cat >conftest.$ac_ext <<_ACEOF
11896/* confdefs.h.  */
11897_ACEOF
11898cat confdefs.h >>conftest.$ac_ext
11899cat >>conftest.$ac_ext <<_ACEOF
11900/* end confdefs.h.  */
11901#include <locale.h>
11902int
11903main ()
11904{
11905return LC_MESSAGES
11906  ;
11907  return 0;
11908}
11909_ACEOF
11910rm -f conftest.$ac_objext conftest$ac_exeext
11911if { (ac_try="$ac_link"
11912case "(($ac_try" in
11913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914  *) ac_try_echo=$ac_try;;
11915esac
11916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11917$as_echo "$ac_try_echo") >&5
11918  (eval "$ac_link") 2>conftest.er1
11919  ac_status=$?
11920  grep -v '^ *+' conftest.er1 >conftest.err
11921  rm -f conftest.er1
11922  cat conftest.err >&5
11923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924  (exit $ac_status); } && {
11925	 test -z "$ac_c_werror_flag" ||
11926	 test ! -s conftest.err
11927       } && test -s conftest$ac_exeext && {
11928	 test "$cross_compiling" = yes ||
11929	 $as_test_x conftest$ac_exeext
11930       }; then
11931  am_cv_val_LC_MESSAGES=yes
11932else
11933  $as_echo "$as_me: failed program was:" >&5
11934sed 's/^/| /' conftest.$ac_ext >&5
11935
11936	am_cv_val_LC_MESSAGES=no
11937fi
11938
11939rm -rf conftest.dSYM
11940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11941      conftest$ac_exeext conftest.$ac_ext
11942fi
11943{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11944$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11945  if test $am_cv_val_LC_MESSAGES = yes; then
11946
11947cat >>confdefs.h <<\_ACEOF
11948#define HAVE_LC_MESSAGES 1
11949_ACEOF
11950
11951  fi
11952
11953
11954
11955  { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11956$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11957if test "${am_cv_langinfo_codeset+set}" = set; then
11958  $as_echo_n "(cached) " >&6
11959else
11960  cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h.  */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h.  */
11966#include <langinfo.h>
11967int
11968main ()
11969{
11970char* cs = nl_langinfo(CODESET);
11971  ;
11972  return 0;
11973}
11974_ACEOF
11975rm -f conftest.$ac_objext conftest$ac_exeext
11976if { (ac_try="$ac_link"
11977case "(($ac_try" in
11978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979  *) ac_try_echo=$ac_try;;
11980esac
11981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11982$as_echo "$ac_try_echo") >&5
11983  (eval "$ac_link") 2>conftest.er1
11984  ac_status=$?
11985  grep -v '^ *+' conftest.er1 >conftest.err
11986  rm -f conftest.er1
11987  cat conftest.err >&5
11988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989  (exit $ac_status); } && {
11990	 test -z "$ac_c_werror_flag" ||
11991	 test ! -s conftest.err
11992       } && test -s conftest$ac_exeext && {
11993	 test "$cross_compiling" = yes ||
11994	 $as_test_x conftest$ac_exeext
11995       }; then
11996  am_cv_langinfo_codeset=yes
11997else
11998  $as_echo "$as_me: failed program was:" >&5
11999sed 's/^/| /' conftest.$ac_ext >&5
12000
12001	am_cv_langinfo_codeset=no
12002fi
12003
12004rm -rf conftest.dSYM
12005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12006      conftest$ac_exeext conftest.$ac_ext
12007
12008fi
12009{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12010$as_echo "$am_cv_langinfo_codeset" >&6; }
12011  if test $am_cv_langinfo_codeset = yes; then
12012
12013cat >>confdefs.h <<\_ACEOF
12014#define HAVE_LANGINFO_CODESET 1
12015_ACEOF
12016
12017  fi
12018
12019
12020# We will need to find libiberty.h and ansidecl.h
12021saved_CFLAGS="$CFLAGS"
12022CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12063	strsignal strstr strverscmp \
12064	errno snprintf vsnprintf vasprintf malloc realloc calloc \
12065	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
12066do
12067  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12068{ $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12069$as_echo_n "checking whether $ac_func is declared... " >&6; }
12070if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12071  $as_echo_n "(cached) " >&6
12072else
12073  cat >conftest.$ac_ext <<_ACEOF
12074/* confdefs.h.  */
12075_ACEOF
12076cat confdefs.h >>conftest.$ac_ext
12077cat >>conftest.$ac_ext <<_ACEOF
12078/* end confdefs.h.  */
12079#undef $ac_tr_decl
12080#define $ac_tr_decl 1
12081
12082#include "ansidecl.h"
12083#include "system.h"
12084
12085int
12086main ()
12087{
12088#ifndef $ac_func
12089char *(*pfn) = (char *(*)) $ac_func ;
12090#endif
12091  ;
12092  return 0;
12093}
12094_ACEOF
12095rm -f conftest.$ac_objext
12096if { (ac_try="$ac_compile"
12097case "(($ac_try" in
12098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099  *) ac_try_echo=$ac_try;;
12100esac
12101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12102$as_echo "$ac_try_echo") >&5
12103  (eval "$ac_compile") 2>conftest.er1
12104  ac_status=$?
12105  grep -v '^ *+' conftest.er1 >conftest.err
12106  rm -f conftest.er1
12107  cat conftest.err >&5
12108  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109  (exit $ac_status); } && {
12110	 test -z "$ac_c_werror_flag" ||
12111	 test ! -s conftest.err
12112       } && test -s conftest.$ac_objext; then
12113  eval "gcc_cv_have_decl_$ac_func=yes"
12114else
12115  $as_echo "$as_me: failed program was:" >&5
12116sed 's/^/| /' conftest.$ac_ext >&5
12117
12118	eval "gcc_cv_have_decl_$ac_func=no"
12119fi
12120
12121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122fi
12123
12124if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12125  { $as_echo "$as_me:$LINENO: result: yes" >&5
12126$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12127#define $ac_tr_decl 1
12128_ACEOF
12129
12130else
12131  { $as_echo "$as_me:$LINENO: result: no" >&5
12132$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12133#define $ac_tr_decl 0
12134_ACEOF
12135
12136fi
12137
12138done
12139
12140
12141
12142
12143
12144for ac_func in getrlimit setrlimit getrusage
12145do
12146  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12147{ $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12148$as_echo_n "checking whether $ac_func is declared... " >&6; }
12149if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12150  $as_echo_n "(cached) " >&6
12151else
12152  cat >conftest.$ac_ext <<_ACEOF
12153/* confdefs.h.  */
12154_ACEOF
12155cat confdefs.h >>conftest.$ac_ext
12156cat >>conftest.$ac_ext <<_ACEOF
12157/* end confdefs.h.  */
12158#undef $ac_tr_decl
12159#define $ac_tr_decl 1
12160
12161#include "ansidecl.h"
12162#include "system.h"
12163#ifdef HAVE_SYS_RESOURCE_H
12164#include <sys/resource.h>
12165#endif
12166
12167
12168int
12169main ()
12170{
12171#ifndef $ac_func
12172char *(*pfn) = (char *(*)) $ac_func ;
12173#endif
12174  ;
12175  return 0;
12176}
12177_ACEOF
12178rm -f conftest.$ac_objext
12179if { (ac_try="$ac_compile"
12180case "(($ac_try" in
12181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182  *) ac_try_echo=$ac_try;;
12183esac
12184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12185$as_echo "$ac_try_echo") >&5
12186  (eval "$ac_compile") 2>conftest.er1
12187  ac_status=$?
12188  grep -v '^ *+' conftest.er1 >conftest.err
12189  rm -f conftest.er1
12190  cat conftest.err >&5
12191  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192  (exit $ac_status); } && {
12193	 test -z "$ac_c_werror_flag" ||
12194	 test ! -s conftest.err
12195       } && test -s conftest.$ac_objext; then
12196  eval "gcc_cv_have_decl_$ac_func=yes"
12197else
12198  $as_echo "$as_me: failed program was:" >&5
12199sed 's/^/| /' conftest.$ac_ext >&5
12200
12201	eval "gcc_cv_have_decl_$ac_func=no"
12202fi
12203
12204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205fi
12206
12207if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12208  { $as_echo "$as_me:$LINENO: result: yes" >&5
12209$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12210#define $ac_tr_decl 1
12211_ACEOF
12212
12213else
12214  { $as_echo "$as_me:$LINENO: result: no" >&5
12215$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12216#define $ac_tr_decl 0
12217_ACEOF
12218
12219fi
12220
12221done
12222
12223
12224cat >conftest.$ac_ext <<_ACEOF
12225/* confdefs.h.  */
12226_ACEOF
12227cat confdefs.h >>conftest.$ac_ext
12228cat >>conftest.$ac_ext <<_ACEOF
12229/* end confdefs.h.  */
12230
12231#include "ansidecl.h"
12232#include "system.h"
12233#ifdef HAVE_SYS_RESOURCE_H
12234#include <sys/resource.h>
12235#endif
12236
12237int
12238main ()
12239{
12240rlim_t l = 0;
12241  ;
12242  return 0;
12243}
12244_ACEOF
12245rm -f conftest.$ac_objext
12246if { (ac_try="$ac_compile"
12247case "(($ac_try" in
12248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249  *) ac_try_echo=$ac_try;;
12250esac
12251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12252$as_echo "$ac_try_echo") >&5
12253  (eval "$ac_compile") 2>conftest.er1
12254  ac_status=$?
12255  grep -v '^ *+' conftest.er1 >conftest.err
12256  rm -f conftest.er1
12257  cat conftest.err >&5
12258  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259  (exit $ac_status); } && {
12260	 test -z "$ac_c_werror_flag" ||
12261	 test ! -s conftest.err
12262       } && test -s conftest.$ac_objext; then
12263  :
12264else
12265  $as_echo "$as_me: failed program was:" >&5
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
12268
12269cat >>confdefs.h <<\_ACEOF
12270#define rlim_t long
12271_ACEOF
12272
12273fi
12274
12275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276
12277# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12278# FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12279# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12280# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12281
12282for ac_func in ldgetname
12283do
12284  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12285{ $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12286$as_echo_n "checking whether $ac_func is declared... " >&6; }
12287if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12288  $as_echo_n "(cached) " >&6
12289else
12290  cat >conftest.$ac_ext <<_ACEOF
12291/* confdefs.h.  */
12292_ACEOF
12293cat confdefs.h >>conftest.$ac_ext
12294cat >>conftest.$ac_ext <<_ACEOF
12295/* end confdefs.h.  */
12296#undef $ac_tr_decl
12297#define $ac_tr_decl 1
12298
12299#include "ansidecl.h"
12300#include "system.h"
12301#ifdef HAVE_LDFCN_H
12302#undef FREAD
12303#undef FWRITE
12304#include <ldfcn.h>
12305#endif
12306
12307
12308int
12309main ()
12310{
12311#ifndef $ac_func
12312char *(*pfn) = (char *(*)) $ac_func ;
12313#endif
12314  ;
12315  return 0;
12316}
12317_ACEOF
12318rm -f conftest.$ac_objext
12319if { (ac_try="$ac_compile"
12320case "(($ac_try" in
12321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322  *) ac_try_echo=$ac_try;;
12323esac
12324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12325$as_echo "$ac_try_echo") >&5
12326  (eval "$ac_compile") 2>conftest.er1
12327  ac_status=$?
12328  grep -v '^ *+' conftest.er1 >conftest.err
12329  rm -f conftest.er1
12330  cat conftest.err >&5
12331  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332  (exit $ac_status); } && {
12333	 test -z "$ac_c_werror_flag" ||
12334	 test ! -s conftest.err
12335       } && test -s conftest.$ac_objext; then
12336  eval "gcc_cv_have_decl_$ac_func=yes"
12337else
12338  $as_echo "$as_me: failed program was:" >&5
12339sed 's/^/| /' conftest.$ac_ext >&5
12340
12341	eval "gcc_cv_have_decl_$ac_func=no"
12342fi
12343
12344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345fi
12346
12347if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12348  { $as_echo "$as_me:$LINENO: result: yes" >&5
12349$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12350#define $ac_tr_decl 1
12351_ACEOF
12352
12353else
12354  { $as_echo "$as_me:$LINENO: result: no" >&5
12355$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12356#define $ac_tr_decl 0
12357_ACEOF
12358
12359fi
12360
12361done
12362
12363
12364
12365for ac_func in times
12366do
12367  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12368{ $as_echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12369$as_echo_n "checking whether $ac_func is declared... " >&6; }
12370if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12371  $as_echo_n "(cached) " >&6
12372else
12373  cat >conftest.$ac_ext <<_ACEOF
12374/* confdefs.h.  */
12375_ACEOF
12376cat confdefs.h >>conftest.$ac_ext
12377cat >>conftest.$ac_ext <<_ACEOF
12378/* end confdefs.h.  */
12379#undef $ac_tr_decl
12380#define $ac_tr_decl 1
12381
12382#include "ansidecl.h"
12383#include "system.h"
12384#ifdef HAVE_SYS_TIMES_H
12385#include <sys/times.h>
12386#endif
12387
12388
12389int
12390main ()
12391{
12392#ifndef $ac_func
12393char *(*pfn) = (char *(*)) $ac_func ;
12394#endif
12395  ;
12396  return 0;
12397}
12398_ACEOF
12399rm -f conftest.$ac_objext
12400if { (ac_try="$ac_compile"
12401case "(($ac_try" in
12402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403  *) ac_try_echo=$ac_try;;
12404esac
12405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12406$as_echo "$ac_try_echo") >&5
12407  (eval "$ac_compile") 2>conftest.er1
12408  ac_status=$?
12409  grep -v '^ *+' conftest.er1 >conftest.err
12410  rm -f conftest.er1
12411  cat conftest.err >&5
12412  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413  (exit $ac_status); } && {
12414	 test -z "$ac_c_werror_flag" ||
12415	 test ! -s conftest.err
12416       } && test -s conftest.$ac_objext; then
12417  eval "gcc_cv_have_decl_$ac_func=yes"
12418else
12419  $as_echo "$as_me: failed program was:" >&5
12420sed 's/^/| /' conftest.$ac_ext >&5
12421
12422	eval "gcc_cv_have_decl_$ac_func=no"
12423fi
12424
12425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426fi
12427
12428if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12429  { $as_echo "$as_me:$LINENO: result: yes" >&5
12430$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12431#define $ac_tr_decl 1
12432_ACEOF
12433
12434else
12435  { $as_echo "$as_me:$LINENO: result: no" >&5
12436$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12437#define $ac_tr_decl 0
12438_ACEOF
12439
12440fi
12441
12442done
12443
12444
12445# More time-related stuff.
12446{ $as_echo "$as_me:$LINENO: checking for struct tms" >&5
12447$as_echo_n "checking for struct tms... " >&6; }
12448if test "${ac_cv_struct_tms+set}" = set; then
12449  $as_echo_n "(cached) " >&6
12450else
12451
12452cat >conftest.$ac_ext <<_ACEOF
12453/* confdefs.h.  */
12454_ACEOF
12455cat confdefs.h >>conftest.$ac_ext
12456cat >>conftest.$ac_ext <<_ACEOF
12457/* end confdefs.h.  */
12458
12459#include "ansidecl.h"
12460#include "system.h"
12461#ifdef HAVE_SYS_TIMES_H
12462#include <sys/times.h>
12463#endif
12464
12465int
12466main ()
12467{
12468struct tms tms;
12469  ;
12470  return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
12474if { (ac_try="$ac_compile"
12475case "(($ac_try" in
12476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477  *) ac_try_echo=$ac_try;;
12478esac
12479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12480$as_echo "$ac_try_echo") >&5
12481  (eval "$ac_compile") 2>conftest.er1
12482  ac_status=$?
12483  grep -v '^ *+' conftest.er1 >conftest.err
12484  rm -f conftest.er1
12485  cat conftest.err >&5
12486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487  (exit $ac_status); } && {
12488	 test -z "$ac_c_werror_flag" ||
12489	 test ! -s conftest.err
12490       } && test -s conftest.$ac_objext; then
12491  ac_cv_struct_tms=yes
12492else
12493  $as_echo "$as_me: failed program was:" >&5
12494sed 's/^/| /' conftest.$ac_ext >&5
12495
12496	ac_cv_struct_tms=no
12497fi
12498
12499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500fi
12501{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12502$as_echo "$ac_cv_struct_tms" >&6; }
12503if test $ac_cv_struct_tms = yes; then
12504
12505cat >>confdefs.h <<\_ACEOF
12506#define HAVE_STRUCT_TMS 1
12507_ACEOF
12508
12509fi
12510
12511# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12512# revisit after autoconf 2.50.
12513{ $as_echo "$as_me:$LINENO: checking for clock_t" >&5
12514$as_echo_n "checking for clock_t... " >&6; }
12515if test "${gcc_cv_type_clock_t+set}" = set; then
12516  $as_echo_n "(cached) " >&6
12517else
12518
12519cat >conftest.$ac_ext <<_ACEOF
12520/* confdefs.h.  */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h.  */
12525
12526#include "ansidecl.h"
12527#include "system.h"
12528
12529int
12530main ()
12531{
12532clock_t x;
12533  ;
12534  return 0;
12535}
12536_ACEOF
12537rm -f conftest.$ac_objext
12538if { (ac_try="$ac_compile"
12539case "(($ac_try" in
12540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541  *) ac_try_echo=$ac_try;;
12542esac
12543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12544$as_echo "$ac_try_echo") >&5
12545  (eval "$ac_compile") 2>conftest.er1
12546  ac_status=$?
12547  grep -v '^ *+' conftest.er1 >conftest.err
12548  rm -f conftest.er1
12549  cat conftest.err >&5
12550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551  (exit $ac_status); } && {
12552	 test -z "$ac_c_werror_flag" ||
12553	 test ! -s conftest.err
12554       } && test -s conftest.$ac_objext; then
12555  gcc_cv_type_clock_t=yes
12556else
12557  $as_echo "$as_me: failed program was:" >&5
12558sed 's/^/| /' conftest.$ac_ext >&5
12559
12560	gcc_cv_type_clock_t=no
12561fi
12562
12563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564fi
12565{ $as_echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12566$as_echo "$gcc_cv_type_clock_t" >&6; }
12567if test $gcc_cv_type_clock_t = yes; then
12568
12569cat >>confdefs.h <<\_ACEOF
12570#define HAVE_CLOCK_T 1
12571_ACEOF
12572
12573fi
12574
12575# Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12576CFLAGS="$saved_CFLAGS"
12577
12578# Check whether --enable-initfini-array was given.
12579if test "${enable_initfini_array+set}" = set; then
12580  enableval=$enable_initfini_array;
12581else
12582
12583{ $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12584$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
12585if test "${gcc_cv_initfini_array+set}" = set; then
12586  $as_echo_n "(cached) " >&6
12587else
12588    if test "$cross_compiling" = yes; then
12589  gcc_cv_initfini_array=no
12590else
12591  cat >conftest.$ac_ext <<_ACEOF
12592/* confdefs.h.  */
12593_ACEOF
12594cat confdefs.h >>conftest.$ac_ext
12595cat >>conftest.$ac_ext <<_ACEOF
12596/* end confdefs.h.  */
12597
12598static int x = -1;
12599int main (void) { return x; }
12600int foo (void) { x = 0; }
12601int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12602_ACEOF
12603rm -f conftest$ac_exeext
12604if { (ac_try="$ac_link"
12605case "(($ac_try" in
12606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607  *) ac_try_echo=$ac_try;;
12608esac
12609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12610$as_echo "$ac_try_echo") >&5
12611  (eval "$ac_link") 2>&5
12612  ac_status=$?
12613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12615  { (case "(($ac_try" in
12616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617  *) ac_try_echo=$ac_try;;
12618esac
12619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12620$as_echo "$ac_try_echo") >&5
12621  (eval "$ac_try") 2>&5
12622  ac_status=$?
12623  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624  (exit $ac_status); }; }; then
12625  gcc_cv_initfini_array=yes
12626else
12627  $as_echo "$as_me: program exited with status $ac_status" >&5
12628$as_echo "$as_me: failed program was:" >&5
12629sed 's/^/| /' conftest.$ac_ext >&5
12630
12631( exit $ac_status )
12632gcc_cv_initfini_array=no
12633fi
12634rm -rf conftest.dSYM
12635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12636fi
12637
12638
12639fi
12640{ $as_echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12641$as_echo "$gcc_cv_initfini_array" >&6; }
12642  enable_initfini_array=$gcc_cv_initfini_array
12643
12644fi
12645
12646if test $enable_initfini_array = yes; then
12647
12648cat >>confdefs.h <<\_ACEOF
12649#define HAVE_INITFINI_ARRAY 1
12650_ACEOF
12651
12652fi
12653
12654# mkdir takes a single argument on some systems.
12655{ $as_echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12656$as_echo_n "checking if mkdir takes one argument... " >&6; }
12657if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12658  $as_echo_n "(cached) " >&6
12659else
12660  cat >conftest.$ac_ext <<_ACEOF
12661/* confdefs.h.  */
12662_ACEOF
12663cat confdefs.h >>conftest.$ac_ext
12664cat >>conftest.$ac_ext <<_ACEOF
12665/* end confdefs.h.  */
12666
12667#include <sys/types.h>
12668#ifdef HAVE_SYS_STAT_H
12669# include <sys/stat.h>
12670#endif
12671#ifdef HAVE_UNISTD_H
12672# include <unistd.h>
12673#endif
12674#ifdef HAVE_DIRECT_H
12675# include <direct.h>
12676#endif
12677int
12678main ()
12679{
12680mkdir ("foo", 0);
12681  ;
12682  return 0;
12683}
12684_ACEOF
12685rm -f conftest.$ac_objext
12686if { (ac_try="$ac_compile"
12687case "(($ac_try" in
12688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689  *) ac_try_echo=$ac_try;;
12690esac
12691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12692$as_echo "$ac_try_echo") >&5
12693  (eval "$ac_compile") 2>conftest.er1
12694  ac_status=$?
12695  grep -v '^ *+' conftest.er1 >conftest.err
12696  rm -f conftest.er1
12697  cat conftest.err >&5
12698  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699  (exit $ac_status); } && {
12700	 test -z "$ac_c_werror_flag" ||
12701	 test ! -s conftest.err
12702       } && test -s conftest.$ac_objext; then
12703  gcc_cv_mkdir_takes_one_arg=no
12704else
12705  $as_echo "$as_me: failed program was:" >&5
12706sed 's/^/| /' conftest.$ac_ext >&5
12707
12708	gcc_cv_mkdir_takes_one_arg=yes
12709fi
12710
12711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12712fi
12713{ $as_echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12714$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12715if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12716
12717cat >>confdefs.h <<\_ACEOF
12718#define MKDIR_TAKES_ONE_ARG 1
12719_ACEOF
12720
12721fi
12722
12723
12724# File extensions
12725manext='.1'
12726objext='.o'
12727
12728
12729
12730# With Setjmp/Longjmp based exception handling.
12731# Check whether --enable-sjlj-exceptions was given.
12732if test "${enable_sjlj_exceptions+set}" = set; then
12733  enableval=$enable_sjlj_exceptions; sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12734
12735cat >>confdefs.h <<_ACEOF
12736#define CONFIG_SJLJ_EXCEPTIONS $sjlj
12737_ACEOF
12738
12739fi
12740
12741
12742# For platforms with the unwind ABI which includes an unwind library,
12743# libunwind, we can choose to use the system libunwind.
12744
12745# Check whether --with-system-libunwind was given.
12746if test "${with_system_libunwind+set}" = set; then
12747  withval=$with_system_libunwind;
12748fi
12749
12750
12751# --------------------------------------------------------
12752# Build, host, and target specific configuration fragments
12753# --------------------------------------------------------
12754
12755# Collect build-machine-specific information.
12756. ${srcdir}/config.build
12757
12758# Collect host-machine-specific information.
12759. ${srcdir}/config.host
12760
12761target_gtfiles=
12762
12763# Collect target-machine-specific information.
12764. ${srcdir}/config.gcc
12765
12766extra_objs="${host_extra_objs} ${extra_objs}"
12767extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12768
12769# Default the target-machine variables that were not explicitly set.
12770if test x"$tm_file" = x
12771then tm_file=$cpu_type/$cpu_type.h; fi
12772
12773if test x"$extra_headers" = x
12774then extra_headers=; fi
12775
12776if test x$md_file = x
12777then md_file=$cpu_type/$cpu_type.md; fi
12778
12779if test x$out_file = x
12780then out_file=$cpu_type/$cpu_type.c; fi
12781
12782if test x"$tmake_file" = x
12783then tmake_file=$cpu_type/t-$cpu_type
12784fi
12785
12786if test x"$dwarf2" = xyes
12787then tm_file="$tm_file tm-dwarf2.h"
12788fi
12789
12790# Say what files are being used for the output code and MD file.
12791echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12792echo "Using \`$srcdir/config/$md_file' as machine description file."
12793
12794# If any of the xm_file variables contain nonexistent files, warn
12795# about them and drop them.
12796
12797bx=
12798for x in $build_xm_file; do
12799  if    test -f $srcdir/config/$x
12800  then      bx="$bx $x"
12801  else      { $as_echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12802$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12803  fi
12804done
12805build_xm_file="$bx"
12806
12807hx=
12808for x in $host_xm_file; do
12809  if    test -f $srcdir/config/$x
12810  then      hx="$hx $x"
12811  else      { $as_echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12812$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12813  fi
12814done
12815host_xm_file="$hx"
12816
12817tx=
12818for x in $xm_file; do
12819  if    test -f $srcdir/config/$x
12820  then      tx="$tx $x"
12821  else      { $as_echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12822$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12823  fi
12824done
12825xm_file="$tx"
12826
12827count=a
12828for f in $tm_file; do
12829	count=${count}x
12830done
12831if test $count = ax; then
12832	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12833else
12834	echo "Using the following target machine macro files:"
12835	for f in $tm_file; do
12836		echo "	$srcdir/config/$f"
12837	done
12838fi
12839
12840if test x$need_64bit_hwint = xyes; then
12841
12842cat >>confdefs.h <<\_ACEOF
12843#define NEED_64BIT_HOST_WIDE_INT 1
12844_ACEOF
12845
12846fi
12847
12848if test x$use_long_long_for_widest_fast_int = xyes; then
12849
12850cat >>confdefs.h <<\_ACEOF
12851#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12852_ACEOF
12853
12854fi
12855
12856count=a
12857for f in $host_xm_file; do
12858	count=${count}x
12859done
12860if test $count = a; then
12861	:
12862elif test $count = ax; then
12863	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12864else
12865	echo "Using the following host machine macro files:"
12866	for f in $host_xm_file; do
12867		echo "	$srcdir/config/$f"
12868	done
12869fi
12870echo "Using ${out_host_hook_obj} for host machine hooks."
12871
12872if test "$host_xm_file" != "$build_xm_file"; then
12873	count=a
12874	for f in $build_xm_file; do
12875		count=${count}x
12876	done
12877	if test $count = a; then
12878		:
12879	elif test $count = ax; then
12880		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12881	else
12882		echo "Using the following build machine macro files:"
12883		for f in $build_xm_file; do
12884			echo "	$srcdir/config/$f"
12885		done
12886	fi
12887fi
12888
12889# ---------
12890# Threading
12891# ---------
12892
12893# Check if a valid thread package
12894case ${enable_threads} in
12895  "" | no)
12896    # No threads
12897    target_thread_file='single'
12898    ;;
12899  yes)
12900    # default
12901    target_thread_file='single'
12902    ;;
12903  aix | dce | gnat | irix | posix | posix95 | rtems | \
12904  single | solaris | vxworks | win32 )
12905    target_thread_file=${enable_threads}
12906    ;;
12907  *)
12908    echo "${enable_threads} is an unknown thread package" 1>&2
12909    exit 1
12910    ;;
12911esac
12912
12913if test x${thread_file} = x; then
12914  # No thread file set by target-specific clauses in config.gcc,
12915  # so use file chosen by default logic above
12916  thread_file=${target_thread_file}
12917fi
12918
12919# Make gthr-default.h if we have a thread file.
12920gthread_flags=
12921if test $thread_file != single; then
12922  rm -f gthr-default.h
12923  echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12924  gthread_flags=-DHAVE_GTHR_DEFAULT
12925fi
12926
12927
12928# --------
12929# UNSORTED
12930# --------
12931
12932use_cxa_atexit=no
12933if test x$enable___cxa_atexit = xyes || \
12934   test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12935  if test x$host = x$target; then
12936    { $as_echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12937$as_echo_n "checking for __cxa_atexit... " >&6; }
12938if test "${ac_cv_func___cxa_atexit+set}" = set; then
12939  $as_echo_n "(cached) " >&6
12940else
12941  cat >conftest.$ac_ext <<_ACEOF
12942/* confdefs.h.  */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h.  */
12947/* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12948   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12949#define __cxa_atexit innocuous___cxa_atexit
12950
12951/* System header to define __stub macros and hopefully few prototypes,
12952    which can conflict with char __cxa_atexit (); below.
12953    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12954    <limits.h> exists even on freestanding compilers.  */
12955
12956#ifdef __STDC__
12957# include <limits.h>
12958#else
12959# include <assert.h>
12960#endif
12961
12962#undef __cxa_atexit
12963
12964/* Override any GCC internal prototype to avoid an error.
12965   Use char because int might match the return type of a GCC
12966   builtin and then its argument prototype would still apply.  */
12967#ifdef __cplusplus
12968extern "C"
12969#endif
12970char __cxa_atexit ();
12971/* The GNU C library defines this for functions which it implements
12972    to always fail with ENOSYS.  Some functions are actually named
12973    something starting with __ and the normal name is an alias.  */
12974#if defined __stub___cxa_atexit || defined __stub_____cxa_atexit
12975choke me
12976#endif
12977
12978int
12979main ()
12980{
12981return __cxa_atexit ();
12982  ;
12983  return 0;
12984}
12985_ACEOF
12986rm -f conftest.$ac_objext conftest$ac_exeext
12987if { (ac_try="$ac_link"
12988case "(($ac_try" in
12989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990  *) ac_try_echo=$ac_try;;
12991esac
12992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12993$as_echo "$ac_try_echo") >&5
12994  (eval "$ac_link") 2>conftest.er1
12995  ac_status=$?
12996  grep -v '^ *+' conftest.er1 >conftest.err
12997  rm -f conftest.er1
12998  cat conftest.err >&5
12999  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000  (exit $ac_status); } && {
13001	 test -z "$ac_c_werror_flag" ||
13002	 test ! -s conftest.err
13003       } && test -s conftest$ac_exeext && {
13004	 test "$cross_compiling" = yes ||
13005	 $as_test_x conftest$ac_exeext
13006       }; then
13007  ac_cv_func___cxa_atexit=yes
13008else
13009  $as_echo "$as_me: failed program was:" >&5
13010sed 's/^/| /' conftest.$ac_ext >&5
13011
13012	ac_cv_func___cxa_atexit=no
13013fi
13014
13015rm -rf conftest.dSYM
13016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13017      conftest$ac_exeext conftest.$ac_ext
13018fi
13019{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13020$as_echo "$ac_cv_func___cxa_atexit" >&6; }
13021if test $ac_cv_func___cxa_atexit = yes; then
13022  use_cxa_atexit=yes
13023else
13024  echo "__cxa_atexit can't be enabled on this target"
13025fi
13026
13027  else
13028    # We can't check for __cxa_atexit when building a cross, so assume
13029    # it is available
13030    use_cxa_atexit=yes
13031  fi
13032  if test x$use_cxa_atexit = xyes; then
13033
13034cat >>confdefs.h <<\_ACEOF
13035#define DEFAULT_USE_CXA_ATEXIT 1
13036_ACEOF
13037
13038  fi
13039fi
13040
13041# Look for a file containing extra machine modes.
13042if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13043  extra_modes_file='$(srcdir)'/config/${extra_modes}
13044
13045
13046cat >>confdefs.h <<_ACEOF
13047#define EXTRA_MODES_FILE "config/$extra_modes"
13048_ACEOF
13049
13050fi
13051
13052# Convert extra_options into a form suitable for Makefile use.
13053extra_opt_files=
13054for f in $extra_options; do
13055  extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13056done
13057
13058
13059# auto-host.h is the file containing items generated by autoconf and is
13060# the first file included by config.h.
13061# If host=build, it is correct to have bconfig include auto-host.h
13062# as well.  If host!=build, we are in error and need to do more
13063# work to find out the build config parameters.
13064if test x$host = x$build
13065then
13066	build_auto=auto-host.h
13067else
13068	# We create a subdir, then run autoconf in the subdir.
13069	# To prevent recursion we set host and build for the new
13070	# invocation of configure to the build for this invocation
13071	# of configure.
13072	tempdir=build.$$
13073	rm -rf $tempdir
13074	mkdir $tempdir
13075	cd $tempdir
13076	case ${srcdir} in
13077	/* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13078	*) realsrcdir=../${srcdir};;
13079	esac
13080	saved_CFLAGS="${CFLAGS}"
13081	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13082	${realsrcdir}/configure \
13083		--enable-languages=${enable_languages-all} \
13084		--target=$target_alias --host=$build_alias --build=$build_alias
13085	CFLAGS="${saved_CFLAGS}"
13086
13087	# We just finished tests for the build machine, so rename
13088	# the file auto-build.h in the gcc directory.
13089	mv auto-host.h ../auto-build.h
13090	cd ..
13091	rm -rf $tempdir
13092	build_auto=auto-build.h
13093fi
13094
13095
13096tm_file="${tm_file} defaults.h"
13097tm_p_file="${tm_p_file} tm-preds.h"
13098host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13099build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13100# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13101# put this back in temporarily.
13102xm_file="auto-host.h ansidecl.h ${xm_file}"
13103
13104# --------
13105# UNSORTED
13106# --------
13107
13108# Compile in configure arguments.
13109if test -f configargs.h ; then
13110	# Being re-configured.
13111	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13112	gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13113else
13114	gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13115fi
13116
13117# Double all backslashes and backslash all quotes to turn
13118# gcc_config_arguments into a C string.
13119sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13120$gcc_config_arguments
13121EOF
13122gcc_config_arguments_str=`cat conftest.out`
13123rm -f conftest.out
13124
13125cat > configargs.h <<EOF
13126/* Generated automatically. */
13127static const char configuration_arguments[] = "$gcc_config_arguments_str";
13128static const char thread_model[] = "$thread_file";
13129
13130static const struct {
13131  const char *name, *value;
13132} configure_default_options[] = $configure_default_options;
13133EOF
13134
13135# Internationalization
13136# If we haven't got the data from the intl directory,
13137# assume NLS is disabled.
13138USE_NLS=no
13139LIBINTL=
13140LIBINTL_DEP=
13141INCINTL=
13142XGETTEXT=
13143GMSGFMT=
13144POSUB=
13145if test -f ../intl/config.intl; then
13146  . ../intl/config.intl
13147fi
13148{ $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13149$as_echo_n "checking whether NLS is requested... " >&6; }
13150if test x"$USE_NLS" != xyes; then
13151  { $as_echo "$as_me:$LINENO: result: no" >&5
13152$as_echo "no" >&6; }
13153else
13154  { $as_echo "$as_me:$LINENO: result: yes" >&5
13155$as_echo "yes" >&6; }
13156
13157cat >>confdefs.h <<\_ACEOF
13158#define ENABLE_NLS 1
13159_ACEOF
13160
13161
13162  { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13163$as_echo_n "checking for catalogs to be installed... " >&6; }
13164  # Look for .po and .gmo files in the source directory.
13165  CATALOGS=
13166  XLINGUAS=
13167  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13168    # If there aren't any .gmo files the shell will give us the
13169    # literal string "../path/to/srcdir/po/*.gmo" which has to be
13170    # weeded out.
13171    case "$cat" in *\**)
13172      continue;;
13173    esac
13174    # The quadruple backslash is collapsed to a double backslash
13175    # by the backticks, then collapsed again by the double quotes,
13176    # leaving us with one backslash in the sed expression (right
13177    # before the dot that mustn't act as a wildcard).
13178    cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
13179    lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
13180    # The user is allowed to set LINGUAS to a list of languages to
13181    # install catalogs for.  If it's empty that means "all of them."
13182    if test "x$LINGUAS" = x; then
13183      CATALOGS="$CATALOGS $cat"
13184      XLINGUAS="$XLINGUAS $lang"
13185    else
13186      case "$LINGUAS" in *$lang*)
13187        CATALOGS="$CATALOGS $cat"
13188        XLINGUAS="$XLINGUAS $lang"
13189        ;;
13190      esac
13191    fi
13192  done
13193  LINGUAS="$XLINGUAS"
13194  { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
13195$as_echo "$LINGUAS" >&6; }
13196fi
13197
13198# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13199# -liconv on the link line twice.
13200case "$LIBINTL" in *$LIBICONV*)
13201	LIBICONV= ;;
13202esac
13203
13204# Check whether --enable-secureplt was given.
13205if test "${enable_secureplt+set}" = set; then
13206  enableval=$enable_secureplt;
13207fi
13208
13209
13210# Windows32 Registry support for specifying GCC installation paths.
13211# Check whether --enable-win32-registry was given.
13212if test "${enable_win32_registry+set}" = set; then
13213  enableval=$enable_win32_registry;
13214fi
13215
13216
13217case $host_os in
13218  win32 | pe | cygwin* | mingw32* | uwin*)
13219    if test "x$enable_win32_registry" != xno; then
13220      { $as_echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13221$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13222if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13223  $as_echo_n "(cached) " >&6
13224else
13225  ac_func_search_save_LIBS=$LIBS
13226cat >conftest.$ac_ext <<_ACEOF
13227/* confdefs.h.  */
13228_ACEOF
13229cat confdefs.h >>conftest.$ac_ext
13230cat >>conftest.$ac_ext <<_ACEOF
13231/* end confdefs.h.  */
13232
13233/* Override any GCC internal prototype to avoid an error.
13234   Use char because int might match the return type of a GCC
13235   builtin and then its argument prototype would still apply.  */
13236#ifdef __cplusplus
13237extern "C"
13238#endif
13239char RegOpenKeyExA ();
13240int
13241main ()
13242{
13243return RegOpenKeyExA ();
13244  ;
13245  return 0;
13246}
13247_ACEOF
13248for ac_lib in '' advapi32; do
13249  if test -z "$ac_lib"; then
13250    ac_res="none required"
13251  else
13252    ac_res=-l$ac_lib
13253    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13254  fi
13255  rm -f conftest.$ac_objext conftest$ac_exeext
13256if { (ac_try="$ac_link"
13257case "(($ac_try" in
13258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259  *) ac_try_echo=$ac_try;;
13260esac
13261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13262$as_echo "$ac_try_echo") >&5
13263  (eval "$ac_link") 2>conftest.er1
13264  ac_status=$?
13265  grep -v '^ *+' conftest.er1 >conftest.err
13266  rm -f conftest.er1
13267  cat conftest.err >&5
13268  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269  (exit $ac_status); } && {
13270	 test -z "$ac_c_werror_flag" ||
13271	 test ! -s conftest.err
13272       } && test -s conftest$ac_exeext && {
13273	 test "$cross_compiling" = yes ||
13274	 $as_test_x conftest$ac_exeext
13275       }; then
13276  ac_cv_search_RegOpenKeyExA=$ac_res
13277else
13278  $as_echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
13281
13282fi
13283
13284rm -rf conftest.dSYM
13285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13286      conftest$ac_exeext
13287  if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13288  break
13289fi
13290done
13291if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13292  :
13293else
13294  ac_cv_search_RegOpenKeyExA=no
13295fi
13296rm conftest.$ac_ext
13297LIBS=$ac_func_search_save_LIBS
13298fi
13299{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13300$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13301ac_res=$ac_cv_search_RegOpenKeyExA
13302if test "$ac_res" != no; then
13303  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13304
13305else
13306  enable_win32_registry=no
13307fi
13308
13309    fi
13310
13311    if test "x$enable_win32_registry" != xno; then
13312
13313cat >>confdefs.h <<\_ACEOF
13314#define ENABLE_WIN32_REGISTRY 1
13315_ACEOF
13316
13317
13318      if test "x$enable_win32_registry" != xyes \
13319         && test "x$enable_win32_registry" != x; then
13320
13321cat >>confdefs.h <<_ACEOF
13322#define WIN32_REGISTRY_KEY "$enable_win32_registry"
13323_ACEOF
13324
13325      fi
13326    fi
13327  ;;
13328esac
13329
13330# Get an absolute path to the GCC top-level source directory
13331holddir=`${PWDCMD-pwd}`
13332cd $srcdir
13333topdir=`${PWDCMD-pwd}`
13334cd $holddir
13335
13336# Conditionalize the makefile for this host machine.
13337xmake_file=
13338for f in ${host_xmake_file}
13339do
13340	if test -f ${srcdir}/config/$f
13341	then
13342		xmake_file="${xmake_file} \$(srcdir)/config/$f"
13343	fi
13344done
13345
13346# Conditionalize the makefile for this target machine.
13347tmake_file_=
13348for f in ${tmake_file}
13349do
13350	if test -f ${srcdir}/config/$f
13351	then
13352		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13353	fi
13354done
13355tmake_file="${tmake_file_}"
13356
13357# If the host doesn't support symlinks, modify CC in
13358# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
13359# Otherwise, we can use "CC=$(CC)".
13360rm -f symtest.tem
13361case "$LN_S" in
13362	*-s*)
13363		cc_set_by_configure="\$(CC)"
13364		quoted_cc_set_by_configure="\$(CC)"
13365		stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13366		quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13367		;;
13368	*)
13369		cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
13370		quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
13371		stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
13372		quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
13373		;;
13374esac
13375
13376# This is a terrible hack which will go away some day.
13377host_cc_for_libada=${CC}
13378
13379
13380out_object_file=`basename $out_file .c`.o
13381
13382tm_file_list="options.h"
13383tm_include_list="options.h"
13384for f in $tm_file; do
13385  case $f in
13386    defaults.h )
13387       tm_file_list="${tm_file_list} \$(srcdir)/$f"
13388       tm_include_list="${tm_include_list} $f"
13389       ;;
13390    * )
13391       tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13392       tm_include_list="${tm_include_list} config/$f"
13393       ;;
13394  esac
13395done
13396
13397tm_p_file_list=
13398tm_p_include_list=
13399for f in $tm_p_file; do
13400  case $f in
13401    tm-preds.h )
13402       tm_p_file_list="${tm_p_file_list} $f"
13403       tm_p_include_list="${tm_p_include_list} $f"
13404       ;;
13405    * )
13406       tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13407       tm_p_include_list="${tm_p_include_list} config/$f"
13408  esac
13409done
13410
13411xm_file_list=
13412xm_include_list=
13413for f in $xm_file; do
13414  case $f in
13415    ansidecl.h )
13416       xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13417       xm_include_list="${xm_include_list} $f"
13418       ;;
13419    auto-host.h )
13420       xm_file_list="${xm_file_list} $f"
13421       xm_include_list="${xm_include_list} $f"
13422       ;;
13423    * )
13424       xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13425       xm_include_list="${xm_include_list} config/$f"
13426       ;;
13427  esac
13428done
13429
13430host_xm_file_list=
13431host_xm_include_list=
13432for f in $host_xm_file; do
13433  case $f in
13434    ansidecl.h )
13435       host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13436       host_xm_include_list="${host_xm_include_list} $f"
13437       ;;
13438    auto-host.h )
13439       host_xm_file_list="${host_xm_file_list} $f"
13440       host_xm_include_list="${host_xm_include_list} $f"
13441       ;;
13442    * )
13443       host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13444       host_xm_include_list="${host_xm_include_list} config/$f"
13445       ;;
13446  esac
13447done
13448
13449build_xm_file_list=
13450for f in $build_xm_file; do
13451  case $f in
13452    ansidecl.h )
13453       build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13454       build_xm_include_list="${build_xm_include_list} $f"
13455       ;;
13456    auto-build.h | auto-host.h )
13457       build_xm_file_list="${build_xm_file_list} $f"
13458       build_xm_include_list="${build_xm_include_list} $f"
13459       ;;
13460    * )
13461       build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13462       build_xm_include_list="${build_xm_include_list} config/$f"
13463       ;;
13464  esac
13465done
13466
13467# Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
13468# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13469CROSS=
13470ALL=all.internal
13471SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13472
13473if test "x$with_build_sysroot" != x; then
13474  build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13475else
13476  # This value is used, even on a native system, because
13477  # CROSS_SYSTEM_HEADER_DIR is just
13478  # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13479  build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13480fi
13481
13482if test x$host != x$target
13483then
13484	CROSS="-DCROSS_COMPILE"
13485	ALL=all.cross
13486	SYSTEM_HEADER_DIR=$build_system_header_dir
13487	case "$host","$target" in
13488	# Darwin crosses can use the host system's libraries and headers,
13489	# because of the fat library support.  Of course, it must be the
13490	# same version of Darwin on both sides.  Allow the user to
13491	# just say --target=foo-darwin without a version number to mean
13492	# "the version on this system".
13493	    *-*-darwin*,*-*-darwin*)
13494		hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13495		targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13496		if test $hostos = $targetos -o $targetos = darwin ; then
13497		    CROSS=
13498		    SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13499		    with_headers=yes
13500		fi
13501		;;
13502
13503	    i?86-*-*,x86_64-*-* \
13504	    | powerpc*-*-*,powerpc64*-*-*)
13505		CROSS="$CROSS -DNATIVE_CROSS" ;;
13506	esac
13507elif test "x$TARGET_SYSTEM_ROOT" != x; then
13508        SYSTEM_HEADER_DIR=$build_system_header_dir
13509fi
13510
13511# If this is a cross-compiler that does not
13512# have its own set of headers then define
13513# inhibit_libc
13514
13515# If this is using newlib, without having the headers available now,
13516# then define inhibit_libc in LIBGCC2_CFLAGS.
13517# This prevents libgcc2 from containing any code which requires libc
13518# support.
13519inhibit_libc=false
13520if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13521       test x$with_newlib = xyes ; } &&
13522     { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13523       inhibit_libc=true
13524fi
13525
13526
13527# When building gcc with a cross-compiler, we need to adjust things so
13528# that the generator programs are still built with the native compiler.
13529# Also, we cannot run fixincludes or fix-header.
13530
13531# These are the normal (build=host) settings:
13532CC_FOR_BUILD='$(CC)'
13533BUILD_CFLAGS='$(ALL_CFLAGS)'
13534STMP_FIXINC=stmp-fixinc
13535
13536# Possibly disable fixproto, on a per-target basis.
13537case ${use_fixproto} in
13538  no)
13539    STMP_FIXPROTO=
13540    ;;
13541  yes)
13542    STMP_FIXPROTO=stmp-fixproto
13543    ;;
13544esac
13545
13546
13547# And these apply if build != host, or we are generating coverage data
13548if test x$build != x$host || test "x$coverage_flags" != x
13549then
13550    BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13551
13552    if test "x$TARGET_SYSTEM_ROOT" = x; then
13553	if test "x$STMP_FIXPROTO" != x; then
13554	  STMP_FIXPROTO=stmp-install-fixproto
13555	fi
13556    fi
13557fi
13558
13559# Expand extra_headers to include complete path.
13560# This substitutes for lots of t-* files.
13561extra_headers_list=
13562# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13563for file in ${extra_headers} ; do
13564  extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13565done
13566
13567# Define collect2 in Makefile.
13568case $host_can_use_collect2 in
13569  no) collect2= ;;
13570  *) collect2='collect2$(exeext)' ;;
13571esac
13572
13573
13574# Add a definition of USE_COLLECT2 if system wants one.
13575case $use_collect2 in
13576  no) use_collect2= ;;
13577  "") ;;
13578  *)
13579    host_xm_defines="${host_xm_defines} USE_COLLECT2"
13580    xm_defines="${xm_defines} USE_COLLECT2"
13581    case $host_can_use_collect2 in
13582      no)
13583        { { $as_echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13584$as_echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13585   { (exit 1); exit 1; }; }
13586        ;;
13587    esac
13588    ;;
13589esac
13590
13591# ---------------------------
13592# Assembler & linker features
13593# ---------------------------
13594
13595# Identify the assembler which will work hand-in-glove with the newly
13596# built GCC, so that we can examine its features.  This is the assembler
13597# which will be driven by the driver program.
13598#
13599# If build != host, and we aren't building gas in-tree, we identify a
13600# build->target assembler and hope that it will have the same features
13601# as the host->target assembler we'll be using.
13602in_tree_gas=no
13603gcc_cv_as=
13604gcc_cv_gas_major_version=
13605gcc_cv_gas_minor_version=
13606gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13607if test -x "$DEFAULT_ASSEMBLER"; then
13608	gcc_cv_as="$DEFAULT_ASSEMBLER"
13609elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13610     && test -f ../gas/Makefile \
13611     && test x$build = x$host; then
13612  # Single tree build which includes gas.  We want to prefer it
13613  # over whatever linker top-level may have detected, since
13614  # we'll use what we're building after installation anyway.
13615  in_tree_gas=yes
13616  gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13617for f in $gcc_cv_as_bfd_srcdir/configure \
13618         $gcc_cv_as_gas_srcdir/configure \
13619         $gcc_cv_as_gas_srcdir/configure.in \
13620         $gcc_cv_as_gas_srcdir/Makefile.in ; do
13621  gcc_cv_gas_version=`sed -n -e 's/^[ 	]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13622  if test x$gcc_cv_gas_version != x; then
13623    break
13624  fi
13625done
13626gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13627gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13628gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13629case $gcc_cv_gas_patch_version in
13630  "") gcc_cv_gas_patch_version="0" ;;
13631esac
13632gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13633			    + $gcc_cv_gas_minor_version \) \* 1000 \
13634			    + $gcc_cv_gas_patch_version`
13635
13636  gcc_cv_as=../gas/as-new$build_exeext
13637  in_tree_gas_is_elf=no
13638  if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13639     || (grep 'obj_format = multi' ../gas/Makefile \
13640         && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13641  then
13642    in_tree_gas_is_elf=yes
13643  fi
13644elif test -x as$build_exeext; then
13645	# Build using assembler in the current directory.
13646	gcc_cv_as=./as$build_exeext
13647fi
13648
13649
13650# When searching for the assembler or linker, search the same directories
13651# that the installed compiler will search.  Else we may find the wrong
13652# assembler or linker and lose.  If we do not find a suitable binary,
13653# then try the user's path.
13654#
13655# Also note we have to check MD_EXEC_PREFIX before checking the user's path.
13656if test "x$exec_prefix" = xNONE; then
13657	if test "x$prefix" = xNONE; then
13658		gcc_cv_tool_prefix=/usr/local
13659	else
13660		gcc_cv_tool_prefix=$prefix
13661	fi
13662else
13663	gcc_cv_tool_prefix=$exec_prefix
13664fi
13665
13666if test x$host = x$build; then
13667    gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
13668    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
13669    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
13670    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
13671    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
13672    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
13673else
13674    gcc_cv_tool_dirs=
13675fi
13676
13677if test x$build = x$target; then
13678    # Rummage through tm_files looking for MD_EXEC_PREFIX
13679    md_dirs=
13680    for f in ${tm_file_list}; do
13681	if test -f $f; then
13682	    if grep '^#[ 	]*undef[ 	]*MD_EXEC_PREFIX' $f > /dev/null; then
13683		md_dirs=
13684	    fi
13685	    md_dirs="$md_dirs "`sed -n -e 's@^#[ 	]*define[ 	]*MD_EXEC_PREFIX[ 	]*"\(.*\)/"@\1@p' < $f`
13686	fi
13687    done
13688    for f in ${md_dirs}; do
13689        gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
13690    done
13691fi
13692
13693
13694
13695
13696exec 6>/dev/null
13697
13698# First try the environment variables.  Handle full paths or basenames.
13699if test "x$gcc_cv_as" = x && test -n "$AS_FOR_TARGET"; then
13700	# Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13701set dummy $AS_FOR_TARGET; ac_word=$2
13702{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13703$as_echo_n "checking for $ac_word... " >&6; }
13704if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13705  $as_echo_n "(cached) " >&6
13706else
13707  case $gcc_cv_as in
13708  [\\/]* | ?:[\\/]*)
13709  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13710  ;;
13711  *)
13712  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13713for as_dir in $PATH
13714do
13715  IFS=$as_save_IFS
13716  test -z "$as_dir" && as_dir=.
13717  for ac_exec_ext in '' $ac_executable_extensions; do
13718  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13719    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13720    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13721    break 2
13722  fi
13723done
13724done
13725IFS=$as_save_IFS
13726
13727  ;;
13728esac
13729fi
13730gcc_cv_as=$ac_cv_path_gcc_cv_as
13731if test -n "$gcc_cv_as"; then
13732  { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13733$as_echo "$gcc_cv_as" >&6; }
13734else
13735  { $as_echo "$as_me:$LINENO: result: no" >&5
13736$as_echo "no" >&6; }
13737fi
13738
13739
13740fi
13741if test "x$gcc_cv_as" = x && test -n "$AS" && test x$host = x$target; then
13742	# Extract the first word of "$AS", so it can be a program name with args.
13743set dummy $AS; ac_word=$2
13744{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13745$as_echo_n "checking for $ac_word... " >&6; }
13746if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13747  $as_echo_n "(cached) " >&6
13748else
13749  case $gcc_cv_as in
13750  [\\/]* | ?:[\\/]*)
13751  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13752  ;;
13753  *)
13754  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13755for as_dir in $PATH
13756do
13757  IFS=$as_save_IFS
13758  test -z "$as_dir" && as_dir=.
13759  for ac_exec_ext in '' $ac_executable_extensions; do
13760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13761    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13762    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13763    break 2
13764  fi
13765done
13766done
13767IFS=$as_save_IFS
13768
13769  ;;
13770esac
13771fi
13772gcc_cv_as=$ac_cv_path_gcc_cv_as
13773if test -n "$gcc_cv_as"; then
13774  { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13775$as_echo "$gcc_cv_as" >&6; }
13776else
13777  { $as_echo "$as_me:$LINENO: result: no" >&5
13778$as_echo "no" >&6; }
13779fi
13780
13781
13782fi
13783
13784if test "x$gcc_cv_as" = x; then
13785	# The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13786	# is empty.
13787	if test "x$gcc_cv_tool_dirs" = x; then
13788		gcc_cv_as=
13789	else
13790		for ac_prog in as
13791do
13792  # Extract the first word of "$ac_prog", so it can be a program name with args.
13793set dummy $ac_prog; ac_word=$2
13794{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13795$as_echo_n "checking for $ac_word... " >&6; }
13796if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13797  $as_echo_n "(cached) " >&6
13798else
13799  case $gcc_cv_as in
13800  [\\/]* | ?:[\\/]*)
13801  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13802  ;;
13803  *)
13804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13805for as_dir in $gcc_cv_tool_dirs
13806do
13807  IFS=$as_save_IFS
13808  test -z "$as_dir" && as_dir=.
13809  for ac_exec_ext in '' $ac_executable_extensions; do
13810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13811    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13812    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13813    break 2
13814  fi
13815done
13816done
13817IFS=$as_save_IFS
13818
13819  ;;
13820esac
13821fi
13822gcc_cv_as=$ac_cv_path_gcc_cv_as
13823if test -n "$gcc_cv_as"; then
13824  { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13825$as_echo "$gcc_cv_as" >&6; }
13826else
13827  { $as_echo "$as_me:$LINENO: result: no" >&5
13828$as_echo "no" >&6; }
13829fi
13830
13831
13832  test -n "$gcc_cv_as" && break
13833done
13834
13835	fi
13836fi
13837if test "x$gcc_cv_as" = x; then
13838	# If the loop above did not find a tool, then use whatever
13839	# one we can find in the users's path.  We are looking for a
13840	# ${build} -> ${target} tool.
13841	if test "x$program_prefix" != xNONE; then
13842		default_tool_name=${program_prefix}as
13843	elif test x$build != x$host && test x$build != x$target; then
13844		default_tool_name=${target_noncanonical}-as
13845	else
13846		default_tool_name=`echo as | sed "${program_transform_name}"`
13847	fi
13848	for ac_prog in $default_tool_name
13849do
13850  # Extract the first word of "$ac_prog", so it can be a program name with args.
13851set dummy $ac_prog; ac_word=$2
13852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13853$as_echo_n "checking for $ac_word... " >&6; }
13854if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13855  $as_echo_n "(cached) " >&6
13856else
13857  case $gcc_cv_as in
13858  [\\/]* | ?:[\\/]*)
13859  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13860  ;;
13861  *)
13862  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863for as_dir in $PATH
13864do
13865  IFS=$as_save_IFS
13866  test -z "$as_dir" && as_dir=.
13867  for ac_exec_ext in '' $ac_executable_extensions; do
13868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13869    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13870    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13871    break 2
13872  fi
13873done
13874done
13875IFS=$as_save_IFS
13876
13877  ;;
13878esac
13879fi
13880gcc_cv_as=$ac_cv_path_gcc_cv_as
13881if test -n "$gcc_cv_as"; then
13882  { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13883$as_echo "$gcc_cv_as" >&6; }
13884else
13885  { $as_echo "$as_me:$LINENO: result: no" >&5
13886$as_echo "no" >&6; }
13887fi
13888
13889
13890  test -n "$gcc_cv_as" && break
13891done
13892test -n "$gcc_cv_as" || gcc_cv_as="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13893
13894fi
13895test "$silent" != yes && exec 6>&1
13896
13897ORIGINAL_AS_FOR_TARGET="$gcc_cv_as"
13898
13899{ $as_echo "$as_me:$LINENO: checking what assembler to use" >&5
13900$as_echo_n "checking what assembler to use... " >&6; }
13901case $in_tree_gas in
13902  yes)
13903    { $as_echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13904$as_echo "\"newly built gas\"" >&6; }
13905    ;;
13906  no)
13907    { $as_echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13908$as_echo "$gcc_cv_as" >&6; }
13909    ;;
13910esac
13911
13912# Identify the linker which will work hand-in-glove with the newly
13913# built GCC, so that we can examine its features.  This is the linker
13914# which will be driven by the driver program.
13915#
13916# If build != host, and we aren't building gas in-tree, we identify a
13917# build->target linker and hope that it will have the same features
13918# as the host->target linker we'll be using.
13919in_tree_ld=no
13920gcc_cv_ld=
13921gcc_cv_gld_major_version=
13922gcc_cv_gld_minor_version=
13923gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13924gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13925if test -x "$DEFAULT_LINKER"; then
13926	gcc_cv_ld="$DEFAULT_LINKER"
13927elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13928     && test -f ../ld/Makefile \
13929     && test x$build = x$host; then
13930	# Single tree build which includes ld.  We want to prefer it
13931	# over whatever linker top-level may have detected, since
13932	# we'll use what we're building after installation anyway.
13933	in_tree_ld=yes
13934	in_tree_ld_is_elf=no
13935	if (grep 'EMUL = .*elf' ../ld/Makefile \
13936	    || grep 'EMUL = .*linux' ../ld/Makefile \
13937	    || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13938	  in_tree_ld_is_elf=yes
13939	fi
13940	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
13941	do
13942		gcc_cv_gld_version=`sed -n -e 's/^[ 	]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13943		if test x$gcc_cv_gld_version != x; then
13944			break
13945		fi
13946	done
13947	gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13948	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13949	gcc_cv_ld=../ld/ld-new$build_exeext
13950elif test -x collect-ld$build_exeext; then
13951	# Build using linker in the current directory.
13952	gcc_cv_ld=./collect-ld$build_exeext
13953fi
13954
13955
13956
13957
13958
13959exec 6>/dev/null
13960
13961# First try the environment variables.  Handle full paths or basenames.
13962if test "x$gcc_cv_ld" = x && test -n "$LD_FOR_TARGET"; then
13963	# Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13964set dummy $LD_FOR_TARGET; ac_word=$2
13965{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13966$as_echo_n "checking for $ac_word... " >&6; }
13967if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13968  $as_echo_n "(cached) " >&6
13969else
13970  case $gcc_cv_ld in
13971  [\\/]* | ?:[\\/]*)
13972  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13973  ;;
13974  *)
13975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976for as_dir in $PATH
13977do
13978  IFS=$as_save_IFS
13979  test -z "$as_dir" && as_dir=.
13980  for ac_exec_ext in '' $ac_executable_extensions; do
13981  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13982    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13983    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13984    break 2
13985  fi
13986done
13987done
13988IFS=$as_save_IFS
13989
13990  ;;
13991esac
13992fi
13993gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13994if test -n "$gcc_cv_ld"; then
13995  { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13996$as_echo "$gcc_cv_ld" >&6; }
13997else
13998  { $as_echo "$as_me:$LINENO: result: no" >&5
13999$as_echo "no" >&6; }
14000fi
14001
14002
14003fi
14004if test "x$gcc_cv_ld" = x && test -n "$LD" && test x$host = x$target; then
14005	# Extract the first word of "$LD", so it can be a program name with args.
14006set dummy $LD; ac_word=$2
14007{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14008$as_echo_n "checking for $ac_word... " >&6; }
14009if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
14010  $as_echo_n "(cached) " >&6
14011else
14012  case $gcc_cv_ld in
14013  [\\/]* | ?:[\\/]*)
14014  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
14015  ;;
14016  *)
14017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018for as_dir in $PATH
14019do
14020  IFS=$as_save_IFS
14021  test -z "$as_dir" && as_dir=.
14022  for ac_exec_ext in '' $ac_executable_extensions; do
14023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14024    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
14025    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14026    break 2
14027  fi
14028done
14029done
14030IFS=$as_save_IFS
14031
14032  ;;
14033esac
14034fi
14035gcc_cv_ld=$ac_cv_path_gcc_cv_ld
14036if test -n "$gcc_cv_ld"; then
14037  { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14038$as_echo "$gcc_cv_ld" >&6; }
14039else
14040  { $as_echo "$as_me:$LINENO: result: no" >&5
14041$as_echo "no" >&6; }
14042fi
14043
14044
14045fi
14046
14047if test "x$gcc_cv_ld" = x; then
14048	# The AC_PATH_PROGS macro doesn't work properly when its 4th argument
14049	# is empty.
14050	if test "x$gcc_cv_tool_dirs" = x; then
14051		gcc_cv_ld=
14052	else
14053		for ac_prog in ld
14054do
14055  # Extract the first word of "$ac_prog", so it can be a program name with args.
14056set dummy $ac_prog; ac_word=$2
14057{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14058$as_echo_n "checking for $ac_word... " >&6; }
14059if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
14060  $as_echo_n "(cached) " >&6
14061else
14062  case $gcc_cv_ld in
14063  [\\/]* | ?:[\\/]*)
14064  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
14065  ;;
14066  *)
14067  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068for as_dir in $gcc_cv_tool_dirs
14069do
14070  IFS=$as_save_IFS
14071  test -z "$as_dir" && as_dir=.
14072  for ac_exec_ext in '' $ac_executable_extensions; do
14073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14074    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
14075    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14076    break 2
14077  fi
14078done
14079done
14080IFS=$as_save_IFS
14081
14082  ;;
14083esac
14084fi
14085gcc_cv_ld=$ac_cv_path_gcc_cv_ld
14086if test -n "$gcc_cv_ld"; then
14087  { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14088$as_echo "$gcc_cv_ld" >&6; }
14089else
14090  { $as_echo "$as_me:$LINENO: result: no" >&5
14091$as_echo "no" >&6; }
14092fi
14093
14094
14095  test -n "$gcc_cv_ld" && break
14096done
14097
14098	fi
14099fi
14100if test "x$gcc_cv_ld" = x; then
14101	# If the loop above did not find a tool, then use whatever
14102	# one we can find in the users's path.  We are looking for a
14103	# ${build} -> ${target} tool.
14104	if test "x$program_prefix" != xNONE; then
14105		default_tool_name=${program_prefix}ld
14106	elif test x$build != x$host && test x$build != x$target; then
14107		default_tool_name=${target_noncanonical}-ld
14108	else
14109		default_tool_name=`echo ld | sed "${program_transform_name}"`
14110	fi
14111	for ac_prog in $default_tool_name
14112do
14113  # Extract the first word of "$ac_prog", so it can be a program name with args.
14114set dummy $ac_prog; ac_word=$2
14115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14116$as_echo_n "checking for $ac_word... " >&6; }
14117if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
14118  $as_echo_n "(cached) " >&6
14119else
14120  case $gcc_cv_ld in
14121  [\\/]* | ?:[\\/]*)
14122  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
14123  ;;
14124  *)
14125  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126for as_dir in $PATH
14127do
14128  IFS=$as_save_IFS
14129  test -z "$as_dir" && as_dir=.
14130  for ac_exec_ext in '' $ac_executable_extensions; do
14131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14132    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
14133    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14134    break 2
14135  fi
14136done
14137done
14138IFS=$as_save_IFS
14139
14140  ;;
14141esac
14142fi
14143gcc_cv_ld=$ac_cv_path_gcc_cv_ld
14144if test -n "$gcc_cv_ld"; then
14145  { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14146$as_echo "$gcc_cv_ld" >&6; }
14147else
14148  { $as_echo "$as_me:$LINENO: result: no" >&5
14149$as_echo "no" >&6; }
14150fi
14151
14152
14153  test -n "$gcc_cv_ld" && break
14154done
14155test -n "$gcc_cv_ld" || gcc_cv_ld="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
14156
14157fi
14158test "$silent" != yes && exec 6>&1
14159
14160ORIGINAL_LD_FOR_TARGET="$gcc_cv_ld"
14161
14162{ $as_echo "$as_me:$LINENO: checking what linker to use" >&5
14163$as_echo_n "checking what linker to use... " >&6; }
14164case $in_tree_ld in
14165  yes)
14166    { $as_echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
14167$as_echo "\"newly built ld\"" >&6; }
14168    ;;
14169  no)
14170    { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14171$as_echo "$gcc_cv_ld" >&6; }
14172    ;;
14173esac
14174
14175# Figure out what nm we will be using.
14176gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
14177in_tree_nm=no
14178gcc_cv_nm=
14179if test -f $gcc_cv_binutils_srcdir/configure.in \
14180     && test -f ../binutils/Makefile; then
14181	# Single tree build which includes binutils.
14182	in_tree_nm=yes
14183	gcc_cv_nm=../binutils/nm-new$build_exeext
14184elif test -x nm$build_exeext; then
14185	gcc_cv_nm=./nm$build_exeext
14186fi
14187
14188
14189
14190
14191
14192exec 6>/dev/null
14193
14194# First try the environment variables.  Handle full paths or basenames.
14195if test "x$gcc_cv_nm" = x && test -n "$NM_FOR_TARGET"; then
14196	# Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
14197set dummy $NM_FOR_TARGET; ac_word=$2
14198{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14199$as_echo_n "checking for $ac_word... " >&6; }
14200if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14201  $as_echo_n "(cached) " >&6
14202else
14203  case $gcc_cv_nm in
14204  [\\/]* | ?:[\\/]*)
14205  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14206  ;;
14207  *)
14208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14209for as_dir in $PATH
14210do
14211  IFS=$as_save_IFS
14212  test -z "$as_dir" && as_dir=.
14213  for ac_exec_ext in '' $ac_executable_extensions; do
14214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14215    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14216    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14217    break 2
14218  fi
14219done
14220done
14221IFS=$as_save_IFS
14222
14223  ;;
14224esac
14225fi
14226gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14227if test -n "$gcc_cv_nm"; then
14228  { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14229$as_echo "$gcc_cv_nm" >&6; }
14230else
14231  { $as_echo "$as_me:$LINENO: result: no" >&5
14232$as_echo "no" >&6; }
14233fi
14234
14235
14236fi
14237if test "x$gcc_cv_nm" = x && test -n "$NM" && test x$host = x$target; then
14238	# Extract the first word of "$NM", so it can be a program name with args.
14239set dummy $NM; ac_word=$2
14240{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14241$as_echo_n "checking for $ac_word... " >&6; }
14242if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14243  $as_echo_n "(cached) " >&6
14244else
14245  case $gcc_cv_nm in
14246  [\\/]* | ?:[\\/]*)
14247  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14248  ;;
14249  *)
14250  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251for as_dir in $PATH
14252do
14253  IFS=$as_save_IFS
14254  test -z "$as_dir" && as_dir=.
14255  for ac_exec_ext in '' $ac_executable_extensions; do
14256  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14257    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14258    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14259    break 2
14260  fi
14261done
14262done
14263IFS=$as_save_IFS
14264
14265  ;;
14266esac
14267fi
14268gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14269if test -n "$gcc_cv_nm"; then
14270  { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14271$as_echo "$gcc_cv_nm" >&6; }
14272else
14273  { $as_echo "$as_me:$LINENO: result: no" >&5
14274$as_echo "no" >&6; }
14275fi
14276
14277
14278fi
14279
14280if test "x$gcc_cv_nm" = x; then
14281	# The AC_PATH_PROGS macro doesn't work properly when its 4th argument
14282	# is empty.
14283	if test "x$gcc_cv_tool_dirs" = x; then
14284		gcc_cv_nm=
14285	else
14286		for ac_prog in nm
14287do
14288  # Extract the first word of "$ac_prog", so it can be a program name with args.
14289set dummy $ac_prog; ac_word=$2
14290{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14291$as_echo_n "checking for $ac_word... " >&6; }
14292if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14293  $as_echo_n "(cached) " >&6
14294else
14295  case $gcc_cv_nm in
14296  [\\/]* | ?:[\\/]*)
14297  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14298  ;;
14299  *)
14300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14301for as_dir in $gcc_cv_tool_dirs
14302do
14303  IFS=$as_save_IFS
14304  test -z "$as_dir" && as_dir=.
14305  for ac_exec_ext in '' $ac_executable_extensions; do
14306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14307    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14308    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14309    break 2
14310  fi
14311done
14312done
14313IFS=$as_save_IFS
14314
14315  ;;
14316esac
14317fi
14318gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14319if test -n "$gcc_cv_nm"; then
14320  { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14321$as_echo "$gcc_cv_nm" >&6; }
14322else
14323  { $as_echo "$as_me:$LINENO: result: no" >&5
14324$as_echo "no" >&6; }
14325fi
14326
14327
14328  test -n "$gcc_cv_nm" && break
14329done
14330
14331	fi
14332fi
14333if test "x$gcc_cv_nm" = x; then
14334	# If the loop above did not find a tool, then use whatever
14335	# one we can find in the users's path.  We are looking for a
14336	# ${build} -> ${target} tool.
14337	if test "x$program_prefix" != xNONE; then
14338		default_tool_name=${program_prefix}nm
14339	elif test x$build != x$host && test x$build != x$target; then
14340		default_tool_name=${target_noncanonical}-nm
14341	else
14342		default_tool_name=`echo nm | sed "${program_transform_name}"`
14343	fi
14344	for ac_prog in $default_tool_name
14345do
14346  # Extract the first word of "$ac_prog", so it can be a program name with args.
14347set dummy $ac_prog; ac_word=$2
14348{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14349$as_echo_n "checking for $ac_word... " >&6; }
14350if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14351  $as_echo_n "(cached) " >&6
14352else
14353  case $gcc_cv_nm in
14354  [\\/]* | ?:[\\/]*)
14355  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14356  ;;
14357  *)
14358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359for as_dir in $PATH
14360do
14361  IFS=$as_save_IFS
14362  test -z "$as_dir" && as_dir=.
14363  for ac_exec_ext in '' $ac_executable_extensions; do
14364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14365    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14366    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14367    break 2
14368  fi
14369done
14370done
14371IFS=$as_save_IFS
14372
14373  ;;
14374esac
14375fi
14376gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14377if test -n "$gcc_cv_nm"; then
14378  { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14379$as_echo "$gcc_cv_nm" >&6; }
14380else
14381  { $as_echo "$as_me:$LINENO: result: no" >&5
14382$as_echo "no" >&6; }
14383fi
14384
14385
14386  test -n "$gcc_cv_nm" && break
14387done
14388test -n "$gcc_cv_nm" || gcc_cv_nm="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
14389
14390fi
14391test "$silent" != yes && exec 6>&1
14392
14393ORIGINAL_NM_FOR_TARGET="$gcc_cv_nm"
14394
14395{ $as_echo "$as_me:$LINENO: checking what nm to use" >&5
14396$as_echo_n "checking what nm to use... " >&6; }
14397case $in_tree_nm in
14398  yes) { $as_echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
14399$as_echo "\"newly built nm\"" >&6; } ;;
14400  no)  { $as_echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14401$as_echo "$gcc_cv_nm" >&6; } ;;
14402esac
14403
14404# Figure out what objdump we will be using.
14405in_tree_objdump=no
14406gcc_cv_objdump=
14407if test -f $gcc_cv_binutils_srcdir/configure.in \
14408     && test -f ../binutils/Makefile; then
14409	# Single tree build which includes binutils.
14410	in_tree_objdump=yes
14411	gcc_cv_objdump=../binutils/objdump$build_exeext
14412elif test -x objdump$build_exeext; then
14413	gcc_cv_objdump=./objdump$build_exeext
14414fi
14415
14416
14417
14418
14419
14420exec 6>/dev/null
14421
14422# First try the environment variables.  Handle full paths or basenames.
14423if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP_FOR_TARGET"; then
14424	# Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14425set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
14426{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14427$as_echo_n "checking for $ac_word... " >&6; }
14428if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14429  $as_echo_n "(cached) " >&6
14430else
14431  case $gcc_cv_objdump in
14432  [\\/]* | ?:[\\/]*)
14433  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14434  ;;
14435  *)
14436  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14437for as_dir in $PATH
14438do
14439  IFS=$as_save_IFS
14440  test -z "$as_dir" && as_dir=.
14441  for ac_exec_ext in '' $ac_executable_extensions; do
14442  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14443    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14444    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14445    break 2
14446  fi
14447done
14448done
14449IFS=$as_save_IFS
14450
14451  ;;
14452esac
14453fi
14454gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14455if test -n "$gcc_cv_objdump"; then
14456  { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14457$as_echo "$gcc_cv_objdump" >&6; }
14458else
14459  { $as_echo "$as_me:$LINENO: result: no" >&5
14460$as_echo "no" >&6; }
14461fi
14462
14463
14464fi
14465if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP" && test x$host = x$target; then
14466	# Extract the first word of "$OBJDUMP", so it can be a program name with args.
14467set dummy $OBJDUMP; ac_word=$2
14468{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14469$as_echo_n "checking for $ac_word... " >&6; }
14470if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14471  $as_echo_n "(cached) " >&6
14472else
14473  case $gcc_cv_objdump in
14474  [\\/]* | ?:[\\/]*)
14475  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14476  ;;
14477  *)
14478  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14479for as_dir in $PATH
14480do
14481  IFS=$as_save_IFS
14482  test -z "$as_dir" && as_dir=.
14483  for ac_exec_ext in '' $ac_executable_extensions; do
14484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14485    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14486    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14487    break 2
14488  fi
14489done
14490done
14491IFS=$as_save_IFS
14492
14493  ;;
14494esac
14495fi
14496gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14497if test -n "$gcc_cv_objdump"; then
14498  { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14499$as_echo "$gcc_cv_objdump" >&6; }
14500else
14501  { $as_echo "$as_me:$LINENO: result: no" >&5
14502$as_echo "no" >&6; }
14503fi
14504
14505
14506fi
14507
14508if test "x$gcc_cv_objdump" = x; then
14509	# The AC_PATH_PROGS macro doesn't work properly when its 4th argument
14510	# is empty.
14511	if test "x$gcc_cv_tool_dirs" = x; then
14512		gcc_cv_objdump=
14513	else
14514		for ac_prog in objdump
14515do
14516  # Extract the first word of "$ac_prog", so it can be a program name with args.
14517set dummy $ac_prog; ac_word=$2
14518{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14519$as_echo_n "checking for $ac_word... " >&6; }
14520if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14521  $as_echo_n "(cached) " >&6
14522else
14523  case $gcc_cv_objdump in
14524  [\\/]* | ?:[\\/]*)
14525  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14526  ;;
14527  *)
14528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14529for as_dir in $gcc_cv_tool_dirs
14530do
14531  IFS=$as_save_IFS
14532  test -z "$as_dir" && as_dir=.
14533  for ac_exec_ext in '' $ac_executable_extensions; do
14534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14535    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14536    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14537    break 2
14538  fi
14539done
14540done
14541IFS=$as_save_IFS
14542
14543  ;;
14544esac
14545fi
14546gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14547if test -n "$gcc_cv_objdump"; then
14548  { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14549$as_echo "$gcc_cv_objdump" >&6; }
14550else
14551  { $as_echo "$as_me:$LINENO: result: no" >&5
14552$as_echo "no" >&6; }
14553fi
14554
14555
14556  test -n "$gcc_cv_objdump" && break
14557done
14558
14559	fi
14560fi
14561if test "x$gcc_cv_objdump" = x; then
14562	# If the loop above did not find a tool, then use whatever
14563	# one we can find in the users's path.  We are looking for a
14564	# ${build} -> ${target} tool.
14565	if test "x$program_prefix" != xNONE; then
14566		default_tool_name=${program_prefix}objdump
14567	elif test x$build != x$host && test x$build != x$target; then
14568		default_tool_name=${target_noncanonical}-objdump
14569	else
14570		default_tool_name=`echo objdump | sed "${program_transform_name}"`
14571	fi
14572	for ac_prog in $default_tool_name
14573do
14574  # Extract the first word of "$ac_prog", so it can be a program name with args.
14575set dummy $ac_prog; ac_word=$2
14576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14577$as_echo_n "checking for $ac_word... " >&6; }
14578if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14579  $as_echo_n "(cached) " >&6
14580else
14581  case $gcc_cv_objdump in
14582  [\\/]* | ?:[\\/]*)
14583  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14584  ;;
14585  *)
14586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14587for as_dir in $PATH
14588do
14589  IFS=$as_save_IFS
14590  test -z "$as_dir" && as_dir=.
14591  for ac_exec_ext in '' $ac_executable_extensions; do
14592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14593    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14594    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14595    break 2
14596  fi
14597done
14598done
14599IFS=$as_save_IFS
14600
14601  ;;
14602esac
14603fi
14604gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14605if test -n "$gcc_cv_objdump"; then
14606  { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14607$as_echo "$gcc_cv_objdump" >&6; }
14608else
14609  { $as_echo "$as_me:$LINENO: result: no" >&5
14610$as_echo "no" >&6; }
14611fi
14612
14613
14614  test -n "$gcc_cv_objdump" && break
14615done
14616test -n "$gcc_cv_objdump" || gcc_cv_objdump="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
14617
14618fi
14619test "$silent" != yes && exec 6>&1
14620
14621ORIGINAL_OBJDUMP_FOR_TARGET="$gcc_cv_objdump"
14622
14623{ $as_echo "$as_me:$LINENO: checking what objdump to use" >&5
14624$as_echo_n "checking what objdump to use... " >&6; }
14625case $in_tree_objdump in
14626  yes) { $as_echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
14627$as_echo "\"newly built objdump\"" >&6; } ;;
14628  no)  { $as_echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14629$as_echo "$gcc_cv_objdump" >&6; } ;;
14630esac
14631
14632# Figure out what assembler alignment features are present.
14633{ $as_echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14634$as_echo_n "checking assembler for .balign and .p2align... " >&6; }
14635if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14636  $as_echo_n "(cached) " >&6
14637else
14638  gcc_cv_as_balign_and_p2align=no
14639    if test $in_tree_gas = yes; then
14640    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14641  then gcc_cv_as_balign_and_p2align=yes
14642fi
14643  elif test x$gcc_cv_as != x; then
14644    echo '.balign 4
14645.p2align 2' > conftest.s
14646    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648  (eval $ac_try) 2>&5
14649  ac_status=$?
14650  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651  (exit $ac_status); }; }
14652    then
14653	gcc_cv_as_balign_and_p2align=yes
14654    else
14655      echo "configure: failed program was" >&5
14656      cat conftest.s >&5
14657    fi
14658    rm -f conftest.o conftest.s
14659  fi
14660fi
14661{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14662$as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
14663if test $gcc_cv_as_balign_and_p2align = yes; then
14664
14665cat >>confdefs.h <<\_ACEOF
14666#define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14667_ACEOF
14668
14669fi
14670
14671{ $as_echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14672$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
14673if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14674  $as_echo_n "(cached) " >&6
14675else
14676  gcc_cv_as_max_skip_p2align=no
14677    if test $in_tree_gas = yes; then
14678    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14679  then gcc_cv_as_max_skip_p2align=yes
14680fi
14681  elif test x$gcc_cv_as != x; then
14682    echo '.p2align 4,,7' > conftest.s
14683    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685  (eval $ac_try) 2>&5
14686  ac_status=$?
14687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688  (exit $ac_status); }; }
14689    then
14690	gcc_cv_as_max_skip_p2align=yes
14691    else
14692      echo "configure: failed program was" >&5
14693      cat conftest.s >&5
14694    fi
14695    rm -f conftest.o conftest.s
14696  fi
14697fi
14698{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14699$as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
14700if test $gcc_cv_as_max_skip_p2align = yes; then
14701
14702cat >>confdefs.h <<\_ACEOF
14703#define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14704_ACEOF
14705
14706fi
14707
14708{ $as_echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14709$as_echo_n "checking assembler for working .subsection -1... " >&6; }
14710if test "${gcc_cv_as_subsection_m1+set}" = set; then
14711  $as_echo_n "(cached) " >&6
14712else
14713  gcc_cv_as_subsection_m1=no
14714    if test $in_tree_gas = yes; then
14715    if test $in_tree_gas_is_elf = yes \
14716  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14717  then gcc_cv_as_subsection_m1=yes
14718fi
14719  elif test x$gcc_cv_as != x; then
14720    echo 'conftest_label1: .word 0
14721.subsection -1
14722conftest_label2: .word 0
14723.previous' > conftest.s
14724    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726  (eval $ac_try) 2>&5
14727  ac_status=$?
14728  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729  (exit $ac_status); }; }
14730    then
14731	if test x$gcc_cv_nm != x; then
14732    $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
14733    $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
14734    if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
14735    then :
14736    else gcc_cv_as_subsection_m1=yes
14737    fi
14738    rm -f conftest.nm1 conftest.nm2
14739  fi
14740    else
14741      echo "configure: failed program was" >&5
14742      cat conftest.s >&5
14743    fi
14744    rm -f conftest.o conftest.s
14745  fi
14746fi
14747{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14748$as_echo "$gcc_cv_as_subsection_m1" >&6; }
14749if test $gcc_cv_as_subsection_m1 = yes; then
14750
14751cat >>confdefs.h <<\_ACEOF
14752#define HAVE_GAS_SUBSECTION_ORDERING 1
14753_ACEOF
14754
14755fi
14756
14757{ $as_echo "$as_me:$LINENO: checking assembler for .weak" >&5
14758$as_echo_n "checking assembler for .weak... " >&6; }
14759if test "${gcc_cv_as_weak+set}" = set; then
14760  $as_echo_n "(cached) " >&6
14761else
14762  gcc_cv_as_weak=no
14763    if test $in_tree_gas = yes; then
14764    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14765  then gcc_cv_as_weak=yes
14766fi
14767  elif test x$gcc_cv_as != x; then
14768    echo '	.weak foobar' > conftest.s
14769    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771  (eval $ac_try) 2>&5
14772  ac_status=$?
14773  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774  (exit $ac_status); }; }
14775    then
14776	gcc_cv_as_weak=yes
14777    else
14778      echo "configure: failed program was" >&5
14779      cat conftest.s >&5
14780    fi
14781    rm -f conftest.o conftest.s
14782  fi
14783fi
14784{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14785$as_echo "$gcc_cv_as_weak" >&6; }
14786if test $gcc_cv_as_weak = yes; then
14787
14788cat >>confdefs.h <<\_ACEOF
14789#define HAVE_GAS_WEAK 1
14790_ACEOF
14791
14792fi
14793
14794{ $as_echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14795$as_echo_n "checking assembler for .weakref... " >&6; }
14796if test "${gcc_cv_as_weakref+set}" = set; then
14797  $as_echo_n "(cached) " >&6
14798else
14799  gcc_cv_as_weakref=no
14800    if test $in_tree_gas = yes; then
14801    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14802  then gcc_cv_as_weakref=yes
14803fi
14804  elif test x$gcc_cv_as != x; then
14805    echo '	.weakref foobar, barfnot' > conftest.s
14806    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808  (eval $ac_try) 2>&5
14809  ac_status=$?
14810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811  (exit $ac_status); }; }
14812    then
14813	gcc_cv_as_weakref=yes
14814    else
14815      echo "configure: failed program was" >&5
14816      cat conftest.s >&5
14817    fi
14818    rm -f conftest.o conftest.s
14819  fi
14820fi
14821{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14822$as_echo "$gcc_cv_as_weakref" >&6; }
14823if test $gcc_cv_as_weakref = yes; then
14824
14825cat >>confdefs.h <<\_ACEOF
14826#define HAVE_GAS_WEAKREF 1
14827_ACEOF
14828
14829fi
14830
14831{ $as_echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14832$as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
14833if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14834  $as_echo_n "(cached) " >&6
14835else
14836  gcc_cv_as_nsubspa_comdat=no
14837    if test $in_tree_gas = yes; then
14838    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14839  then gcc_cv_as_nsubspa_comdat=yes
14840fi
14841  elif test x$gcc_cv_as != x; then
14842    echo '	.SPACE $TEXT$
14843	.NSUBSPA $CODE$,COMDAT' > conftest.s
14844    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846  (eval $ac_try) 2>&5
14847  ac_status=$?
14848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849  (exit $ac_status); }; }
14850    then
14851	gcc_cv_as_nsubspa_comdat=yes
14852    else
14853      echo "configure: failed program was" >&5
14854      cat conftest.s >&5
14855    fi
14856    rm -f conftest.o conftest.s
14857  fi
14858fi
14859{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14860$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
14861if test $gcc_cv_as_nsubspa_comdat = yes; then
14862
14863cat >>confdefs.h <<\_ACEOF
14864#define HAVE_GAS_NSUBSPA_COMDAT 1
14865_ACEOF
14866
14867fi
14868
14869# .hidden needs to be supported in both the assembler and the linker,
14870# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14871# This is irritatingly difficult to feature test for; we have to check the
14872# date string after the version number.  If we've got an in-tree
14873# ld, we don't know its patchlevel version, so we set the baseline at 2.13
14874# to be safe.
14875# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14876{ $as_echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14877$as_echo_n "checking assembler for .hidden... " >&6; }
14878if test "${gcc_cv_as_hidden+set}" = set; then
14879  $as_echo_n "(cached) " >&6
14880else
14881  gcc_cv_as_hidden=no
14882    if test $in_tree_gas = yes; then
14883    if test $in_tree_gas_is_elf = yes \
14884  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14885  then gcc_cv_as_hidden=yes
14886fi
14887  elif test x$gcc_cv_as != x; then
14888    echo '	.hidden foobar
14889foobar:' > conftest.s
14890    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892  (eval $ac_try) 2>&5
14893  ac_status=$?
14894  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895  (exit $ac_status); }; }
14896    then
14897	gcc_cv_as_hidden=yes
14898    else
14899      echo "configure: failed program was" >&5
14900      cat conftest.s >&5
14901    fi
14902    rm -f conftest.o conftest.s
14903  fi
14904fi
14905{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14906$as_echo "$gcc_cv_as_hidden" >&6; }
14907
14908
14909  ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14910  if echo "$ld_ver" | grep GNU > /dev/null; then
14911    ld_vers=`echo $ld_ver | sed -n \
14912	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p' \
14913	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*\)[	 ].*$,\1,p' \
14914	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[	 ].*$,\1,p' \
14915	-e 's,^.*[ 	 ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ 	].*$,\1,p' \
14916	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[	 -].*$,\1,p'`
14917    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'`
14918    ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14919    ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14920    ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14921  fi
14922
14923{ $as_echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14924$as_echo_n "checking linker for .hidden support... " >&6; }
14925if test "${gcc_cv_ld_hidden+set}" = set; then
14926  $as_echo_n "(cached) " >&6
14927else
14928  if test $in_tree_ld = yes ; then
14929  gcc_cv_ld_hidden=no
14930  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 \
14931     && test $in_tree_ld_is_elf = yes; then
14932     gcc_cv_ld_hidden=yes
14933  fi
14934else
14935  gcc_cv_ld_hidden=yes
14936  if echo "$ld_ver" | grep GNU > /dev/null; then
14937    if test 0"$ld_date" -lt 20020404; then
14938      if test -n "$ld_date"; then
14939	# If there was date string, but was earlier than 2002-04-04, fail
14940	gcc_cv_ld_hidden=no
14941      elif test -z "$ld_vers"; then
14942	# If there was no date string nor ld version number, something is wrong
14943	gcc_cv_ld_hidden=no
14944      else
14945	test -z "$ld_vers_patch" && ld_vers_patch=0
14946	if test "$ld_vers_major" -lt 2; then
14947	  gcc_cv_ld_hidden=no
14948	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14949	  gcc_cv_ld_hidden="no"
14950	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14951	  gcc_cv_ld_hidden=no
14952	fi
14953      fi
14954    fi
14955  else
14956    case "${target}" in
14957      hppa64*-*-hpux* | ia64*-*-hpux*)
14958	gcc_cv_ld_hidden=yes
14959	;;
14960      *)
14961	gcc_cv_ld_hidden=no
14962	;;
14963    esac
14964  fi
14965fi
14966fi
14967{ $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14968$as_echo "$gcc_cv_ld_hidden" >&6; }
14969libgcc_visibility=no
14970
14971
14972if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14973  libgcc_visibility=yes
14974
14975cat >>confdefs.h <<\_ACEOF
14976#define HAVE_GAS_HIDDEN 1
14977_ACEOF
14978
14979fi
14980
14981# Check if we have .[us]leb128, and support symbol arithmetic with it.
14982{ $as_echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14983$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
14984if test "${gcc_cv_as_leb128+set}" = set; then
14985  $as_echo_n "(cached) " >&6
14986else
14987  gcc_cv_as_leb128=no
14988    if test $in_tree_gas = yes; then
14989    if test $in_tree_gas_is_elf = yes \
14990  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14991  then gcc_cv_as_leb128=yes
14992fi
14993  elif test x$gcc_cv_as != x; then
14994    echo '	.data
14995	.uleb128 L2 - L1
14996L1:
14997	.uleb128 1280
14998	.sleb128 -1010
14999L2:' > conftest.s
15000    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002  (eval $ac_try) 2>&5
15003  ac_status=$?
15004  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005  (exit $ac_status); }; }
15006    then
15007	# GAS versions before 2.11 do not support uleb128,
15008  # despite appearing to.
15009  # ??? There exists an elf-specific test that will crash
15010  # the assembler.  Perhaps it's better to figure out whether
15011  # arbitrary sections are supported and try the test.
15012  as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
15013  if echo "$as_ver" | grep GNU > /dev/null; then
15014    as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
15015    as_major=`echo $as_ver | sed 's/\..*//'`
15016    as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
15017    if test $as_major -eq 2 && test $as_minor -lt 11
15018    then :
15019    else gcc_cv_as_leb128=yes
15020    fi
15021  fi
15022    else
15023      echo "configure: failed program was" >&5
15024      cat conftest.s >&5
15025    fi
15026    rm -f conftest.o conftest.s
15027  fi
15028fi
15029{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
15030$as_echo "$gcc_cv_as_leb128" >&6; }
15031if test $gcc_cv_as_leb128 = yes; then
15032
15033cat >>confdefs.h <<\_ACEOF
15034#define HAVE_AS_LEB128 1
15035_ACEOF
15036
15037fi
15038
15039# GAS versions up to and including 2.11.0 may mis-optimize
15040# .eh_frame data.
15041{ $as_echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
15042$as_echo_n "checking assembler for eh_frame optimization... " >&6; }
15043if test "${gcc_cv_as_eh_frame+set}" = set; then
15044  $as_echo_n "(cached) " >&6
15045else
15046  gcc_cv_as_eh_frame=no
15047    if test $in_tree_gas = yes; then
15048    if test $in_tree_gas_is_elf = yes \
15049  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15050  then gcc_cv_as_eh_frame=yes
15051fi
15052  elif test x$gcc_cv_as != x; then
15053    echo '	.text
15054.LFB1:
15055	.4byte	0
15056.L1:
15057	.4byte	0
15058.LFE1:
15059	.section	.eh_frame,"aw",@progbits
15060__FRAME_BEGIN__:
15061	.4byte	.LECIE1-.LSCIE1
15062.LSCIE1:
15063	.4byte	0x0
15064	.byte	0x1
15065	.ascii "z\0"
15066	.byte	0x1
15067	.byte	0x78
15068	.byte	0x1a
15069	.byte	0x0
15070	.byte	0x4
15071	.4byte	1
15072	.p2align 1
15073.LECIE1:
15074.LSFDE1:
15075	.4byte	.LEFDE1-.LASFDE1
15076.LASFDE1:
15077	.4byte	.LASFDE1-__FRAME_BEGIN__
15078	.4byte	.LFB1
15079	.4byte	.LFE1-.LFB1
15080	.byte	0x4
15081	.4byte	.LFE1-.LFB1
15082	.byte	0x4
15083	.4byte	.L1-.LFB1
15084.LEFDE1:' > conftest.s
15085    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087  (eval $ac_try) 2>&5
15088  ac_status=$?
15089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090  (exit $ac_status); }; }
15091    then
15092	  cat > conftest.lit <<EOF
15093 0000 10000000 00000000 017a0001 781a0004  .........z..x...
15094 0010 01000000 12000000 18000000 00000000  ................
15095 0020 08000000 04080000 0044               .........D      
15096EOF
15097cat > conftest.big <<EOF
15098 0000 00000010 00000000 017a0001 781a0004  .........z..x...
15099 0010 00000001 00000012 00000018 00000000  ................
15100 0020 00000008 04000000 0844               .........D      
15101EOF
15102  # If the assembler didn't choke, and we can objdump,
15103  # and we got the correct data, then succeed.
15104  if test x$gcc_cv_objdump != x \
15105  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
15106     | tail -3 > conftest.got \
15107  && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
15108    || cmp conftest.big conftest.got > /dev/null 2>&1; }
15109  then
15110    gcc_cv_as_eh_frame=yes
15111  elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
15112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113  (eval $ac_try) 2>&5
15114  ac_status=$?
15115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116  (exit $ac_status); }; }; then
15117    gcc_cv_as_eh_frame=buggy
15118  else
15119    # Uh oh, what do we do now?
15120    gcc_cv_as_eh_frame=no
15121  fi
15122    else
15123      echo "configure: failed program was" >&5
15124      cat conftest.s >&5
15125    fi
15126    rm -f conftest.o conftest.s
15127  fi
15128fi
15129{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
15130$as_echo "$gcc_cv_as_eh_frame" >&6; }
15131
15132
15133if test $gcc_cv_as_eh_frame = buggy; then
15134
15135cat >>confdefs.h <<\_ACEOF
15136#define USE_AS_TRADITIONAL_FORMAT 1
15137_ACEOF
15138
15139fi
15140
15141{ $as_echo "$as_me:$LINENO: checking assembler for section merging support" >&5
15142$as_echo_n "checking assembler for section merging support... " >&6; }
15143if test "${gcc_cv_as_shf_merge+set}" = set; then
15144  $as_echo_n "(cached) " >&6
15145else
15146  gcc_cv_as_shf_merge=no
15147    if test $in_tree_gas = yes; then
15148    if test $in_tree_gas_is_elf = yes \
15149  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15150  then gcc_cv_as_shf_merge=yes
15151fi
15152  elif test x$gcc_cv_as != x; then
15153    echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
15154    if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156  (eval $ac_try) 2>&5
15157  ac_status=$?
15158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159  (exit $ac_status); }; }
15160    then
15161	gcc_cv_as_shf_merge=yes
15162    else
15163      echo "configure: failed program was" >&5
15164      cat conftest.s >&5
15165    fi
15166    rm -f conftest.o conftest.s
15167  fi
15168fi
15169{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
15170$as_echo "$gcc_cv_as_shf_merge" >&6; }
15171
15172if test $gcc_cv_as_shf_merge = no; then
15173  { $as_echo "$as_me:$LINENO: checking assembler for section merging support" >&5
15174$as_echo_n "checking assembler for section merging support... " >&6; }
15175if test "${gcc_cv_as_shf_merge+set}" = set; then
15176  $as_echo_n "(cached) " >&6
15177else
15178  gcc_cv_as_shf_merge=no
15179    if test $in_tree_gas = yes; then
15180    if test $in_tree_gas_is_elf = yes \
15181  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15182  then gcc_cv_as_shf_merge=yes
15183fi
15184  elif test x$gcc_cv_as != x; then
15185    echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
15186    if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188  (eval $ac_try) 2>&5
15189  ac_status=$?
15190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191  (exit $ac_status); }; }
15192    then
15193	gcc_cv_as_shf_merge=yes
15194    else
15195      echo "configure: failed program was" >&5
15196      cat conftest.s >&5
15197    fi
15198    rm -f conftest.o conftest.s
15199  fi
15200fi
15201{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
15202$as_echo "$gcc_cv_as_shf_merge" >&6; }
15203
15204fi
15205
15206cat >>confdefs.h <<_ACEOF
15207#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
15208_ACEOF
15209
15210
15211{ $as_echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
15212$as_echo_n "checking assembler for COMDAT group support... " >&6; }
15213if test "${gcc_cv_as_comdat_group+set}" = set; then
15214  $as_echo_n "(cached) " >&6
15215else
15216  gcc_cv_as_comdat_group=no
15217    if test $in_tree_gas = yes; then
15218    if test $in_tree_gas_is_elf = yes \
15219  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15220  then gcc_cv_as_comdat_group=yes
15221fi
15222  elif test x$gcc_cv_as != x; then
15223    echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15224    if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226  (eval $ac_try) 2>&5
15227  ac_status=$?
15228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229  (exit $ac_status); }; }
15230    then
15231	gcc_cv_as_comdat_group=yes
15232    else
15233      echo "configure: failed program was" >&5
15234      cat conftest.s >&5
15235    fi
15236    rm -f conftest.o conftest.s
15237  fi
15238fi
15239{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
15240$as_echo "$gcc_cv_as_comdat_group" >&6; }
15241
15242if test $gcc_cv_as_comdat_group = yes; then
15243  gcc_cv_as_comdat_group_percent=no
15244else
15245 { $as_echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
15246$as_echo_n "checking assembler for COMDAT group support... " >&6; }
15247if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
15248  $as_echo_n "(cached) " >&6
15249else
15250  gcc_cv_as_comdat_group_percent=no
15251    if test $in_tree_gas = yes; then
15252    if test $in_tree_gas_is_elf = yes \
15253  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15254  then gcc_cv_as_comdat_group_percent=yes
15255fi
15256  elif test x$gcc_cv_as != x; then
15257    echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
15258    if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
15259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260  (eval $ac_try) 2>&5
15261  ac_status=$?
15262  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263  (exit $ac_status); }; }
15264    then
15265	gcc_cv_as_comdat_group_percent=yes
15266    else
15267      echo "configure: failed program was" >&5
15268      cat conftest.s >&5
15269    fi
15270    rm -f conftest.o conftest.s
15271  fi
15272fi
15273{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
15274$as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
15275
15276fi
15277if test $in_tree_ld != yes && test x"$ld_vers" != x; then
15278  comdat_group=yes
15279  if test 0"$ld_date" -lt 20050308; then
15280    if test -n "$ld_date"; then
15281      # If there was date string, but was earlier than 2005-03-08, fail
15282      comdat_group=no
15283    elif test "$ld_vers_major" -lt 2; then
15284      comdat_group=no
15285    elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
15286      comdat_group=no
15287    fi
15288  fi
15289else
15290  # assume linkers other than GNU ld don't support COMDAT group
15291  comdat_group=no
15292fi
15293if test $comdat_group = no; then
15294  gcc_cv_as_comdat_group=no
15295  gcc_cv_as_comdat_group_percent=no
15296fi
15297
15298cat >>confdefs.h <<_ACEOF
15299#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`
15300_ACEOF
15301
15302
15303# Thread-local storage - the check is heavily parametrized.
15304conftest_s=
15305tls_first_major=
15306tls_first_minor=
15307tls_as_opt=
15308case "$target" in
15309  alpha*-*-*)
15310    conftest_s='
15311	.section ".tdata","awT",@progbits
15312foo:	.long	25
15313	.text
15314	ldq	$27,__tls_get_addr($29)		!literal!1
15315	lda	$16,foo($29)			!tlsgd!1
15316	jsr	$26,($27),__tls_get_addr	!lituse_tlsgd!1
15317	ldq	$27,__tls_get_addr($29)		!literal!2
15318	lda	$16,foo($29)			!tlsldm!2
15319	jsr	$26,($27),__tls_get_addr	!lituse_tlsldm!2
15320	ldq	$1,foo($29)			!gotdtprel
15321	ldah	$2,foo($29)			!dtprelhi
15322	lda	$3,foo($2)			!dtprello
15323	lda	$4,foo($29)			!dtprel
15324	ldq	$1,foo($29)			!gottprel
15325	ldah	$2,foo($29)			!tprelhi
15326	lda	$3,foo($2)			!tprello
15327	lda	$4,foo($29)			!tprel'
15328	tls_first_major=2
15329	tls_first_minor=13
15330	tls_as_opt=--fatal-warnings
15331	;;
15332  frv*-*-*)
15333    conftest_s='
15334	.section ".tdata","awT",@progbits
15335x:      .long   25
15336        .text
15337        call    #gettlsoff(x)'
15338	tls_first_major=2
15339	tls_first_minor=14
15340	;;
15341  hppa*-*-linux* | hppa*-*-netbsd*)
15342    conftest_s='
15343t1:	.reg	%r20
15344t2:	.reg	%r21
15345gp:	.reg	%r19
15346	.section ".tdata","awT",@progbits
15347foo:	.long	25
15348	.text
15349	.align	4
15350	addil LT%foo-$tls_gdidx$,gp
15351	ldo RT%foo-$tls_gdidx$(%r1),%arg0
15352	b __tls_get_addr
15353	nop
15354	addil LT%foo-$tls_ldidx$,gp
15355	b __tls_get_addr
15356	ldo RT%foo-$tls_ldidx$(%r1),%arg0
15357	addil LR%foo-$tls_dtpoff$,%ret0
15358	ldo RR%foo-$tls_dtpoff$(%r1),%t1
15359	mfctl %cr27,%t1
15360	addil LT%foo-$tls_ieoff$,gp
15361	ldw RT%foo-$tls_ieoff$(%r1),%t2
15362	add %t1,%t2,%t3
15363	mfctl %cr27,%t1
15364	addil LR%foo-$tls_leoff$,%t1
15365	ldo RR%foo-$tls_leoff$(%r1),%t2'
15366	tls_first_major=2
15367	tls_first_minor=15
15368	tls_as_opt=--fatal-warnings
15369	;;
15370  arm*-*-*)
15371    conftest_s='
15372	.section ".tdata","awT",%progbits
15373foo:	.long	25
15374	.text
15375.word foo(gottpoff)
15376.word foo(tpoff)
15377.word foo(tlsgd)
15378.word foo(tlsldm)
15379.word foo(tlsldo)'
15380	tls_first_major=2
15381	tls_first_minor=17
15382	;;
15383  i[34567]86-*-*)
15384    conftest_s='
15385	.section ".tdata","awT",@progbits
15386foo:	.long	25
15387	.text
15388	movl	%gs:0, %eax
15389	leal	foo@TLSGD(,%ebx,1), %eax
15390	leal	foo@TLSLDM(%ebx), %eax
15391	leal	foo@DTPOFF(%eax), %edx
15392	movl	foo@GOTTPOFF(%ebx), %eax
15393	subl	foo@GOTTPOFF(%ebx), %eax
15394	addl	foo@GOTNTPOFF(%ebx), %eax
15395	movl	foo@INDNTPOFF, %eax
15396	movl	$foo@TPOFF, %eax
15397	subl	$foo@TPOFF, %eax
15398	leal	foo@NTPOFF(%ecx), %eax'
15399	tls_first_major=2
15400	tls_first_minor=14
15401	tls_as_opt=--fatal-warnings
15402	;;
15403  x86_64-*-*)
15404    conftest_s='
15405	.section ".tdata","awT",@progbits
15406foo:	.long	25
15407	.text
15408	movq	%fs:0, %rax
15409	leaq	foo@TLSGD(%rip), %rdi
15410	leaq	foo@TLSLD(%rip), %rdi
15411	leaq	foo@DTPOFF(%rax), %rdx
15412	movq	foo@GOTTPOFF(%rip), %rax
15413	movq	$foo@TPOFF, %rax'
15414	tls_first_major=2
15415	tls_first_minor=14
15416	tls_as_opt=--fatal-warnings
15417	;;
15418  ia64-*-*)
15419    conftest_s='
15420	.section ".tdata","awT",@progbits
15421foo:	data8	25
15422	.text
15423	addl	r16 = @ltoff(@dtpmod(foo#)), gp
15424	addl	r17 = @ltoff(@dtprel(foo#)), gp
15425	addl	r18 = @ltoff(@tprel(foo#)), gp
15426	addl	r19 = @dtprel(foo#), gp
15427	adds	r21 = @dtprel(foo#), r13
15428	movl	r23 = @dtprel(foo#)
15429	addl	r20 = @tprel(foo#), gp
15430	adds	r22 = @tprel(foo#), r13
15431	movl	r24 = @tprel(foo#)'
15432	tls_first_major=2
15433	tls_first_minor=13
15434	tls_as_opt=--fatal-warnings
15435	;;
15436  mips*-*-*)
15437    conftest_s='
15438	.section .tdata,"awT",@progbits
15439x:
15440	.word 2
15441	.text
15442	addiu $4, $28, %tlsgd(x)
15443	addiu $4, $28, %tlsldm(x)
15444	lui $4, %dtprel_hi(x)
15445	addiu $4, $4, %dtprel_lo(x)
15446	lw $4, %gottprel(x)($28)
15447	lui $4, %tprel_hi(x)
15448	addiu $4, $4, %tprel_lo(x)'
15449	tls_first_major=2
15450	tls_first_minor=16
15451	tls_as_opt='-32 --fatal-warnings'
15452	;;
15453  powerpc-*-*)
15454    conftest_s='
15455	.section ".tdata","awT",@progbits
15456	.align 2
15457ld0:	.space 4
15458ld1:	.space 4
15459x1:	.space 4
15460x2:	.space 4
15461x3:	.space 4
15462	.text
15463	addi 3,31,ld0@got@tlsgd
15464	bl __tls_get_addr
15465	addi 3,31,x1@got@tlsld
15466	bl __tls_get_addr
15467	addi 9,3,x1@dtprel
15468	addis 9,3,x2@dtprel@ha
15469	addi 9,9,x2@dtprel@l
15470	lwz 9,x3@got@tprel(31)
15471	add 9,9,x@tls
15472	addi 9,2,x1@tprel
15473	addis 9,2,x2@tprel@ha
15474	addi 9,9,x2@tprel@l'
15475	tls_first_major=2
15476	tls_first_minor=14
15477	tls_as_opt="-a32 --fatal-warnings"
15478	;;
15479  powerpc64-*-*)
15480    conftest_s='
15481	.section ".tdata","awT",@progbits
15482	.align 3
15483ld0:	.space 8
15484ld1:	.space 8
15485x1:	.space 8
15486x2:	.space 8
15487x3:	.space 8
15488	.text
15489	addi 3,2,ld0@got@tlsgd
15490	bl .__tls_get_addr
15491	nop
15492	addi 3,2,ld1@toc
15493	bl .__tls_get_addr
15494	nop
15495	addi 3,2,x1@got@tlsld
15496	bl .__tls_get_addr
15497	nop
15498	addi 9,3,x1@dtprel
15499	bl .__tls_get_addr
15500	nop
15501	addis 9,3,x2@dtprel@ha
15502	addi 9,9,x2@dtprel@l
15503	bl .__tls_get_addr
15504	nop
15505	ld 9,x3@got@dtprel(2)
15506	add 9,9,3
15507	bl .__tls_get_addr
15508	nop'
15509	tls_first_major=2
15510	tls_first_minor=14
15511	tls_as_opt="-a64 --fatal-warnings"
15512	;;
15513  s390-*-*)
15514    conftest_s='
15515	.section ".tdata","awT",@progbits
15516foo:	.long	25
15517	.text
15518	.long	foo@TLSGD
15519	.long	foo@TLSLDM
15520	.long	foo@DTPOFF
15521	.long	foo@NTPOFF
15522	.long	foo@GOTNTPOFF
15523	.long	foo@INDNTPOFF
15524	l	%r1,foo@GOTNTPOFF(%r12)
15525	l	%r1,0(%r1):tls_load:foo
15526	bas	%r14,0(%r1,%r13):tls_gdcall:foo
15527	bas	%r14,0(%r1,%r13):tls_ldcall:foo'
15528	tls_first_major=2
15529	tls_first_minor=14
15530	tls_as_opt="-m31 --fatal-warnings"
15531	;;
15532  s390x-*-*)
15533    conftest_s='
15534	.section ".tdata","awT",@progbits
15535foo:	.long	25
15536	.text
15537	.quad	foo@TLSGD
15538	.quad	foo@TLSLDM
15539	.quad	foo@DTPOFF
15540	.quad	foo@NTPOFF
15541	.quad	foo@GOTNTPOFF
15542	lg	%r1,foo@GOTNTPOFF(%r12)
15543	larl	%r1,foo@INDNTPOFF
15544	brasl	%r14,__tls_get_offset@PLT:tls_gdcall:foo
15545	brasl	%r14,__tls_get_offset@PLT:tls_ldcall:foo'
15546	tls_first_major=2
15547	tls_first_minor=14
15548	tls_as_opt="-m64 -Aesame --fatal-warnings"
15549	;;
15550  sh-*-* | sh[34]-*-* | sh*l*-*-*)
15551    conftest_s='
15552	.section ".tdata","awT",@progbits
15553foo:	.long	25
15554	.text
15555	.long	foo@TLSGD
15556	.long	foo@TLSLDM
15557	.long	foo@DTPOFF
15558	.long	foo@GOTTPOFF
15559	.long	foo@TPOFF'
15560	tls_first_major=2
15561	tls_first_minor=13
15562	tls_as_opt=--fatal-warnings
15563	;;
15564  sparc*-*-*)
15565    case "$target" in
15566      sparc*-sun-solaris2.[56789]*)
15567	# TLS was introduced in the Solaris 9 4/04 release but
15568	# we do not enable it by default on Solaris 9 either.
15569	if test "x$enable_tls" = xyes ; then
15570	  on_solaris=yes
15571	else
15572	  enable_tls=no;
15573	fi
15574	;;
15575      sparc*-sun-solaris2.*)
15576	on_solaris=yes
15577	;;
15578      *)
15579	on_solaris=no
15580	;;
15581    esac
15582    if test x$on_solaris = xyes && test x$gas_flag = xno; then
15583      conftest_s='
15584	.section ".tdata",#alloc,#write,#tls
15585foo:	.long	25
15586	.text
15587	sethi	%tgd_hi22(foo), %o0
15588	add	%o0, %tgd_lo10(foo), %o1
15589	add	%l7, %o1, %o0, %tgd_add(foo)
15590	call	__tls_get_addr, %tgd_call(foo)
15591	sethi	%tldm_hi22(foo), %l1
15592	add	%l1, %tldm_lo10(foo), %l2
15593	add	%l7, %l2, %o0, %tldm_add(foo)
15594	call	__tls_get_addr, %tldm_call(foo)
15595	sethi	%tldo_hix22(foo), %l3
15596	xor	%l3, %tldo_lox10(foo), %l4
15597	add	%o0, %l4, %l5, %tldo_add(foo)
15598	sethi	%tie_hi22(foo), %o3
15599	add	%o3, %tie_lo10(foo), %o3
15600	ld	[%l7 + %o3], %o2, %tie_ld(foo)
15601	add	%g7, %o2, %o4, %tie_add(foo)
15602	sethi	%tle_hix22(foo), %l1
15603	xor	%l1, %tle_lox10(foo), %o5
15604	ld	[%g7 + %o5], %o1'
15605	tls_first_major=0
15606	tls_first_minor=0
15607    else
15608      conftest_s='
15609	.section ".tdata","awT",@progbits
15610foo:	.long	25
15611	.text
15612	sethi	%tgd_hi22(foo), %o0
15613	add	%o0, %tgd_lo10(foo), %o1
15614	add	%l7, %o1, %o0, %tgd_add(foo)
15615	call	__tls_get_addr, %tgd_call(foo)
15616	sethi	%tldm_hi22(foo), %l1
15617	add	%l1, %tldm_lo10(foo), %l2
15618	add	%l7, %l2, %o0, %tldm_add(foo)
15619	call	__tls_get_addr, %tldm_call(foo)
15620	sethi	%tldo_hix22(foo), %l3
15621	xor	%l3, %tldo_lox10(foo), %l4
15622	add	%o0, %l4, %l5, %tldo_add(foo)
15623	sethi	%tie_hi22(foo), %o3
15624	add	%o3, %tie_lo10(foo), %o3
15625	ld	[%l7 + %o3], %o2, %tie_ld(foo)
15626	add	%g7, %o2, %o4, %tie_add(foo)
15627	sethi	%tle_hix22(foo), %l1
15628	xor	%l1, %tle_lox10(foo), %o5
15629	ld	[%g7 + %o5], %o1'
15630	tls_first_major=2
15631	tls_first_minor=14
15632	tls_as_opt="-32 --fatal-warnings"
15633      fi
15634	;;
15635esac
15636set_have_as_tls=no
15637if test "x$enable_tls" = xno ; then
15638  : # TLS explicitly disabled.
15639elif test "x$enable_tls" = xyes ; then
15640  set_have_as_tls=yes # TLS explicitly enabled.
15641elif test -z "$tls_first_major"; then
15642  : # If we don't have a check, assume no support.
15643else
15644  { $as_echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15645$as_echo_n "checking assembler for thread-local storage support... " >&6; }
15646if test "${gcc_cv_as_tls+set}" = set; then
15647  $as_echo_n "(cached) " >&6
15648else
15649  gcc_cv_as_tls=no
15650    if test $in_tree_gas = yes; then
15651    if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15652  then gcc_cv_as_tls=yes
15653fi
15654  elif test x$gcc_cv_as != x; then
15655    echo "$conftest_s" > conftest.s
15656    if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658  (eval $ac_try) 2>&5
15659  ac_status=$?
15660  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661  (exit $ac_status); }; }
15662    then
15663	gcc_cv_as_tls=yes
15664    else
15665      echo "configure: failed program was" >&5
15666      cat conftest.s >&5
15667    fi
15668    rm -f conftest.o conftest.s
15669  fi
15670fi
15671{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15672$as_echo "$gcc_cv_as_tls" >&6; }
15673if test $gcc_cv_as_tls = yes; then
15674  set_have_as_tls=yes
15675fi
15676fi
15677if test $set_have_as_tls = yes ; then
15678
15679cat >>confdefs.h <<\_ACEOF
15680#define HAVE_AS_TLS 1
15681_ACEOF
15682
15683fi
15684
15685# Target-specific assembler checks.
15686
15687{ $as_echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15688$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
15689gcc_cv_ld_static_dynamic=no
15690if test $in_tree_ld = yes ; then
15691  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15692    gcc_cv_ld_static_dynamic=yes
15693  fi
15694elif test x$gcc_cv_ld != x; then
15695	# Check if linker supports -Bstatic/-Bdynamic option
15696	if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
15697	  && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
15698		gcc_cv_ld_static_dynamic=yes
15699	fi
15700fi
15701if test x"$gcc_cv_ld_static_dynamic" = xyes; then
15702
15703cat >>confdefs.h <<\_ACEOF
15704#define HAVE_LD_STATIC_DYNAMIC 1
15705_ACEOF
15706
15707fi
15708{ $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15709$as_echo "$gcc_cv_ld_static_dynamic" >&6; }
15710
15711if test x"$demangler_in_ld" = xyes; then
15712  { $as_echo "$as_me:$LINENO: checking linker --demangle support" >&5
15713$as_echo_n "checking linker --demangle support... " >&6; }
15714  gcc_cv_ld_demangle=no
15715  if test $in_tree_ld = yes; then
15716    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 \
15717      gcc_cv_ld_demangle=yes
15718    fi
15719  elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
15720    # Check if the GNU linker supports --demangle option
15721    if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
15722      gcc_cv_ld_demangle=yes
15723    fi
15724  fi
15725  if test x"$gcc_cv_ld_demangle" = xyes; then
15726
15727cat >>confdefs.h <<\_ACEOF
15728#define HAVE_LD_DEMANGLE 1
15729_ACEOF
15730
15731  fi
15732  { $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15733$as_echo "$gcc_cv_ld_demangle" >&6; }
15734fi
15735
15736case "$target" in
15737  # All TARGET_ABI_OSF targets.
15738  alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
15739    { $as_echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15740$as_echo_n "checking assembler for explicit relocation support... " >&6; }
15741if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15742  $as_echo_n "(cached) " >&6
15743else
15744  gcc_cv_as_alpha_explicit_relocs=no
15745    if test $in_tree_gas = yes; then
15746    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15747  then gcc_cv_as_alpha_explicit_relocs=yes
15748fi
15749  elif test x$gcc_cv_as != x; then
15750    echo '	.set nomacro
15751	.text
15752	extbl	$3, $2, $3	!lituse_bytoff!1
15753	ldq	$2, a($29)	!literal!1
15754	ldq	$4, b($29)	!literal!2
15755	ldq_u	$3, 0($2)	!lituse_base!1
15756	ldq	$27, f($29)	!literal!5
15757	jsr	$26, ($27), f	!lituse_jsr!5
15758	ldah	$29, 0($26)	!gpdisp!3
15759	lda	$0, c($29)	!gprel
15760	ldah	$1, d($29)	!gprelhigh
15761	lda	$1, d($1)	!gprellow
15762	lda	$29, 0($29)	!gpdisp!3' > conftest.s
15763    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765  (eval $ac_try) 2>&5
15766  ac_status=$?
15767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768  (exit $ac_status); }; }
15769    then
15770	gcc_cv_as_alpha_explicit_relocs=yes
15771    else
15772      echo "configure: failed program was" >&5
15773      cat conftest.s >&5
15774    fi
15775    rm -f conftest.o conftest.s
15776  fi
15777fi
15778{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15779$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
15780if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15781
15782cat >>confdefs.h <<\_ACEOF
15783#define HAVE_AS_EXPLICIT_RELOCS 1
15784_ACEOF
15785
15786fi
15787    { $as_echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15788$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
15789if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15790  $as_echo_n "(cached) " >&6
15791else
15792  gcc_cv_as_alpha_jsrdirect_relocs=no
15793    if test $in_tree_gas = yes; then
15794    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15795  then gcc_cv_as_alpha_jsrdirect_relocs=yes
15796fi
15797  elif test x$gcc_cv_as != x; then
15798    echo '	.set nomacro
15799	.text
15800	ldq	$27, a($29)	!literal!1
15801	jsr	$26, ($27), a	!lituse_jsrdirect!1' > conftest.s
15802    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804  (eval $ac_try) 2>&5
15805  ac_status=$?
15806  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807  (exit $ac_status); }; }
15808    then
15809	gcc_cv_as_alpha_jsrdirect_relocs=yes
15810    else
15811      echo "configure: failed program was" >&5
15812      cat conftest.s >&5
15813    fi
15814    rm -f conftest.o conftest.s
15815  fi
15816fi
15817{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15818$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
15819if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15820
15821cat >>confdefs.h <<\_ACEOF
15822#define HAVE_AS_JSRDIRECT_RELOCS 1
15823_ACEOF
15824
15825fi
15826    ;;
15827
15828  cris-*-*)
15829    { $as_echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15830$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
15831if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15832  $as_echo_n "(cached) " >&6
15833else
15834  gcc_cv_as_cris_no_mul_bug=no
15835    if test $in_tree_gas = yes; then
15836    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15837  then gcc_cv_as_cris_no_mul_bug=yes
15838fi
15839  elif test x$gcc_cv_as != x; then
15840    echo '.text' > conftest.s
15841    if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843  (eval $ac_try) 2>&5
15844  ac_status=$?
15845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846  (exit $ac_status); }; }
15847    then
15848	gcc_cv_as_cris_no_mul_bug=yes
15849    else
15850      echo "configure: failed program was" >&5
15851      cat conftest.s >&5
15852    fi
15853    rm -f conftest.o conftest.s
15854  fi
15855fi
15856{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15857$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
15858if test $gcc_cv_as_cris_no_mul_bug = yes; then
15859
15860cat >>confdefs.h <<\_ACEOF
15861#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15862_ACEOF
15863
15864fi
15865    ;;
15866
15867  sparc*-*-*)
15868    { $as_echo "$as_me:$LINENO: checking assembler for .register" >&5
15869$as_echo_n "checking assembler for .register... " >&6; }
15870if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15871  $as_echo_n "(cached) " >&6
15872else
15873  gcc_cv_as_sparc_register_op=no
15874  if test x$gcc_cv_as != x; then
15875    echo '.register %g2, #scratch' > conftest.s
15876    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878  (eval $ac_try) 2>&5
15879  ac_status=$?
15880  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881  (exit $ac_status); }; }
15882    then
15883	gcc_cv_as_sparc_register_op=yes
15884    else
15885      echo "configure: failed program was" >&5
15886      cat conftest.s >&5
15887    fi
15888    rm -f conftest.o conftest.s
15889  fi
15890fi
15891{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15892$as_echo "$gcc_cv_as_sparc_register_op" >&6; }
15893if test $gcc_cv_as_sparc_register_op = yes; then
15894
15895cat >>confdefs.h <<\_ACEOF
15896#define HAVE_AS_REGISTER_PSEUDO_OP 1
15897_ACEOF
15898
15899fi
15900
15901    { $as_echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15902$as_echo_n "checking assembler for -relax option... " >&6; }
15903if test "${gcc_cv_as_sparc_relax+set}" = set; then
15904  $as_echo_n "(cached) " >&6
15905else
15906  gcc_cv_as_sparc_relax=no
15907  if test x$gcc_cv_as != x; then
15908    echo '.text' > conftest.s
15909    if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911  (eval $ac_try) 2>&5
15912  ac_status=$?
15913  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914  (exit $ac_status); }; }
15915    then
15916	gcc_cv_as_sparc_relax=yes
15917    else
15918      echo "configure: failed program was" >&5
15919      cat conftest.s >&5
15920    fi
15921    rm -f conftest.o conftest.s
15922  fi
15923fi
15924{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15925$as_echo "$gcc_cv_as_sparc_relax" >&6; }
15926if test $gcc_cv_as_sparc_relax = yes; then
15927
15928cat >>confdefs.h <<\_ACEOF
15929#define HAVE_AS_RELAX_OPTION 1
15930_ACEOF
15931
15932fi
15933
15934    { $as_echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15935$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
15936if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15937  $as_echo_n "(cached) " >&6
15938else
15939  gcc_cv_as_sparc_ua_pcrel=no
15940  if test x$gcc_cv_as != x; then
15941    echo '.text
15942foo:
15943	nop
15944.data
15945.align 4
15946.byte 0
15947.uaword %r_disp32(foo)' > conftest.s
15948    if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950  (eval $ac_try) 2>&5
15951  ac_status=$?
15952  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953  (exit $ac_status); }; }
15954    then
15955	if test x$gcc_cv_ld != x \
15956       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15957	 gcc_cv_as_sparc_ua_pcrel=yes
15958       fi
15959       rm -f conftest
15960    else
15961      echo "configure: failed program was" >&5
15962      cat conftest.s >&5
15963    fi
15964    rm -f conftest.o conftest.s
15965  fi
15966fi
15967{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15968$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
15969if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15970
15971cat >>confdefs.h <<\_ACEOF
15972#define HAVE_AS_SPARC_UA_PCREL 1
15973_ACEOF
15974
15975
15976      { $as_echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15977$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
15978if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15979  $as_echo_n "(cached) " >&6
15980else
15981  gcc_cv_as_sparc_ua_pcrel_hidden=no
15982  if test x$gcc_cv_as != x; then
15983    echo '.data
15984.align 4
15985.byte 0x31
15986.uaword %r_disp32(foo)
15987.byte 0x32, 0x33, 0x34
15988.global foo
15989.hidden foo
15990foo:
15991.skip 4' > conftest.s
15992    if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994  (eval $ac_try) 2>&5
15995  ac_status=$?
15996  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997  (exit $ac_status); }; }
15998    then
15999	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
16000	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
16001	 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
16002	    | grep ' 31000000 07323334' > /dev/null 2>&1; then
16003	    if $gcc_cv_objdump -R conftest 2> /dev/null \
16004	       | grep 'DISP32' > /dev/null 2>&1; then
16005		:
16006	    else
16007		gcc_cv_as_sparc_ua_pcrel_hidden=yes
16008	    fi
16009	 fi
16010	 rm -f conftest
16011    else
16012      echo "configure: failed program was" >&5
16013      cat conftest.s >&5
16014    fi
16015    rm -f conftest.o conftest.s
16016  fi
16017fi
16018{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
16019$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
16020if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
16021
16022cat >>confdefs.h <<\_ACEOF
16023#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
16024_ACEOF
16025
16026fi
16027
16028fi # unaligned pcrel relocs
16029
16030    { $as_echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
16031$as_echo_n "checking assembler for offsetable %lo()... " >&6; }
16032if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
16033  $as_echo_n "(cached) " >&6
16034else
16035  gcc_cv_as_sparc_offsetable_lo10=no
16036  if test x$gcc_cv_as != x; then
16037    echo '.text
16038	or %g1, %lo(ab) + 12, %g1
16039	or %g1, %lo(ab + 12), %g1' > conftest.s
16040    if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
16041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042  (eval $ac_try) 2>&5
16043  ac_status=$?
16044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045  (exit $ac_status); }; }
16046    then
16047	if test x$gcc_cv_objdump != x \
16048       && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
16049          | grep ' 82106000 82106000' > /dev/null 2>&1; then
16050	 gcc_cv_as_sparc_offsetable_lo10=yes
16051       fi
16052    else
16053      echo "configure: failed program was" >&5
16054      cat conftest.s >&5
16055    fi
16056    rm -f conftest.o conftest.s
16057  fi
16058fi
16059{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
16060$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
16061if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
16062
16063cat >>confdefs.h <<\_ACEOF
16064#define HAVE_AS_OFFSETABLE_LO10 1
16065_ACEOF
16066
16067fi
16068    ;;
16069
16070  i[34567]86-*-* | x86_64-*-*)
16071    case $target_os in
16072      cygwin* | pe | mingw32*)
16073	# Used for DWARF 2 in PE
16074	{ $as_echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
16075$as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
16076if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
16077  $as_echo_n "(cached) " >&6
16078else
16079  gcc_cv_as_ix86_pe_secrel32=no
16080    if test $in_tree_gas = yes; then
16081    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
16082  then gcc_cv_as_ix86_pe_secrel32=yes
16083fi
16084  elif test x$gcc_cv_as != x; then
16085    echo '.text
16086foo:	nop
16087.data
16088	.secrel32 foo' > conftest.s
16089    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091  (eval $ac_try) 2>&5
16092  ac_status=$?
16093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094  (exit $ac_status); }; }
16095    then
16096	if test x$gcc_cv_ld != x \
16097	   && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
16098	     gcc_cv_as_ix86_pe_secrel32=yes
16099	   fi
16100	   rm -f conftest
16101    else
16102      echo "configure: failed program was" >&5
16103      cat conftest.s >&5
16104    fi
16105    rm -f conftest.o conftest.s
16106  fi
16107fi
16108{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
16109$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
16110if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
16111
16112cat >>confdefs.h <<\_ACEOF
16113#define HAVE_GAS_PE_SECREL32_RELOC 1
16114_ACEOF
16115
16116fi
16117	;;
16118    esac
16119
16120    { $as_echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
16121$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
16122if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
16123  $as_echo_n "(cached) " >&6
16124else
16125  gcc_cv_as_ix86_filds_fists=no
16126    if test $in_tree_gas = yes; then
16127    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
16128  then gcc_cv_as_ix86_filds_fists=yes
16129fi
16130  elif test x$gcc_cv_as != x; then
16131    echo 'filds mem; fists mem' > conftest.s
16132    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134  (eval $ac_try) 2>&5
16135  ac_status=$?
16136  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137  (exit $ac_status); }; }
16138    then
16139	gcc_cv_as_ix86_filds_fists=yes
16140    else
16141      echo "configure: failed program was" >&5
16142      cat conftest.s >&5
16143    fi
16144    rm -f conftest.o conftest.s
16145  fi
16146fi
16147{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
16148$as_echo "$gcc_cv_as_ix86_filds_fists" >&6; }
16149if test $gcc_cv_as_ix86_filds_fists = yes; then
16150
16151cat >>confdefs.h <<\_ACEOF
16152#define HAVE_GAS_FILDS_FISTS 1
16153_ACEOF
16154
16155fi
16156
16157    { $as_echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
16158$as_echo_n "checking assembler for cmov syntax... " >&6; }
16159if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
16160  $as_echo_n "(cached) " >&6
16161else
16162  gcc_cv_as_ix86_cmov_sun_syntax=no
16163  if test x$gcc_cv_as != x; then
16164    echo 'cmovl.l %edx, %eax' > conftest.s
16165    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167  (eval $ac_try) 2>&5
16168  ac_status=$?
16169  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170  (exit $ac_status); }; }
16171    then
16172	gcc_cv_as_ix86_cmov_sun_syntax=yes
16173    else
16174      echo "configure: failed program was" >&5
16175      cat conftest.s >&5
16176    fi
16177    rm -f conftest.o conftest.s
16178  fi
16179fi
16180{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
16181$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
16182if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
16183
16184cat >>confdefs.h <<\_ACEOF
16185#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
16186_ACEOF
16187
16188fi
16189
16190    # This one is used unconditionally by i386.[ch]; it is to be defined
16191    # to 1 if the feature is present, 0 otherwise.
16192    { $as_echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
16193$as_echo_n "checking assembler for GOTOFF in data... " >&6; }
16194if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
16195  $as_echo_n "(cached) " >&6
16196else
16197  gcc_cv_as_ix86_gotoff_in_data=no
16198    if test $in_tree_gas = yes; then
16199    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16200  then gcc_cv_as_ix86_gotoff_in_data=yes
16201fi
16202  elif test x$gcc_cv_as != x; then
16203    echo '	.text
16204.L0:
16205	nop
16206	.data
16207	.long .L0@GOTOFF' > conftest.s
16208    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210  (eval $ac_try) 2>&5
16211  ac_status=$?
16212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213  (exit $ac_status); }; }
16214    then
16215	gcc_cv_as_ix86_gotoff_in_data=yes
16216    else
16217      echo "configure: failed program was" >&5
16218      cat conftest.s >&5
16219    fi
16220    rm -f conftest.o conftest.s
16221  fi
16222fi
16223{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
16224$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
16225
16226
16227cat >>confdefs.h <<_ACEOF
16228#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
16229_ACEOF
16230
16231    ;;
16232
16233  ia64*-*-*)
16234    { $as_echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
16235$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
16236if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
16237  $as_echo_n "(cached) " >&6
16238else
16239  gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
16240    if test $in_tree_gas = yes; then
16241    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16242  then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
16243fi
16244  elif test x$gcc_cv_as != x; then
16245    echo '	.text
16246	addl r15 = @ltoffx(x#), gp
16247	;;
16248	ld8.mov r16 = [r15], x#' > conftest.s
16249    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251  (eval $ac_try) 2>&5
16252  ac_status=$?
16253  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254  (exit $ac_status); }; }
16255    then
16256	gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
16257    else
16258      echo "configure: failed program was" >&5
16259      cat conftest.s >&5
16260    fi
16261    rm -f conftest.o conftest.s
16262  fi
16263fi
16264{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
16265$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
16266if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
16267
16268cat >>confdefs.h <<\_ACEOF
16269#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
16270_ACEOF
16271
16272fi
16273
16274    ;;
16275
16276  powerpc*-*-*)
16277    case $target in
16278      *-*-aix*) conftest_s='	.machine "pwr5"
16279	.csect .text[PR]
16280	mfcr 3,128';;
16281      *-*-darwin*)
16282	{ $as_echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
16283$as_echo_n "checking assembler for .machine directive support... " >&6; }
16284if test "${gcc_cv_as_machine_directive+set}" = set; then
16285  $as_echo_n "(cached) " >&6
16286else
16287  gcc_cv_as_machine_directive=no
16288  if test x$gcc_cv_as != x; then
16289    echo '	.machine ppc7400' > conftest.s
16290    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292  (eval $ac_try) 2>&5
16293  ac_status=$?
16294  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295  (exit $ac_status); }; }
16296    then
16297	gcc_cv_as_machine_directive=yes
16298    else
16299      echo "configure: failed program was" >&5
16300      cat conftest.s >&5
16301    fi
16302    rm -f conftest.o conftest.s
16303  fi
16304fi
16305{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
16306$as_echo "$gcc_cv_as_machine_directive" >&6; }
16307
16308	if test x$gcc_cv_as_machine_directive != xyes; then
16309	  echo "*** This target requires an assembler supporting \".machine\"" >&2
16310	  echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
16311	  test x$build = x$target && exit 1
16312	fi
16313	conftest_s='	.text
16314	mfcr r3,128';;
16315      *) conftest_s='	.machine power4
16316	.text
16317	mfcr 3,128';;
16318    esac
16319
16320    { $as_echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
16321$as_echo_n "checking assembler for mfcr field support... " >&6; }
16322if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
16323  $as_echo_n "(cached) " >&6
16324else
16325  gcc_cv_as_powerpc_mfcrf=no
16326    if test $in_tree_gas = yes; then
16327    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16328  then gcc_cv_as_powerpc_mfcrf=yes
16329fi
16330  elif test x$gcc_cv_as != x; then
16331    echo "$conftest_s" > conftest.s
16332    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334  (eval $ac_try) 2>&5
16335  ac_status=$?
16336  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337  (exit $ac_status); }; }
16338    then
16339	gcc_cv_as_powerpc_mfcrf=yes
16340    else
16341      echo "configure: failed program was" >&5
16342      cat conftest.s >&5
16343    fi
16344    rm -f conftest.o conftest.s
16345  fi
16346fi
16347{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
16348$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
16349if test $gcc_cv_as_powerpc_mfcrf = yes; then
16350
16351cat >>confdefs.h <<\_ACEOF
16352#define HAVE_AS_MFCRF 1
16353_ACEOF
16354
16355fi
16356
16357    case $target in
16358      *-*-aix*) conftest_s='	.machine "pwr5"
16359	.csect .text[PR]
16360	popcntb 3,3';;
16361      *) conftest_s='	.machine power5
16362	.text
16363	popcntb 3,3';;
16364    esac
16365
16366    { $as_echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
16367$as_echo_n "checking assembler for popcntb support... " >&6; }
16368if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
16369  $as_echo_n "(cached) " >&6
16370else
16371  gcc_cv_as_powerpc_popcntb=no
16372    if test $in_tree_gas = yes; then
16373    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16374  then gcc_cv_as_powerpc_popcntb=yes
16375fi
16376  elif test x$gcc_cv_as != x; then
16377    echo "$conftest_s" > conftest.s
16378    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380  (eval $ac_try) 2>&5
16381  ac_status=$?
16382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383  (exit $ac_status); }; }
16384    then
16385	gcc_cv_as_powerpc_popcntb=yes
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
16392fi
16393{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
16394$as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
16395if test $gcc_cv_as_powerpc_popcntb = yes; then
16396
16397cat >>confdefs.h <<\_ACEOF
16398#define HAVE_AS_POPCNTB 1
16399_ACEOF
16400
16401fi
16402
16403    case $target in
16404      *-*-aix*) conftest_s='	.machine "pwr5x"
16405	.csect .text[PR]
16406	frin 1,1';;
16407      *) conftest_s='	.machine power5
16408	.text
16409	frin 1,1';;
16410    esac
16411
16412    { $as_echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16413$as_echo_n "checking assembler for fp round support... " >&6; }
16414if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16415  $as_echo_n "(cached) " >&6
16416else
16417  gcc_cv_as_powerpc_fprnd=no
16418    if test $in_tree_gas = yes; then
16419    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16420  then gcc_cv_as_powerpc_fprnd=yes
16421fi
16422  elif test x$gcc_cv_as != x; then
16423    echo "$conftest_s" > conftest.s
16424    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426  (eval $ac_try) 2>&5
16427  ac_status=$?
16428  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429  (exit $ac_status); }; }
16430    then
16431	gcc_cv_as_powerpc_fprnd=yes
16432    else
16433      echo "configure: failed program was" >&5
16434      cat conftest.s >&5
16435    fi
16436    rm -f conftest.o conftest.s
16437  fi
16438fi
16439{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16440$as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
16441if test $gcc_cv_as_powerpc_fprnd = yes; then
16442
16443cat >>confdefs.h <<\_ACEOF
16444#define HAVE_AS_FPRND 1
16445_ACEOF
16446
16447fi
16448
16449    case $target in
16450      *-*-aix*) conftest_s='	.csect .text[PR]
16451LCF..0:
16452	addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16453      *-*-darwin*)
16454	conftest_s='	.text
16455LCF0:
16456	addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16457      *) conftest_s='	.text
16458.LCF0:
16459	addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16460    esac
16461
16462    { $as_echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16463$as_echo_n "checking assembler for rel16 relocs... " >&6; }
16464if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16465  $as_echo_n "(cached) " >&6
16466else
16467  gcc_cv_as_powerpc_rel16=no
16468    if test $in_tree_gas = yes; then
16469    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16470  then gcc_cv_as_powerpc_rel16=yes
16471fi
16472  elif test x$gcc_cv_as != x; then
16473    echo "$conftest_s" > conftest.s
16474    if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476  (eval $ac_try) 2>&5
16477  ac_status=$?
16478  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479  (exit $ac_status); }; }
16480    then
16481	gcc_cv_as_powerpc_rel16=yes
16482    else
16483      echo "configure: failed program was" >&5
16484      cat conftest.s >&5
16485    fi
16486    rm -f conftest.o conftest.s
16487  fi
16488fi
16489{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16490$as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
16491if test $gcc_cv_as_powerpc_rel16 = yes; then
16492
16493cat >>confdefs.h <<\_ACEOF
16494#define HAVE_AS_REL16 1
16495_ACEOF
16496
16497fi
16498    ;;
16499
16500  mips*-*-*)
16501    { $as_echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16502$as_echo_n "checking assembler for explicit relocation support... " >&6; }
16503if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16504  $as_echo_n "(cached) " >&6
16505else
16506  gcc_cv_as_mips_explicit_relocs=no
16507    if test $in_tree_gas = yes; then
16508    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16509  then gcc_cv_as_mips_explicit_relocs=yes
16510fi
16511  elif test x$gcc_cv_as != x; then
16512    echo '	lw $4,%gp_rel(foo)($4)' > conftest.s
16513    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515  (eval $ac_try) 2>&5
16516  ac_status=$?
16517  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518  (exit $ac_status); }; }
16519    then
16520	gcc_cv_as_mips_explicit_relocs=yes
16521    else
16522      echo "configure: failed program was" >&5
16523      cat conftest.s >&5
16524    fi
16525    rm -f conftest.o conftest.s
16526  fi
16527fi
16528{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16529$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
16530if test $gcc_cv_as_mips_explicit_relocs = yes; then
16531  if test x$target_cpu_default = x
16532       then target_cpu_default=MASK_EXPLICIT_RELOCS
16533       else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16534       fi
16535fi
16536    ;;
16537esac
16538
16539# Mips and HP-UX need the GNU assembler.
16540# Linux on IA64 might be able to use the Intel assembler.
16541
16542case "$target" in
16543  mips*-*-* | *-*-hpux* )
16544    if test x$gas_flag = xyes \
16545       || test x"$host" != x"$build" \
16546       || test ! -x "$gcc_cv_as" \
16547       || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16548      :
16549    else
16550      echo "*** This configuration requires the GNU assembler" >&2
16551      exit 1
16552    fi
16553    ;;
16554esac
16555
16556# ??? Not all targets support dwarf2 debug_line, even within a version
16557# of gas.  Moreover, we need to emit a valid instruction to trigger any
16558# info to the output file.  So, as supported targets are added to gas 2.11,
16559# add some instruction here to (also) show we expect this might work.
16560# ??? Once 2.11 is released, probably need to add first known working
16561# version to the per-target configury.
16562case "$target" in
16563  i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16564  | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16565  | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
16566    insn="nop"
16567    ;;
16568  ia64*-*-* | s390*-*-*)
16569    insn="nop 0"
16570    ;;
16571  mmix-*-*)
16572    insn="swym 0"
16573    ;;
16574esac
16575if test x"$insn" != x; then
16576 conftest_s="\
16577	.file 1 \"conftest.s\"
16578	.loc 1 3 0
16579	$insn"
16580 { $as_echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16581$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
16582if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16583  $as_echo_n "(cached) " >&6
16584else
16585  gcc_cv_as_dwarf2_debug_line=no
16586    if test $in_tree_gas = yes; then
16587    if test $in_tree_gas_is_elf = yes \
16588  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16589  then gcc_cv_as_dwarf2_debug_line=yes
16590fi
16591  elif test x$gcc_cv_as != x; then
16592    echo "$conftest_s" > conftest.s
16593    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595  (eval $ac_try) 2>&5
16596  ac_status=$?
16597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598  (exit $ac_status); }; }
16599    then
16600	if test x$gcc_cv_objdump != x \
16601   && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16602      | grep debug_line > /dev/null 2>&1; then
16603     gcc_cv_as_dwarf2_debug_line=yes
16604   fi
16605    else
16606      echo "configure: failed program was" >&5
16607      cat conftest.s >&5
16608    fi
16609    rm -f conftest.o conftest.s
16610  fi
16611fi
16612{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16613$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
16614
16615
16616# The .debug_line file table must be in the exact order that
16617# we specified the files, since these indices are also used
16618# by DW_AT_decl_file.  Approximate this test by testing if
16619# the assembler bitches if the same index is assigned twice.
16620 { $as_echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16621$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
16622if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16623  $as_echo_n "(cached) " >&6
16624else
16625  gcc_cv_as_dwarf2_file_buggy=no
16626  if test x$gcc_cv_as != x; then
16627    echo '	.file 1 "foo.s"
16628	.file 1 "bar.s"' > conftest.s
16629    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631  (eval $ac_try) 2>&5
16632  ac_status=$?
16633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634  (exit $ac_status); }; }
16635    then
16636	gcc_cv_as_dwarf2_file_buggy=yes
16637    else
16638      echo "configure: failed program was" >&5
16639      cat conftest.s >&5
16640    fi
16641    rm -f conftest.o conftest.s
16642  fi
16643fi
16644{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16645$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
16646
16647
16648 if test $gcc_cv_as_dwarf2_debug_line = yes \
16649 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16650
16651cat >>confdefs.h <<\_ACEOF
16652#define HAVE_AS_DWARF2_DEBUG_LINE 1
16653_ACEOF
16654
16655 fi
16656
16657 { $as_echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16658$as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
16659if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16660  $as_echo_n "(cached) " >&6
16661else
16662  gcc_cv_as_gdwarf2_flag=no
16663    if test $in_tree_gas = yes; then
16664    if test $in_tree_gas_is_elf = yes \
16665  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16666  then gcc_cv_as_gdwarf2_flag=yes
16667fi
16668  elif test x$gcc_cv_as != x; then
16669    echo "$insn" > conftest.s
16670    if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672  (eval $ac_try) 2>&5
16673  ac_status=$?
16674  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675  (exit $ac_status); }; }
16676    then
16677	gcc_cv_as_gdwarf2_flag=yes
16678    else
16679      echo "configure: failed program was" >&5
16680      cat conftest.s >&5
16681    fi
16682    rm -f conftest.o conftest.s
16683  fi
16684fi
16685{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16686$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
16687if test $gcc_cv_as_gdwarf2_flag = yes; then
16688
16689cat >>confdefs.h <<\_ACEOF
16690#define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16691_ACEOF
16692
16693fi
16694
16695 { $as_echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16696$as_echo_n "checking assembler for --gstabs option... " >&6; }
16697if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16698  $as_echo_n "(cached) " >&6
16699else
16700  gcc_cv_as_gstabs_flag=no
16701    if test $in_tree_gas = yes; then
16702    if test $in_tree_gas_is_elf = yes \
16703  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16704  then gcc_cv_as_gstabs_flag=yes
16705fi
16706  elif test x$gcc_cv_as != x; then
16707    echo "$insn" > conftest.s
16708    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710  (eval $ac_try) 2>&5
16711  ac_status=$?
16712  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713  (exit $ac_status); }; }
16714    then
16715	# The native Solaris 9/Intel assembler doesn't understand --gstabs
16716   # and warns about it, but still exits successfully.  So check for
16717   # this.
16718   if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720  (eval $ac_try) 2>&5
16721  ac_status=$?
16722  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723  (exit $ac_status); }; }
16724   then :
16725   else gcc_cv_as_gstabs_flag=yes
16726   fi
16727    else
16728      echo "configure: failed program was" >&5
16729      cat conftest.s >&5
16730    fi
16731    rm -f conftest.o conftest.s
16732  fi
16733fi
16734{ $as_echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16735$as_echo "$gcc_cv_as_gstabs_flag" >&6; }
16736if test $gcc_cv_as_gstabs_flag = yes; then
16737
16738cat >>confdefs.h <<\_ACEOF
16739#define HAVE_AS_GSTABS_DEBUG_FLAG 1
16740_ACEOF
16741
16742fi
16743fi
16744
16745{ $as_echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16746$as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
16747gcc_cv_ld_ro_rw_mix=unknown
16748if test $in_tree_ld = yes ; then
16749  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 \
16750     && test $in_tree_ld_is_elf = yes; then
16751    gcc_cv_ld_ro_rw_mix=read-write
16752  fi
16753elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16754  echo '.section myfoosect, "a"' > conftest1.s
16755  echo '.section myfoosect, "aw"' > conftest2.s
16756  echo '.byte 1' >> conftest2.s
16757  echo '.section myfoosect, "a"' > conftest3.s
16758  echo '.byte 0' >> conftest3.s
16759  if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16760     && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16761     && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16762     && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16763	conftest2.o conftest3.o > /dev/null 2>&1; then
16764    gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16765			 | sed -e '/myfoosect/!d' -e N`
16766    if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16767      if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16768	gcc_cv_ld_ro_rw_mix=read-only
16769      else
16770	gcc_cv_ld_ro_rw_mix=read-write
16771      fi
16772    fi
16773  fi
16774  rm -f conftest.* conftest[123].*
16775fi
16776if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16777
16778cat >>confdefs.h <<\_ACEOF
16779#define HAVE_LD_RO_RW_SECTION_MIXING 1
16780_ACEOF
16781
16782fi
16783{ $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16784$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
16785
16786{ $as_echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16787$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
16788gcc_cv_ld_eh_frame_hdr=no
16789if test $in_tree_ld = yes ; then
16790  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 \
16791     && test $in_tree_ld_is_elf = yes; then
16792    gcc_cv_ld_eh_frame_hdr=yes
16793  fi
16794elif test x$gcc_cv_ld != x; then
16795	# Check if linker supports --eh-frame-hdr option
16796	if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16797		gcc_cv_ld_eh_frame_hdr=yes
16798	fi
16799fi
16800
16801if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16802
16803cat >>confdefs.h <<\_ACEOF
16804#define HAVE_LD_EH_FRAME_HDR 1
16805_ACEOF
16806
16807fi
16808{ $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16809$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
16810
16811{ $as_echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16812$as_echo_n "checking linker position independent executable support... " >&6; }
16813gcc_cv_ld_pie=no
16814if test $in_tree_ld = yes ; then
16815  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 \
16816     && test $in_tree_ld_is_elf = yes; then
16817    gcc_cv_ld_pie=yes
16818  fi
16819elif test x$gcc_cv_ld != x; then
16820	# Check if linker supports -pie option
16821	if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16822		gcc_cv_ld_pie=yes
16823	fi
16824fi
16825if test x"$gcc_cv_ld_pie" = xyes; then
16826
16827cat >>confdefs.h <<\_ACEOF
16828#define HAVE_LD_PIE 1
16829_ACEOF
16830
16831fi
16832{ $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16833$as_echo "$gcc_cv_ld_pie" >&6; }
16834
16835# --------
16836# UNSORTED
16837# --------
16838
16839{ $as_echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16840$as_echo_n "checking linker --as-needed support... " >&6; }
16841if test "${gcc_cv_ld_as_needed+set}" = set; then
16842  $as_echo_n "(cached) " >&6
16843else
16844  gcc_cv_ld_as_needed=no
16845if test $in_tree_ld = yes ; then
16846  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 \
16847     && test $in_tree_ld_is_elf = yes; then
16848    gcc_cv_ld_as_needed=yes
16849  fi
16850elif test x$gcc_cv_ld != x; then
16851	# Check if linker supports --as-needed and --no-as-needed options
16852	if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16853		gcc_cv_ld_as_needed=yes
16854	fi
16855fi
16856
16857fi
16858{ $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16859$as_echo "$gcc_cv_ld_as_needed" >&6; }
16860if test x"$gcc_cv_ld_as_needed" = xyes; then
16861
16862cat >>confdefs.h <<\_ACEOF
16863#define HAVE_LD_AS_NEEDED 1
16864_ACEOF
16865
16866fi
16867
16868case "$target:$tm_file" in
16869  powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16870    { $as_echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16871$as_echo_n "checking linker support for omitting dot symbols... " >&6; }
16872if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16873  $as_echo_n "(cached) " >&6
16874else
16875  gcc_cv_ld_no_dot_syms=no
16876    if test $in_tree_ld = yes ; then
16877      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
16878        gcc_cv_ld_no_dot_syms=yes
16879      fi
16880    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16881      cat > conftest1.s <<EOF
16882	.text
16883	bl .foo
16884EOF
16885      cat > conftest2.s <<EOF
16886	.section ".opd","aw"
16887	.align 3
16888	.globl foo
16889	.type foo,@function
16890foo:
16891	.quad .LEfoo,.TOC.@tocbase,0
16892	.text
16893.LEfoo:
16894	blr
16895	.size foo,.-.LEfoo
16896EOF
16897      if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16898         && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16899         && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16900        gcc_cv_ld_no_dot_syms=yes
16901      fi
16902      rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16903    fi
16904
16905fi
16906{ $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16907$as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
16908    if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16909
16910cat >>confdefs.h <<\_ACEOF
16911#define HAVE_LD_NO_DOT_SYMS 1
16912_ACEOF
16913
16914    fi
16915    ;;
16916esac
16917
16918{ $as_echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16919$as_echo_n "checking linker --sysroot support... " >&6; }
16920if test "${gcc_cv_ld_sysroot+set}" = set; then
16921  $as_echo_n "(cached) " >&6
16922else
16923  gcc_cv_ld_sysroot=no
16924  if test $in_tree_ld = yes ; then
16925      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
16926        gcc_cv_ld_sysroot=yes
16927      fi
16928  elif test x$gcc_cv_ld != x; then
16929    if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16930      gcc_cv_ld_sysroot=yes
16931    fi
16932  fi
16933fi
16934{ $as_echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16935$as_echo "$gcc_cv_ld_sysroot" >&6; }
16936if test x"$gcc_cv_ld_sysroot" = xyes; then
16937
16938cat >>confdefs.h <<\_ACEOF
16939#define HAVE_LD_SYSROOT 1
16940_ACEOF
16941
16942fi
16943
16944if test x$with_sysroot = x && test x$host = x$target \
16945   && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
16946
16947cat >>confdefs.h <<_ACEOF
16948#define PREFIX_INCLUDE_DIR "$prefix/include"
16949_ACEOF
16950
16951fi
16952
16953# Test for stack protector support in target C library.
16954{ $as_echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16955$as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
16956if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16957  $as_echo_n "(cached) " >&6
16958else
16959  case "$target" in
16960    *-*-linux*)
16961      gcc_cv_libc_provides_ssp=no
16962      if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16963	if test "x$with_sysroot" = x; then
16964	  glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16965	elif test "x$with_sysroot" = xyes; then
16966	  glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16967	else
16968	  glibc_header_dir="${with_sysroot}/usr/include"
16969	fi
16970      else
16971	glibc_header_dir=/usr/include
16972      fi
16973      # glibc 2.4 and later provides __stack_chk_fail and
16974      # either __stack_chk_guard, or TLS access to stack guard canary.
16975      if test -f $glibc_header_dir/features.h \
16976	 && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GNU_LIBRARY__[ 	]+([1-9][0-9]|[6-9])' \
16977	    $glibc_header_dir/features.h > /dev/null; then
16978	if $EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+([1-9][0-9]|[3-9])' \
16979	   $glibc_header_dir/features.h > /dev/null; then
16980	  gcc_cv_libc_provides_ssp=yes
16981	elif $EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+2' \
16982	     $glibc_header_dir/features.h > /dev/null \
16983	     && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC_MINOR__[ 	]+([1-9][0-9]|[4-9])' \
16984	     $glibc_header_dir/features.h > /dev/null; then
16985	  gcc_cv_libc_provides_ssp=yes
16986	fi
16987      fi ;;
16988    *-*-netbsd*)
16989
16990for ac_func in __stack_chk_guard
16991do
16992as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16993{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16994$as_echo_n "checking for $ac_func... " >&6; }
16995if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16996  $as_echo_n "(cached) " >&6
16997else
16998  cat >conftest.$ac_ext <<_ACEOF
16999/* confdefs.h.  */
17000_ACEOF
17001cat confdefs.h >>conftest.$ac_ext
17002cat >>conftest.$ac_ext <<_ACEOF
17003/* end confdefs.h.  */
17004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17005   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17006#define $ac_func innocuous_$ac_func
17007
17008/* System header to define __stub macros and hopefully few prototypes,
17009    which can conflict with char $ac_func (); below.
17010    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17011    <limits.h> exists even on freestanding compilers.  */
17012
17013#ifdef __STDC__
17014# include <limits.h>
17015#else
17016# include <assert.h>
17017#endif
17018
17019#undef $ac_func
17020
17021/* Override any GCC internal prototype to avoid an error.
17022   Use char because int might match the return type of a GCC
17023   builtin and then its argument prototype would still apply.  */
17024#ifdef __cplusplus
17025extern "C"
17026#endif
17027char $ac_func ();
17028/* The GNU C library defines this for functions which it implements
17029    to always fail with ENOSYS.  Some functions are actually named
17030    something starting with __ and the normal name is an alias.  */
17031#if defined __stub_$ac_func || defined __stub___$ac_func
17032choke me
17033#endif
17034
17035int
17036main ()
17037{
17038return $ac_func ();
17039  ;
17040  return 0;
17041}
17042_ACEOF
17043rm -f conftest.$ac_objext conftest$ac_exeext
17044if { (ac_try="$ac_link"
17045case "(($ac_try" in
17046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047  *) ac_try_echo=$ac_try;;
17048esac
17049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17050$as_echo "$ac_try_echo") >&5
17051  (eval "$ac_link") 2>conftest.er1
17052  ac_status=$?
17053  grep -v '^ *+' conftest.er1 >conftest.err
17054  rm -f conftest.er1
17055  cat conftest.err >&5
17056  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057  (exit $ac_status); } && {
17058	 test -z "$ac_c_werror_flag" ||
17059	 test ! -s conftest.err
17060       } && test -s conftest$ac_exeext && {
17061	 test "$cross_compiling" = yes ||
17062	 $as_test_x conftest$ac_exeext
17063       }; then
17064  eval "$as_ac_var=yes"
17065else
17066  $as_echo "$as_me: failed program was:" >&5
17067sed 's/^/| /' conftest.$ac_ext >&5
17068
17069	eval "$as_ac_var=no"
17070fi
17071
17072rm -rf conftest.dSYM
17073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17074      conftest$ac_exeext conftest.$ac_ext
17075fi
17076ac_res=`eval 'as_val=${'$as_ac_var'}
17077		 $as_echo "$as_val"'`
17078	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17079$as_echo "$ac_res" >&6; }
17080if test `eval 'as_val=${'$as_ac_var'}
17081		 $as_echo "$as_val"'` = yes; then
17082  cat >>confdefs.h <<_ACEOF
17083#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17084_ACEOF
17085 gcc_cv_libc_provides_ssp=yes
17086else
17087  gcc_cv_libc_provides_ssp=no
17088fi
17089done
17090 ;;
17091    *) gcc_cv_libc_provides_ssp=no ;;
17092  esac
17093fi
17094{ $as_echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
17095$as_echo "$gcc_cv_libc_provides_ssp" >&6; }
17096if test x$gcc_cv_libc_provides_ssp = xyes; then
17097
17098cat >>confdefs.h <<\_ACEOF
17099#define TARGET_LIBC_PROVIDES_SSP 1
17100_ACEOF
17101
17102fi
17103
17104# Find out what GC implementation we want, or may, use.
17105
17106# Check whether --with-gc was given.
17107if test "${with_gc+set}" = set; then
17108  withval=$with_gc; case "$withval" in
17109  page)
17110    GGC=ggc-$withval
17111    ;;
17112  zone)
17113    GGC=ggc-$withval
17114
17115cat >>confdefs.h <<\_ACEOF
17116#define GGC_ZONE 1
17117_ACEOF
17118
17119    ;;
17120  *)
17121    { { $as_echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
17122$as_echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
17123   { (exit 1); exit 1; }; }
17124    ;;
17125esac
17126else
17127  GGC=ggc-page
17128fi
17129
17130
17131echo "Using $GGC for garbage collection."
17132
17133# Use the system's zlib library.
17134zlibdir=-L../zlib
17135zlibinc="-I\$(srcdir)/../zlib"
17136
17137# Check whether --with-system-zlib was given.
17138if test "${with_system_zlib+set}" = set; then
17139  withval=$with_system_zlib; zlibdir=
17140zlibinc=
17141
17142fi
17143
17144
17145
17146
17147
17148{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
17149$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17150    # Check whether --enable-maintainer-mode was given.
17151if test "${enable_maintainer_mode+set}" = set; then
17152  enableval=$enable_maintainer_mode; maintainer_mode=$enableval
17153else
17154  maintainer_mode=no
17155fi
17156
17157
17158{ $as_echo "$as_me:$LINENO: result: $maintainer_mode" >&5
17159$as_echo "$maintainer_mode" >&6; }
17160
17161if test "$maintainer_mode" = "yes"; then
17162  MAINT=''
17163else
17164  MAINT='#'
17165fi
17166
17167# --------------
17168# Language hooks
17169# --------------
17170
17171# Make empty files to contain the specs and options for each language.
17172# Then add #include lines to for a compiler that has specs and/or options.
17173
17174lang_opt_files=
17175lang_specs_files=
17176lang_tree_files=
17177for subdir in . $subdirs
17178do
17179	if test -f $srcdir/$subdir/lang.opt; then
17180	    lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17181	fi
17182	if test -f $srcdir/$subdir/lang-specs.h; then
17183	    lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17184	fi
17185	if test -f $srcdir/$subdir/$subdir-tree.def; then
17186	    lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17187	fi
17188done
17189
17190# These (without "all_") are set in each config-lang.in.
17191# `language' must be a single word so is spelled singularly.
17192all_languages=
17193all_boot_languages=
17194all_compilers=
17195all_stagestuff=
17196all_outputs='Makefile gccbug mklibgcc libada-mk'
17197# List of language makefile fragments.
17198all_lang_makefrags=
17199# List of language subdirectory makefiles.  Deprecated.
17200all_lang_makefiles=
17201# Files for gengtype
17202all_gtfiles="$target_gtfiles"
17203# Files for gengtype with language
17204all_gtfiles_files_langs=
17205all_gtfiles_files_files=
17206
17207# Add the language fragments.
17208# Languages are added via two mechanisms.  Some information must be
17209# recorded in makefile variables, these are defined in config-lang.in.
17210# We accumulate them and plug them into the main Makefile.
17211# The other mechanism is a set of hooks for each of the main targets
17212# like `clean', `install', etc.
17213
17214language_hooks="Make-hooks"
17215
17216for s in $subdirs
17217do
17218		language=
17219		boot_language=
17220		compilers=
17221		stagestuff=
17222		outputs=
17223		gtfiles=
17224		. ${srcdir}/$s/config-lang.in
17225		if test "x$language" = x
17226		then
17227			echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
17228			exit 1
17229		fi
17230		all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
17231		if test -f ${srcdir}/$s/Makefile.in
17232		then all_lang_makefiles="$s/Makefile"
17233		fi
17234		all_languages="$all_languages $language"
17235		if test "x$boot_language" = xyes
17236		then
17237			all_boot_languages="$all_boot_languages $language"
17238		fi
17239		all_compilers="$all_compilers $compilers"
17240		all_stagestuff="$all_stagestuff $stagestuff"
17241		all_outputs="$all_outputs $outputs"
17242		all_gtfiles="$all_gtfiles $gtfiles"
17243                for f in $gtfiles
17244                do
17245                         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
17246                         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
17247                done
17248done
17249
17250# Pick up gtfiles for c
17251gtfiles=
17252s="c"
17253. ${srcdir}/c-config-lang.in
17254all_gtfiles="$all_gtfiles $gtfiles"
17255for f in $gtfiles
17256do
17257        all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
17258        all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
17259done
17260
17261check_languages=
17262for language in $all_languages
17263do
17264		check_languages="$check_languages check-$language"
17265done
17266
17267# We link each language in with a set of hooks, reached indirectly via
17268# lang.${target}.
17269
17270rm -f Make-hooks
17271touch Make-hooks
17272target_list="all.build all.cross start.encap rest.encap tags \
17273	install-normal install-common install-man \
17274	uninstall info man srcextra srcman srcinfo \
17275	mostlyclean clean distclean maintainer-clean \
17276	stage1 stage2 stage3 stage4 stageprofile stagefeedback"
17277for t in $target_list
17278do
17279	x=
17280	for lang in $all_languages
17281	do
17282			x="$x $lang.$t"
17283	done
17284	echo "lang.$t: $x" >> Make-hooks
17285done
17286
17287# --------
17288# UNSORTED
17289# --------
17290
17291# Create .gdbinit.
17292
17293echo "dir ." > .gdbinit
17294echo "dir ${srcdir}" >> .gdbinit
17295if test x$gdb_needs_out_file_path = xyes
17296then
17297	echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17298fi
17299if test "x$subdirs" != x; then
17300	for s in $subdirs
17301	do
17302		echo "dir ${srcdir}/$s" >> .gdbinit
17303	done
17304fi
17305echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17306
17307# If $(exec_prefix) exists and is not the same as $(prefix), then compute an
17308# absolute path for gcc_tooldir based on inserting the number of up-directory
17309# movements required to get from $(exec_prefix) to $(prefix) into the basic
17310# $(libsubdir)/@(unlibsubdir) based path.
17311# Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
17312# make and thus we'd get different behavior depending on where we built the
17313# sources.
17314if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
17315    gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
17316else
17317# An explanation of the sed strings:
17318#  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
17319#  -e 's|/$||'            match a trailing forward slash and eliminates it
17320#  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
17321#  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
17322#
17323# (*) Note this pattern overwrites the first character of the string
17324# with a forward slash if one is not already present.  This is not a
17325# problem because the exact names of the sub-directories concerned is
17326# unimportant, just the number of them matters.
17327#
17328# The practical upshot of these patterns is like this:
17329#
17330#  prefix     exec_prefix        result
17331#  ------     -----------        ------
17332#   /foo        /foo/bar          ../
17333#   /foo/       /foo/bar          ../
17334#   /foo        /foo/bar/         ../
17335#   /foo/       /foo/bar/         ../
17336#   /foo        /foo/bar/ugg      ../../
17337#
17338    dollar='$$'
17339    gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
17340fi
17341
17342
17343
17344# Find a directory in which to install a shared libgcc.
17345
17346# Check whether --enable-version-specific-runtime-libs was given.
17347if test "${enable_version_specific_runtime_libs+set}" = set; then
17348  enableval=$enable_version_specific_runtime_libs;
17349fi
17350
17351
17352
17353# Check whether --with-slibdir was given.
17354if test "${with_slibdir+set}" = set; then
17355  withval=$with_slibdir; slibdir="$with_slibdir"
17356else
17357  if test "${enable_version_specific_runtime_libs+set}" = set; then
17358  slibdir='$(libsubdir)'
17359elif test "$host" != "$target"; then
17360  slibdir='$(build_tooldir)/lib'
17361else
17362  slibdir='$(libdir)'
17363fi
17364fi
17365
17366
17367
17368objdir=`${PWDCMD-pwd}`
17369
17370
17371# Substitute configuration variables
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
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435# Echo link setup.
17436if test x${build} = x${host} ; then
17437  if test x${host} = x${target} ; then
17438    echo "Links are now set up to build a native compiler for ${target}." 1>&2
17439  else
17440    echo "Links are now set up to build a cross-compiler" 1>&2
17441    echo " from ${host} to ${target}." 1>&2
17442  fi
17443else
17444  if test x${host} = x${target} ; then
17445    echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17446    echo " for ${target}." 1>&2
17447  else
17448    echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17449    echo " from ${host} to ${target}." 1>&2
17450  fi
17451fi
17452
17453
17454
17455
17456# Configure the subdirectories
17457# AC_CONFIG_SUBDIRS($subdirs)
17458
17459# Create the Makefile
17460# and configure language subdirectories
17461ac_config_files="$ac_config_files $all_outputs"
17462
17463
17464ac_config_commands="$ac_config_commands default"
17465
17466cat >confcache <<\_ACEOF
17467# This file is a shell script that caches the results of configure
17468# tests run on this system so they can be shared between configure
17469# scripts and configure runs, see configure's option --config-cache.
17470# It is not useful on other systems.  If it contains results you don't
17471# want to keep, you may remove or edit it.
17472#
17473# config.status only pays attention to the cache file if you give it
17474# the --recheck option to rerun configure.
17475#
17476# `ac_cv_env_foo' variables (set or unset) will be overridden when
17477# loading this file, other *unset* `ac_cv_foo' will be assigned the
17478# following values.
17479
17480_ACEOF
17481
17482# The following way of writing the cache mishandles newlines in values,
17483# but we know of no workaround that is simple, portable, and efficient.
17484# So, we kill variables containing newlines.
17485# Ultrix sh set writes to stderr and can't be redirected directly,
17486# and sets the high bit in the cache file unless we assign to the vars.
17487(
17488  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17489    eval ac_val=\$$ac_var
17490    case $ac_val in #(
17491    *${as_nl}*)
17492      case $ac_var in #(
17493      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17494$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17495      esac
17496      case $ac_var in #(
17497      _ | IFS | as_nl) ;; #(
17498      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17499      *) $as_unset $ac_var ;;
17500      esac ;;
17501    esac
17502  done
17503
17504  (set) 2>&1 |
17505    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17506    *${as_nl}ac_space=\ *)
17507      # `set' does not quote correctly, so add quotes (double-quote
17508      # substitution turns \\\\ into \\, and sed turns \\ into \).
17509      sed -n \
17510	"s/'/'\\\\''/g;
17511	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17512      ;; #(
17513    *)
17514      # `set' quotes correctly as required by POSIX, so do not add quotes.
17515      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17516      ;;
17517    esac |
17518    sort
17519) |
17520  sed '
17521     /^ac_cv_env_/b end
17522     t clear
17523     :clear
17524     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17525     t end
17526     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17527     :end' >>confcache
17528if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17529  if test -w "$cache_file"; then
17530    test "x$cache_file" != "x/dev/null" &&
17531      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17532$as_echo "$as_me: updating cache $cache_file" >&6;}
17533    cat confcache >$cache_file
17534  else
17535    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17536$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17537  fi
17538fi
17539rm -f confcache
17540
17541test "x$prefix" = xNONE && prefix=$ac_default_prefix
17542# Let make expand exec_prefix.
17543test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17544
17545DEFS=-DHAVE_CONFIG_H
17546
17547ac_libobjs=
17548ac_ltlibobjs=
17549for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17550  # 1. Remove the extension, and $U if already installed.
17551  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17552  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17553  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17554  #    will be set to the directory where LIBOBJS objects are built.
17555  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17556  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17557done
17558LIBOBJS=$ac_libobjs
17559
17560LTLIBOBJS=$ac_ltlibobjs
17561
17562
17563
17564: ${CONFIG_STATUS=./config.status}
17565ac_write_fail=0
17566ac_clean_files_save=$ac_clean_files
17567ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17568{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17569$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17570cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17571#! $SHELL
17572# Generated by $as_me.
17573# Run this file to recreate the current configuration.
17574# Compiler output produced by configure, useful for debugging
17575# configure, is in config.log if it exists.
17576
17577debug=false
17578ac_cs_recheck=false
17579ac_cs_silent=false
17580SHELL=\${CONFIG_SHELL-$SHELL}
17581_ACEOF
17582
17583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17584## --------------------- ##
17585## M4sh Initialization.  ##
17586## --------------------- ##
17587
17588# Be more Bourne compatible
17589DUALCASE=1; export DUALCASE # for MKS sh
17590if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17591  emulate sh
17592  NULLCMD=:
17593  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17594  # is contrary to our usage.  Disable this feature.
17595  alias -g '${1+"$@"}'='"$@"'
17596  setopt NO_GLOB_SUBST
17597else
17598  case `(set -o) 2>/dev/null` in
17599  *posix*) set -o posix ;;
17600esac
17601
17602fi
17603
17604
17605
17606
17607# PATH needs CR
17608# Avoid depending upon Character Ranges.
17609as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17610as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17611as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17612as_cr_digits='0123456789'
17613as_cr_alnum=$as_cr_Letters$as_cr_digits
17614
17615as_nl='
17616'
17617export as_nl
17618# Printing a long string crashes Solaris 7 /usr/bin/printf.
17619as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17620as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17621as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17622if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17623  as_echo='printf %s\n'
17624  as_echo_n='printf %s'
17625else
17626  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17627    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17628    as_echo_n='/usr/ucb/echo -n'
17629  else
17630    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17631    as_echo_n_body='eval
17632      arg=$1;
17633      case $arg in
17634      *"$as_nl"*)
17635	expr "X$arg" : "X\\(.*\\)$as_nl";
17636	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17637      esac;
17638      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17639    '
17640    export as_echo_n_body
17641    as_echo_n='sh -c $as_echo_n_body as_echo'
17642  fi
17643  export as_echo_body
17644  as_echo='sh -c $as_echo_body as_echo'
17645fi
17646
17647# The user is always right.
17648if test "${PATH_SEPARATOR+set}" != set; then
17649  PATH_SEPARATOR=:
17650  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17651    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17652      PATH_SEPARATOR=';'
17653  }
17654fi
17655
17656# Support unset when possible.
17657if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17658  as_unset=unset
17659else
17660  as_unset=false
17661fi
17662
17663
17664# IFS
17665# We need space, tab and new line, in precisely that order.  Quoting is
17666# there to prevent editors from complaining about space-tab.
17667# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17668# splitting by setting IFS to empty value.)
17669IFS=" ""	$as_nl"
17670
17671# Find who we are.  Look in the path if we contain no directory separator.
17672case $0 in
17673  *[\\/]* ) as_myself=$0 ;;
17674  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17675for as_dir in $PATH
17676do
17677  IFS=$as_save_IFS
17678  test -z "$as_dir" && as_dir=.
17679  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17680done
17681IFS=$as_save_IFS
17682
17683     ;;
17684esac
17685# We did not find ourselves, most probably we were run as `sh COMMAND'
17686# in which case we are not to be found in the path.
17687if test "x$as_myself" = x; then
17688  as_myself=$0
17689fi
17690if test ! -f "$as_myself"; then
17691  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17692  { (exit 1); exit 1; }
17693fi
17694
17695# Work around bugs in pre-3.0 UWIN ksh.
17696for as_var in ENV MAIL MAILPATH
17697do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17698done
17699PS1='$ '
17700PS2='> '
17701PS4='+ '
17702
17703# NLS nuisances.
17704LC_ALL=C
17705export LC_ALL
17706LANGUAGE=C
17707export LANGUAGE
17708
17709# Required to use basename.
17710if expr a : '\(a\)' >/dev/null 2>&1 &&
17711   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17712  as_expr=expr
17713else
17714  as_expr=false
17715fi
17716
17717if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17718  as_basename=basename
17719else
17720  as_basename=false
17721fi
17722
17723
17724# Name of the executable.
17725as_me=`$as_basename -- "$0" ||
17726$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17727	 X"$0" : 'X\(//\)$' \| \
17728	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17729$as_echo X/"$0" |
17730    sed '/^.*\/\([^/][^/]*\)\/*$/{
17731	    s//\1/
17732	    q
17733	  }
17734	  /^X\/\(\/\/\)$/{
17735	    s//\1/
17736	    q
17737	  }
17738	  /^X\/\(\/\).*/{
17739	    s//\1/
17740	    q
17741	  }
17742	  s/.*/./; q'`
17743
17744# CDPATH.
17745$as_unset CDPATH
17746
17747
17748
17749  as_lineno_1=$LINENO
17750  as_lineno_2=$LINENO
17751  test "x$as_lineno_1" != "x$as_lineno_2" &&
17752  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17753
17754  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17755  # uniformly replaced by the line number.  The first 'sed' inserts a
17756  # line-number line after each line using $LINENO; the second 'sed'
17757  # does the real work.  The second script uses 'N' to pair each
17758  # line-number line with the line containing $LINENO, and appends
17759  # trailing '-' during substitution so that $LINENO is not a special
17760  # case at line end.
17761  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17762  # scripts with optimization help from Paolo Bonzini.  Blame Lee
17763  # E. McMahon (1931-1989) for sed's syntax.  :-)
17764  sed -n '
17765    p
17766    /[$]LINENO/=
17767  ' <$as_myself |
17768    sed '
17769      s/[$]LINENO.*/&-/
17770      t lineno
17771      b
17772      :lineno
17773      N
17774      :loop
17775      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17776      t loop
17777      s/-\n.*//
17778    ' >$as_me.lineno &&
17779  chmod +x "$as_me.lineno" ||
17780    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17781   { (exit 1); exit 1; }; }
17782
17783  # Don't try to exec as it changes $[0], causing all sort of problems
17784  # (the dirname of $[0] is not the place where we might find the
17785  # original and so on.  Autoconf is especially sensitive to this).
17786  . "./$as_me.lineno"
17787  # Exit status is that of the last command.
17788  exit
17789}
17790
17791
17792if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17793  as_dirname=dirname
17794else
17795  as_dirname=false
17796fi
17797
17798ECHO_C= ECHO_N= ECHO_T=
17799case `echo -n x` in
17800-n*)
17801  case `echo 'x\c'` in
17802  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17803  *)   ECHO_C='\c';;
17804  esac;;
17805*)
17806  ECHO_N='-n';;
17807esac
17808if expr a : '\(a\)' >/dev/null 2>&1 &&
17809   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17810  as_expr=expr
17811else
17812  as_expr=false
17813fi
17814
17815rm -f conf$$ conf$$.exe conf$$.file
17816if test -d conf$$.dir; then
17817  rm -f conf$$.dir/conf$$.file
17818else
17819  rm -f conf$$.dir
17820  mkdir conf$$.dir 2>/dev/null
17821fi
17822if (echo >conf$$.file) 2>/dev/null; then
17823  if ln -s conf$$.file conf$$ 2>/dev/null; then
17824    as_ln_s='ln -s'
17825    # ... but there are two gotchas:
17826    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17827    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17828    # In both cases, we have to default to `cp -p'.
17829    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17830      as_ln_s='cp -p'
17831  elif ln conf$$.file conf$$ 2>/dev/null; then
17832    as_ln_s=ln
17833  else
17834    as_ln_s='cp -p'
17835  fi
17836else
17837  as_ln_s='cp -p'
17838fi
17839rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17840rmdir conf$$.dir 2>/dev/null
17841
17842if mkdir -p . 2>/dev/null; then
17843  as_mkdir_p=:
17844else
17845  test -d ./-p && rmdir ./-p
17846  as_mkdir_p=false
17847fi
17848
17849if test -x / >/dev/null 2>&1; then
17850  as_test_x='test -x'
17851else
17852  if ls -dL / >/dev/null 2>&1; then
17853    as_ls_L_option=L
17854  else
17855    as_ls_L_option=
17856  fi
17857  as_test_x='
17858    eval sh -c '\''
17859      if test -d "$1"; then
17860	test -d "$1/.";
17861      else
17862	case $1 in
17863	-*)set "./$1";;
17864	esac;
17865	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17866	???[sx]*):;;*)false;;esac;fi
17867    '\'' sh
17868  '
17869fi
17870as_executable_p=$as_test_x
17871
17872# Sed expression to map a string onto a valid CPP name.
17873as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17874
17875# Sed expression to map a string onto a valid variable name.
17876as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17877
17878
17879exec 6>&1
17880
17881# Save the log message, to keep $[0] and so on meaningful, and to
17882# report actual input values of CONFIG_FILES etc. instead of their
17883# values after options handling.
17884ac_log="
17885This file was extended by $as_me, which was
17886generated by GNU Autoconf 2.62.  Invocation command line was
17887
17888  CONFIG_FILES    = $CONFIG_FILES
17889  CONFIG_HEADERS  = $CONFIG_HEADERS
17890  CONFIG_LINKS    = $CONFIG_LINKS
17891  CONFIG_COMMANDS = $CONFIG_COMMANDS
17892  $ $0 $@
17893
17894on `(hostname || uname -n) 2>/dev/null | sed 1q`
17895"
17896
17897_ACEOF
17898
17899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17900# Files that config.status was made for.
17901config_files="$ac_config_files"
17902config_headers="$ac_config_headers"
17903config_commands="$ac_config_commands"
17904
17905_ACEOF
17906
17907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17908ac_cs_usage="\
17909\`$as_me' instantiates files from templates according to the
17910current configuration.
17911
17912Usage: $0 [OPTIONS] [FILE]...
17913
17914  -h, --help       print this help, then exit
17915  -V, --version    print version number and configuration settings, then exit
17916  -q, --quiet      do not print progress messages
17917  -d, --debug      don't remove temporary files
17918      --recheck    update $as_me by reconfiguring in the same conditions
17919  --file=FILE[:TEMPLATE]
17920                   instantiate the configuration file FILE
17921  --header=FILE[:TEMPLATE]
17922                   instantiate the configuration header FILE
17923
17924Configuration files:
17925$config_files
17926
17927Configuration headers:
17928$config_headers
17929
17930Configuration commands:
17931$config_commands
17932
17933Report bugs to <bug-autoconf@gnu.org>."
17934
17935_ACEOF
17936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17937ac_cs_version="\\
17938config.status
17939configured by $0, generated by GNU Autoconf 2.62,
17940  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17941
17942Copyright (C) 2008 Free Software Foundation, Inc.
17943This config.status script is free software; the Free Software Foundation
17944gives unlimited permission to copy, distribute and modify it."
17945
17946ac_pwd='$ac_pwd'
17947srcdir='$srcdir'
17948AWK='$AWK'
17949test -n "\$AWK" || AWK=awk
17950_ACEOF
17951
17952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17953# The default lists apply if the user does not specify any file.
17954ac_need_defaults=:
17955while test $# != 0
17956do
17957  case $1 in
17958  --*=*)
17959    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17960    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17961    ac_shift=:
17962    ;;
17963  *)
17964    ac_option=$1
17965    ac_optarg=$2
17966    ac_shift=shift
17967    ;;
17968  esac
17969
17970  case $ac_option in
17971  # Handling of the options.
17972  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17973    ac_cs_recheck=: ;;
17974  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17975    $as_echo "$ac_cs_version"; exit ;;
17976  --debug | --debu | --deb | --de | --d | -d )
17977    debug=: ;;
17978  --file | --fil | --fi | --f )
17979    $ac_shift
17980    case $ac_optarg in
17981    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17982    esac
17983    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17984    ac_need_defaults=false;;
17985  --header | --heade | --head | --hea )
17986    $ac_shift
17987    case $ac_optarg in
17988    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17989    esac
17990    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17991    ac_need_defaults=false;;
17992  --he | --h)
17993    # Conflict between --help and --header
17994    { $as_echo "$as_me: error: ambiguous option: $1
17995Try \`$0 --help' for more information." >&2
17996   { (exit 1); exit 1; }; };;
17997  --help | --hel | -h )
17998    $as_echo "$ac_cs_usage"; exit ;;
17999  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18000  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18001    ac_cs_silent=: ;;
18002
18003  # This is an error.
18004  -*) { $as_echo "$as_me: error: unrecognized option: $1
18005Try \`$0 --help' for more information." >&2
18006   { (exit 1); exit 1; }; } ;;
18007
18008  *) ac_config_targets="$ac_config_targets $1"
18009     ac_need_defaults=false ;;
18010
18011  esac
18012  shift
18013done
18014
18015ac_configure_extra_args=
18016
18017if $ac_cs_silent; then
18018  exec 6>/dev/null
18019  ac_configure_extra_args="$ac_configure_extra_args --silent"
18020fi
18021
18022_ACEOF
18023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18024if \$ac_cs_recheck; then
18025  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18026  shift
18027  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18028  CONFIG_SHELL='$SHELL'
18029  export CONFIG_SHELL
18030  exec "\$@"
18031fi
18032
18033_ACEOF
18034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18035exec 5>>config.log
18036{
18037  echo
18038  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18039## Running $as_me. ##
18040_ASBOX
18041  $as_echo "$ac_log"
18042} >&5
18043
18044_ACEOF
18045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18046#
18047# INIT-COMMANDS
18048#
18049subdirs='$subdirs'
18050
18051_ACEOF
18052
18053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18054
18055# Handling of arguments.
18056for ac_config_target in $ac_config_targets
18057do
18058  case $ac_config_target in
18059    "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
18060    "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
18061    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18062
18063  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18064$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18065   { (exit 1); exit 1; }; };;
18066  esac
18067done
18068
18069
18070# If the user did not use the arguments to specify the items to instantiate,
18071# then the envvar interface is used.  Set only those that are not.
18072# We use the long form for the default assignment because of an extremely
18073# bizarre bug on SunOS 4.1.3.
18074if $ac_need_defaults; then
18075  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18076  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18077  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18078fi
18079
18080# Have a temporary directory for convenience.  Make it in the build tree
18081# simply because there is no reason against having it here, and in addition,
18082# creating and moving files from /tmp can sometimes cause problems.
18083# Hook for its removal unless debugging.
18084# Note that there is a small window in which the directory will not be cleaned:
18085# after its creation but before its name has been assigned to `$tmp'.
18086$debug ||
18087{
18088  tmp=
18089  trap 'exit_status=$?
18090  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18091' 0
18092  trap '{ (exit 1); exit 1; }' 1 2 13 15
18093}
18094# Create a (secure) tmp directory for tmp files.
18095
18096{
18097  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18098  test -n "$tmp" && test -d "$tmp"
18099}  ||
18100{
18101  tmp=./conf$$-$RANDOM
18102  (umask 077 && mkdir "$tmp")
18103} ||
18104{
18105   $as_echo "$as_me: cannot create a temporary directory in ." >&2
18106   { (exit 1); exit 1; }
18107}
18108
18109# Set up the scripts for CONFIG_FILES section.
18110# No need to generate them if there are no CONFIG_FILES.
18111# This happens for instance with `./config.status config.h'.
18112if test -n "$CONFIG_FILES"; then
18113
18114if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18115  ac_cs_awk_getline=:
18116  ac_cs_awk_pipe_init=
18117  ac_cs_awk_read_file='
18118      while ((getline aline < (F[key])) > 0)
18119	print(aline)
18120      close(F[key])'
18121  ac_cs_awk_pipe_fini=
18122else
18123  ac_cs_awk_getline=false
18124  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18125  ac_cs_awk_read_file='
18126      print "|#_!!_#|"
18127      print "cat " F[key] " &&"
18128      '$ac_cs_awk_pipe_init
18129  # The final `:' finishes the AND list.
18130  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18131fi
18132ac_cr='
18133'
18134ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18135if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18136  ac_cs_awk_cr='\\r'
18137else
18138  ac_cs_awk_cr=$ac_cr
18139fi
18140
18141echo 'BEGIN {' >"$tmp/subs1.awk" &&
18142_ACEOF
18143
18144# Create commands to substitute file output variables.
18145{
18146  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18147  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18148  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18149  echo "_ACAWK" &&
18150  echo "_ACEOF"
18151} >conf$$files.sh &&
18152. ./conf$$files.sh ||
18153  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18154$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18155   { (exit 1); exit 1; }; }
18156rm -f conf$$files.sh
18157
18158{
18159  echo "cat >conf$$subs.awk <<_ACEOF" &&
18160  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18161  echo "_ACEOF"
18162} >conf$$subs.sh ||
18163  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18164$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18165   { (exit 1); exit 1; }; }
18166ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18167ac_delim='%!_!# '
18168for ac_last_try in false false false false false :; do
18169  . ./conf$$subs.sh ||
18170    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18171$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18172   { (exit 1); exit 1; }; }
18173
18174  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
18175    break
18176  elif $ac_last_try; then
18177    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18178$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18179   { (exit 1); exit 1; }; }
18180  else
18181    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18182  fi
18183done
18184rm -f conf$$subs.sh
18185
18186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18187cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18188_ACEOF
18189sed -n '
18190h
18191s/^/S["/; s/!.*/"]=/
18192p
18193g
18194s/^[^!]*!//
18195:repl
18196t repl
18197s/'"$ac_delim"'$//
18198t delim
18199:nl
18200h
18201s/\(.\{148\}\).*/\1/
18202t more1
18203s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18204p
18205n
18206b repl
18207:more1
18208s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18209p
18210g
18211s/.\{148\}//
18212t nl
18213:delim
18214h
18215s/\(.\{148\}\).*/\1/
18216t more2
18217s/["\\]/\\&/g; s/^/"/; s/$/"/
18218p
18219b
18220:more2
18221s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18222p
18223g
18224s/.\{148\}//
18225t delim
18226' <conf$$subs.awk | sed '
18227/^[^""]/{
18228  N
18229  s/\n//
18230}
18231' >>$CONFIG_STATUS || ac_write_fail=1
18232rm -f conf$$subs.awk
18233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18234_ACAWK
18235cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18236  for (key in S) S_is_set[key] = 1
18237  FS = ""
18238  \$ac_cs_awk_pipe_init
18239}
18240{
18241  line = $ 0
18242  nfields = split(line, field, "@")
18243  substed = 0
18244  len = length(field[1])
18245  for (i = 2; i < nfields; i++) {
18246    key = field[i]
18247    keylen = length(key)
18248    if (S_is_set[key]) {
18249      value = S[key]
18250      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18251      len += length(value) + length(field[++i])
18252      substed = 1
18253    } else
18254      len += 1 + keylen
18255  }
18256  if (nfields == 3 && !substed) {
18257    key = field[2]
18258    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
18259      \$ac_cs_awk_read_file
18260      next
18261    }
18262  }
18263  print line
18264}
18265\$ac_cs_awk_pipe_fini
18266_ACAWK
18267_ACEOF
18268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18269if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18270  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18271else
18272  cat
18273fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18274  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18275$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18276   { (exit 1); exit 1; }; }
18277_ACEOF
18278
18279# VPATH may cause trouble with some makes, so we remove $(srcdir),
18280# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18281# trailing colons and then remove the whole line if VPATH becomes empty
18282# (actually we leave an empty line to preserve line numbers).
18283if test "x$srcdir" = x.; then
18284  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18285s/:*\$(srcdir):*/:/
18286s/:*\${srcdir}:*/:/
18287s/:*@srcdir@:*/:/
18288s/^\([^=]*=[	 ]*\):*/\1/
18289s/:*$//
18290s/^[^=]*=[	 ]*$//
18291}'
18292fi
18293
18294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18295fi # test -n "$CONFIG_FILES"
18296
18297# Set up the scripts for CONFIG_HEADERS section.
18298# No need to generate them if there are no CONFIG_HEADERS.
18299# This happens for instance with `./config.status Makefile'.
18300if test -n "$CONFIG_HEADERS"; then
18301cat >"$tmp/defines.awk" <<\_ACAWK ||
18302BEGIN {
18303_ACEOF
18304
18305# Transform confdefs.h into an awk script `defines.awk', embedded as
18306# here-document in config.status, that substitutes the proper values into
18307# config.h.in to produce config.h.
18308
18309# Create a delimiter string that does not exist in confdefs.h, to ease
18310# handling of long lines.
18311ac_delim='%!_!# '
18312for ac_last_try in false false :; do
18313  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18314  if test -z "$ac_t"; then
18315    break
18316  elif $ac_last_try; then
18317    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18318$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18319   { (exit 1); exit 1; }; }
18320  else
18321    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18322  fi
18323done
18324
18325# For the awk script, D is an array of macro values keyed by name,
18326# likewise P contains macro parameters if any.  Preserve backslash
18327# newline sequences.
18328
18329ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18330sed -n '
18331s/.\{148\}/&'"$ac_delim"'/g
18332t rset
18333:rset
18334s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18335t def
18336d
18337:def
18338s/\\$//
18339t bsnl
18340s/["\\]/\\&/g
18341s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18342D["\1"]=" \3"/p
18343s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18344d
18345:bsnl
18346s/["\\]/\\&/g
18347s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18348D["\1"]=" \3\\\\\\n"\\/p
18349t cont
18350s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18351t cont
18352d
18353:cont
18354n
18355s/.\{148\}/&'"$ac_delim"'/g
18356t clear
18357:clear
18358s/\\$//
18359t bsnlc
18360s/["\\]/\\&/g; s/^/"/; s/$/"/p
18361d
18362:bsnlc
18363s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18364b cont
18365' <confdefs.h | sed '
18366s/'"$ac_delim"'/"\\\
18367"/g' >>$CONFIG_STATUS || ac_write_fail=1
18368
18369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18370  for (key in D) D_is_set[key] = 1
18371  FS = ""
18372}
18373/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18374  line = \$ 0
18375  split(line, arg, " ")
18376  if (arg[1] == "#") {
18377    defundef = arg[2]
18378    mac1 = arg[3]
18379  } else {
18380    defundef = substr(arg[1], 2)
18381    mac1 = arg[2]
18382  }
18383  split(mac1, mac2, "(") #)
18384  macro = mac2[1]
18385  if (D_is_set[macro]) {
18386    # Preserve the white space surrounding the "#".
18387    prefix = substr(line, 1, index(line, defundef) - 1)
18388    print prefix "define", macro P[macro] D[macro]
18389    next
18390  } else {
18391    # Replace #undef with comments.  This is necessary, for example,
18392    # in the case of _POSIX_SOURCE, which is predefined and required
18393    # on some systems where configure will not decide to define it.
18394    if (defundef == "undef") {
18395      print "/*", line, "*/"
18396      next
18397    }
18398  }
18399}
18400{ print }
18401_ACAWK
18402_ACEOF
18403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18404  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18405$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18406   { (exit 1); exit 1; }; }
18407fi # test -n "$CONFIG_HEADERS"
18408
18409
18410eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18411shift
18412for ac_tag
18413do
18414  case $ac_tag in
18415  :[FHLC]) ac_mode=$ac_tag; continue;;
18416  esac
18417  case $ac_mode$ac_tag in
18418  :[FHL]*:*);;
18419  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18420$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18421   { (exit 1); exit 1; }; };;
18422  :[FH]-) ac_tag=-:-;;
18423  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18424  esac
18425  ac_save_IFS=$IFS
18426  IFS=:
18427  set x $ac_tag
18428  IFS=$ac_save_IFS
18429  shift
18430  ac_file=$1
18431  shift
18432
18433  case $ac_mode in
18434  :L) ac_source=$1;;
18435  :[FH])
18436    ac_file_inputs=
18437    for ac_f
18438    do
18439      case $ac_f in
18440      -) ac_f="$tmp/stdin";;
18441      *) # Look for the file first in the build tree, then in the source tree
18442	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18443	 # because $ac_f cannot contain `:'.
18444	 test -f "$ac_f" ||
18445	   case $ac_f in
18446	   [\\/$]*) false;;
18447	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18448	   esac ||
18449	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18450$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18451   { (exit 1); exit 1; }; };;
18452      esac
18453      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18454      ac_file_inputs="$ac_file_inputs '$ac_f'"
18455    done
18456
18457    # Let's still pretend it is `configure' which instantiates (i.e., don't
18458    # use $as_me), people would be surprised to read:
18459    #    /* config.h.  Generated by config.status.  */
18460    configure_input='Generated from '`
18461	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18462	`' by configure.'
18463    if test x"$ac_file" != x-; then
18464      configure_input="$ac_file.  $configure_input"
18465      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18466$as_echo "$as_me: creating $ac_file" >&6;}
18467    fi
18468    # Neutralize special characters interpreted by sed in replacement strings.
18469    case $configure_input in #(
18470    *\&* | *\|* | *\\* )
18471       ac_sed_conf_input=`$as_echo "$configure_input" |
18472       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18473    *) ac_sed_conf_input=$configure_input;;
18474    esac
18475
18476    case $ac_tag in
18477    *:-:* | *:-) cat >"$tmp/stdin" \
18478      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18479$as_echo "$as_me: error: could not create $ac_file" >&2;}
18480   { (exit 1); exit 1; }; } ;;
18481    esac
18482    ;;
18483  esac
18484
18485  ac_dir=`$as_dirname -- "$ac_file" ||
18486$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18487	 X"$ac_file" : 'X\(//\)[^/]' \| \
18488	 X"$ac_file" : 'X\(//\)$' \| \
18489	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18490$as_echo X"$ac_file" |
18491    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18492	    s//\1/
18493	    q
18494	  }
18495	  /^X\(\/\/\)[^/].*/{
18496	    s//\1/
18497	    q
18498	  }
18499	  /^X\(\/\/\)$/{
18500	    s//\1/
18501	    q
18502	  }
18503	  /^X\(\/\).*/{
18504	    s//\1/
18505	    q
18506	  }
18507	  s/.*/./; q'`
18508  { as_dir="$ac_dir"
18509  case $as_dir in #(
18510  -*) as_dir=./$as_dir;;
18511  esac
18512  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18513    as_dirs=
18514    while :; do
18515      case $as_dir in #(
18516      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18517      *) as_qdir=$as_dir;;
18518      esac
18519      as_dirs="'$as_qdir' $as_dirs"
18520      as_dir=`$as_dirname -- "$as_dir" ||
18521$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18522	 X"$as_dir" : 'X\(//\)[^/]' \| \
18523	 X"$as_dir" : 'X\(//\)$' \| \
18524	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18525$as_echo X"$as_dir" |
18526    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18527	    s//\1/
18528	    q
18529	  }
18530	  /^X\(\/\/\)[^/].*/{
18531	    s//\1/
18532	    q
18533	  }
18534	  /^X\(\/\/\)$/{
18535	    s//\1/
18536	    q
18537	  }
18538	  /^X\(\/\).*/{
18539	    s//\1/
18540	    q
18541	  }
18542	  s/.*/./; q'`
18543      test -d "$as_dir" && break
18544    done
18545    test -z "$as_dirs" || eval "mkdir $as_dirs"
18546  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18547$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18548   { (exit 1); exit 1; }; }; }
18549  ac_builddir=.
18550
18551case "$ac_dir" in
18552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18553*)
18554  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18555  # A ".." for each directory in $ac_dir_suffix.
18556  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18557  case $ac_top_builddir_sub in
18558  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18559  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18560  esac ;;
18561esac
18562ac_abs_top_builddir=$ac_pwd
18563ac_abs_builddir=$ac_pwd$ac_dir_suffix
18564# for backward compatibility:
18565ac_top_builddir=$ac_top_build_prefix
18566
18567case $srcdir in
18568  .)  # We are building in place.
18569    ac_srcdir=.
18570    ac_top_srcdir=$ac_top_builddir_sub
18571    ac_abs_top_srcdir=$ac_pwd ;;
18572  [\\/]* | ?:[\\/]* )  # Absolute name.
18573    ac_srcdir=$srcdir$ac_dir_suffix;
18574    ac_top_srcdir=$srcdir
18575    ac_abs_top_srcdir=$srcdir ;;
18576  *) # Relative name.
18577    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18578    ac_top_srcdir=$ac_top_build_prefix$srcdir
18579    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18580esac
18581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18582
18583
18584  case $ac_mode in
18585  :F)
18586  #
18587  # CONFIG_FILE
18588  #
18589
18590_ACEOF
18591
18592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18593# If the template does not know about datarootdir, expand it.
18594# FIXME: This hack should be removed a few years after 2.60.
18595ac_datarootdir_hack=; ac_datarootdir_seen=
18596
18597ac_sed_dataroot='
18598/datarootdir/ {
18599  p
18600  q
18601}
18602/@datadir@/p
18603/@docdir@/p
18604/@infodir@/p
18605/@localedir@/p
18606/@mandir@/p
18607'
18608case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18609*datarootdir*) ac_datarootdir_seen=yes;;
18610*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18611  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18612$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18613_ACEOF
18614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18615  ac_datarootdir_hack='
18616  s&@datadir@&$datadir&g
18617  s&@docdir@&$docdir&g
18618  s&@infodir@&$infodir&g
18619  s&@localedir@&$localedir&g
18620  s&@mandir@&$mandir&g
18621    s&\\\${datarootdir}&$datarootdir&g' ;;
18622esac
18623_ACEOF
18624
18625# Neutralize VPATH when `$srcdir' = `.'.
18626# Shell code in configure.ac might set extrasub.
18627# FIXME: do we really want to maintain this feature?
18628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18629ac_sed_extra="$ac_vpsub
18630$extrasub
18631_ACEOF
18632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18633:t
18634/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18635s|@configure_input@|$ac_sed_conf_input|;t t
18636s&@top_builddir@&$ac_top_builddir_sub&;t t
18637s&@top_build_prefix@&$ac_top_build_prefix&;t t
18638s&@srcdir@&$ac_srcdir&;t t
18639s&@abs_srcdir@&$ac_abs_srcdir&;t t
18640s&@top_srcdir@&$ac_top_srcdir&;t t
18641s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18642s&@builddir@&$ac_builddir&;t t
18643s&@abs_builddir@&$ac_abs_builddir&;t t
18644s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18645$ac_datarootdir_hack
18646"
18647eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18648if $ac_cs_awk_getline; then
18649  $AWK -f "$tmp/subs.awk"
18650else
18651  $AWK -f "$tmp/subs.awk" | $SHELL
18652fi >$tmp/out \
18653  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18654$as_echo "$as_me: error: could not create $ac_file" >&2;}
18655   { (exit 1); exit 1; }; }
18656
18657test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18658  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18659  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18660  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18661which seems to be undefined.  Please make sure it is defined." >&5
18662$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18663which seems to be undefined.  Please make sure it is defined." >&2;}
18664
18665  rm -f "$tmp/stdin"
18666  case $ac_file in
18667  -) cat "$tmp/out" && rm -f "$tmp/out";;
18668  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18669  esac \
18670  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18671$as_echo "$as_me: error: could not create $ac_file" >&2;}
18672   { (exit 1); exit 1; }; }
18673 ;;
18674  :H)
18675  #
18676  # CONFIG_HEADER
18677  #
18678  if test x"$ac_file" != x-; then
18679    {
18680      $as_echo "/* $configure_input  */" \
18681      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18682    } >"$tmp/config.h" \
18683      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18684$as_echo "$as_me: error: could not create $ac_file" >&2;}
18685   { (exit 1); exit 1; }; }
18686    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18687      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18688$as_echo "$as_me: $ac_file is unchanged" >&6;}
18689    else
18690      rm -f "$ac_file"
18691      mv "$tmp/config.h" "$ac_file" \
18692	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18693$as_echo "$as_me: error: could not create $ac_file" >&2;}
18694   { (exit 1); exit 1; }; }
18695    fi
18696  else
18697    $as_echo "/* $configure_input  */" \
18698      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18699      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18700$as_echo "$as_me: error: could not create -" >&2;}
18701   { (exit 1); exit 1; }; }
18702  fi
18703 ;;
18704
18705  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18706$as_echo "$as_me: executing $ac_file commands" >&6;}
18707 ;;
18708  esac
18709
18710
18711  case $ac_file$ac_mode in
18712    "default":C)
18713case ${CONFIG_HEADERS} in
18714  *auto-host.h:config.in*)
18715  echo > cstamp-h ;;
18716esac
18717# Make sure all the subdirs exist.
18718for d in $subdirs doc build
18719do
18720    test -d $d || mkdir $d
18721done
18722# If the host supports symlinks, point stage[1234] at ../stage[1234] so
18723# bootstrapping and the installation procedure can still use
18724# CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
18725# FLAGS_TO_PASS has been modified to solve the problem there.
18726# This is virtually a duplicate of what happens in configure.lang; we do
18727# an extra check to make sure this only happens if ln -s can be used.
18728case "$LN_S" in
18729  *-s*)
18730    for d in ${subdirs} ; do
18731	STARTDIR=`${PWDCMD-pwd}`
18732	cd $d
18733	for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
18734	do
18735		rm -f $t
18736		$LN_S ../$t $t 2>/dev/null
18737	done
18738	cd $STARTDIR
18739    done
18740  ;;
18741esac
18742 ;;
18743
18744  esac
18745done # for ac_tag
18746
18747
18748{ (exit 0); exit 0; }
18749_ACEOF
18750chmod +x $CONFIG_STATUS
18751ac_clean_files=$ac_clean_files_save
18752
18753test $ac_write_fail = 0 ||
18754  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18755$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18756   { (exit 1); exit 1; }; }
18757
18758
18759# configure is writing to config.log, and then calls config.status.
18760# config.status does its own redirection, appending to config.log.
18761# Unfortunately, on DOS this fails, as config.log is still kept open
18762# by configure, so config.status won't be able to write to it; its
18763# output is simply discarded.  So we exec the FD to /dev/null,
18764# effectively closing config.log, so it can be properly (re)opened and
18765# appended to by config.status.  When coming back to configure, we
18766# need to make the FD available again.
18767if test "$no_create" != yes; then
18768  ac_cs_success=:
18769  ac_config_status_args=
18770  test "$silent" = yes &&
18771    ac_config_status_args="$ac_config_status_args --quiet"
18772  exec 5>/dev/null
18773  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18774  exec 5>>config.log
18775  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18776  # would make configure fail if this is the last instruction.
18777  $ac_cs_success || { (exit 1); exit 1; }
18778fi
18779if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18780  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
18781$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
18782fi
18783
18784