1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60-MirPorts-2.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20  setopt NO_GLOB_SUBST
21else
22  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23fi
24BIN_SH=xpg4; export BIN_SH # for Tru64
25DUALCASE=1; export DUALCASE # for MKS sh
26
27
28# PATH needs CR
29# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38  echo "#! /bin/sh" >conf$$.sh
39  echo  "exit 0"   >>conf$$.sh
40  chmod +x conf$$.sh
41  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42    PATH_SEPARATOR=';'
43  else
44    PATH_SEPARATOR=:
45  fi
46  rm -f conf$$.sh
47fi
48
49# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51  as_unset=unset
52else
53  as_unset=false
54fi
55
56
57# IFS
58# We need space, tab and new line, in precisely that order.  Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" ""	$as_nl"
65
66# Find who we are.  Look in the path if we contain no directory separator.
67case $0 in
68  *[\\/]* ) as_myself=$0 ;;
69  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70for as_dir in $PATH
71do
72  IFS=$as_save_IFS
73  test -z "$as_dir" && as_dir=.
74  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
76IFS=$as_save_IFS
77
78     ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83  as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87  { (exit 1); exit 1; }
88fi
89
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102  LC_TELEPHONE LC_TIME
103do
104  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105    eval $as_var=C; export $as_var
106  else
107    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108  fi
109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113   test "X`expr 00001 : '.*\(...\)'`" = X001; then
114  as_expr=expr
115else
116  as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120  as_basename=basename
121else
122  as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129	 X"$0" : 'X\(//\)$' \| \
130	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
132    sed '/^.*\/\([^/][^/]*\)\/*$/{
133	    s//\1/
134	    q
135	  }
136	  /^X\/\(\/\/\)$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\).*/{
141	    s//\1/
142	    q
143	  }
144	  s/.*/./; q'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
150if test "x$CONFIG_SHELL" = x; then
151  if (eval ":") 2>/dev/null; then
152  as_have_required=yes
153else
154  as_have_required=no
155fi
156
157  if test $as_have_required = yes && 	 (eval ":
158(as_func_return () {
159  (exit \$1)
160}
161as_func_success () {
162  as_func_return 0
163}
164as_func_failure () {
165  as_func_return 1
166}
167as_func_ret_success () {
168  return 0
169}
170as_func_ret_failure () {
171  return 1
172}
173
174exitcode=0
175if as_func_success; then
176  :
177else
178  exitcode=1
179  echo as_func_success failed.
180fi
181
182if as_func_failure; then
183  exitcode=1
184  echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188  :
189else
190  exitcode=1
191  echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195  exitcode=1
196  echo as_func_ret_failure succeeded.
197fi
198
199if (set x; as_func_ret_success y && test x = \"\$1\" ); then
200  :
201else
202  exitcode=1
203  echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209  as_lineno_1=\$LINENO
210  as_lineno_2=\$LINENO
211  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214  :
215else
216  as_candidate_shells=
217    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  case $as_dir in
223	 /*)
224	   for as_base in sh bash ksh sh5; do
225	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226	   done;;
227       esac
228done
229IFS=$as_save_IFS
230
231
232      for as_shell in $as_candidate_shells $SHELL; do
233	 # Try only shells that exist, to save several forks.
234	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235		{ ("$as_shell") 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238  emulate sh
239  NULLCMD=:
240  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241  # is contrary to our usage.  Disable this feature.
242  alias -g '${1+"$@"}'='"$@"'
243  setopt NO_GLOB_SUBST
244else
245  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253  CONFIG_SHELL=$as_shell
254	       as_have_required=yes
255	       if { "$as_shell" 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258  emulate sh
259  NULLCMD=:
260  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261  # is contrary to our usage.  Disable this feature.
262  alias -g '${1+"$@"}'='"$@"'
263  setopt NO_GLOB_SUBST
264else
265  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272  (exit $1)
273}
274as_func_success () {
275  as_func_return 0
276}
277as_func_failure () {
278  as_func_return 1
279}
280as_func_ret_success () {
281  return 0
282}
283as_func_ret_failure () {
284  return 1
285}
286
287exitcode=0
288if as_func_success; then
289  :
290else
291  exitcode=1
292  echo as_func_success failed.
293fi
294
295if as_func_failure; then
296  exitcode=1
297  echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301  :
302else
303  exitcode=1
304  echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308  exitcode=1
309  echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313  :
314else
315  exitcode=1
316  echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
322  as_lineno_1=$LINENO
323  as_lineno_2=$LINENO
324  test "x$as_lineno_1" != "x$as_lineno_2" &&
325  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329  break
330fi
331
332fi
333
334      done
335
336      if test "x$CONFIG_SHELL" != x; then
337  for as_var in BASH_ENV ENV
338        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339        done
340        export CONFIG_SHELL
341        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345    if test $as_have_required = no; then
346  echo This script requires a shell more modern than all the
347      echo shells that I found on your system.  Please install a
348      echo modern shell, or manually run the script under such a
349      echo shell if you do have one.
350      { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361  (exit \$1)
362}
363as_func_success () {
364  as_func_return 0
365}
366as_func_failure () {
367  as_func_return 1
368}
369as_func_ret_success () {
370  return 0
371}
372as_func_ret_failure () {
373  return 1
374}
375
376exitcode=0
377if as_func_success; then
378  :
379else
380  exitcode=1
381  echo as_func_success failed.
382fi
383
384if as_func_failure; then
385  exitcode=1
386  echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390  :
391else
392  exitcode=1
393  echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397  exitcode=1
398  echo as_func_ret_failure succeeded.
399fi
400
401if (set x; as_func_ret_success y && test x = \"\$1\" ); then
402  :
403else
404  exitcode=1
405  echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409  echo No shell found that supports shell functions.
410  echo Please tell autoconf@gnu.org about your system,
411  echo including any error possibly output before this
412  echo message
413}
414
415
416
417  as_lineno_1=$LINENO
418  as_lineno_2=$LINENO
419  test "x$as_lineno_1" != "x$as_lineno_2" &&
420  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423  # uniformly replaced by the line number.  The first 'sed' inserts a
424  # line-number line after each line using $LINENO; the second 'sed'
425  # does the real work.  The second script uses 'N' to pair each
426  # line-number line with the line containing $LINENO, and appends
427  # trailing '-' during substitution so that $LINENO is not a special
428  # case at line end.
429  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430  # scripts with optimization help from Paolo Bonzini.  Blame Lee
431  # E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449   { (exit 1); exit 1; }; }
450
451  # Don't try to exec as it changes $[0], causing all sort of problems
452  # (the dirname of $[0] is not the place where we might find the
453  # original and so on.  Autoconf is especially sensitive to this).
454  . "./$as_me.lineno"
455  # Exit status is that of the last command.
456  exit
457}
458
459
460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461  as_dirname=dirname
462else
463  as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469  case `echo 'x\c'` in
470  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
471  *)   ECHO_C='\c';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477if expr a : '\(a\)' >/dev/null 2>&1 &&
478   test "X`expr 00001 : '.*\(...\)'`" = X001; then
479  as_expr=expr
480else
481  as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir
490fi
491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
493  as_ln_s='ln -s'
494  # ... but there are two gotchas:
495  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497  # In both cases, we have to default to `cp -p'.
498  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499    as_ln_s='cp -p'
500elif ln conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s=ln
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p=:
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523  as_executable_p="test -x"
524else
525  as_executable_p=:
526fi
527rm -f conf$$.file
528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555SHELL=${CONFIG_SHELL-/bin/sh}
556
557# Identity of this package.
558PACKAGE_NAME=
559PACKAGE_TARNAME=
560PACKAGE_VERSION=
561PACKAGE_STRING=
562PACKAGE_BUGREPORT=
563
564ac_unique_file="main.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#if HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#if HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#if STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# if HAVE_STDLIB_H
579#  include <stdlib.h>
580# endif
581#endif
582#if HAVE_STRING_H
583# if !STDC_HEADERS && HAVE_MEMORY_H
584#  include <memory.h>
585# endif
586# include <string.h>
587#endif
588#if HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#if HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#if HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#if HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='SHELL
602PATH_SEPARATOR
603PACKAGE_NAME
604PACKAGE_TARNAME
605PACKAGE_VERSION
606PACKAGE_STRING
607PACKAGE_BUGREPORT
608exec_prefix
609prefix
610program_transform_name
611bindir
612sbindir
613libexecdir
614datarootdir
615datadir
616sysconfdir
617sharedstatedir
618localstatedir
619includedir
620oldincludedir
621docdir
622infodir
623htmldir
624dvidir
625pdfdir
626psdir
627libdir
628localedir
629mandir
630DEFS
631ECHO_C
632ECHO_N
633ECHO_T
634LIBS
635build_alias
636host_alias
637target_alias
638MAINTAINER_MODE_TRUE
639MAINTAINER_MODE_FALSE
640MAINT
641CC
642CFLAGS
643LDFLAGS
644CPPFLAGS
645ac_ct_CC
646EXEEXT
647OBJEXT
648CPP
649GREP
650EGREP
651build
652build_cpu
653build_vendor
654build_os
655host
656host_cpu
657host_vendor
658host_os
659target
660target_cpu
661target_vendor
662target_os
663PACKAGE
664subdirs
665AWK
666INSTALL_PROGRAM
667INSTALL_SCRIPT
668INSTALL_DATA
669LN_S
670RANLIB
671YACC
672YFLAGS
673AR
674DLLTOOL
675WINDRES
676MIG
677ALLOCA
678CONFIG_LDFLAGS
679TARGET_SYSTEM_ROOT
680TARGET_SYSTEM_ROOT_DEFINE
681WARN_CFLAGS
682WERROR_CFLAGS
683SER_HARDWIRE
684WIN32LIBS
685LIBGUI
686GUI_CFLAGS_X
687WIN32LDAPP
688TCL_VERSION
689TCL_MAJOR_VERSION
690TCL_MINOR_VERSION
691TCL_CC
692TCL_DEFS
693TCL_SHLIB_CFLAGS
694TCL_SHLIB_LD
695TCL_SHLIB_LD_LIBS
696TCL_SHLIB_SUFFIX
697TCL_DL_LIBS
698TCL_LD_FLAGS
699TCL_LD_SEARCH_FLAGS
700TCL_CC_SEARCH_FLAGS
701TCL_COMPAT_OBJS
702TCL_RANLIB
703TCL_BUILD_LIB_SPEC
704TCL_LIB_SPEC
705TCL_LIB_VERSIONS_OK
706TK_VERSION
707TK_DEFS
708TK_BUILD_INCLUDES
709TK_XINCLUDES
710TK_XLIBSW
711TK_BUILD_LIB_SPEC
712TK_LIB_SPEC
713TCLHDIR
714TKHDIR
715ITCLHDIR
716ITKHDIR
717ITCL_VERSION
718ITCL_DEFS
719ITCL_BUILD_INCLUDES
720ITCL_BUILD_LIB_SPEC
721ITCL_LIB_SPEC
722ITK_VERSION
723ITK_DEFS
724ITK_BUILD_INCLUDES
725ITK_BUILD_LIB_SPEC
726ITK_LIB_SPEC
727X_CFLAGS
728X_LDFLAGS
729X_LIBS
730TCL_DEPS
731TK_DEPS
732ITCLLIB
733ITCL_DEPS
734ITKLIB
735ITK_DEPS
736GDBTKLIBS
737GDBTK_CFLAGS
738GDBTK_SRC_DIR
739XMKMF
740IGNORE_SIM
741IGNORE_SIM_OBS
742ENABLE_CFLAGS
743PROFILE_CFLAGS
744CONFIG_OBS
745CONFIG_DEPS
746CONFIG_SRCS
747CONFIG_ALL
748CONFIG_CLEAN
749CONFIG_INSTALL
750CONFIG_UNINSTALL
751target_subdir
752frags
753xm_h
754tm_h
755nm_h
756LIBICONV
757LIBOBJS
758LTLIBOBJS'
759ac_subst_files='host_makefile_frag
760target_makefile_frag'
761      ac_precious_vars='build_alias
762host_alias
763target_alias
764CC
765CFLAGS
766LDFLAGS
767CPPFLAGS
768CPP
769YACC
770YFLAGS
771XMKMF'
772ac_subdirs_all='doc
773gdbtk
774multi-ice
775gdbserver
776rdi-share
777nlm'
778
779# Initialize some variables set by options.
780ac_init_help=
781ac_init_version=false
782# The variables have the same names as the options, with
783# dashes changed to underlines.
784cache_file=/dev/null
785exec_prefix=NONE
786no_create=
787no_recursion=
788prefix=NONE
789program_prefix=NONE
790program_suffix=NONE
791program_transform_name=s,x,x,
792silent=
793site=
794srcdir=
795verbose=
796x_includes=NONE
797x_libraries=NONE
798
799# Installation directory options.
800# These are left unexpanded so users can "make install exec_prefix=/foo"
801# and all the variables that are supposed to be based on exec_prefix
802# by default will actually change.
803# Use braces instead of parens because sh, perl, etc. also accept them.
804# (The list follows the same order as the GNU Coding Standards.)
805bindir='${exec_prefix}/bin'
806sbindir='${exec_prefix}/sbin'
807libexecdir='${exec_prefix}/libexec'
808datarootdir='${prefix}/share'
809datadir='${datarootdir}'
810sysconfdir='${prefix}/etc'
811sharedstatedir='${prefix}/com'
812localstatedir='${prefix}/var'
813includedir='${prefix}/include'
814oldincludedir='/usr/include'
815docdir='${datarootdir}/doc/${PACKAGE}'
816infodir='${datarootdir}/info'
817htmldir='${docdir}'
818dvidir='${docdir}'
819pdfdir='${docdir}'
820psdir='${docdir}'
821libdir='${exec_prefix}/lib'
822localedir='${datarootdir}/locale'
823mandir='${datarootdir}/man'
824
825ac_prev=
826ac_dashdash=
827for ac_option
828do
829  # If the previous option needs an argument, assign it.
830  if test -n "$ac_prev"; then
831    eval $ac_prev=\$ac_option
832    ac_prev=
833    continue
834  fi
835
836  case $ac_option in
837  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838  *)	ac_optarg=yes ;;
839  esac
840
841  # Accept the important Cygnus configure options, so we can diagnose typos.
842
843  case $ac_dashdash$ac_option in
844  --)
845    ac_dashdash=yes ;;
846
847  -bindir | --bindir | --bindi | --bind | --bin | --bi)
848    ac_prev=bindir ;;
849  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850    bindir=$ac_optarg ;;
851
852  -build | --build | --buil | --bui | --bu)
853    ac_prev=build_alias ;;
854  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855    build_alias=$ac_optarg ;;
856
857  -cache-file | --cache-file | --cache-fil | --cache-fi \
858  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859    ac_prev=cache_file ;;
860  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862    cache_file=$ac_optarg ;;
863
864  --config-cache | -C)
865    cache_file=config.cache ;;
866
867  -datadir | --datadir | --datadi | --datad)
868    ac_prev=datadir ;;
869  -datadir=* | --datadir=* | --datadi=* | --datad=*)
870    datadir=$ac_optarg ;;
871
872  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873  | --dataroo | --dataro | --datar)
874    ac_prev=datarootdir ;;
875  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877    datarootdir=$ac_optarg ;;
878
879  -disable-* | --disable-*)
880    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881    # Reject names that are not valid shell variable names.
882    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
883      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
884   { (exit 1); exit 1; }; }
885    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
886    eval enable_$ac_feature=no ;;
887
888  -docdir | --docdir | --docdi | --doc | --do)
889    ac_prev=docdir ;;
890  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891    docdir=$ac_optarg ;;
892
893  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894    ac_prev=dvidir ;;
895  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896    dvidir=$ac_optarg ;;
897
898  -enable-* | --enable-*)
899    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900    # Reject names that are not valid shell variable names.
901    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
902      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
903   { (exit 1); exit 1; }; }
904    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
905    eval enable_$ac_feature=\$ac_optarg ;;
906
907  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909  | --exec | --exe | --ex)
910    ac_prev=exec_prefix ;;
911  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913  | --exec=* | --exe=* | --ex=*)
914    exec_prefix=$ac_optarg ;;
915
916  -gas | --gas | --ga | --g)
917    # Obsolete; use --with-gas.
918    with_gas=yes ;;
919
920  -help | --help | --hel | --he | -h)
921    ac_init_help=long ;;
922  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923    ac_init_help=recursive ;;
924  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925    ac_init_help=short ;;
926
927  -host | --host | --hos | --ho)
928    ac_prev=host_alias ;;
929  -host=* | --host=* | --hos=* | --ho=*)
930    host_alias=$ac_optarg ;;
931
932  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933    ac_prev=htmldir ;;
934  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935  | --ht=*)
936    htmldir=$ac_optarg ;;
937
938  -includedir | --includedir | --includedi | --included | --include \
939  | --includ | --inclu | --incl | --inc)
940    ac_prev=includedir ;;
941  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942  | --includ=* | --inclu=* | --incl=* | --inc=*)
943    includedir=$ac_optarg ;;
944
945  -infodir | --infodir | --infodi | --infod | --info | --inf)
946    ac_prev=infodir ;;
947  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948    infodir=$ac_optarg ;;
949
950  -libdir | --libdir | --libdi | --libd)
951    ac_prev=libdir ;;
952  -libdir=* | --libdir=* | --libdi=* | --libd=*)
953    libdir=$ac_optarg ;;
954
955  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956  | --libexe | --libex | --libe)
957    ac_prev=libexecdir ;;
958  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959  | --libexe=* | --libex=* | --libe=*)
960    libexecdir=$ac_optarg ;;
961
962  -localedir | --localedir | --localedi | --localed | --locale)
963    ac_prev=localedir ;;
964  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965    localedir=$ac_optarg ;;
966
967  -localstatedir | --localstatedir | --localstatedi | --localstated \
968  | --localstate | --localstat | --localsta | --localst | --locals)
969    ac_prev=localstatedir ;;
970  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972    localstatedir=$ac_optarg ;;
973
974  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975    ac_prev=mandir ;;
976  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977    mandir=$ac_optarg ;;
978
979  -nfp | --nfp | --nf)
980    # Obsolete; use --without-fp.
981    with_fp=no ;;
982
983  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984  | --no-cr | --no-c | -n)
985    no_create=yes ;;
986
987  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989    no_recursion=yes ;;
990
991  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993  | --oldin | --oldi | --old | --ol | --o)
994    ac_prev=oldincludedir ;;
995  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998    oldincludedir=$ac_optarg ;;
999
1000  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001    ac_prev=prefix ;;
1002  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003    prefix=$ac_optarg ;;
1004
1005  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006  | --program-pre | --program-pr | --program-p)
1007    ac_prev=program_prefix ;;
1008  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010    program_prefix=$ac_optarg ;;
1011
1012  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013  | --program-suf | --program-su | --program-s)
1014    ac_prev=program_suffix ;;
1015  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017    program_suffix=$ac_optarg ;;
1018
1019  -program-transform-name | --program-transform-name \
1020  | --program-transform-nam | --program-transform-na \
1021  | --program-transform-n | --program-transform- \
1022  | --program-transform | --program-transfor \
1023  | --program-transfo | --program-transf \
1024  | --program-trans | --program-tran \
1025  | --progr-tra | --program-tr | --program-t)
1026    ac_prev=program_transform_name ;;
1027  -program-transform-name=* | --program-transform-name=* \
1028  | --program-transform-nam=* | --program-transform-na=* \
1029  | --program-transform-n=* | --program-transform-=* \
1030  | --program-transform=* | --program-transfor=* \
1031  | --program-transfo=* | --program-transf=* \
1032  | --program-trans=* | --program-tran=* \
1033  | --progr-tra=* | --program-tr=* | --program-t=*)
1034    program_transform_name=$ac_optarg ;;
1035
1036  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037    ac_prev=pdfdir ;;
1038  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039    pdfdir=$ac_optarg ;;
1040
1041  -psdir | --psdir | --psdi | --psd | --ps)
1042    ac_prev=psdir ;;
1043  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044    psdir=$ac_optarg ;;
1045
1046  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047  | -silent | --silent | --silen | --sile | --sil)
1048    silent=yes ;;
1049
1050  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051    ac_prev=sbindir ;;
1052  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053  | --sbi=* | --sb=*)
1054    sbindir=$ac_optarg ;;
1055
1056  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058  | --sharedst | --shareds | --shared | --share | --shar \
1059  | --sha | --sh)
1060    ac_prev=sharedstatedir ;;
1061  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064  | --sha=* | --sh=*)
1065    sharedstatedir=$ac_optarg ;;
1066
1067  -site | --site | --sit)
1068    ac_prev=site ;;
1069  -site=* | --site=* | --sit=*)
1070    site=$ac_optarg ;;
1071
1072  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073    ac_prev=srcdir ;;
1074  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075    srcdir=$ac_optarg ;;
1076
1077  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078  | --syscon | --sysco | --sysc | --sys | --sy)
1079    ac_prev=sysconfdir ;;
1080  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082    sysconfdir=$ac_optarg ;;
1083
1084  -target | --target | --targe | --targ | --tar | --ta | --t)
1085    ac_prev=target_alias ;;
1086  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087    target_alias=$ac_optarg ;;
1088
1089  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090    verbose=yes ;;
1091
1092  -version | --version | --versio | --versi | --vers | -V)
1093    ac_init_version=: ;;
1094
1095  -with-* | --with-*)
1096    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097    # Reject names that are not valid shell variable names.
1098    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1099      { echo "$as_me: error: invalid package name: $ac_package" >&2
1100   { (exit 1); exit 1; }; }
1101    ac_package=`echo $ac_package| sed 's/-/_/g'`
1102    eval with_$ac_package=\$ac_optarg ;;
1103
1104  -without-* | --without-*)
1105    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106    # Reject names that are not valid shell variable names.
1107    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1108      { echo "$as_me: error: invalid package name: $ac_package" >&2
1109   { (exit 1); exit 1; }; }
1110    ac_package=`echo $ac_package | sed 's/-/_/g'`
1111    eval with_$ac_package=no ;;
1112
1113  --x)
1114    # Obsolete; use --with-x.
1115    with_x=yes ;;
1116
1117  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1118  | --x-incl | --x-inc | --x-in | --x-i)
1119    ac_prev=x_includes ;;
1120  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1121  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1122    x_includes=$ac_optarg ;;
1123
1124  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1125  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1126    ac_prev=x_libraries ;;
1127  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1128  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1129    x_libraries=$ac_optarg ;;
1130
1131  -*) { echo "$as_me: error: unrecognized option: $ac_option
1132Try \`$0 --help' for more information." >&2
1133   { (exit 1); exit 1; }; }
1134    ;;
1135
1136  *=*)
1137    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1140      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1141   { (exit 1); exit 1; }; }
1142    eval $ac_envvar=\$ac_optarg
1143    export $ac_envvar ;;
1144
1145  *)
1146    # FIXME: should be removed in autoconf 3.0.
1147    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1148    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1150    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1151    ;;
1152
1153  esac
1154done
1155
1156if test -n "$ac_prev"; then
1157  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1158  { echo "$as_me: error: missing argument to $ac_option" >&2
1159   { (exit 1); exit 1; }; }
1160fi
1161
1162# Be sure to have absolute directory names.
1163for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1164		datadir sysconfdir sharedstatedir localstatedir includedir \
1165		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1166		libdir localedir mandir
1167do
1168  eval ac_val=\$$ac_var
1169  case $ac_val in
1170    [\\/$]* | ?:[\\/]* )  continue;;
1171    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1172  esac
1173  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1174   { (exit 1); exit 1; }; }
1175done
1176
1177# There might be people who depend on the old broken behavior: `$host'
1178# used to hold the argument of --host etc.
1179# FIXME: To remove some day.
1180build=$build_alias
1181host=$host_alias
1182target=$target_alias
1183
1184# FIXME: To remove some day.
1185if test "x$host_alias" != x; then
1186  if test "x$build_alias" = x; then
1187    cross_compiling=maybe
1188    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1189    If a cross compiler is detected then cross compile mode will be used." >&2
1190  elif test "x$build_alias" != "x$host_alias"; then
1191    cross_compiling=yes
1192  fi
1193fi
1194
1195ac_tool_prefix=
1196test -n "$host_alias" && ac_tool_prefix=$host_alias-
1197
1198test "$silent" = yes && exec 6>/dev/null
1199
1200
1201ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202ac_ls_di=`ls -di .` &&
1203ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1204  { echo "$as_me: error: Working directory cannot be determined" >&2
1205   { (exit 1); exit 1; }; }
1206test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207  { echo "$as_me: error: pwd does not report name of working directory" >&2
1208   { (exit 1); exit 1; }; }
1209
1210
1211# Find the source files, if location was not specified.
1212if test -z "$srcdir"; then
1213  ac_srcdir_defaulted=yes
1214  # Try the directory containing this script, then the parent directory.
1215  ac_confdir=`$as_dirname -- "$0" ||
1216$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1217	 X"$0" : 'X\(//\)[^/]' \| \
1218	 X"$0" : 'X\(//\)$' \| \
1219	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1220echo X"$0" |
1221    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222	    s//\1/
1223	    q
1224	  }
1225	  /^X\(\/\/\)[^/].*/{
1226	    s//\1/
1227	    q
1228	  }
1229	  /^X\(\/\/\)$/{
1230	    s//\1/
1231	    q
1232	  }
1233	  /^X\(\/\).*/{
1234	    s//\1/
1235	    q
1236	  }
1237	  s/.*/./; q'`
1238  srcdir=$ac_confdir
1239  if test ! -r "$srcdir/$ac_unique_file"; then
1240    srcdir=..
1241  fi
1242else
1243  ac_srcdir_defaulted=no
1244fi
1245if test ! -r "$srcdir/$ac_unique_file"; then
1246  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1247  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1248   { (exit 1); exit 1; }; }
1249fi
1250ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1251ac_abs_confdir=`(
1252	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1253   { (exit 1); exit 1; }; }
1254	pwd)`
1255# When building in place, set srcdir=.
1256if test "$ac_abs_confdir" = "$ac_pwd"; then
1257  srcdir=.
1258fi
1259# Remove unnecessary trailing slashes from srcdir.
1260# Double slashes in file names in object file debugging info
1261# mess up M-x gdb in Emacs.
1262case $srcdir in
1263*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264esac
1265for ac_var in $ac_precious_vars; do
1266  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267  eval ac_env_${ac_var}_value=\$${ac_var}
1268  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270done
1271
1272#
1273# Report the --help message.
1274#
1275if test "$ac_init_help" = "long"; then
1276  # Omit some internal or obsolete options to make the list less imposing.
1277  # This message is too long to be a string in the A/UX 3.1 sh.
1278  cat <<_ACEOF
1279\`configure' configures this package to adapt to many kinds of systems.
1280
1281Usage: $0 [OPTION]... [VAR=VALUE]...
1282
1283To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284VAR=VALUE.  See below for descriptions of some of the useful variables.
1285
1286Defaults for the options are specified in brackets.
1287
1288Configuration:
1289  -h, --help              display this help and exit
1290      --help=short        display options specific to this package
1291      --help=recursive    display the short help of all the included packages
1292  -V, --version           display version information and exit
1293  -q, --quiet, --silent   do not print \`checking...' messages
1294      --cache-file=FILE   cache test results in FILE [disabled]
1295  -C, --config-cache      alias for \`--cache-file=config.cache'
1296  -n, --no-create         do not create output files
1297      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1298
1299Installation directories:
1300  --prefix=PREFIX         install architecture-independent files in PREFIX
1301			  [$ac_default_prefix]
1302  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1303			  [PREFIX]
1304
1305By default, \`make install' will install all the files in
1306\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1307an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308for instance \`--prefix=\$HOME'.
1309
1310For better control, use the options below.
1311
1312Fine tuning of the installation directories:
1313  --bindir=DIR           user executables [EPREFIX/bin]
1314  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1315  --libexecdir=DIR       program executables [EPREFIX/libexec]
1316  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1317  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1318  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1319  --libdir=DIR           object code libraries [EPREFIX/lib]
1320  --includedir=DIR       C header files [PREFIX/include]
1321  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1322  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1323  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1324  --infodir=DIR          info documentation [DATAROOTDIR/info]
1325  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1326  --mandir=DIR           man documentation [DATAROOTDIR/man]
1327  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1328  --htmldir=DIR          html documentation [DOCDIR]
1329  --dvidir=DIR           dvi documentation [DOCDIR]
1330  --pdfdir=DIR           pdf documentation [DOCDIR]
1331  --psdir=DIR            ps documentation [DOCDIR]
1332_ACEOF
1333
1334  cat <<\_ACEOF
1335
1336Program names:
1337  --program-prefix=PREFIX            prepend PREFIX to installed program names
1338  --program-suffix=SUFFIX            append SUFFIX to installed program names
1339  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1340
1341X features:
1342  --x-includes=DIR    X include files are in DIR
1343  --x-libraries=DIR   X library files are in DIR
1344
1345System types:
1346  --build=BUILD     configure for building on BUILD [guessed]
1347  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1348  --target=TARGET   configure for building compilers for TARGET [HOST]
1349_ACEOF
1350fi
1351
1352if test -n "$ac_init_help"; then
1353
1354  cat <<\_ACEOF
1355
1356Optional Features:
1357  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1358  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1359  --enable-maintainer-mode  enable make rules and dependencies not useful
1360			  (and sometimes confusing) to the casual installer
1361  --disable-gdbcli        disable command-line interface (CLI)
1362  --disable-gdbmi         disable machine-interface (MI)
1363  --enable-tui            enable full-screen terminal user interface (TUI)
1364  --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1365  --enable-profiling      enable profiling of GDB
1366  --enable-build-warnings Enable build-time compiler warnings if gcc is used
1367  --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
1368  --enable-sim            Link gdb with simulator
1369  --enable-multi-ice      build the multi-ice-gdb-server
1370
1371Optional Packages:
1372  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1373  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1374  --with-separate-debug-dir=path   Look for global separate debug info in this path LIBDIR/debug
1375  --with-libunwind            Use libunwind frame unwinding support
1376  --without-included-regex don't use included regex; this is the default
1377                          on systems with version 2 of the GNU C library
1378                          (use with caution on other system)
1379  --with-sysroot=DIR Search for usr/lib et al within DIR.
1380  --with-tclconfig=DIR    Directory containing tcl configuration (tclConfig.sh)
1381  --with-tkconfig=DIR     Directory containing tk configuration (tkConfig.sh)
1382  --with-tclinclude=DIR   Directory where tcl private headers are
1383  --with-tkinclude=DIR    Directory where tk private headers are
1384  --with-itclconfig       Directory containing itcl configuration (itclConfig.sh)
1385  --with-itkconfig        Directory containing itk configuration (itkConfig.sh)
1386  --with-x                use the X Window System
1387  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1388
1389Some influential environment variables:
1390  CC          C compiler command
1391  CFLAGS      C compiler flags
1392  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1393              nonstandard directory <lib dir>
1394  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1395              you have headers in a nonstandard directory <include dir>
1396  CPP         C preprocessor
1397  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1398              the first program found out of: `bison -y', `byacc', `yacc'.
1399  YFLAGS      The list of arguments that will be passed by default to $YACC.
1400              This script will default YFLAGS to the empty string to avoid a
1401              default value of `-d' given by some make applications.
1402  XMKMF       Path to xmkmf, Makefile generator for X Window System
1403
1404Use these variables to override the choices made by `configure' or to help
1405it to find libraries and programs with nonstandard names/locations.
1406
1407_ACEOF
1408ac_status=$?
1409fi
1410
1411if test "$ac_init_help" = "recursive"; then
1412  # If there are subdirs, report their specific --help.
1413  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414    test -d "$ac_dir" || continue
1415    ac_builddir=.
1416
1417case "$ac_dir" in
1418.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419*)
1420  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1421  # A ".." for each directory in $ac_dir_suffix.
1422  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1423  case $ac_top_builddir_sub in
1424  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426  esac ;;
1427esac
1428ac_abs_top_builddir=$ac_pwd
1429ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430# for backward compatibility:
1431ac_top_builddir=$ac_top_build_prefix
1432
1433case $srcdir in
1434  .)  # We are building in place.
1435    ac_srcdir=.
1436    ac_top_srcdir=$ac_top_builddir_sub
1437    ac_abs_top_srcdir=$ac_pwd ;;
1438  [\\/]* | ?:[\\/]* )  # Absolute name.
1439    ac_srcdir=$srcdir$ac_dir_suffix;
1440    ac_top_srcdir=$srcdir
1441    ac_abs_top_srcdir=$srcdir ;;
1442  *) # Relative name.
1443    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444    ac_top_srcdir=$ac_top_build_prefix$srcdir
1445    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1446esac
1447ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1448
1449    cd "$ac_dir" || { ac_status=$?; continue; }
1450    # Check for guested configure.
1451    if test -f "$ac_srcdir/configure.gnu"; then
1452      echo &&
1453      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454    elif test -f "$ac_srcdir/configure"; then
1455      echo &&
1456      $SHELL "$ac_srcdir/configure" --help=recursive
1457    else
1458      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1459    fi || ac_status=$?
1460    cd "$ac_pwd" || { ac_status=$?; break; }
1461  done
1462fi
1463
1464test -n "$ac_init_help" && exit $ac_status
1465if $ac_init_version; then
1466  cat <<\_ACEOF
1467configure
1468generated by GNU Autoconf 2.60-MirPorts-2
1469
1470Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1472This configure script is free software; the Free Software Foundation
1473gives unlimited permission to copy, distribute and modify it.
1474_ACEOF
1475  exit
1476fi
1477cat >config.log <<_ACEOF
1478This file contains any messages produced by compilers while
1479running configure, to aid debugging if configure makes a mistake.
1480
1481It was created by $as_me, which was
1482generated by GNU Autoconf 2.60-MirPorts-2.  Invocation command line was
1483
1484  $ $0 $@
1485
1486_ACEOF
1487exec 5>>config.log
1488{
1489cat <<_ASUNAME
1490## --------- ##
1491## Platform. ##
1492## --------- ##
1493
1494hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1495uname -m = `(uname -m) 2>/dev/null || echo unknown`
1496uname -r = `(uname -r) 2>/dev/null || echo unknown`
1497uname -s = `(uname -s) 2>/dev/null || echo unknown`
1498uname -v = `(uname -v) 2>/dev/null || echo unknown`
1499
1500/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1501/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1502
1503/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1504/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1505/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1506/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1507/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1508/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1509/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1510
1511_ASUNAME
1512
1513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514for as_dir in $PATH
1515do
1516  IFS=$as_save_IFS
1517  test -z "$as_dir" && as_dir=.
1518  echo "PATH: $as_dir"
1519done
1520IFS=$as_save_IFS
1521
1522} >&5
1523
1524cat >&5 <<_ACEOF
1525
1526
1527## ----------- ##
1528## Core tests. ##
1529## ----------- ##
1530
1531_ACEOF
1532
1533
1534# Keep a trace of the command line.
1535# Strip out --no-create and --no-recursion so they do not pile up.
1536# Strip out --silent because we don't want to record it for future runs.
1537# Also quote any args containing shell meta-characters.
1538# Make two passes to allow for proper duplicate-argument suppression.
1539ac_configure_args=
1540ac_configure_args0=
1541ac_configure_args1=
1542ac_must_keep_next=false
1543for ac_pass in 1 2
1544do
1545  for ac_arg
1546  do
1547    case $ac_arg in
1548    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1549    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1550    | -silent | --silent | --silen | --sile | --sil)
1551      continue ;;
1552    *\'*)
1553      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1554    esac
1555    case $ac_pass in
1556    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1557    2)
1558      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1559      if test $ac_must_keep_next = true; then
1560	ac_must_keep_next=false # Got value, back to normal.
1561      else
1562	case $ac_arg in
1563	  *=* | --config-cache | -C | -disable-* | --disable-* \
1564	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1565	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1566	  | -with-* | --with-* | -without-* | --without-* | --x)
1567	    case "$ac_configure_args0 " in
1568	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1569	    esac
1570	    ;;
1571	  -* ) ac_must_keep_next=true ;;
1572	esac
1573      fi
1574      ac_configure_args="$ac_configure_args '$ac_arg'"
1575      ;;
1576    esac
1577  done
1578done
1579$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1580$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1581
1582# When interrupted or exit'd, cleanup temporary files, and complete
1583# config.log.  We remove comments because anyway the quotes in there
1584# would cause problems or look ugly.
1585# WARNING: Use '\'' to represent an apostrophe within the trap.
1586# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1587trap 'exit_status=$?
1588  # Save into config.log some information that might help in debugging.
1589  {
1590    echo
1591
1592    cat <<\_ASBOX
1593## ---------------- ##
1594## Cache variables. ##
1595## ---------------- ##
1596_ASBOX
1597    echo
1598    # The following way of writing the cache mishandles newlines in values,
1599(
1600  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1601    eval ac_val=\$$ac_var
1602    case $ac_val in #(
1603    *${as_nl}*)
1604      case $ac_var in #(
1605      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1606echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1607      esac
1608      case $ac_var in #(
1609      _ | IFS | as_nl) ;; #(
1610      *) $as_unset $ac_var ;;
1611      esac ;;
1612    esac
1613  done
1614  (set) 2>&1 |
1615    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1616    *${as_nl}ac_space=\ *)
1617      sed -n \
1618	"s/'\''/'\''\\\\'\'''\''/g;
1619	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1620      ;; #(
1621    *)
1622      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1623      ;;
1624    esac |
1625    sort
1626)
1627    echo
1628
1629    cat <<\_ASBOX
1630## ----------------- ##
1631## Output variables. ##
1632## ----------------- ##
1633_ASBOX
1634    echo
1635    for ac_var in $ac_subst_vars
1636    do
1637      eval ac_val=\$$ac_var
1638      case $ac_val in
1639      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640      esac
1641      echo "$ac_var='\''$ac_val'\''"
1642    done | sort
1643    echo
1644
1645    if test -n "$ac_subst_files"; then
1646      cat <<\_ASBOX
1647## ------------------- ##
1648## File substitutions. ##
1649## ------------------- ##
1650_ASBOX
1651      echo
1652      for ac_var in $ac_subst_files
1653      do
1654	eval ac_val=\$$ac_var
1655	case $ac_val in
1656	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1657	esac
1658	echo "$ac_var='\''$ac_val'\''"
1659      done | sort
1660      echo
1661    fi
1662
1663    if test -s confdefs.h; then
1664      cat <<\_ASBOX
1665## ----------- ##
1666## confdefs.h. ##
1667## ----------- ##
1668_ASBOX
1669      echo
1670      cat confdefs.h
1671      echo
1672    fi
1673    test "$ac_signal" != 0 &&
1674      echo "$as_me: caught signal $ac_signal"
1675    echo "$as_me: exit $exit_status"
1676  } >&5
1677  rm -f core *.core core.conftest.* &&
1678    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1679    exit $exit_status
1680' 0
1681for ac_signal in 1 2 13 15; do
1682  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1683done
1684ac_signal=0
1685
1686# confdefs.h avoids OS command line length limits that DEFS can exceed.
1687rm -f -r conftest* confdefs.h
1688
1689# Predefined preprocessor variables.
1690
1691cat >>confdefs.h <<_ACEOF
1692#define PACKAGE_NAME "$PACKAGE_NAME"
1693_ACEOF
1694
1695
1696cat >>confdefs.h <<_ACEOF
1697#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1698_ACEOF
1699
1700
1701cat >>confdefs.h <<_ACEOF
1702#define PACKAGE_VERSION "$PACKAGE_VERSION"
1703_ACEOF
1704
1705
1706cat >>confdefs.h <<_ACEOF
1707#define PACKAGE_STRING "$PACKAGE_STRING"
1708_ACEOF
1709
1710
1711cat >>confdefs.h <<_ACEOF
1712#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1713_ACEOF
1714
1715
1716# Let the site file select an alternate cache file if it wants to.
1717# Prefer explicitly selected file to automatically selected ones.
1718if test -n "$CONFIG_SITE"; then
1719  set x "$CONFIG_SITE"
1720elif test "x$prefix" != xNONE; then
1721  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1722else
1723  set x "$ac_default_prefix/share/config.site" \
1724	"$ac_default_prefix/etc/config.site"
1725fi
1726shift
1727for ac_site_file
1728do
1729  if test -r "$ac_site_file"; then
1730    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1731echo "$as_me: loading site script $ac_site_file" >&6;}
1732    sed 's/^/| /' "$ac_site_file" >&5
1733    . "$ac_site_file"
1734  fi
1735done
1736
1737if test -r "$cache_file"; then
1738  # Some versions of bash will fail to source /dev/null (special
1739  # files actually), so we avoid doing that.
1740  if test -f "$cache_file"; then
1741    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1742echo "$as_me: loading cache $cache_file" >&6;}
1743    case $cache_file in
1744      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1745      *)                      . "./$cache_file";;
1746    esac
1747  fi
1748else
1749  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1750echo "$as_me: creating cache $cache_file" >&6;}
1751  >$cache_file
1752fi
1753
1754# Check that the precious variables saved in the cache have kept the same
1755# value.
1756ac_cache_corrupted=false
1757for ac_var in $ac_precious_vars; do
1758  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1759  eval ac_new_set=\$ac_env_${ac_var}_set
1760  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1761  eval ac_new_val=\$ac_env_${ac_var}_value
1762  case $ac_old_set,$ac_new_set in
1763    set,)
1764      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1765echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1766      ac_cache_corrupted=: ;;
1767    ,set)
1768      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1769echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1770      ac_cache_corrupted=: ;;
1771    ,);;
1772    *)
1773      if test "x$ac_old_val" != "x$ac_new_val"; then
1774	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1775echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1776	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1777echo "$as_me:   former value:  $ac_old_val" >&2;}
1778	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1779echo "$as_me:   current value: $ac_new_val" >&2;}
1780	ac_cache_corrupted=:
1781      fi;;
1782  esac
1783  # Pass precious variables to config.status.
1784  if test "$ac_new_set" = set; then
1785    case $ac_new_val in
1786    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1787    *) ac_arg=$ac_var=$ac_new_val ;;
1788    esac
1789    case " $ac_configure_args " in
1790      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1791      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1792    esac
1793  fi
1794done
1795if $ac_cache_corrupted; then
1796  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1797echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1798  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1799echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1800   { (exit 1); exit 1; }; }
1801fi
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819ac_ext=c
1820ac_cpp='$CPP $CPPFLAGS'
1821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824
1825
1826ac_config_headers="$ac_config_headers config.h:config.in"
1827
1828{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1829echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1830    # Check whether --enable-maintainer-mode was given.
1831if test "${enable_maintainer_mode+set}" = set; then
1832  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1833else
1834  USE_MAINTAINER_MODE=no
1835fi
1836
1837  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1838echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1839
1840
1841if test $USE_MAINTAINER_MODE = yes; then
1842  MAINTAINER_MODE_TRUE=
1843  MAINTAINER_MODE_FALSE='#'
1844else
1845  MAINTAINER_MODE_TRUE='#'
1846  MAINTAINER_MODE_FALSE=
1847fi
1848
1849  MAINT=$MAINTAINER_MODE_TRUE
1850
1851
1852
1853ac_ext=c
1854ac_cpp='$CPP $CPPFLAGS'
1855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1857ac_compiler_gnu=$ac_cv_c_compiler_gnu
1858if test -n "$ac_tool_prefix"; then
1859  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1860set dummy ${ac_tool_prefix}gcc; ac_word=$2
1861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1863if test "${ac_cv_prog_CC+set}" = set; then
1864  echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866  if test -n "$CC"; then
1867  ac_cv_prog_CC="$CC" # Let the user override the test.
1868else
1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870for as_dir in $PATH
1871do
1872  IFS=$as_save_IFS
1873  test -z "$as_dir" && as_dir=.
1874  for ac_exec_ext in '' $ac_executable_extensions; do
1875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1876    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878    break 2
1879  fi
1880done
1881done
1882IFS=$as_save_IFS
1883
1884fi
1885fi
1886CC=$ac_cv_prog_CC
1887if test -n "$CC"; then
1888  { echo "$as_me:$LINENO: result: $CC" >&5
1889echo "${ECHO_T}$CC" >&6; }
1890else
1891  { echo "$as_me:$LINENO: result: no" >&5
1892echo "${ECHO_T}no" >&6; }
1893fi
1894
1895
1896fi
1897if test -z "$ac_cv_prog_CC"; then
1898  ac_ct_CC=$CC
1899  # Extract the first word of "gcc", so it can be a program name with args.
1900set dummy gcc; ac_word=$2
1901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1903if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1904  echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
1906  if test -n "$ac_ct_CC"; then
1907  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1908else
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
1912  IFS=$as_save_IFS
1913  test -z "$as_dir" && as_dir=.
1914  for ac_exec_ext in '' $ac_executable_extensions; do
1915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1916    ac_cv_prog_ac_ct_CC="gcc"
1917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918    break 2
1919  fi
1920done
1921done
1922IFS=$as_save_IFS
1923
1924fi
1925fi
1926ac_ct_CC=$ac_cv_prog_ac_ct_CC
1927if test -n "$ac_ct_CC"; then
1928  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1929echo "${ECHO_T}$ac_ct_CC" >&6; }
1930else
1931  { echo "$as_me:$LINENO: result: no" >&5
1932echo "${ECHO_T}no" >&6; }
1933fi
1934
1935  if test "x$ac_ct_CC" = x; then
1936    CC=""
1937  else
1938    case $cross_compiling:$ac_tool_warned in
1939yes:)
1940{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1941whose name does not start with the host triplet.  If you think this
1942configuration is useful to you, please write to autoconf@gnu.org." >&5
1943echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1944whose name does not start with the host triplet.  If you think this
1945configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1946ac_tool_warned=yes ;;
1947esac
1948    CC=$ac_ct_CC
1949  fi
1950else
1951  CC="$ac_cv_prog_CC"
1952fi
1953
1954if test -z "$CC"; then
1955          if test -n "$ac_tool_prefix"; then
1956    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1957set dummy ${ac_tool_prefix}cc; ac_word=$2
1958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1960if test "${ac_cv_prog_CC+set}" = set; then
1961  echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963  if test -n "$CC"; then
1964  ac_cv_prog_CC="$CC" # Let the user override the test.
1965else
1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967for as_dir in $PATH
1968do
1969  IFS=$as_save_IFS
1970  test -z "$as_dir" && as_dir=.
1971  for ac_exec_ext in '' $ac_executable_extensions; do
1972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1973    ac_cv_prog_CC="${ac_tool_prefix}cc"
1974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975    break 2
1976  fi
1977done
1978done
1979IFS=$as_save_IFS
1980
1981fi
1982fi
1983CC=$ac_cv_prog_CC
1984if test -n "$CC"; then
1985  { echo "$as_me:$LINENO: result: $CC" >&5
1986echo "${ECHO_T}$CC" >&6; }
1987else
1988  { echo "$as_me:$LINENO: result: no" >&5
1989echo "${ECHO_T}no" >&6; }
1990fi
1991
1992
1993  fi
1994fi
1995if test -z "$CC"; then
1996  # Extract the first word of "cc", so it can be a program name with args.
1997set dummy cc; ac_word=$2
1998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000if test "${ac_cv_prog_CC+set}" = set; then
2001  echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003  if test -n "$CC"; then
2004  ac_cv_prog_CC="$CC" # Let the user override the test.
2005else
2006  ac_prog_rejected=no
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010  IFS=$as_save_IFS
2011  test -z "$as_dir" && as_dir=.
2012  for ac_exec_ext in '' $ac_executable_extensions; do
2013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2014    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015       ac_prog_rejected=yes
2016       continue
2017     fi
2018    ac_cv_prog_CC="cc"
2019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020    break 2
2021  fi
2022done
2023done
2024IFS=$as_save_IFS
2025
2026if test $ac_prog_rejected = yes; then
2027  # We found a bogon in the path, so make sure we never use it.
2028  set dummy $ac_cv_prog_CC
2029  shift
2030  if test $# != 0; then
2031    # We chose a different compiler from the bogus one.
2032    # However, it has the same basename, so the bogon will be chosen
2033    # first if we set CC to just the basename; use the full file name.
2034    shift
2035    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2036  fi
2037fi
2038fi
2039fi
2040CC=$ac_cv_prog_CC
2041if test -n "$CC"; then
2042  { echo "$as_me:$LINENO: result: $CC" >&5
2043echo "${ECHO_T}$CC" >&6; }
2044else
2045  { echo "$as_me:$LINENO: result: no" >&5
2046echo "${ECHO_T}no" >&6; }
2047fi
2048
2049
2050fi
2051if test -z "$CC"; then
2052  if test -n "$ac_tool_prefix"; then
2053  for ac_prog in cl.exe
2054  do
2055    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2056set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2057{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059if test "${ac_cv_prog_CC+set}" = set; then
2060  echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062  if test -n "$CC"; then
2063  ac_cv_prog_CC="$CC" # Let the user override the test.
2064else
2065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066for as_dir in $PATH
2067do
2068  IFS=$as_save_IFS
2069  test -z "$as_dir" && as_dir=.
2070  for ac_exec_ext in '' $ac_executable_extensions; do
2071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2072    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074    break 2
2075  fi
2076done
2077done
2078IFS=$as_save_IFS
2079
2080fi
2081fi
2082CC=$ac_cv_prog_CC
2083if test -n "$CC"; then
2084  { echo "$as_me:$LINENO: result: $CC" >&5
2085echo "${ECHO_T}$CC" >&6; }
2086else
2087  { echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6; }
2089fi
2090
2091
2092    test -n "$CC" && break
2093  done
2094fi
2095if test -z "$CC"; then
2096  ac_ct_CC=$CC
2097  for ac_prog in cl.exe
2098do
2099  # Extract the first word of "$ac_prog", so it can be a program name with args.
2100set dummy $ac_prog; ac_word=$2
2101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2103if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104  echo $ECHO_N "(cached) $ECHO_C" >&6
2105else
2106  if test -n "$ac_ct_CC"; then
2107  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2108else
2109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110for as_dir in $PATH
2111do
2112  IFS=$as_save_IFS
2113  test -z "$as_dir" && as_dir=.
2114  for ac_exec_ext in '' $ac_executable_extensions; do
2115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2116    ac_cv_prog_ac_ct_CC="$ac_prog"
2117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118    break 2
2119  fi
2120done
2121done
2122IFS=$as_save_IFS
2123
2124fi
2125fi
2126ac_ct_CC=$ac_cv_prog_ac_ct_CC
2127if test -n "$ac_ct_CC"; then
2128  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2129echo "${ECHO_T}$ac_ct_CC" >&6; }
2130else
2131  { echo "$as_me:$LINENO: result: no" >&5
2132echo "${ECHO_T}no" >&6; }
2133fi
2134
2135
2136  test -n "$ac_ct_CC" && break
2137done
2138
2139  if test "x$ac_ct_CC" = x; then
2140    CC=""
2141  else
2142    case $cross_compiling:$ac_tool_warned in
2143yes:)
2144{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2145whose name does not start with the host triplet.  If you think this
2146configuration is useful to you, please write to autoconf@gnu.org." >&5
2147echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2148whose name does not start with the host triplet.  If you think this
2149configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2150ac_tool_warned=yes ;;
2151esac
2152    CC=$ac_ct_CC
2153  fi
2154fi
2155
2156fi
2157
2158
2159test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2160See \`config.log' for more details." >&5
2161echo "$as_me: error: no acceptable C compiler found in \$PATH
2162See \`config.log' for more details." >&2;}
2163   { (exit 1); exit 1; }; }
2164
2165# Provide some information about the compiler.
2166echo "$as_me:$LINENO: checking for C compiler version" >&5
2167ac_compiler=`set X $ac_compile; echo $2`
2168{ (ac_try="$ac_compiler --version >&5"
2169case "(($ac_try" in
2170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171  *) ac_try_echo=$ac_try;;
2172esac
2173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2174  (eval "$ac_compiler --version >&5") 2>&5
2175  ac_status=$?
2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177  (exit $ac_status); }
2178{ (ac_try="$ac_compiler -v >&5"
2179case "(($ac_try" in
2180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181  *) ac_try_echo=$ac_try;;
2182esac
2183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184  (eval "$ac_compiler -v >&5") 2>&5
2185  ac_status=$?
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); }
2188{ (ac_try="$ac_compiler -V >&5"
2189case "(($ac_try" in
2190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191  *) ac_try_echo=$ac_try;;
2192esac
2193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194  (eval "$ac_compiler -V >&5") 2>&5
2195  ac_status=$?
2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197  (exit $ac_status); }
2198
2199cat >conftest.$ac_ext <<_ACEOF
2200/* confdefs.h.  */
2201_ACEOF
2202cat confdefs.h >>conftest.$ac_ext
2203cat >>conftest.$ac_ext <<_ACEOF
2204/* end confdefs.h.  */
2205
2206int
2207main ()
2208{
2209
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214ac_clean_files_save=$ac_clean_files
2215ac_clean_files="$ac_clean_files a.out a.exe b.out"
2216# Try to create an executable without -o first, disregard a.out.
2217# It will help us diagnose broken compilers, and finding out an intuition
2218# of exeext.
2219{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2220echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2221ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2222#
2223# List of possible output files, starting from the most likely.
2224# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2225# only as a last resort.  b.out is created by i960 compilers.
2226ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2227#
2228# The IRIX 6 linker writes into existing files which may not be
2229# executable, retaining their permissions.  Remove them first so a
2230# subsequent execution test works.
2231ac_rmfiles=
2232for ac_file in $ac_files
2233do
2234  case $ac_file in
2235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2236    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2237  esac
2238done
2239rm -f $ac_rmfiles
2240
2241if { (ac_try="$ac_link_default"
2242case "(($ac_try" in
2243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2244  *) ac_try_echo=$ac_try;;
2245esac
2246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2247  (eval "$ac_link_default") 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }; then
2251  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2252# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2253# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2254# so that the user can short-circuit this test for compilers unknown to
2255# Autoconf.
2256for ac_file in $ac_files
2257do
2258  test -f "$ac_file" || continue
2259  case $ac_file in
2260    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2261	;;
2262    [ab].out )
2263	# We found the default executable, but exeext='' is most
2264	# certainly right.
2265	break;;
2266    *.* )
2267        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2268	then :; else
2269	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270	fi
2271	# We set ac_cv_exeext here because the later test for it is not
2272	# safe: cross compilers may not add the suffix if given an `-o'
2273	# argument, so we may need to know it at that point already.
2274	# Even if this section looks crufty: it has the advantage of
2275	# actually working.
2276	break;;
2277    * )
2278	break;;
2279  esac
2280done
2281test "$ac_cv_exeext" = no && ac_cv_exeext=
2282
2283else
2284  echo "$as_me: failed program was:" >&5
2285sed 's/^/| /' conftest.$ac_ext >&5
2286
2287{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2288See \`config.log' for more details." >&5
2289echo "$as_me: error: C compiler cannot create executables
2290See \`config.log' for more details." >&2;}
2291   { (exit 77); exit 77; }; }
2292fi
2293
2294ac_exeext=$ac_cv_exeext
2295{ echo "$as_me:$LINENO: result: $ac_file" >&5
2296echo "${ECHO_T}$ac_file" >&6; }
2297
2298# Check that the compiler produces executables we can run.  If not, either
2299# the compiler is broken, or we cross compile.
2300{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2301echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2302# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2303# If not cross compiling, check that we can run a simple program.
2304if test "$cross_compiling" != yes; then
2305  if { ac_try='./$ac_file'
2306  { (case "(($ac_try" in
2307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308  *) ac_try_echo=$ac_try;;
2309esac
2310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311  (eval "$ac_try") 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; }; then
2315    cross_compiling=no
2316  else
2317    if test "$cross_compiling" = maybe; then
2318	cross_compiling=yes
2319    else
2320	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2321If you meant to cross compile, use \`--host'.
2322See \`config.log' for more details." >&5
2323echo "$as_me: error: cannot run C compiled programs.
2324If you meant to cross compile, use \`--host'.
2325See \`config.log' for more details." >&2;}
2326   { (exit 1); exit 1; }; }
2327    fi
2328  fi
2329fi
2330{ echo "$as_me:$LINENO: result: yes" >&5
2331echo "${ECHO_T}yes" >&6; }
2332
2333rm -f a.out a.exe conftest$ac_cv_exeext b.out
2334ac_clean_files=$ac_clean_files_save
2335# Check that the compiler produces executables we can run.  If not, either
2336# the compiler is broken, or we cross compile.
2337{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2338echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2339{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2340echo "${ECHO_T}$cross_compiling" >&6; }
2341
2342{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2343echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2344if { (ac_try="$ac_link"
2345case "(($ac_try" in
2346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347  *) ac_try_echo=$ac_try;;
2348esac
2349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350  (eval "$ac_link") 2>&5
2351  ac_status=$?
2352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353  (exit $ac_status); }; then
2354  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2355# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2356# work properly (i.e., refer to `conftest.exe'), while it won't with
2357# `rm'.
2358for ac_file in conftest.exe conftest conftest.*; do
2359  test -f "$ac_file" || continue
2360  case $ac_file in
2361    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2362    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2363	  break;;
2364    * ) break;;
2365  esac
2366done
2367else
2368  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2369See \`config.log' for more details." >&5
2370echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2371See \`config.log' for more details." >&2;}
2372   { (exit 1); exit 1; }; }
2373fi
2374
2375rm -f conftest$ac_cv_exeext
2376{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2377echo "${ECHO_T}$ac_cv_exeext" >&6; }
2378
2379rm -f conftest.$ac_ext
2380EXEEXT=$ac_cv_exeext
2381ac_exeext=$EXEEXT
2382{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2383echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2384if test "${ac_cv_objext+set}" = set; then
2385  echo $ECHO_N "(cached) $ECHO_C" >&6
2386else
2387  cat >conftest.$ac_ext <<_ACEOF
2388/* confdefs.h.  */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h.  */
2393
2394int
2395main ()
2396{
2397
2398  ;
2399  return 0;
2400}
2401_ACEOF
2402rm -f conftest.o conftest.obj
2403if { (ac_try="$ac_compile"
2404case "(($ac_try" in
2405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406  *) ac_try_echo=$ac_try;;
2407esac
2408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409  (eval "$ac_compile") 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; then
2413  for ac_file in conftest.o conftest.obj conftest.*; do
2414  test -f "$ac_file" || continue;
2415  case $ac_file in
2416    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2417    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2418       break;;
2419  esac
2420done
2421else
2422  echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2426See \`config.log' for more details." >&5
2427echo "$as_me: error: cannot compute suffix of object files: cannot compile
2428See \`config.log' for more details." >&2;}
2429   { (exit 1); exit 1; }; }
2430fi
2431
2432rm -f conftest.$ac_cv_objext conftest.$ac_ext
2433fi
2434{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2435echo "${ECHO_T}$ac_cv_objext" >&6; }
2436OBJEXT=$ac_cv_objext
2437ac_objext=$OBJEXT
2438{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2439echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2440if test "${ac_cv_c_compiler_gnu+set}" = set; then
2441  echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
2443  cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h.  */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
2448/* end confdefs.h.  */
2449
2450int
2451main ()
2452{
2453#ifndef __GNUC__
2454       choke me
2455#endif
2456
2457  ;
2458  return 0;
2459}
2460_ACEOF
2461rm -f conftest.$ac_objext
2462if { (ac_try="$ac_compile"
2463case "(($ac_try" in
2464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465  *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468  (eval "$ac_compile") 2>conftest.er1
2469  ac_status=$?
2470  grep -v '^ *+' conftest.er1 >conftest.err
2471  rm -f conftest.er1
2472  cat conftest.err >&5
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); } &&
2475	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476  { (case "(($ac_try" in
2477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478  *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481  (eval "$ac_try") 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); }; } &&
2485	 { ac_try='test -s conftest.$ac_objext'
2486  { (case "(($ac_try" in
2487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488  *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491  (eval "$ac_try") 2>&5
2492  ac_status=$?
2493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494  (exit $ac_status); }; }; then
2495  ac_compiler_gnu=yes
2496else
2497  echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500	ac_compiler_gnu=no
2501fi
2502
2503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2504ac_cv_c_compiler_gnu=$ac_compiler_gnu
2505
2506fi
2507{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2508echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2509GCC=`test $ac_compiler_gnu = yes && echo yes`
2510ac_test_CFLAGS=${CFLAGS+set}
2511ac_save_CFLAGS=$CFLAGS
2512{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2513echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2514if test "${ac_cv_prog_cc_g+set}" = set; then
2515  echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517  ac_save_c_werror_flag=$ac_c_werror_flag
2518   ac_c_werror_flag=yes
2519   ac_cv_prog_cc_g=no
2520   CFLAGS="-g"
2521   cat >conftest.$ac_ext <<_ACEOF
2522/* confdefs.h.  */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h.  */
2527
2528int
2529main ()
2530{
2531
2532  ;
2533  return 0;
2534}
2535_ACEOF
2536rm -f conftest.$ac_objext
2537if { (ac_try="$ac_compile"
2538case "(($ac_try" in
2539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540  *) ac_try_echo=$ac_try;;
2541esac
2542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543  (eval "$ac_compile") 2>conftest.er1
2544  ac_status=$?
2545  grep -v '^ *+' conftest.er1 >conftest.err
2546  rm -f conftest.er1
2547  cat conftest.err >&5
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); } &&
2550	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551  { (case "(($ac_try" in
2552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553  *) ac_try_echo=$ac_try;;
2554esac
2555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556  (eval "$ac_try") 2>&5
2557  ac_status=$?
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); }; } &&
2560	 { ac_try='test -s conftest.$ac_objext'
2561  { (case "(($ac_try" in
2562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563  *) ac_try_echo=$ac_try;;
2564esac
2565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566  (eval "$ac_try") 2>&5
2567  ac_status=$?
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); }; }; then
2570  ac_cv_prog_cc_g=yes
2571else
2572  echo "$as_me: failed program was:" >&5
2573sed 's/^/| /' conftest.$ac_ext >&5
2574
2575	CFLAGS=""
2576      cat >conftest.$ac_ext <<_ACEOF
2577/* confdefs.h.  */
2578_ACEOF
2579cat confdefs.h >>conftest.$ac_ext
2580cat >>conftest.$ac_ext <<_ACEOF
2581/* end confdefs.h.  */
2582
2583int
2584main ()
2585{
2586
2587  ;
2588  return 0;
2589}
2590_ACEOF
2591rm -f conftest.$ac_objext
2592if { (ac_try="$ac_compile"
2593case "(($ac_try" in
2594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595  *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598  (eval "$ac_compile") 2>conftest.er1
2599  ac_status=$?
2600  grep -v '^ *+' conftest.er1 >conftest.err
2601  rm -f conftest.er1
2602  cat conftest.err >&5
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); } &&
2605	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606  { (case "(($ac_try" in
2607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608  *) ac_try_echo=$ac_try;;
2609esac
2610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611  (eval "$ac_try") 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; } &&
2615	 { ac_try='test -s conftest.$ac_objext'
2616  { (case "(($ac_try" in
2617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618  *) ac_try_echo=$ac_try;;
2619esac
2620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621  (eval "$ac_try") 2>&5
2622  ac_status=$?
2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624  (exit $ac_status); }; }; then
2625  :
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630	ac_c_werror_flag=$ac_save_c_werror_flag
2631	 CFLAGS="-g"
2632	 cat >conftest.$ac_ext <<_ACEOF
2633/* confdefs.h.  */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
2637/* end confdefs.h.  */
2638
2639int
2640main ()
2641{
2642
2643  ;
2644  return 0;
2645}
2646_ACEOF
2647rm -f conftest.$ac_objext
2648if { (ac_try="$ac_compile"
2649case "(($ac_try" in
2650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651  *) ac_try_echo=$ac_try;;
2652esac
2653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654  (eval "$ac_compile") 2>conftest.er1
2655  ac_status=$?
2656  grep -v '^ *+' conftest.er1 >conftest.err
2657  rm -f conftest.er1
2658  cat conftest.err >&5
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); } &&
2661	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2662  { (case "(($ac_try" in
2663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664  *) ac_try_echo=$ac_try;;
2665esac
2666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667  (eval "$ac_try") 2>&5
2668  ac_status=$?
2669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670  (exit $ac_status); }; } &&
2671	 { ac_try='test -s conftest.$ac_objext'
2672  { (case "(($ac_try" in
2673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674  *) ac_try_echo=$ac_try;;
2675esac
2676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677  (eval "$ac_try") 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; }; then
2681  ac_cv_prog_cc_g=yes
2682else
2683  echo "$as_me: failed program was:" >&5
2684sed 's/^/| /' conftest.$ac_ext >&5
2685
2686
2687fi
2688
2689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690fi
2691
2692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2693fi
2694
2695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696   ac_c_werror_flag=$ac_save_c_werror_flag
2697fi
2698{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2699echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2700if test "$ac_test_CFLAGS" = set; then
2701  CFLAGS=$ac_save_CFLAGS
2702elif test $ac_cv_prog_cc_g = yes; then
2703  if test "$GCC" = yes; then
2704    CFLAGS="-g -O2"
2705  else
2706    CFLAGS="-g"
2707  fi
2708else
2709  if test "$GCC" = yes; then
2710    CFLAGS="-O2"
2711  else
2712    CFLAGS=
2713  fi
2714fi
2715{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2716echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2717if test "${ac_cv_prog_cc_c89+set}" = set; then
2718  echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720  ac_cv_prog_cc_c89=no
2721ac_save_CC=$CC
2722cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h.  */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h.  */
2728#include <stdarg.h>
2729#include <stdio.h>
2730#include <sys/types.h>
2731#include <sys/stat.h>
2732/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2733struct buf { int x; };
2734FILE * (*rcsopen) (struct buf *, struct stat *, int);
2735static char *e (p, i)
2736     char **p;
2737     int i;
2738{
2739  return p[i];
2740}
2741static char *f (char * (*g) (char **, int), char **p, ...)
2742{
2743  char *s;
2744  va_list v;
2745  va_start (v,p);
2746  s = g (p, va_arg (v,int));
2747  va_end (v);
2748  return s;
2749}
2750
2751/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2752   function prototypes and stuff, but not '\xHH' hex character constants.
2753   These don't provoke an error unfortunately, instead are silently treated
2754   as 'x'.  The following induces an error, until -std is added to get
2755   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2756   array size at least.  It's necessary to write '\x00'==0 to get something
2757   that's true only with -std.  */
2758int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2759
2760/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2761   inside strings and character constants.  */
2762#define FOO(x) 'x'
2763int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2764
2765int test (int i, double x);
2766struct s1 {int (*f) (int a);};
2767struct s2 {int (*f) (double a);};
2768int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2769int argc;
2770char **argv;
2771int
2772main ()
2773{
2774return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2775  ;
2776  return 0;
2777}
2778_ACEOF
2779for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2780	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2781do
2782  CC="$ac_save_CC $ac_arg"
2783  rm -f conftest.$ac_objext
2784if { (ac_try="$ac_compile"
2785case "(($ac_try" in
2786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787  *) ac_try_echo=$ac_try;;
2788esac
2789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790  (eval "$ac_compile") 2>conftest.er1
2791  ac_status=$?
2792  grep -v '^ *+' conftest.er1 >conftest.err
2793  rm -f conftest.er1
2794  cat conftest.err >&5
2795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796  (exit $ac_status); } &&
2797	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2798  { (case "(($ac_try" in
2799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800  *) ac_try_echo=$ac_try;;
2801esac
2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803  (eval "$ac_try") 2>&5
2804  ac_status=$?
2805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806  (exit $ac_status); }; } &&
2807	 { ac_try='test -s conftest.$ac_objext'
2808  { (case "(($ac_try" in
2809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810  *) ac_try_echo=$ac_try;;
2811esac
2812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813  (eval "$ac_try") 2>&5
2814  ac_status=$?
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); }; }; then
2817  ac_cv_prog_cc_c89=$ac_arg
2818else
2819  echo "$as_me: failed program was:" >&5
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
2822
2823fi
2824
2825rm -f core conftest.err conftest.$ac_objext
2826  test "x$ac_cv_prog_cc_c89" != "xno" && break
2827done
2828rm -f conftest.$ac_ext
2829CC=$ac_save_CC
2830
2831fi
2832# AC_CACHE_VAL
2833case "x$ac_cv_prog_cc_c89" in
2834  x)
2835    { echo "$as_me:$LINENO: result: none needed" >&5
2836echo "${ECHO_T}none needed" >&6; } ;;
2837  xno)
2838    { echo "$as_me:$LINENO: result: unsupported" >&5
2839echo "${ECHO_T}unsupported" >&6; } ;;
2840  *)
2841    CC="$CC $ac_cv_prog_cc_c89"
2842    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2843echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2844esac
2845
2846
2847ac_ext=c
2848ac_cpp='$CPP $CPPFLAGS'
2849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852
2853
2854cat >>confdefs.h <<\_ACEOF
2855#define _GNU_SOURCE 1
2856_ACEOF
2857
2858
2859
2860ac_ext=c
2861ac_cpp='$CPP $CPPFLAGS'
2862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2866echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2867# On Suns, sometimes $CPP names a directory.
2868if test -n "$CPP" && test -d "$CPP"; then
2869  CPP=
2870fi
2871if test -z "$CPP"; then
2872  if test "${ac_cv_prog_CPP+set}" = set; then
2873  echo $ECHO_N "(cached) $ECHO_C" >&6
2874else
2875      # Double quotes because CPP needs to be expanded
2876    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2877    do
2878      ac_preproc_ok=false
2879for ac_c_preproc_warn_flag in '' yes
2880do
2881  # Use a header file that comes with gcc, so configuring glibc
2882  # with a fresh cross-compiler works.
2883  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2884  # <limits.h> exists even on freestanding compilers.
2885  # On the NeXT, cc -E runs the code through the compiler's parser,
2886  # not just through cpp. "Syntax error" is here to catch this case.
2887  cat >conftest.$ac_ext <<_ACEOF
2888/* confdefs.h.  */
2889_ACEOF
2890cat confdefs.h >>conftest.$ac_ext
2891cat >>conftest.$ac_ext <<_ACEOF
2892/* end confdefs.h.  */
2893#ifdef __STDC__
2894# include <limits.h>
2895#else
2896# include <assert.h>
2897#endif
2898		     Syntax error
2899_ACEOF
2900if { (ac_try="$ac_cpp conftest.$ac_ext"
2901case "(($ac_try" in
2902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903  *) ac_try_echo=$ac_try;;
2904esac
2905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2907  ac_status=$?
2908  grep -v '^ *+' conftest.er1 >conftest.err
2909  rm -f conftest.er1
2910  cat conftest.err >&5
2911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912  (exit $ac_status); } >/dev/null; then
2913  if test -s conftest.err; then
2914    ac_cpp_err=$ac_c_preproc_warn_flag
2915    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2916  else
2917    ac_cpp_err=
2918  fi
2919else
2920  ac_cpp_err=yes
2921fi
2922if test -z "$ac_cpp_err"; then
2923  :
2924else
2925  echo "$as_me: failed program was:" >&5
2926sed 's/^/| /' conftest.$ac_ext >&5
2927
2928  # Broken: fails on valid input.
2929continue
2930fi
2931
2932rm -f conftest.err conftest.$ac_ext
2933
2934  # OK, works on sane cases.  Now check whether nonexistent headers
2935  # can be detected and how.
2936  cat >conftest.$ac_ext <<_ACEOF
2937/* confdefs.h.  */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h.  */
2942#include <ac_nonexistent.h>
2943_ACEOF
2944if { (ac_try="$ac_cpp conftest.$ac_ext"
2945case "(($ac_try" in
2946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947  *) ac_try_echo=$ac_try;;
2948esac
2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2951  ac_status=$?
2952  grep -v '^ *+' conftest.er1 >conftest.err
2953  rm -f conftest.er1
2954  cat conftest.err >&5
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); } >/dev/null; then
2957  if test -s conftest.err; then
2958    ac_cpp_err=$ac_c_preproc_warn_flag
2959    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960  else
2961    ac_cpp_err=
2962  fi
2963else
2964  ac_cpp_err=yes
2965fi
2966if test -z "$ac_cpp_err"; then
2967  # Broken: success on invalid input.
2968continue
2969else
2970  echo "$as_me: failed program was:" >&5
2971sed 's/^/| /' conftest.$ac_ext >&5
2972
2973  # Passes both tests.
2974ac_preproc_ok=:
2975break
2976fi
2977
2978rm -f conftest.err conftest.$ac_ext
2979
2980done
2981# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2982rm -f conftest.err conftest.$ac_ext
2983if $ac_preproc_ok; then
2984  break
2985fi
2986
2987    done
2988    ac_cv_prog_CPP=$CPP
2989
2990fi
2991  CPP=$ac_cv_prog_CPP
2992else
2993  ac_cv_prog_CPP=$CPP
2994fi
2995{ echo "$as_me:$LINENO: result: $CPP" >&5
2996echo "${ECHO_T}$CPP" >&6; }
2997ac_preproc_ok=false
2998for ac_c_preproc_warn_flag in '' yes
2999do
3000  # Use a header file that comes with gcc, so configuring glibc
3001  # with a fresh cross-compiler works.
3002  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3003  # <limits.h> exists even on freestanding compilers.
3004  # On the NeXT, cc -E runs the code through the compiler's parser,
3005  # not just through cpp. "Syntax error" is here to catch this case.
3006  cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h.  */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h.  */
3012#ifdef __STDC__
3013# include <limits.h>
3014#else
3015# include <assert.h>
3016#endif
3017		     Syntax error
3018_ACEOF
3019if { (ac_try="$ac_cpp conftest.$ac_ext"
3020case "(($ac_try" in
3021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022  *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3026  ac_status=$?
3027  grep -v '^ *+' conftest.er1 >conftest.err
3028  rm -f conftest.er1
3029  cat conftest.err >&5
3030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031  (exit $ac_status); } >/dev/null; then
3032  if test -s conftest.err; then
3033    ac_cpp_err=$ac_c_preproc_warn_flag
3034    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3035  else
3036    ac_cpp_err=
3037  fi
3038else
3039  ac_cpp_err=yes
3040fi
3041if test -z "$ac_cpp_err"; then
3042  :
3043else
3044  echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047  # Broken: fails on valid input.
3048continue
3049fi
3050
3051rm -f conftest.err conftest.$ac_ext
3052
3053  # OK, works on sane cases.  Now check whether nonexistent headers
3054  # can be detected and how.
3055  cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h.  */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h.  */
3061#include <ac_nonexistent.h>
3062_ACEOF
3063if { (ac_try="$ac_cpp conftest.$ac_ext"
3064case "(($ac_try" in
3065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066  *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3070  ac_status=$?
3071  grep -v '^ *+' conftest.er1 >conftest.err
3072  rm -f conftest.er1
3073  cat conftest.err >&5
3074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075  (exit $ac_status); } >/dev/null; then
3076  if test -s conftest.err; then
3077    ac_cpp_err=$ac_c_preproc_warn_flag
3078    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079  else
3080    ac_cpp_err=
3081  fi
3082else
3083  ac_cpp_err=yes
3084fi
3085if test -z "$ac_cpp_err"; then
3086  # Broken: success on invalid input.
3087continue
3088else
3089  echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092  # Passes both tests.
3093ac_preproc_ok=:
3094break
3095fi
3096
3097rm -f conftest.err conftest.$ac_ext
3098
3099done
3100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3101rm -f conftest.err conftest.$ac_ext
3102if $ac_preproc_ok; then
3103  :
3104else
3105  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3106See \`config.log' for more details." >&5
3107echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3108See \`config.log' for more details." >&2;}
3109   { (exit 1); exit 1; }; }
3110fi
3111
3112ac_ext=c
3113ac_cpp='$CPP $CPPFLAGS'
3114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117
3118
3119{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3120echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3121if test "${ac_cv_path_GREP+set}" = set; then
3122  echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124  # Extract the first word of "grep ggrep" to use in msg output
3125if test -z "$GREP"; then
3126set dummy grep ggrep; ac_prog_name=$2
3127if test "${ac_cv_path_GREP+set}" = set; then
3128  echo $ECHO_N "(cached) $ECHO_C" >&6
3129else
3130  ac_path_GREP_found=false
3131# Loop through the user's path and test for each of PROGNAME-LIST
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3134do
3135  IFS=$as_save_IFS
3136  test -z "$as_dir" && as_dir=.
3137  for ac_prog in grep ggrep; do
3138  for ac_exec_ext in '' $ac_executable_extensions; do
3139    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3140    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3141    # Check for GNU ac_path_GREP and select it if it is found.
3142  # Check for GNU $ac_path_GREP
3143case `"$ac_path_GREP" --version 2>&1` in
3144*GNU*)
3145  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3146*)
3147  ac_count=0
3148  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3149  while :
3150  do
3151    cat "conftest.in" "conftest.in" >"conftest.tmp"
3152    mv "conftest.tmp" "conftest.in"
3153    cp "conftest.in" "conftest.nl"
3154    echo 'GREP' >> "conftest.nl"
3155    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3156    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3157    ac_count=`expr $ac_count + 1`
3158    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3159      # Best one so far, save it but keep looking for a better one
3160      ac_cv_path_GREP="$ac_path_GREP"
3161      ac_path_GREP_max=$ac_count
3162    fi
3163    # 10*(2^10) chars as input seems more than enough
3164    test $ac_count -gt 10 && break
3165  done
3166  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3167esac
3168
3169
3170    $ac_path_GREP_found && break 3
3171  done
3172done
3173
3174done
3175IFS=$as_save_IFS
3176
3177
3178fi
3179
3180GREP="$ac_cv_path_GREP"
3181if test -z "$GREP"; then
3182  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3183echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3184   { (exit 1); exit 1; }; }
3185fi
3186
3187else
3188  ac_cv_path_GREP=$GREP
3189fi
3190
3191
3192fi
3193{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3194echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3195 GREP="$ac_cv_path_GREP"
3196
3197
3198{ echo "$as_me:$LINENO: checking for egrep" >&5
3199echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3200if test "${ac_cv_path_EGREP+set}" = set; then
3201  echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
3203  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3204   then ac_cv_path_EGREP="$GREP -E"
3205   else
3206     # Extract the first word of "egrep" to use in msg output
3207if test -z "$EGREP"; then
3208set dummy egrep; ac_prog_name=$2
3209if test "${ac_cv_path_EGREP+set}" = set; then
3210  echo $ECHO_N "(cached) $ECHO_C" >&6
3211else
3212  ac_path_EGREP_found=false
3213# Loop through the user's path and test for each of PROGNAME-LIST
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3216do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219  for ac_prog in egrep; do
3220  for ac_exec_ext in '' $ac_executable_extensions; do
3221    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3222    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3223    # Check for GNU ac_path_EGREP and select it if it is found.
3224  # Check for GNU $ac_path_EGREP
3225case `"$ac_path_EGREP" --version 2>&1` in
3226*GNU*)
3227  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3228*)
3229  ac_count=0
3230  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3231  while :
3232  do
3233    cat "conftest.in" "conftest.in" >"conftest.tmp"
3234    mv "conftest.tmp" "conftest.in"
3235    cp "conftest.in" "conftest.nl"
3236    echo 'EGREP' >> "conftest.nl"
3237    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3238    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3239    ac_count=`expr $ac_count + 1`
3240    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3241      # Best one so far, save it but keep looking for a better one
3242      ac_cv_path_EGREP="$ac_path_EGREP"
3243      ac_path_EGREP_max=$ac_count
3244    fi
3245    # 10*(2^10) chars as input seems more than enough
3246    test $ac_count -gt 10 && break
3247  done
3248  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3249esac
3250
3251
3252    $ac_path_EGREP_found && break 3
3253  done
3254done
3255
3256done
3257IFS=$as_save_IFS
3258
3259
3260fi
3261
3262EGREP="$ac_cv_path_EGREP"
3263if test -z "$EGREP"; then
3264  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3265echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3266   { (exit 1); exit 1; }; }
3267fi
3268
3269else
3270  ac_cv_path_EGREP=$EGREP
3271fi
3272
3273
3274   fi
3275fi
3276{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3277echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3278 EGREP="$ac_cv_path_EGREP"
3279
3280
3281
3282{ echo "$as_me:$LINENO: checking for AIX" >&5
3283echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3284cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h.  */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h.  */
3290#ifdef _AIX
3291  yes
3292#endif
3293
3294_ACEOF
3295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3296  $EGREP "yes" >/dev/null 2>&1; then
3297  { echo "$as_me:$LINENO: result: yes" >&5
3298echo "${ECHO_T}yes" >&6; }
3299cat >>confdefs.h <<\_ACEOF
3300#define _ALL_SOURCE 1
3301_ACEOF
3302
3303else
3304  { echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6; }
3306fi
3307rm -f conftest*
3308
3309
3310{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3311echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3312if test "${ac_cv_search_strerror+set}" = set; then
3313  echo $ECHO_N "(cached) $ECHO_C" >&6
3314else
3315  ac_func_search_save_LIBS=$LIBS
3316cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h.  */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h.  */
3322
3323/* Override any GCC internal prototype to avoid an error.
3324   Use char because int might match the return type of a GCC
3325   builtin and then its argument prototype would still apply.  */
3326#ifdef __cplusplus
3327extern "C"
3328#endif
3329char strerror ();
3330int
3331main ()
3332{
3333return strerror ();
3334  ;
3335  return 0;
3336}
3337_ACEOF
3338for ac_lib in '' cposix; do
3339  if test -z "$ac_lib"; then
3340    ac_res="none required"
3341  else
3342    ac_res=-l$ac_lib
3343    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3344  fi
3345  rm -f conftest.$ac_objext conftest$ac_exeext
3346if { (ac_try="$ac_link"
3347case "(($ac_try" in
3348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349  *) ac_try_echo=$ac_try;;
3350esac
3351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352  (eval "$ac_link") 2>conftest.er1
3353  ac_status=$?
3354  grep -v '^ *+' conftest.er1 >conftest.err
3355  rm -f conftest.er1
3356  cat conftest.err >&5
3357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358  (exit $ac_status); } &&
3359	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3360  { (case "(($ac_try" in
3361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362  *) ac_try_echo=$ac_try;;
3363esac
3364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365  (eval "$ac_try") 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }; } &&
3369	 { ac_try='test -s conftest$ac_exeext'
3370  { (case "(($ac_try" in
3371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372  *) ac_try_echo=$ac_try;;
3373esac
3374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375  (eval "$ac_try") 2>&5
3376  ac_status=$?
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); }; }; then
3379  ac_cv_search_strerror=$ac_res
3380else
3381  echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384
3385fi
3386
3387rm -f core conftest.err conftest.$ac_objext \
3388      conftest$ac_exeext
3389  if test "${ac_cv_search_strerror+set}" = set; then
3390  break
3391fi
3392done
3393if test "${ac_cv_search_strerror+set}" = set; then
3394  :
3395else
3396  ac_cv_search_strerror=no
3397fi
3398rm conftest.$ac_ext
3399LIBS=$ac_func_search_save_LIBS
3400fi
3401{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3402echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3403ac_res=$ac_cv_search_strerror
3404if test "$ac_res" != no; then
3405  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3406
3407fi
3408
3409
3410
3411
3412{ echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3413echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
3414if test "${am_cv_prog_cc_stdc+set}" = set; then
3415  echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417  am_cv_prog_cc_stdc=no
3418ac_save_CC="$CC"
3419# Don't try gcc -ansi; that turns off useful extensions and
3420# breaks some systems' header files.
3421# AIX			-qlanglvl=ansi
3422# Ultrix and OSF/1	-std1
3423# HP-UX 10.20 and later	-Ae
3424# HP-UX older versions	-Aa -D_HPUX_SOURCE
3425# SVR4			-Xc -D__EXTENSIONS__
3426for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3427do
3428  CC="$ac_save_CC $ac_arg"
3429  cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h.  */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h.  */
3435#include <stdarg.h>
3436#include <stdio.h>
3437#include <sys/types.h>
3438#include <sys/stat.h>
3439/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3440struct buf { int x; };
3441FILE * (*rcsopen) (struct buf *, struct stat *, int);
3442static char *e (p, i)
3443     char **p;
3444     int i;
3445{
3446  return p[i];
3447}
3448static char *f (char * (*g) (char **, int), char **p, ...)
3449{
3450  char *s;
3451  va_list v;
3452  va_start (v,p);
3453  s = g (p, va_arg (v,int));
3454  va_end (v);
3455  return s;
3456}
3457int test (int i, double x);
3458struct s1 {int (*f) (int a);};
3459struct s2 {int (*f) (double a);};
3460int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3461int argc;
3462char **argv;
3463
3464int
3465main ()
3466{
3467
3468return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (ac_try="$ac_compile"
3476case "(($ac_try" in
3477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478  *) ac_try_echo=$ac_try;;
3479esac
3480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481  (eval "$ac_compile") 2>conftest.er1
3482  ac_status=$?
3483  grep -v '^ *+' conftest.er1 >conftest.err
3484  rm -f conftest.er1
3485  cat conftest.err >&5
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); } &&
3488	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3489  { (case "(($ac_try" in
3490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491  *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494  (eval "$ac_try") 2>&5
3495  ac_status=$?
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); }; } &&
3498	 { ac_try='test -s conftest.$ac_objext'
3499  { (case "(($ac_try" in
3500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501  *) ac_try_echo=$ac_try;;
3502esac
3503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504  (eval "$ac_try") 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }; }; then
3508  am_cv_prog_cc_stdc="$ac_arg"; break
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513
3514fi
3515
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517done
3518CC="$ac_save_CC"
3519
3520fi
3521
3522if test -z "$am_cv_prog_cc_stdc"; then
3523  { echo "$as_me:$LINENO: result: none needed" >&5
3524echo "${ECHO_T}none needed" >&6; }
3525else
3526  { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3527echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
3528fi
3529case "x$am_cv_prog_cc_stdc" in
3530  x|xno) ;;
3531  *) CC="$CC $am_cv_prog_cc_stdc" ;;
3532esac
3533
3534
3535ac_aux_dir=
3536for ac_dir in $GNUSYSTEM_AUX_DIR "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3537  if test -f "$ac_dir/install-sh"; then
3538    ac_aux_dir=$ac_dir
3539    ac_install_sh="$ac_aux_dir/install-sh -c"
3540    break
3541  elif test -f "$ac_dir/install.sh"; then
3542    ac_aux_dir=$ac_dir
3543    ac_install_sh="$ac_aux_dir/install.sh -c"
3544    break
3545  elif test -f "$ac_dir/shtool"; then
3546    ac_aux_dir=$ac_dir
3547    ac_install_sh="$ac_aux_dir/shtool install -c"
3548    break
3549  fi
3550done
3551if test -z "$ac_aux_dir"; then
3552  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3553echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3554   { (exit 1); exit 1; }; }
3555fi
3556
3557# These three variables are undocumented and unsupported,
3558# and are intended to be withdrawn in a future Autoconf release.
3559# They can cause serious problems if a builder's source tree is in a directory
3560# whose full name contains unusual characters.
3561ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3562ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3563ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3564
3565
3566# Make sure we can run config.sub.
3567$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3568  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3569echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3570   { (exit 1); exit 1; }; }
3571
3572{ echo "$as_me:$LINENO: checking build system type" >&5
3573echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3574if test "${ac_cv_build+set}" = set; then
3575  echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577  ac_build_alias=$build_alias
3578test "x$ac_build_alias" = x &&
3579  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3580test "x$ac_build_alias" = x &&
3581  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3582echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3583   { (exit 1); exit 1; }; }
3584ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3585  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3586echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3587   { (exit 1); exit 1; }; }
3588
3589fi
3590{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3591echo "${ECHO_T}$ac_cv_build" >&6; }
3592case $ac_cv_build in
3593*-*-*) ;;
3594*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3595echo "$as_me: error: invalid value of canonical build" >&2;}
3596   { (exit 1); exit 1; }; };;
3597esac
3598build=$ac_cv_build
3599ac_save_IFS=$IFS; IFS='-'
3600set x $ac_cv_build
3601shift
3602build_cpu=$1
3603build_vendor=$2
3604shift; shift
3605# Remember, the first character of IFS is used to create $*,
3606# except with old shells:
3607build_os=$*
3608IFS=$ac_save_IFS
3609case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3610
3611
3612{ echo "$as_me:$LINENO: checking host system type" >&5
3613echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3614if test "${ac_cv_host+set}" = set; then
3615  echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
3617  if test "x$host_alias" = x; then
3618  ac_cv_host=$ac_cv_build
3619else
3620  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3621    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3622echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3623   { (exit 1); exit 1; }; }
3624fi
3625
3626fi
3627{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3628echo "${ECHO_T}$ac_cv_host" >&6; }
3629case $ac_cv_host in
3630*-*-*) ;;
3631*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3632echo "$as_me: error: invalid value of canonical host" >&2;}
3633   { (exit 1); exit 1; }; };;
3634esac
3635host=$ac_cv_host
3636ac_save_IFS=$IFS; IFS='-'
3637set x $ac_cv_host
3638shift
3639host_cpu=$1
3640host_vendor=$2
3641shift; shift
3642# Remember, the first character of IFS is used to create $*,
3643# except with old shells:
3644host_os=$*
3645IFS=$ac_save_IFS
3646case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3647
3648
3649{ echo "$as_me:$LINENO: checking target system type" >&5
3650echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3651if test "${ac_cv_target+set}" = set; then
3652  echo $ECHO_N "(cached) $ECHO_C" >&6
3653else
3654  if test "x$target_alias" = x; then
3655  ac_cv_target=$ac_cv_host
3656else
3657  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3658    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3659echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3660   { (exit 1); exit 1; }; }
3661fi
3662
3663fi
3664{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3665echo "${ECHO_T}$ac_cv_target" >&6; }
3666case $ac_cv_target in
3667*-*-*) ;;
3668*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3669echo "$as_me: error: invalid value of canonical target" >&2;}
3670   { (exit 1); exit 1; }; };;
3671esac
3672target=$ac_cv_target
3673ac_save_IFS=$IFS; IFS='-'
3674set x $ac_cv_target
3675shift
3676target_cpu=$1
3677target_vendor=$2
3678shift; shift
3679# Remember, the first character of IFS is used to create $*,
3680# except with old shells:
3681target_os=$*
3682IFS=$ac_save_IFS
3683case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3684
3685
3686# The aliases save the names the user supplied, while $host etc.
3687# will get canonicalized.
3688test -n "$target_alias" &&
3689  test "$program_prefix$program_suffix$program_transform_name" = \
3690    NONENONEs,x,x, &&
3691  program_prefix=${target_alias}-
3692
3693
3694CONFIG_OBS=
3695CONFIG_DEPS=
3696CONFIG_SRCS=
3697ENABLE_CFLAGS=
3698
3699CONFIG_ALL=
3700CONFIG_CLEAN=
3701CONFIG_INSTALL=
3702CONFIG_UNINSTALL=
3703
3704PACKAGE=gdb
3705
3706cat >>confdefs.h <<_ACEOF
3707#define PACKAGE "$PACKAGE"
3708_ACEOF
3709
3710
3711
3712debugdir=${libdir}/debug
3713
3714
3715# Check whether --with-separate-debug-dir was given.
3716if test "${with_separate_debug_dir+set}" = set; then
3717  withval=$with_separate_debug_dir; debugdir="${withval}"
3718fi
3719
3720
3721
3722  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3723  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3724  ac_define_dir=`eval echo $debugdir`
3725  ac_define_dir=`eval echo $ac_define_dir`
3726
3727cat >>confdefs.h <<_ACEOF
3728#define DEBUGDIR "$ac_define_dir"
3729_ACEOF
3730
3731
3732#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3733
3734subdirs="$subdirs doc"
3735
3736
3737. $srcdir/configure.host
3738
3739. $srcdir/configure.tgt
3740
3741# Fetch the default architecture and default target vector from BFD.
3742targ=$target; . $srcdir/../bfd/config.bfd
3743
3744# We only want the first architecture, so strip off the others if
3745# there is more than one.
3746targ_archs=`echo $targ_archs | sed 's/ .*//'`
3747
3748if test "x$targ_archs" != x; then
3749
3750cat >>confdefs.h <<_ACEOF
3751#define DEFAULT_BFD_ARCH $targ_archs
3752_ACEOF
3753
3754fi
3755if test "x$targ_defvec" != x; then
3756
3757cat >>confdefs.h <<_ACEOF
3758#define DEFAULT_BFD_VEC $targ_defvec
3759_ACEOF
3760
3761fi
3762
3763test "$program_prefix" != NONE &&
3764  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3765# Use a double $ so make ignores it.
3766test "$program_suffix" != NONE &&
3767  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3768# Double any \ or $.  echo might interpret backslashes.
3769# By default was `s,x,x', remove it if useless.
3770cat <<\_ACEOF >conftest.sed
3771s/[\\$]/&&/g;s/;s,x,x,$//
3772_ACEOF
3773program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3774rm -f conftest.sed
3775
3776
3777# The CLI cannot be disabled yet, but may be in the future.
3778
3779# Enable CLI.
3780# Check whether --enable-gdbcli was given.
3781if test "${enable_gdbcli+set}" = set; then
3782  enableval=$enable_gdbcli; case $enableval in
3783    yes)
3784      ;;
3785    no)
3786      { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3787echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3788   { (exit 1); exit 1; }; } ;;
3789    *)
3790      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3791echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3792   { (exit 1); exit 1; }; } ;;
3793  esac
3794else
3795  enable_gdbcli=yes
3796fi
3797
3798if test x"$enable_gdbcli" = xyes; then
3799  if test -d $srcdir/cli; then
3800    CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3801    CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3802    CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3803    ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3804  fi
3805fi
3806
3807# Enable MI.
3808# Check whether --enable-gdbmi was given.
3809if test "${enable_gdbmi+set}" = set; then
3810  enableval=$enable_gdbmi; case $enableval in
3811    yes | no)
3812      ;;
3813    *)
3814      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3815echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3816   { (exit 1); exit 1; }; } ;;
3817  esac
3818else
3819  enable_gdbmi=yes
3820fi
3821
3822if test x"$enable_gdbmi" = xyes; then
3823  if test -d $srcdir/mi; then
3824    CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3825    CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3826    CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3827    ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3828  fi
3829fi
3830
3831# Enable TUI.
3832# Check whether --enable-tui was given.
3833if test "${enable_tui+set}" = set; then
3834  enableval=$enable_tui; case $enableval in
3835    yes | no)
3836      ;;
3837    *)
3838      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3839echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3840   { (exit 1); exit 1; }; } ;;
3841  esac
3842else
3843  enable_tui=yes
3844fi
3845
3846
3847# Enable gdbtk.
3848# Check whether --enable-gdbtk was given.
3849if test "${enable_gdbtk+set}" = set; then
3850  enableval=$enable_gdbtk; case $enableval in
3851    yes | no)
3852      ;;
3853    *)
3854      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3855echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3856   { (exit 1); exit 1; }; } ;;
3857  esac
3858else
3859  if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3860    enable_gdbtk=yes
3861  else
3862    enable_gdbtk=no
3863  fi
3864fi
3865
3866# We unconditionally disable gdbtk tests on selected platforms.
3867case $host_os in
3868  go32* | windows*)
3869    { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3870echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3871    enable_gdbtk=no ;;
3872esac
3873
3874# Libunwind support.
3875{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3876echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3877if test "${ac_cv_header_stdc+set}" = set; then
3878  echo $ECHO_N "(cached) $ECHO_C" >&6
3879else
3880  cat >conftest.$ac_ext <<_ACEOF
3881/* confdefs.h.  */
3882_ACEOF
3883cat confdefs.h >>conftest.$ac_ext
3884cat >>conftest.$ac_ext <<_ACEOF
3885/* end confdefs.h.  */
3886#include <stdlib.h>
3887#include <stdarg.h>
3888#include <string.h>
3889#include <float.h>
3890
3891int
3892main ()
3893{
3894
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext
3900if { (ac_try="$ac_compile"
3901case "(($ac_try" in
3902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903  *) ac_try_echo=$ac_try;;
3904esac
3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906  (eval "$ac_compile") 2>conftest.er1
3907  ac_status=$?
3908  grep -v '^ *+' conftest.er1 >conftest.err
3909  rm -f conftest.er1
3910  cat conftest.err >&5
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } &&
3913	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3914  { (case "(($ac_try" in
3915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916  *) ac_try_echo=$ac_try;;
3917esac
3918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919  (eval "$ac_try") 2>&5
3920  ac_status=$?
3921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922  (exit $ac_status); }; } &&
3923	 { ac_try='test -s conftest.$ac_objext'
3924  { (case "(($ac_try" in
3925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926  *) ac_try_echo=$ac_try;;
3927esac
3928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929  (eval "$ac_try") 2>&5
3930  ac_status=$?
3931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932  (exit $ac_status); }; }; then
3933  ac_cv_header_stdc=yes
3934else
3935  echo "$as_me: failed program was:" >&5
3936sed 's/^/| /' conftest.$ac_ext >&5
3937
3938	ac_cv_header_stdc=no
3939fi
3940
3941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942
3943if test $ac_cv_header_stdc = yes; then
3944  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3945  cat >conftest.$ac_ext <<_ACEOF
3946/* confdefs.h.  */
3947_ACEOF
3948cat confdefs.h >>conftest.$ac_ext
3949cat >>conftest.$ac_ext <<_ACEOF
3950/* end confdefs.h.  */
3951#include <string.h>
3952
3953_ACEOF
3954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955  $EGREP "memchr" >/dev/null 2>&1; then
3956  :
3957else
3958  ac_cv_header_stdc=no
3959fi
3960rm -f conftest*
3961
3962fi
3963
3964if test $ac_cv_header_stdc = yes; then
3965  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3966  cat >conftest.$ac_ext <<_ACEOF
3967/* confdefs.h.  */
3968_ACEOF
3969cat confdefs.h >>conftest.$ac_ext
3970cat >>conftest.$ac_ext <<_ACEOF
3971/* end confdefs.h.  */
3972#include <stdlib.h>
3973
3974_ACEOF
3975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3976  $EGREP "free" >/dev/null 2>&1; then
3977  :
3978else
3979  ac_cv_header_stdc=no
3980fi
3981rm -f conftest*
3982
3983fi
3984
3985if test $ac_cv_header_stdc = yes; then
3986  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3987  if test "$cross_compiling" = yes; then
3988  :
3989else
3990  cat >conftest.$ac_ext <<_ACEOF
3991/* confdefs.h.  */
3992_ACEOF
3993cat confdefs.h >>conftest.$ac_ext
3994cat >>conftest.$ac_ext <<_ACEOF
3995/* end confdefs.h.  */
3996#include <ctype.h>
3997#include <stdlib.h>
3998#if ((' ' & 0x0FF) == 0x020)
3999# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4000# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4001#else
4002# define ISLOWER(c) \
4003		   (('a' <= (c) && (c) <= 'i') \
4004		     || ('j' <= (c) && (c) <= 'r') \
4005		     || ('s' <= (c) && (c) <= 'z'))
4006# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4007#endif
4008
4009#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4010int
4011main ()
4012{
4013  int i;
4014  for (i = 0; i < 256; i++)
4015    if (XOR (islower (i), ISLOWER (i))
4016	|| toupper (i) != TOUPPER (i))
4017      return 2;
4018  return 0;
4019}
4020_ACEOF
4021rm -f conftest$ac_exeext
4022if { (ac_try="$ac_link"
4023case "(($ac_try" in
4024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025  *) ac_try_echo=$ac_try;;
4026esac
4027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028  (eval "$ac_link") 2>&5
4029  ac_status=$?
4030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4032  { (case "(($ac_try" in
4033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034  *) ac_try_echo=$ac_try;;
4035esac
4036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4037  (eval "$ac_try") 2>&5
4038  ac_status=$?
4039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040  (exit $ac_status); }; }; then
4041  :
4042else
4043  echo "$as_me: program exited with status $ac_status" >&5
4044echo "$as_me: failed program was:" >&5
4045sed 's/^/| /' conftest.$ac_ext >&5
4046
4047( exit $ac_status )
4048ac_cv_header_stdc=no
4049fi
4050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4051fi
4052
4053
4054fi
4055fi
4056{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4057echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4058if test $ac_cv_header_stdc = yes; then
4059
4060cat >>confdefs.h <<\_ACEOF
4061#define STDC_HEADERS 1
4062_ACEOF
4063
4064fi
4065
4066# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4077		  inttypes.h stdint.h unistd.h
4078do
4079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4080{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4083  echo $ECHO_N "(cached) $ECHO_C" >&6
4084else
4085  cat >conftest.$ac_ext <<_ACEOF
4086/* confdefs.h.  */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4090/* end confdefs.h.  */
4091$ac_includes_default
4092
4093#include <$ac_header>
4094_ACEOF
4095rm -f conftest.$ac_objext
4096if { (ac_try="$ac_compile"
4097case "(($ac_try" in
4098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099  *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102  (eval "$ac_compile") 2>conftest.er1
4103  ac_status=$?
4104  grep -v '^ *+' conftest.er1 >conftest.err
4105  rm -f conftest.er1
4106  cat conftest.err >&5
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); } &&
4109	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4110  { (case "(($ac_try" in
4111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112  *) ac_try_echo=$ac_try;;
4113esac
4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115  (eval "$ac_try") 2>&5
4116  ac_status=$?
4117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); }; } &&
4119	 { ac_try='test -s conftest.$ac_objext'
4120  { (case "(($ac_try" in
4121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122  *) ac_try_echo=$ac_try;;
4123esac
4124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125  (eval "$ac_try") 2>&5
4126  ac_status=$?
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); }; }; then
4129  eval "$as_ac_Header=yes"
4130else
4131  echo "$as_me: failed program was:" >&5
4132sed 's/^/| /' conftest.$ac_ext >&5
4133
4134	eval "$as_ac_Header=no"
4135fi
4136
4137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138fi
4139ac_res=`eval echo '${'$as_ac_Header'}'`
4140	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4141echo "${ECHO_T}$ac_res" >&6; }
4142if test `eval echo '${'$as_ac_Header'}'` = yes; then
4143  cat >>confdefs.h <<_ACEOF
4144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4145_ACEOF
4146
4147fi
4148
4149done
4150
4151
4152
4153# Check whether --with-libunwind was given.
4154if test "${with_libunwind+set}" = set; then
4155  withval=$with_libunwind; case "${withval}" in
4156  yes)  enable_libunwind=yes ;;
4157  no)   enable_libunwind=no ;;
4158  *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
4159echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
4160   { (exit 1); exit 1; }; } ;;
4161esac
4162else
4163
4164
4165for ac_header in libunwind.h
4166do
4167as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4168if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4169  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4172  echo $ECHO_N "(cached) $ECHO_C" >&6
4173fi
4174ac_res=`eval echo '${'$as_ac_Header'}'`
4175	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4176echo "${ECHO_T}$ac_res" >&6; }
4177else
4178  # Is the header compilable?
4179{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4180echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4181cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h.  */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h.  */
4187$ac_includes_default
4188#include <$ac_header>
4189_ACEOF
4190rm -f conftest.$ac_objext
4191if { (ac_try="$ac_compile"
4192case "(($ac_try" in
4193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194  *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197  (eval "$ac_compile") 2>conftest.er1
4198  ac_status=$?
4199  grep -v '^ *+' conftest.er1 >conftest.err
4200  rm -f conftest.er1
4201  cat conftest.err >&5
4202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203  (exit $ac_status); } &&
4204	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4205  { (case "(($ac_try" in
4206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207  *) ac_try_echo=$ac_try;;
4208esac
4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210  (eval "$ac_try") 2>&5
4211  ac_status=$?
4212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213  (exit $ac_status); }; } &&
4214	 { ac_try='test -s conftest.$ac_objext'
4215  { (case "(($ac_try" in
4216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217  *) ac_try_echo=$ac_try;;
4218esac
4219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220  (eval "$ac_try") 2>&5
4221  ac_status=$?
4222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223  (exit $ac_status); }; }; then
4224  ac_header_compiler=yes
4225else
4226  echo "$as_me: failed program was:" >&5
4227sed 's/^/| /' conftest.$ac_ext >&5
4228
4229	ac_header_compiler=no
4230fi
4231
4232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4234echo "${ECHO_T}$ac_header_compiler" >&6; }
4235
4236# Is the header present?
4237{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4239cat >conftest.$ac_ext <<_ACEOF
4240/* confdefs.h.  */
4241_ACEOF
4242cat confdefs.h >>conftest.$ac_ext
4243cat >>conftest.$ac_ext <<_ACEOF
4244/* end confdefs.h.  */
4245#include <$ac_header>
4246_ACEOF
4247if { (ac_try="$ac_cpp conftest.$ac_ext"
4248case "(($ac_try" in
4249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250  *) ac_try_echo=$ac_try;;
4251esac
4252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4254  ac_status=$?
4255  grep -v '^ *+' conftest.er1 >conftest.err
4256  rm -f conftest.er1
4257  cat conftest.err >&5
4258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259  (exit $ac_status); } >/dev/null; then
4260  if test -s conftest.err; then
4261    ac_cpp_err=$ac_c_preproc_warn_flag
4262    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4263  else
4264    ac_cpp_err=
4265  fi
4266else
4267  ac_cpp_err=yes
4268fi
4269if test -z "$ac_cpp_err"; then
4270  ac_header_preproc=yes
4271else
4272  echo "$as_me: failed program was:" >&5
4273sed 's/^/| /' conftest.$ac_ext >&5
4274
4275  ac_header_preproc=no
4276fi
4277
4278rm -f conftest.err conftest.$ac_ext
4279{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4280echo "${ECHO_T}$ac_header_preproc" >&6; }
4281
4282# So?  What about this header?
4283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4284  yes:no: )
4285    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4286echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4287    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4288echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4289    ac_header_preproc=yes
4290    ;;
4291  no:yes:* )
4292    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4294    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4295echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4296    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4297echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4298    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4299echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4300    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4302    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4303echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4304
4305    ;;
4306esac
4307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4310  echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312  eval "$as_ac_Header=\$ac_header_preproc"
4313fi
4314ac_res=`eval echo '${'$as_ac_Header'}'`
4315	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4316echo "${ECHO_T}$ac_res" >&6; }
4317
4318fi
4319if test `eval echo '${'$as_ac_Header'}'` = yes; then
4320  cat >>confdefs.h <<_ACEOF
4321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4322_ACEOF
4323
4324fi
4325
4326done
4327
4328
4329for ac_header in libunwind-ia64.h
4330do
4331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4333  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4336  echo $ECHO_N "(cached) $ECHO_C" >&6
4337fi
4338ac_res=`eval echo '${'$as_ac_Header'}'`
4339	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4340echo "${ECHO_T}$ac_res" >&6; }
4341else
4342  # Is the header compilable?
4343{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4345cat >conftest.$ac_ext <<_ACEOF
4346/* confdefs.h.  */
4347_ACEOF
4348cat confdefs.h >>conftest.$ac_ext
4349cat >>conftest.$ac_ext <<_ACEOF
4350/* end confdefs.h.  */
4351$ac_includes_default
4352#include <$ac_header>
4353_ACEOF
4354rm -f conftest.$ac_objext
4355if { (ac_try="$ac_compile"
4356case "(($ac_try" in
4357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358  *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361  (eval "$ac_compile") 2>conftest.er1
4362  ac_status=$?
4363  grep -v '^ *+' conftest.er1 >conftest.err
4364  rm -f conftest.er1
4365  cat conftest.err >&5
4366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367  (exit $ac_status); } &&
4368	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4369  { (case "(($ac_try" in
4370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371  *) ac_try_echo=$ac_try;;
4372esac
4373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374  (eval "$ac_try") 2>&5
4375  ac_status=$?
4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377  (exit $ac_status); }; } &&
4378	 { ac_try='test -s conftest.$ac_objext'
4379  { (case "(($ac_try" in
4380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381  *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384  (eval "$ac_try") 2>&5
4385  ac_status=$?
4386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387  (exit $ac_status); }; }; then
4388  ac_header_compiler=yes
4389else
4390  echo "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393	ac_header_compiler=no
4394fi
4395
4396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4398echo "${ECHO_T}$ac_header_compiler" >&6; }
4399
4400# Is the header present?
4401{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4403cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h.  */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h.  */
4409#include <$ac_header>
4410_ACEOF
4411if { (ac_try="$ac_cpp conftest.$ac_ext"
4412case "(($ac_try" in
4413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414  *) ac_try_echo=$ac_try;;
4415esac
4416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4418  ac_status=$?
4419  grep -v '^ *+' conftest.er1 >conftest.err
4420  rm -f conftest.er1
4421  cat conftest.err >&5
4422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423  (exit $ac_status); } >/dev/null; then
4424  if test -s conftest.err; then
4425    ac_cpp_err=$ac_c_preproc_warn_flag
4426    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4427  else
4428    ac_cpp_err=
4429  fi
4430else
4431  ac_cpp_err=yes
4432fi
4433if test -z "$ac_cpp_err"; then
4434  ac_header_preproc=yes
4435else
4436  echo "$as_me: failed program was:" >&5
4437sed 's/^/| /' conftest.$ac_ext >&5
4438
4439  ac_header_preproc=no
4440fi
4441
4442rm -f conftest.err conftest.$ac_ext
4443{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4444echo "${ECHO_T}$ac_header_preproc" >&6; }
4445
4446# So?  What about this header?
4447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4448  yes:no: )
4449    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4451    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4453    ac_header_preproc=yes
4454    ;;
4455  no:yes:* )
4456    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4458    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4459echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4460    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4462    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4463echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4464    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4466    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4468
4469    ;;
4470esac
4471{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4474  echo $ECHO_N "(cached) $ECHO_C" >&6
4475else
4476  eval "$as_ac_Header=\$ac_header_preproc"
4477fi
4478ac_res=`eval echo '${'$as_ac_Header'}'`
4479	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4480echo "${ECHO_T}$ac_res" >&6; }
4481
4482fi
4483if test `eval echo '${'$as_ac_Header'}'` = yes; then
4484  cat >>confdefs.h <<_ACEOF
4485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486_ACEOF
4487
4488fi
4489
4490done
4491
4492  if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
4493    enable_libunwind=yes;
4494  fi
4495
4496fi
4497
4498
4499if test x"$enable_libunwind" = xyes; then
4500
4501for ac_header in libunwind.h
4502do
4503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4505  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4508  echo $ECHO_N "(cached) $ECHO_C" >&6
4509fi
4510ac_res=`eval echo '${'$as_ac_Header'}'`
4511	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4512echo "${ECHO_T}$ac_res" >&6; }
4513else
4514  # Is the header compilable?
4515{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4517cat >conftest.$ac_ext <<_ACEOF
4518/* confdefs.h.  */
4519_ACEOF
4520cat confdefs.h >>conftest.$ac_ext
4521cat >>conftest.$ac_ext <<_ACEOF
4522/* end confdefs.h.  */
4523$ac_includes_default
4524#include <$ac_header>
4525_ACEOF
4526rm -f conftest.$ac_objext
4527if { (ac_try="$ac_compile"
4528case "(($ac_try" in
4529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530  *) ac_try_echo=$ac_try;;
4531esac
4532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533  (eval "$ac_compile") 2>conftest.er1
4534  ac_status=$?
4535  grep -v '^ *+' conftest.er1 >conftest.err
4536  rm -f conftest.er1
4537  cat conftest.err >&5
4538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539  (exit $ac_status); } &&
4540	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4541  { (case "(($ac_try" in
4542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543  *) ac_try_echo=$ac_try;;
4544esac
4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546  (eval "$ac_try") 2>&5
4547  ac_status=$?
4548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549  (exit $ac_status); }; } &&
4550	 { ac_try='test -s conftest.$ac_objext'
4551  { (case "(($ac_try" in
4552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553  *) ac_try_echo=$ac_try;;
4554esac
4555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556  (eval "$ac_try") 2>&5
4557  ac_status=$?
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); }; }; then
4560  ac_header_compiler=yes
4561else
4562  echo "$as_me: failed program was:" >&5
4563sed 's/^/| /' conftest.$ac_ext >&5
4564
4565	ac_header_compiler=no
4566fi
4567
4568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4570echo "${ECHO_T}$ac_header_compiler" >&6; }
4571
4572# Is the header present?
4573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4575cat >conftest.$ac_ext <<_ACEOF
4576/* confdefs.h.  */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h.  */
4581#include <$ac_header>
4582_ACEOF
4583if { (ac_try="$ac_cpp conftest.$ac_ext"
4584case "(($ac_try" in
4585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586  *) ac_try_echo=$ac_try;;
4587esac
4588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4590  ac_status=$?
4591  grep -v '^ *+' conftest.er1 >conftest.err
4592  rm -f conftest.er1
4593  cat conftest.err >&5
4594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595  (exit $ac_status); } >/dev/null; then
4596  if test -s conftest.err; then
4597    ac_cpp_err=$ac_c_preproc_warn_flag
4598    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4599  else
4600    ac_cpp_err=
4601  fi
4602else
4603  ac_cpp_err=yes
4604fi
4605if test -z "$ac_cpp_err"; then
4606  ac_header_preproc=yes
4607else
4608  echo "$as_me: failed program was:" >&5
4609sed 's/^/| /' conftest.$ac_ext >&5
4610
4611  ac_header_preproc=no
4612fi
4613
4614rm -f conftest.err conftest.$ac_ext
4615{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4616echo "${ECHO_T}$ac_header_preproc" >&6; }
4617
4618# So?  What about this header?
4619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4620  yes:no: )
4621    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4623    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4625    ac_header_preproc=yes
4626    ;;
4627  no:yes:* )
4628    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4630    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4631echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4632    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4634    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4635echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4636    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4638    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4640
4641    ;;
4642esac
4643{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4646  echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648  eval "$as_ac_Header=\$ac_header_preproc"
4649fi
4650ac_res=`eval echo '${'$as_ac_Header'}'`
4651	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4652echo "${ECHO_T}$ac_res" >&6; }
4653
4654fi
4655if test `eval echo '${'$as_ac_Header'}'` = yes; then
4656  cat >>confdefs.h <<_ACEOF
4657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4658_ACEOF
4659
4660fi
4661
4662done
4663
4664
4665for ac_header in libunwind-ia64.h
4666do
4667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4669  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4672  echo $ECHO_N "(cached) $ECHO_C" >&6
4673fi
4674ac_res=`eval echo '${'$as_ac_Header'}'`
4675	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4676echo "${ECHO_T}$ac_res" >&6; }
4677else
4678  # Is the header compilable?
4679{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4681cat >conftest.$ac_ext <<_ACEOF
4682/* confdefs.h.  */
4683_ACEOF
4684cat confdefs.h >>conftest.$ac_ext
4685cat >>conftest.$ac_ext <<_ACEOF
4686/* end confdefs.h.  */
4687$ac_includes_default
4688#include <$ac_header>
4689_ACEOF
4690rm -f conftest.$ac_objext
4691if { (ac_try="$ac_compile"
4692case "(($ac_try" in
4693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694  *) ac_try_echo=$ac_try;;
4695esac
4696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697  (eval "$ac_compile") 2>conftest.er1
4698  ac_status=$?
4699  grep -v '^ *+' conftest.er1 >conftest.err
4700  rm -f conftest.er1
4701  cat conftest.err >&5
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); } &&
4704	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4705  { (case "(($ac_try" in
4706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707  *) ac_try_echo=$ac_try;;
4708esac
4709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710  (eval "$ac_try") 2>&5
4711  ac_status=$?
4712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713  (exit $ac_status); }; } &&
4714	 { ac_try='test -s conftest.$ac_objext'
4715  { (case "(($ac_try" in
4716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717  *) ac_try_echo=$ac_try;;
4718esac
4719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720  (eval "$ac_try") 2>&5
4721  ac_status=$?
4722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723  (exit $ac_status); }; }; then
4724  ac_header_compiler=yes
4725else
4726  echo "$as_me: failed program was:" >&5
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
4729	ac_header_compiler=no
4730fi
4731
4732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4734echo "${ECHO_T}$ac_header_compiler" >&6; }
4735
4736# Is the header present?
4737{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4739cat >conftest.$ac_ext <<_ACEOF
4740/* confdefs.h.  */
4741_ACEOF
4742cat confdefs.h >>conftest.$ac_ext
4743cat >>conftest.$ac_ext <<_ACEOF
4744/* end confdefs.h.  */
4745#include <$ac_header>
4746_ACEOF
4747if { (ac_try="$ac_cpp conftest.$ac_ext"
4748case "(($ac_try" in
4749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750  *) ac_try_echo=$ac_try;;
4751esac
4752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4754  ac_status=$?
4755  grep -v '^ *+' conftest.er1 >conftest.err
4756  rm -f conftest.er1
4757  cat conftest.err >&5
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); } >/dev/null; then
4760  if test -s conftest.err; then
4761    ac_cpp_err=$ac_c_preproc_warn_flag
4762    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4763  else
4764    ac_cpp_err=
4765  fi
4766else
4767  ac_cpp_err=yes
4768fi
4769if test -z "$ac_cpp_err"; then
4770  ac_header_preproc=yes
4771else
4772  echo "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775  ac_header_preproc=no
4776fi
4777
4778rm -f conftest.err conftest.$ac_ext
4779{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4780echo "${ECHO_T}$ac_header_preproc" >&6; }
4781
4782# So?  What about this header?
4783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4784  yes:no: )
4785    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4787    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4789    ac_header_preproc=yes
4790    ;;
4791  no:yes:* )
4792    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4794    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4795echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4796    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4798    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4799echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4800    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4802    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4804
4805    ;;
4806esac
4807{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4810  echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812  eval "$as_ac_Header=\$ac_header_preproc"
4813fi
4814ac_res=`eval echo '${'$as_ac_Header'}'`
4815	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4816echo "${ECHO_T}$ac_res" >&6; }
4817
4818fi
4819if test `eval echo '${'$as_ac_Header'}'` = yes; then
4820  cat >>confdefs.h <<_ACEOF
4821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4822_ACEOF
4823
4824fi
4825
4826done
4827
4828
4829cat >>confdefs.h <<\_ACEOF
4830#define HAVE_LIBUNWIND 1
4831_ACEOF
4832
4833  CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4834  CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4835  CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4836fi
4837
4838# Profiling support.
4839# Check whether --enable-profiling was given.
4840if test "${enable_profiling+set}" = set; then
4841  enableval=$enable_profiling; case $enableval in
4842    yes | no)
4843      ;;
4844    *)
4845      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4846echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4847   { (exit 1); exit 1; }; } ;;
4848  esac
4849else
4850  enable_profiling=no
4851fi
4852
4853
4854
4855
4856for ac_func in monstartup _mcleanup
4857do
4858as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4859{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4860echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4861if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4862  echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864  cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h.  */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h.  */
4870/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4871   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4872#define $ac_func innocuous_$ac_func
4873
4874/* System header to define __stub macros and hopefully few prototypes,
4875    which can conflict with char $ac_func (); below.
4876    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4877    <limits.h> exists even on freestanding compilers.  */
4878
4879#ifdef __STDC__
4880# include <limits.h>
4881#else
4882# include <assert.h>
4883#endif
4884
4885#undef $ac_func
4886
4887/* Override any GCC internal prototype to avoid an error.
4888   Use char because int might match the return type of a GCC
4889   builtin and then its argument prototype would still apply.  */
4890#ifdef __cplusplus
4891extern "C"
4892#endif
4893char $ac_func ();
4894/* The GNU C library defines this for functions which it implements
4895    to always fail with ENOSYS.  Some functions are actually named
4896    something starting with __ and the normal name is an alias.  */
4897#if defined __stub_$ac_func || defined __stub___$ac_func
4898choke me
4899#endif
4900
4901int
4902main ()
4903{
4904return $ac_func ();
4905  ;
4906  return 0;
4907}
4908_ACEOF
4909rm -f conftest.$ac_objext conftest$ac_exeext
4910if { (ac_try="$ac_link"
4911case "(($ac_try" in
4912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913  *) ac_try_echo=$ac_try;;
4914esac
4915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916  (eval "$ac_link") 2>conftest.er1
4917  ac_status=$?
4918  grep -v '^ *+' conftest.er1 >conftest.err
4919  rm -f conftest.er1
4920  cat conftest.err >&5
4921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922  (exit $ac_status); } &&
4923	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4924  { (case "(($ac_try" in
4925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926  *) ac_try_echo=$ac_try;;
4927esac
4928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929  (eval "$ac_try") 2>&5
4930  ac_status=$?
4931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932  (exit $ac_status); }; } &&
4933	 { ac_try='test -s conftest$ac_exeext'
4934  { (case "(($ac_try" in
4935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936  *) ac_try_echo=$ac_try;;
4937esac
4938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939  (eval "$ac_try") 2>&5
4940  ac_status=$?
4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); }; }; then
4943  eval "$as_ac_var=yes"
4944else
4945  echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948	eval "$as_ac_var=no"
4949fi
4950
4951rm -f core conftest.err conftest.$ac_objext \
4952      conftest$ac_exeext conftest.$ac_ext
4953fi
4954ac_res=`eval echo '${'$as_ac_var'}'`
4955	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4956echo "${ECHO_T}$ac_res" >&6; }
4957if test `eval echo '${'$as_ac_var'}'` = yes; then
4958  cat >>confdefs.h <<_ACEOF
4959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4960_ACEOF
4961
4962fi
4963done
4964
4965{ echo "$as_me:$LINENO: checking for _etext" >&5
4966echo $ECHO_N "checking for _etext... $ECHO_C" >&6; }
4967if test "${ac_cv_var__etext+set}" = set; then
4968  echo $ECHO_N "(cached) $ECHO_C" >&6
4969else
4970  cat >conftest.$ac_ext <<_ACEOF
4971/* confdefs.h.  */
4972_ACEOF
4973cat confdefs.h >>conftest.$ac_ext
4974cat >>conftest.$ac_ext <<_ACEOF
4975/* end confdefs.h.  */
4976#include <stdlib.h>
4977extern char _etext;
4978
4979int
4980main ()
4981{
4982free (&_etext);
4983  ;
4984  return 0;
4985}
4986_ACEOF
4987rm -f conftest.$ac_objext conftest$ac_exeext
4988if { (ac_try="$ac_link"
4989case "(($ac_try" in
4990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991  *) ac_try_echo=$ac_try;;
4992esac
4993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994  (eval "$ac_link") 2>conftest.er1
4995  ac_status=$?
4996  grep -v '^ *+' conftest.er1 >conftest.err
4997  rm -f conftest.er1
4998  cat conftest.err >&5
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); } &&
5001	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5002  { (case "(($ac_try" in
5003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004  *) ac_try_echo=$ac_try;;
5005esac
5006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007  (eval "$ac_try") 2>&5
5008  ac_status=$?
5009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010  (exit $ac_status); }; } &&
5011	 { ac_try='test -s conftest$ac_exeext'
5012  { (case "(($ac_try" in
5013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014  *) ac_try_echo=$ac_try;;
5015esac
5016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017  (eval "$ac_try") 2>&5
5018  ac_status=$?
5019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); }; }; then
5021  ac_cv_var__etext=yes
5022else
5023  echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026	ac_cv_var__etext=no
5027fi
5028
5029rm -f core conftest.err conftest.$ac_objext \
5030      conftest$ac_exeext conftest.$ac_ext
5031fi
5032{ echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
5033echo "${ECHO_T}$ac_cv_var__etext" >&6; }
5034if test $ac_cv_var__etext = yes; then
5035
5036cat >>confdefs.h <<\_ACEOF
5037#define HAVE__ETEXT 1
5038_ACEOF
5039
5040fi
5041if test "$enable_profiling" = yes ; then
5042  if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5043    { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
5044echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
5045   { (exit 1); exit 1; }; }
5046  fi
5047  PROFILE_CFLAGS=-pg
5048  OLD_CFLAGS="$CFLAGS"
5049  CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5050
5051  { echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
5052echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6; }
5053if test "${ac_cv_cc_supports_pg+set}" = set; then
5054  echo $ECHO_N "(cached) $ECHO_C" >&6
5055else
5056  cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h.  */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h.  */
5062
5063int
5064main ()
5065{
5066int x;
5067  ;
5068  return 0;
5069}
5070_ACEOF
5071rm -f conftest.$ac_objext
5072if { (ac_try="$ac_compile"
5073case "(($ac_try" in
5074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075  *) ac_try_echo=$ac_try;;
5076esac
5077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078  (eval "$ac_compile") 2>conftest.er1
5079  ac_status=$?
5080  grep -v '^ *+' conftest.er1 >conftest.err
5081  rm -f conftest.er1
5082  cat conftest.err >&5
5083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084  (exit $ac_status); } &&
5085	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5086  { (case "(($ac_try" in
5087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088  *) ac_try_echo=$ac_try;;
5089esac
5090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091  (eval "$ac_try") 2>&5
5092  ac_status=$?
5093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094  (exit $ac_status); }; } &&
5095	 { ac_try='test -s conftest.$ac_objext'
5096  { (case "(($ac_try" in
5097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098  *) ac_try_echo=$ac_try;;
5099esac
5100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101  (eval "$ac_try") 2>&5
5102  ac_status=$?
5103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104  (exit $ac_status); }; }; then
5105  ac_cv_cc_supports_pg=yes
5106else
5107  echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110	ac_cv_cc_supports_pg=no
5111fi
5112
5113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114fi
5115{ echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
5116echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6; }
5117
5118  if test $ac_cv_cc_supports_pg = no; then
5119    { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
5120echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
5121   { (exit 1); exit 1; }; }
5122  fi
5123
5124  CFLAGS="$OLD_CFLAGS"
5125fi
5126
5127# --------------------- #
5128# Checks for programs.  #
5129# --------------------- #
5130
5131for ac_prog in gawk mawk nawk awk
5132do
5133  # Extract the first word of "$ac_prog", so it can be a program name with args.
5134set dummy $ac_prog; ac_word=$2
5135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5137if test "${ac_cv_prog_AWK+set}" = set; then
5138  echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140  if test -n "$AWK"; then
5141  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146  IFS=$as_save_IFS
5147  test -z "$as_dir" && as_dir=.
5148  for ac_exec_ext in '' $ac_executable_extensions; do
5149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5150    ac_cv_prog_AWK="$ac_prog"
5151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152    break 2
5153  fi
5154done
5155done
5156IFS=$as_save_IFS
5157
5158fi
5159fi
5160AWK=$ac_cv_prog_AWK
5161if test -n "$AWK"; then
5162  { echo "$as_me:$LINENO: result: $AWK" >&5
5163echo "${ECHO_T}$AWK" >&6; }
5164else
5165  { echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6; }
5167fi
5168
5169
5170  test -n "$AWK" && break
5171done
5172
5173# Find a good install program.  We prefer a C program (faster),
5174# so one script is as good as another.  But avoid the broken or
5175# incompatible versions:
5176# SysV /etc/install, /usr/sbin/install
5177# SunOS /usr/etc/install
5178# IRIX /sbin/install
5179# AIX /bin/install
5180# AmigaOS /C/install, which installs bootblocks on floppy discs
5181# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5182# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5183# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5184# OS/2's system install, which has a completely different semantic
5185# ./install, which can be erroneously created by make from ./install.sh.
5186{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5187echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5188if test -z "$INSTALL"; then
5189if test "${ac_cv_path_install+set}" = set; then
5190  echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195  IFS=$as_save_IFS
5196  test -z "$as_dir" && as_dir=.
5197  # Account for people who put trailing slashes in PATH elements.
5198case $as_dir/ in
5199  ./ | .// | /cC/* | \
5200  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5201  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5202  /usr/ucb/* ) ;;
5203  *)
5204    # OSF1 and SCO ODT 3.0 have their own names for install.
5205    # Don't use installbsd from OSF since it installs stuff as root
5206    # by default.
5207    for ac_prog in ginstall scoinst install; do
5208      for ac_exec_ext in '' $ac_executable_extensions; do
5209	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5210	  if test $ac_prog = install &&
5211	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5212	    # AIX install.  It has an incompatible calling convention.
5213	    :
5214	  elif test $ac_prog = install &&
5215	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5216	    # program-specific install script used by HP pwplus--don't use.
5217	    :
5218	  else
5219	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5220	    break 3
5221	  fi
5222	fi
5223      done
5224    done
5225    ;;
5226esac
5227done
5228IFS=$as_save_IFS
5229
5230
5231fi
5232  if test "${ac_cv_path_install+set}" = set; then
5233    INSTALL=$ac_cv_path_install
5234  else
5235    # As a last resort, use the slow shell script.  Don't cache a
5236    # value for INSTALL within a source directory, because that will
5237    # break other packages using the cache if that directory is
5238    # removed, or if the value is a relative name.
5239    INSTALL="$SHELL $ac_install_sh"
5240  fi
5241fi
5242{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5243echo "${ECHO_T}$INSTALL" >&6; }
5244
5245# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5246# It thinks the first close brace ends the variable substitution.
5247test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5248
5249test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5250
5251test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5252
5253{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5254echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5255LN_S=$as_ln_s
5256if test "$LN_S" = "ln -s"; then
5257  { echo "$as_me:$LINENO: result: yes" >&5
5258echo "${ECHO_T}yes" >&6; }
5259else
5260  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5261echo "${ECHO_T}no, using $LN_S" >&6; }
5262fi
5263
5264if test -n "$ac_tool_prefix"; then
5265  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5266set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269if test "${ac_cv_prog_RANLIB+set}" = set; then
5270  echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272  if test -n "$RANLIB"; then
5273  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5274else
5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278  IFS=$as_save_IFS
5279  test -z "$as_dir" && as_dir=.
5280  for ac_exec_ext in '' $ac_executable_extensions; do
5281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5282    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5283    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284    break 2
5285  fi
5286done
5287done
5288IFS=$as_save_IFS
5289
5290fi
5291fi
5292RANLIB=$ac_cv_prog_RANLIB
5293if test -n "$RANLIB"; then
5294  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5295echo "${ECHO_T}$RANLIB" >&6; }
5296else
5297  { echo "$as_me:$LINENO: result: no" >&5
5298echo "${ECHO_T}no" >&6; }
5299fi
5300
5301
5302fi
5303if test -z "$ac_cv_prog_RANLIB"; then
5304  ac_ct_RANLIB=$RANLIB
5305  # Extract the first word of "ranlib", so it can be a program name with args.
5306set dummy ranlib; ac_word=$2
5307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5309if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5310  echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312  if test -n "$ac_ct_RANLIB"; then
5313  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5314else
5315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318  IFS=$as_save_IFS
5319  test -z "$as_dir" && as_dir=.
5320  for ac_exec_ext in '' $ac_executable_extensions; do
5321  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5322    ac_cv_prog_ac_ct_RANLIB="ranlib"
5323    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324    break 2
5325  fi
5326done
5327done
5328IFS=$as_save_IFS
5329
5330fi
5331fi
5332ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5333if test -n "$ac_ct_RANLIB"; then
5334  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5335echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5336else
5337  { echo "$as_me:$LINENO: result: no" >&5
5338echo "${ECHO_T}no" >&6; }
5339fi
5340
5341  if test "x$ac_ct_RANLIB" = x; then
5342    RANLIB=":"
5343  else
5344    case $cross_compiling:$ac_tool_warned in
5345yes:)
5346{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5347whose name does not start with the host triplet.  If you think this
5348configuration is useful to you, please write to autoconf@gnu.org." >&5
5349echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5350whose name does not start with the host triplet.  If you think this
5351configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5352ac_tool_warned=yes ;;
5353esac
5354    RANLIB=$ac_ct_RANLIB
5355  fi
5356else
5357  RANLIB="$ac_cv_prog_RANLIB"
5358fi
5359
5360for ac_prog in 'bison -y' byacc
5361do
5362  # Extract the first word of "$ac_prog", so it can be a program name with args.
5363set dummy $ac_prog; ac_word=$2
5364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5366if test "${ac_cv_prog_YACC+set}" = set; then
5367  echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369  if test -n "$YACC"; then
5370  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375  IFS=$as_save_IFS
5376  test -z "$as_dir" && as_dir=.
5377  for ac_exec_ext in '' $ac_executable_extensions; do
5378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5379    ac_cv_prog_YACC="$ac_prog"
5380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381    break 2
5382  fi
5383done
5384done
5385IFS=$as_save_IFS
5386
5387fi
5388fi
5389YACC=$ac_cv_prog_YACC
5390if test -n "$YACC"; then
5391  { echo "$as_me:$LINENO: result: $YACC" >&5
5392echo "${ECHO_T}$YACC" >&6; }
5393else
5394  { echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6; }
5396fi
5397
5398
5399  test -n "$YACC" && break
5400done
5401test -n "$YACC" || YACC="yacc"
5402
5403
5404if test -n "$ac_tool_prefix"; then
5405  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5406set dummy ${ac_tool_prefix}ar; ac_word=$2
5407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5409if test "${ac_cv_prog_AR+set}" = set; then
5410  echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412  if test -n "$AR"; then
5413  ac_cv_prog_AR="$AR" # Let the user override the test.
5414else
5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418  IFS=$as_save_IFS
5419  test -z "$as_dir" && as_dir=.
5420  for ac_exec_ext in '' $ac_executable_extensions; do
5421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5422    ac_cv_prog_AR="${ac_tool_prefix}ar"
5423    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424    break 2
5425  fi
5426done
5427done
5428IFS=$as_save_IFS
5429
5430fi
5431fi
5432AR=$ac_cv_prog_AR
5433if test -n "$AR"; then
5434  { echo "$as_me:$LINENO: result: $AR" >&5
5435echo "${ECHO_T}$AR" >&6; }
5436else
5437  { echo "$as_me:$LINENO: result: no" >&5
5438echo "${ECHO_T}no" >&6; }
5439fi
5440
5441
5442fi
5443if test -z "$ac_cv_prog_AR"; then
5444  ac_ct_AR=$AR
5445  # Extract the first word of "ar", so it can be a program name with args.
5446set dummy ar; ac_word=$2
5447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5449if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5450  echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452  if test -n "$ac_ct_AR"; then
5453  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5454else
5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456for as_dir in $PATH
5457do
5458  IFS=$as_save_IFS
5459  test -z "$as_dir" && as_dir=.
5460  for ac_exec_ext in '' $ac_executable_extensions; do
5461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5462    ac_cv_prog_ac_ct_AR="ar"
5463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464    break 2
5465  fi
5466done
5467done
5468IFS=$as_save_IFS
5469
5470fi
5471fi
5472ac_ct_AR=$ac_cv_prog_ac_ct_AR
5473if test -n "$ac_ct_AR"; then
5474  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5475echo "${ECHO_T}$ac_ct_AR" >&6; }
5476else
5477  { echo "$as_me:$LINENO: result: no" >&5
5478echo "${ECHO_T}no" >&6; }
5479fi
5480
5481  if test "x$ac_ct_AR" = x; then
5482    AR=""
5483  else
5484    case $cross_compiling:$ac_tool_warned in
5485yes:)
5486{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5487whose name does not start with the host triplet.  If you think this
5488configuration is useful to you, please write to autoconf@gnu.org." >&5
5489echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5490whose name does not start with the host triplet.  If you think this
5491configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5492ac_tool_warned=yes ;;
5493esac
5494    AR=$ac_ct_AR
5495  fi
5496else
5497  AR="$ac_cv_prog_AR"
5498fi
5499
5500if test -n "$ac_tool_prefix"; then
5501  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5502set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5505if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5506  echo $ECHO_N "(cached) $ECHO_C" >&6
5507else
5508  if test -n "$DLLTOOL"; then
5509  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5510else
5511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514  IFS=$as_save_IFS
5515  test -z "$as_dir" && as_dir=.
5516  for ac_exec_ext in '' $ac_executable_extensions; do
5517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5518    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520    break 2
5521  fi
5522done
5523done
5524IFS=$as_save_IFS
5525
5526fi
5527fi
5528DLLTOOL=$ac_cv_prog_DLLTOOL
5529if test -n "$DLLTOOL"; then
5530  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5531echo "${ECHO_T}$DLLTOOL" >&6; }
5532else
5533  { echo "$as_me:$LINENO: result: no" >&5
5534echo "${ECHO_T}no" >&6; }
5535fi
5536
5537
5538fi
5539if test -z "$ac_cv_prog_DLLTOOL"; then
5540  ac_ct_DLLTOOL=$DLLTOOL
5541  # Extract the first word of "dlltool", so it can be a program name with args.
5542set dummy dlltool; ac_word=$2
5543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5545if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5546  echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
5548  if test -n "$ac_ct_DLLTOOL"; then
5549  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5550else
5551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH
5553do
5554  IFS=$as_save_IFS
5555  test -z "$as_dir" && as_dir=.
5556  for ac_exec_ext in '' $ac_executable_extensions; do
5557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5558    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560    break 2
5561  fi
5562done
5563done
5564IFS=$as_save_IFS
5565
5566fi
5567fi
5568ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5569if test -n "$ac_ct_DLLTOOL"; then
5570  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5571echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5572else
5573  { echo "$as_me:$LINENO: result: no" >&5
5574echo "${ECHO_T}no" >&6; }
5575fi
5576
5577  if test "x$ac_ct_DLLTOOL" = x; then
5578    DLLTOOL=""
5579  else
5580    case $cross_compiling:$ac_tool_warned in
5581yes:)
5582{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5583whose name does not start with the host triplet.  If you think this
5584configuration is useful to you, please write to autoconf@gnu.org." >&5
5585echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5586whose name does not start with the host triplet.  If you think this
5587configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5588ac_tool_warned=yes ;;
5589esac
5590    DLLTOOL=$ac_ct_DLLTOOL
5591  fi
5592else
5593  DLLTOOL="$ac_cv_prog_DLLTOOL"
5594fi
5595
5596if test -n "$ac_tool_prefix"; then
5597  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5598set dummy ${ac_tool_prefix}windres; ac_word=$2
5599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5601if test "${ac_cv_prog_WINDRES+set}" = set; then
5602  echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604  if test -n "$WINDRES"; then
5605  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610  IFS=$as_save_IFS
5611  test -z "$as_dir" && as_dir=.
5612  for ac_exec_ext in '' $ac_executable_extensions; do
5613  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5614    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616    break 2
5617  fi
5618done
5619done
5620IFS=$as_save_IFS
5621
5622fi
5623fi
5624WINDRES=$ac_cv_prog_WINDRES
5625if test -n "$WINDRES"; then
5626  { echo "$as_me:$LINENO: result: $WINDRES" >&5
5627echo "${ECHO_T}$WINDRES" >&6; }
5628else
5629  { echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6; }
5631fi
5632
5633
5634fi
5635if test -z "$ac_cv_prog_WINDRES"; then
5636  ac_ct_WINDRES=$WINDRES
5637  # Extract the first word of "windres", so it can be a program name with args.
5638set dummy windres; ac_word=$2
5639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5641if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5642  echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644  if test -n "$ac_ct_WINDRES"; then
5645  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650  IFS=$as_save_IFS
5651  test -z "$as_dir" && as_dir=.
5652  for ac_exec_ext in '' $ac_executable_extensions; do
5653  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5654    ac_cv_prog_ac_ct_WINDRES="windres"
5655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656    break 2
5657  fi
5658done
5659done
5660IFS=$as_save_IFS
5661
5662fi
5663fi
5664ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5665if test -n "$ac_ct_WINDRES"; then
5666  { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5667echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
5668else
5669  { echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6; }
5671fi
5672
5673  if test "x$ac_ct_WINDRES" = x; then
5674    WINDRES=""
5675  else
5676    case $cross_compiling:$ac_tool_warned in
5677yes:)
5678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5679whose name does not start with the host triplet.  If you think this
5680configuration is useful to you, please write to autoconf@gnu.org." >&5
5681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5682whose name does not start with the host triplet.  If you think this
5683configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5684ac_tool_warned=yes ;;
5685esac
5686    WINDRES=$ac_ct_WINDRES
5687  fi
5688else
5689  WINDRES="$ac_cv_prog_WINDRES"
5690fi
5691
5692
5693# Needed for GNU/Hurd.
5694if test -n "$ac_tool_prefix"; then
5695  # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
5696set dummy ${ac_tool_prefix}mig; ac_word=$2
5697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5699if test "${ac_cv_prog_MIG+set}" = set; then
5700  echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702  if test -n "$MIG"; then
5703  ac_cv_prog_MIG="$MIG" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708  IFS=$as_save_IFS
5709  test -z "$as_dir" && as_dir=.
5710  for ac_exec_ext in '' $ac_executable_extensions; do
5711  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5712    ac_cv_prog_MIG="${ac_tool_prefix}mig"
5713    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714    break 2
5715  fi
5716done
5717done
5718IFS=$as_save_IFS
5719
5720fi
5721fi
5722MIG=$ac_cv_prog_MIG
5723if test -n "$MIG"; then
5724  { echo "$as_me:$LINENO: result: $MIG" >&5
5725echo "${ECHO_T}$MIG" >&6; }
5726else
5727  { echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6; }
5729fi
5730
5731
5732fi
5733if test -z "$ac_cv_prog_MIG"; then
5734  ac_ct_MIG=$MIG
5735  # Extract the first word of "mig", so it can be a program name with args.
5736set dummy mig; ac_word=$2
5737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5739if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
5740  echo $ECHO_N "(cached) $ECHO_C" >&6
5741else
5742  if test -n "$ac_ct_MIG"; then
5743  ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
5744else
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748  IFS=$as_save_IFS
5749  test -z "$as_dir" && as_dir=.
5750  for ac_exec_ext in '' $ac_executable_extensions; do
5751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5752    ac_cv_prog_ac_ct_MIG="mig"
5753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754    break 2
5755  fi
5756done
5757done
5758IFS=$as_save_IFS
5759
5760fi
5761fi
5762ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
5763if test -n "$ac_ct_MIG"; then
5764  { echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
5765echo "${ECHO_T}$ac_ct_MIG" >&6; }
5766else
5767  { echo "$as_me:$LINENO: result: no" >&5
5768echo "${ECHO_T}no" >&6; }
5769fi
5770
5771  if test "x$ac_ct_MIG" = x; then
5772    MIG=""
5773  else
5774    case $cross_compiling:$ac_tool_warned in
5775yes:)
5776{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5777whose name does not start with the host triplet.  If you think this
5778configuration is useful to you, please write to autoconf@gnu.org." >&5
5779echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5780whose name does not start with the host triplet.  If you think this
5781configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5782ac_tool_warned=yes ;;
5783esac
5784    MIG=$ac_ct_MIG
5785  fi
5786else
5787  MIG="$ac_cv_prog_MIG"
5788fi
5789
5790
5791# ---------------------- #
5792# Checks for libraries.  #
5793# ---------------------- #
5794
5795# We might need to link with -lm; most simulators need it.
5796
5797{ echo "$as_me:$LINENO: checking for main in -lm" >&5
5798echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
5799if test "${ac_cv_lib_m_main+set}" = set; then
5800  echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
5802  ac_check_lib_save_LIBS=$LIBS
5803LIBS="-lm  $LIBS"
5804cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h.  */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h.  */
5810
5811
5812int
5813main ()
5814{
5815return main ();
5816  ;
5817  return 0;
5818}
5819_ACEOF
5820rm -f conftest.$ac_objext conftest$ac_exeext
5821if { (ac_try="$ac_link"
5822case "(($ac_try" in
5823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824  *) ac_try_echo=$ac_try;;
5825esac
5826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827  (eval "$ac_link") 2>conftest.er1
5828  ac_status=$?
5829  grep -v '^ *+' conftest.er1 >conftest.err
5830  rm -f conftest.er1
5831  cat conftest.err >&5
5832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833  (exit $ac_status); } &&
5834	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5835  { (case "(($ac_try" in
5836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837  *) ac_try_echo=$ac_try;;
5838esac
5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840  (eval "$ac_try") 2>&5
5841  ac_status=$?
5842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); }; } &&
5844	 { ac_try='test -s conftest$ac_exeext'
5845  { (case "(($ac_try" in
5846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847  *) ac_try_echo=$ac_try;;
5848esac
5849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850  (eval "$ac_try") 2>&5
5851  ac_status=$?
5852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853  (exit $ac_status); }; }; then
5854  ac_cv_lib_m_main=yes
5855else
5856  echo "$as_me: failed program was:" >&5
5857sed 's/^/| /' conftest.$ac_ext >&5
5858
5859	ac_cv_lib_m_main=no
5860fi
5861
5862rm -f core conftest.err conftest.$ac_objext \
5863      conftest$ac_exeext conftest.$ac_ext
5864LIBS=$ac_check_lib_save_LIBS
5865fi
5866{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5867echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
5868if test $ac_cv_lib_m_main = yes; then
5869  cat >>confdefs.h <<_ACEOF
5870#define HAVE_LIBM 1
5871_ACEOF
5872
5873  LIBS="-lm $LIBS"
5874
5875fi
5876
5877
5878# We need to link with -lw to get `wctype' on Solaris before Solaris
5879# 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
5880# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5881# is known to have this problem).  Therefore we avoid libw if we can.
5882{ echo "$as_me:$LINENO: checking for wctype" >&5
5883echo $ECHO_N "checking for wctype... $ECHO_C" >&6; }
5884if test "${ac_cv_func_wctype+set}" = set; then
5885  echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887  cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h.  */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h.  */
5893/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5894   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5895#define wctype innocuous_wctype
5896
5897/* System header to define __stub macros and hopefully few prototypes,
5898    which can conflict with char wctype (); below.
5899    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900    <limits.h> exists even on freestanding compilers.  */
5901
5902#ifdef __STDC__
5903# include <limits.h>
5904#else
5905# include <assert.h>
5906#endif
5907
5908#undef wctype
5909
5910/* Override any GCC internal prototype to avoid an error.
5911   Use char because int might match the return type of a GCC
5912   builtin and then its argument prototype would still apply.  */
5913#ifdef __cplusplus
5914extern "C"
5915#endif
5916char wctype ();
5917/* The GNU C library defines this for functions which it implements
5918    to always fail with ENOSYS.  Some functions are actually named
5919    something starting with __ and the normal name is an alias.  */
5920#if defined __stub_wctype || defined __stub___wctype
5921choke me
5922#endif
5923
5924int
5925main ()
5926{
5927return wctype ();
5928  ;
5929  return 0;
5930}
5931_ACEOF
5932rm -f conftest.$ac_objext conftest$ac_exeext
5933if { (ac_try="$ac_link"
5934case "(($ac_try" in
5935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936  *) ac_try_echo=$ac_try;;
5937esac
5938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939  (eval "$ac_link") 2>conftest.er1
5940  ac_status=$?
5941  grep -v '^ *+' conftest.er1 >conftest.err
5942  rm -f conftest.er1
5943  cat conftest.err >&5
5944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945  (exit $ac_status); } &&
5946	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5947  { (case "(($ac_try" in
5948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949  *) ac_try_echo=$ac_try;;
5950esac
5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952  (eval "$ac_try") 2>&5
5953  ac_status=$?
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); }; } &&
5956	 { ac_try='test -s conftest$ac_exeext'
5957  { (case "(($ac_try" in
5958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959  *) ac_try_echo=$ac_try;;
5960esac
5961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962  (eval "$ac_try") 2>&5
5963  ac_status=$?
5964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965  (exit $ac_status); }; }; then
5966  ac_cv_func_wctype=yes
5967else
5968  echo "$as_me: failed program was:" >&5
5969sed 's/^/| /' conftest.$ac_ext >&5
5970
5971	ac_cv_func_wctype=no
5972fi
5973
5974rm -f core conftest.err conftest.$ac_objext \
5975      conftest$ac_exeext conftest.$ac_ext
5976fi
5977{ echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5978echo "${ECHO_T}$ac_cv_func_wctype" >&6; }
5979if test $ac_cv_func_wctype = yes; then
5980  :
5981else
5982
5983{ echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5984echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6; }
5985if test "${ac_cv_lib_w_wctype+set}" = set; then
5986  echo $ECHO_N "(cached) $ECHO_C" >&6
5987else
5988  ac_check_lib_save_LIBS=$LIBS
5989LIBS="-lw  $LIBS"
5990cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h.  */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h.  */
5996
5997/* Override any GCC internal prototype to avoid an error.
5998   Use char because int might match the return type of a GCC
5999   builtin and then its argument prototype would still apply.  */
6000#ifdef __cplusplus
6001extern "C"
6002#endif
6003char wctype ();
6004int
6005main ()
6006{
6007return wctype ();
6008  ;
6009  return 0;
6010}
6011_ACEOF
6012rm -f conftest.$ac_objext conftest$ac_exeext
6013if { (ac_try="$ac_link"
6014case "(($ac_try" in
6015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016  *) ac_try_echo=$ac_try;;
6017esac
6018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019  (eval "$ac_link") 2>conftest.er1
6020  ac_status=$?
6021  grep -v '^ *+' conftest.er1 >conftest.err
6022  rm -f conftest.er1
6023  cat conftest.err >&5
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); } &&
6026	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6027  { (case "(($ac_try" in
6028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029  *) ac_try_echo=$ac_try;;
6030esac
6031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032  (eval "$ac_try") 2>&5
6033  ac_status=$?
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); }; } &&
6036	 { ac_try='test -s conftest$ac_exeext'
6037  { (case "(($ac_try" in
6038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039  *) ac_try_echo=$ac_try;;
6040esac
6041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042  (eval "$ac_try") 2>&5
6043  ac_status=$?
6044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045  (exit $ac_status); }; }; then
6046  ac_cv_lib_w_wctype=yes
6047else
6048  echo "$as_me: failed program was:" >&5
6049sed 's/^/| /' conftest.$ac_ext >&5
6050
6051	ac_cv_lib_w_wctype=no
6052fi
6053
6054rm -f core conftest.err conftest.$ac_objext \
6055      conftest$ac_exeext conftest.$ac_ext
6056LIBS=$ac_check_lib_save_LIBS
6057fi
6058{ echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
6059echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6; }
6060if test $ac_cv_lib_w_wctype = yes; then
6061  cat >>confdefs.h <<_ACEOF
6062#define HAVE_LIBW 1
6063_ACEOF
6064
6065  LIBS="-lw $LIBS"
6066
6067fi
6068
6069fi
6070
6071
6072# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6073{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6074echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6075if test "${ac_cv_search_gethostbyname+set}" = set; then
6076  echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078  ac_func_search_save_LIBS=$LIBS
6079cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h.  */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h.  */
6085
6086/* Override any GCC internal prototype to avoid an error.
6087   Use char because int might match the return type of a GCC
6088   builtin and then its argument prototype would still apply.  */
6089#ifdef __cplusplus
6090extern "C"
6091#endif
6092char gethostbyname ();
6093int
6094main ()
6095{
6096return gethostbyname ();
6097  ;
6098  return 0;
6099}
6100_ACEOF
6101for ac_lib in '' nsl; do
6102  if test -z "$ac_lib"; then
6103    ac_res="none required"
6104  else
6105    ac_res=-l$ac_lib
6106    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6107  fi
6108  rm -f conftest.$ac_objext conftest$ac_exeext
6109if { (ac_try="$ac_link"
6110case "(($ac_try" in
6111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112  *) ac_try_echo=$ac_try;;
6113esac
6114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115  (eval "$ac_link") 2>conftest.er1
6116  ac_status=$?
6117  grep -v '^ *+' conftest.er1 >conftest.err
6118  rm -f conftest.er1
6119  cat conftest.err >&5
6120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121  (exit $ac_status); } &&
6122	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6123  { (case "(($ac_try" in
6124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125  *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128  (eval "$ac_try") 2>&5
6129  ac_status=$?
6130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131  (exit $ac_status); }; } &&
6132	 { ac_try='test -s conftest$ac_exeext'
6133  { (case "(($ac_try" in
6134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135  *) ac_try_echo=$ac_try;;
6136esac
6137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138  (eval "$ac_try") 2>&5
6139  ac_status=$?
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); }; }; then
6142  ac_cv_search_gethostbyname=$ac_res
6143else
6144  echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
6147
6148fi
6149
6150rm -f core conftest.err conftest.$ac_objext \
6151      conftest$ac_exeext
6152  if test "${ac_cv_search_gethostbyname+set}" = set; then
6153  break
6154fi
6155done
6156if test "${ac_cv_search_gethostbyname+set}" = set; then
6157  :
6158else
6159  ac_cv_search_gethostbyname=no
6160fi
6161rm conftest.$ac_ext
6162LIBS=$ac_func_search_save_LIBS
6163fi
6164{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6165echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6166ac_res=$ac_cv_search_gethostbyname
6167if test "$ac_res" != no; then
6168  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6169
6170fi
6171
6172
6173# Some systems (e.g. Solaris) have `socketpair' in libsocket.
6174{ echo "$as_me:$LINENO: checking for library containing socketpair" >&5
6175echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6; }
6176if test "${ac_cv_search_socketpair+set}" = set; then
6177  echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
6179  ac_func_search_save_LIBS=$LIBS
6180cat >conftest.$ac_ext <<_ACEOF
6181/* confdefs.h.  */
6182_ACEOF
6183cat confdefs.h >>conftest.$ac_ext
6184cat >>conftest.$ac_ext <<_ACEOF
6185/* end confdefs.h.  */
6186
6187/* Override any GCC internal prototype to avoid an error.
6188   Use char because int might match the return type of a GCC
6189   builtin and then its argument prototype would still apply.  */
6190#ifdef __cplusplus
6191extern "C"
6192#endif
6193char socketpair ();
6194int
6195main ()
6196{
6197return socketpair ();
6198  ;
6199  return 0;
6200}
6201_ACEOF
6202for ac_lib in '' socket; do
6203  if test -z "$ac_lib"; then
6204    ac_res="none required"
6205  else
6206    ac_res=-l$ac_lib
6207    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6208  fi
6209  rm -f conftest.$ac_objext conftest$ac_exeext
6210if { (ac_try="$ac_link"
6211case "(($ac_try" in
6212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213  *) ac_try_echo=$ac_try;;
6214esac
6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216  (eval "$ac_link") 2>conftest.er1
6217  ac_status=$?
6218  grep -v '^ *+' conftest.er1 >conftest.err
6219  rm -f conftest.er1
6220  cat conftest.err >&5
6221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222  (exit $ac_status); } &&
6223	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6224  { (case "(($ac_try" in
6225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226  *) ac_try_echo=$ac_try;;
6227esac
6228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229  (eval "$ac_try") 2>&5
6230  ac_status=$?
6231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232  (exit $ac_status); }; } &&
6233	 { ac_try='test -s conftest$ac_exeext'
6234  { (case "(($ac_try" in
6235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236  *) ac_try_echo=$ac_try;;
6237esac
6238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239  (eval "$ac_try") 2>&5
6240  ac_status=$?
6241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242  (exit $ac_status); }; }; then
6243  ac_cv_search_socketpair=$ac_res
6244else
6245  echo "$as_me: failed program was:" >&5
6246sed 's/^/| /' conftest.$ac_ext >&5
6247
6248
6249fi
6250
6251rm -f core conftest.err conftest.$ac_objext \
6252      conftest$ac_exeext
6253  if test "${ac_cv_search_socketpair+set}" = set; then
6254  break
6255fi
6256done
6257if test "${ac_cv_search_socketpair+set}" = set; then
6258  :
6259else
6260  ac_cv_search_socketpair=no
6261fi
6262rm conftest.$ac_ext
6263LIBS=$ac_func_search_save_LIBS
6264fi
6265{ echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
6266echo "${ECHO_T}$ac_cv_search_socketpair" >&6; }
6267ac_res=$ac_cv_search_socketpair
6268if test "$ac_res" != no; then
6269  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6270
6271fi
6272
6273
6274# For the TUI, we need enhanced curses functionality.
6275#
6276# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6277# curses library because the latter might not provide all the
6278# functionality we need.  However, this leads to problems on systems
6279# where the linker searches /usr/local/lib, but the compiler doesn't
6280# search /usr/local/include, if ncurses is installed in /usr/local.  A
6281# default installation of ncurses on alpha*-dec-osf* will lead to such
6282# a situation.
6283{ echo "$as_me:$LINENO: checking for library containing waddstr" >&5
6284echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6; }
6285if test "${ac_cv_search_waddstr+set}" = set; then
6286  echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288  ac_func_search_save_LIBS=$LIBS
6289cat >conftest.$ac_ext <<_ACEOF
6290/* confdefs.h.  */
6291_ACEOF
6292cat confdefs.h >>conftest.$ac_ext
6293cat >>conftest.$ac_ext <<_ACEOF
6294/* end confdefs.h.  */
6295
6296/* Override any GCC internal prototype to avoid an error.
6297   Use char because int might match the return type of a GCC
6298   builtin and then its argument prototype would still apply.  */
6299#ifdef __cplusplus
6300extern "C"
6301#endif
6302char waddstr ();
6303int
6304main ()
6305{
6306return waddstr ();
6307  ;
6308  return 0;
6309}
6310_ACEOF
6311for ac_lib in '' ncurses cursesX curses; do
6312  if test -z "$ac_lib"; then
6313    ac_res="none required"
6314  else
6315    ac_res=-l$ac_lib
6316    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6317  fi
6318  rm -f conftest.$ac_objext conftest$ac_exeext
6319if { (ac_try="$ac_link"
6320case "(($ac_try" in
6321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322  *) ac_try_echo=$ac_try;;
6323esac
6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325  (eval "$ac_link") 2>conftest.er1
6326  ac_status=$?
6327  grep -v '^ *+' conftest.er1 >conftest.err
6328  rm -f conftest.er1
6329  cat conftest.err >&5
6330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331  (exit $ac_status); } &&
6332	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6333  { (case "(($ac_try" in
6334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335  *) ac_try_echo=$ac_try;;
6336esac
6337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338  (eval "$ac_try") 2>&5
6339  ac_status=$?
6340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341  (exit $ac_status); }; } &&
6342	 { ac_try='test -s conftest$ac_exeext'
6343  { (case "(($ac_try" in
6344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345  *) ac_try_echo=$ac_try;;
6346esac
6347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348  (eval "$ac_try") 2>&5
6349  ac_status=$?
6350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351  (exit $ac_status); }; }; then
6352  ac_cv_search_waddstr=$ac_res
6353else
6354  echo "$as_me: failed program was:" >&5
6355sed 's/^/| /' conftest.$ac_ext >&5
6356
6357
6358fi
6359
6360rm -f core conftest.err conftest.$ac_objext \
6361      conftest$ac_exeext
6362  if test "${ac_cv_search_waddstr+set}" = set; then
6363  break
6364fi
6365done
6366if test "${ac_cv_search_waddstr+set}" = set; then
6367  :
6368else
6369  ac_cv_search_waddstr=no
6370fi
6371rm conftest.$ac_ext
6372LIBS=$ac_func_search_save_LIBS
6373fi
6374{ echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
6375echo "${ECHO_T}$ac_cv_search_waddstr" >&6; }
6376ac_res=$ac_cv_search_waddstr
6377if test "$ac_res" != no; then
6378  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6379
6380fi
6381
6382
6383# Since GDB uses Readline, we need termcap functionality.  In many
6384# cases this will be provided by the curses library, but some systems
6385# have a seperate termcap library, or no curses library at all.
6386
6387case $host_os in
6388  cygwin*)
6389    if test -d $srcdir/libtermcap; then
6390      LIBS="../libtermcap/libtermcap.a $LIBS"
6391      ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6392    fi ;;
6393  go32* | *djgpp*)
6394    ac_cv_search_tgetent="none required"
6395    ;;
6396esac
6397
6398# These are the libraries checked by Readline.
6399{ echo "$as_me:$LINENO: checking for library containing tgetent" >&5
6400echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
6401if test "${ac_cv_search_tgetent+set}" = set; then
6402  echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404  ac_func_search_save_LIBS=$LIBS
6405cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h.  */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h.  */
6411
6412/* Override any GCC internal prototype to avoid an error.
6413   Use char because int might match the return type of a GCC
6414   builtin and then its argument prototype would still apply.  */
6415#ifdef __cplusplus
6416extern "C"
6417#endif
6418char tgetent ();
6419int
6420main ()
6421{
6422return tgetent ();
6423  ;
6424  return 0;
6425}
6426_ACEOF
6427for ac_lib in '' termcap tinfo curses ncurses; do
6428  if test -z "$ac_lib"; then
6429    ac_res="none required"
6430  else
6431    ac_res=-l$ac_lib
6432    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6433  fi
6434  rm -f conftest.$ac_objext conftest$ac_exeext
6435if { (ac_try="$ac_link"
6436case "(($ac_try" in
6437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6438  *) ac_try_echo=$ac_try;;
6439esac
6440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6441  (eval "$ac_link") 2>conftest.er1
6442  ac_status=$?
6443  grep -v '^ *+' conftest.er1 >conftest.err
6444  rm -f conftest.er1
6445  cat conftest.err >&5
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); } &&
6448	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6449  { (case "(($ac_try" in
6450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451  *) ac_try_echo=$ac_try;;
6452esac
6453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454  (eval "$ac_try") 2>&5
6455  ac_status=$?
6456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457  (exit $ac_status); }; } &&
6458	 { ac_try='test -s conftest$ac_exeext'
6459  { (case "(($ac_try" in
6460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461  *) ac_try_echo=$ac_try;;
6462esac
6463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464  (eval "$ac_try") 2>&5
6465  ac_status=$?
6466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467  (exit $ac_status); }; }; then
6468  ac_cv_search_tgetent=$ac_res
6469else
6470  echo "$as_me: failed program was:" >&5
6471sed 's/^/| /' conftest.$ac_ext >&5
6472
6473
6474fi
6475
6476rm -f core conftest.err conftest.$ac_objext \
6477      conftest$ac_exeext
6478  if test "${ac_cv_search_tgetent+set}" = set; then
6479  break
6480fi
6481done
6482if test "${ac_cv_search_tgetent+set}" = set; then
6483  :
6484else
6485  ac_cv_search_tgetent=no
6486fi
6487rm conftest.$ac_ext
6488LIBS=$ac_func_search_save_LIBS
6489fi
6490{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
6491echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
6492ac_res=$ac_cv_search_tgetent
6493if test "$ac_res" != no; then
6494  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6495
6496fi
6497
6498
6499if test "$ac_cv_search_tgetent" = no; then
6500  { { echo "$as_me:$LINENO: error: no termcap library found" >&5
6501echo "$as_me: error: no termcap library found" >&2;}
6502   { (exit 1); exit 1; }; }
6503fi
6504
6505# ------------------------- #
6506# Checks for header files.  #
6507# ------------------------- #
6508
6509
6510
6511
6512
6513
6514ac_header_dirent=no
6515for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6516  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6517{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6518echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6520  echo $ECHO_N "(cached) $ECHO_C" >&6
6521else
6522  cat >conftest.$ac_ext <<_ACEOF
6523/* confdefs.h.  */
6524_ACEOF
6525cat confdefs.h >>conftest.$ac_ext
6526cat >>conftest.$ac_ext <<_ACEOF
6527/* end confdefs.h.  */
6528#include <sys/types.h>
6529#include <$ac_hdr>
6530
6531int
6532main ()
6533{
6534if ((DIR *) 0)
6535return 0;
6536  ;
6537  return 0;
6538}
6539_ACEOF
6540rm -f conftest.$ac_objext
6541if { (ac_try="$ac_compile"
6542case "(($ac_try" in
6543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544  *) ac_try_echo=$ac_try;;
6545esac
6546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547  (eval "$ac_compile") 2>conftest.er1
6548  ac_status=$?
6549  grep -v '^ *+' conftest.er1 >conftest.err
6550  rm -f conftest.er1
6551  cat conftest.err >&5
6552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553  (exit $ac_status); } &&
6554	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6555  { (case "(($ac_try" in
6556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557  *) ac_try_echo=$ac_try;;
6558esac
6559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6560  (eval "$ac_try") 2>&5
6561  ac_status=$?
6562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563  (exit $ac_status); }; } &&
6564	 { ac_try='test -s conftest.$ac_objext'
6565  { (case "(($ac_try" in
6566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567  *) ac_try_echo=$ac_try;;
6568esac
6569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6570  (eval "$ac_try") 2>&5
6571  ac_status=$?
6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); }; }; then
6574  eval "$as_ac_Header=yes"
6575else
6576  echo "$as_me: failed program was:" >&5
6577sed 's/^/| /' conftest.$ac_ext >&5
6578
6579	eval "$as_ac_Header=no"
6580fi
6581
6582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583fi
6584ac_res=`eval echo '${'$as_ac_Header'}'`
6585	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6586echo "${ECHO_T}$ac_res" >&6; }
6587if test `eval echo '${'$as_ac_Header'}'` = yes; then
6588  cat >>confdefs.h <<_ACEOF
6589#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6590_ACEOF
6591
6592ac_header_dirent=$ac_hdr; break
6593fi
6594
6595done
6596# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6597if test $ac_header_dirent = dirent.h; then
6598  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6599echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6600if test "${ac_cv_search_opendir+set}" = set; then
6601  echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603  ac_func_search_save_LIBS=$LIBS
6604cat >conftest.$ac_ext <<_ACEOF
6605/* confdefs.h.  */
6606_ACEOF
6607cat confdefs.h >>conftest.$ac_ext
6608cat >>conftest.$ac_ext <<_ACEOF
6609/* end confdefs.h.  */
6610
6611/* Override any GCC internal prototype to avoid an error.
6612   Use char because int might match the return type of a GCC
6613   builtin and then its argument prototype would still apply.  */
6614#ifdef __cplusplus
6615extern "C"
6616#endif
6617char opendir ();
6618int
6619main ()
6620{
6621return opendir ();
6622  ;
6623  return 0;
6624}
6625_ACEOF
6626for ac_lib in '' dir; do
6627  if test -z "$ac_lib"; then
6628    ac_res="none required"
6629  else
6630    ac_res=-l$ac_lib
6631    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6632  fi
6633  rm -f conftest.$ac_objext conftest$ac_exeext
6634if { (ac_try="$ac_link"
6635case "(($ac_try" in
6636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637  *) ac_try_echo=$ac_try;;
6638esac
6639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640  (eval "$ac_link") 2>conftest.er1
6641  ac_status=$?
6642  grep -v '^ *+' conftest.er1 >conftest.err
6643  rm -f conftest.er1
6644  cat conftest.err >&5
6645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646  (exit $ac_status); } &&
6647	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6648  { (case "(($ac_try" in
6649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650  *) ac_try_echo=$ac_try;;
6651esac
6652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653  (eval "$ac_try") 2>&5
6654  ac_status=$?
6655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656  (exit $ac_status); }; } &&
6657	 { ac_try='test -s conftest$ac_exeext'
6658  { (case "(($ac_try" in
6659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660  *) ac_try_echo=$ac_try;;
6661esac
6662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663  (eval "$ac_try") 2>&5
6664  ac_status=$?
6665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666  (exit $ac_status); }; }; then
6667  ac_cv_search_opendir=$ac_res
6668else
6669  echo "$as_me: failed program was:" >&5
6670sed 's/^/| /' conftest.$ac_ext >&5
6671
6672
6673fi
6674
6675rm -f core conftest.err conftest.$ac_objext \
6676      conftest$ac_exeext
6677  if test "${ac_cv_search_opendir+set}" = set; then
6678  break
6679fi
6680done
6681if test "${ac_cv_search_opendir+set}" = set; then
6682  :
6683else
6684  ac_cv_search_opendir=no
6685fi
6686rm conftest.$ac_ext
6687LIBS=$ac_func_search_save_LIBS
6688fi
6689{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6690echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6691ac_res=$ac_cv_search_opendir
6692if test "$ac_res" != no; then
6693  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6694
6695fi
6696
6697else
6698  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6699echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6700if test "${ac_cv_search_opendir+set}" = set; then
6701  echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703  ac_func_search_save_LIBS=$LIBS
6704cat >conftest.$ac_ext <<_ACEOF
6705/* confdefs.h.  */
6706_ACEOF
6707cat confdefs.h >>conftest.$ac_ext
6708cat >>conftest.$ac_ext <<_ACEOF
6709/* end confdefs.h.  */
6710
6711/* Override any GCC internal prototype to avoid an error.
6712   Use char because int might match the return type of a GCC
6713   builtin and then its argument prototype would still apply.  */
6714#ifdef __cplusplus
6715extern "C"
6716#endif
6717char opendir ();
6718int
6719main ()
6720{
6721return opendir ();
6722  ;
6723  return 0;
6724}
6725_ACEOF
6726for ac_lib in '' x; do
6727  if test -z "$ac_lib"; then
6728    ac_res="none required"
6729  else
6730    ac_res=-l$ac_lib
6731    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6732  fi
6733  rm -f conftest.$ac_objext conftest$ac_exeext
6734if { (ac_try="$ac_link"
6735case "(($ac_try" in
6736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737  *) ac_try_echo=$ac_try;;
6738esac
6739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740  (eval "$ac_link") 2>conftest.er1
6741  ac_status=$?
6742  grep -v '^ *+' conftest.er1 >conftest.err
6743  rm -f conftest.er1
6744  cat conftest.err >&5
6745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746  (exit $ac_status); } &&
6747	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6748  { (case "(($ac_try" in
6749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750  *) ac_try_echo=$ac_try;;
6751esac
6752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753  (eval "$ac_try") 2>&5
6754  ac_status=$?
6755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756  (exit $ac_status); }; } &&
6757	 { ac_try='test -s conftest$ac_exeext'
6758  { (case "(($ac_try" in
6759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760  *) ac_try_echo=$ac_try;;
6761esac
6762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763  (eval "$ac_try") 2>&5
6764  ac_status=$?
6765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766  (exit $ac_status); }; }; then
6767  ac_cv_search_opendir=$ac_res
6768else
6769  echo "$as_me: failed program was:" >&5
6770sed 's/^/| /' conftest.$ac_ext >&5
6771
6772
6773fi
6774
6775rm -f core conftest.err conftest.$ac_objext \
6776      conftest$ac_exeext
6777  if test "${ac_cv_search_opendir+set}" = set; then
6778  break
6779fi
6780done
6781if test "${ac_cv_search_opendir+set}" = set; then
6782  :
6783else
6784  ac_cv_search_opendir=no
6785fi
6786rm conftest.$ac_ext
6787LIBS=$ac_func_search_save_LIBS
6788fi
6789{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6790echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6791ac_res=$ac_cv_search_opendir
6792if test "$ac_res" != no; then
6793  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6794
6795fi
6796
6797fi
6798
6799{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6800echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6801if test "${ac_cv_header_stat_broken+set}" = set; then
6802  echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804  cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h.  */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h.  */
6810#include <sys/types.h>
6811#include <sys/stat.h>
6812
6813#if defined S_ISBLK && defined S_IFDIR
6814# if S_ISBLK (S_IFDIR)
6815You lose.
6816# endif
6817#endif
6818
6819#if defined S_ISBLK && defined S_IFCHR
6820# if S_ISBLK (S_IFCHR)
6821You lose.
6822# endif
6823#endif
6824
6825#if defined S_ISLNK && defined S_IFREG
6826# if S_ISLNK (S_IFREG)
6827You lose.
6828# endif
6829#endif
6830
6831#if defined S_ISSOCK && defined S_IFREG
6832# if S_ISSOCK (S_IFREG)
6833You lose.
6834# endif
6835#endif
6836
6837_ACEOF
6838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839  $EGREP "You lose" >/dev/null 2>&1; then
6840  ac_cv_header_stat_broken=yes
6841else
6842  ac_cv_header_stat_broken=no
6843fi
6844rm -f conftest*
6845
6846fi
6847{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6848echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6849if test $ac_cv_header_stat_broken = yes; then
6850
6851cat >>confdefs.h <<\_ACEOF
6852#define STAT_MACROS_BROKEN 1
6853_ACEOF
6854
6855fi
6856
6857{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6858echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6859if test "${ac_cv_header_stdc+set}" = set; then
6860  echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862  cat >conftest.$ac_ext <<_ACEOF
6863/* confdefs.h.  */
6864_ACEOF
6865cat confdefs.h >>conftest.$ac_ext
6866cat >>conftest.$ac_ext <<_ACEOF
6867/* end confdefs.h.  */
6868#include <stdlib.h>
6869#include <stdarg.h>
6870#include <string.h>
6871#include <float.h>
6872
6873int
6874main ()
6875{
6876
6877  ;
6878  return 0;
6879}
6880_ACEOF
6881rm -f conftest.$ac_objext
6882if { (ac_try="$ac_compile"
6883case "(($ac_try" in
6884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885  *) ac_try_echo=$ac_try;;
6886esac
6887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888  (eval "$ac_compile") 2>conftest.er1
6889  ac_status=$?
6890  grep -v '^ *+' conftest.er1 >conftest.err
6891  rm -f conftest.er1
6892  cat conftest.err >&5
6893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894  (exit $ac_status); } &&
6895	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6896  { (case "(($ac_try" in
6897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898  *) ac_try_echo=$ac_try;;
6899esac
6900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901  (eval "$ac_try") 2>&5
6902  ac_status=$?
6903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904  (exit $ac_status); }; } &&
6905	 { ac_try='test -s conftest.$ac_objext'
6906  { (case "(($ac_try" in
6907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908  *) ac_try_echo=$ac_try;;
6909esac
6910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911  (eval "$ac_try") 2>&5
6912  ac_status=$?
6913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914  (exit $ac_status); }; }; then
6915  ac_cv_header_stdc=yes
6916else
6917  echo "$as_me: failed program was:" >&5
6918sed 's/^/| /' conftest.$ac_ext >&5
6919
6920	ac_cv_header_stdc=no
6921fi
6922
6923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924
6925if test $ac_cv_header_stdc = yes; then
6926  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6927  cat >conftest.$ac_ext <<_ACEOF
6928/* confdefs.h.  */
6929_ACEOF
6930cat confdefs.h >>conftest.$ac_ext
6931cat >>conftest.$ac_ext <<_ACEOF
6932/* end confdefs.h.  */
6933#include <string.h>
6934
6935_ACEOF
6936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6937  $EGREP "memchr" >/dev/null 2>&1; then
6938  :
6939else
6940  ac_cv_header_stdc=no
6941fi
6942rm -f conftest*
6943
6944fi
6945
6946if test $ac_cv_header_stdc = yes; then
6947  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6948  cat >conftest.$ac_ext <<_ACEOF
6949/* confdefs.h.  */
6950_ACEOF
6951cat confdefs.h >>conftest.$ac_ext
6952cat >>conftest.$ac_ext <<_ACEOF
6953/* end confdefs.h.  */
6954#include <stdlib.h>
6955
6956_ACEOF
6957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958  $EGREP "free" >/dev/null 2>&1; then
6959  :
6960else
6961  ac_cv_header_stdc=no
6962fi
6963rm -f conftest*
6964
6965fi
6966
6967if test $ac_cv_header_stdc = yes; then
6968  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6969  if test "$cross_compiling" = yes; then
6970  :
6971else
6972  cat >conftest.$ac_ext <<_ACEOF
6973/* confdefs.h.  */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h.  */
6978#include <ctype.h>
6979#include <stdlib.h>
6980#if ((' ' & 0x0FF) == 0x020)
6981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6983#else
6984# define ISLOWER(c) \
6985		   (('a' <= (c) && (c) <= 'i') \
6986		     || ('j' <= (c) && (c) <= 'r') \
6987		     || ('s' <= (c) && (c) <= 'z'))
6988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6989#endif
6990
6991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6992int
6993main ()
6994{
6995  int i;
6996  for (i = 0; i < 256; i++)
6997    if (XOR (islower (i), ISLOWER (i))
6998	|| toupper (i) != TOUPPER (i))
6999      return 2;
7000  return 0;
7001}
7002_ACEOF
7003rm -f conftest$ac_exeext
7004if { (ac_try="$ac_link"
7005case "(($ac_try" in
7006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007  *) ac_try_echo=$ac_try;;
7008esac
7009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010  (eval "$ac_link") 2>&5
7011  ac_status=$?
7012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7014  { (case "(($ac_try" in
7015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016  *) ac_try_echo=$ac_try;;
7017esac
7018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019  (eval "$ac_try") 2>&5
7020  ac_status=$?
7021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022  (exit $ac_status); }; }; then
7023  :
7024else
7025  echo "$as_me: program exited with status $ac_status" >&5
7026echo "$as_me: failed program was:" >&5
7027sed 's/^/| /' conftest.$ac_ext >&5
7028
7029( exit $ac_status )
7030ac_cv_header_stdc=no
7031fi
7032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7033fi
7034
7035
7036fi
7037fi
7038{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7039echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7040if test $ac_cv_header_stdc = yes; then
7041
7042cat >>confdefs.h <<\_ACEOF
7043#define STDC_HEADERS 1
7044_ACEOF
7045
7046fi
7047
7048
7049for ac_header in nlist.h
7050do
7051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7053  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7056  echo $ECHO_N "(cached) $ECHO_C" >&6
7057fi
7058ac_res=`eval echo '${'$as_ac_Header'}'`
7059	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7060echo "${ECHO_T}$ac_res" >&6; }
7061else
7062  # Is the header compilable?
7063{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&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 <$ac_header>
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081  (eval "$ac_compile") 2>conftest.er1
7082  ac_status=$?
7083  grep -v '^ *+' conftest.er1 >conftest.err
7084  rm -f conftest.er1
7085  cat conftest.err >&5
7086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087  (exit $ac_status); } &&
7088	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7089  { (case "(($ac_try" in
7090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091  *) ac_try_echo=$ac_try;;
7092esac
7093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094  (eval "$ac_try") 2>&5
7095  ac_status=$?
7096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097  (exit $ac_status); }; } &&
7098	 { ac_try='test -s conftest.$ac_objext'
7099  { (case "(($ac_try" in
7100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101  *) ac_try_echo=$ac_try;;
7102esac
7103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104  (eval "$ac_try") 2>&5
7105  ac_status=$?
7106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107  (exit $ac_status); }; }; then
7108  ac_header_compiler=yes
7109else
7110  echo "$as_me: failed program was:" >&5
7111sed 's/^/| /' conftest.$ac_ext >&5
7112
7113	ac_header_compiler=no
7114fi
7115
7116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7118echo "${ECHO_T}$ac_header_compiler" >&6; }
7119
7120# Is the header present?
7121{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7123cat >conftest.$ac_ext <<_ACEOF
7124/* confdefs.h.  */
7125_ACEOF
7126cat confdefs.h >>conftest.$ac_ext
7127cat >>conftest.$ac_ext <<_ACEOF
7128/* end confdefs.h.  */
7129#include <$ac_header>
7130_ACEOF
7131if { (ac_try="$ac_cpp conftest.$ac_ext"
7132case "(($ac_try" in
7133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134  *) ac_try_echo=$ac_try;;
7135esac
7136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7138  ac_status=$?
7139  grep -v '^ *+' conftest.er1 >conftest.err
7140  rm -f conftest.er1
7141  cat conftest.err >&5
7142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143  (exit $ac_status); } >/dev/null; then
7144  if test -s conftest.err; then
7145    ac_cpp_err=$ac_c_preproc_warn_flag
7146    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7147  else
7148    ac_cpp_err=
7149  fi
7150else
7151  ac_cpp_err=yes
7152fi
7153if test -z "$ac_cpp_err"; then
7154  ac_header_preproc=yes
7155else
7156  echo "$as_me: failed program was:" >&5
7157sed 's/^/| /' conftest.$ac_ext >&5
7158
7159  ac_header_preproc=no
7160fi
7161
7162rm -f conftest.err conftest.$ac_ext
7163{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7164echo "${ECHO_T}$ac_header_preproc" >&6; }
7165
7166# So?  What about this header?
7167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7168  yes:no: )
7169    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7171    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7173    ac_header_preproc=yes
7174    ;;
7175  no:yes:* )
7176    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7178    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7179echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7180    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7182    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7183echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7184    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7186    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7188
7189    ;;
7190esac
7191{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7194  echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196  eval "$as_ac_Header=\$ac_header_preproc"
7197fi
7198ac_res=`eval echo '${'$as_ac_Header'}'`
7199	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7200echo "${ECHO_T}$ac_res" >&6; }
7201
7202fi
7203if test `eval echo '${'$as_ac_Header'}'` = yes; then
7204  cat >>confdefs.h <<_ACEOF
7205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7206_ACEOF
7207
7208fi
7209
7210done
7211
7212
7213for ac_header in link.h
7214do
7215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7216{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7219  echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221  cat >conftest.$ac_ext <<_ACEOF
7222/* confdefs.h.  */
7223_ACEOF
7224cat confdefs.h >>conftest.$ac_ext
7225cat >>conftest.$ac_ext <<_ACEOF
7226/* end confdefs.h.  */
7227#if HAVE_SYS_TYPES_H
7228# include <sys/types.h>
7229#endif
7230#if HAVE_NLIST_H
7231# include <nlist.h>
7232#endif
7233
7234
7235#include <$ac_header>
7236_ACEOF
7237rm -f conftest.$ac_objext
7238if { (ac_try="$ac_compile"
7239case "(($ac_try" in
7240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241  *) ac_try_echo=$ac_try;;
7242esac
7243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244  (eval "$ac_compile") 2>conftest.er1
7245  ac_status=$?
7246  grep -v '^ *+' conftest.er1 >conftest.err
7247  rm -f conftest.er1
7248  cat conftest.err >&5
7249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250  (exit $ac_status); } &&
7251	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7252  { (case "(($ac_try" in
7253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254  *) ac_try_echo=$ac_try;;
7255esac
7256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257  (eval "$ac_try") 2>&5
7258  ac_status=$?
7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260  (exit $ac_status); }; } &&
7261	 { ac_try='test -s conftest.$ac_objext'
7262  { (case "(($ac_try" in
7263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7264  *) ac_try_echo=$ac_try;;
7265esac
7266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267  (eval "$ac_try") 2>&5
7268  ac_status=$?
7269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270  (exit $ac_status); }; }; then
7271  eval "$as_ac_Header=yes"
7272else
7273  echo "$as_me: failed program was:" >&5
7274sed 's/^/| /' conftest.$ac_ext >&5
7275
7276	eval "$as_ac_Header=no"
7277fi
7278
7279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280fi
7281ac_res=`eval echo '${'$as_ac_Header'}'`
7282	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7283echo "${ECHO_T}$ac_res" >&6; }
7284if test `eval echo '${'$as_ac_Header'}'` = yes; then
7285  cat >>confdefs.h <<_ACEOF
7286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7287_ACEOF
7288
7289fi
7290
7291done
7292
7293
7294for ac_header in machine/reg.h
7295do
7296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7298  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7301  echo $ECHO_N "(cached) $ECHO_C" >&6
7302fi
7303ac_res=`eval echo '${'$as_ac_Header'}'`
7304	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7305echo "${ECHO_T}$ac_res" >&6; }
7306else
7307  # Is the header compilable?
7308{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7310cat >conftest.$ac_ext <<_ACEOF
7311/* confdefs.h.  */
7312_ACEOF
7313cat confdefs.h >>conftest.$ac_ext
7314cat >>conftest.$ac_ext <<_ACEOF
7315/* end confdefs.h.  */
7316$ac_includes_default
7317#include <$ac_header>
7318_ACEOF
7319rm -f conftest.$ac_objext
7320if { (ac_try="$ac_compile"
7321case "(($ac_try" in
7322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323  *) ac_try_echo=$ac_try;;
7324esac
7325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326  (eval "$ac_compile") 2>conftest.er1
7327  ac_status=$?
7328  grep -v '^ *+' conftest.er1 >conftest.err
7329  rm -f conftest.er1
7330  cat conftest.err >&5
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); } &&
7333	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7334  { (case "(($ac_try" in
7335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7336  *) ac_try_echo=$ac_try;;
7337esac
7338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7339  (eval "$ac_try") 2>&5
7340  ac_status=$?
7341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342  (exit $ac_status); }; } &&
7343	 { ac_try='test -s conftest.$ac_objext'
7344  { (case "(($ac_try" in
7345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346  *) ac_try_echo=$ac_try;;
7347esac
7348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349  (eval "$ac_try") 2>&5
7350  ac_status=$?
7351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352  (exit $ac_status); }; }; then
7353  ac_header_compiler=yes
7354else
7355  echo "$as_me: failed program was:" >&5
7356sed 's/^/| /' conftest.$ac_ext >&5
7357
7358	ac_header_compiler=no
7359fi
7360
7361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7363echo "${ECHO_T}$ac_header_compiler" >&6; }
7364
7365# Is the header present?
7366{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7367echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7368cat >conftest.$ac_ext <<_ACEOF
7369/* confdefs.h.  */
7370_ACEOF
7371cat confdefs.h >>conftest.$ac_ext
7372cat >>conftest.$ac_ext <<_ACEOF
7373/* end confdefs.h.  */
7374#include <$ac_header>
7375_ACEOF
7376if { (ac_try="$ac_cpp conftest.$ac_ext"
7377case "(($ac_try" in
7378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379  *) ac_try_echo=$ac_try;;
7380esac
7381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7383  ac_status=$?
7384  grep -v '^ *+' conftest.er1 >conftest.err
7385  rm -f conftest.er1
7386  cat conftest.err >&5
7387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388  (exit $ac_status); } >/dev/null; then
7389  if test -s conftest.err; then
7390    ac_cpp_err=$ac_c_preproc_warn_flag
7391    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7392  else
7393    ac_cpp_err=
7394  fi
7395else
7396  ac_cpp_err=yes
7397fi
7398if test -z "$ac_cpp_err"; then
7399  ac_header_preproc=yes
7400else
7401  echo "$as_me: failed program was:" >&5
7402sed 's/^/| /' conftest.$ac_ext >&5
7403
7404  ac_header_preproc=no
7405fi
7406
7407rm -f conftest.err conftest.$ac_ext
7408{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7409echo "${ECHO_T}$ac_header_preproc" >&6; }
7410
7411# So?  What about this header?
7412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7413  yes:no: )
7414    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7416    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7418    ac_header_preproc=yes
7419    ;;
7420  no:yes:* )
7421    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7423    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7424echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7425    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7427    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7428echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7429    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7431    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7433
7434    ;;
7435esac
7436{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7439  echo $ECHO_N "(cached) $ECHO_C" >&6
7440else
7441  eval "$as_ac_Header=\$ac_header_preproc"
7442fi
7443ac_res=`eval echo '${'$as_ac_Header'}'`
7444	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7445echo "${ECHO_T}$ac_res" >&6; }
7446
7447fi
7448if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449  cat >>confdefs.h <<_ACEOF
7450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7451_ACEOF
7452
7453fi
7454
7455done
7456
7457
7458
7459for ac_header in poll.h sys/poll.h
7460do
7461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7463  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7466  echo $ECHO_N "(cached) $ECHO_C" >&6
7467fi
7468ac_res=`eval echo '${'$as_ac_Header'}'`
7469	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7470echo "${ECHO_T}$ac_res" >&6; }
7471else
7472  # Is the header compilable?
7473{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7474echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7475cat >conftest.$ac_ext <<_ACEOF
7476/* confdefs.h.  */
7477_ACEOF
7478cat confdefs.h >>conftest.$ac_ext
7479cat >>conftest.$ac_ext <<_ACEOF
7480/* end confdefs.h.  */
7481$ac_includes_default
7482#include <$ac_header>
7483_ACEOF
7484rm -f conftest.$ac_objext
7485if { (ac_try="$ac_compile"
7486case "(($ac_try" in
7487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7488  *) ac_try_echo=$ac_try;;
7489esac
7490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7491  (eval "$ac_compile") 2>conftest.er1
7492  ac_status=$?
7493  grep -v '^ *+' conftest.er1 >conftest.err
7494  rm -f conftest.er1
7495  cat conftest.err >&5
7496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497  (exit $ac_status); } &&
7498	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7499  { (case "(($ac_try" in
7500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501  *) ac_try_echo=$ac_try;;
7502esac
7503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7504  (eval "$ac_try") 2>&5
7505  ac_status=$?
7506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507  (exit $ac_status); }; } &&
7508	 { ac_try='test -s conftest.$ac_objext'
7509  { (case "(($ac_try" in
7510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7511  *) ac_try_echo=$ac_try;;
7512esac
7513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7514  (eval "$ac_try") 2>&5
7515  ac_status=$?
7516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517  (exit $ac_status); }; }; then
7518  ac_header_compiler=yes
7519else
7520  echo "$as_me: failed program was:" >&5
7521sed 's/^/| /' conftest.$ac_ext >&5
7522
7523	ac_header_compiler=no
7524fi
7525
7526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7528echo "${ECHO_T}$ac_header_compiler" >&6; }
7529
7530# Is the header present?
7531{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7533cat >conftest.$ac_ext <<_ACEOF
7534/* confdefs.h.  */
7535_ACEOF
7536cat confdefs.h >>conftest.$ac_ext
7537cat >>conftest.$ac_ext <<_ACEOF
7538/* end confdefs.h.  */
7539#include <$ac_header>
7540_ACEOF
7541if { (ac_try="$ac_cpp conftest.$ac_ext"
7542case "(($ac_try" in
7543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544  *) ac_try_echo=$ac_try;;
7545esac
7546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7548  ac_status=$?
7549  grep -v '^ *+' conftest.er1 >conftest.err
7550  rm -f conftest.er1
7551  cat conftest.err >&5
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); } >/dev/null; then
7554  if test -s conftest.err; then
7555    ac_cpp_err=$ac_c_preproc_warn_flag
7556    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7557  else
7558    ac_cpp_err=
7559  fi
7560else
7561  ac_cpp_err=yes
7562fi
7563if test -z "$ac_cpp_err"; then
7564  ac_header_preproc=yes
7565else
7566  echo "$as_me: failed program was:" >&5
7567sed 's/^/| /' conftest.$ac_ext >&5
7568
7569  ac_header_preproc=no
7570fi
7571
7572rm -f conftest.err conftest.$ac_ext
7573{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7574echo "${ECHO_T}$ac_header_preproc" >&6; }
7575
7576# So?  What about this header?
7577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7578  yes:no: )
7579    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7581    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7583    ac_header_preproc=yes
7584    ;;
7585  no:yes:* )
7586    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7588    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7589echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7590    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7592    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7593echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7594    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7596    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7598
7599    ;;
7600esac
7601{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7604  echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606  eval "$as_ac_Header=\$ac_header_preproc"
7607fi
7608ac_res=`eval echo '${'$as_ac_Header'}'`
7609	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7610echo "${ECHO_T}$ac_res" >&6; }
7611
7612fi
7613if test `eval echo '${'$as_ac_Header'}'` = yes; then
7614  cat >>confdefs.h <<_ACEOF
7615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7616_ACEOF
7617
7618fi
7619
7620done
7621
7622
7623
7624
7625for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7626do
7627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7629  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7632  echo $ECHO_N "(cached) $ECHO_C" >&6
7633fi
7634ac_res=`eval echo '${'$as_ac_Header'}'`
7635	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7636echo "${ECHO_T}$ac_res" >&6; }
7637else
7638  # Is the header compilable?
7639{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7641cat >conftest.$ac_ext <<_ACEOF
7642/* confdefs.h.  */
7643_ACEOF
7644cat confdefs.h >>conftest.$ac_ext
7645cat >>conftest.$ac_ext <<_ACEOF
7646/* end confdefs.h.  */
7647$ac_includes_default
7648#include <$ac_header>
7649_ACEOF
7650rm -f conftest.$ac_objext
7651if { (ac_try="$ac_compile"
7652case "(($ac_try" in
7653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654  *) ac_try_echo=$ac_try;;
7655esac
7656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657  (eval "$ac_compile") 2>conftest.er1
7658  ac_status=$?
7659  grep -v '^ *+' conftest.er1 >conftest.err
7660  rm -f conftest.er1
7661  cat conftest.err >&5
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); } &&
7664	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7665  { (case "(($ac_try" in
7666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667  *) ac_try_echo=$ac_try;;
7668esac
7669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7670  (eval "$ac_try") 2>&5
7671  ac_status=$?
7672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673  (exit $ac_status); }; } &&
7674	 { ac_try='test -s conftest.$ac_objext'
7675  { (case "(($ac_try" in
7676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677  *) ac_try_echo=$ac_try;;
7678esac
7679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680  (eval "$ac_try") 2>&5
7681  ac_status=$?
7682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683  (exit $ac_status); }; }; then
7684  ac_header_compiler=yes
7685else
7686  echo "$as_me: failed program was:" >&5
7687sed 's/^/| /' conftest.$ac_ext >&5
7688
7689	ac_header_compiler=no
7690fi
7691
7692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7694echo "${ECHO_T}$ac_header_compiler" >&6; }
7695
7696# Is the header present?
7697{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7698echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7699cat >conftest.$ac_ext <<_ACEOF
7700/* confdefs.h.  */
7701_ACEOF
7702cat confdefs.h >>conftest.$ac_ext
7703cat >>conftest.$ac_ext <<_ACEOF
7704/* end confdefs.h.  */
7705#include <$ac_header>
7706_ACEOF
7707if { (ac_try="$ac_cpp conftest.$ac_ext"
7708case "(($ac_try" in
7709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710  *) ac_try_echo=$ac_try;;
7711esac
7712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7713  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7714  ac_status=$?
7715  grep -v '^ *+' conftest.er1 >conftest.err
7716  rm -f conftest.er1
7717  cat conftest.err >&5
7718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719  (exit $ac_status); } >/dev/null; then
7720  if test -s conftest.err; then
7721    ac_cpp_err=$ac_c_preproc_warn_flag
7722    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7723  else
7724    ac_cpp_err=
7725  fi
7726else
7727  ac_cpp_err=yes
7728fi
7729if test -z "$ac_cpp_err"; then
7730  ac_header_preproc=yes
7731else
7732  echo "$as_me: failed program was:" >&5
7733sed 's/^/| /' conftest.$ac_ext >&5
7734
7735  ac_header_preproc=no
7736fi
7737
7738rm -f conftest.err conftest.$ac_ext
7739{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7740echo "${ECHO_T}$ac_header_preproc" >&6; }
7741
7742# So?  What about this header?
7743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7744  yes:no: )
7745    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7746echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7747    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7748echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7749    ac_header_preproc=yes
7750    ;;
7751  no:yes:* )
7752    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7753echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7754    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7755echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7756    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7757echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7758    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7759echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7760    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7761echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7762    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7763echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7764
7765    ;;
7766esac
7767{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7770  echo $ECHO_N "(cached) $ECHO_C" >&6
7771else
7772  eval "$as_ac_Header=\$ac_header_preproc"
7773fi
7774ac_res=`eval echo '${'$as_ac_Header'}'`
7775	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7776echo "${ECHO_T}$ac_res" >&6; }
7777
7778fi
7779if test `eval echo '${'$as_ac_Header'}'` = yes; then
7780  cat >>confdefs.h <<_ACEOF
7781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7782_ACEOF
7783
7784fi
7785
7786done
7787
7788
7789for ac_header in stddef.h
7790do
7791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7793  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7796  echo $ECHO_N "(cached) $ECHO_C" >&6
7797fi
7798ac_res=`eval echo '${'$as_ac_Header'}'`
7799	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7800echo "${ECHO_T}$ac_res" >&6; }
7801else
7802  # Is the header compilable?
7803{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7805cat >conftest.$ac_ext <<_ACEOF
7806/* confdefs.h.  */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h.  */
7811$ac_includes_default
7812#include <$ac_header>
7813_ACEOF
7814rm -f conftest.$ac_objext
7815if { (ac_try="$ac_compile"
7816case "(($ac_try" in
7817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818  *) ac_try_echo=$ac_try;;
7819esac
7820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821  (eval "$ac_compile") 2>conftest.er1
7822  ac_status=$?
7823  grep -v '^ *+' conftest.er1 >conftest.err
7824  rm -f conftest.er1
7825  cat conftest.err >&5
7826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827  (exit $ac_status); } &&
7828	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7829  { (case "(($ac_try" in
7830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831  *) ac_try_echo=$ac_try;;
7832esac
7833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834  (eval "$ac_try") 2>&5
7835  ac_status=$?
7836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837  (exit $ac_status); }; } &&
7838	 { ac_try='test -s conftest.$ac_objext'
7839  { (case "(($ac_try" in
7840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841  *) ac_try_echo=$ac_try;;
7842esac
7843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844  (eval "$ac_try") 2>&5
7845  ac_status=$?
7846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847  (exit $ac_status); }; }; then
7848  ac_header_compiler=yes
7849else
7850  echo "$as_me: failed program was:" >&5
7851sed 's/^/| /' conftest.$ac_ext >&5
7852
7853	ac_header_compiler=no
7854fi
7855
7856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7858echo "${ECHO_T}$ac_header_compiler" >&6; }
7859
7860# Is the header present?
7861{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7863cat >conftest.$ac_ext <<_ACEOF
7864/* confdefs.h.  */
7865_ACEOF
7866cat confdefs.h >>conftest.$ac_ext
7867cat >>conftest.$ac_ext <<_ACEOF
7868/* end confdefs.h.  */
7869#include <$ac_header>
7870_ACEOF
7871if { (ac_try="$ac_cpp conftest.$ac_ext"
7872case "(($ac_try" in
7873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874  *) ac_try_echo=$ac_try;;
7875esac
7876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7878  ac_status=$?
7879  grep -v '^ *+' conftest.er1 >conftest.err
7880  rm -f conftest.er1
7881  cat conftest.err >&5
7882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883  (exit $ac_status); } >/dev/null; then
7884  if test -s conftest.err; then
7885    ac_cpp_err=$ac_c_preproc_warn_flag
7886    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7887  else
7888    ac_cpp_err=
7889  fi
7890else
7891  ac_cpp_err=yes
7892fi
7893if test -z "$ac_cpp_err"; then
7894  ac_header_preproc=yes
7895else
7896  echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
7899  ac_header_preproc=no
7900fi
7901
7902rm -f conftest.err conftest.$ac_ext
7903{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7904echo "${ECHO_T}$ac_header_preproc" >&6; }
7905
7906# So?  What about this header?
7907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7908  yes:no: )
7909    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7911    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7913    ac_header_preproc=yes
7914    ;;
7915  no:yes:* )
7916    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7918    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7919echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7920    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7922    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7923echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7924    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7926    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7928
7929    ;;
7930esac
7931{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7934  echo $ECHO_N "(cached) $ECHO_C" >&6
7935else
7936  eval "$as_ac_Header=\$ac_header_preproc"
7937fi
7938ac_res=`eval echo '${'$as_ac_Header'}'`
7939	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7940echo "${ECHO_T}$ac_res" >&6; }
7941
7942fi
7943if test `eval echo '${'$as_ac_Header'}'` = yes; then
7944  cat >>confdefs.h <<_ACEOF
7945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7946_ACEOF
7947
7948fi
7949
7950done
7951
7952
7953for ac_header in stdlib.h
7954do
7955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7957  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7960  echo $ECHO_N "(cached) $ECHO_C" >&6
7961fi
7962ac_res=`eval echo '${'$as_ac_Header'}'`
7963	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7964echo "${ECHO_T}$ac_res" >&6; }
7965else
7966  # Is the header compilable?
7967{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7969cat >conftest.$ac_ext <<_ACEOF
7970/* confdefs.h.  */
7971_ACEOF
7972cat confdefs.h >>conftest.$ac_ext
7973cat >>conftest.$ac_ext <<_ACEOF
7974/* end confdefs.h.  */
7975$ac_includes_default
7976#include <$ac_header>
7977_ACEOF
7978rm -f conftest.$ac_objext
7979if { (ac_try="$ac_compile"
7980case "(($ac_try" in
7981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982  *) ac_try_echo=$ac_try;;
7983esac
7984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985  (eval "$ac_compile") 2>conftest.er1
7986  ac_status=$?
7987  grep -v '^ *+' conftest.er1 >conftest.err
7988  rm -f conftest.er1
7989  cat conftest.err >&5
7990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991  (exit $ac_status); } &&
7992	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7993  { (case "(($ac_try" in
7994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7995  *) ac_try_echo=$ac_try;;
7996esac
7997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7998  (eval "$ac_try") 2>&5
7999  ac_status=$?
8000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001  (exit $ac_status); }; } &&
8002	 { ac_try='test -s conftest.$ac_objext'
8003  { (case "(($ac_try" in
8004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005  *) ac_try_echo=$ac_try;;
8006esac
8007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008  (eval "$ac_try") 2>&5
8009  ac_status=$?
8010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011  (exit $ac_status); }; }; then
8012  ac_header_compiler=yes
8013else
8014  echo "$as_me: failed program was:" >&5
8015sed 's/^/| /' conftest.$ac_ext >&5
8016
8017	ac_header_compiler=no
8018fi
8019
8020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8022echo "${ECHO_T}$ac_header_compiler" >&6; }
8023
8024# Is the header present?
8025{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8026echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8027cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h.  */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h.  */
8033#include <$ac_header>
8034_ACEOF
8035if { (ac_try="$ac_cpp conftest.$ac_ext"
8036case "(($ac_try" in
8037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038  *) ac_try_echo=$ac_try;;
8039esac
8040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8042  ac_status=$?
8043  grep -v '^ *+' conftest.er1 >conftest.err
8044  rm -f conftest.er1
8045  cat conftest.err >&5
8046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047  (exit $ac_status); } >/dev/null; then
8048  if test -s conftest.err; then
8049    ac_cpp_err=$ac_c_preproc_warn_flag
8050    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8051  else
8052    ac_cpp_err=
8053  fi
8054else
8055  ac_cpp_err=yes
8056fi
8057if test -z "$ac_cpp_err"; then
8058  ac_header_preproc=yes
8059else
8060  echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063  ac_header_preproc=no
8064fi
8065
8066rm -f conftest.err conftest.$ac_ext
8067{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8068echo "${ECHO_T}$ac_header_preproc" >&6; }
8069
8070# So?  What about this header?
8071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8072  yes:no: )
8073    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8075    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8077    ac_header_preproc=yes
8078    ;;
8079  no:yes:* )
8080    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8082    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8083echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8084    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8086    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8087echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8088    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8090    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8092
8093    ;;
8094esac
8095{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8098  echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100  eval "$as_ac_Header=\$ac_header_preproc"
8101fi
8102ac_res=`eval echo '${'$as_ac_Header'}'`
8103	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8104echo "${ECHO_T}$ac_res" >&6; }
8105
8106fi
8107if test `eval echo '${'$as_ac_Header'}'` = yes; then
8108  cat >>confdefs.h <<_ACEOF
8109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8110_ACEOF
8111
8112fi
8113
8114done
8115
8116
8117for ac_header in stdint.h
8118do
8119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8121  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8124  echo $ECHO_N "(cached) $ECHO_C" >&6
8125fi
8126ac_res=`eval echo '${'$as_ac_Header'}'`
8127	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8128echo "${ECHO_T}$ac_res" >&6; }
8129else
8130  # Is the header compilable?
8131{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8133cat >conftest.$ac_ext <<_ACEOF
8134/* confdefs.h.  */
8135_ACEOF
8136cat confdefs.h >>conftest.$ac_ext
8137cat >>conftest.$ac_ext <<_ACEOF
8138/* end confdefs.h.  */
8139$ac_includes_default
8140#include <$ac_header>
8141_ACEOF
8142rm -f conftest.$ac_objext
8143if { (ac_try="$ac_compile"
8144case "(($ac_try" in
8145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146  *) ac_try_echo=$ac_try;;
8147esac
8148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149  (eval "$ac_compile") 2>conftest.er1
8150  ac_status=$?
8151  grep -v '^ *+' conftest.er1 >conftest.err
8152  rm -f conftest.er1
8153  cat conftest.err >&5
8154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155  (exit $ac_status); } &&
8156	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8157  { (case "(($ac_try" in
8158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159  *) ac_try_echo=$ac_try;;
8160esac
8161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162  (eval "$ac_try") 2>&5
8163  ac_status=$?
8164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165  (exit $ac_status); }; } &&
8166	 { ac_try='test -s conftest.$ac_objext'
8167  { (case "(($ac_try" in
8168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169  *) ac_try_echo=$ac_try;;
8170esac
8171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172  (eval "$ac_try") 2>&5
8173  ac_status=$?
8174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175  (exit $ac_status); }; }; then
8176  ac_header_compiler=yes
8177else
8178  echo "$as_me: failed program was:" >&5
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
8181	ac_header_compiler=no
8182fi
8183
8184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8186echo "${ECHO_T}$ac_header_compiler" >&6; }
8187
8188# Is the header present?
8189{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8190echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8191cat >conftest.$ac_ext <<_ACEOF
8192/* confdefs.h.  */
8193_ACEOF
8194cat confdefs.h >>conftest.$ac_ext
8195cat >>conftest.$ac_ext <<_ACEOF
8196/* end confdefs.h.  */
8197#include <$ac_header>
8198_ACEOF
8199if { (ac_try="$ac_cpp conftest.$ac_ext"
8200case "(($ac_try" in
8201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202  *) ac_try_echo=$ac_try;;
8203esac
8204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8206  ac_status=$?
8207  grep -v '^ *+' conftest.er1 >conftest.err
8208  rm -f conftest.er1
8209  cat conftest.err >&5
8210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211  (exit $ac_status); } >/dev/null; then
8212  if test -s conftest.err; then
8213    ac_cpp_err=$ac_c_preproc_warn_flag
8214    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8215  else
8216    ac_cpp_err=
8217  fi
8218else
8219  ac_cpp_err=yes
8220fi
8221if test -z "$ac_cpp_err"; then
8222  ac_header_preproc=yes
8223else
8224  echo "$as_me: failed program was:" >&5
8225sed 's/^/| /' conftest.$ac_ext >&5
8226
8227  ac_header_preproc=no
8228fi
8229
8230rm -f conftest.err conftest.$ac_ext
8231{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8232echo "${ECHO_T}$ac_header_preproc" >&6; }
8233
8234# So?  What about this header?
8235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8236  yes:no: )
8237    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8238echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8239    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8240echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8241    ac_header_preproc=yes
8242    ;;
8243  no:yes:* )
8244    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8245echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8246    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8247echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8248    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8249echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8250    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8251echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8252    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8253echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8254    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8255echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8256
8257    ;;
8258esac
8259{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8262  echo $ECHO_N "(cached) $ECHO_C" >&6
8263else
8264  eval "$as_ac_Header=\$ac_header_preproc"
8265fi
8266ac_res=`eval echo '${'$as_ac_Header'}'`
8267	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8268echo "${ECHO_T}$ac_res" >&6; }
8269
8270fi
8271if test `eval echo '${'$as_ac_Header'}'` = yes; then
8272  cat >>confdefs.h <<_ACEOF
8273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8274_ACEOF
8275
8276fi
8277
8278done
8279
8280
8281
8282
8283for ac_header in string.h memory.h strings.h
8284do
8285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8287  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8290  echo $ECHO_N "(cached) $ECHO_C" >&6
8291fi
8292ac_res=`eval echo '${'$as_ac_Header'}'`
8293	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8294echo "${ECHO_T}$ac_res" >&6; }
8295else
8296  # Is the header compilable?
8297{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8299cat >conftest.$ac_ext <<_ACEOF
8300/* confdefs.h.  */
8301_ACEOF
8302cat confdefs.h >>conftest.$ac_ext
8303cat >>conftest.$ac_ext <<_ACEOF
8304/* end confdefs.h.  */
8305$ac_includes_default
8306#include <$ac_header>
8307_ACEOF
8308rm -f conftest.$ac_objext
8309if { (ac_try="$ac_compile"
8310case "(($ac_try" in
8311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312  *) ac_try_echo=$ac_try;;
8313esac
8314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315  (eval "$ac_compile") 2>conftest.er1
8316  ac_status=$?
8317  grep -v '^ *+' conftest.er1 >conftest.err
8318  rm -f conftest.er1
8319  cat conftest.err >&5
8320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321  (exit $ac_status); } &&
8322	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8323  { (case "(($ac_try" in
8324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325  *) ac_try_echo=$ac_try;;
8326esac
8327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328  (eval "$ac_try") 2>&5
8329  ac_status=$?
8330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331  (exit $ac_status); }; } &&
8332	 { ac_try='test -s conftest.$ac_objext'
8333  { (case "(($ac_try" in
8334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335  *) ac_try_echo=$ac_try;;
8336esac
8337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338  (eval "$ac_try") 2>&5
8339  ac_status=$?
8340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341  (exit $ac_status); }; }; then
8342  ac_header_compiler=yes
8343else
8344  echo "$as_me: failed program was:" >&5
8345sed 's/^/| /' conftest.$ac_ext >&5
8346
8347	ac_header_compiler=no
8348fi
8349
8350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8352echo "${ECHO_T}$ac_header_compiler" >&6; }
8353
8354# Is the header present?
8355{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8356echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8357cat >conftest.$ac_ext <<_ACEOF
8358/* confdefs.h.  */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h.  */
8363#include <$ac_header>
8364_ACEOF
8365if { (ac_try="$ac_cpp conftest.$ac_ext"
8366case "(($ac_try" in
8367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368  *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8372  ac_status=$?
8373  grep -v '^ *+' conftest.er1 >conftest.err
8374  rm -f conftest.er1
8375  cat conftest.err >&5
8376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377  (exit $ac_status); } >/dev/null; then
8378  if test -s conftest.err; then
8379    ac_cpp_err=$ac_c_preproc_warn_flag
8380    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8381  else
8382    ac_cpp_err=
8383  fi
8384else
8385  ac_cpp_err=yes
8386fi
8387if test -z "$ac_cpp_err"; then
8388  ac_header_preproc=yes
8389else
8390  echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393  ac_header_preproc=no
8394fi
8395
8396rm -f conftest.err conftest.$ac_ext
8397{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8398echo "${ECHO_T}$ac_header_preproc" >&6; }
8399
8400# So?  What about this header?
8401case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8402  yes:no: )
8403    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8404echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8405    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8406echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8407    ac_header_preproc=yes
8408    ;;
8409  no:yes:* )
8410    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8411echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8412    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8413echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8414    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8415echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8416    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8417echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8418    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8419echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8420    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8421echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8422
8423    ;;
8424esac
8425{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8428  echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430  eval "$as_ac_Header=\$ac_header_preproc"
8431fi
8432ac_res=`eval echo '${'$as_ac_Header'}'`
8433	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8434echo "${ECHO_T}$ac_res" >&6; }
8435
8436fi
8437if test `eval echo '${'$as_ac_Header'}'` = yes; then
8438  cat >>confdefs.h <<_ACEOF
8439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8440_ACEOF
8441
8442fi
8443
8444done
8445
8446
8447for ac_header in sys/fault.h
8448do
8449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8451  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8454  echo $ECHO_N "(cached) $ECHO_C" >&6
8455fi
8456ac_res=`eval echo '${'$as_ac_Header'}'`
8457	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8458echo "${ECHO_T}$ac_res" >&6; }
8459else
8460  # Is the header compilable?
8461{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8463cat >conftest.$ac_ext <<_ACEOF
8464/* confdefs.h.  */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h.  */
8469$ac_includes_default
8470#include <$ac_header>
8471_ACEOF
8472rm -f conftest.$ac_objext
8473if { (ac_try="$ac_compile"
8474case "(($ac_try" in
8475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476  *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479  (eval "$ac_compile") 2>conftest.er1
8480  ac_status=$?
8481  grep -v '^ *+' conftest.er1 >conftest.err
8482  rm -f conftest.er1
8483  cat conftest.err >&5
8484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485  (exit $ac_status); } &&
8486	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487  { (case "(($ac_try" in
8488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489  *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492  (eval "$ac_try") 2>&5
8493  ac_status=$?
8494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495  (exit $ac_status); }; } &&
8496	 { ac_try='test -s conftest.$ac_objext'
8497  { (case "(($ac_try" in
8498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499  *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502  (eval "$ac_try") 2>&5
8503  ac_status=$?
8504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505  (exit $ac_status); }; }; then
8506  ac_header_compiler=yes
8507else
8508  echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511	ac_header_compiler=no
8512fi
8513
8514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8516echo "${ECHO_T}$ac_header_compiler" >&6; }
8517
8518# Is the header present?
8519{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8521cat >conftest.$ac_ext <<_ACEOF
8522/* confdefs.h.  */
8523_ACEOF
8524cat confdefs.h >>conftest.$ac_ext
8525cat >>conftest.$ac_ext <<_ACEOF
8526/* end confdefs.h.  */
8527#include <$ac_header>
8528_ACEOF
8529if { (ac_try="$ac_cpp conftest.$ac_ext"
8530case "(($ac_try" in
8531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532  *) ac_try_echo=$ac_try;;
8533esac
8534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8536  ac_status=$?
8537  grep -v '^ *+' conftest.er1 >conftest.err
8538  rm -f conftest.er1
8539  cat conftest.err >&5
8540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541  (exit $ac_status); } >/dev/null; then
8542  if test -s conftest.err; then
8543    ac_cpp_err=$ac_c_preproc_warn_flag
8544    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8545  else
8546    ac_cpp_err=
8547  fi
8548else
8549  ac_cpp_err=yes
8550fi
8551if test -z "$ac_cpp_err"; then
8552  ac_header_preproc=yes
8553else
8554  echo "$as_me: failed program was:" >&5
8555sed 's/^/| /' conftest.$ac_ext >&5
8556
8557  ac_header_preproc=no
8558fi
8559
8560rm -f conftest.err conftest.$ac_ext
8561{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8562echo "${ECHO_T}$ac_header_preproc" >&6; }
8563
8564# So?  What about this header?
8565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8566  yes:no: )
8567    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8569    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8571    ac_header_preproc=yes
8572    ;;
8573  no:yes:* )
8574    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8576    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8577echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8578    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8580    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8581echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8582    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8584    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8586
8587    ;;
8588esac
8589{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8592  echo $ECHO_N "(cached) $ECHO_C" >&6
8593else
8594  eval "$as_ac_Header=\$ac_header_preproc"
8595fi
8596ac_res=`eval echo '${'$as_ac_Header'}'`
8597	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8598echo "${ECHO_T}$ac_res" >&6; }
8599
8600fi
8601if test `eval echo '${'$as_ac_Header'}'` = yes; then
8602  cat >>confdefs.h <<_ACEOF
8603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8604_ACEOF
8605
8606fi
8607
8608done
8609
8610
8611for ac_header in sys/file.h
8612do
8613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8615  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8618  echo $ECHO_N "(cached) $ECHO_C" >&6
8619fi
8620ac_res=`eval echo '${'$as_ac_Header'}'`
8621	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8622echo "${ECHO_T}$ac_res" >&6; }
8623else
8624  # Is the header compilable?
8625{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8627cat >conftest.$ac_ext <<_ACEOF
8628/* confdefs.h.  */
8629_ACEOF
8630cat confdefs.h >>conftest.$ac_ext
8631cat >>conftest.$ac_ext <<_ACEOF
8632/* end confdefs.h.  */
8633$ac_includes_default
8634#include <$ac_header>
8635_ACEOF
8636rm -f conftest.$ac_objext
8637if { (ac_try="$ac_compile"
8638case "(($ac_try" in
8639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640  *) ac_try_echo=$ac_try;;
8641esac
8642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643  (eval "$ac_compile") 2>conftest.er1
8644  ac_status=$?
8645  grep -v '^ *+' conftest.er1 >conftest.err
8646  rm -f conftest.er1
8647  cat conftest.err >&5
8648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649  (exit $ac_status); } &&
8650	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8651  { (case "(($ac_try" in
8652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653  *) ac_try_echo=$ac_try;;
8654esac
8655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656  (eval "$ac_try") 2>&5
8657  ac_status=$?
8658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659  (exit $ac_status); }; } &&
8660	 { ac_try='test -s conftest.$ac_objext'
8661  { (case "(($ac_try" in
8662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663  *) ac_try_echo=$ac_try;;
8664esac
8665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8666  (eval "$ac_try") 2>&5
8667  ac_status=$?
8668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669  (exit $ac_status); }; }; then
8670  ac_header_compiler=yes
8671else
8672  echo "$as_me: failed program was:" >&5
8673sed 's/^/| /' conftest.$ac_ext >&5
8674
8675	ac_header_compiler=no
8676fi
8677
8678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8680echo "${ECHO_T}$ac_header_compiler" >&6; }
8681
8682# Is the header present?
8683{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8685cat >conftest.$ac_ext <<_ACEOF
8686/* confdefs.h.  */
8687_ACEOF
8688cat confdefs.h >>conftest.$ac_ext
8689cat >>conftest.$ac_ext <<_ACEOF
8690/* end confdefs.h.  */
8691#include <$ac_header>
8692_ACEOF
8693if { (ac_try="$ac_cpp conftest.$ac_ext"
8694case "(($ac_try" in
8695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696  *) ac_try_echo=$ac_try;;
8697esac
8698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8700  ac_status=$?
8701  grep -v '^ *+' conftest.er1 >conftest.err
8702  rm -f conftest.er1
8703  cat conftest.err >&5
8704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705  (exit $ac_status); } >/dev/null; then
8706  if test -s conftest.err; then
8707    ac_cpp_err=$ac_c_preproc_warn_flag
8708    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8709  else
8710    ac_cpp_err=
8711  fi
8712else
8713  ac_cpp_err=yes
8714fi
8715if test -z "$ac_cpp_err"; then
8716  ac_header_preproc=yes
8717else
8718  echo "$as_me: failed program was:" >&5
8719sed 's/^/| /' conftest.$ac_ext >&5
8720
8721  ac_header_preproc=no
8722fi
8723
8724rm -f conftest.err conftest.$ac_ext
8725{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8726echo "${ECHO_T}$ac_header_preproc" >&6; }
8727
8728# So?  What about this header?
8729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8730  yes:no: )
8731    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8733    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8735    ac_header_preproc=yes
8736    ;;
8737  no:yes:* )
8738    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8740    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8741echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8742    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8744    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8745echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8746    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8748    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8750
8751    ;;
8752esac
8753{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8756  echo $ECHO_N "(cached) $ECHO_C" >&6
8757else
8758  eval "$as_ac_Header=\$ac_header_preproc"
8759fi
8760ac_res=`eval echo '${'$as_ac_Header'}'`
8761	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8762echo "${ECHO_T}$ac_res" >&6; }
8763
8764fi
8765if test `eval echo '${'$as_ac_Header'}'` = yes; then
8766  cat >>confdefs.h <<_ACEOF
8767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8768_ACEOF
8769
8770fi
8771
8772done
8773
8774
8775for ac_header in sys/filio.h
8776do
8777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8779  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8782  echo $ECHO_N "(cached) $ECHO_C" >&6
8783fi
8784ac_res=`eval echo '${'$as_ac_Header'}'`
8785	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8786echo "${ECHO_T}$ac_res" >&6; }
8787else
8788  # Is the header compilable?
8789{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8791cat >conftest.$ac_ext <<_ACEOF
8792/* confdefs.h.  */
8793_ACEOF
8794cat confdefs.h >>conftest.$ac_ext
8795cat >>conftest.$ac_ext <<_ACEOF
8796/* end confdefs.h.  */
8797$ac_includes_default
8798#include <$ac_header>
8799_ACEOF
8800rm -f conftest.$ac_objext
8801if { (ac_try="$ac_compile"
8802case "(($ac_try" in
8803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804  *) ac_try_echo=$ac_try;;
8805esac
8806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807  (eval "$ac_compile") 2>conftest.er1
8808  ac_status=$?
8809  grep -v '^ *+' conftest.er1 >conftest.err
8810  rm -f conftest.er1
8811  cat conftest.err >&5
8812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813  (exit $ac_status); } &&
8814	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8815  { (case "(($ac_try" in
8816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817  *) ac_try_echo=$ac_try;;
8818esac
8819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820  (eval "$ac_try") 2>&5
8821  ac_status=$?
8822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823  (exit $ac_status); }; } &&
8824	 { ac_try='test -s conftest.$ac_objext'
8825  { (case "(($ac_try" in
8826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827  *) ac_try_echo=$ac_try;;
8828esac
8829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830  (eval "$ac_try") 2>&5
8831  ac_status=$?
8832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833  (exit $ac_status); }; }; then
8834  ac_header_compiler=yes
8835else
8836  echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839	ac_header_compiler=no
8840fi
8841
8842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8844echo "${ECHO_T}$ac_header_compiler" >&6; }
8845
8846# Is the header present?
8847{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8848echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8849cat >conftest.$ac_ext <<_ACEOF
8850/* confdefs.h.  */
8851_ACEOF
8852cat confdefs.h >>conftest.$ac_ext
8853cat >>conftest.$ac_ext <<_ACEOF
8854/* end confdefs.h.  */
8855#include <$ac_header>
8856_ACEOF
8857if { (ac_try="$ac_cpp conftest.$ac_ext"
8858case "(($ac_try" in
8859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860  *) ac_try_echo=$ac_try;;
8861esac
8862eval "echo \"\$as_me:$LINENO: $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  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869  (exit $ac_status); } >/dev/null; then
8870  if test -s conftest.err; then
8871    ac_cpp_err=$ac_c_preproc_warn_flag
8872    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8873  else
8874    ac_cpp_err=
8875  fi
8876else
8877  ac_cpp_err=yes
8878fi
8879if test -z "$ac_cpp_err"; then
8880  ac_header_preproc=yes
8881else
8882  echo "$as_me: failed program was:" >&5
8883sed 's/^/| /' conftest.$ac_ext >&5
8884
8885  ac_header_preproc=no
8886fi
8887
8888rm -f conftest.err conftest.$ac_ext
8889{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8890echo "${ECHO_T}$ac_header_preproc" >&6; }
8891
8892# So?  What about this header?
8893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8894  yes:no: )
8895    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8896echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8897    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8898echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8899    ac_header_preproc=yes
8900    ;;
8901  no:yes:* )
8902    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8903echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8904    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8905echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8906    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8907echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8908    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8909echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8910    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8911echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8912    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8913echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8914
8915    ;;
8916esac
8917{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8920  echo $ECHO_N "(cached) $ECHO_C" >&6
8921else
8922  eval "$as_ac_Header=\$ac_header_preproc"
8923fi
8924ac_res=`eval echo '${'$as_ac_Header'}'`
8925	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8926echo "${ECHO_T}$ac_res" >&6; }
8927
8928fi
8929if test `eval echo '${'$as_ac_Header'}'` = yes; then
8930  cat >>confdefs.h <<_ACEOF
8931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8932_ACEOF
8933
8934fi
8935
8936done
8937
8938
8939for ac_header in sys/ioctl.h
8940do
8941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8943  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8946  echo $ECHO_N "(cached) $ECHO_C" >&6
8947fi
8948ac_res=`eval echo '${'$as_ac_Header'}'`
8949	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8950echo "${ECHO_T}$ac_res" >&6; }
8951else
8952  # Is the header compilable?
8953{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8955cat >conftest.$ac_ext <<_ACEOF
8956/* confdefs.h.  */
8957_ACEOF
8958cat confdefs.h >>conftest.$ac_ext
8959cat >>conftest.$ac_ext <<_ACEOF
8960/* end confdefs.h.  */
8961$ac_includes_default
8962#include <$ac_header>
8963_ACEOF
8964rm -f conftest.$ac_objext
8965if { (ac_try="$ac_compile"
8966case "(($ac_try" in
8967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968  *) ac_try_echo=$ac_try;;
8969esac
8970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971  (eval "$ac_compile") 2>conftest.er1
8972  ac_status=$?
8973  grep -v '^ *+' conftest.er1 >conftest.err
8974  rm -f conftest.er1
8975  cat conftest.err >&5
8976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977  (exit $ac_status); } &&
8978	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8979  { (case "(($ac_try" in
8980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981  *) ac_try_echo=$ac_try;;
8982esac
8983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984  (eval "$ac_try") 2>&5
8985  ac_status=$?
8986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987  (exit $ac_status); }; } &&
8988	 { ac_try='test -s conftest.$ac_objext'
8989  { (case "(($ac_try" in
8990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991  *) ac_try_echo=$ac_try;;
8992esac
8993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994  (eval "$ac_try") 2>&5
8995  ac_status=$?
8996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997  (exit $ac_status); }; }; then
8998  ac_header_compiler=yes
8999else
9000  echo "$as_me: failed program was:" >&5
9001sed 's/^/| /' conftest.$ac_ext >&5
9002
9003	ac_header_compiler=no
9004fi
9005
9006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9008echo "${ECHO_T}$ac_header_compiler" >&6; }
9009
9010# Is the header present?
9011{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9013cat >conftest.$ac_ext <<_ACEOF
9014/* confdefs.h.  */
9015_ACEOF
9016cat confdefs.h >>conftest.$ac_ext
9017cat >>conftest.$ac_ext <<_ACEOF
9018/* end confdefs.h.  */
9019#include <$ac_header>
9020_ACEOF
9021if { (ac_try="$ac_cpp conftest.$ac_ext"
9022case "(($ac_try" in
9023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024  *) ac_try_echo=$ac_try;;
9025esac
9026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9028  ac_status=$?
9029  grep -v '^ *+' conftest.er1 >conftest.err
9030  rm -f conftest.er1
9031  cat conftest.err >&5
9032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033  (exit $ac_status); } >/dev/null; then
9034  if test -s conftest.err; then
9035    ac_cpp_err=$ac_c_preproc_warn_flag
9036    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9037  else
9038    ac_cpp_err=
9039  fi
9040else
9041  ac_cpp_err=yes
9042fi
9043if test -z "$ac_cpp_err"; then
9044  ac_header_preproc=yes
9045else
9046  echo "$as_me: failed program was:" >&5
9047sed 's/^/| /' conftest.$ac_ext >&5
9048
9049  ac_header_preproc=no
9050fi
9051
9052rm -f conftest.err conftest.$ac_ext
9053{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9054echo "${ECHO_T}$ac_header_preproc" >&6; }
9055
9056# So?  What about this header?
9057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9058  yes:no: )
9059    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9061    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9062echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9063    ac_header_preproc=yes
9064    ;;
9065  no:yes:* )
9066    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9067echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9068    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9069echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9070    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9071echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9072    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9073echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9074    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9076    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9077echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9078
9079    ;;
9080esac
9081{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9084  echo $ECHO_N "(cached) $ECHO_C" >&6
9085else
9086  eval "$as_ac_Header=\$ac_header_preproc"
9087fi
9088ac_res=`eval echo '${'$as_ac_Header'}'`
9089	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9090echo "${ECHO_T}$ac_res" >&6; }
9091
9092fi
9093if test `eval echo '${'$as_ac_Header'}'` = yes; then
9094  cat >>confdefs.h <<_ACEOF
9095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9096_ACEOF
9097
9098fi
9099
9100done
9101
9102
9103for ac_header in sys/param.h
9104do
9105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9107  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9110  echo $ECHO_N "(cached) $ECHO_C" >&6
9111fi
9112ac_res=`eval echo '${'$as_ac_Header'}'`
9113	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9114echo "${ECHO_T}$ac_res" >&6; }
9115else
9116  # Is the header compilable?
9117{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9118echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9119cat >conftest.$ac_ext <<_ACEOF
9120/* confdefs.h.  */
9121_ACEOF
9122cat confdefs.h >>conftest.$ac_ext
9123cat >>conftest.$ac_ext <<_ACEOF
9124/* end confdefs.h.  */
9125$ac_includes_default
9126#include <$ac_header>
9127_ACEOF
9128rm -f conftest.$ac_objext
9129if { (ac_try="$ac_compile"
9130case "(($ac_try" in
9131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132  *) ac_try_echo=$ac_try;;
9133esac
9134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135  (eval "$ac_compile") 2>conftest.er1
9136  ac_status=$?
9137  grep -v '^ *+' conftest.er1 >conftest.err
9138  rm -f conftest.er1
9139  cat conftest.err >&5
9140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141  (exit $ac_status); } &&
9142	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9143  { (case "(($ac_try" in
9144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145  *) ac_try_echo=$ac_try;;
9146esac
9147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148  (eval "$ac_try") 2>&5
9149  ac_status=$?
9150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151  (exit $ac_status); }; } &&
9152	 { ac_try='test -s conftest.$ac_objext'
9153  { (case "(($ac_try" in
9154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155  *) ac_try_echo=$ac_try;;
9156esac
9157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158  (eval "$ac_try") 2>&5
9159  ac_status=$?
9160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161  (exit $ac_status); }; }; then
9162  ac_header_compiler=yes
9163else
9164  echo "$as_me: failed program was:" >&5
9165sed 's/^/| /' conftest.$ac_ext >&5
9166
9167	ac_header_compiler=no
9168fi
9169
9170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9172echo "${ECHO_T}$ac_header_compiler" >&6; }
9173
9174# Is the header present?
9175{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9177cat >conftest.$ac_ext <<_ACEOF
9178/* confdefs.h.  */
9179_ACEOF
9180cat confdefs.h >>conftest.$ac_ext
9181cat >>conftest.$ac_ext <<_ACEOF
9182/* end confdefs.h.  */
9183#include <$ac_header>
9184_ACEOF
9185if { (ac_try="$ac_cpp conftest.$ac_ext"
9186case "(($ac_try" in
9187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188  *) ac_try_echo=$ac_try;;
9189esac
9190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9192  ac_status=$?
9193  grep -v '^ *+' conftest.er1 >conftest.err
9194  rm -f conftest.er1
9195  cat conftest.err >&5
9196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197  (exit $ac_status); } >/dev/null; then
9198  if test -s conftest.err; then
9199    ac_cpp_err=$ac_c_preproc_warn_flag
9200    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9201  else
9202    ac_cpp_err=
9203  fi
9204else
9205  ac_cpp_err=yes
9206fi
9207if test -z "$ac_cpp_err"; then
9208  ac_header_preproc=yes
9209else
9210  echo "$as_me: failed program was:" >&5
9211sed 's/^/| /' conftest.$ac_ext >&5
9212
9213  ac_header_preproc=no
9214fi
9215
9216rm -f conftest.err conftest.$ac_ext
9217{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9218echo "${ECHO_T}$ac_header_preproc" >&6; }
9219
9220# So?  What about this header?
9221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9222  yes:no: )
9223    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9225    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9226echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9227    ac_header_preproc=yes
9228    ;;
9229  no:yes:* )
9230    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9231echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9232    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9233echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9234    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9235echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9236    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9237echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9238    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9240    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9241echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9242
9243    ;;
9244esac
9245{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9248  echo $ECHO_N "(cached) $ECHO_C" >&6
9249else
9250  eval "$as_ac_Header=\$ac_header_preproc"
9251fi
9252ac_res=`eval echo '${'$as_ac_Header'}'`
9253	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9254echo "${ECHO_T}$ac_res" >&6; }
9255
9256fi
9257if test `eval echo '${'$as_ac_Header'}'` = yes; then
9258  cat >>confdefs.h <<_ACEOF
9259#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9260_ACEOF
9261
9262fi
9263
9264done
9265
9266
9267for ac_header in sys/proc.h
9268do
9269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9270{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9273  echo $ECHO_N "(cached) $ECHO_C" >&6
9274else
9275  cat >conftest.$ac_ext <<_ACEOF
9276/* confdefs.h.  */
9277_ACEOF
9278cat confdefs.h >>conftest.$ac_ext
9279cat >>conftest.$ac_ext <<_ACEOF
9280/* end confdefs.h.  */
9281#if HAVE_SYS_PARAM_H
9282# include <sys/param.h>
9283#endif
9284
9285
9286#include <$ac_header>
9287_ACEOF
9288rm -f conftest.$ac_objext
9289if { (ac_try="$ac_compile"
9290case "(($ac_try" in
9291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9292  *) ac_try_echo=$ac_try;;
9293esac
9294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9295  (eval "$ac_compile") 2>conftest.er1
9296  ac_status=$?
9297  grep -v '^ *+' conftest.er1 >conftest.err
9298  rm -f conftest.er1
9299  cat conftest.err >&5
9300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301  (exit $ac_status); } &&
9302	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9303  { (case "(($ac_try" in
9304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305  *) ac_try_echo=$ac_try;;
9306esac
9307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308  (eval "$ac_try") 2>&5
9309  ac_status=$?
9310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311  (exit $ac_status); }; } &&
9312	 { ac_try='test -s conftest.$ac_objext'
9313  { (case "(($ac_try" in
9314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315  *) ac_try_echo=$ac_try;;
9316esac
9317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318  (eval "$ac_try") 2>&5
9319  ac_status=$?
9320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321  (exit $ac_status); }; }; then
9322  eval "$as_ac_Header=yes"
9323else
9324  echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
9327	eval "$as_ac_Header=no"
9328fi
9329
9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331fi
9332ac_res=`eval echo '${'$as_ac_Header'}'`
9333	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9334echo "${ECHO_T}$ac_res" >&6; }
9335if test `eval echo '${'$as_ac_Header'}'` = yes; then
9336  cat >>confdefs.h <<_ACEOF
9337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9338_ACEOF
9339
9340fi
9341
9342done
9343
9344
9345for ac_header in sys/procfs.h
9346do
9347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9349  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9352  echo $ECHO_N "(cached) $ECHO_C" >&6
9353fi
9354ac_res=`eval echo '${'$as_ac_Header'}'`
9355	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9356echo "${ECHO_T}$ac_res" >&6; }
9357else
9358  # Is the header compilable?
9359{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9361cat >conftest.$ac_ext <<_ACEOF
9362/* confdefs.h.  */
9363_ACEOF
9364cat confdefs.h >>conftest.$ac_ext
9365cat >>conftest.$ac_ext <<_ACEOF
9366/* end confdefs.h.  */
9367$ac_includes_default
9368#include <$ac_header>
9369_ACEOF
9370rm -f conftest.$ac_objext
9371if { (ac_try="$ac_compile"
9372case "(($ac_try" in
9373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374  *) ac_try_echo=$ac_try;;
9375esac
9376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377  (eval "$ac_compile") 2>conftest.er1
9378  ac_status=$?
9379  grep -v '^ *+' conftest.er1 >conftest.err
9380  rm -f conftest.er1
9381  cat conftest.err >&5
9382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383  (exit $ac_status); } &&
9384	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9385  { (case "(($ac_try" in
9386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387  *) ac_try_echo=$ac_try;;
9388esac
9389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390  (eval "$ac_try") 2>&5
9391  ac_status=$?
9392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393  (exit $ac_status); }; } &&
9394	 { ac_try='test -s conftest.$ac_objext'
9395  { (case "(($ac_try" in
9396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397  *) ac_try_echo=$ac_try;;
9398esac
9399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400  (eval "$ac_try") 2>&5
9401  ac_status=$?
9402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403  (exit $ac_status); }; }; then
9404  ac_header_compiler=yes
9405else
9406  echo "$as_me: failed program was:" >&5
9407sed 's/^/| /' conftest.$ac_ext >&5
9408
9409	ac_header_compiler=no
9410fi
9411
9412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9414echo "${ECHO_T}$ac_header_compiler" >&6; }
9415
9416# Is the header present?
9417{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9419cat >conftest.$ac_ext <<_ACEOF
9420/* confdefs.h.  */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h.  */
9425#include <$ac_header>
9426_ACEOF
9427if { (ac_try="$ac_cpp conftest.$ac_ext"
9428case "(($ac_try" in
9429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430  *) ac_try_echo=$ac_try;;
9431esac
9432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9434  ac_status=$?
9435  grep -v '^ *+' conftest.er1 >conftest.err
9436  rm -f conftest.er1
9437  cat conftest.err >&5
9438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439  (exit $ac_status); } >/dev/null; then
9440  if test -s conftest.err; then
9441    ac_cpp_err=$ac_c_preproc_warn_flag
9442    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9443  else
9444    ac_cpp_err=
9445  fi
9446else
9447  ac_cpp_err=yes
9448fi
9449if test -z "$ac_cpp_err"; then
9450  ac_header_preproc=yes
9451else
9452  echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
9455  ac_header_preproc=no
9456fi
9457
9458rm -f conftest.err conftest.$ac_ext
9459{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9460echo "${ECHO_T}$ac_header_preproc" >&6; }
9461
9462# So?  What about this header?
9463case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9464  yes:no: )
9465    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9466echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9467    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9468echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9469    ac_header_preproc=yes
9470    ;;
9471  no:yes:* )
9472    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9473echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9474    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9475echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9476    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9477echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9478    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9479echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9480    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9482    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9483echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9484
9485    ;;
9486esac
9487{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9490  echo $ECHO_N "(cached) $ECHO_C" >&6
9491else
9492  eval "$as_ac_Header=\$ac_header_preproc"
9493fi
9494ac_res=`eval echo '${'$as_ac_Header'}'`
9495	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9496echo "${ECHO_T}$ac_res" >&6; }
9497
9498fi
9499if test `eval echo '${'$as_ac_Header'}'` = yes; then
9500  cat >>confdefs.h <<_ACEOF
9501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9502_ACEOF
9503
9504fi
9505
9506done
9507
9508
9509
9510for ac_header in sys/ptrace.h ptrace.h
9511do
9512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9514  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9517  echo $ECHO_N "(cached) $ECHO_C" >&6
9518fi
9519ac_res=`eval echo '${'$as_ac_Header'}'`
9520	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9521echo "${ECHO_T}$ac_res" >&6; }
9522else
9523  # Is the header compilable?
9524{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9526cat >conftest.$ac_ext <<_ACEOF
9527/* confdefs.h.  */
9528_ACEOF
9529cat confdefs.h >>conftest.$ac_ext
9530cat >>conftest.$ac_ext <<_ACEOF
9531/* end confdefs.h.  */
9532$ac_includes_default
9533#include <$ac_header>
9534_ACEOF
9535rm -f conftest.$ac_objext
9536if { (ac_try="$ac_compile"
9537case "(($ac_try" in
9538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539  *) ac_try_echo=$ac_try;;
9540esac
9541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542  (eval "$ac_compile") 2>conftest.er1
9543  ac_status=$?
9544  grep -v '^ *+' conftest.er1 >conftest.err
9545  rm -f conftest.er1
9546  cat conftest.err >&5
9547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548  (exit $ac_status); } &&
9549	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9550  { (case "(($ac_try" in
9551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552  *) ac_try_echo=$ac_try;;
9553esac
9554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555  (eval "$ac_try") 2>&5
9556  ac_status=$?
9557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558  (exit $ac_status); }; } &&
9559	 { ac_try='test -s conftest.$ac_objext'
9560  { (case "(($ac_try" in
9561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562  *) ac_try_echo=$ac_try;;
9563esac
9564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565  (eval "$ac_try") 2>&5
9566  ac_status=$?
9567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568  (exit $ac_status); }; }; then
9569  ac_header_compiler=yes
9570else
9571  echo "$as_me: failed program was:" >&5
9572sed 's/^/| /' conftest.$ac_ext >&5
9573
9574	ac_header_compiler=no
9575fi
9576
9577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9579echo "${ECHO_T}$ac_header_compiler" >&6; }
9580
9581# Is the header present?
9582{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9584cat >conftest.$ac_ext <<_ACEOF
9585/* confdefs.h.  */
9586_ACEOF
9587cat confdefs.h >>conftest.$ac_ext
9588cat >>conftest.$ac_ext <<_ACEOF
9589/* end confdefs.h.  */
9590#include <$ac_header>
9591_ACEOF
9592if { (ac_try="$ac_cpp conftest.$ac_ext"
9593case "(($ac_try" in
9594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595  *) ac_try_echo=$ac_try;;
9596esac
9597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9599  ac_status=$?
9600  grep -v '^ *+' conftest.er1 >conftest.err
9601  rm -f conftest.er1
9602  cat conftest.err >&5
9603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604  (exit $ac_status); } >/dev/null; then
9605  if test -s conftest.err; then
9606    ac_cpp_err=$ac_c_preproc_warn_flag
9607    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9608  else
9609    ac_cpp_err=
9610  fi
9611else
9612  ac_cpp_err=yes
9613fi
9614if test -z "$ac_cpp_err"; then
9615  ac_header_preproc=yes
9616else
9617  echo "$as_me: failed program was:" >&5
9618sed 's/^/| /' conftest.$ac_ext >&5
9619
9620  ac_header_preproc=no
9621fi
9622
9623rm -f conftest.err conftest.$ac_ext
9624{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9625echo "${ECHO_T}$ac_header_preproc" >&6; }
9626
9627# So?  What about this header?
9628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9629  yes:no: )
9630    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9632    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9634    ac_header_preproc=yes
9635    ;;
9636  no:yes:* )
9637    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9639    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9640echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9641    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9643    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9644echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9645    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9647    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9649
9650    ;;
9651esac
9652{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9655  echo $ECHO_N "(cached) $ECHO_C" >&6
9656else
9657  eval "$as_ac_Header=\$ac_header_preproc"
9658fi
9659ac_res=`eval echo '${'$as_ac_Header'}'`
9660	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9661echo "${ECHO_T}$ac_res" >&6; }
9662
9663fi
9664if test `eval echo '${'$as_ac_Header'}'` = yes; then
9665  cat >>confdefs.h <<_ACEOF
9666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9667_ACEOF
9668
9669fi
9670
9671done
9672
9673
9674
9675for ac_header in sys/reg.h sys/debugreg.h
9676do
9677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9679  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9682  echo $ECHO_N "(cached) $ECHO_C" >&6
9683fi
9684ac_res=`eval echo '${'$as_ac_Header'}'`
9685	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9686echo "${ECHO_T}$ac_res" >&6; }
9687else
9688  # Is the header compilable?
9689{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9691cat >conftest.$ac_ext <<_ACEOF
9692/* confdefs.h.  */
9693_ACEOF
9694cat confdefs.h >>conftest.$ac_ext
9695cat >>conftest.$ac_ext <<_ACEOF
9696/* end confdefs.h.  */
9697$ac_includes_default
9698#include <$ac_header>
9699_ACEOF
9700rm -f conftest.$ac_objext
9701if { (ac_try="$ac_compile"
9702case "(($ac_try" in
9703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704  *) ac_try_echo=$ac_try;;
9705esac
9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707  (eval "$ac_compile") 2>conftest.er1
9708  ac_status=$?
9709  grep -v '^ *+' conftest.er1 >conftest.err
9710  rm -f conftest.er1
9711  cat conftest.err >&5
9712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713  (exit $ac_status); } &&
9714	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9715  { (case "(($ac_try" in
9716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717  *) ac_try_echo=$ac_try;;
9718esac
9719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720  (eval "$ac_try") 2>&5
9721  ac_status=$?
9722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723  (exit $ac_status); }; } &&
9724	 { ac_try='test -s conftest.$ac_objext'
9725  { (case "(($ac_try" in
9726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727  *) ac_try_echo=$ac_try;;
9728esac
9729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730  (eval "$ac_try") 2>&5
9731  ac_status=$?
9732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733  (exit $ac_status); }; }; then
9734  ac_header_compiler=yes
9735else
9736  echo "$as_me: failed program was:" >&5
9737sed 's/^/| /' conftest.$ac_ext >&5
9738
9739	ac_header_compiler=no
9740fi
9741
9742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9744echo "${ECHO_T}$ac_header_compiler" >&6; }
9745
9746# Is the header present?
9747{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9749cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h.  */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h.  */
9755#include <$ac_header>
9756_ACEOF
9757if { (ac_try="$ac_cpp conftest.$ac_ext"
9758case "(($ac_try" in
9759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760  *) ac_try_echo=$ac_try;;
9761esac
9762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9764  ac_status=$?
9765  grep -v '^ *+' conftest.er1 >conftest.err
9766  rm -f conftest.er1
9767  cat conftest.err >&5
9768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769  (exit $ac_status); } >/dev/null; then
9770  if test -s conftest.err; then
9771    ac_cpp_err=$ac_c_preproc_warn_flag
9772    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9773  else
9774    ac_cpp_err=
9775  fi
9776else
9777  ac_cpp_err=yes
9778fi
9779if test -z "$ac_cpp_err"; then
9780  ac_header_preproc=yes
9781else
9782  echo "$as_me: failed program was:" >&5
9783sed 's/^/| /' conftest.$ac_ext >&5
9784
9785  ac_header_preproc=no
9786fi
9787
9788rm -f conftest.err conftest.$ac_ext
9789{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9790echo "${ECHO_T}$ac_header_preproc" >&6; }
9791
9792# So?  What about this header?
9793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9794  yes:no: )
9795    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9797    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9799    ac_header_preproc=yes
9800    ;;
9801  no:yes:* )
9802    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9804    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9805echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9806    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9808    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9809echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9810    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9812    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9814
9815    ;;
9816esac
9817{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9820  echo $ECHO_N "(cached) $ECHO_C" >&6
9821else
9822  eval "$as_ac_Header=\$ac_header_preproc"
9823fi
9824ac_res=`eval echo '${'$as_ac_Header'}'`
9825	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9826echo "${ECHO_T}$ac_res" >&6; }
9827
9828fi
9829if test `eval echo '${'$as_ac_Header'}'` = yes; then
9830  cat >>confdefs.h <<_ACEOF
9831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9832_ACEOF
9833
9834fi
9835
9836done
9837
9838
9839for ac_header in sys/select.h
9840do
9841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9843  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9846  echo $ECHO_N "(cached) $ECHO_C" >&6
9847fi
9848ac_res=`eval echo '${'$as_ac_Header'}'`
9849	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9850echo "${ECHO_T}$ac_res" >&6; }
9851else
9852  # Is the header compilable?
9853{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9855cat >conftest.$ac_ext <<_ACEOF
9856/* confdefs.h.  */
9857_ACEOF
9858cat confdefs.h >>conftest.$ac_ext
9859cat >>conftest.$ac_ext <<_ACEOF
9860/* end confdefs.h.  */
9861$ac_includes_default
9862#include <$ac_header>
9863_ACEOF
9864rm -f conftest.$ac_objext
9865if { (ac_try="$ac_compile"
9866case "(($ac_try" in
9867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868  *) ac_try_echo=$ac_try;;
9869esac
9870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871  (eval "$ac_compile") 2>conftest.er1
9872  ac_status=$?
9873  grep -v '^ *+' conftest.er1 >conftest.err
9874  rm -f conftest.er1
9875  cat conftest.err >&5
9876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877  (exit $ac_status); } &&
9878	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879  { (case "(($ac_try" in
9880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881  *) ac_try_echo=$ac_try;;
9882esac
9883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884  (eval "$ac_try") 2>&5
9885  ac_status=$?
9886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887  (exit $ac_status); }; } &&
9888	 { ac_try='test -s conftest.$ac_objext'
9889  { (case "(($ac_try" in
9890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891  *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894  (eval "$ac_try") 2>&5
9895  ac_status=$?
9896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897  (exit $ac_status); }; }; then
9898  ac_header_compiler=yes
9899else
9900  echo "$as_me: failed program was:" >&5
9901sed 's/^/| /' conftest.$ac_ext >&5
9902
9903	ac_header_compiler=no
9904fi
9905
9906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9908echo "${ECHO_T}$ac_header_compiler" >&6; }
9909
9910# Is the header present?
9911{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9913cat >conftest.$ac_ext <<_ACEOF
9914/* confdefs.h.  */
9915_ACEOF
9916cat confdefs.h >>conftest.$ac_ext
9917cat >>conftest.$ac_ext <<_ACEOF
9918/* end confdefs.h.  */
9919#include <$ac_header>
9920_ACEOF
9921if { (ac_try="$ac_cpp conftest.$ac_ext"
9922case "(($ac_try" in
9923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924  *) ac_try_echo=$ac_try;;
9925esac
9926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9928  ac_status=$?
9929  grep -v '^ *+' conftest.er1 >conftest.err
9930  rm -f conftest.er1
9931  cat conftest.err >&5
9932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933  (exit $ac_status); } >/dev/null; then
9934  if test -s conftest.err; then
9935    ac_cpp_err=$ac_c_preproc_warn_flag
9936    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9937  else
9938    ac_cpp_err=
9939  fi
9940else
9941  ac_cpp_err=yes
9942fi
9943if test -z "$ac_cpp_err"; then
9944  ac_header_preproc=yes
9945else
9946  echo "$as_me: failed program was:" >&5
9947sed 's/^/| /' conftest.$ac_ext >&5
9948
9949  ac_header_preproc=no
9950fi
9951
9952rm -f conftest.err conftest.$ac_ext
9953{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9954echo "${ECHO_T}$ac_header_preproc" >&6; }
9955
9956# So?  What about this header?
9957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9958  yes:no: )
9959    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9961    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9962echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9963    ac_header_preproc=yes
9964    ;;
9965  no:yes:* )
9966    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9967echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9968    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9969echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9970    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9971echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9972    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9973echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9974    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9975echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9976    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9977echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9978
9979    ;;
9980esac
9981{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9984  echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
9986  eval "$as_ac_Header=\$ac_header_preproc"
9987fi
9988ac_res=`eval echo '${'$as_ac_Header'}'`
9989	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9990echo "${ECHO_T}$ac_res" >&6; }
9991
9992fi
9993if test `eval echo '${'$as_ac_Header'}'` = yes; then
9994  cat >>confdefs.h <<_ACEOF
9995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9996_ACEOF
9997
9998fi
9999
10000done
10001
10002
10003for ac_header in sys/syscall.h
10004do
10005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10007  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10010  echo $ECHO_N "(cached) $ECHO_C" >&6
10011fi
10012ac_res=`eval echo '${'$as_ac_Header'}'`
10013	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10014echo "${ECHO_T}$ac_res" >&6; }
10015else
10016  # Is the header compilable?
10017{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10019cat >conftest.$ac_ext <<_ACEOF
10020/* confdefs.h.  */
10021_ACEOF
10022cat confdefs.h >>conftest.$ac_ext
10023cat >>conftest.$ac_ext <<_ACEOF
10024/* end confdefs.h.  */
10025$ac_includes_default
10026#include <$ac_header>
10027_ACEOF
10028rm -f conftest.$ac_objext
10029if { (ac_try="$ac_compile"
10030case "(($ac_try" in
10031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032  *) ac_try_echo=$ac_try;;
10033esac
10034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035  (eval "$ac_compile") 2>conftest.er1
10036  ac_status=$?
10037  grep -v '^ *+' conftest.er1 >conftest.err
10038  rm -f conftest.er1
10039  cat conftest.err >&5
10040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041  (exit $ac_status); } &&
10042	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10043  { (case "(($ac_try" in
10044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045  *) ac_try_echo=$ac_try;;
10046esac
10047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048  (eval "$ac_try") 2>&5
10049  ac_status=$?
10050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051  (exit $ac_status); }; } &&
10052	 { ac_try='test -s conftest.$ac_objext'
10053  { (case "(($ac_try" in
10054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055  *) ac_try_echo=$ac_try;;
10056esac
10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058  (eval "$ac_try") 2>&5
10059  ac_status=$?
10060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061  (exit $ac_status); }; }; then
10062  ac_header_compiler=yes
10063else
10064  echo "$as_me: failed program was:" >&5
10065sed 's/^/| /' conftest.$ac_ext >&5
10066
10067	ac_header_compiler=no
10068fi
10069
10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072echo "${ECHO_T}$ac_header_compiler" >&6; }
10073
10074# Is the header present?
10075{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10077cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h.  */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h.  */
10083#include <$ac_header>
10084_ACEOF
10085if { (ac_try="$ac_cpp conftest.$ac_ext"
10086case "(($ac_try" in
10087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088  *) ac_try_echo=$ac_try;;
10089esac
10090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10092  ac_status=$?
10093  grep -v '^ *+' conftest.er1 >conftest.err
10094  rm -f conftest.er1
10095  cat conftest.err >&5
10096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097  (exit $ac_status); } >/dev/null; then
10098  if test -s conftest.err; then
10099    ac_cpp_err=$ac_c_preproc_warn_flag
10100    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10101  else
10102    ac_cpp_err=
10103  fi
10104else
10105  ac_cpp_err=yes
10106fi
10107if test -z "$ac_cpp_err"; then
10108  ac_header_preproc=yes
10109else
10110  echo "$as_me: failed program was:" >&5
10111sed 's/^/| /' conftest.$ac_ext >&5
10112
10113  ac_header_preproc=no
10114fi
10115
10116rm -f conftest.err conftest.$ac_ext
10117{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10118echo "${ECHO_T}$ac_header_preproc" >&6; }
10119
10120# So?  What about this header?
10121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10122  yes:no: )
10123    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10125    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10127    ac_header_preproc=yes
10128    ;;
10129  no:yes:* )
10130    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10132    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10133echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10134    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10136    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10137echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10138    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10140    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10142
10143    ;;
10144esac
10145{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10148  echo $ECHO_N "(cached) $ECHO_C" >&6
10149else
10150  eval "$as_ac_Header=\$ac_header_preproc"
10151fi
10152ac_res=`eval echo '${'$as_ac_Header'}'`
10153	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10154echo "${ECHO_T}$ac_res" >&6; }
10155
10156fi
10157if test `eval echo '${'$as_ac_Header'}'` = yes; then
10158  cat >>confdefs.h <<_ACEOF
10159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10160_ACEOF
10161
10162fi
10163
10164done
10165
10166
10167for ac_header in sys/types.h
10168do
10169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10171  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10174  echo $ECHO_N "(cached) $ECHO_C" >&6
10175fi
10176ac_res=`eval echo '${'$as_ac_Header'}'`
10177	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10178echo "${ECHO_T}$ac_res" >&6; }
10179else
10180  # Is the header compilable?
10181{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10183cat >conftest.$ac_ext <<_ACEOF
10184/* confdefs.h.  */
10185_ACEOF
10186cat confdefs.h >>conftest.$ac_ext
10187cat >>conftest.$ac_ext <<_ACEOF
10188/* end confdefs.h.  */
10189$ac_includes_default
10190#include <$ac_header>
10191_ACEOF
10192rm -f conftest.$ac_objext
10193if { (ac_try="$ac_compile"
10194case "(($ac_try" in
10195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196  *) ac_try_echo=$ac_try;;
10197esac
10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199  (eval "$ac_compile") 2>conftest.er1
10200  ac_status=$?
10201  grep -v '^ *+' conftest.er1 >conftest.err
10202  rm -f conftest.er1
10203  cat conftest.err >&5
10204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205  (exit $ac_status); } &&
10206	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10207  { (case "(($ac_try" in
10208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209  *) ac_try_echo=$ac_try;;
10210esac
10211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212  (eval "$ac_try") 2>&5
10213  ac_status=$?
10214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215  (exit $ac_status); }; } &&
10216	 { ac_try='test -s conftest.$ac_objext'
10217  { (case "(($ac_try" in
10218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219  *) ac_try_echo=$ac_try;;
10220esac
10221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10222  (eval "$ac_try") 2>&5
10223  ac_status=$?
10224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225  (exit $ac_status); }; }; then
10226  ac_header_compiler=yes
10227else
10228  echo "$as_me: failed program was:" >&5
10229sed 's/^/| /' conftest.$ac_ext >&5
10230
10231	ac_header_compiler=no
10232fi
10233
10234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10236echo "${ECHO_T}$ac_header_compiler" >&6; }
10237
10238# Is the header present?
10239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10241cat >conftest.$ac_ext <<_ACEOF
10242/* confdefs.h.  */
10243_ACEOF
10244cat confdefs.h >>conftest.$ac_ext
10245cat >>conftest.$ac_ext <<_ACEOF
10246/* end confdefs.h.  */
10247#include <$ac_header>
10248_ACEOF
10249if { (ac_try="$ac_cpp conftest.$ac_ext"
10250case "(($ac_try" in
10251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252  *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10256  ac_status=$?
10257  grep -v '^ *+' conftest.er1 >conftest.err
10258  rm -f conftest.er1
10259  cat conftest.err >&5
10260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261  (exit $ac_status); } >/dev/null; then
10262  if test -s conftest.err; then
10263    ac_cpp_err=$ac_c_preproc_warn_flag
10264    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10265  else
10266    ac_cpp_err=
10267  fi
10268else
10269  ac_cpp_err=yes
10270fi
10271if test -z "$ac_cpp_err"; then
10272  ac_header_preproc=yes
10273else
10274  echo "$as_me: failed program was:" >&5
10275sed 's/^/| /' conftest.$ac_ext >&5
10276
10277  ac_header_preproc=no
10278fi
10279
10280rm -f conftest.err conftest.$ac_ext
10281{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10282echo "${ECHO_T}$ac_header_preproc" >&6; }
10283
10284# So?  What about this header?
10285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10286  yes:no: )
10287    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10289    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10291    ac_header_preproc=yes
10292    ;;
10293  no:yes:* )
10294    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10296    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10297echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10298    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10300    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10301echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10302    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10304    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10306
10307    ;;
10308esac
10309{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10312  echo $ECHO_N "(cached) $ECHO_C" >&6
10313else
10314  eval "$as_ac_Header=\$ac_header_preproc"
10315fi
10316ac_res=`eval echo '${'$as_ac_Header'}'`
10317	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10318echo "${ECHO_T}$ac_res" >&6; }
10319
10320fi
10321if test `eval echo '${'$as_ac_Header'}'` = yes; then
10322  cat >>confdefs.h <<_ACEOF
10323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10324_ACEOF
10325
10326fi
10327
10328done
10329
10330
10331for ac_header in sys/user.h
10332do
10333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10334{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10337  echo $ECHO_N "(cached) $ECHO_C" >&6
10338else
10339  cat >conftest.$ac_ext <<_ACEOF
10340/* confdefs.h.  */
10341_ACEOF
10342cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h.  */
10345#if HAVE_SYS_PARAM_H
10346# include <sys/param.h>
10347#endif
10348
10349
10350#include <$ac_header>
10351_ACEOF
10352rm -f conftest.$ac_objext
10353if { (ac_try="$ac_compile"
10354case "(($ac_try" in
10355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356  *) ac_try_echo=$ac_try;;
10357esac
10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359  (eval "$ac_compile") 2>conftest.er1
10360  ac_status=$?
10361  grep -v '^ *+' conftest.er1 >conftest.err
10362  rm -f conftest.er1
10363  cat conftest.err >&5
10364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365  (exit $ac_status); } &&
10366	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10367  { (case "(($ac_try" in
10368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369  *) ac_try_echo=$ac_try;;
10370esac
10371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372  (eval "$ac_try") 2>&5
10373  ac_status=$?
10374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375  (exit $ac_status); }; } &&
10376	 { ac_try='test -s conftest.$ac_objext'
10377  { (case "(($ac_try" in
10378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379  *) ac_try_echo=$ac_try;;
10380esac
10381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382  (eval "$ac_try") 2>&5
10383  ac_status=$?
10384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385  (exit $ac_status); }; }; then
10386  eval "$as_ac_Header=yes"
10387else
10388  echo "$as_me: failed program was:" >&5
10389sed 's/^/| /' conftest.$ac_ext >&5
10390
10391	eval "$as_ac_Header=no"
10392fi
10393
10394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395fi
10396ac_res=`eval echo '${'$as_ac_Header'}'`
10397	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10398echo "${ECHO_T}$ac_res" >&6; }
10399if test `eval echo '${'$as_ac_Header'}'` = yes; then
10400  cat >>confdefs.h <<_ACEOF
10401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10402_ACEOF
10403
10404fi
10405
10406done
10407
10408
10409
10410for ac_header in sys/wait.h wait.h
10411do
10412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10414  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10417  echo $ECHO_N "(cached) $ECHO_C" >&6
10418fi
10419ac_res=`eval echo '${'$as_ac_Header'}'`
10420	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10421echo "${ECHO_T}$ac_res" >&6; }
10422else
10423  # Is the header compilable?
10424{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10426cat >conftest.$ac_ext <<_ACEOF
10427/* confdefs.h.  */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h.  */
10432$ac_includes_default
10433#include <$ac_header>
10434_ACEOF
10435rm -f conftest.$ac_objext
10436if { (ac_try="$ac_compile"
10437case "(($ac_try" in
10438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439  *) ac_try_echo=$ac_try;;
10440esac
10441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442  (eval "$ac_compile") 2>conftest.er1
10443  ac_status=$?
10444  grep -v '^ *+' conftest.er1 >conftest.err
10445  rm -f conftest.er1
10446  cat conftest.err >&5
10447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448  (exit $ac_status); } &&
10449	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10450  { (case "(($ac_try" in
10451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452  *) ac_try_echo=$ac_try;;
10453esac
10454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455  (eval "$ac_try") 2>&5
10456  ac_status=$?
10457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); }; } &&
10459	 { ac_try='test -s conftest.$ac_objext'
10460  { (case "(($ac_try" in
10461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462  *) ac_try_echo=$ac_try;;
10463esac
10464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465  (eval "$ac_try") 2>&5
10466  ac_status=$?
10467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468  (exit $ac_status); }; }; then
10469  ac_header_compiler=yes
10470else
10471  echo "$as_me: failed program was:" >&5
10472sed 's/^/| /' conftest.$ac_ext >&5
10473
10474	ac_header_compiler=no
10475fi
10476
10477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10478{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10479echo "${ECHO_T}$ac_header_compiler" >&6; }
10480
10481# Is the header present?
10482{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10484cat >conftest.$ac_ext <<_ACEOF
10485/* confdefs.h.  */
10486_ACEOF
10487cat confdefs.h >>conftest.$ac_ext
10488cat >>conftest.$ac_ext <<_ACEOF
10489/* end confdefs.h.  */
10490#include <$ac_header>
10491_ACEOF
10492if { (ac_try="$ac_cpp conftest.$ac_ext"
10493case "(($ac_try" in
10494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495  *) ac_try_echo=$ac_try;;
10496esac
10497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10499  ac_status=$?
10500  grep -v '^ *+' conftest.er1 >conftest.err
10501  rm -f conftest.er1
10502  cat conftest.err >&5
10503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504  (exit $ac_status); } >/dev/null; then
10505  if test -s conftest.err; then
10506    ac_cpp_err=$ac_c_preproc_warn_flag
10507    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10508  else
10509    ac_cpp_err=
10510  fi
10511else
10512  ac_cpp_err=yes
10513fi
10514if test -z "$ac_cpp_err"; then
10515  ac_header_preproc=yes
10516else
10517  echo "$as_me: failed program was:" >&5
10518sed 's/^/| /' conftest.$ac_ext >&5
10519
10520  ac_header_preproc=no
10521fi
10522
10523rm -f conftest.err conftest.$ac_ext
10524{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10525echo "${ECHO_T}$ac_header_preproc" >&6; }
10526
10527# So?  What about this header?
10528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10529  yes:no: )
10530    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10532    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10534    ac_header_preproc=yes
10535    ;;
10536  no:yes:* )
10537    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10539    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10540echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10541    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10543    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10544echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10545    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10547    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10549
10550    ;;
10551esac
10552{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10555  echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557  eval "$as_ac_Header=\$ac_header_preproc"
10558fi
10559ac_res=`eval echo '${'$as_ac_Header'}'`
10560	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10561echo "${ECHO_T}$ac_res" >&6; }
10562
10563fi
10564if test `eval echo '${'$as_ac_Header'}'` = yes; then
10565  cat >>confdefs.h <<_ACEOF
10566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10567_ACEOF
10568
10569fi
10570
10571done
10572
10573
10574
10575
10576for ac_header in termios.h termio.h sgtty.h
10577do
10578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10580  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10583  echo $ECHO_N "(cached) $ECHO_C" >&6
10584fi
10585ac_res=`eval echo '${'$as_ac_Header'}'`
10586	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10587echo "${ECHO_T}$ac_res" >&6; }
10588else
10589  # Is the header compilable?
10590{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10592cat >conftest.$ac_ext <<_ACEOF
10593/* confdefs.h.  */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
10597/* end confdefs.h.  */
10598$ac_includes_default
10599#include <$ac_header>
10600_ACEOF
10601rm -f conftest.$ac_objext
10602if { (ac_try="$ac_compile"
10603case "(($ac_try" in
10604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605  *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $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  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614  (exit $ac_status); } &&
10615	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616  { (case "(($ac_try" in
10617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618  *) ac_try_echo=$ac_try;;
10619esac
10620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621  (eval "$ac_try") 2>&5
10622  ac_status=$?
10623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624  (exit $ac_status); }; } &&
10625	 { ac_try='test -s conftest.$ac_objext'
10626  { (case "(($ac_try" in
10627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628  *) ac_try_echo=$ac_try;;
10629esac
10630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631  (eval "$ac_try") 2>&5
10632  ac_status=$?
10633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634  (exit $ac_status); }; }; then
10635  ac_header_compiler=yes
10636else
10637  echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
10640	ac_header_compiler=no
10641fi
10642
10643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10645echo "${ECHO_T}$ac_header_compiler" >&6; }
10646
10647# Is the header present?
10648{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10650cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h.  */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h.  */
10656#include <$ac_header>
10657_ACEOF
10658if { (ac_try="$ac_cpp conftest.$ac_ext"
10659case "(($ac_try" in
10660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661  *) ac_try_echo=$ac_try;;
10662esac
10663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10665  ac_status=$?
10666  grep -v '^ *+' conftest.er1 >conftest.err
10667  rm -f conftest.er1
10668  cat conftest.err >&5
10669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670  (exit $ac_status); } >/dev/null; then
10671  if test -s conftest.err; then
10672    ac_cpp_err=$ac_c_preproc_warn_flag
10673    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10674  else
10675    ac_cpp_err=
10676  fi
10677else
10678  ac_cpp_err=yes
10679fi
10680if test -z "$ac_cpp_err"; then
10681  ac_header_preproc=yes
10682else
10683  echo "$as_me: failed program was:" >&5
10684sed 's/^/| /' conftest.$ac_ext >&5
10685
10686  ac_header_preproc=no
10687fi
10688
10689rm -f conftest.err conftest.$ac_ext
10690{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10691echo "${ECHO_T}$ac_header_preproc" >&6; }
10692
10693# So?  What about this header?
10694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10695  yes:no: )
10696    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10698    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10700    ac_header_preproc=yes
10701    ;;
10702  no:yes:* )
10703    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10705    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10706echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10707    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10709    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10710echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10711    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10713    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10715
10716    ;;
10717esac
10718{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10721  echo $ECHO_N "(cached) $ECHO_C" >&6
10722else
10723  eval "$as_ac_Header=\$ac_header_preproc"
10724fi
10725ac_res=`eval echo '${'$as_ac_Header'}'`
10726	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10727echo "${ECHO_T}$ac_res" >&6; }
10728
10729fi
10730if test `eval echo '${'$as_ac_Header'}'` = yes; then
10731  cat >>confdefs.h <<_ACEOF
10732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10733_ACEOF
10734
10735fi
10736
10737done
10738
10739
10740for ac_header in unistd.h
10741do
10742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10744  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10747  echo $ECHO_N "(cached) $ECHO_C" >&6
10748fi
10749ac_res=`eval echo '${'$as_ac_Header'}'`
10750	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10751echo "${ECHO_T}$ac_res" >&6; }
10752else
10753  # Is the header compilable?
10754{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10755echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10756cat >conftest.$ac_ext <<_ACEOF
10757/* confdefs.h.  */
10758_ACEOF
10759cat confdefs.h >>conftest.$ac_ext
10760cat >>conftest.$ac_ext <<_ACEOF
10761/* end confdefs.h.  */
10762$ac_includes_default
10763#include <$ac_header>
10764_ACEOF
10765rm -f conftest.$ac_objext
10766if { (ac_try="$ac_compile"
10767case "(($ac_try" in
10768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769  *) ac_try_echo=$ac_try;;
10770esac
10771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772  (eval "$ac_compile") 2>conftest.er1
10773  ac_status=$?
10774  grep -v '^ *+' conftest.er1 >conftest.err
10775  rm -f conftest.er1
10776  cat conftest.err >&5
10777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778  (exit $ac_status); } &&
10779	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10780  { (case "(($ac_try" in
10781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782  *) ac_try_echo=$ac_try;;
10783esac
10784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785  (eval "$ac_try") 2>&5
10786  ac_status=$?
10787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788  (exit $ac_status); }; } &&
10789	 { ac_try='test -s conftest.$ac_objext'
10790  { (case "(($ac_try" in
10791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792  *) ac_try_echo=$ac_try;;
10793esac
10794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795  (eval "$ac_try") 2>&5
10796  ac_status=$?
10797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798  (exit $ac_status); }; }; then
10799  ac_header_compiler=yes
10800else
10801  echo "$as_me: failed program was:" >&5
10802sed 's/^/| /' conftest.$ac_ext >&5
10803
10804	ac_header_compiler=no
10805fi
10806
10807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10809echo "${ECHO_T}$ac_header_compiler" >&6; }
10810
10811# Is the header present?
10812{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10814cat >conftest.$ac_ext <<_ACEOF
10815/* confdefs.h.  */
10816_ACEOF
10817cat confdefs.h >>conftest.$ac_ext
10818cat >>conftest.$ac_ext <<_ACEOF
10819/* end confdefs.h.  */
10820#include <$ac_header>
10821_ACEOF
10822if { (ac_try="$ac_cpp conftest.$ac_ext"
10823case "(($ac_try" in
10824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825  *) ac_try_echo=$ac_try;;
10826esac
10827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10829  ac_status=$?
10830  grep -v '^ *+' conftest.er1 >conftest.err
10831  rm -f conftest.er1
10832  cat conftest.err >&5
10833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834  (exit $ac_status); } >/dev/null; then
10835  if test -s conftest.err; then
10836    ac_cpp_err=$ac_c_preproc_warn_flag
10837    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10838  else
10839    ac_cpp_err=
10840  fi
10841else
10842  ac_cpp_err=yes
10843fi
10844if test -z "$ac_cpp_err"; then
10845  ac_header_preproc=yes
10846else
10847  echo "$as_me: failed program was:" >&5
10848sed 's/^/| /' conftest.$ac_ext >&5
10849
10850  ac_header_preproc=no
10851fi
10852
10853rm -f conftest.err conftest.$ac_ext
10854{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10855echo "${ECHO_T}$ac_header_preproc" >&6; }
10856
10857# So?  What about this header?
10858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10859  yes:no: )
10860    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10861echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10862    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10863echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10864    ac_header_preproc=yes
10865    ;;
10866  no:yes:* )
10867    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10868echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10869    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10870echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10871    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10872echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10873    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10874echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10875    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10876echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10877    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10878echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10879
10880    ;;
10881esac
10882{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10885  echo $ECHO_N "(cached) $ECHO_C" >&6
10886else
10887  eval "$as_ac_Header=\$ac_header_preproc"
10888fi
10889ac_res=`eval echo '${'$as_ac_Header'}'`
10890	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10891echo "${ECHO_T}$ac_res" >&6; }
10892
10893fi
10894if test `eval echo '${'$as_ac_Header'}'` = yes; then
10895  cat >>confdefs.h <<_ACEOF
10896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10897_ACEOF
10898
10899fi
10900
10901done
10902
10903
10904# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10905# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10906# think that we don't have <curses.h> if we're using GCC.
10907case $host_os in
10908  solaris2.[789])
10909    if test "$GCC" = yes; then
10910
10911cat >>confdefs.h <<\_ACEOF
10912#define _MSE_INT_H 1
10913_ACEOF
10914
10915    fi ;;
10916esac
10917
10918
10919
10920
10921for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
10922do
10923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928  echo $ECHO_N "(cached) $ECHO_C" >&6
10929fi
10930ac_res=`eval echo '${'$as_ac_Header'}'`
10931	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10932echo "${ECHO_T}$ac_res" >&6; }
10933else
10934  # Is the header compilable?
10935{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10936echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10937cat >conftest.$ac_ext <<_ACEOF
10938/* confdefs.h.  */
10939_ACEOF
10940cat confdefs.h >>conftest.$ac_ext
10941cat >>conftest.$ac_ext <<_ACEOF
10942/* end confdefs.h.  */
10943$ac_includes_default
10944#include <$ac_header>
10945_ACEOF
10946rm -f conftest.$ac_objext
10947if { (ac_try="$ac_compile"
10948case "(($ac_try" in
10949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950  *) ac_try_echo=$ac_try;;
10951esac
10952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953  (eval "$ac_compile") 2>conftest.er1
10954  ac_status=$?
10955  grep -v '^ *+' conftest.er1 >conftest.err
10956  rm -f conftest.er1
10957  cat conftest.err >&5
10958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959  (exit $ac_status); } &&
10960	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10961  { (case "(($ac_try" in
10962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963  *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966  (eval "$ac_try") 2>&5
10967  ac_status=$?
10968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969  (exit $ac_status); }; } &&
10970	 { ac_try='test -s conftest.$ac_objext'
10971  { (case "(($ac_try" in
10972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973  *) ac_try_echo=$ac_try;;
10974esac
10975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976  (eval "$ac_try") 2>&5
10977  ac_status=$?
10978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979  (exit $ac_status); }; }; then
10980  ac_header_compiler=yes
10981else
10982  echo "$as_me: failed program was:" >&5
10983sed 's/^/| /' conftest.$ac_ext >&5
10984
10985	ac_header_compiler=no
10986fi
10987
10988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10989{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10990echo "${ECHO_T}$ac_header_compiler" >&6; }
10991
10992# Is the header present?
10993{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10995cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h.  */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h.  */
11001#include <$ac_header>
11002_ACEOF
11003if { (ac_try="$ac_cpp conftest.$ac_ext"
11004case "(($ac_try" in
11005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006  *) ac_try_echo=$ac_try;;
11007esac
11008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11010  ac_status=$?
11011  grep -v '^ *+' conftest.er1 >conftest.err
11012  rm -f conftest.er1
11013  cat conftest.err >&5
11014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015  (exit $ac_status); } >/dev/null; then
11016  if test -s conftest.err; then
11017    ac_cpp_err=$ac_c_preproc_warn_flag
11018    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11019  else
11020    ac_cpp_err=
11021  fi
11022else
11023  ac_cpp_err=yes
11024fi
11025if test -z "$ac_cpp_err"; then
11026  ac_header_preproc=yes
11027else
11028  echo "$as_me: failed program was:" >&5
11029sed 's/^/| /' conftest.$ac_ext >&5
11030
11031  ac_header_preproc=no
11032fi
11033
11034rm -f conftest.err conftest.$ac_ext
11035{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11036echo "${ECHO_T}$ac_header_preproc" >&6; }
11037
11038# So?  What about this header?
11039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11040  yes:no: )
11041    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11043    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11044echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11045    ac_header_preproc=yes
11046    ;;
11047  no:yes:* )
11048    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11050    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11051echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11052    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11053echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11054    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11055echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11056    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11057echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11058    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11059echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11060
11061    ;;
11062esac
11063{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11066  echo $ECHO_N "(cached) $ECHO_C" >&6
11067else
11068  eval "$as_ac_Header=\$ac_header_preproc"
11069fi
11070ac_res=`eval echo '${'$as_ac_Header'}'`
11071	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11072echo "${ECHO_T}$ac_res" >&6; }
11073
11074fi
11075if test `eval echo '${'$as_ac_Header'}'` = yes; then
11076  cat >>confdefs.h <<_ACEOF
11077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11078_ACEOF
11079
11080fi
11081
11082done
11083
11084
11085for ac_header in ncurses/term.h
11086do
11087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11089  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11092  echo $ECHO_N "(cached) $ECHO_C" >&6
11093fi
11094ac_res=`eval echo '${'$as_ac_Header'}'`
11095	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11096echo "${ECHO_T}$ac_res" >&6; }
11097else
11098  # Is the header compilable?
11099{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11101cat >conftest.$ac_ext <<_ACEOF
11102/* confdefs.h.  */
11103_ACEOF
11104cat confdefs.h >>conftest.$ac_ext
11105cat >>conftest.$ac_ext <<_ACEOF
11106/* end confdefs.h.  */
11107$ac_includes_default
11108#include <$ac_header>
11109_ACEOF
11110rm -f conftest.$ac_objext
11111if { (ac_try="$ac_compile"
11112case "(($ac_try" in
11113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114  *) ac_try_echo=$ac_try;;
11115esac
11116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117  (eval "$ac_compile") 2>conftest.er1
11118  ac_status=$?
11119  grep -v '^ *+' conftest.er1 >conftest.err
11120  rm -f conftest.er1
11121  cat conftest.err >&5
11122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123  (exit $ac_status); } &&
11124	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125  { (case "(($ac_try" in
11126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127  *) ac_try_echo=$ac_try;;
11128esac
11129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130  (eval "$ac_try") 2>&5
11131  ac_status=$?
11132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133  (exit $ac_status); }; } &&
11134	 { ac_try='test -s conftest.$ac_objext'
11135  { (case "(($ac_try" in
11136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137  *) ac_try_echo=$ac_try;;
11138esac
11139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140  (eval "$ac_try") 2>&5
11141  ac_status=$?
11142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143  (exit $ac_status); }; }; then
11144  ac_header_compiler=yes
11145else
11146  echo "$as_me: failed program was:" >&5
11147sed 's/^/| /' conftest.$ac_ext >&5
11148
11149	ac_header_compiler=no
11150fi
11151
11152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11153{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11154echo "${ECHO_T}$ac_header_compiler" >&6; }
11155
11156# Is the header present?
11157{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11159cat >conftest.$ac_ext <<_ACEOF
11160/* confdefs.h.  */
11161_ACEOF
11162cat confdefs.h >>conftest.$ac_ext
11163cat >>conftest.$ac_ext <<_ACEOF
11164/* end confdefs.h.  */
11165#include <$ac_header>
11166_ACEOF
11167if { (ac_try="$ac_cpp conftest.$ac_ext"
11168case "(($ac_try" in
11169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170  *) ac_try_echo=$ac_try;;
11171esac
11172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11174  ac_status=$?
11175  grep -v '^ *+' conftest.er1 >conftest.err
11176  rm -f conftest.er1
11177  cat conftest.err >&5
11178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179  (exit $ac_status); } >/dev/null; then
11180  if test -s conftest.err; then
11181    ac_cpp_err=$ac_c_preproc_warn_flag
11182    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11183  else
11184    ac_cpp_err=
11185  fi
11186else
11187  ac_cpp_err=yes
11188fi
11189if test -z "$ac_cpp_err"; then
11190  ac_header_preproc=yes
11191else
11192  echo "$as_me: failed program was:" >&5
11193sed 's/^/| /' conftest.$ac_ext >&5
11194
11195  ac_header_preproc=no
11196fi
11197
11198rm -f conftest.err conftest.$ac_ext
11199{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11200echo "${ECHO_T}$ac_header_preproc" >&6; }
11201
11202# So?  What about this header?
11203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11204  yes:no: )
11205    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11206echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11207    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11208echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11209    ac_header_preproc=yes
11210    ;;
11211  no:yes:* )
11212    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11213echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11214    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11215echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11216    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11217echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11218    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11219echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11220    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11222    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11223echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11224
11225    ;;
11226esac
11227{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230  echo $ECHO_N "(cached) $ECHO_C" >&6
11231else
11232  eval "$as_ac_Header=\$ac_header_preproc"
11233fi
11234ac_res=`eval echo '${'$as_ac_Header'}'`
11235	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11236echo "${ECHO_T}$ac_res" >&6; }
11237
11238fi
11239if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240  cat >>confdefs.h <<_ACEOF
11241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11242_ACEOF
11243
11244fi
11245
11246done
11247
11248
11249for ac_header in term.h
11250do
11251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255  echo $ECHO_N "(cached) $ECHO_C" >&6
11256else
11257  cat >conftest.$ac_ext <<_ACEOF
11258/* confdefs.h.  */
11259_ACEOF
11260cat confdefs.h >>conftest.$ac_ext
11261cat >>conftest.$ac_ext <<_ACEOF
11262/* end confdefs.h.  */
11263#if HAVE_CURSES_H
11264# include <curses.h>
11265#endif
11266
11267
11268#include <$ac_header>
11269_ACEOF
11270rm -f conftest.$ac_objext
11271if { (ac_try="$ac_compile"
11272case "(($ac_try" in
11273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274  *) ac_try_echo=$ac_try;;
11275esac
11276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277  (eval "$ac_compile") 2>conftest.er1
11278  ac_status=$?
11279  grep -v '^ *+' conftest.er1 >conftest.err
11280  rm -f conftest.er1
11281  cat conftest.err >&5
11282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283  (exit $ac_status); } &&
11284	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11285  { (case "(($ac_try" in
11286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287  *) ac_try_echo=$ac_try;;
11288esac
11289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290  (eval "$ac_try") 2>&5
11291  ac_status=$?
11292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293  (exit $ac_status); }; } &&
11294	 { ac_try='test -s conftest.$ac_objext'
11295  { (case "(($ac_try" in
11296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297  *) ac_try_echo=$ac_try;;
11298esac
11299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300  (eval "$ac_try") 2>&5
11301  ac_status=$?
11302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303  (exit $ac_status); }; }; then
11304  eval "$as_ac_Header=yes"
11305else
11306  echo "$as_me: failed program was:" >&5
11307sed 's/^/| /' conftest.$ac_ext >&5
11308
11309	eval "$as_ac_Header=no"
11310fi
11311
11312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11313fi
11314ac_res=`eval echo '${'$as_ac_Header'}'`
11315	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11316echo "${ECHO_T}$ac_res" >&6; }
11317if test `eval echo '${'$as_ac_Header'}'` = yes; then
11318  cat >>confdefs.h <<_ACEOF
11319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11320_ACEOF
11321
11322fi
11323
11324done
11325
11326
11327# FIXME: kettenis/20030102: In most cases we include these
11328# unconditionally, so what's the point in checking these?
11329
11330
11331for ac_header in ctype.h time.h
11332do
11333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11335  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11338  echo $ECHO_N "(cached) $ECHO_C" >&6
11339fi
11340ac_res=`eval echo '${'$as_ac_Header'}'`
11341	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11342echo "${ECHO_T}$ac_res" >&6; }
11343else
11344  # Is the header compilable?
11345{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11347cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h.  */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h.  */
11353$ac_includes_default
11354#include <$ac_header>
11355_ACEOF
11356rm -f conftest.$ac_objext
11357if { (ac_try="$ac_compile"
11358case "(($ac_try" in
11359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360  *) ac_try_echo=$ac_try;;
11361esac
11362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363  (eval "$ac_compile") 2>conftest.er1
11364  ac_status=$?
11365  grep -v '^ *+' conftest.er1 >conftest.err
11366  rm -f conftest.er1
11367  cat conftest.err >&5
11368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369  (exit $ac_status); } &&
11370	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11371  { (case "(($ac_try" in
11372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373  *) ac_try_echo=$ac_try;;
11374esac
11375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376  (eval "$ac_try") 2>&5
11377  ac_status=$?
11378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379  (exit $ac_status); }; } &&
11380	 { ac_try='test -s conftest.$ac_objext'
11381  { (case "(($ac_try" in
11382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383  *) ac_try_echo=$ac_try;;
11384esac
11385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386  (eval "$ac_try") 2>&5
11387  ac_status=$?
11388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389  (exit $ac_status); }; }; then
11390  ac_header_compiler=yes
11391else
11392  echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
11395	ac_header_compiler=no
11396fi
11397
11398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11399{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11400echo "${ECHO_T}$ac_header_compiler" >&6; }
11401
11402# Is the header present?
11403{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11405cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h.  */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h.  */
11411#include <$ac_header>
11412_ACEOF
11413if { (ac_try="$ac_cpp conftest.$ac_ext"
11414case "(($ac_try" in
11415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416  *) ac_try_echo=$ac_try;;
11417esac
11418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11420  ac_status=$?
11421  grep -v '^ *+' conftest.er1 >conftest.err
11422  rm -f conftest.er1
11423  cat conftest.err >&5
11424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425  (exit $ac_status); } >/dev/null; then
11426  if test -s conftest.err; then
11427    ac_cpp_err=$ac_c_preproc_warn_flag
11428    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11429  else
11430    ac_cpp_err=
11431  fi
11432else
11433  ac_cpp_err=yes
11434fi
11435if test -z "$ac_cpp_err"; then
11436  ac_header_preproc=yes
11437else
11438  echo "$as_me: failed program was:" >&5
11439sed 's/^/| /' conftest.$ac_ext >&5
11440
11441  ac_header_preproc=no
11442fi
11443
11444rm -f conftest.err conftest.$ac_ext
11445{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11446echo "${ECHO_T}$ac_header_preproc" >&6; }
11447
11448# So?  What about this header?
11449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11450  yes:no: )
11451    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11453    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11455    ac_header_preproc=yes
11456    ;;
11457  no:yes:* )
11458    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11460    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11461echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11462    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11464    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11465echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11466    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11468    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11470
11471    ;;
11472esac
11473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476  echo $ECHO_N "(cached) $ECHO_C" >&6
11477else
11478  eval "$as_ac_Header=\$ac_header_preproc"
11479fi
11480ac_res=`eval echo '${'$as_ac_Header'}'`
11481	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11482echo "${ECHO_T}$ac_res" >&6; }
11483
11484fi
11485if test `eval echo '${'$as_ac_Header'}'` = yes; then
11486  cat >>confdefs.h <<_ACEOF
11487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11488_ACEOF
11489
11490fi
11491
11492done
11493
11494
11495# ------------------------- #
11496# Checks for declarations.  #
11497# ------------------------- #
11498
11499{ echo "$as_me:$LINENO: checking whether free is declared" >&5
11500echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
11501if test "${ac_cv_have_decl_free+set}" = set; then
11502  echo $ECHO_N "(cached) $ECHO_C" >&6
11503else
11504  cat >conftest.$ac_ext <<_ACEOF
11505/* confdefs.h.  */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h.  */
11510$ac_includes_default
11511int
11512main ()
11513{
11514#ifndef free
11515  char *p = (char *) free;
11516  return !p;
11517#endif
11518
11519  ;
11520  return 0;
11521}
11522_ACEOF
11523rm -f conftest.$ac_objext
11524if { (ac_try="$ac_compile"
11525case "(($ac_try" in
11526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527  *) ac_try_echo=$ac_try;;
11528esac
11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530  (eval "$ac_compile") 2>conftest.er1
11531  ac_status=$?
11532  grep -v '^ *+' conftest.er1 >conftest.err
11533  rm -f conftest.er1
11534  cat conftest.err >&5
11535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536  (exit $ac_status); } &&
11537	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11538  { (case "(($ac_try" in
11539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540  *) ac_try_echo=$ac_try;;
11541esac
11542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543  (eval "$ac_try") 2>&5
11544  ac_status=$?
11545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546  (exit $ac_status); }; } &&
11547	 { ac_try='test -s conftest.$ac_objext'
11548  { (case "(($ac_try" in
11549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550  *) ac_try_echo=$ac_try;;
11551esac
11552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553  (eval "$ac_try") 2>&5
11554  ac_status=$?
11555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556  (exit $ac_status); }; }; then
11557  ac_cv_have_decl_free=yes
11558else
11559  echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
11561
11562	ac_cv_have_decl_free=no
11563fi
11564
11565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566fi
11567{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
11568echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
11569if test $ac_cv_have_decl_free = yes; then
11570
11571cat >>confdefs.h <<_ACEOF
11572#define HAVE_DECL_FREE 1
11573_ACEOF
11574
11575
11576else
11577  cat >>confdefs.h <<_ACEOF
11578#define HAVE_DECL_FREE 0
11579_ACEOF
11580
11581
11582fi
11583{ echo "$as_me:$LINENO: checking whether malloc is declared" >&5
11584echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
11585if test "${ac_cv_have_decl_malloc+set}" = set; then
11586  echo $ECHO_N "(cached) $ECHO_C" >&6
11587else
11588  cat >conftest.$ac_ext <<_ACEOF
11589/* confdefs.h.  */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h.  */
11594$ac_includes_default
11595int
11596main ()
11597{
11598#ifndef malloc
11599  char *p = (char *) malloc;
11600  return !p;
11601#endif
11602
11603  ;
11604  return 0;
11605}
11606_ACEOF
11607rm -f conftest.$ac_objext
11608if { (ac_try="$ac_compile"
11609case "(($ac_try" in
11610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611  *) ac_try_echo=$ac_try;;
11612esac
11613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614  (eval "$ac_compile") 2>conftest.er1
11615  ac_status=$?
11616  grep -v '^ *+' conftest.er1 >conftest.err
11617  rm -f conftest.er1
11618  cat conftest.err >&5
11619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620  (exit $ac_status); } &&
11621	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11622  { (case "(($ac_try" in
11623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624  *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627  (eval "$ac_try") 2>&5
11628  ac_status=$?
11629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630  (exit $ac_status); }; } &&
11631	 { ac_try='test -s conftest.$ac_objext'
11632  { (case "(($ac_try" in
11633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634  *) ac_try_echo=$ac_try;;
11635esac
11636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637  (eval "$ac_try") 2>&5
11638  ac_status=$?
11639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640  (exit $ac_status); }; }; then
11641  ac_cv_have_decl_malloc=yes
11642else
11643  echo "$as_me: failed program was:" >&5
11644sed 's/^/| /' conftest.$ac_ext >&5
11645
11646	ac_cv_have_decl_malloc=no
11647fi
11648
11649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650fi
11651{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
11652echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
11653if test $ac_cv_have_decl_malloc = yes; then
11654
11655cat >>confdefs.h <<_ACEOF
11656#define HAVE_DECL_MALLOC 1
11657_ACEOF
11658
11659
11660else
11661  cat >>confdefs.h <<_ACEOF
11662#define HAVE_DECL_MALLOC 0
11663_ACEOF
11664
11665
11666fi
11667{ echo "$as_me:$LINENO: checking whether realloc is declared" >&5
11668echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
11669if test "${ac_cv_have_decl_realloc+set}" = set; then
11670  echo $ECHO_N "(cached) $ECHO_C" >&6
11671else
11672  cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h.  */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h.  */
11678$ac_includes_default
11679int
11680main ()
11681{
11682#ifndef realloc
11683  char *p = (char *) realloc;
11684  return !p;
11685#endif
11686
11687  ;
11688  return 0;
11689}
11690_ACEOF
11691rm -f conftest.$ac_objext
11692if { (ac_try="$ac_compile"
11693case "(($ac_try" in
11694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695  *) ac_try_echo=$ac_try;;
11696esac
11697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698  (eval "$ac_compile") 2>conftest.er1
11699  ac_status=$?
11700  grep -v '^ *+' conftest.er1 >conftest.err
11701  rm -f conftest.er1
11702  cat conftest.err >&5
11703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704  (exit $ac_status); } &&
11705	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11706  { (case "(($ac_try" in
11707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708  *) ac_try_echo=$ac_try;;
11709esac
11710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711  (eval "$ac_try") 2>&5
11712  ac_status=$?
11713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714  (exit $ac_status); }; } &&
11715	 { ac_try='test -s conftest.$ac_objext'
11716  { (case "(($ac_try" in
11717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718  *) ac_try_echo=$ac_try;;
11719esac
11720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11721  (eval "$ac_try") 2>&5
11722  ac_status=$?
11723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724  (exit $ac_status); }; }; then
11725  ac_cv_have_decl_realloc=yes
11726else
11727  echo "$as_me: failed program was:" >&5
11728sed 's/^/| /' conftest.$ac_ext >&5
11729
11730	ac_cv_have_decl_realloc=no
11731fi
11732
11733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734fi
11735{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11736echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
11737if test $ac_cv_have_decl_realloc = yes; then
11738
11739cat >>confdefs.h <<_ACEOF
11740#define HAVE_DECL_REALLOC 1
11741_ACEOF
11742
11743
11744else
11745  cat >>confdefs.h <<_ACEOF
11746#define HAVE_DECL_REALLOC 0
11747_ACEOF
11748
11749
11750fi
11751
11752
11753{ echo "$as_me:$LINENO: checking whether strerror is declared" >&5
11754echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; }
11755if test "${ac_cv_have_decl_strerror+set}" = set; then
11756  echo $ECHO_N "(cached) $ECHO_C" >&6
11757else
11758  cat >conftest.$ac_ext <<_ACEOF
11759/* confdefs.h.  */
11760_ACEOF
11761cat confdefs.h >>conftest.$ac_ext
11762cat >>conftest.$ac_ext <<_ACEOF
11763/* end confdefs.h.  */
11764$ac_includes_default
11765int
11766main ()
11767{
11768#ifndef strerror
11769  char *p = (char *) strerror;
11770  return !p;
11771#endif
11772
11773  ;
11774  return 0;
11775}
11776_ACEOF
11777rm -f conftest.$ac_objext
11778if { (ac_try="$ac_compile"
11779case "(($ac_try" in
11780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781  *) ac_try_echo=$ac_try;;
11782esac
11783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784  (eval "$ac_compile") 2>conftest.er1
11785  ac_status=$?
11786  grep -v '^ *+' conftest.er1 >conftest.err
11787  rm -f conftest.er1
11788  cat conftest.err >&5
11789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790  (exit $ac_status); } &&
11791	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11792  { (case "(($ac_try" in
11793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794  *) ac_try_echo=$ac_try;;
11795esac
11796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797  (eval "$ac_try") 2>&5
11798  ac_status=$?
11799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800  (exit $ac_status); }; } &&
11801	 { ac_try='test -s conftest.$ac_objext'
11802  { (case "(($ac_try" in
11803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804  *) ac_try_echo=$ac_try;;
11805esac
11806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807  (eval "$ac_try") 2>&5
11808  ac_status=$?
11809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810  (exit $ac_status); }; }; then
11811  ac_cv_have_decl_strerror=yes
11812else
11813  echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816	ac_cv_have_decl_strerror=no
11817fi
11818
11819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820fi
11821{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
11822echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; }
11823if test $ac_cv_have_decl_strerror = yes; then
11824
11825cat >>confdefs.h <<_ACEOF
11826#define HAVE_DECL_STRERROR 1
11827_ACEOF
11828
11829
11830else
11831  cat >>confdefs.h <<_ACEOF
11832#define HAVE_DECL_STRERROR 0
11833_ACEOF
11834
11835
11836fi
11837{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11838echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
11839if test "${ac_cv_have_decl_strstr+set}" = set; then
11840  echo $ECHO_N "(cached) $ECHO_C" >&6
11841else
11842  cat >conftest.$ac_ext <<_ACEOF
11843/* confdefs.h.  */
11844_ACEOF
11845cat confdefs.h >>conftest.$ac_ext
11846cat >>conftest.$ac_ext <<_ACEOF
11847/* end confdefs.h.  */
11848$ac_includes_default
11849int
11850main ()
11851{
11852#ifndef strstr
11853  char *p = (char *) strstr;
11854  return !p;
11855#endif
11856
11857  ;
11858  return 0;
11859}
11860_ACEOF
11861rm -f conftest.$ac_objext
11862if { (ac_try="$ac_compile"
11863case "(($ac_try" in
11864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865  *) ac_try_echo=$ac_try;;
11866esac
11867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868  (eval "$ac_compile") 2>conftest.er1
11869  ac_status=$?
11870  grep -v '^ *+' conftest.er1 >conftest.err
11871  rm -f conftest.er1
11872  cat conftest.err >&5
11873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874  (exit $ac_status); } &&
11875	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11876  { (case "(($ac_try" in
11877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878  *) ac_try_echo=$ac_try;;
11879esac
11880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881  (eval "$ac_try") 2>&5
11882  ac_status=$?
11883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884  (exit $ac_status); }; } &&
11885	 { ac_try='test -s conftest.$ac_objext'
11886  { (case "(($ac_try" in
11887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888  *) ac_try_echo=$ac_try;;
11889esac
11890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891  (eval "$ac_try") 2>&5
11892  ac_status=$?
11893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894  (exit $ac_status); }; }; then
11895  ac_cv_have_decl_strstr=yes
11896else
11897  echo "$as_me: failed program was:" >&5
11898sed 's/^/| /' conftest.$ac_ext >&5
11899
11900	ac_cv_have_decl_strstr=no
11901fi
11902
11903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904fi
11905{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11906echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
11907if test $ac_cv_have_decl_strstr = yes; then
11908
11909cat >>confdefs.h <<_ACEOF
11910#define HAVE_DECL_STRSTR 1
11911_ACEOF
11912
11913
11914else
11915  cat >>confdefs.h <<_ACEOF
11916#define HAVE_DECL_STRSTR 0
11917_ACEOF
11918
11919
11920fi
11921
11922
11923{ echo "$as_me:$LINENO: checking whether getopt is declared" >&5
11924echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6; }
11925if test "${ac_cv_have_decl_getopt+set}" = set; then
11926  echo $ECHO_N "(cached) $ECHO_C" >&6
11927else
11928  cat >conftest.$ac_ext <<_ACEOF
11929/* confdefs.h.  */
11930_ACEOF
11931cat confdefs.h >>conftest.$ac_ext
11932cat >>conftest.$ac_ext <<_ACEOF
11933/* end confdefs.h.  */
11934$ac_includes_default
11935int
11936main ()
11937{
11938#ifndef getopt
11939  char *p = (char *) getopt;
11940  return !p;
11941#endif
11942
11943  ;
11944  return 0;
11945}
11946_ACEOF
11947rm -f conftest.$ac_objext
11948if { (ac_try="$ac_compile"
11949case "(($ac_try" in
11950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951  *) ac_try_echo=$ac_try;;
11952esac
11953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954  (eval "$ac_compile") 2>conftest.er1
11955  ac_status=$?
11956  grep -v '^ *+' conftest.er1 >conftest.err
11957  rm -f conftest.er1
11958  cat conftest.err >&5
11959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960  (exit $ac_status); } &&
11961	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11962  { (case "(($ac_try" in
11963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964  *) ac_try_echo=$ac_try;;
11965esac
11966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967  (eval "$ac_try") 2>&5
11968  ac_status=$?
11969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970  (exit $ac_status); }; } &&
11971	 { ac_try='test -s conftest.$ac_objext'
11972  { (case "(($ac_try" in
11973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974  *) ac_try_echo=$ac_try;;
11975esac
11976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977  (eval "$ac_try") 2>&5
11978  ac_status=$?
11979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980  (exit $ac_status); }; }; then
11981  ac_cv_have_decl_getopt=yes
11982else
11983  echo "$as_me: failed program was:" >&5
11984sed 's/^/| /' conftest.$ac_ext >&5
11985
11986	ac_cv_have_decl_getopt=no
11987fi
11988
11989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990fi
11991{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
11992echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6; }
11993if test $ac_cv_have_decl_getopt = yes; then
11994
11995cat >>confdefs.h <<_ACEOF
11996#define HAVE_DECL_GETOPT 1
11997_ACEOF
11998
11999
12000else
12001  cat >>confdefs.h <<_ACEOF
12002#define HAVE_DECL_GETOPT 0
12003_ACEOF
12004
12005
12006fi
12007{ echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
12008echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
12009if test "${ac_cv_have_decl_snprintf+set}" = set; then
12010  echo $ECHO_N "(cached) $ECHO_C" >&6
12011else
12012  cat >conftest.$ac_ext <<_ACEOF
12013/* confdefs.h.  */
12014_ACEOF
12015cat confdefs.h >>conftest.$ac_ext
12016cat >>conftest.$ac_ext <<_ACEOF
12017/* end confdefs.h.  */
12018$ac_includes_default
12019int
12020main ()
12021{
12022#ifndef snprintf
12023  char *p = (char *) snprintf;
12024  return !p;
12025#endif
12026
12027  ;
12028  return 0;
12029}
12030_ACEOF
12031rm -f conftest.$ac_objext
12032if { (ac_try="$ac_compile"
12033case "(($ac_try" in
12034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035  *) ac_try_echo=$ac_try;;
12036esac
12037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038  (eval "$ac_compile") 2>conftest.er1
12039  ac_status=$?
12040  grep -v '^ *+' conftest.er1 >conftest.err
12041  rm -f conftest.er1
12042  cat conftest.err >&5
12043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044  (exit $ac_status); } &&
12045	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12046  { (case "(($ac_try" in
12047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048  *) ac_try_echo=$ac_try;;
12049esac
12050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051  (eval "$ac_try") 2>&5
12052  ac_status=$?
12053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054  (exit $ac_status); }; } &&
12055	 { ac_try='test -s conftest.$ac_objext'
12056  { (case "(($ac_try" in
12057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058  *) ac_try_echo=$ac_try;;
12059esac
12060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061  (eval "$ac_try") 2>&5
12062  ac_status=$?
12063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064  (exit $ac_status); }; }; then
12065  ac_cv_have_decl_snprintf=yes
12066else
12067  echo "$as_me: failed program was:" >&5
12068sed 's/^/| /' conftest.$ac_ext >&5
12069
12070	ac_cv_have_decl_snprintf=no
12071fi
12072
12073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12074fi
12075{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
12076echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
12077if test $ac_cv_have_decl_snprintf = yes; then
12078
12079cat >>confdefs.h <<_ACEOF
12080#define HAVE_DECL_SNPRINTF 1
12081_ACEOF
12082
12083
12084else
12085  cat >>confdefs.h <<_ACEOF
12086#define HAVE_DECL_SNPRINTF 0
12087_ACEOF
12088
12089
12090fi
12091{ echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
12092echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
12093if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
12094  echo $ECHO_N "(cached) $ECHO_C" >&6
12095else
12096  cat >conftest.$ac_ext <<_ACEOF
12097/* confdefs.h.  */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h.  */
12102$ac_includes_default
12103int
12104main ()
12105{
12106#ifndef vsnprintf
12107  char *p = (char *) vsnprintf;
12108  return !p;
12109#endif
12110
12111  ;
12112  return 0;
12113}
12114_ACEOF
12115rm -f conftest.$ac_objext
12116if { (ac_try="$ac_compile"
12117case "(($ac_try" in
12118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119  *) ac_try_echo=$ac_try;;
12120esac
12121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122  (eval "$ac_compile") 2>conftest.er1
12123  ac_status=$?
12124  grep -v '^ *+' conftest.er1 >conftest.err
12125  rm -f conftest.er1
12126  cat conftest.err >&5
12127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128  (exit $ac_status); } &&
12129	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12130  { (case "(($ac_try" in
12131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132  *) ac_try_echo=$ac_try;;
12133esac
12134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135  (eval "$ac_try") 2>&5
12136  ac_status=$?
12137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138  (exit $ac_status); }; } &&
12139	 { ac_try='test -s conftest.$ac_objext'
12140  { (case "(($ac_try" in
12141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142  *) ac_try_echo=$ac_try;;
12143esac
12144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12145  (eval "$ac_try") 2>&5
12146  ac_status=$?
12147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148  (exit $ac_status); }; }; then
12149  ac_cv_have_decl_vsnprintf=yes
12150else
12151  echo "$as_me: failed program was:" >&5
12152sed 's/^/| /' conftest.$ac_ext >&5
12153
12154	ac_cv_have_decl_vsnprintf=no
12155fi
12156
12157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158fi
12159{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
12160echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
12161if test $ac_cv_have_decl_vsnprintf = yes; then
12162
12163cat >>confdefs.h <<_ACEOF
12164#define HAVE_DECL_VSNPRINTF 1
12165_ACEOF
12166
12167
12168else
12169  cat >>confdefs.h <<_ACEOF
12170#define HAVE_DECL_VSNPRINTF 0
12171_ACEOF
12172
12173
12174fi
12175
12176
12177
12178# ----------------------- #
12179# Checks for structures.  #
12180# ----------------------- #
12181
12182{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12183echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
12184if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12185  echo $ECHO_N "(cached) $ECHO_C" >&6
12186else
12187  cat >conftest.$ac_ext <<_ACEOF
12188/* confdefs.h.  */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h.  */
12193$ac_includes_default
12194int
12195main ()
12196{
12197static struct stat ac_aggr;
12198if (ac_aggr.st_blocks)
12199return 0;
12200  ;
12201  return 0;
12202}
12203_ACEOF
12204rm -f conftest.$ac_objext
12205if { (ac_try="$ac_compile"
12206case "(($ac_try" in
12207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208  *) ac_try_echo=$ac_try;;
12209esac
12210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211  (eval "$ac_compile") 2>conftest.er1
12212  ac_status=$?
12213  grep -v '^ *+' conftest.er1 >conftest.err
12214  rm -f conftest.er1
12215  cat conftest.err >&5
12216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217  (exit $ac_status); } &&
12218	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219  { (case "(($ac_try" in
12220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221  *) ac_try_echo=$ac_try;;
12222esac
12223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224  (eval "$ac_try") 2>&5
12225  ac_status=$?
12226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227  (exit $ac_status); }; } &&
12228	 { ac_try='test -s conftest.$ac_objext'
12229  { (case "(($ac_try" in
12230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231  *) ac_try_echo=$ac_try;;
12232esac
12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234  (eval "$ac_try") 2>&5
12235  ac_status=$?
12236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237  (exit $ac_status); }; }; then
12238  ac_cv_member_struct_stat_st_blocks=yes
12239else
12240  echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243	cat >conftest.$ac_ext <<_ACEOF
12244/* confdefs.h.  */
12245_ACEOF
12246cat confdefs.h >>conftest.$ac_ext
12247cat >>conftest.$ac_ext <<_ACEOF
12248/* end confdefs.h.  */
12249$ac_includes_default
12250int
12251main ()
12252{
12253static struct stat ac_aggr;
12254if (sizeof ac_aggr.st_blocks)
12255return 0;
12256  ;
12257  return 0;
12258}
12259_ACEOF
12260rm -f conftest.$ac_objext
12261if { (ac_try="$ac_compile"
12262case "(($ac_try" in
12263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264  *) ac_try_echo=$ac_try;;
12265esac
12266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267  (eval "$ac_compile") 2>conftest.er1
12268  ac_status=$?
12269  grep -v '^ *+' conftest.er1 >conftest.err
12270  rm -f conftest.er1
12271  cat conftest.err >&5
12272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273  (exit $ac_status); } &&
12274	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12275  { (case "(($ac_try" in
12276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277  *) ac_try_echo=$ac_try;;
12278esac
12279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280  (eval "$ac_try") 2>&5
12281  ac_status=$?
12282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283  (exit $ac_status); }; } &&
12284	 { ac_try='test -s conftest.$ac_objext'
12285  { (case "(($ac_try" in
12286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287  *) ac_try_echo=$ac_try;;
12288esac
12289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290  (eval "$ac_try") 2>&5
12291  ac_status=$?
12292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293  (exit $ac_status); }; }; then
12294  ac_cv_member_struct_stat_st_blocks=yes
12295else
12296  echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299	ac_cv_member_struct_stat_st_blocks=no
12300fi
12301
12302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303fi
12304
12305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12306fi
12307{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12308echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
12309if test $ac_cv_member_struct_stat_st_blocks = yes; then
12310
12311cat >>confdefs.h <<_ACEOF
12312#define HAVE_STRUCT_STAT_ST_BLOCKS 1
12313_ACEOF
12314
12315
12316fi
12317
12318{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12319echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
12320if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12321  echo $ECHO_N "(cached) $ECHO_C" >&6
12322else
12323  cat >conftest.$ac_ext <<_ACEOF
12324/* confdefs.h.  */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h.  */
12329$ac_includes_default
12330int
12331main ()
12332{
12333static struct stat ac_aggr;
12334if (ac_aggr.st_blksize)
12335return 0;
12336  ;
12337  return 0;
12338}
12339_ACEOF
12340rm -f conftest.$ac_objext
12341if { (ac_try="$ac_compile"
12342case "(($ac_try" in
12343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344  *) ac_try_echo=$ac_try;;
12345esac
12346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347  (eval "$ac_compile") 2>conftest.er1
12348  ac_status=$?
12349  grep -v '^ *+' conftest.er1 >conftest.err
12350  rm -f conftest.er1
12351  cat conftest.err >&5
12352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353  (exit $ac_status); } &&
12354	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12355  { (case "(($ac_try" in
12356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357  *) ac_try_echo=$ac_try;;
12358esac
12359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360  (eval "$ac_try") 2>&5
12361  ac_status=$?
12362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363  (exit $ac_status); }; } &&
12364	 { ac_try='test -s conftest.$ac_objext'
12365  { (case "(($ac_try" in
12366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367  *) ac_try_echo=$ac_try;;
12368esac
12369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370  (eval "$ac_try") 2>&5
12371  ac_status=$?
12372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373  (exit $ac_status); }; }; then
12374  ac_cv_member_struct_stat_st_blksize=yes
12375else
12376  echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
12379	cat >conftest.$ac_ext <<_ACEOF
12380/* confdefs.h.  */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h.  */
12385$ac_includes_default
12386int
12387main ()
12388{
12389static struct stat ac_aggr;
12390if (sizeof ac_aggr.st_blksize)
12391return 0;
12392  ;
12393  return 0;
12394}
12395_ACEOF
12396rm -f conftest.$ac_objext
12397if { (ac_try="$ac_compile"
12398case "(($ac_try" in
12399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400  *) ac_try_echo=$ac_try;;
12401esac
12402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403  (eval "$ac_compile") 2>conftest.er1
12404  ac_status=$?
12405  grep -v '^ *+' conftest.er1 >conftest.err
12406  rm -f conftest.er1
12407  cat conftest.err >&5
12408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409  (exit $ac_status); } &&
12410	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12411  { (case "(($ac_try" in
12412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413  *) ac_try_echo=$ac_try;;
12414esac
12415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416  (eval "$ac_try") 2>&5
12417  ac_status=$?
12418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419  (exit $ac_status); }; } &&
12420	 { ac_try='test -s conftest.$ac_objext'
12421  { (case "(($ac_try" in
12422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423  *) ac_try_echo=$ac_try;;
12424esac
12425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426  (eval "$ac_try") 2>&5
12427  ac_status=$?
12428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429  (exit $ac_status); }; }; then
12430  ac_cv_member_struct_stat_st_blksize=yes
12431else
12432  echo "$as_me: failed program was:" >&5
12433sed 's/^/| /' conftest.$ac_ext >&5
12434
12435	ac_cv_member_struct_stat_st_blksize=no
12436fi
12437
12438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439fi
12440
12441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12442fi
12443{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12444echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
12445if test $ac_cv_member_struct_stat_st_blksize = yes; then
12446
12447cat >>confdefs.h <<_ACEOF
12448#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12449_ACEOF
12450
12451
12452fi
12453
12454
12455# ------------------ #
12456# Checks for types.  #
12457# ------------------ #
12458
12459{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12460echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12461if test "${ac_cv_type_signal+set}" = set; then
12462  echo $ECHO_N "(cached) $ECHO_C" >&6
12463else
12464  cat >conftest.$ac_ext <<_ACEOF
12465/* confdefs.h.  */
12466_ACEOF
12467cat confdefs.h >>conftest.$ac_ext
12468cat >>conftest.$ac_ext <<_ACEOF
12469/* end confdefs.h.  */
12470#include <sys/types.h>
12471#include <signal.h>
12472
12473int
12474main ()
12475{
12476return *(signal (0, 0)) (0) == 1;
12477  ;
12478  return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext
12482if { (ac_try="$ac_compile"
12483case "(($ac_try" in
12484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485  *) ac_try_echo=$ac_try;;
12486esac
12487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488  (eval "$ac_compile") 2>conftest.er1
12489  ac_status=$?
12490  grep -v '^ *+' conftest.er1 >conftest.err
12491  rm -f conftest.er1
12492  cat conftest.err >&5
12493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494  (exit $ac_status); } &&
12495	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12496  { (case "(($ac_try" in
12497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498  *) ac_try_echo=$ac_try;;
12499esac
12500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501  (eval "$ac_try") 2>&5
12502  ac_status=$?
12503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504  (exit $ac_status); }; } &&
12505	 { ac_try='test -s conftest.$ac_objext'
12506  { (case "(($ac_try" in
12507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508  *) ac_try_echo=$ac_try;;
12509esac
12510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511  (eval "$ac_try") 2>&5
12512  ac_status=$?
12513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514  (exit $ac_status); }; }; then
12515  ac_cv_type_signal=int
12516else
12517  echo "$as_me: failed program was:" >&5
12518sed 's/^/| /' conftest.$ac_ext >&5
12519
12520	ac_cv_type_signal=void
12521fi
12522
12523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524fi
12525{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12526echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12527
12528cat >>confdefs.h <<_ACEOF
12529#define RETSIGTYPE $ac_cv_type_signal
12530_ACEOF
12531
12532
12533{ echo "$as_me:$LINENO: checking for socklen_t" >&5
12534echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
12535if test "${ac_cv_type_socklen_t+set}" = set; then
12536  echo $ECHO_N "(cached) $ECHO_C" >&6
12537else
12538  cat >conftest.$ac_ext <<_ACEOF
12539/* confdefs.h.  */
12540_ACEOF
12541cat confdefs.h >>conftest.$ac_ext
12542cat >>conftest.$ac_ext <<_ACEOF
12543/* end confdefs.h.  */
12544#include <sys/types.h>
12545#include <sys/socket.h>
12546
12547
12548typedef socklen_t ac__type_new_;
12549int
12550main ()
12551{
12552if ((ac__type_new_ *) 0)
12553  return 0;
12554if (sizeof (ac__type_new_))
12555  return 0;
12556  ;
12557  return 0;
12558}
12559_ACEOF
12560rm -f conftest.$ac_objext
12561if { (ac_try="$ac_compile"
12562case "(($ac_try" in
12563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564  *) ac_try_echo=$ac_try;;
12565esac
12566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567  (eval "$ac_compile") 2>conftest.er1
12568  ac_status=$?
12569  grep -v '^ *+' conftest.er1 >conftest.err
12570  rm -f conftest.er1
12571  cat conftest.err >&5
12572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573  (exit $ac_status); } &&
12574	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12575  { (case "(($ac_try" in
12576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577  *) ac_try_echo=$ac_try;;
12578esac
12579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580  (eval "$ac_try") 2>&5
12581  ac_status=$?
12582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583  (exit $ac_status); }; } &&
12584	 { ac_try='test -s conftest.$ac_objext'
12585  { (case "(($ac_try" in
12586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587  *) ac_try_echo=$ac_try;;
12588esac
12589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590  (eval "$ac_try") 2>&5
12591  ac_status=$?
12592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593  (exit $ac_status); }; }; then
12594  ac_cv_type_socklen_t=yes
12595else
12596  echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
12599	ac_cv_type_socklen_t=no
12600fi
12601
12602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12603fi
12604{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12605echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
12606if test $ac_cv_type_socklen_t = yes; then
12607
12608cat >>confdefs.h <<_ACEOF
12609#define HAVE_SOCKLEN_T 1
12610_ACEOF
12611
12612
12613fi
12614
12615{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
12616echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12617if test "${ac_cv_type_uintptr_t+set}" = set; then
12618  echo $ECHO_N "(cached) $ECHO_C" >&6
12619else
12620  cat >conftest.$ac_ext <<_ACEOF
12621/* confdefs.h.  */
12622_ACEOF
12623cat confdefs.h >>conftest.$ac_ext
12624cat >>conftest.$ac_ext <<_ACEOF
12625/* end confdefs.h.  */
12626#include <stdint.h>
12627
12628typedef uintptr_t ac__type_new_;
12629int
12630main ()
12631{
12632if ((ac__type_new_ *) 0)
12633  return 0;
12634if (sizeof (ac__type_new_))
12635  return 0;
12636  ;
12637  return 0;
12638}
12639_ACEOF
12640rm -f conftest.$ac_objext
12641if { (ac_try="$ac_compile"
12642case "(($ac_try" in
12643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644  *) ac_try_echo=$ac_try;;
12645esac
12646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647  (eval "$ac_compile") 2>conftest.er1
12648  ac_status=$?
12649  grep -v '^ *+' conftest.er1 >conftest.err
12650  rm -f conftest.er1
12651  cat conftest.err >&5
12652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653  (exit $ac_status); } &&
12654	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12655  { (case "(($ac_try" in
12656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657  *) ac_try_echo=$ac_try;;
12658esac
12659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660  (eval "$ac_try") 2>&5
12661  ac_status=$?
12662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663  (exit $ac_status); }; } &&
12664	 { ac_try='test -s conftest.$ac_objext'
12665  { (case "(($ac_try" in
12666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667  *) ac_try_echo=$ac_try;;
12668esac
12669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670  (eval "$ac_try") 2>&5
12671  ac_status=$?
12672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673  (exit $ac_status); }; }; then
12674  ac_cv_type_uintptr_t=yes
12675else
12676  echo "$as_me: failed program was:" >&5
12677sed 's/^/| /' conftest.$ac_ext >&5
12678
12679	ac_cv_type_uintptr_t=no
12680fi
12681
12682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683fi
12684{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12685echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12686if test $ac_cv_type_uintptr_t = yes; then
12687
12688cat >>confdefs.h <<_ACEOF
12689#define HAVE_UINTPTR_T 1
12690_ACEOF
12691
12692
12693fi
12694
12695
12696# ------------------------------------- #
12697# Checks for compiler characteristics.  #
12698# ------------------------------------- #
12699
12700{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12701echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12702if test "${ac_cv_c_const+set}" = set; then
12703  echo $ECHO_N "(cached) $ECHO_C" >&6
12704else
12705  cat >conftest.$ac_ext <<_ACEOF
12706/* confdefs.h.  */
12707_ACEOF
12708cat confdefs.h >>conftest.$ac_ext
12709cat >>conftest.$ac_ext <<_ACEOF
12710/* end confdefs.h.  */
12711
12712int
12713main ()
12714{
12715/* FIXME: Include the comments suggested by Paul. */
12716#ifndef __cplusplus
12717  /* Ultrix mips cc rejects this.  */
12718  typedef int charset[2];
12719  const charset x;
12720  /* SunOS 4.1.1 cc rejects this.  */
12721  char const *const *ccp;
12722  char **p;
12723  /* NEC SVR4.0.2 mips cc rejects this.  */
12724  struct point {int x, y;};
12725  static struct point const zero = {0,0};
12726  /* AIX XL C 1.02.0.0 rejects this.
12727     It does not let you subtract one const X* pointer from another in
12728     an arm of an if-expression whose if-part is not a constant
12729     expression */
12730  const char *g = "string";
12731  ccp = &g + (g ? g-g : 0);
12732  /* HPUX 7.0 cc rejects these. */
12733  ++ccp;
12734  p = (char**) ccp;
12735  ccp = (char const *const *) p;
12736  { /* SCO 3.2v4 cc rejects this.  */
12737    char *t;
12738    char const *s = 0 ? (char *) 0 : (char const *) 0;
12739
12740    *t++ = 0;
12741    if (s) return 0;
12742  }
12743  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12744    int x[] = {25, 17};
12745    const int *foo = &x[0];
12746    ++foo;
12747  }
12748  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12749    typedef const int *iptr;
12750    iptr p = 0;
12751    ++p;
12752  }
12753  { /* AIX XL C 1.02.0.0 rejects this saying
12754       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12755    struct s { int j; const int *ap[3]; };
12756    struct s *b; b->j = 5;
12757  }
12758  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12759    const int foo = 10;
12760    if (!foo) return 0;
12761  }
12762  return !x[0] && !zero.x;
12763#endif
12764
12765  ;
12766  return 0;
12767}
12768_ACEOF
12769rm -f conftest.$ac_objext
12770if { (ac_try="$ac_compile"
12771case "(($ac_try" in
12772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773  *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776  (eval "$ac_compile") 2>conftest.er1
12777  ac_status=$?
12778  grep -v '^ *+' conftest.er1 >conftest.err
12779  rm -f conftest.er1
12780  cat conftest.err >&5
12781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782  (exit $ac_status); } &&
12783	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12784  { (case "(($ac_try" in
12785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786  *) ac_try_echo=$ac_try;;
12787esac
12788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789  (eval "$ac_try") 2>&5
12790  ac_status=$?
12791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792  (exit $ac_status); }; } &&
12793	 { ac_try='test -s conftest.$ac_objext'
12794  { (case "(($ac_try" in
12795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796  *) ac_try_echo=$ac_try;;
12797esac
12798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799  (eval "$ac_try") 2>&5
12800  ac_status=$?
12801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802  (exit $ac_status); }; }; then
12803  ac_cv_c_const=yes
12804else
12805  echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
12808	ac_cv_c_const=no
12809fi
12810
12811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12812fi
12813{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12814echo "${ECHO_T}$ac_cv_c_const" >&6; }
12815if test $ac_cv_c_const = no; then
12816
12817cat >>confdefs.h <<\_ACEOF
12818#define const
12819_ACEOF
12820
12821fi
12822
12823{ echo "$as_me:$LINENO: checking for inline" >&5
12824echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
12825if test "${ac_cv_c_inline+set}" = set; then
12826  echo $ECHO_N "(cached) $ECHO_C" >&6
12827else
12828  ac_cv_c_inline=no
12829for ac_kw in inline __inline__ __inline; do
12830  cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h.  */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h.  */
12836#ifndef __cplusplus
12837typedef int foo_t;
12838static $ac_kw foo_t static_foo () {return 0; }
12839$ac_kw foo_t foo () {return 0; }
12840#endif
12841
12842_ACEOF
12843rm -f conftest.$ac_objext
12844if { (ac_try="$ac_compile"
12845case "(($ac_try" in
12846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847  *) ac_try_echo=$ac_try;;
12848esac
12849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850  (eval "$ac_compile") 2>conftest.er1
12851  ac_status=$?
12852  grep -v '^ *+' conftest.er1 >conftest.err
12853  rm -f conftest.er1
12854  cat conftest.err >&5
12855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856  (exit $ac_status); } &&
12857	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12858  { (case "(($ac_try" in
12859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860  *) ac_try_echo=$ac_try;;
12861esac
12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863  (eval "$ac_try") 2>&5
12864  ac_status=$?
12865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866  (exit $ac_status); }; } &&
12867	 { ac_try='test -s conftest.$ac_objext'
12868  { (case "(($ac_try" in
12869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870  *) ac_try_echo=$ac_try;;
12871esac
12872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873  (eval "$ac_try") 2>&5
12874  ac_status=$?
12875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876  (exit $ac_status); }; }; then
12877  ac_cv_c_inline=$ac_kw
12878else
12879  echo "$as_me: failed program was:" >&5
12880sed 's/^/| /' conftest.$ac_ext >&5
12881
12882
12883fi
12884
12885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886  test "$ac_cv_c_inline" != no && break
12887done
12888
12889fi
12890{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12891echo "${ECHO_T}$ac_cv_c_inline" >&6; }
12892
12893
12894case $ac_cv_c_inline in
12895  inline | yes) ;;
12896  *)
12897    case $ac_cv_c_inline in
12898      no) ac_val=;;
12899      *) ac_val=$ac_cv_c_inline;;
12900    esac
12901    cat >>confdefs.h <<_ACEOF
12902#ifndef __cplusplus
12903#define inline $ac_val
12904#endif
12905_ACEOF
12906    ;;
12907esac
12908
12909
12910# ------------------------------ #
12911# Checks for library functions.  #
12912# ------------------------------ #
12913
12914# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12915# for constant arguments.  Useless!
12916{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
12917echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
12918if test "${ac_cv_working_alloca_h+set}" = set; then
12919  echo $ECHO_N "(cached) $ECHO_C" >&6
12920else
12921  cat >conftest.$ac_ext <<_ACEOF
12922/* confdefs.h.  */
12923_ACEOF
12924cat confdefs.h >>conftest.$ac_ext
12925cat >>conftest.$ac_ext <<_ACEOF
12926/* end confdefs.h.  */
12927#include <alloca.h>
12928int
12929main ()
12930{
12931char *p = (char *) alloca (2 * sizeof (int));
12932			  if (p) return 0;
12933  ;
12934  return 0;
12935}
12936_ACEOF
12937rm -f conftest.$ac_objext conftest$ac_exeext
12938if { (ac_try="$ac_link"
12939case "(($ac_try" in
12940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941  *) ac_try_echo=$ac_try;;
12942esac
12943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944  (eval "$ac_link") 2>conftest.er1
12945  ac_status=$?
12946  grep -v '^ *+' conftest.er1 >conftest.err
12947  rm -f conftest.er1
12948  cat conftest.err >&5
12949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950  (exit $ac_status); } &&
12951	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12952  { (case "(($ac_try" in
12953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954  *) ac_try_echo=$ac_try;;
12955esac
12956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957  (eval "$ac_try") 2>&5
12958  ac_status=$?
12959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960  (exit $ac_status); }; } &&
12961	 { ac_try='test -s conftest$ac_exeext'
12962  { (case "(($ac_try" in
12963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964  *) ac_try_echo=$ac_try;;
12965esac
12966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967  (eval "$ac_try") 2>&5
12968  ac_status=$?
12969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970  (exit $ac_status); }; }; then
12971  ac_cv_working_alloca_h=yes
12972else
12973  echo "$as_me: failed program was:" >&5
12974sed 's/^/| /' conftest.$ac_ext >&5
12975
12976	ac_cv_working_alloca_h=no
12977fi
12978
12979rm -f core conftest.err conftest.$ac_objext \
12980      conftest$ac_exeext conftest.$ac_ext
12981fi
12982{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12983echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
12984if test $ac_cv_working_alloca_h = yes; then
12985
12986cat >>confdefs.h <<\_ACEOF
12987#define HAVE_ALLOCA_H 1
12988_ACEOF
12989
12990fi
12991
12992{ echo "$as_me:$LINENO: checking for alloca" >&5
12993echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
12994if test "${ac_cv_func_alloca_works+set}" = set; then
12995  echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
12997  cat >conftest.$ac_ext <<_ACEOF
12998/* confdefs.h.  */
12999_ACEOF
13000cat confdefs.h >>conftest.$ac_ext
13001cat >>conftest.$ac_ext <<_ACEOF
13002/* end confdefs.h.  */
13003#ifdef __GNUC__
13004# define alloca __builtin_alloca
13005#else
13006# ifdef _MSC_VER
13007#  include <malloc.h>
13008#  define alloca _alloca
13009# else
13010#  if HAVE_ALLOCA_H
13011#   include <alloca.h>
13012#  else
13013#   ifdef _AIX
13014 #pragma alloca
13015#   else
13016#    ifndef alloca /* predefined by HP cc +Olibcalls */
13017char *alloca ();
13018#    endif
13019#   endif
13020#  endif
13021# endif
13022#endif
13023
13024int
13025main ()
13026{
13027char *p = (char *) alloca (1);
13028				    if (p) return 0;
13029  ;
13030  return 0;
13031}
13032_ACEOF
13033rm -f conftest.$ac_objext conftest$ac_exeext
13034if { (ac_try="$ac_link"
13035case "(($ac_try" in
13036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037  *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040  (eval "$ac_link") 2>conftest.er1
13041  ac_status=$?
13042  grep -v '^ *+' conftest.er1 >conftest.err
13043  rm -f conftest.er1
13044  cat conftest.err >&5
13045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046  (exit $ac_status); } &&
13047	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13048  { (case "(($ac_try" in
13049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050  *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053  (eval "$ac_try") 2>&5
13054  ac_status=$?
13055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056  (exit $ac_status); }; } &&
13057	 { ac_try='test -s conftest$ac_exeext'
13058  { (case "(($ac_try" in
13059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060  *) ac_try_echo=$ac_try;;
13061esac
13062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063  (eval "$ac_try") 2>&5
13064  ac_status=$?
13065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066  (exit $ac_status); }; }; then
13067  ac_cv_func_alloca_works=yes
13068else
13069  echo "$as_me: failed program was:" >&5
13070sed 's/^/| /' conftest.$ac_ext >&5
13071
13072	ac_cv_func_alloca_works=no
13073fi
13074
13075rm -f core conftest.err conftest.$ac_objext \
13076      conftest$ac_exeext conftest.$ac_ext
13077fi
13078{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13079echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
13080
13081if test $ac_cv_func_alloca_works = yes; then
13082
13083cat >>confdefs.h <<\_ACEOF
13084#define HAVE_ALLOCA 1
13085_ACEOF
13086
13087else
13088  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13089# that cause trouble.  Some versions do not even contain alloca or
13090# contain a buggy version.  If you still want to use their alloca,
13091# use ar to extract alloca.o from them instead of compiling alloca.c.
13092
13093ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13094
13095cat >>confdefs.h <<\_ACEOF
13096#define C_ALLOCA 1
13097_ACEOF
13098
13099
13100{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13101echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
13102if test "${ac_cv_os_cray+set}" = set; then
13103  echo $ECHO_N "(cached) $ECHO_C" >&6
13104else
13105  cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h.  */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h.  */
13111#if defined CRAY && ! defined CRAY2
13112webecray
13113#else
13114wenotbecray
13115#endif
13116
13117_ACEOF
13118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13119  $EGREP "webecray" >/dev/null 2>&1; then
13120  ac_cv_os_cray=yes
13121else
13122  ac_cv_os_cray=no
13123fi
13124rm -f conftest*
13125
13126fi
13127{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13128echo "${ECHO_T}$ac_cv_os_cray" >&6; }
13129if test $ac_cv_os_cray = yes; then
13130  for ac_func in _getb67 GETB67 getb67; do
13131    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13132{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13134if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13135  echo $ECHO_N "(cached) $ECHO_C" >&6
13136else
13137  cat >conftest.$ac_ext <<_ACEOF
13138/* confdefs.h.  */
13139_ACEOF
13140cat confdefs.h >>conftest.$ac_ext
13141cat >>conftest.$ac_ext <<_ACEOF
13142/* end confdefs.h.  */
13143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13144   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13145#define $ac_func innocuous_$ac_func
13146
13147/* System header to define __stub macros and hopefully few prototypes,
13148    which can conflict with char $ac_func (); below.
13149    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13150    <limits.h> exists even on freestanding compilers.  */
13151
13152#ifdef __STDC__
13153# include <limits.h>
13154#else
13155# include <assert.h>
13156#endif
13157
13158#undef $ac_func
13159
13160/* Override any GCC internal prototype to avoid an error.
13161   Use char because int might match the return type of a GCC
13162   builtin and then its argument prototype would still apply.  */
13163#ifdef __cplusplus
13164extern "C"
13165#endif
13166char $ac_func ();
13167/* The GNU C library defines this for functions which it implements
13168    to always fail with ENOSYS.  Some functions are actually named
13169    something starting with __ and the normal name is an alias.  */
13170#if defined __stub_$ac_func || defined __stub___$ac_func
13171choke me
13172#endif
13173
13174int
13175main ()
13176{
13177return $ac_func ();
13178  ;
13179  return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext conftest$ac_exeext
13183if { (ac_try="$ac_link"
13184case "(($ac_try" in
13185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186  *) ac_try_echo=$ac_try;;
13187esac
13188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189  (eval "$ac_link") 2>conftest.er1
13190  ac_status=$?
13191  grep -v '^ *+' conftest.er1 >conftest.err
13192  rm -f conftest.er1
13193  cat conftest.err >&5
13194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195  (exit $ac_status); } &&
13196	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13197  { (case "(($ac_try" in
13198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199  *) ac_try_echo=$ac_try;;
13200esac
13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202  (eval "$ac_try") 2>&5
13203  ac_status=$?
13204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205  (exit $ac_status); }; } &&
13206	 { ac_try='test -s conftest$ac_exeext'
13207  { (case "(($ac_try" in
13208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209  *) ac_try_echo=$ac_try;;
13210esac
13211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212  (eval "$ac_try") 2>&5
13213  ac_status=$?
13214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215  (exit $ac_status); }; }; then
13216  eval "$as_ac_var=yes"
13217else
13218  echo "$as_me: failed program was:" >&5
13219sed 's/^/| /' conftest.$ac_ext >&5
13220
13221	eval "$as_ac_var=no"
13222fi
13223
13224rm -f core conftest.err conftest.$ac_objext \
13225      conftest$ac_exeext conftest.$ac_ext
13226fi
13227ac_res=`eval echo '${'$as_ac_var'}'`
13228	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13229echo "${ECHO_T}$ac_res" >&6; }
13230if test `eval echo '${'$as_ac_var'}'` = yes; then
13231
13232cat >>confdefs.h <<_ACEOF
13233#define CRAY_STACKSEG_END $ac_func
13234_ACEOF
13235
13236    break
13237fi
13238
13239  done
13240fi
13241
13242{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13243echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
13244if test "${ac_cv_c_stack_direction+set}" = set; then
13245  echo $ECHO_N "(cached) $ECHO_C" >&6
13246else
13247  if test "$cross_compiling" = yes; then
13248  ac_cv_c_stack_direction=0
13249else
13250  cat >conftest.$ac_ext <<_ACEOF
13251/* confdefs.h.  */
13252_ACEOF
13253cat confdefs.h >>conftest.$ac_ext
13254cat >>conftest.$ac_ext <<_ACEOF
13255/* end confdefs.h.  */
13256$ac_includes_default
13257int
13258find_stack_direction ()
13259{
13260  static char *addr = 0;
13261  auto char dummy;
13262  if (addr == 0)
13263    {
13264      addr = &dummy;
13265      return find_stack_direction ();
13266    }
13267  else
13268    return (&dummy > addr) ? 1 : -1;
13269}
13270
13271int
13272main ()
13273{
13274  return find_stack_direction () < 0;
13275}
13276_ACEOF
13277rm -f conftest$ac_exeext
13278if { (ac_try="$ac_link"
13279case "(($ac_try" in
13280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281  *) ac_try_echo=$ac_try;;
13282esac
13283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284  (eval "$ac_link") 2>&5
13285  ac_status=$?
13286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13288  { (case "(($ac_try" in
13289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290  *) ac_try_echo=$ac_try;;
13291esac
13292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293  (eval "$ac_try") 2>&5
13294  ac_status=$?
13295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296  (exit $ac_status); }; }; then
13297  ac_cv_c_stack_direction=1
13298else
13299  echo "$as_me: program exited with status $ac_status" >&5
13300echo "$as_me: failed program was:" >&5
13301sed 's/^/| /' conftest.$ac_ext >&5
13302
13303( exit $ac_status )
13304ac_cv_c_stack_direction=-1
13305fi
13306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13307fi
13308
13309
13310fi
13311{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13312echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
13313
13314cat >>confdefs.h <<_ACEOF
13315#define STACK_DIRECTION $ac_cv_c_stack_direction
13316_ACEOF
13317
13318
13319fi
13320
13321
13322
13323for ac_header in stdlib.h unistd.h
13324do
13325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13327  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13330  echo $ECHO_N "(cached) $ECHO_C" >&6
13331fi
13332ac_res=`eval echo '${'$as_ac_Header'}'`
13333	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13334echo "${ECHO_T}$ac_res" >&6; }
13335else
13336  # Is the header compilable?
13337{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13339cat >conftest.$ac_ext <<_ACEOF
13340/* confdefs.h.  */
13341_ACEOF
13342cat confdefs.h >>conftest.$ac_ext
13343cat >>conftest.$ac_ext <<_ACEOF
13344/* end confdefs.h.  */
13345$ac_includes_default
13346#include <$ac_header>
13347_ACEOF
13348rm -f conftest.$ac_objext
13349if { (ac_try="$ac_compile"
13350case "(($ac_try" in
13351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352  *) ac_try_echo=$ac_try;;
13353esac
13354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355  (eval "$ac_compile") 2>conftest.er1
13356  ac_status=$?
13357  grep -v '^ *+' conftest.er1 >conftest.err
13358  rm -f conftest.er1
13359  cat conftest.err >&5
13360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361  (exit $ac_status); } &&
13362	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13363  { (case "(($ac_try" in
13364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365  *) ac_try_echo=$ac_try;;
13366esac
13367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368  (eval "$ac_try") 2>&5
13369  ac_status=$?
13370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371  (exit $ac_status); }; } &&
13372	 { ac_try='test -s conftest.$ac_objext'
13373  { (case "(($ac_try" in
13374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375  *) ac_try_echo=$ac_try;;
13376esac
13377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378  (eval "$ac_try") 2>&5
13379  ac_status=$?
13380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381  (exit $ac_status); }; }; then
13382  ac_header_compiler=yes
13383else
13384  echo "$as_me: failed program was:" >&5
13385sed 's/^/| /' conftest.$ac_ext >&5
13386
13387	ac_header_compiler=no
13388fi
13389
13390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13392echo "${ECHO_T}$ac_header_compiler" >&6; }
13393
13394# Is the header present?
13395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13397cat >conftest.$ac_ext <<_ACEOF
13398/* confdefs.h.  */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h.  */
13403#include <$ac_header>
13404_ACEOF
13405if { (ac_try="$ac_cpp conftest.$ac_ext"
13406case "(($ac_try" in
13407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408  *) ac_try_echo=$ac_try;;
13409esac
13410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13412  ac_status=$?
13413  grep -v '^ *+' conftest.er1 >conftest.err
13414  rm -f conftest.er1
13415  cat conftest.err >&5
13416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417  (exit $ac_status); } >/dev/null; then
13418  if test -s conftest.err; then
13419    ac_cpp_err=$ac_c_preproc_warn_flag
13420    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13421  else
13422    ac_cpp_err=
13423  fi
13424else
13425  ac_cpp_err=yes
13426fi
13427if test -z "$ac_cpp_err"; then
13428  ac_header_preproc=yes
13429else
13430  echo "$as_me: failed program was:" >&5
13431sed 's/^/| /' conftest.$ac_ext >&5
13432
13433  ac_header_preproc=no
13434fi
13435
13436rm -f conftest.err conftest.$ac_ext
13437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13438echo "${ECHO_T}$ac_header_preproc" >&6; }
13439
13440# So?  What about this header?
13441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13442  yes:no: )
13443    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13445    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13447    ac_header_preproc=yes
13448    ;;
13449  no:yes:* )
13450    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13452    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13453echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13454    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13456    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13457echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13458    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13460    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13462
13463    ;;
13464esac
13465{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13468  echo $ECHO_N "(cached) $ECHO_C" >&6
13469else
13470  eval "$as_ac_Header=\$ac_header_preproc"
13471fi
13472ac_res=`eval echo '${'$as_ac_Header'}'`
13473	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13474echo "${ECHO_T}$ac_res" >&6; }
13475
13476fi
13477if test `eval echo '${'$as_ac_Header'}'` = yes; then
13478  cat >>confdefs.h <<_ACEOF
13479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13480_ACEOF
13481
13482fi
13483
13484done
13485
13486
13487for ac_func in getpagesize
13488do
13489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13490{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13492if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13493  echo $ECHO_N "(cached) $ECHO_C" >&6
13494else
13495  cat >conftest.$ac_ext <<_ACEOF
13496/* confdefs.h.  */
13497_ACEOF
13498cat confdefs.h >>conftest.$ac_ext
13499cat >>conftest.$ac_ext <<_ACEOF
13500/* end confdefs.h.  */
13501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13502   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13503#define $ac_func innocuous_$ac_func
13504
13505/* System header to define __stub macros and hopefully few prototypes,
13506    which can conflict with char $ac_func (); below.
13507    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13508    <limits.h> exists even on freestanding compilers.  */
13509
13510#ifdef __STDC__
13511# include <limits.h>
13512#else
13513# include <assert.h>
13514#endif
13515
13516#undef $ac_func
13517
13518/* Override any GCC internal prototype to avoid an error.
13519   Use char because int might match the return type of a GCC
13520   builtin and then its argument prototype would still apply.  */
13521#ifdef __cplusplus
13522extern "C"
13523#endif
13524char $ac_func ();
13525/* The GNU C library defines this for functions which it implements
13526    to always fail with ENOSYS.  Some functions are actually named
13527    something starting with __ and the normal name is an alias.  */
13528#if defined __stub_$ac_func || defined __stub___$ac_func
13529choke me
13530#endif
13531
13532int
13533main ()
13534{
13535return $ac_func ();
13536  ;
13537  return 0;
13538}
13539_ACEOF
13540rm -f conftest.$ac_objext conftest$ac_exeext
13541if { (ac_try="$ac_link"
13542case "(($ac_try" in
13543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544  *) ac_try_echo=$ac_try;;
13545esac
13546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547  (eval "$ac_link") 2>conftest.er1
13548  ac_status=$?
13549  grep -v '^ *+' conftest.er1 >conftest.err
13550  rm -f conftest.er1
13551  cat conftest.err >&5
13552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553  (exit $ac_status); } &&
13554	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13555  { (case "(($ac_try" in
13556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557  *) ac_try_echo=$ac_try;;
13558esac
13559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560  (eval "$ac_try") 2>&5
13561  ac_status=$?
13562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563  (exit $ac_status); }; } &&
13564	 { ac_try='test -s conftest$ac_exeext'
13565  { (case "(($ac_try" in
13566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567  *) ac_try_echo=$ac_try;;
13568esac
13569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570  (eval "$ac_try") 2>&5
13571  ac_status=$?
13572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573  (exit $ac_status); }; }; then
13574  eval "$as_ac_var=yes"
13575else
13576  echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579	eval "$as_ac_var=no"
13580fi
13581
13582rm -f core conftest.err conftest.$ac_objext \
13583      conftest$ac_exeext conftest.$ac_ext
13584fi
13585ac_res=`eval echo '${'$as_ac_var'}'`
13586	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13587echo "${ECHO_T}$ac_res" >&6; }
13588if test `eval echo '${'$as_ac_var'}'` = yes; then
13589  cat >>confdefs.h <<_ACEOF
13590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13591_ACEOF
13592
13593fi
13594done
13595
13596{ echo "$as_me:$LINENO: checking for working mmap" >&5
13597echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13598if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13599  echo $ECHO_N "(cached) $ECHO_C" >&6
13600else
13601  if test "$cross_compiling" = yes; then
13602  ac_cv_func_mmap_fixed_mapped=no
13603else
13604  cat >conftest.$ac_ext <<_ACEOF
13605/* confdefs.h.  */
13606_ACEOF
13607cat confdefs.h >>conftest.$ac_ext
13608cat >>conftest.$ac_ext <<_ACEOF
13609/* end confdefs.h.  */
13610$ac_includes_default
13611/* malloc might have been renamed as rpl_malloc. */
13612#undef malloc
13613
13614/* Thanks to Mike Haertel and Jim Avera for this test.
13615   Here is a matrix of mmap possibilities:
13616	mmap private not fixed
13617	mmap private fixed at somewhere currently unmapped
13618	mmap private fixed at somewhere already mapped
13619	mmap shared not fixed
13620	mmap shared fixed at somewhere currently unmapped
13621	mmap shared fixed at somewhere already mapped
13622   For private mappings, we should verify that changes cannot be read()
13623   back from the file, nor mmap's back from the file at a different
13624   address.  (There have been systems where private was not correctly
13625   implemented like the infamous i386 svr4.0, and systems where the
13626   VM page cache was not coherent with the file system buffer cache
13627   like early versions of FreeBSD and possibly contemporary NetBSD.)
13628   For shared mappings, we should conversely verify that changes get
13629   propagated back to all the places they're supposed to be.
13630
13631   Grep wants private fixed already mapped.
13632   The main things grep needs to know about mmap are:
13633   * does it exist and is it safe to write into the mmap'd area
13634   * how to use it (BSD variants)  */
13635
13636#include <fcntl.h>
13637#include <sys/mman.h>
13638
13639#if !STDC_HEADERS && !HAVE_STDLIB_H
13640char *malloc ();
13641#endif
13642
13643/* This mess was copied from the GNU getpagesize.h.  */
13644#if !HAVE_GETPAGESIZE
13645/* Assume that all systems that can run configure have sys/param.h.  */
13646# if !HAVE_SYS_PARAM_H
13647#  define HAVE_SYS_PARAM_H 1
13648# endif
13649
13650# ifdef _SC_PAGESIZE
13651#  define getpagesize() sysconf(_SC_PAGESIZE)
13652# else /* no _SC_PAGESIZE */
13653#  if HAVE_SYS_PARAM_H
13654#   include <sys/param.h>
13655#   ifdef EXEC_PAGESIZE
13656#    define getpagesize() EXEC_PAGESIZE
13657#   else /* no EXEC_PAGESIZE */
13658#    ifdef NBPG
13659#     define getpagesize() NBPG * CLSIZE
13660#     ifndef CLSIZE
13661#      define CLSIZE 1
13662#     endif /* no CLSIZE */
13663#    else /* no NBPG */
13664#     ifdef NBPC
13665#      define getpagesize() NBPC
13666#     else /* no NBPC */
13667#      ifdef PAGESIZE
13668#       define getpagesize() PAGESIZE
13669#      endif /* PAGESIZE */
13670#     endif /* no NBPC */
13671#    endif /* no NBPG */
13672#   endif /* no EXEC_PAGESIZE */
13673#  else /* no HAVE_SYS_PARAM_H */
13674#   define getpagesize() 8192	/* punt totally */
13675#  endif /* no HAVE_SYS_PARAM_H */
13676# endif /* no _SC_PAGESIZE */
13677
13678#endif /* no HAVE_GETPAGESIZE */
13679
13680int
13681main ()
13682{
13683  char *data, *data2, *data3;
13684  int i, pagesize;
13685  int fd;
13686
13687  pagesize = getpagesize ();
13688
13689  /* First, make a file with some known garbage in it. */
13690  data = (char *) malloc (pagesize);
13691  if (!data)
13692    return 1;
13693  for (i = 0; i < pagesize; ++i)
13694    *(data + i) = rand ();
13695  umask (0);
13696  fd = creat ("conftest.mmap", 0600);
13697  if (fd < 0)
13698    return 1;
13699  if (write (fd, data, pagesize) != pagesize)
13700    return 1;
13701  close (fd);
13702
13703  /* Next, try to mmap the file at a fixed address which already has
13704     something else allocated at it.  If we can, also make sure that
13705     we see the same garbage.  */
13706  fd = open ("conftest.mmap", O_RDWR);
13707  if (fd < 0)
13708    return 1;
13709  data2 = (char *) malloc (2 * pagesize);
13710  if (!data2)
13711    return 1;
13712  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13713  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13714		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
13715    return 1;
13716  for (i = 0; i < pagesize; ++i)
13717    if (*(data + i) != *(data2 + i))
13718      return 1;
13719
13720  /* Finally, make sure that changes to the mapped area do not
13721     percolate back to the file as seen by read().  (This is a bug on
13722     some variants of i386 svr4.0.)  */
13723  for (i = 0; i < pagesize; ++i)
13724    *(data2 + i) = *(data2 + i) + 1;
13725  data3 = (char *) malloc (pagesize);
13726  if (!data3)
13727    return 1;
13728  if (read (fd, data3, pagesize) != pagesize)
13729    return 1;
13730  for (i = 0; i < pagesize; ++i)
13731    if (*(data + i) != *(data3 + i))
13732      return 1;
13733  close (fd);
13734  return 0;
13735}
13736_ACEOF
13737rm -f conftest$ac_exeext
13738if { (ac_try="$ac_link"
13739case "(($ac_try" in
13740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741  *) ac_try_echo=$ac_try;;
13742esac
13743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744  (eval "$ac_link") 2>&5
13745  ac_status=$?
13746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13748  { (case "(($ac_try" in
13749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750  *) ac_try_echo=$ac_try;;
13751esac
13752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753  (eval "$ac_try") 2>&5
13754  ac_status=$?
13755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756  (exit $ac_status); }; }; then
13757  ac_cv_func_mmap_fixed_mapped=yes
13758else
13759  echo "$as_me: program exited with status $ac_status" >&5
13760echo "$as_me: failed program was:" >&5
13761sed 's/^/| /' conftest.$ac_ext >&5
13762
13763( exit $ac_status )
13764ac_cv_func_mmap_fixed_mapped=no
13765fi
13766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13767fi
13768
13769
13770fi
13771{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13772echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13773if test $ac_cv_func_mmap_fixed_mapped = yes; then
13774
13775cat >>confdefs.h <<\_ACEOF
13776#define HAVE_MMAP 1
13777_ACEOF
13778
13779fi
13780rm -f conftest.mmap
13781
13782{ echo "$as_me:$LINENO: checking for pid_t" >&5
13783echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13784if test "${ac_cv_type_pid_t+set}" = set; then
13785  echo $ECHO_N "(cached) $ECHO_C" >&6
13786else
13787  cat >conftest.$ac_ext <<_ACEOF
13788/* confdefs.h.  */
13789_ACEOF
13790cat confdefs.h >>conftest.$ac_ext
13791cat >>conftest.$ac_ext <<_ACEOF
13792/* end confdefs.h.  */
13793$ac_includes_default
13794typedef pid_t ac__type_new_;
13795int
13796main ()
13797{
13798if ((ac__type_new_ *) 0)
13799  return 0;
13800if (sizeof (ac__type_new_))
13801  return 0;
13802  ;
13803  return 0;
13804}
13805_ACEOF
13806rm -f conftest.$ac_objext
13807if { (ac_try="$ac_compile"
13808case "(($ac_try" in
13809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810  *) ac_try_echo=$ac_try;;
13811esac
13812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813  (eval "$ac_compile") 2>conftest.er1
13814  ac_status=$?
13815  grep -v '^ *+' conftest.er1 >conftest.err
13816  rm -f conftest.er1
13817  cat conftest.err >&5
13818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819  (exit $ac_status); } &&
13820	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13821  { (case "(($ac_try" in
13822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823  *) ac_try_echo=$ac_try;;
13824esac
13825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826  (eval "$ac_try") 2>&5
13827  ac_status=$?
13828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829  (exit $ac_status); }; } &&
13830	 { ac_try='test -s conftest.$ac_objext'
13831  { (case "(($ac_try" in
13832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833  *) ac_try_echo=$ac_try;;
13834esac
13835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836  (eval "$ac_try") 2>&5
13837  ac_status=$?
13838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839  (exit $ac_status); }; }; then
13840  ac_cv_type_pid_t=yes
13841else
13842  echo "$as_me: failed program was:" >&5
13843sed 's/^/| /' conftest.$ac_ext >&5
13844
13845	ac_cv_type_pid_t=no
13846fi
13847
13848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849fi
13850{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13851echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13852if test $ac_cv_type_pid_t = yes; then
13853  :
13854else
13855
13856cat >>confdefs.h <<_ACEOF
13857#define pid_t int
13858_ACEOF
13859
13860fi
13861
13862
13863for ac_header in vfork.h
13864do
13865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13867  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13870  echo $ECHO_N "(cached) $ECHO_C" >&6
13871fi
13872ac_res=`eval echo '${'$as_ac_Header'}'`
13873	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13874echo "${ECHO_T}$ac_res" >&6; }
13875else
13876  # Is the header compilable?
13877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13879cat >conftest.$ac_ext <<_ACEOF
13880/* confdefs.h.  */
13881_ACEOF
13882cat confdefs.h >>conftest.$ac_ext
13883cat >>conftest.$ac_ext <<_ACEOF
13884/* end confdefs.h.  */
13885$ac_includes_default
13886#include <$ac_header>
13887_ACEOF
13888rm -f conftest.$ac_objext
13889if { (ac_try="$ac_compile"
13890case "(($ac_try" in
13891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892  *) ac_try_echo=$ac_try;;
13893esac
13894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895  (eval "$ac_compile") 2>conftest.er1
13896  ac_status=$?
13897  grep -v '^ *+' conftest.er1 >conftest.err
13898  rm -f conftest.er1
13899  cat conftest.err >&5
13900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901  (exit $ac_status); } &&
13902	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13903  { (case "(($ac_try" in
13904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905  *) ac_try_echo=$ac_try;;
13906esac
13907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908  (eval "$ac_try") 2>&5
13909  ac_status=$?
13910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911  (exit $ac_status); }; } &&
13912	 { ac_try='test -s conftest.$ac_objext'
13913  { (case "(($ac_try" in
13914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915  *) ac_try_echo=$ac_try;;
13916esac
13917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918  (eval "$ac_try") 2>&5
13919  ac_status=$?
13920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921  (exit $ac_status); }; }; then
13922  ac_header_compiler=yes
13923else
13924  echo "$as_me: failed program was:" >&5
13925sed 's/^/| /' conftest.$ac_ext >&5
13926
13927	ac_header_compiler=no
13928fi
13929
13930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13932echo "${ECHO_T}$ac_header_compiler" >&6; }
13933
13934# Is the header present?
13935{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13937cat >conftest.$ac_ext <<_ACEOF
13938/* confdefs.h.  */
13939_ACEOF
13940cat confdefs.h >>conftest.$ac_ext
13941cat >>conftest.$ac_ext <<_ACEOF
13942/* end confdefs.h.  */
13943#include <$ac_header>
13944_ACEOF
13945if { (ac_try="$ac_cpp conftest.$ac_ext"
13946case "(($ac_try" in
13947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948  *) ac_try_echo=$ac_try;;
13949esac
13950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13952  ac_status=$?
13953  grep -v '^ *+' conftest.er1 >conftest.err
13954  rm -f conftest.er1
13955  cat conftest.err >&5
13956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957  (exit $ac_status); } >/dev/null; then
13958  if test -s conftest.err; then
13959    ac_cpp_err=$ac_c_preproc_warn_flag
13960    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13961  else
13962    ac_cpp_err=
13963  fi
13964else
13965  ac_cpp_err=yes
13966fi
13967if test -z "$ac_cpp_err"; then
13968  ac_header_preproc=yes
13969else
13970  echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973  ac_header_preproc=no
13974fi
13975
13976rm -f conftest.err conftest.$ac_ext
13977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13978echo "${ECHO_T}$ac_header_preproc" >&6; }
13979
13980# So?  What about this header?
13981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13982  yes:no: )
13983    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13985    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13987    ac_header_preproc=yes
13988    ;;
13989  no:yes:* )
13990    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13992    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13993echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13994    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13996    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13997echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13998    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14000    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14002
14003    ;;
14004esac
14005{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14008  echo $ECHO_N "(cached) $ECHO_C" >&6
14009else
14010  eval "$as_ac_Header=\$ac_header_preproc"
14011fi
14012ac_res=`eval echo '${'$as_ac_Header'}'`
14013	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14014echo "${ECHO_T}$ac_res" >&6; }
14015
14016fi
14017if test `eval echo '${'$as_ac_Header'}'` = yes; then
14018  cat >>confdefs.h <<_ACEOF
14019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14020_ACEOF
14021
14022fi
14023
14024done
14025
14026
14027
14028for ac_func in fork vfork
14029do
14030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14031{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14033if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14034  echo $ECHO_N "(cached) $ECHO_C" >&6
14035else
14036  cat >conftest.$ac_ext <<_ACEOF
14037/* confdefs.h.  */
14038_ACEOF
14039cat confdefs.h >>conftest.$ac_ext
14040cat >>conftest.$ac_ext <<_ACEOF
14041/* end confdefs.h.  */
14042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14043   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14044#define $ac_func innocuous_$ac_func
14045
14046/* System header to define __stub macros and hopefully few prototypes,
14047    which can conflict with char $ac_func (); below.
14048    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14049    <limits.h> exists even on freestanding compilers.  */
14050
14051#ifdef __STDC__
14052# include <limits.h>
14053#else
14054# include <assert.h>
14055#endif
14056
14057#undef $ac_func
14058
14059/* Override any GCC internal prototype to avoid an error.
14060   Use char because int might match the return type of a GCC
14061   builtin and then its argument prototype would still apply.  */
14062#ifdef __cplusplus
14063extern "C"
14064#endif
14065char $ac_func ();
14066/* The GNU C library defines this for functions which it implements
14067    to always fail with ENOSYS.  Some functions are actually named
14068    something starting with __ and the normal name is an alias.  */
14069#if defined __stub_$ac_func || defined __stub___$ac_func
14070choke me
14071#endif
14072
14073int
14074main ()
14075{
14076return $ac_func ();
14077  ;
14078  return 0;
14079}
14080_ACEOF
14081rm -f conftest.$ac_objext conftest$ac_exeext
14082if { (ac_try="$ac_link"
14083case "(($ac_try" in
14084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085  *) ac_try_echo=$ac_try;;
14086esac
14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088  (eval "$ac_link") 2>conftest.er1
14089  ac_status=$?
14090  grep -v '^ *+' conftest.er1 >conftest.err
14091  rm -f conftest.er1
14092  cat conftest.err >&5
14093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094  (exit $ac_status); } &&
14095	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14096  { (case "(($ac_try" in
14097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098  *) ac_try_echo=$ac_try;;
14099esac
14100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101  (eval "$ac_try") 2>&5
14102  ac_status=$?
14103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104  (exit $ac_status); }; } &&
14105	 { ac_try='test -s conftest$ac_exeext'
14106  { (case "(($ac_try" in
14107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108  *) ac_try_echo=$ac_try;;
14109esac
14110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111  (eval "$ac_try") 2>&5
14112  ac_status=$?
14113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114  (exit $ac_status); }; }; then
14115  eval "$as_ac_var=yes"
14116else
14117  echo "$as_me: failed program was:" >&5
14118sed 's/^/| /' conftest.$ac_ext >&5
14119
14120	eval "$as_ac_var=no"
14121fi
14122
14123rm -f core conftest.err conftest.$ac_objext \
14124      conftest$ac_exeext conftest.$ac_ext
14125fi
14126ac_res=`eval echo '${'$as_ac_var'}'`
14127	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14128echo "${ECHO_T}$ac_res" >&6; }
14129if test `eval echo '${'$as_ac_var'}'` = yes; then
14130  cat >>confdefs.h <<_ACEOF
14131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14132_ACEOF
14133
14134fi
14135done
14136
14137if test "x$ac_cv_func_fork" = xyes; then
14138  { echo "$as_me:$LINENO: checking for working fork" >&5
14139echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
14140if test "${ac_cv_func_fork_works+set}" = set; then
14141  echo $ECHO_N "(cached) $ECHO_C" >&6
14142else
14143  if test "$cross_compiling" = yes; then
14144  ac_cv_func_fork_works=cross
14145else
14146  cat >conftest.$ac_ext <<_ACEOF
14147/* confdefs.h.  */
14148_ACEOF
14149cat confdefs.h >>conftest.$ac_ext
14150cat >>conftest.$ac_ext <<_ACEOF
14151/* end confdefs.h.  */
14152$ac_includes_default
14153int
14154main ()
14155{
14156
14157	  /* By Ruediger Kuhlmann. */
14158	  return fork () < 0;
14159
14160  ;
14161  return 0;
14162}
14163_ACEOF
14164rm -f conftest$ac_exeext
14165if { (ac_try="$ac_link"
14166case "(($ac_try" in
14167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168  *) ac_try_echo=$ac_try;;
14169esac
14170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171  (eval "$ac_link") 2>&5
14172  ac_status=$?
14173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14175  { (case "(($ac_try" in
14176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177  *) ac_try_echo=$ac_try;;
14178esac
14179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180  (eval "$ac_try") 2>&5
14181  ac_status=$?
14182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183  (exit $ac_status); }; }; then
14184  ac_cv_func_fork_works=yes
14185else
14186  echo "$as_me: program exited with status $ac_status" >&5
14187echo "$as_me: failed program was:" >&5
14188sed 's/^/| /' conftest.$ac_ext >&5
14189
14190( exit $ac_status )
14191ac_cv_func_fork_works=no
14192fi
14193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14194fi
14195
14196
14197fi
14198{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14199echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
14200
14201else
14202  ac_cv_func_fork_works=$ac_cv_func_fork
14203fi
14204if test "x$ac_cv_func_fork_works" = xcross; then
14205  case $host in
14206    *-*-amigaos* | *-*-msdosdjgpp*)
14207      # Override, as these systems have only a dummy fork() stub
14208      ac_cv_func_fork_works=no
14209      ;;
14210    *)
14211      ac_cv_func_fork_works=yes
14212      ;;
14213  esac
14214  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14215echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14216fi
14217ac_cv_func_vfork_works=$ac_cv_func_vfork
14218if test "x$ac_cv_func_vfork" = xyes; then
14219  { echo "$as_me:$LINENO: checking for working vfork" >&5
14220echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
14221if test "${ac_cv_func_vfork_works+set}" = set; then
14222  echo $ECHO_N "(cached) $ECHO_C" >&6
14223else
14224  if test "$cross_compiling" = yes; then
14225  ac_cv_func_vfork_works=cross
14226else
14227  cat >conftest.$ac_ext <<_ACEOF
14228/* confdefs.h.  */
14229_ACEOF
14230cat confdefs.h >>conftest.$ac_ext
14231cat >>conftest.$ac_ext <<_ACEOF
14232/* end confdefs.h.  */
14233/* Thanks to Paul Eggert for this test.  */
14234$ac_includes_default
14235#include <sys/wait.h>
14236#if HAVE_VFORK_H
14237# include <vfork.h>
14238#endif
14239/* On some sparc systems, changes by the child to local and incoming
14240   argument registers are propagated back to the parent.  The compiler
14241   is told about this with #include <vfork.h>, but some compilers
14242   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14243   static variable whose address is put into a register that is
14244   clobbered by the vfork.  */
14245static void
14246#ifdef __cplusplus
14247sparc_address_test (int arg)
14248# else
14249sparc_address_test (arg) int arg;
14250#endif
14251{
14252  static pid_t child;
14253  if (!child) {
14254    child = vfork ();
14255    if (child < 0) {
14256      perror ("vfork");
14257      _exit(2);
14258    }
14259    if (!child) {
14260      arg = getpid();
14261      write(-1, "", 0);
14262      _exit (arg);
14263    }
14264  }
14265}
14266
14267int
14268main ()
14269{
14270  pid_t parent = getpid ();
14271  pid_t child;
14272
14273  sparc_address_test (0);
14274
14275  child = vfork ();
14276
14277  if (child == 0) {
14278    /* Here is another test for sparc vfork register problems.  This
14279       test uses lots of local variables, at least as many local
14280       variables as main has allocated so far including compiler
14281       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14282       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14283       reuse the register of parent for one of the local variables,
14284       since it will think that parent can't possibly be used any more
14285       in this routine.  Assigning to the local variable will thus
14286       munge parent in the parent process.  */
14287    pid_t
14288      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14289      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14290    /* Convince the compiler that p..p7 are live; otherwise, it might
14291       use the same hardware register for all 8 local variables.  */
14292    if (p != p1 || p != p2 || p != p3 || p != p4
14293	|| p != p5 || p != p6 || p != p7)
14294      _exit(1);
14295
14296    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14297       from child file descriptors.  If the child closes a descriptor
14298       before it execs or exits, this munges the parent's descriptor
14299       as well.  Test for this by closing stdout in the child.  */
14300    _exit(close(fileno(stdout)) != 0);
14301  } else {
14302    int status;
14303    struct stat st;
14304
14305    while (wait(&status) != child)
14306      ;
14307    return (
14308	 /* Was there some problem with vforking?  */
14309	 child < 0
14310
14311	 /* Did the child fail?  (This shouldn't happen.)  */
14312	 || status
14313
14314	 /* Did the vfork/compiler bug occur?  */
14315	 || parent != getpid()
14316
14317	 /* Did the file descriptor bug occur?  */
14318	 || fstat(fileno(stdout), &st) != 0
14319	 );
14320  }
14321}
14322_ACEOF
14323rm -f conftest$ac_exeext
14324if { (ac_try="$ac_link"
14325case "(($ac_try" in
14326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327  *) ac_try_echo=$ac_try;;
14328esac
14329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330  (eval "$ac_link") 2>&5
14331  ac_status=$?
14332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14334  { (case "(($ac_try" in
14335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336  *) ac_try_echo=$ac_try;;
14337esac
14338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339  (eval "$ac_try") 2>&5
14340  ac_status=$?
14341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342  (exit $ac_status); }; }; then
14343  ac_cv_func_vfork_works=yes
14344else
14345  echo "$as_me: program exited with status $ac_status" >&5
14346echo "$as_me: failed program was:" >&5
14347sed 's/^/| /' conftest.$ac_ext >&5
14348
14349( exit $ac_status )
14350ac_cv_func_vfork_works=no
14351fi
14352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14353fi
14354
14355
14356fi
14357{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14358echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
14359
14360fi;
14361if test "x$ac_cv_func_fork_works" = xcross; then
14362  ac_cv_func_vfork_works=$ac_cv_func_vfork
14363  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14364echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14365fi
14366
14367if test "x$ac_cv_func_vfork_works" = xyes; then
14368
14369cat >>confdefs.h <<\_ACEOF
14370#define HAVE_WORKING_VFORK 1
14371_ACEOF
14372
14373else
14374
14375cat >>confdefs.h <<\_ACEOF
14376#define vfork fork
14377_ACEOF
14378
14379fi
14380if test "x$ac_cv_func_fork_works" = xyes; then
14381
14382cat >>confdefs.h <<\_ACEOF
14383#define HAVE_WORKING_FORK 1
14384_ACEOF
14385
14386fi
14387
14388
14389
14390for ac_func in canonicalize_file_name realpath
14391do
14392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14393{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14395if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14396  echo $ECHO_N "(cached) $ECHO_C" >&6
14397else
14398  cat >conftest.$ac_ext <<_ACEOF
14399/* confdefs.h.  */
14400_ACEOF
14401cat confdefs.h >>conftest.$ac_ext
14402cat >>conftest.$ac_ext <<_ACEOF
14403/* end confdefs.h.  */
14404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14405   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14406#define $ac_func innocuous_$ac_func
14407
14408/* System header to define __stub macros and hopefully few prototypes,
14409    which can conflict with char $ac_func (); below.
14410    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14411    <limits.h> exists even on freestanding compilers.  */
14412
14413#ifdef __STDC__
14414# include <limits.h>
14415#else
14416# include <assert.h>
14417#endif
14418
14419#undef $ac_func
14420
14421/* Override any GCC internal prototype to avoid an error.
14422   Use char because int might match the return type of a GCC
14423   builtin and then its argument prototype would still apply.  */
14424#ifdef __cplusplus
14425extern "C"
14426#endif
14427char $ac_func ();
14428/* The GNU C library defines this for functions which it implements
14429    to always fail with ENOSYS.  Some functions are actually named
14430    something starting with __ and the normal name is an alias.  */
14431#if defined __stub_$ac_func || defined __stub___$ac_func
14432choke me
14433#endif
14434
14435int
14436main ()
14437{
14438return $ac_func ();
14439  ;
14440  return 0;
14441}
14442_ACEOF
14443rm -f conftest.$ac_objext conftest$ac_exeext
14444if { (ac_try="$ac_link"
14445case "(($ac_try" in
14446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447  *) ac_try_echo=$ac_try;;
14448esac
14449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450  (eval "$ac_link") 2>conftest.er1
14451  ac_status=$?
14452  grep -v '^ *+' conftest.er1 >conftest.err
14453  rm -f conftest.er1
14454  cat conftest.err >&5
14455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456  (exit $ac_status); } &&
14457	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14458  { (case "(($ac_try" in
14459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460  *) ac_try_echo=$ac_try;;
14461esac
14462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463  (eval "$ac_try") 2>&5
14464  ac_status=$?
14465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466  (exit $ac_status); }; } &&
14467	 { ac_try='test -s conftest$ac_exeext'
14468  { (case "(($ac_try" in
14469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470  *) ac_try_echo=$ac_try;;
14471esac
14472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473  (eval "$ac_try") 2>&5
14474  ac_status=$?
14475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476  (exit $ac_status); }; }; then
14477  eval "$as_ac_var=yes"
14478else
14479  echo "$as_me: failed program was:" >&5
14480sed 's/^/| /' conftest.$ac_ext >&5
14481
14482	eval "$as_ac_var=no"
14483fi
14484
14485rm -f core conftest.err conftest.$ac_objext \
14486      conftest$ac_exeext conftest.$ac_ext
14487fi
14488ac_res=`eval echo '${'$as_ac_var'}'`
14489	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14490echo "${ECHO_T}$ac_res" >&6; }
14491if test `eval echo '${'$as_ac_var'}'` = yes; then
14492  cat >>confdefs.h <<_ACEOF
14493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14494_ACEOF
14495
14496fi
14497done
14498
14499
14500
14501for ac_func in getuid getgid
14502do
14503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14504{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14506if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14507  echo $ECHO_N "(cached) $ECHO_C" >&6
14508else
14509  cat >conftest.$ac_ext <<_ACEOF
14510/* confdefs.h.  */
14511_ACEOF
14512cat confdefs.h >>conftest.$ac_ext
14513cat >>conftest.$ac_ext <<_ACEOF
14514/* end confdefs.h.  */
14515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14516   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14517#define $ac_func innocuous_$ac_func
14518
14519/* System header to define __stub macros and hopefully few prototypes,
14520    which can conflict with char $ac_func (); below.
14521    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14522    <limits.h> exists even on freestanding compilers.  */
14523
14524#ifdef __STDC__
14525# include <limits.h>
14526#else
14527# include <assert.h>
14528#endif
14529
14530#undef $ac_func
14531
14532/* Override any GCC internal prototype to avoid an error.
14533   Use char because int might match the return type of a GCC
14534   builtin and then its argument prototype would still apply.  */
14535#ifdef __cplusplus
14536extern "C"
14537#endif
14538char $ac_func ();
14539/* The GNU C library defines this for functions which it implements
14540    to always fail with ENOSYS.  Some functions are actually named
14541    something starting with __ and the normal name is an alias.  */
14542#if defined __stub_$ac_func || defined __stub___$ac_func
14543choke me
14544#endif
14545
14546int
14547main ()
14548{
14549return $ac_func ();
14550  ;
14551  return 0;
14552}
14553_ACEOF
14554rm -f conftest.$ac_objext conftest$ac_exeext
14555if { (ac_try="$ac_link"
14556case "(($ac_try" in
14557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558  *) ac_try_echo=$ac_try;;
14559esac
14560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561  (eval "$ac_link") 2>conftest.er1
14562  ac_status=$?
14563  grep -v '^ *+' conftest.er1 >conftest.err
14564  rm -f conftest.er1
14565  cat conftest.err >&5
14566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567  (exit $ac_status); } &&
14568	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14569  { (case "(($ac_try" in
14570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571  *) ac_try_echo=$ac_try;;
14572esac
14573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574  (eval "$ac_try") 2>&5
14575  ac_status=$?
14576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577  (exit $ac_status); }; } &&
14578	 { ac_try='test -s conftest$ac_exeext'
14579  { (case "(($ac_try" in
14580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581  *) ac_try_echo=$ac_try;;
14582esac
14583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584  (eval "$ac_try") 2>&5
14585  ac_status=$?
14586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587  (exit $ac_status); }; }; then
14588  eval "$as_ac_var=yes"
14589else
14590  echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
14593	eval "$as_ac_var=no"
14594fi
14595
14596rm -f core conftest.err conftest.$ac_objext \
14597      conftest$ac_exeext conftest.$ac_ext
14598fi
14599ac_res=`eval echo '${'$as_ac_var'}'`
14600	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14601echo "${ECHO_T}$ac_res" >&6; }
14602if test `eval echo '${'$as_ac_var'}'` = yes; then
14603  cat >>confdefs.h <<_ACEOF
14604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14605_ACEOF
14606
14607fi
14608done
14609
14610
14611for ac_func in poll
14612do
14613as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14614{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14615echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14616if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14617  echo $ECHO_N "(cached) $ECHO_C" >&6
14618else
14619  cat >conftest.$ac_ext <<_ACEOF
14620/* confdefs.h.  */
14621_ACEOF
14622cat confdefs.h >>conftest.$ac_ext
14623cat >>conftest.$ac_ext <<_ACEOF
14624/* end confdefs.h.  */
14625/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14626   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14627#define $ac_func innocuous_$ac_func
14628
14629/* System header to define __stub macros and hopefully few prototypes,
14630    which can conflict with char $ac_func (); below.
14631    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14632    <limits.h> exists even on freestanding compilers.  */
14633
14634#ifdef __STDC__
14635# include <limits.h>
14636#else
14637# include <assert.h>
14638#endif
14639
14640#undef $ac_func
14641
14642/* Override any GCC internal prototype to avoid an error.
14643   Use char because int might match the return type of a GCC
14644   builtin and then its argument prototype would still apply.  */
14645#ifdef __cplusplus
14646extern "C"
14647#endif
14648char $ac_func ();
14649/* The GNU C library defines this for functions which it implements
14650    to always fail with ENOSYS.  Some functions are actually named
14651    something starting with __ and the normal name is an alias.  */
14652#if defined __stub_$ac_func || defined __stub___$ac_func
14653choke me
14654#endif
14655
14656int
14657main ()
14658{
14659return $ac_func ();
14660  ;
14661  return 0;
14662}
14663_ACEOF
14664rm -f conftest.$ac_objext conftest$ac_exeext
14665if { (ac_try="$ac_link"
14666case "(($ac_try" in
14667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668  *) ac_try_echo=$ac_try;;
14669esac
14670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671  (eval "$ac_link") 2>conftest.er1
14672  ac_status=$?
14673  grep -v '^ *+' conftest.er1 >conftest.err
14674  rm -f conftest.er1
14675  cat conftest.err >&5
14676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677  (exit $ac_status); } &&
14678	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14679  { (case "(($ac_try" in
14680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681  *) ac_try_echo=$ac_try;;
14682esac
14683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684  (eval "$ac_try") 2>&5
14685  ac_status=$?
14686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687  (exit $ac_status); }; } &&
14688	 { ac_try='test -s conftest$ac_exeext'
14689  { (case "(($ac_try" in
14690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691  *) ac_try_echo=$ac_try;;
14692esac
14693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694  (eval "$ac_try") 2>&5
14695  ac_status=$?
14696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697  (exit $ac_status); }; }; then
14698  eval "$as_ac_var=yes"
14699else
14700  echo "$as_me: failed program was:" >&5
14701sed 's/^/| /' conftest.$ac_ext >&5
14702
14703	eval "$as_ac_var=no"
14704fi
14705
14706rm -f core conftest.err conftest.$ac_objext \
14707      conftest$ac_exeext conftest.$ac_ext
14708fi
14709ac_res=`eval echo '${'$as_ac_var'}'`
14710	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14711echo "${ECHO_T}$ac_res" >&6; }
14712if test `eval echo '${'$as_ac_var'}'` = yes; then
14713  cat >>confdefs.h <<_ACEOF
14714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14715_ACEOF
14716
14717fi
14718done
14719
14720
14721for ac_func in pread64
14722do
14723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14724{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14727  echo $ECHO_N "(cached) $ECHO_C" >&6
14728else
14729  cat >conftest.$ac_ext <<_ACEOF
14730/* confdefs.h.  */
14731_ACEOF
14732cat confdefs.h >>conftest.$ac_ext
14733cat >>conftest.$ac_ext <<_ACEOF
14734/* end confdefs.h.  */
14735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14736   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14737#define $ac_func innocuous_$ac_func
14738
14739/* System header to define __stub macros and hopefully few prototypes,
14740    which can conflict with char $ac_func (); below.
14741    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14742    <limits.h> exists even on freestanding compilers.  */
14743
14744#ifdef __STDC__
14745# include <limits.h>
14746#else
14747# include <assert.h>
14748#endif
14749
14750#undef $ac_func
14751
14752/* Override any GCC internal prototype to avoid an error.
14753   Use char because int might match the return type of a GCC
14754   builtin and then its argument prototype would still apply.  */
14755#ifdef __cplusplus
14756extern "C"
14757#endif
14758char $ac_func ();
14759/* The GNU C library defines this for functions which it implements
14760    to always fail with ENOSYS.  Some functions are actually named
14761    something starting with __ and the normal name is an alias.  */
14762#if defined __stub_$ac_func || defined __stub___$ac_func
14763choke me
14764#endif
14765
14766int
14767main ()
14768{
14769return $ac_func ();
14770  ;
14771  return 0;
14772}
14773_ACEOF
14774rm -f conftest.$ac_objext conftest$ac_exeext
14775if { (ac_try="$ac_link"
14776case "(($ac_try" in
14777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778  *) ac_try_echo=$ac_try;;
14779esac
14780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781  (eval "$ac_link") 2>conftest.er1
14782  ac_status=$?
14783  grep -v '^ *+' conftest.er1 >conftest.err
14784  rm -f conftest.er1
14785  cat conftest.err >&5
14786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787  (exit $ac_status); } &&
14788	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14789  { (case "(($ac_try" in
14790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791  *) ac_try_echo=$ac_try;;
14792esac
14793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794  (eval "$ac_try") 2>&5
14795  ac_status=$?
14796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797  (exit $ac_status); }; } &&
14798	 { ac_try='test -s conftest$ac_exeext'
14799  { (case "(($ac_try" in
14800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801  *) ac_try_echo=$ac_try;;
14802esac
14803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804  (eval "$ac_try") 2>&5
14805  ac_status=$?
14806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807  (exit $ac_status); }; }; then
14808  eval "$as_ac_var=yes"
14809else
14810  echo "$as_me: failed program was:" >&5
14811sed 's/^/| /' conftest.$ac_ext >&5
14812
14813	eval "$as_ac_var=no"
14814fi
14815
14816rm -f core conftest.err conftest.$ac_objext \
14817      conftest$ac_exeext conftest.$ac_ext
14818fi
14819ac_res=`eval echo '${'$as_ac_var'}'`
14820	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14821echo "${ECHO_T}$ac_res" >&6; }
14822if test `eval echo '${'$as_ac_var'}'` = yes; then
14823  cat >>confdefs.h <<_ACEOF
14824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14825_ACEOF
14826
14827fi
14828done
14829
14830
14831for ac_func in sbrk
14832do
14833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14837  echo $ECHO_N "(cached) $ECHO_C" >&6
14838else
14839  cat >conftest.$ac_ext <<_ACEOF
14840/* confdefs.h.  */
14841_ACEOF
14842cat confdefs.h >>conftest.$ac_ext
14843cat >>conftest.$ac_ext <<_ACEOF
14844/* end confdefs.h.  */
14845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14846   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14847#define $ac_func innocuous_$ac_func
14848
14849/* System header to define __stub macros and hopefully few prototypes,
14850    which can conflict with char $ac_func (); below.
14851    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14852    <limits.h> exists even on freestanding compilers.  */
14853
14854#ifdef __STDC__
14855# include <limits.h>
14856#else
14857# include <assert.h>
14858#endif
14859
14860#undef $ac_func
14861
14862/* Override any GCC internal prototype to avoid an error.
14863   Use char because int might match the return type of a GCC
14864   builtin and then its argument prototype would still apply.  */
14865#ifdef __cplusplus
14866extern "C"
14867#endif
14868char $ac_func ();
14869/* The GNU C library defines this for functions which it implements
14870    to always fail with ENOSYS.  Some functions are actually named
14871    something starting with __ and the normal name is an alias.  */
14872#if defined __stub_$ac_func || defined __stub___$ac_func
14873choke me
14874#endif
14875
14876int
14877main ()
14878{
14879return $ac_func ();
14880  ;
14881  return 0;
14882}
14883_ACEOF
14884rm -f conftest.$ac_objext conftest$ac_exeext
14885if { (ac_try="$ac_link"
14886case "(($ac_try" in
14887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888  *) ac_try_echo=$ac_try;;
14889esac
14890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891  (eval "$ac_link") 2>conftest.er1
14892  ac_status=$?
14893  grep -v '^ *+' conftest.er1 >conftest.err
14894  rm -f conftest.er1
14895  cat conftest.err >&5
14896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897  (exit $ac_status); } &&
14898	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14899  { (case "(($ac_try" in
14900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901  *) ac_try_echo=$ac_try;;
14902esac
14903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904  (eval "$ac_try") 2>&5
14905  ac_status=$?
14906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907  (exit $ac_status); }; } &&
14908	 { ac_try='test -s conftest$ac_exeext'
14909  { (case "(($ac_try" in
14910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911  *) ac_try_echo=$ac_try;;
14912esac
14913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914  (eval "$ac_try") 2>&5
14915  ac_status=$?
14916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917  (exit $ac_status); }; }; then
14918  eval "$as_ac_var=yes"
14919else
14920  echo "$as_me: failed program was:" >&5
14921sed 's/^/| /' conftest.$ac_ext >&5
14922
14923	eval "$as_ac_var=no"
14924fi
14925
14926rm -f core conftest.err conftest.$ac_objext \
14927      conftest$ac_exeext conftest.$ac_ext
14928fi
14929ac_res=`eval echo '${'$as_ac_var'}'`
14930	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14931echo "${ECHO_T}$ac_res" >&6; }
14932if test `eval echo '${'$as_ac_var'}'` = yes; then
14933  cat >>confdefs.h <<_ACEOF
14934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14935_ACEOF
14936
14937fi
14938done
14939
14940
14941
14942for ac_func in setpgid setpgrp
14943do
14944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14945{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14947if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14948  echo $ECHO_N "(cached) $ECHO_C" >&6
14949else
14950  cat >conftest.$ac_ext <<_ACEOF
14951/* confdefs.h.  */
14952_ACEOF
14953cat confdefs.h >>conftest.$ac_ext
14954cat >>conftest.$ac_ext <<_ACEOF
14955/* end confdefs.h.  */
14956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14957   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14958#define $ac_func innocuous_$ac_func
14959
14960/* System header to define __stub macros and hopefully few prototypes,
14961    which can conflict with char $ac_func (); below.
14962    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14963    <limits.h> exists even on freestanding compilers.  */
14964
14965#ifdef __STDC__
14966# include <limits.h>
14967#else
14968# include <assert.h>
14969#endif
14970
14971#undef $ac_func
14972
14973/* Override any GCC internal prototype to avoid an error.
14974   Use char because int might match the return type of a GCC
14975   builtin and then its argument prototype would still apply.  */
14976#ifdef __cplusplus
14977extern "C"
14978#endif
14979char $ac_func ();
14980/* The GNU C library defines this for functions which it implements
14981    to always fail with ENOSYS.  Some functions are actually named
14982    something starting with __ and the normal name is an alias.  */
14983#if defined __stub_$ac_func || defined __stub___$ac_func
14984choke me
14985#endif
14986
14987int
14988main ()
14989{
14990return $ac_func ();
14991  ;
14992  return 0;
14993}
14994_ACEOF
14995rm -f conftest.$ac_objext conftest$ac_exeext
14996if { (ac_try="$ac_link"
14997case "(($ac_try" in
14998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999  *) ac_try_echo=$ac_try;;
15000esac
15001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002  (eval "$ac_link") 2>conftest.er1
15003  ac_status=$?
15004  grep -v '^ *+' conftest.er1 >conftest.err
15005  rm -f conftest.er1
15006  cat conftest.err >&5
15007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008  (exit $ac_status); } &&
15009	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15010  { (case "(($ac_try" in
15011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012  *) ac_try_echo=$ac_try;;
15013esac
15014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015  (eval "$ac_try") 2>&5
15016  ac_status=$?
15017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018  (exit $ac_status); }; } &&
15019	 { ac_try='test -s conftest$ac_exeext'
15020  { (case "(($ac_try" in
15021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022  *) ac_try_echo=$ac_try;;
15023esac
15024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025  (eval "$ac_try") 2>&5
15026  ac_status=$?
15027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028  (exit $ac_status); }; }; then
15029  eval "$as_ac_var=yes"
15030else
15031  echo "$as_me: failed program was:" >&5
15032sed 's/^/| /' conftest.$ac_ext >&5
15033
15034	eval "$as_ac_var=no"
15035fi
15036
15037rm -f core conftest.err conftest.$ac_objext \
15038      conftest$ac_exeext conftest.$ac_ext
15039fi
15040ac_res=`eval echo '${'$as_ac_var'}'`
15041	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15042echo "${ECHO_T}$ac_res" >&6; }
15043if test `eval echo '${'$as_ac_var'}'` = yes; then
15044  cat >>confdefs.h <<_ACEOF
15045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15046_ACEOF
15047
15048fi
15049done
15050
15051
15052
15053
15054for ac_func in sigaction sigprocmask sigsetmask
15055do
15056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15057{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15059if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15060  echo $ECHO_N "(cached) $ECHO_C" >&6
15061else
15062  cat >conftest.$ac_ext <<_ACEOF
15063/* confdefs.h.  */
15064_ACEOF
15065cat confdefs.h >>conftest.$ac_ext
15066cat >>conftest.$ac_ext <<_ACEOF
15067/* end confdefs.h.  */
15068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15069   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15070#define $ac_func innocuous_$ac_func
15071
15072/* System header to define __stub macros and hopefully few prototypes,
15073    which can conflict with char $ac_func (); below.
15074    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15075    <limits.h> exists even on freestanding compilers.  */
15076
15077#ifdef __STDC__
15078# include <limits.h>
15079#else
15080# include <assert.h>
15081#endif
15082
15083#undef $ac_func
15084
15085/* Override any GCC internal prototype to avoid an error.
15086   Use char because int might match the return type of a GCC
15087   builtin and then its argument prototype would still apply.  */
15088#ifdef __cplusplus
15089extern "C"
15090#endif
15091char $ac_func ();
15092/* The GNU C library defines this for functions which it implements
15093    to always fail with ENOSYS.  Some functions are actually named
15094    something starting with __ and the normal name is an alias.  */
15095#if defined __stub_$ac_func || defined __stub___$ac_func
15096choke me
15097#endif
15098
15099int
15100main ()
15101{
15102return $ac_func ();
15103  ;
15104  return 0;
15105}
15106_ACEOF
15107rm -f conftest.$ac_objext conftest$ac_exeext
15108if { (ac_try="$ac_link"
15109case "(($ac_try" in
15110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111  *) ac_try_echo=$ac_try;;
15112esac
15113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114  (eval "$ac_link") 2>conftest.er1
15115  ac_status=$?
15116  grep -v '^ *+' conftest.er1 >conftest.err
15117  rm -f conftest.er1
15118  cat conftest.err >&5
15119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120  (exit $ac_status); } &&
15121	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15122  { (case "(($ac_try" in
15123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15124  *) ac_try_echo=$ac_try;;
15125esac
15126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15127  (eval "$ac_try") 2>&5
15128  ac_status=$?
15129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130  (exit $ac_status); }; } &&
15131	 { ac_try='test -s conftest$ac_exeext'
15132  { (case "(($ac_try" in
15133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134  *) ac_try_echo=$ac_try;;
15135esac
15136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137  (eval "$ac_try") 2>&5
15138  ac_status=$?
15139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140  (exit $ac_status); }; }; then
15141  eval "$as_ac_var=yes"
15142else
15143  echo "$as_me: failed program was:" >&5
15144sed 's/^/| /' conftest.$ac_ext >&5
15145
15146	eval "$as_ac_var=no"
15147fi
15148
15149rm -f core conftest.err conftest.$ac_objext \
15150      conftest$ac_exeext conftest.$ac_ext
15151fi
15152ac_res=`eval echo '${'$as_ac_var'}'`
15153	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15154echo "${ECHO_T}$ac_res" >&6; }
15155if test `eval echo '${'$as_ac_var'}'` = yes; then
15156  cat >>confdefs.h <<_ACEOF
15157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15158_ACEOF
15159
15160fi
15161done
15162
15163
15164for ac_func in socketpair
15165do
15166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15167{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15169if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15170  echo $ECHO_N "(cached) $ECHO_C" >&6
15171else
15172  cat >conftest.$ac_ext <<_ACEOF
15173/* confdefs.h.  */
15174_ACEOF
15175cat confdefs.h >>conftest.$ac_ext
15176cat >>conftest.$ac_ext <<_ACEOF
15177/* end confdefs.h.  */
15178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15179   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15180#define $ac_func innocuous_$ac_func
15181
15182/* System header to define __stub macros and hopefully few prototypes,
15183    which can conflict with char $ac_func (); below.
15184    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15185    <limits.h> exists even on freestanding compilers.  */
15186
15187#ifdef __STDC__
15188# include <limits.h>
15189#else
15190# include <assert.h>
15191#endif
15192
15193#undef $ac_func
15194
15195/* Override any GCC internal prototype to avoid an error.
15196   Use char because int might match the return type of a GCC
15197   builtin and then its argument prototype would still apply.  */
15198#ifdef __cplusplus
15199extern "C"
15200#endif
15201char $ac_func ();
15202/* The GNU C library defines this for functions which it implements
15203    to always fail with ENOSYS.  Some functions are actually named
15204    something starting with __ and the normal name is an alias.  */
15205#if defined __stub_$ac_func || defined __stub___$ac_func
15206choke me
15207#endif
15208
15209int
15210main ()
15211{
15212return $ac_func ();
15213  ;
15214  return 0;
15215}
15216_ACEOF
15217rm -f conftest.$ac_objext conftest$ac_exeext
15218if { (ac_try="$ac_link"
15219case "(($ac_try" in
15220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221  *) ac_try_echo=$ac_try;;
15222esac
15223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224  (eval "$ac_link") 2>conftest.er1
15225  ac_status=$?
15226  grep -v '^ *+' conftest.er1 >conftest.err
15227  rm -f conftest.er1
15228  cat conftest.err >&5
15229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230  (exit $ac_status); } &&
15231	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15232  { (case "(($ac_try" in
15233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234  *) ac_try_echo=$ac_try;;
15235esac
15236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237  (eval "$ac_try") 2>&5
15238  ac_status=$?
15239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240  (exit $ac_status); }; } &&
15241	 { ac_try='test -s conftest$ac_exeext'
15242  { (case "(($ac_try" in
15243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244  *) ac_try_echo=$ac_try;;
15245esac
15246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247  (eval "$ac_try") 2>&5
15248  ac_status=$?
15249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250  (exit $ac_status); }; }; then
15251  eval "$as_ac_var=yes"
15252else
15253  echo "$as_me: failed program was:" >&5
15254sed 's/^/| /' conftest.$ac_ext >&5
15255
15256	eval "$as_ac_var=no"
15257fi
15258
15259rm -f core conftest.err conftest.$ac_objext \
15260      conftest$ac_exeext conftest.$ac_ext
15261fi
15262ac_res=`eval echo '${'$as_ac_var'}'`
15263	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15264echo "${ECHO_T}$ac_res" >&6; }
15265if test `eval echo '${'$as_ac_var'}'` = yes; then
15266  cat >>confdefs.h <<_ACEOF
15267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15268_ACEOF
15269
15270fi
15271done
15272
15273
15274for ac_func in syscall
15275do
15276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15277{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15279if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15280  echo $ECHO_N "(cached) $ECHO_C" >&6
15281else
15282  cat >conftest.$ac_ext <<_ACEOF
15283/* confdefs.h.  */
15284_ACEOF
15285cat confdefs.h >>conftest.$ac_ext
15286cat >>conftest.$ac_ext <<_ACEOF
15287/* end confdefs.h.  */
15288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15289   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15290#define $ac_func innocuous_$ac_func
15291
15292/* System header to define __stub macros and hopefully few prototypes,
15293    which can conflict with char $ac_func (); below.
15294    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15295    <limits.h> exists even on freestanding compilers.  */
15296
15297#ifdef __STDC__
15298# include <limits.h>
15299#else
15300# include <assert.h>
15301#endif
15302
15303#undef $ac_func
15304
15305/* Override any GCC internal prototype to avoid an error.
15306   Use char because int might match the return type of a GCC
15307   builtin and then its argument prototype would still apply.  */
15308#ifdef __cplusplus
15309extern "C"
15310#endif
15311char $ac_func ();
15312/* The GNU C library defines this for functions which it implements
15313    to always fail with ENOSYS.  Some functions are actually named
15314    something starting with __ and the normal name is an alias.  */
15315#if defined __stub_$ac_func || defined __stub___$ac_func
15316choke me
15317#endif
15318
15319int
15320main ()
15321{
15322return $ac_func ();
15323  ;
15324  return 0;
15325}
15326_ACEOF
15327rm -f conftest.$ac_objext conftest$ac_exeext
15328if { (ac_try="$ac_link"
15329case "(($ac_try" in
15330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331  *) ac_try_echo=$ac_try;;
15332esac
15333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334  (eval "$ac_link") 2>conftest.er1
15335  ac_status=$?
15336  grep -v '^ *+' conftest.er1 >conftest.err
15337  rm -f conftest.er1
15338  cat conftest.err >&5
15339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340  (exit $ac_status); } &&
15341	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15342  { (case "(($ac_try" in
15343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344  *) ac_try_echo=$ac_try;;
15345esac
15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347  (eval "$ac_try") 2>&5
15348  ac_status=$?
15349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350  (exit $ac_status); }; } &&
15351	 { ac_try='test -s conftest$ac_exeext'
15352  { (case "(($ac_try" in
15353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354  *) ac_try_echo=$ac_try;;
15355esac
15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357  (eval "$ac_try") 2>&5
15358  ac_status=$?
15359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360  (exit $ac_status); }; }; then
15361  eval "$as_ac_var=yes"
15362else
15363  echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366	eval "$as_ac_var=no"
15367fi
15368
15369rm -f core conftest.err conftest.$ac_objext \
15370      conftest$ac_exeext conftest.$ac_ext
15371fi
15372ac_res=`eval echo '${'$as_ac_var'}'`
15373	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15374echo "${ECHO_T}$ac_res" >&6; }
15375if test `eval echo '${'$as_ac_var'}'` = yes; then
15376  cat >>confdefs.h <<_ACEOF
15377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15378_ACEOF
15379
15380fi
15381done
15382
15383
15384for ac_func in ttrace
15385do
15386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15387{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15389if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15390  echo $ECHO_N "(cached) $ECHO_C" >&6
15391else
15392  cat >conftest.$ac_ext <<_ACEOF
15393/* confdefs.h.  */
15394_ACEOF
15395cat confdefs.h >>conftest.$ac_ext
15396cat >>conftest.$ac_ext <<_ACEOF
15397/* end confdefs.h.  */
15398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15399   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15400#define $ac_func innocuous_$ac_func
15401
15402/* System header to define __stub macros and hopefully few prototypes,
15403    which can conflict with char $ac_func (); below.
15404    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15405    <limits.h> exists even on freestanding compilers.  */
15406
15407#ifdef __STDC__
15408# include <limits.h>
15409#else
15410# include <assert.h>
15411#endif
15412
15413#undef $ac_func
15414
15415/* Override any GCC internal prototype to avoid an error.
15416   Use char because int might match the return type of a GCC
15417   builtin and then its argument prototype would still apply.  */
15418#ifdef __cplusplus
15419extern "C"
15420#endif
15421char $ac_func ();
15422/* The GNU C library defines this for functions which it implements
15423    to always fail with ENOSYS.  Some functions are actually named
15424    something starting with __ and the normal name is an alias.  */
15425#if defined __stub_$ac_func || defined __stub___$ac_func
15426choke me
15427#endif
15428
15429int
15430main ()
15431{
15432return $ac_func ();
15433  ;
15434  return 0;
15435}
15436_ACEOF
15437rm -f conftest.$ac_objext conftest$ac_exeext
15438if { (ac_try="$ac_link"
15439case "(($ac_try" in
15440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441  *) ac_try_echo=$ac_try;;
15442esac
15443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444  (eval "$ac_link") 2>conftest.er1
15445  ac_status=$?
15446  grep -v '^ *+' conftest.er1 >conftest.err
15447  rm -f conftest.er1
15448  cat conftest.err >&5
15449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450  (exit $ac_status); } &&
15451	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15452  { (case "(($ac_try" in
15453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454  *) ac_try_echo=$ac_try;;
15455esac
15456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457  (eval "$ac_try") 2>&5
15458  ac_status=$?
15459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460  (exit $ac_status); }; } &&
15461	 { ac_try='test -s conftest$ac_exeext'
15462  { (case "(($ac_try" in
15463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464  *) ac_try_echo=$ac_try;;
15465esac
15466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467  (eval "$ac_try") 2>&5
15468  ac_status=$?
15469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470  (exit $ac_status); }; }; then
15471  eval "$as_ac_var=yes"
15472else
15473  echo "$as_me: failed program was:" >&5
15474sed 's/^/| /' conftest.$ac_ext >&5
15475
15476	eval "$as_ac_var=no"
15477fi
15478
15479rm -f core conftest.err conftest.$ac_objext \
15480      conftest$ac_exeext conftest.$ac_ext
15481fi
15482ac_res=`eval echo '${'$as_ac_var'}'`
15483	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15484echo "${ECHO_T}$ac_res" >&6; }
15485if test `eval echo '${'$as_ac_var'}'` = yes; then
15486  cat >>confdefs.h <<_ACEOF
15487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15488_ACEOF
15489
15490fi
15491done
15492
15493
15494for ac_func in wborder
15495do
15496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15497{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15499if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15500  echo $ECHO_N "(cached) $ECHO_C" >&6
15501else
15502  cat >conftest.$ac_ext <<_ACEOF
15503/* confdefs.h.  */
15504_ACEOF
15505cat confdefs.h >>conftest.$ac_ext
15506cat >>conftest.$ac_ext <<_ACEOF
15507/* end confdefs.h.  */
15508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15509   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15510#define $ac_func innocuous_$ac_func
15511
15512/* System header to define __stub macros and hopefully few prototypes,
15513    which can conflict with char $ac_func (); below.
15514    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15515    <limits.h> exists even on freestanding compilers.  */
15516
15517#ifdef __STDC__
15518# include <limits.h>
15519#else
15520# include <assert.h>
15521#endif
15522
15523#undef $ac_func
15524
15525/* Override any GCC internal prototype to avoid an error.
15526   Use char because int might match the return type of a GCC
15527   builtin and then its argument prototype would still apply.  */
15528#ifdef __cplusplus
15529extern "C"
15530#endif
15531char $ac_func ();
15532/* The GNU C library defines this for functions which it implements
15533    to always fail with ENOSYS.  Some functions are actually named
15534    something starting with __ and the normal name is an alias.  */
15535#if defined __stub_$ac_func || defined __stub___$ac_func
15536choke me
15537#endif
15538
15539int
15540main ()
15541{
15542return $ac_func ();
15543  ;
15544  return 0;
15545}
15546_ACEOF
15547rm -f conftest.$ac_objext conftest$ac_exeext
15548if { (ac_try="$ac_link"
15549case "(($ac_try" in
15550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551  *) ac_try_echo=$ac_try;;
15552esac
15553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554  (eval "$ac_link") 2>conftest.er1
15555  ac_status=$?
15556  grep -v '^ *+' conftest.er1 >conftest.err
15557  rm -f conftest.er1
15558  cat conftest.err >&5
15559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560  (exit $ac_status); } &&
15561	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15562  { (case "(($ac_try" in
15563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564  *) ac_try_echo=$ac_try;;
15565esac
15566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567  (eval "$ac_try") 2>&5
15568  ac_status=$?
15569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570  (exit $ac_status); }; } &&
15571	 { ac_try='test -s conftest$ac_exeext'
15572  { (case "(($ac_try" in
15573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574  *) ac_try_echo=$ac_try;;
15575esac
15576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577  (eval "$ac_try") 2>&5
15578  ac_status=$?
15579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580  (exit $ac_status); }; }; then
15581  eval "$as_ac_var=yes"
15582else
15583  echo "$as_me: failed program was:" >&5
15584sed 's/^/| /' conftest.$ac_ext >&5
15585
15586	eval "$as_ac_var=no"
15587fi
15588
15589rm -f core conftest.err conftest.$ac_objext \
15590      conftest$ac_exeext conftest.$ac_ext
15591fi
15592ac_res=`eval echo '${'$as_ac_var'}'`
15593	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15594echo "${ECHO_T}$ac_res" >&6; }
15595if test `eval echo '${'$as_ac_var'}'` = yes; then
15596  cat >>confdefs.h <<_ACEOF
15597#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15598_ACEOF
15599
15600fi
15601done
15602
15603
15604# Check the return and argument types of ptrace.  No canned test for
15605# this, so roll our own.
15606gdb_ptrace_headers='
15607#if HAVE_SYS_TYPES_H
15608# include <sys/types.h>
15609#endif
15610#if HAVE_SYS_PTRACE_H
15611# include <sys/ptrace.h>
15612#endif
15613#if HAVE_UNISTD_H
15614# include <unistd.h>
15615#endif
15616'
15617# There is no point in checking if we don't have a prototype.
15618{ echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15619echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6; }
15620if test "${ac_cv_have_decl_ptrace+set}" = set; then
15621  echo $ECHO_N "(cached) $ECHO_C" >&6
15622else
15623  cat >conftest.$ac_ext <<_ACEOF
15624/* confdefs.h.  */
15625_ACEOF
15626cat confdefs.h >>conftest.$ac_ext
15627cat >>conftest.$ac_ext <<_ACEOF
15628/* end confdefs.h.  */
15629$gdb_ptrace_headers
15630
15631int
15632main ()
15633{
15634#ifndef ptrace
15635  char *p = (char *) ptrace;
15636  return !p;
15637#endif
15638
15639  ;
15640  return 0;
15641}
15642_ACEOF
15643rm -f conftest.$ac_objext
15644if { (ac_try="$ac_compile"
15645case "(($ac_try" in
15646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647  *) ac_try_echo=$ac_try;;
15648esac
15649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650  (eval "$ac_compile") 2>conftest.er1
15651  ac_status=$?
15652  grep -v '^ *+' conftest.er1 >conftest.err
15653  rm -f conftest.er1
15654  cat conftest.err >&5
15655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656  (exit $ac_status); } &&
15657	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15658  { (case "(($ac_try" in
15659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660  *) ac_try_echo=$ac_try;;
15661esac
15662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663  (eval "$ac_try") 2>&5
15664  ac_status=$?
15665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666  (exit $ac_status); }; } &&
15667	 { ac_try='test -s conftest.$ac_objext'
15668  { (case "(($ac_try" in
15669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670  *) ac_try_echo=$ac_try;;
15671esac
15672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673  (eval "$ac_try") 2>&5
15674  ac_status=$?
15675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676  (exit $ac_status); }; }; then
15677  ac_cv_have_decl_ptrace=yes
15678else
15679  echo "$as_me: failed program was:" >&5
15680sed 's/^/| /' conftest.$ac_ext >&5
15681
15682	ac_cv_have_decl_ptrace=no
15683fi
15684
15685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686fi
15687{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
15688echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6; }
15689if test $ac_cv_have_decl_ptrace = yes; then
15690
15691cat >>confdefs.h <<_ACEOF
15692#define HAVE_DECL_PTRACE 1
15693_ACEOF
15694
15695
15696else
15697  cat >>confdefs.h <<_ACEOF
15698#define HAVE_DECL_PTRACE 0
15699_ACEOF
15700
15701
15702  : ${gdb_cv_func_ptrace_ret='int'}
15703  : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15704
15705fi
15706
15707
15708# Check return type.
15709{ echo "$as_me:$LINENO: checking return type of ptrace" >&5
15710echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6; }
15711if test "${gdb_cv_func_ptrace_ret+set}" = set; then
15712  echo $ECHO_N "(cached) $ECHO_C" >&6
15713else
15714  cat >conftest.$ac_ext <<_ACEOF
15715/* confdefs.h.  */
15716_ACEOF
15717cat confdefs.h >>conftest.$ac_ext
15718cat >>conftest.$ac_ext <<_ACEOF
15719/* end confdefs.h.  */
15720$gdb_ptrace_headers
15721int
15722main ()
15723{
15724extern int ptrace ();
15725  ;
15726  return 0;
15727}
15728_ACEOF
15729rm -f conftest.$ac_objext
15730if { (ac_try="$ac_compile"
15731case "(($ac_try" in
15732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733  *) ac_try_echo=$ac_try;;
15734esac
15735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736  (eval "$ac_compile") 2>conftest.er1
15737  ac_status=$?
15738  grep -v '^ *+' conftest.er1 >conftest.err
15739  rm -f conftest.er1
15740  cat conftest.err >&5
15741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742  (exit $ac_status); } &&
15743	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15744  { (case "(($ac_try" in
15745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746  *) ac_try_echo=$ac_try;;
15747esac
15748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749  (eval "$ac_try") 2>&5
15750  ac_status=$?
15751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752  (exit $ac_status); }; } &&
15753	 { ac_try='test -s conftest.$ac_objext'
15754  { (case "(($ac_try" in
15755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756  *) ac_try_echo=$ac_try;;
15757esac
15758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759  (eval "$ac_try") 2>&5
15760  ac_status=$?
15761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762  (exit $ac_status); }; }; then
15763  gdb_cv_func_ptrace_ret='int'
15764else
15765  echo "$as_me: failed program was:" >&5
15766sed 's/^/| /' conftest.$ac_ext >&5
15767
15768	gdb_cv_func_ptrace_ret='long'
15769fi
15770
15771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772fi
15773{ echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
15774echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6; }
15775
15776cat >>confdefs.h <<_ACEOF
15777#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15778_ACEOF
15779
15780# Check argument types.
15781{ echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
15782echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6; }
15783if test "${gdb_cv_func_ptrace_args+set}" = set; then
15784  echo $ECHO_N "(cached) $ECHO_C" >&6
15785else
15786
15787for gdb_arg1 in 'int' 'long'; do
15788 for gdb_arg2 in 'pid_t' 'int' 'long'; do
15789  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
15790   for gdb_arg4 in 'int' 'long'; do
15791     cat >conftest.$ac_ext <<_ACEOF
15792/* confdefs.h.  */
15793_ACEOF
15794cat confdefs.h >>conftest.$ac_ext
15795cat >>conftest.$ac_ext <<_ACEOF
15796/* end confdefs.h.  */
15797$gdb_ptrace_headers
15798int
15799main ()
15800{
15801
15802extern $gdb_cv_func_ptrace_ret
15803  ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15804
15805  ;
15806  return 0;
15807}
15808_ACEOF
15809rm -f conftest.$ac_objext
15810if { (ac_try="$ac_compile"
15811case "(($ac_try" in
15812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15813  *) ac_try_echo=$ac_try;;
15814esac
15815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15816  (eval "$ac_compile") 2>conftest.er1
15817  ac_status=$?
15818  grep -v '^ *+' conftest.er1 >conftest.err
15819  rm -f conftest.er1
15820  cat conftest.err >&5
15821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822  (exit $ac_status); } &&
15823	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15824  { (case "(($ac_try" in
15825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826  *) ac_try_echo=$ac_try;;
15827esac
15828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829  (eval "$ac_try") 2>&5
15830  ac_status=$?
15831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832  (exit $ac_status); }; } &&
15833	 { ac_try='test -s conftest.$ac_objext'
15834  { (case "(($ac_try" in
15835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836  *) ac_try_echo=$ac_try;;
15837esac
15838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839  (eval "$ac_try") 2>&5
15840  ac_status=$?
15841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842  (exit $ac_status); }; }; then
15843  gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15844    break 4;
15845else
15846  echo "$as_me: failed program was:" >&5
15847sed 's/^/| /' conftest.$ac_ext >&5
15848
15849
15850fi
15851
15852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853    for gdb_arg5 in 'int *' 'int' 'long'; do
15854     cat >conftest.$ac_ext <<_ACEOF
15855/* confdefs.h.  */
15856_ACEOF
15857cat confdefs.h >>conftest.$ac_ext
15858cat >>conftest.$ac_ext <<_ACEOF
15859/* end confdefs.h.  */
15860$gdb_ptrace_headers
15861int
15862main ()
15863{
15864
15865extern $gdb_cv_func_ptrace_ret
15866  ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15867
15868  ;
15869  return 0;
15870}
15871_ACEOF
15872rm -f conftest.$ac_objext
15873if { (ac_try="$ac_compile"
15874case "(($ac_try" in
15875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876  *) ac_try_echo=$ac_try;;
15877esac
15878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15879  (eval "$ac_compile") 2>conftest.er1
15880  ac_status=$?
15881  grep -v '^ *+' conftest.er1 >conftest.err
15882  rm -f conftest.er1
15883  cat conftest.err >&5
15884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885  (exit $ac_status); } &&
15886	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15887  { (case "(($ac_try" in
15888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889  *) ac_try_echo=$ac_try;;
15890esac
15891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892  (eval "$ac_try") 2>&5
15893  ac_status=$?
15894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895  (exit $ac_status); }; } &&
15896	 { ac_try='test -s conftest.$ac_objext'
15897  { (case "(($ac_try" in
15898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899  *) ac_try_echo=$ac_try;;
15900esac
15901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902  (eval "$ac_try") 2>&5
15903  ac_status=$?
15904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905  (exit $ac_status); }; }; then
15906
15907gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15908    break 5;
15909else
15910  echo "$as_me: failed program was:" >&5
15911sed 's/^/| /' conftest.$ac_ext >&5
15912
15913
15914fi
15915
15916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917    done
15918   done
15919  done
15920 done
15921done
15922# Provide a safe default value.
15923: ${gdb_cv_func_ptrace_args='int,int,long,long'}
15924
15925fi
15926{ echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
15927echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6; }
15928ac_save_IFS=$IFS; IFS=','
15929set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15930IFS=$ac_save_IFS
15931shift
15932
15933cat >>confdefs.h <<_ACEOF
15934#define PTRACE_TYPE_ARG3 $3
15935_ACEOF
15936
15937if test -n "$5"; then
15938
15939cat >>confdefs.h <<_ACEOF
15940#define PTRACE_TYPE_ARG5 $5
15941_ACEOF
15942
15943fi
15944
15945if test "$cross_compiling" = no; then
15946  { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
15947echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
15948if test "${ac_cv_func_setpgrp_void+set}" = set; then
15949  echo $ECHO_N "(cached) $ECHO_C" >&6
15950else
15951  if test "$cross_compiling" = yes; then
15952  { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
15953echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
15954   { (exit 1); exit 1; }; }
15955else
15956  cat >conftest.$ac_ext <<_ACEOF
15957/* confdefs.h.  */
15958_ACEOF
15959cat confdefs.h >>conftest.$ac_ext
15960cat >>conftest.$ac_ext <<_ACEOF
15961/* end confdefs.h.  */
15962$ac_includes_default
15963int
15964main ()
15965{
15966/* If this system has a BSD-style setpgrp which takes arguments,
15967  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15968  exit successfully. */
15969  return setpgrp (1,1) != -1;
15970  ;
15971  return 0;
15972}
15973_ACEOF
15974rm -f conftest$ac_exeext
15975if { (ac_try="$ac_link"
15976case "(($ac_try" in
15977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978  *) ac_try_echo=$ac_try;;
15979esac
15980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981  (eval "$ac_link") 2>&5
15982  ac_status=$?
15983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15985  { (case "(($ac_try" in
15986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987  *) ac_try_echo=$ac_try;;
15988esac
15989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990  (eval "$ac_try") 2>&5
15991  ac_status=$?
15992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993  (exit $ac_status); }; }; then
15994  ac_cv_func_setpgrp_void=no
15995else
15996  echo "$as_me: program exited with status $ac_status" >&5
15997echo "$as_me: failed program was:" >&5
15998sed 's/^/| /' conftest.$ac_ext >&5
15999
16000( exit $ac_status )
16001ac_cv_func_setpgrp_void=yes
16002fi
16003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16004fi
16005
16006
16007fi
16008{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16009echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
16010if test $ac_cv_func_setpgrp_void = yes; then
16011
16012cat >>confdefs.h <<\_ACEOF
16013#define SETPGRP_VOID 1
16014_ACEOF
16015
16016fi
16017
16018else
16019  { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16020echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
16021if test "${ac_cv_func_setpgrp_void+set}" = set; then
16022  echo $ECHO_N "(cached) $ECHO_C" >&6
16023else
16024  cat >conftest.$ac_ext <<_ACEOF
16025/* confdefs.h.  */
16026_ACEOF
16027cat confdefs.h >>conftest.$ac_ext
16028cat >>conftest.$ac_ext <<_ACEOF
16029/* end confdefs.h.  */
16030
16031#include <unistd.h>
16032
16033int
16034main ()
16035{
16036
16037  if (setpgrp(1,1) == -1)
16038    exit (0);
16039  else
16040    exit (1);
16041
16042  ;
16043  return 0;
16044}
16045_ACEOF
16046rm -f conftest.$ac_objext
16047if { (ac_try="$ac_compile"
16048case "(($ac_try" in
16049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050  *) ac_try_echo=$ac_try;;
16051esac
16052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053  (eval "$ac_compile") 2>conftest.er1
16054  ac_status=$?
16055  grep -v '^ *+' conftest.er1 >conftest.err
16056  rm -f conftest.er1
16057  cat conftest.err >&5
16058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059  (exit $ac_status); } &&
16060	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16061  { (case "(($ac_try" in
16062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063  *) ac_try_echo=$ac_try;;
16064esac
16065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066  (eval "$ac_try") 2>&5
16067  ac_status=$?
16068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069  (exit $ac_status); }; } &&
16070	 { ac_try='test -s conftest.$ac_objext'
16071  { (case "(($ac_try" in
16072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073  *) ac_try_echo=$ac_try;;
16074esac
16075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076  (eval "$ac_try") 2>&5
16077  ac_status=$?
16078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079  (exit $ac_status); }; }; then
16080  ac_cv_func_setpgrp_void=no
16081else
16082  echo "$as_me: failed program was:" >&5
16083sed 's/^/| /' conftest.$ac_ext >&5
16084
16085	ac_cv_func_setpgrp_void=yes
16086fi
16087
16088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089fi
16090{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16091echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
16092if test $ac_cv_func_setpgrp_void = yes; then
16093  cat >>confdefs.h <<\_ACEOF
16094#define SETPGRP_VOID 1
16095_ACEOF
16096
16097fi
16098fi
16099
16100# Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
16101# since sigsetjmp might only be defined as a macro.
16102{ echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16103echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
16104if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16105  echo $ECHO_N "(cached) $ECHO_C" >&6
16106else
16107  cat >conftest.$ac_ext <<_ACEOF
16108/* confdefs.h.  */
16109_ACEOF
16110cat confdefs.h >>conftest.$ac_ext
16111cat >>conftest.$ac_ext <<_ACEOF
16112/* end confdefs.h.  */
16113
16114#include <setjmp.h>
16115
16116int
16117main ()
16118{
16119sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16120  ;
16121  return 0;
16122}
16123_ACEOF
16124rm -f conftest.$ac_objext
16125if { (ac_try="$ac_compile"
16126case "(($ac_try" in
16127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128  *) ac_try_echo=$ac_try;;
16129esac
16130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131  (eval "$ac_compile") 2>conftest.er1
16132  ac_status=$?
16133  grep -v '^ *+' conftest.er1 >conftest.err
16134  rm -f conftest.er1
16135  cat conftest.err >&5
16136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137  (exit $ac_status); } &&
16138	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16139  { (case "(($ac_try" in
16140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141  *) ac_try_echo=$ac_try;;
16142esac
16143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144  (eval "$ac_try") 2>&5
16145  ac_status=$?
16146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147  (exit $ac_status); }; } &&
16148	 { ac_try='test -s conftest.$ac_objext'
16149  { (case "(($ac_try" in
16150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151  *) ac_try_echo=$ac_try;;
16152esac
16153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154  (eval "$ac_try") 2>&5
16155  ac_status=$?
16156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157  (exit $ac_status); }; }; then
16158  gdb_cv_func_sigsetjmp=yes
16159else
16160  echo "$as_me: failed program was:" >&5
16161sed 's/^/| /' conftest.$ac_ext >&5
16162
16163	gdb_cv_func_sigsetjmp=no
16164fi
16165
16166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167fi
16168{ echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16169echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6; }
16170if test $gdb_cv_func_sigsetjmp = yes; then
16171
16172cat >>confdefs.h <<\_ACEOF
16173#define HAVE_SIGSETJMP 1
16174_ACEOF
16175
16176fi
16177
16178# Assume we'll default to using the included libiberty regex.
16179gdb_use_included_regex=yes
16180
16181# However, if the system regex is GNU regex, then default to *not*
16182# using the included regex.
16183{ echo "$as_me:$LINENO: checking for GNU regex" >&5
16184echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6; }
16185if test "${gdb_cv_have_gnu_regex+set}" = set; then
16186  echo $ECHO_N "(cached) $ECHO_C" >&6
16187else
16188  cat >conftest.$ac_ext <<_ACEOF
16189/* confdefs.h.  */
16190_ACEOF
16191cat confdefs.h >>conftest.$ac_ext
16192cat >>conftest.$ac_ext <<_ACEOF
16193/* end confdefs.h.  */
16194#include <gnu-versions.h>
16195int
16196main ()
16197{
16198#define REGEX_INTERFACE_VERSION 1
16199#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16200# error "Version mismatch"
16201#endif
16202  ;
16203  return 0;
16204}
16205_ACEOF
16206rm -f conftest.$ac_objext
16207if { (ac_try="$ac_compile"
16208case "(($ac_try" in
16209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210  *) ac_try_echo=$ac_try;;
16211esac
16212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213  (eval "$ac_compile") 2>conftest.er1
16214  ac_status=$?
16215  grep -v '^ *+' conftest.er1 >conftest.err
16216  rm -f conftest.er1
16217  cat conftest.err >&5
16218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219  (exit $ac_status); } &&
16220	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16221  { (case "(($ac_try" in
16222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223  *) ac_try_echo=$ac_try;;
16224esac
16225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226  (eval "$ac_try") 2>&5
16227  ac_status=$?
16228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229  (exit $ac_status); }; } &&
16230	 { ac_try='test -s conftest.$ac_objext'
16231  { (case "(($ac_try" in
16232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233  *) ac_try_echo=$ac_try;;
16234esac
16235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236  (eval "$ac_try") 2>&5
16237  ac_status=$?
16238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239  (exit $ac_status); }; }; then
16240  gdb_cv_have_gnu_regex=yes
16241else
16242  echo "$as_me: failed program was:" >&5
16243sed 's/^/| /' conftest.$ac_ext >&5
16244
16245	gdb_cv_have_gnu_regex=no
16246fi
16247
16248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249fi
16250{ echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16251echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6; }
16252if test $gdb_cv_have_gnu_regex = yes; then
16253  gdb_use_included_regex=no
16254fi
16255
16256
16257# Check whether --with-included-regex was given.
16258if test "${with_included_regex+set}" = set; then
16259  withval=$with_included_regex; gdb_with_regex=$withval
16260else
16261  gdb_with_regex=$gdb_use_included_regex
16262fi
16263
16264if test "$gdb_with_regex" = yes; then
16265
16266cat >>confdefs.h <<\_ACEOF
16267#define USE_INCLUDED_REGEX 1
16268_ACEOF
16269
16270fi
16271
16272# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16273{ echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16274echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6; }
16275if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16276  echo $ECHO_N "(cached) $ECHO_C" >&6
16277else
16278  cat >conftest.$ac_ext <<_ACEOF
16279/* confdefs.h.  */
16280_ACEOF
16281cat confdefs.h >>conftest.$ac_ext
16282cat >>conftest.$ac_ext <<_ACEOF
16283/* end confdefs.h.  */
16284#include <sys/param.h>
16285#include <sys/proc.h>
16286
16287
16288int
16289main ()
16290{
16291static struct thread ac_aggr;
16292if (ac_aggr.td_pcb)
16293return 0;
16294  ;
16295  return 0;
16296}
16297_ACEOF
16298rm -f conftest.$ac_objext
16299if { (ac_try="$ac_compile"
16300case "(($ac_try" in
16301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302  *) ac_try_echo=$ac_try;;
16303esac
16304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305  (eval "$ac_compile") 2>conftest.er1
16306  ac_status=$?
16307  grep -v '^ *+' conftest.er1 >conftest.err
16308  rm -f conftest.er1
16309  cat conftest.err >&5
16310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311  (exit $ac_status); } &&
16312	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16313  { (case "(($ac_try" in
16314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315  *) ac_try_echo=$ac_try;;
16316esac
16317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318  (eval "$ac_try") 2>&5
16319  ac_status=$?
16320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321  (exit $ac_status); }; } &&
16322	 { ac_try='test -s conftest.$ac_objext'
16323  { (case "(($ac_try" in
16324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325  *) ac_try_echo=$ac_try;;
16326esac
16327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328  (eval "$ac_try") 2>&5
16329  ac_status=$?
16330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331  (exit $ac_status); }; }; then
16332  ac_cv_member_struct_thread_td_pcb=yes
16333else
16334  echo "$as_me: failed program was:" >&5
16335sed 's/^/| /' conftest.$ac_ext >&5
16336
16337	cat >conftest.$ac_ext <<_ACEOF
16338/* confdefs.h.  */
16339_ACEOF
16340cat confdefs.h >>conftest.$ac_ext
16341cat >>conftest.$ac_ext <<_ACEOF
16342/* end confdefs.h.  */
16343#include <sys/param.h>
16344#include <sys/proc.h>
16345
16346
16347int
16348main ()
16349{
16350static struct thread ac_aggr;
16351if (sizeof ac_aggr.td_pcb)
16352return 0;
16353  ;
16354  return 0;
16355}
16356_ACEOF
16357rm -f conftest.$ac_objext
16358if { (ac_try="$ac_compile"
16359case "(($ac_try" in
16360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361  *) ac_try_echo=$ac_try;;
16362esac
16363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364  (eval "$ac_compile") 2>conftest.er1
16365  ac_status=$?
16366  grep -v '^ *+' conftest.er1 >conftest.err
16367  rm -f conftest.er1
16368  cat conftest.err >&5
16369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370  (exit $ac_status); } &&
16371	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16372  { (case "(($ac_try" in
16373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374  *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377  (eval "$ac_try") 2>&5
16378  ac_status=$?
16379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380  (exit $ac_status); }; } &&
16381	 { ac_try='test -s conftest.$ac_objext'
16382  { (case "(($ac_try" in
16383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384  *) ac_try_echo=$ac_try;;
16385esac
16386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387  (eval "$ac_try") 2>&5
16388  ac_status=$?
16389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390  (exit $ac_status); }; }; then
16391  ac_cv_member_struct_thread_td_pcb=yes
16392else
16393  echo "$as_me: failed program was:" >&5
16394sed 's/^/| /' conftest.$ac_ext >&5
16395
16396	ac_cv_member_struct_thread_td_pcb=no
16397fi
16398
16399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16400fi
16401
16402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16403fi
16404{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16405echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6; }
16406if test $ac_cv_member_struct_thread_td_pcb = yes; then
16407
16408cat >>confdefs.h <<_ACEOF
16409#define HAVE_STRUCT_THREAD_TD_PCB 1
16410_ACEOF
16411
16412
16413fi
16414
16415
16416# See if <sys/lwp.h> defines `struct lwp`.
16417{ echo "$as_me:$LINENO: checking for struct lwp" >&5
16418echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6; }
16419if test "${gdb_cv_struct_lwp+set}" = set; then
16420  echo $ECHO_N "(cached) $ECHO_C" >&6
16421else
16422  cat >conftest.$ac_ext <<_ACEOF
16423/* confdefs.h.  */
16424_ACEOF
16425cat confdefs.h >>conftest.$ac_ext
16426cat >>conftest.$ac_ext <<_ACEOF
16427/* end confdefs.h.  */
16428#include <sys/param.h>
16429#include <sys/lwp.h>
16430int
16431main ()
16432{
16433struct lwp l;
16434  ;
16435  return 0;
16436}
16437_ACEOF
16438rm -f conftest.$ac_objext
16439if { (ac_try="$ac_compile"
16440case "(($ac_try" in
16441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442  *) ac_try_echo=$ac_try;;
16443esac
16444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445  (eval "$ac_compile") 2>conftest.er1
16446  ac_status=$?
16447  grep -v '^ *+' conftest.er1 >conftest.err
16448  rm -f conftest.er1
16449  cat conftest.err >&5
16450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451  (exit $ac_status); } &&
16452	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16453  { (case "(($ac_try" in
16454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455  *) ac_try_echo=$ac_try;;
16456esac
16457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16458  (eval "$ac_try") 2>&5
16459  ac_status=$?
16460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461  (exit $ac_status); }; } &&
16462	 { ac_try='test -s conftest.$ac_objext'
16463  { (case "(($ac_try" in
16464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465  *) ac_try_echo=$ac_try;;
16466esac
16467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468  (eval "$ac_try") 2>&5
16469  ac_status=$?
16470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471  (exit $ac_status); }; }; then
16472  gdb_cv_struct_lwp=yes
16473else
16474  echo "$as_me: failed program was:" >&5
16475sed 's/^/| /' conftest.$ac_ext >&5
16476
16477	gdb_cv_struct_lwp=no
16478fi
16479
16480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481fi
16482{ echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16483echo "${ECHO_T}$gdb_cv_struct_lwp" >&6; }
16484if test $gdb_cv_struct_lwp = yes; then
16485
16486cat >>confdefs.h <<\_ACEOF
16487#define HAVE_STRUCT_LWP 1
16488_ACEOF
16489
16490fi
16491
16492# See if <machine/reg.h> degines `struct reg'.
16493{ echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16494echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6; }
16495if test "${gdb_cv_struct_reg+set}" = set; then
16496  echo $ECHO_N "(cached) $ECHO_C" >&6
16497else
16498  cat >conftest.$ac_ext <<_ACEOF
16499/* confdefs.h.  */
16500_ACEOF
16501cat confdefs.h >>conftest.$ac_ext
16502cat >>conftest.$ac_ext <<_ACEOF
16503/* end confdefs.h.  */
16504#include <sys/types.h>
16505#include <machine/reg.h>
16506int
16507main ()
16508{
16509struct reg r;
16510  ;
16511  return 0;
16512}
16513_ACEOF
16514rm -f conftest.$ac_objext
16515if { (ac_try="$ac_compile"
16516case "(($ac_try" in
16517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518  *) ac_try_echo=$ac_try;;
16519esac
16520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521  (eval "$ac_compile") 2>conftest.er1
16522  ac_status=$?
16523  grep -v '^ *+' conftest.er1 >conftest.err
16524  rm -f conftest.er1
16525  cat conftest.err >&5
16526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527  (exit $ac_status); } &&
16528	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16529  { (case "(($ac_try" in
16530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531  *) ac_try_echo=$ac_try;;
16532esac
16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534  (eval "$ac_try") 2>&5
16535  ac_status=$?
16536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537  (exit $ac_status); }; } &&
16538	 { ac_try='test -s conftest.$ac_objext'
16539  { (case "(($ac_try" in
16540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541  *) ac_try_echo=$ac_try;;
16542esac
16543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544  (eval "$ac_try") 2>&5
16545  ac_status=$?
16546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547  (exit $ac_status); }; }; then
16548  gdb_cv_struct_reg=yes
16549else
16550  echo "$as_me: failed program was:" >&5
16551sed 's/^/| /' conftest.$ac_ext >&5
16552
16553	gdb_cv_struct_reg=no
16554fi
16555
16556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557fi
16558{ echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16559echo "${ECHO_T}$gdb_cv_struct_reg" >&6; }
16560if test $gdb_cv_struct_reg = yes; then
16561
16562cat >>confdefs.h <<\_ACEOF
16563#define HAVE_STRUCT_REG 1
16564_ACEOF
16565
16566fi
16567
16568# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16569# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16570{ echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16571echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6; }
16572if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16573  echo $ECHO_N "(cached) $ECHO_C" >&6
16574else
16575  cat >conftest.$ac_ext <<_ACEOF
16576/* confdefs.h.  */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h.  */
16581#include <machine/reg.h>
16582
16583int
16584main ()
16585{
16586static struct reg ac_aggr;
16587if (ac_aggr.r_fs)
16588return 0;
16589  ;
16590  return 0;
16591}
16592_ACEOF
16593rm -f conftest.$ac_objext
16594if { (ac_try="$ac_compile"
16595case "(($ac_try" in
16596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597  *) ac_try_echo=$ac_try;;
16598esac
16599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600  (eval "$ac_compile") 2>conftest.er1
16601  ac_status=$?
16602  grep -v '^ *+' conftest.er1 >conftest.err
16603  rm -f conftest.er1
16604  cat conftest.err >&5
16605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606  (exit $ac_status); } &&
16607	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16608  { (case "(($ac_try" in
16609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610  *) ac_try_echo=$ac_try;;
16611esac
16612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613  (eval "$ac_try") 2>&5
16614  ac_status=$?
16615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616  (exit $ac_status); }; } &&
16617	 { ac_try='test -s conftest.$ac_objext'
16618  { (case "(($ac_try" in
16619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620  *) ac_try_echo=$ac_try;;
16621esac
16622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623  (eval "$ac_try") 2>&5
16624  ac_status=$?
16625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626  (exit $ac_status); }; }; then
16627  ac_cv_member_struct_reg_r_fs=yes
16628else
16629  echo "$as_me: failed program was:" >&5
16630sed 's/^/| /' conftest.$ac_ext >&5
16631
16632	cat >conftest.$ac_ext <<_ACEOF
16633/* confdefs.h.  */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h.  */
16638#include <machine/reg.h>
16639
16640int
16641main ()
16642{
16643static struct reg ac_aggr;
16644if (sizeof ac_aggr.r_fs)
16645return 0;
16646  ;
16647  return 0;
16648}
16649_ACEOF
16650rm -f conftest.$ac_objext
16651if { (ac_try="$ac_compile"
16652case "(($ac_try" in
16653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654  *) ac_try_echo=$ac_try;;
16655esac
16656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657  (eval "$ac_compile") 2>conftest.er1
16658  ac_status=$?
16659  grep -v '^ *+' conftest.er1 >conftest.err
16660  rm -f conftest.er1
16661  cat conftest.err >&5
16662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663  (exit $ac_status); } &&
16664	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665  { (case "(($ac_try" in
16666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667  *) ac_try_echo=$ac_try;;
16668esac
16669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670  (eval "$ac_try") 2>&5
16671  ac_status=$?
16672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673  (exit $ac_status); }; } &&
16674	 { ac_try='test -s conftest.$ac_objext'
16675  { (case "(($ac_try" in
16676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677  *) ac_try_echo=$ac_try;;
16678esac
16679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680  (eval "$ac_try") 2>&5
16681  ac_status=$?
16682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683  (exit $ac_status); }; }; then
16684  ac_cv_member_struct_reg_r_fs=yes
16685else
16686  echo "$as_me: failed program was:" >&5
16687sed 's/^/| /' conftest.$ac_ext >&5
16688
16689	ac_cv_member_struct_reg_r_fs=no
16690fi
16691
16692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693fi
16694
16695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16696fi
16697{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16698echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6; }
16699if test $ac_cv_member_struct_reg_r_fs = yes; then
16700
16701cat >>confdefs.h <<_ACEOF
16702#define HAVE_STRUCT_REG_R_FS 1
16703_ACEOF
16704
16705
16706fi
16707{ echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16708echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6; }
16709if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16710  echo $ECHO_N "(cached) $ECHO_C" >&6
16711else
16712  cat >conftest.$ac_ext <<_ACEOF
16713/* confdefs.h.  */
16714_ACEOF
16715cat confdefs.h >>conftest.$ac_ext
16716cat >>conftest.$ac_ext <<_ACEOF
16717/* end confdefs.h.  */
16718#include <machine/reg.h>
16719
16720int
16721main ()
16722{
16723static struct reg ac_aggr;
16724if (ac_aggr.r_gs)
16725return 0;
16726  ;
16727  return 0;
16728}
16729_ACEOF
16730rm -f conftest.$ac_objext
16731if { (ac_try="$ac_compile"
16732case "(($ac_try" in
16733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734  *) ac_try_echo=$ac_try;;
16735esac
16736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737  (eval "$ac_compile") 2>conftest.er1
16738  ac_status=$?
16739  grep -v '^ *+' conftest.er1 >conftest.err
16740  rm -f conftest.er1
16741  cat conftest.err >&5
16742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743  (exit $ac_status); } &&
16744	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16745  { (case "(($ac_try" in
16746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747  *) ac_try_echo=$ac_try;;
16748esac
16749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750  (eval "$ac_try") 2>&5
16751  ac_status=$?
16752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753  (exit $ac_status); }; } &&
16754	 { ac_try='test -s conftest.$ac_objext'
16755  { (case "(($ac_try" in
16756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757  *) ac_try_echo=$ac_try;;
16758esac
16759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760  (eval "$ac_try") 2>&5
16761  ac_status=$?
16762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763  (exit $ac_status); }; }; then
16764  ac_cv_member_struct_reg_r_gs=yes
16765else
16766  echo "$as_me: failed program was:" >&5
16767sed 's/^/| /' conftest.$ac_ext >&5
16768
16769	cat >conftest.$ac_ext <<_ACEOF
16770/* confdefs.h.  */
16771_ACEOF
16772cat confdefs.h >>conftest.$ac_ext
16773cat >>conftest.$ac_ext <<_ACEOF
16774/* end confdefs.h.  */
16775#include <machine/reg.h>
16776
16777int
16778main ()
16779{
16780static struct reg ac_aggr;
16781if (sizeof ac_aggr.r_gs)
16782return 0;
16783  ;
16784  return 0;
16785}
16786_ACEOF
16787rm -f conftest.$ac_objext
16788if { (ac_try="$ac_compile"
16789case "(($ac_try" in
16790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791  *) ac_try_echo=$ac_try;;
16792esac
16793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794  (eval "$ac_compile") 2>conftest.er1
16795  ac_status=$?
16796  grep -v '^ *+' conftest.er1 >conftest.err
16797  rm -f conftest.er1
16798  cat conftest.err >&5
16799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800  (exit $ac_status); } &&
16801	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16802  { (case "(($ac_try" in
16803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804  *) ac_try_echo=$ac_try;;
16805esac
16806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807  (eval "$ac_try") 2>&5
16808  ac_status=$?
16809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810  (exit $ac_status); }; } &&
16811	 { ac_try='test -s conftest.$ac_objext'
16812  { (case "(($ac_try" in
16813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814  *) ac_try_echo=$ac_try;;
16815esac
16816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817  (eval "$ac_try") 2>&5
16818  ac_status=$?
16819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820  (exit $ac_status); }; }; then
16821  ac_cv_member_struct_reg_r_gs=yes
16822else
16823  echo "$as_me: failed program was:" >&5
16824sed 's/^/| /' conftest.$ac_ext >&5
16825
16826	ac_cv_member_struct_reg_r_gs=no
16827fi
16828
16829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16830fi
16831
16832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833fi
16834{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
16835echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6; }
16836if test $ac_cv_member_struct_reg_r_gs = yes; then
16837
16838cat >>confdefs.h <<_ACEOF
16839#define HAVE_STRUCT_REG_R_GS 1
16840_ACEOF
16841
16842
16843fi
16844
16845
16846# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16847{ echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16848echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6; }
16849if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
16850  echo $ECHO_N "(cached) $ECHO_C" >&6
16851else
16852  cat >conftest.$ac_ext <<_ACEOF
16853/* confdefs.h.  */
16854_ACEOF
16855cat confdefs.h >>conftest.$ac_ext
16856cat >>conftest.$ac_ext <<_ACEOF
16857/* end confdefs.h.  */
16858#include <sys/ptrace.h>
16859int
16860main ()
16861{
16862PTRACE_GETREGS;
16863  ;
16864  return 0;
16865}
16866_ACEOF
16867rm -f conftest.$ac_objext
16868if { (ac_try="$ac_compile"
16869case "(($ac_try" in
16870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871  *) ac_try_echo=$ac_try;;
16872esac
16873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874  (eval "$ac_compile") 2>conftest.er1
16875  ac_status=$?
16876  grep -v '^ *+' conftest.er1 >conftest.err
16877  rm -f conftest.er1
16878  cat conftest.err >&5
16879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880  (exit $ac_status); } &&
16881	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16882  { (case "(($ac_try" in
16883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884  *) ac_try_echo=$ac_try;;
16885esac
16886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887  (eval "$ac_try") 2>&5
16888  ac_status=$?
16889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890  (exit $ac_status); }; } &&
16891	 { ac_try='test -s conftest.$ac_objext'
16892  { (case "(($ac_try" in
16893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894  *) ac_try_echo=$ac_try;;
16895esac
16896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897  (eval "$ac_try") 2>&5
16898  ac_status=$?
16899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900  (exit $ac_status); }; }; then
16901  gdb_cv_have_ptrace_getregs=yes
16902else
16903  echo "$as_me: failed program was:" >&5
16904sed 's/^/| /' conftest.$ac_ext >&5
16905
16906	gdb_cv_have_ptrace_getregs=no
16907fi
16908
16909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16910fi
16911
16912{ echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16913echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6; }
16914if test $gdb_cv_have_ptrace_getregs = yes; then
16915
16916cat >>confdefs.h <<\_ACEOF
16917#define HAVE_PTRACE_GETREGS 1
16918_ACEOF
16919
16920fi
16921
16922# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16923{ echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16924echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6; }
16925if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16926  echo $ECHO_N "(cached) $ECHO_C" >&6
16927else
16928  cat >conftest.$ac_ext <<_ACEOF
16929/* confdefs.h.  */
16930_ACEOF
16931cat confdefs.h >>conftest.$ac_ext
16932cat >>conftest.$ac_ext <<_ACEOF
16933/* end confdefs.h.  */
16934#include <sys/ptrace.h>
16935int
16936main ()
16937{
16938PTRACE_GETFPXREGS;
16939  ;
16940  return 0;
16941}
16942_ACEOF
16943rm -f conftest.$ac_objext
16944if { (ac_try="$ac_compile"
16945case "(($ac_try" in
16946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947  *) ac_try_echo=$ac_try;;
16948esac
16949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950  (eval "$ac_compile") 2>conftest.er1
16951  ac_status=$?
16952  grep -v '^ *+' conftest.er1 >conftest.err
16953  rm -f conftest.er1
16954  cat conftest.err >&5
16955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956  (exit $ac_status); } &&
16957	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16958  { (case "(($ac_try" in
16959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16960  *) ac_try_echo=$ac_try;;
16961esac
16962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16963  (eval "$ac_try") 2>&5
16964  ac_status=$?
16965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966  (exit $ac_status); }; } &&
16967	 { ac_try='test -s conftest.$ac_objext'
16968  { (case "(($ac_try" in
16969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970  *) ac_try_echo=$ac_try;;
16971esac
16972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973  (eval "$ac_try") 2>&5
16974  ac_status=$?
16975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976  (exit $ac_status); }; }; then
16977  gdb_cv_have_ptrace_getfpxregs=yes
16978else
16979  echo "$as_me: failed program was:" >&5
16980sed 's/^/| /' conftest.$ac_ext >&5
16981
16982	gdb_cv_have_ptrace_getfpxregs=no
16983fi
16984
16985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16986fi
16987
16988{ echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16989echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6; }
16990if test $gdb_cv_have_ptrace_getfpxregs = yes; then
16991
16992cat >>confdefs.h <<\_ACEOF
16993#define HAVE_PTRACE_GETFPXREGS 1
16994_ACEOF
16995
16996fi
16997
16998# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16999{ echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17000echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6; }
17001if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17002  echo $ECHO_N "(cached) $ECHO_C" >&6
17003else
17004  cat >conftest.$ac_ext <<_ACEOF
17005/* confdefs.h.  */
17006_ACEOF
17007cat confdefs.h >>conftest.$ac_ext
17008cat >>conftest.$ac_ext <<_ACEOF
17009/* end confdefs.h.  */
17010#include <sys/types.h>
17011#include <sys/ptrace.h>
17012int
17013main ()
17014{
17015PT_GETDBREGS;
17016  ;
17017  return 0;
17018}
17019_ACEOF
17020rm -f conftest.$ac_objext
17021if { (ac_try="$ac_compile"
17022case "(($ac_try" in
17023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024  *) ac_try_echo=$ac_try;;
17025esac
17026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027  (eval "$ac_compile") 2>conftest.er1
17028  ac_status=$?
17029  grep -v '^ *+' conftest.er1 >conftest.err
17030  rm -f conftest.er1
17031  cat conftest.err >&5
17032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033  (exit $ac_status); } &&
17034	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17035  { (case "(($ac_try" in
17036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037  *) ac_try_echo=$ac_try;;
17038esac
17039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040  (eval "$ac_try") 2>&5
17041  ac_status=$?
17042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043  (exit $ac_status); }; } &&
17044	 { ac_try='test -s conftest.$ac_objext'
17045  { (case "(($ac_try" in
17046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047  *) ac_try_echo=$ac_try;;
17048esac
17049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050  (eval "$ac_try") 2>&5
17051  ac_status=$?
17052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053  (exit $ac_status); }; }; then
17054  gdb_cv_have_pt_getdbregs=yes
17055else
17056  echo "$as_me: failed program was:" >&5
17057sed 's/^/| /' conftest.$ac_ext >&5
17058
17059	gdb_cv_have_pt_getdbregs=no
17060fi
17061
17062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17063fi
17064
17065{ echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17066echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6; }
17067if test $gdb_cv_have_pt_getdbregs = yes; then
17068
17069cat >>confdefs.h <<\_ACEOF
17070#define HAVE_PT_GETDBREGS 1
17071_ACEOF
17072
17073fi
17074
17075# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17076{ echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17077echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6; }
17078if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17079  echo $ECHO_N "(cached) $ECHO_C" >&6
17080else
17081  cat >conftest.$ac_ext <<_ACEOF
17082/* confdefs.h.  */
17083_ACEOF
17084cat confdefs.h >>conftest.$ac_ext
17085cat >>conftest.$ac_ext <<_ACEOF
17086/* end confdefs.h.  */
17087#include <sys/types.h>
17088#include <sys/ptrace.h>
17089int
17090main ()
17091{
17092PT_GETXMMREGS;
17093  ;
17094  return 0;
17095}
17096_ACEOF
17097rm -f conftest.$ac_objext
17098if { (ac_try="$ac_compile"
17099case "(($ac_try" in
17100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101  *) ac_try_echo=$ac_try;;
17102esac
17103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104  (eval "$ac_compile") 2>conftest.er1
17105  ac_status=$?
17106  grep -v '^ *+' conftest.er1 >conftest.err
17107  rm -f conftest.er1
17108  cat conftest.err >&5
17109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110  (exit $ac_status); } &&
17111	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17112  { (case "(($ac_try" in
17113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114  *) ac_try_echo=$ac_try;;
17115esac
17116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117  (eval "$ac_try") 2>&5
17118  ac_status=$?
17119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120  (exit $ac_status); }; } &&
17121	 { ac_try='test -s conftest.$ac_objext'
17122  { (case "(($ac_try" in
17123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124  *) ac_try_echo=$ac_try;;
17125esac
17126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127  (eval "$ac_try") 2>&5
17128  ac_status=$?
17129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130  (exit $ac_status); }; }; then
17131  gdb_cv_have_pt_getxmmregs=yes
17132else
17133  echo "$as_me: failed program was:" >&5
17134sed 's/^/| /' conftest.$ac_ext >&5
17135
17136	gdb_cv_have_pt_getxmmregs=no
17137fi
17138
17139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17140fi
17141
17142{ echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17143echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6; }
17144if test $gdb_cv_have_pt_getxmmregs = yes; then
17145
17146cat >>confdefs.h <<\_ACEOF
17147#define HAVE_PT_GETXMMREGS 1
17148_ACEOF
17149
17150fi
17151
17152# If we are configured native on GNU/Linux, work around problems with
17153# sys/procfs.h
17154# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17155
17156if test "${target}" = "${host}"; then
17157  case "${host}" in
17158  i[3456]86-*-linux*)
17159
17160cat >>confdefs.h <<\_ACEOF
17161#define START_INFERIOR_TRAPS_EXPECTED 2
17162_ACEOF
17163
17164
17165cat >>confdefs.h <<\_ACEOF
17166#define sys_quotactl 1
17167_ACEOF
17168
17169	;;
17170  *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17171
17172cat >>confdefs.h <<\_ACEOF
17173#define NEW_PROC_API 1
17174_ACEOF
17175
17176      ;;
17177  *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17178
17179cat >>confdefs.h <<\_ACEOF
17180#define NEW_PROC_API 1
17181_ACEOF
17182
17183      ;;
17184  mips-sgi-irix5*)
17185      # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17186
17187cat >>confdefs.h <<\_ACEOF
17188#define _KMEMUSER 1
17189_ACEOF
17190
17191      ;;
17192  esac
17193fi
17194
17195if test "$ac_cv_header_sys_procfs_h" = yes; then
17196  { echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17197echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
17198 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17199  echo $ECHO_N "(cached) $ECHO_C" >&6
17200else
17201  cat >conftest.$ac_ext <<_ACEOF
17202/* confdefs.h.  */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h.  */
17207
17208#define _SYSCALL32
17209#include <sys/procfs.h>
17210int
17211main ()
17212{
17213pstatus_t avar
17214  ;
17215  return 0;
17216}
17217_ACEOF
17218rm -f conftest.$ac_objext
17219if { (ac_try="$ac_compile"
17220case "(($ac_try" in
17221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222  *) ac_try_echo=$ac_try;;
17223esac
17224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225  (eval "$ac_compile") 2>conftest.er1
17226  ac_status=$?
17227  grep -v '^ *+' conftest.er1 >conftest.err
17228  rm -f conftest.er1
17229  cat conftest.err >&5
17230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231  (exit $ac_status); } &&
17232	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233  { (case "(($ac_try" in
17234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235  *) ac_try_echo=$ac_try;;
17236esac
17237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238  (eval "$ac_try") 2>&5
17239  ac_status=$?
17240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241  (exit $ac_status); }; } &&
17242	 { ac_try='test -s conftest.$ac_objext'
17243  { (case "(($ac_try" in
17244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245  *) ac_try_echo=$ac_try;;
17246esac
17247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248  (eval "$ac_try") 2>&5
17249  ac_status=$?
17250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251  (exit $ac_status); }; }; then
17252  bfd_cv_have_sys_procfs_type_pstatus_t=yes
17253else
17254  echo "$as_me: failed program was:" >&5
17255sed 's/^/| /' conftest.$ac_ext >&5
17256
17257	bfd_cv_have_sys_procfs_type_pstatus_t=no
17258
17259fi
17260
17261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262fi
17263
17264 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17265
17266cat >>confdefs.h <<\_ACEOF
17267#define HAVE_PSTATUS_T 1
17268_ACEOF
17269
17270 fi
17271 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17272echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
17273
17274  { echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17275echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6; }
17276 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17277  echo $ECHO_N "(cached) $ECHO_C" >&6
17278else
17279  cat >conftest.$ac_ext <<_ACEOF
17280/* confdefs.h.  */
17281_ACEOF
17282cat confdefs.h >>conftest.$ac_ext
17283cat >>conftest.$ac_ext <<_ACEOF
17284/* end confdefs.h.  */
17285
17286#define _SYSCALL32
17287#include <sys/procfs.h>
17288int
17289main ()
17290{
17291prrun_t avar
17292  ;
17293  return 0;
17294}
17295_ACEOF
17296rm -f conftest.$ac_objext
17297if { (ac_try="$ac_compile"
17298case "(($ac_try" in
17299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300  *) ac_try_echo=$ac_try;;
17301esac
17302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303  (eval "$ac_compile") 2>conftest.er1
17304  ac_status=$?
17305  grep -v '^ *+' conftest.er1 >conftest.err
17306  rm -f conftest.er1
17307  cat conftest.err >&5
17308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309  (exit $ac_status); } &&
17310	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17311  { (case "(($ac_try" in
17312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313  *) ac_try_echo=$ac_try;;
17314esac
17315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316  (eval "$ac_try") 2>&5
17317  ac_status=$?
17318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319  (exit $ac_status); }; } &&
17320	 { ac_try='test -s conftest.$ac_objext'
17321  { (case "(($ac_try" in
17322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323  *) ac_try_echo=$ac_try;;
17324esac
17325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326  (eval "$ac_try") 2>&5
17327  ac_status=$?
17328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329  (exit $ac_status); }; }; then
17330  bfd_cv_have_sys_procfs_type_prrun_t=yes
17331else
17332  echo "$as_me: failed program was:" >&5
17333sed 's/^/| /' conftest.$ac_ext >&5
17334
17335	bfd_cv_have_sys_procfs_type_prrun_t=no
17336
17337fi
17338
17339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17340fi
17341
17342 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17343
17344cat >>confdefs.h <<\_ACEOF
17345#define HAVE_PRRUN_T 1
17346_ACEOF
17347
17348 fi
17349 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17350echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
17351
17352  { echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17353echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6; }
17354 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17355  echo $ECHO_N "(cached) $ECHO_C" >&6
17356else
17357  cat >conftest.$ac_ext <<_ACEOF
17358/* confdefs.h.  */
17359_ACEOF
17360cat confdefs.h >>conftest.$ac_ext
17361cat >>conftest.$ac_ext <<_ACEOF
17362/* end confdefs.h.  */
17363
17364#define _SYSCALL32
17365#include <sys/procfs.h>
17366int
17367main ()
17368{
17369gregset_t avar
17370  ;
17371  return 0;
17372}
17373_ACEOF
17374rm -f conftest.$ac_objext
17375if { (ac_try="$ac_compile"
17376case "(($ac_try" in
17377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378  *) ac_try_echo=$ac_try;;
17379esac
17380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381  (eval "$ac_compile") 2>conftest.er1
17382  ac_status=$?
17383  grep -v '^ *+' conftest.er1 >conftest.err
17384  rm -f conftest.er1
17385  cat conftest.err >&5
17386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387  (exit $ac_status); } &&
17388	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17389  { (case "(($ac_try" in
17390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17391  *) ac_try_echo=$ac_try;;
17392esac
17393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17394  (eval "$ac_try") 2>&5
17395  ac_status=$?
17396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397  (exit $ac_status); }; } &&
17398	 { ac_try='test -s conftest.$ac_objext'
17399  { (case "(($ac_try" in
17400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401  *) ac_try_echo=$ac_try;;
17402esac
17403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404  (eval "$ac_try") 2>&5
17405  ac_status=$?
17406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407  (exit $ac_status); }; }; then
17408  bfd_cv_have_sys_procfs_type_gregset_t=yes
17409else
17410  echo "$as_me: failed program was:" >&5
17411sed 's/^/| /' conftest.$ac_ext >&5
17412
17413	bfd_cv_have_sys_procfs_type_gregset_t=no
17414
17415fi
17416
17417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418fi
17419
17420 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17421
17422cat >>confdefs.h <<\_ACEOF
17423#define HAVE_GREGSET_T 1
17424_ACEOF
17425
17426 fi
17427 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17428echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
17429
17430  { echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17431echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6; }
17432 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17433  echo $ECHO_N "(cached) $ECHO_C" >&6
17434else
17435  cat >conftest.$ac_ext <<_ACEOF
17436/* confdefs.h.  */
17437_ACEOF
17438cat confdefs.h >>conftest.$ac_ext
17439cat >>conftest.$ac_ext <<_ACEOF
17440/* end confdefs.h.  */
17441
17442#define _SYSCALL32
17443#include <sys/procfs.h>
17444int
17445main ()
17446{
17447fpregset_t avar
17448  ;
17449  return 0;
17450}
17451_ACEOF
17452rm -f conftest.$ac_objext
17453if { (ac_try="$ac_compile"
17454case "(($ac_try" in
17455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456  *) ac_try_echo=$ac_try;;
17457esac
17458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459  (eval "$ac_compile") 2>conftest.er1
17460  ac_status=$?
17461  grep -v '^ *+' conftest.er1 >conftest.err
17462  rm -f conftest.er1
17463  cat conftest.err >&5
17464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465  (exit $ac_status); } &&
17466	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17467  { (case "(($ac_try" in
17468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469  *) ac_try_echo=$ac_try;;
17470esac
17471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472  (eval "$ac_try") 2>&5
17473  ac_status=$?
17474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475  (exit $ac_status); }; } &&
17476	 { ac_try='test -s conftest.$ac_objext'
17477  { (case "(($ac_try" in
17478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479  *) ac_try_echo=$ac_try;;
17480esac
17481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482  (eval "$ac_try") 2>&5
17483  ac_status=$?
17484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485  (exit $ac_status); }; }; then
17486  bfd_cv_have_sys_procfs_type_fpregset_t=yes
17487else
17488  echo "$as_me: failed program was:" >&5
17489sed 's/^/| /' conftest.$ac_ext >&5
17490
17491	bfd_cv_have_sys_procfs_type_fpregset_t=no
17492
17493fi
17494
17495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17496fi
17497
17498 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17499
17500cat >>confdefs.h <<\_ACEOF
17501#define HAVE_FPREGSET_T 1
17502_ACEOF
17503
17504 fi
17505 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17506echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
17507
17508  { echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17509echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6; }
17510 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17511  echo $ECHO_N "(cached) $ECHO_C" >&6
17512else
17513  cat >conftest.$ac_ext <<_ACEOF
17514/* confdefs.h.  */
17515_ACEOF
17516cat confdefs.h >>conftest.$ac_ext
17517cat >>conftest.$ac_ext <<_ACEOF
17518/* end confdefs.h.  */
17519
17520#define _SYSCALL32
17521#include <sys/procfs.h>
17522int
17523main ()
17524{
17525prgregset_t avar
17526  ;
17527  return 0;
17528}
17529_ACEOF
17530rm -f conftest.$ac_objext
17531if { (ac_try="$ac_compile"
17532case "(($ac_try" in
17533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534  *) ac_try_echo=$ac_try;;
17535esac
17536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537  (eval "$ac_compile") 2>conftest.er1
17538  ac_status=$?
17539  grep -v '^ *+' conftest.er1 >conftest.err
17540  rm -f conftest.er1
17541  cat conftest.err >&5
17542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543  (exit $ac_status); } &&
17544	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17545  { (case "(($ac_try" in
17546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547  *) ac_try_echo=$ac_try;;
17548esac
17549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550  (eval "$ac_try") 2>&5
17551  ac_status=$?
17552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553  (exit $ac_status); }; } &&
17554	 { ac_try='test -s conftest.$ac_objext'
17555  { (case "(($ac_try" in
17556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557  *) ac_try_echo=$ac_try;;
17558esac
17559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560  (eval "$ac_try") 2>&5
17561  ac_status=$?
17562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563  (exit $ac_status); }; }; then
17564  bfd_cv_have_sys_procfs_type_prgregset_t=yes
17565else
17566  echo "$as_me: failed program was:" >&5
17567sed 's/^/| /' conftest.$ac_ext >&5
17568
17569	bfd_cv_have_sys_procfs_type_prgregset_t=no
17570
17571fi
17572
17573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17574fi
17575
17576 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17577
17578cat >>confdefs.h <<\_ACEOF
17579#define HAVE_PRGREGSET_T 1
17580_ACEOF
17581
17582 fi
17583 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17584echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
17585
17586  { echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17587echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6; }
17588 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17589  echo $ECHO_N "(cached) $ECHO_C" >&6
17590else
17591  cat >conftest.$ac_ext <<_ACEOF
17592/* confdefs.h.  */
17593_ACEOF
17594cat confdefs.h >>conftest.$ac_ext
17595cat >>conftest.$ac_ext <<_ACEOF
17596/* end confdefs.h.  */
17597
17598#define _SYSCALL32
17599#include <sys/procfs.h>
17600int
17601main ()
17602{
17603prfpregset_t avar
17604  ;
17605  return 0;
17606}
17607_ACEOF
17608rm -f conftest.$ac_objext
17609if { (ac_try="$ac_compile"
17610case "(($ac_try" in
17611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612  *) ac_try_echo=$ac_try;;
17613esac
17614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615  (eval "$ac_compile") 2>conftest.er1
17616  ac_status=$?
17617  grep -v '^ *+' conftest.er1 >conftest.err
17618  rm -f conftest.er1
17619  cat conftest.err >&5
17620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621  (exit $ac_status); } &&
17622	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17623  { (case "(($ac_try" in
17624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625  *) ac_try_echo=$ac_try;;
17626esac
17627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628  (eval "$ac_try") 2>&5
17629  ac_status=$?
17630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631  (exit $ac_status); }; } &&
17632	 { ac_try='test -s conftest.$ac_objext'
17633  { (case "(($ac_try" in
17634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635  *) ac_try_echo=$ac_try;;
17636esac
17637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638  (eval "$ac_try") 2>&5
17639  ac_status=$?
17640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641  (exit $ac_status); }; }; then
17642  bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17643else
17644  echo "$as_me: failed program was:" >&5
17645sed 's/^/| /' conftest.$ac_ext >&5
17646
17647	bfd_cv_have_sys_procfs_type_prfpregset_t=no
17648
17649fi
17650
17651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17652fi
17653
17654 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17655
17656cat >>confdefs.h <<\_ACEOF
17657#define HAVE_PRFPREGSET_T 1
17658_ACEOF
17659
17660 fi
17661 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17662echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
17663
17664  { echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17665echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6; }
17666 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17667  echo $ECHO_N "(cached) $ECHO_C" >&6
17668else
17669  cat >conftest.$ac_ext <<_ACEOF
17670/* confdefs.h.  */
17671_ACEOF
17672cat confdefs.h >>conftest.$ac_ext
17673cat >>conftest.$ac_ext <<_ACEOF
17674/* end confdefs.h.  */
17675
17676#define _SYSCALL32
17677#include <sys/procfs.h>
17678int
17679main ()
17680{
17681prgregset32_t avar
17682  ;
17683  return 0;
17684}
17685_ACEOF
17686rm -f conftest.$ac_objext
17687if { (ac_try="$ac_compile"
17688case "(($ac_try" in
17689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690  *) ac_try_echo=$ac_try;;
17691esac
17692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693  (eval "$ac_compile") 2>conftest.er1
17694  ac_status=$?
17695  grep -v '^ *+' conftest.er1 >conftest.err
17696  rm -f conftest.er1
17697  cat conftest.err >&5
17698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699  (exit $ac_status); } &&
17700	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17701  { (case "(($ac_try" in
17702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703  *) ac_try_echo=$ac_try;;
17704esac
17705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706  (eval "$ac_try") 2>&5
17707  ac_status=$?
17708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709  (exit $ac_status); }; } &&
17710	 { ac_try='test -s conftest.$ac_objext'
17711  { (case "(($ac_try" in
17712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713  *) ac_try_echo=$ac_try;;
17714esac
17715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716  (eval "$ac_try") 2>&5
17717  ac_status=$?
17718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719  (exit $ac_status); }; }; then
17720  bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17721else
17722  echo "$as_me: failed program was:" >&5
17723sed 's/^/| /' conftest.$ac_ext >&5
17724
17725	bfd_cv_have_sys_procfs_type_prgregset32_t=no
17726
17727fi
17728
17729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17730fi
17731
17732 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17733
17734cat >>confdefs.h <<\_ACEOF
17735#define HAVE_PRGREGSET32_T 1
17736_ACEOF
17737
17738 fi
17739 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17740echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
17741
17742  { echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17743echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6; }
17744 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17745  echo $ECHO_N "(cached) $ECHO_C" >&6
17746else
17747  cat >conftest.$ac_ext <<_ACEOF
17748/* confdefs.h.  */
17749_ACEOF
17750cat confdefs.h >>conftest.$ac_ext
17751cat >>conftest.$ac_ext <<_ACEOF
17752/* end confdefs.h.  */
17753
17754#define _SYSCALL32
17755#include <sys/procfs.h>
17756int
17757main ()
17758{
17759prfpregset32_t avar
17760  ;
17761  return 0;
17762}
17763_ACEOF
17764rm -f conftest.$ac_objext
17765if { (ac_try="$ac_compile"
17766case "(($ac_try" in
17767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768  *) ac_try_echo=$ac_try;;
17769esac
17770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771  (eval "$ac_compile") 2>conftest.er1
17772  ac_status=$?
17773  grep -v '^ *+' conftest.er1 >conftest.err
17774  rm -f conftest.er1
17775  cat conftest.err >&5
17776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777  (exit $ac_status); } &&
17778	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17779  { (case "(($ac_try" in
17780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781  *) ac_try_echo=$ac_try;;
17782esac
17783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784  (eval "$ac_try") 2>&5
17785  ac_status=$?
17786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787  (exit $ac_status); }; } &&
17788	 { ac_try='test -s conftest.$ac_objext'
17789  { (case "(($ac_try" in
17790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791  *) ac_try_echo=$ac_try;;
17792esac
17793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794  (eval "$ac_try") 2>&5
17795  ac_status=$?
17796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797  (exit $ac_status); }; }; then
17798  bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17799else
17800  echo "$as_me: failed program was:" >&5
17801sed 's/^/| /' conftest.$ac_ext >&5
17802
17803	bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17804
17805fi
17806
17807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808fi
17809
17810 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17811
17812cat >>confdefs.h <<\_ACEOF
17813#define HAVE_PRFPREGSET32_T 1
17814_ACEOF
17815
17816 fi
17817 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17818echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
17819
17820  { echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17821echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6; }
17822 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17823  echo $ECHO_N "(cached) $ECHO_C" >&6
17824else
17825  cat >conftest.$ac_ext <<_ACEOF
17826/* confdefs.h.  */
17827_ACEOF
17828cat confdefs.h >>conftest.$ac_ext
17829cat >>conftest.$ac_ext <<_ACEOF
17830/* end confdefs.h.  */
17831
17832#define _SYSCALL32
17833#include <sys/procfs.h>
17834int
17835main ()
17836{
17837lwpid_t avar
17838  ;
17839  return 0;
17840}
17841_ACEOF
17842rm -f conftest.$ac_objext
17843if { (ac_try="$ac_compile"
17844case "(($ac_try" in
17845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846  *) ac_try_echo=$ac_try;;
17847esac
17848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849  (eval "$ac_compile") 2>conftest.er1
17850  ac_status=$?
17851  grep -v '^ *+' conftest.er1 >conftest.err
17852  rm -f conftest.er1
17853  cat conftest.err >&5
17854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855  (exit $ac_status); } &&
17856	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17857  { (case "(($ac_try" in
17858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859  *) ac_try_echo=$ac_try;;
17860esac
17861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862  (eval "$ac_try") 2>&5
17863  ac_status=$?
17864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865  (exit $ac_status); }; } &&
17866	 { ac_try='test -s conftest.$ac_objext'
17867  { (case "(($ac_try" in
17868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869  *) ac_try_echo=$ac_try;;
17870esac
17871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872  (eval "$ac_try") 2>&5
17873  ac_status=$?
17874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875  (exit $ac_status); }; }; then
17876  bfd_cv_have_sys_procfs_type_lwpid_t=yes
17877else
17878  echo "$as_me: failed program was:" >&5
17879sed 's/^/| /' conftest.$ac_ext >&5
17880
17881	bfd_cv_have_sys_procfs_type_lwpid_t=no
17882
17883fi
17884
17885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17886fi
17887
17888 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17889
17890cat >>confdefs.h <<\_ACEOF
17891#define HAVE_LWPID_T 1
17892_ACEOF
17893
17894 fi
17895 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17896echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
17897
17898  { echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17899echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6; }
17900 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17901  echo $ECHO_N "(cached) $ECHO_C" >&6
17902else
17903  cat >conftest.$ac_ext <<_ACEOF
17904/* confdefs.h.  */
17905_ACEOF
17906cat confdefs.h >>conftest.$ac_ext
17907cat >>conftest.$ac_ext <<_ACEOF
17908/* end confdefs.h.  */
17909
17910#define _SYSCALL32
17911#include <sys/procfs.h>
17912int
17913main ()
17914{
17915psaddr_t avar
17916  ;
17917  return 0;
17918}
17919_ACEOF
17920rm -f conftest.$ac_objext
17921if { (ac_try="$ac_compile"
17922case "(($ac_try" in
17923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924  *) ac_try_echo=$ac_try;;
17925esac
17926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927  (eval "$ac_compile") 2>conftest.er1
17928  ac_status=$?
17929  grep -v '^ *+' conftest.er1 >conftest.err
17930  rm -f conftest.er1
17931  cat conftest.err >&5
17932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933  (exit $ac_status); } &&
17934	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17935  { (case "(($ac_try" in
17936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937  *) ac_try_echo=$ac_try;;
17938esac
17939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940  (eval "$ac_try") 2>&5
17941  ac_status=$?
17942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943  (exit $ac_status); }; } &&
17944	 { ac_try='test -s conftest.$ac_objext'
17945  { (case "(($ac_try" in
17946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947  *) ac_try_echo=$ac_try;;
17948esac
17949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950  (eval "$ac_try") 2>&5
17951  ac_status=$?
17952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953  (exit $ac_status); }; }; then
17954  bfd_cv_have_sys_procfs_type_psaddr_t=yes
17955else
17956  echo "$as_me: failed program was:" >&5
17957sed 's/^/| /' conftest.$ac_ext >&5
17958
17959	bfd_cv_have_sys_procfs_type_psaddr_t=no
17960
17961fi
17962
17963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17964fi
17965
17966 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
17967
17968cat >>confdefs.h <<\_ACEOF
17969#define HAVE_PSADDR_T 1
17970_ACEOF
17971
17972 fi
17973 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
17974echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
17975
17976  { echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
17977echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6; }
17978 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
17979  echo $ECHO_N "(cached) $ECHO_C" >&6
17980else
17981  cat >conftest.$ac_ext <<_ACEOF
17982/* confdefs.h.  */
17983_ACEOF
17984cat confdefs.h >>conftest.$ac_ext
17985cat >>conftest.$ac_ext <<_ACEOF
17986/* end confdefs.h.  */
17987
17988#define _SYSCALL32
17989#include <sys/procfs.h>
17990int
17991main ()
17992{
17993prsysent_t avar
17994  ;
17995  return 0;
17996}
17997_ACEOF
17998rm -f conftest.$ac_objext
17999if { (ac_try="$ac_compile"
18000case "(($ac_try" in
18001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002  *) ac_try_echo=$ac_try;;
18003esac
18004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005  (eval "$ac_compile") 2>conftest.er1
18006  ac_status=$?
18007  grep -v '^ *+' conftest.er1 >conftest.err
18008  rm -f conftest.er1
18009  cat conftest.err >&5
18010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011  (exit $ac_status); } &&
18012	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18013  { (case "(($ac_try" in
18014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015  *) ac_try_echo=$ac_try;;
18016esac
18017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018  (eval "$ac_try") 2>&5
18019  ac_status=$?
18020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021  (exit $ac_status); }; } &&
18022	 { ac_try='test -s conftest.$ac_objext'
18023  { (case "(($ac_try" in
18024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025  *) ac_try_echo=$ac_try;;
18026esac
18027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028  (eval "$ac_try") 2>&5
18029  ac_status=$?
18030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031  (exit $ac_status); }; }; then
18032  bfd_cv_have_sys_procfs_type_prsysent_t=yes
18033else
18034  echo "$as_me: failed program was:" >&5
18035sed 's/^/| /' conftest.$ac_ext >&5
18036
18037	bfd_cv_have_sys_procfs_type_prsysent_t=no
18038
18039fi
18040
18041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042fi
18043
18044 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18045
18046cat >>confdefs.h <<\_ACEOF
18047#define HAVE_PRSYSENT_T 1
18048_ACEOF
18049
18050 fi
18051 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18052echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
18053
18054  { echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18055echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6; }
18056 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18057  echo $ECHO_N "(cached) $ECHO_C" >&6
18058else
18059  cat >conftest.$ac_ext <<_ACEOF
18060/* confdefs.h.  */
18061_ACEOF
18062cat confdefs.h >>conftest.$ac_ext
18063cat >>conftest.$ac_ext <<_ACEOF
18064/* end confdefs.h.  */
18065
18066#define _SYSCALL32
18067#include <sys/procfs.h>
18068int
18069main ()
18070{
18071pr_sigset_t avar
18072  ;
18073  return 0;
18074}
18075_ACEOF
18076rm -f conftest.$ac_objext
18077if { (ac_try="$ac_compile"
18078case "(($ac_try" in
18079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080  *) ac_try_echo=$ac_try;;
18081esac
18082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083  (eval "$ac_compile") 2>conftest.er1
18084  ac_status=$?
18085  grep -v '^ *+' conftest.er1 >conftest.err
18086  rm -f conftest.er1
18087  cat conftest.err >&5
18088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089  (exit $ac_status); } &&
18090	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18091  { (case "(($ac_try" in
18092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093  *) ac_try_echo=$ac_try;;
18094esac
18095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096  (eval "$ac_try") 2>&5
18097  ac_status=$?
18098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099  (exit $ac_status); }; } &&
18100	 { ac_try='test -s conftest.$ac_objext'
18101  { (case "(($ac_try" in
18102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103  *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106  (eval "$ac_try") 2>&5
18107  ac_status=$?
18108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109  (exit $ac_status); }; }; then
18110  bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18111else
18112  echo "$as_me: failed program was:" >&5
18113sed 's/^/| /' conftest.$ac_ext >&5
18114
18115	bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18116
18117fi
18118
18119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18120fi
18121
18122 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18123
18124cat >>confdefs.h <<\_ACEOF
18125#define HAVE_PR_SIGSET_T 1
18126_ACEOF
18127
18128 fi
18129 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18130echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
18131
18132  { echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18133echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6; }
18134 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18135  echo $ECHO_N "(cached) $ECHO_C" >&6
18136else
18137  cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h.  */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h.  */
18143
18144#define _SYSCALL32
18145#include <sys/procfs.h>
18146int
18147main ()
18148{
18149pr_sigaction64_t avar
18150  ;
18151  return 0;
18152}
18153_ACEOF
18154rm -f conftest.$ac_objext
18155if { (ac_try="$ac_compile"
18156case "(($ac_try" in
18157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158  *) ac_try_echo=$ac_try;;
18159esac
18160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161  (eval "$ac_compile") 2>conftest.er1
18162  ac_status=$?
18163  grep -v '^ *+' conftest.er1 >conftest.err
18164  rm -f conftest.er1
18165  cat conftest.err >&5
18166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167  (exit $ac_status); } &&
18168	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18169  { (case "(($ac_try" in
18170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171  *) ac_try_echo=$ac_try;;
18172esac
18173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174  (eval "$ac_try") 2>&5
18175  ac_status=$?
18176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177  (exit $ac_status); }; } &&
18178	 { ac_try='test -s conftest.$ac_objext'
18179  { (case "(($ac_try" in
18180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181  *) ac_try_echo=$ac_try;;
18182esac
18183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184  (eval "$ac_try") 2>&5
18185  ac_status=$?
18186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187  (exit $ac_status); }; }; then
18188  bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18189else
18190  echo "$as_me: failed program was:" >&5
18191sed 's/^/| /' conftest.$ac_ext >&5
18192
18193	bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18194
18195fi
18196
18197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198fi
18199
18200 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18201
18202cat >>confdefs.h <<\_ACEOF
18203#define HAVE_PR_SIGACTION64_T 1
18204_ACEOF
18205
18206 fi
18207 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18208echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
18209
18210  { echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18211echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6; }
18212 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18213  echo $ECHO_N "(cached) $ECHO_C" >&6
18214else
18215  cat >conftest.$ac_ext <<_ACEOF
18216/* confdefs.h.  */
18217_ACEOF
18218cat confdefs.h >>conftest.$ac_ext
18219cat >>conftest.$ac_ext <<_ACEOF
18220/* end confdefs.h.  */
18221
18222#define _SYSCALL32
18223#include <sys/procfs.h>
18224int
18225main ()
18226{
18227pr_siginfo64_t avar
18228  ;
18229  return 0;
18230}
18231_ACEOF
18232rm -f conftest.$ac_objext
18233if { (ac_try="$ac_compile"
18234case "(($ac_try" in
18235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236  *) ac_try_echo=$ac_try;;
18237esac
18238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239  (eval "$ac_compile") 2>conftest.er1
18240  ac_status=$?
18241  grep -v '^ *+' conftest.er1 >conftest.err
18242  rm -f conftest.er1
18243  cat conftest.err >&5
18244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245  (exit $ac_status); } &&
18246	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18247  { (case "(($ac_try" in
18248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249  *) ac_try_echo=$ac_try;;
18250esac
18251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252  (eval "$ac_try") 2>&5
18253  ac_status=$?
18254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255  (exit $ac_status); }; } &&
18256	 { ac_try='test -s conftest.$ac_objext'
18257  { (case "(($ac_try" in
18258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259  *) ac_try_echo=$ac_try;;
18260esac
18261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262  (eval "$ac_try") 2>&5
18263  ac_status=$?
18264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265  (exit $ac_status); }; }; then
18266  bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18267else
18268  echo "$as_me: failed program was:" >&5
18269sed 's/^/| /' conftest.$ac_ext >&5
18270
18271	bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18272
18273fi
18274
18275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18276fi
18277
18278 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18279
18280cat >>confdefs.h <<\_ACEOF
18281#define HAVE_PR_SIGINFO64_T 1
18282_ACEOF
18283
18284 fi
18285 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18286echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
18287
18288
18289
18290
18291
18292  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18293    { echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18294echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6; }
18295    if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18296  echo $ECHO_N "(cached) $ECHO_C" >&6
18297else
18298  if test "$cross_compiling" = yes; then
18299  gdb_cv_prfpregset_t_broken=yes
18300else
18301  cat >conftest.$ac_ext <<_ACEOF
18302/* confdefs.h.  */
18303_ACEOF
18304cat confdefs.h >>conftest.$ac_ext
18305cat >>conftest.$ac_ext <<_ACEOF
18306/* end confdefs.h.  */
18307#include <sys/procfs.h>
18308       int main ()
18309       {
18310         if (sizeof (prfpregset_t) == sizeof (void *))
18311           return 1;
18312         return 0;
18313       }
18314_ACEOF
18315rm -f conftest$ac_exeext
18316if { (ac_try="$ac_link"
18317case "(($ac_try" in
18318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319  *) ac_try_echo=$ac_try;;
18320esac
18321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322  (eval "$ac_link") 2>&5
18323  ac_status=$?
18324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18326  { (case "(($ac_try" in
18327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328  *) ac_try_echo=$ac_try;;
18329esac
18330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331  (eval "$ac_try") 2>&5
18332  ac_status=$?
18333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334  (exit $ac_status); }; }; then
18335  gdb_cv_prfpregset_t_broken=no
18336else
18337  echo "$as_me: program exited with status $ac_status" >&5
18338echo "$as_me: failed program was:" >&5
18339sed 's/^/| /' conftest.$ac_ext >&5
18340
18341( exit $ac_status )
18342gdb_cv_prfpregset_t_broken=yes
18343fi
18344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18345fi
18346
18347
18348fi
18349
18350    { echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18351echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6; }
18352    if test $gdb_cv_prfpregset_t_broken = yes; then
18353
18354cat >>confdefs.h <<\_ACEOF
18355#define PRFPREGSET_T_BROKEN 1
18356_ACEOF
18357
18358    fi
18359  fi
18360
18361
18362  { echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18363echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6; }
18364  if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18365  echo $ECHO_N "(cached) $ECHO_C" >&6
18366else
18367  cat >conftest.$ac_ext <<_ACEOF
18368/* confdefs.h.  */
18369_ACEOF
18370cat confdefs.h >>conftest.$ac_ext
18371cat >>conftest.$ac_ext <<_ACEOF
18372/* end confdefs.h.  */
18373#include <unistd.h>
18374#include <sys/types.h>
18375#include <sys/procfs.h>
18376
18377int
18378main ()
18379{
18380
18381    int dummy;;
18382    dummy = ioctl(0, PIOCSET, &dummy);
18383
18384  ;
18385  return 0;
18386}
18387_ACEOF
18388rm -f conftest.$ac_objext
18389if { (ac_try="$ac_compile"
18390case "(($ac_try" in
18391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392  *) ac_try_echo=$ac_try;;
18393esac
18394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395  (eval "$ac_compile") 2>conftest.er1
18396  ac_status=$?
18397  grep -v '^ *+' conftest.er1 >conftest.err
18398  rm -f conftest.er1
18399  cat conftest.err >&5
18400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401  (exit $ac_status); } &&
18402	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18403  { (case "(($ac_try" in
18404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405  *) ac_try_echo=$ac_try;;
18406esac
18407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408  (eval "$ac_try") 2>&5
18409  ac_status=$?
18410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411  (exit $ac_status); }; } &&
18412	 { ac_try='test -s conftest.$ac_objext'
18413  { (case "(($ac_try" in
18414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415  *) ac_try_echo=$ac_try;;
18416esac
18417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418  (eval "$ac_try") 2>&5
18419  ac_status=$?
18420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421  (exit $ac_status); }; }; then
18422  gdb_cv_have_procfs_piocset=yes
18423else
18424  echo "$as_me: failed program was:" >&5
18425sed 's/^/| /' conftest.$ac_ext >&5
18426
18427	gdb_cv_have_procfs_piocset=no
18428fi
18429
18430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18431fi
18432
18433  { echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18434echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6; }
18435  if test $gdb_cv_have_procfs_piocset = yes; then
18436
18437cat >>confdefs.h <<\_ACEOF
18438#define HAVE_PROCFS_PIOCSET 1
18439_ACEOF
18440
18441  fi
18442fi
18443
18444if test ${host} = ${target} ; then
18445
18446  { echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18447echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6; }
18448  if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18449  echo $ECHO_N "(cached) $ECHO_C" >&6
18450else
18451  cat >conftest.$ac_ext <<_ACEOF
18452/* confdefs.h.  */
18453_ACEOF
18454cat confdefs.h >>conftest.$ac_ext
18455cat >>conftest.$ac_ext <<_ACEOF
18456/* end confdefs.h.  */
18457#include <link.h>
18458int
18459main ()
18460{
18461struct link_map lm; (void) lm.l_addr;
18462  ;
18463  return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext
18467if { (ac_try="$ac_compile"
18468case "(($ac_try" in
18469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470  *) ac_try_echo=$ac_try;;
18471esac
18472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473  (eval "$ac_compile") 2>conftest.er1
18474  ac_status=$?
18475  grep -v '^ *+' conftest.er1 >conftest.err
18476  rm -f conftest.er1
18477  cat conftest.err >&5
18478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479  (exit $ac_status); } &&
18480	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18481  { (case "(($ac_try" in
18482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483  *) ac_try_echo=$ac_try;;
18484esac
18485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486  (eval "$ac_try") 2>&5
18487  ac_status=$?
18488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489  (exit $ac_status); }; } &&
18490	 { ac_try='test -s conftest.$ac_objext'
18491  { (case "(($ac_try" in
18492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18493  *) ac_try_echo=$ac_try;;
18494esac
18495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18496  (eval "$ac_try") 2>&5
18497  ac_status=$?
18498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499  (exit $ac_status); }; }; then
18500  gdb_cv_have_struct_link_map_with_l_members=yes
18501else
18502  echo "$as_me: failed program was:" >&5
18503sed 's/^/| /' conftest.$ac_ext >&5
18504
18505	gdb_cv_have_struct_link_map_with_l_members=no
18506fi
18507
18508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18509fi
18510
18511  { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18512echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6; }
18513  if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18514
18515cat >>confdefs.h <<\_ACEOF
18516#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18517_ACEOF
18518
18519  fi
18520
18521
18522  { echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18523echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6; }
18524  if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18525  echo $ECHO_N "(cached) $ECHO_C" >&6
18526else
18527  cat >conftest.$ac_ext <<_ACEOF
18528/* confdefs.h.  */
18529_ACEOF
18530cat confdefs.h >>conftest.$ac_ext
18531cat >>conftest.$ac_ext <<_ACEOF
18532/* end confdefs.h.  */
18533#include <sys/types.h>
18534#include <link.h>
18535int
18536main ()
18537{
18538struct link_map lm; (void) lm.lm_addr;
18539  ;
18540  return 0;
18541}
18542_ACEOF
18543rm -f conftest.$ac_objext
18544if { (ac_try="$ac_compile"
18545case "(($ac_try" in
18546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547  *) ac_try_echo=$ac_try;;
18548esac
18549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550  (eval "$ac_compile") 2>conftest.er1
18551  ac_status=$?
18552  grep -v '^ *+' conftest.er1 >conftest.err
18553  rm -f conftest.er1
18554  cat conftest.err >&5
18555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556  (exit $ac_status); } &&
18557	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18558  { (case "(($ac_try" in
18559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560  *) ac_try_echo=$ac_try;;
18561esac
18562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563  (eval "$ac_try") 2>&5
18564  ac_status=$?
18565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566  (exit $ac_status); }; } &&
18567	 { ac_try='test -s conftest.$ac_objext'
18568  { (case "(($ac_try" in
18569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570  *) ac_try_echo=$ac_try;;
18571esac
18572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573  (eval "$ac_try") 2>&5
18574  ac_status=$?
18575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576  (exit $ac_status); }; }; then
18577  gdb_cv_have_struct_link_map_with_lm_members=yes
18578else
18579  echo "$as_me: failed program was:" >&5
18580sed 's/^/| /' conftest.$ac_ext >&5
18581
18582	gdb_cv_have_struct_link_map_with_lm_members=no
18583fi
18584
18585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18586fi
18587
18588  { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18589echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
18590  if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18591
18592cat >>confdefs.h <<\_ACEOF
18593#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18594_ACEOF
18595
18596  fi
18597
18598
18599  { echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18600echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6; }
18601  if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18602  echo $ECHO_N "(cached) $ECHO_C" >&6
18603else
18604  cat >conftest.$ac_ext <<_ACEOF
18605/* confdefs.h.  */
18606_ACEOF
18607cat confdefs.h >>conftest.$ac_ext
18608cat >>conftest.$ac_ext <<_ACEOF
18609/* end confdefs.h.  */
18610#include <sys/types.h>
18611#ifdef HAVE_NLIST_H
18612#include <nlist.h>
18613#endif
18614#include <link.h>
18615int
18616main ()
18617{
18618struct so_map lm; (void) lm.som_addr;
18619  ;
18620  return 0;
18621}
18622_ACEOF
18623rm -f conftest.$ac_objext
18624if { (ac_try="$ac_compile"
18625case "(($ac_try" in
18626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627  *) ac_try_echo=$ac_try;;
18628esac
18629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630  (eval "$ac_compile") 2>conftest.er1
18631  ac_status=$?
18632  grep -v '^ *+' conftest.er1 >conftest.err
18633  rm -f conftest.er1
18634  cat conftest.err >&5
18635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636  (exit $ac_status); } &&
18637	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18638  { (case "(($ac_try" in
18639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640  *) ac_try_echo=$ac_try;;
18641esac
18642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643  (eval "$ac_try") 2>&5
18644  ac_status=$?
18645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646  (exit $ac_status); }; } &&
18647	 { ac_try='test -s conftest.$ac_objext'
18648  { (case "(($ac_try" in
18649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650  *) ac_try_echo=$ac_try;;
18651esac
18652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653  (eval "$ac_try") 2>&5
18654  ac_status=$?
18655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656  (exit $ac_status); }; }; then
18657  gdb_cv_have_struct_so_map_with_som_members=yes
18658else
18659  echo "$as_me: failed program was:" >&5
18660sed 's/^/| /' conftest.$ac_ext >&5
18661
18662	gdb_cv_have_struct_so_map_with_som_members=no
18663fi
18664
18665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18666fi
18667
18668  { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18669echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6; }
18670  if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18671
18672cat >>confdefs.h <<\_ACEOF
18673#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18674_ACEOF
18675
18676  fi
18677
18678
18679  { echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18680echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6; }
18681  if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18682  echo $ECHO_N "(cached) $ECHO_C" >&6
18683else
18684  cat >conftest.$ac_ext <<_ACEOF
18685/* confdefs.h.  */
18686_ACEOF
18687cat confdefs.h >>conftest.$ac_ext
18688cat >>conftest.$ac_ext <<_ACEOF
18689/* end confdefs.h.  */
18690#define _SYSCALL32
18691#include <sys/link.h>
18692int
18693main ()
18694{
18695struct link_map32 l;
18696  ;
18697  return 0;
18698}
18699_ACEOF
18700rm -f conftest.$ac_objext
18701if { (ac_try="$ac_compile"
18702case "(($ac_try" in
18703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704  *) ac_try_echo=$ac_try;;
18705esac
18706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707  (eval "$ac_compile") 2>conftest.er1
18708  ac_status=$?
18709  grep -v '^ *+' conftest.er1 >conftest.err
18710  rm -f conftest.er1
18711  cat conftest.err >&5
18712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713  (exit $ac_status); } &&
18714	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18715  { (case "(($ac_try" in
18716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717  *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720  (eval "$ac_try") 2>&5
18721  ac_status=$?
18722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723  (exit $ac_status); }; } &&
18724	 { ac_try='test -s conftest.$ac_objext'
18725  { (case "(($ac_try" in
18726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727  *) ac_try_echo=$ac_try;;
18728esac
18729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730  (eval "$ac_try") 2>&5
18731  ac_status=$?
18732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733  (exit $ac_status); }; }; then
18734  gdb_cv_have_struct_link_map32=yes
18735else
18736  echo "$as_me: failed program was:" >&5
18737sed 's/^/| /' conftest.$ac_ext >&5
18738
18739	gdb_cv_have_struct_link_map32=no
18740fi
18741
18742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743fi
18744
18745  { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18746echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6; }
18747  if test $gdb_cv_have_struct_link_map32 = yes; then
18748
18749cat >>confdefs.h <<\_ACEOF
18750#define HAVE_STRUCT_LINK_MAP32 1
18751_ACEOF
18752
18753
18754cat >>confdefs.h <<\_ACEOF
18755#define _SYSCALL32 1
18756_ACEOF
18757
18758  fi
18759fi
18760
18761# Check if the compiler supports the `long long' type.
18762
18763{ echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18764echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6; }
18765if test "${gdb_cv_c_long_long+set}" = set; then
18766  echo $ECHO_N "(cached) $ECHO_C" >&6
18767else
18768  cat >conftest.$ac_ext <<_ACEOF
18769/* confdefs.h.  */
18770_ACEOF
18771cat confdefs.h >>conftest.$ac_ext
18772cat >>conftest.$ac_ext <<_ACEOF
18773/* end confdefs.h.  */
18774extern long long foo;
18775int
18776main ()
18777{
18778switch (foo & 2) { case 0: return 1; }
18779  ;
18780  return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext
18784if { (ac_try="$ac_compile"
18785case "(($ac_try" in
18786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787  *) ac_try_echo=$ac_try;;
18788esac
18789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790  (eval "$ac_compile") 2>conftest.er1
18791  ac_status=$?
18792  grep -v '^ *+' conftest.er1 >conftest.err
18793  rm -f conftest.er1
18794  cat conftest.err >&5
18795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796  (exit $ac_status); } &&
18797	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18798  { (case "(($ac_try" in
18799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800  *) ac_try_echo=$ac_try;;
18801esac
18802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803  (eval "$ac_try") 2>&5
18804  ac_status=$?
18805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806  (exit $ac_status); }; } &&
18807	 { ac_try='test -s conftest.$ac_objext'
18808  { (case "(($ac_try" in
18809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810  *) ac_try_echo=$ac_try;;
18811esac
18812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813  (eval "$ac_try") 2>&5
18814  ac_status=$?
18815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816  (exit $ac_status); }; }; then
18817  gdb_cv_c_long_long=yes
18818else
18819  echo "$as_me: failed program was:" >&5
18820sed 's/^/| /' conftest.$ac_ext >&5
18821
18822	gdb_cv_c_long_long=no
18823fi
18824
18825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18826fi
18827{ echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18828echo "${ECHO_T}$gdb_cv_c_long_long" >&6; }
18829if test $gdb_cv_c_long_long = yes; then
18830
18831cat >>confdefs.h <<\_ACEOF
18832#define CC_HAS_LONG_LONG 1
18833_ACEOF
18834
18835fi
18836
18837# Check if the compiler and runtime support printing long longs.
18838
18839{ echo "$as_me:$LINENO: checking for long long support in printf" >&5
18840echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6; }
18841if test "${gdb_cv_printf_has_long_long+set}" = set; then
18842  echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
18844  if test "$cross_compiling" = yes; then
18845  gdb_cv_printf_has_long_long=no
18846else
18847  cat >conftest.$ac_ext <<_ACEOF
18848/* confdefs.h.  */
18849_ACEOF
18850cat confdefs.h >>conftest.$ac_ext
18851cat >>conftest.$ac_ext <<_ACEOF
18852/* end confdefs.h.  */
18853$ac_includes_default
18854int
18855main ()
18856{
18857char buf[32];
18858  long long l = 0;
18859  l = (l << 16) + 0x0123;
18860  l = (l << 16) + 0x4567;
18861  l = (l << 16) + 0x89ab;
18862  l = (l << 16) + 0xcdef;
18863  sprintf (buf, "0x%016llx", l);
18864  return (strcmp ("0x0123456789abcdef", buf));
18865  ;
18866  return 0;
18867}
18868_ACEOF
18869rm -f conftest$ac_exeext
18870if { (ac_try="$ac_link"
18871case "(($ac_try" in
18872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873  *) ac_try_echo=$ac_try;;
18874esac
18875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876  (eval "$ac_link") 2>&5
18877  ac_status=$?
18878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18880  { (case "(($ac_try" in
18881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882  *) ac_try_echo=$ac_try;;
18883esac
18884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885  (eval "$ac_try") 2>&5
18886  ac_status=$?
18887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888  (exit $ac_status); }; }; then
18889  gdb_cv_printf_has_long_long=yes
18890else
18891  echo "$as_me: program exited with status $ac_status" >&5
18892echo "$as_me: failed program was:" >&5
18893sed 's/^/| /' conftest.$ac_ext >&5
18894
18895( exit $ac_status )
18896gdb_cv_printf_has_long_long=no
18897fi
18898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18899fi
18900
18901
18902fi
18903{ echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18904echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6; }
18905if test $gdb_cv_printf_has_long_long = yes; then
18906
18907cat >>confdefs.h <<\_ACEOF
18908#define PRINTF_HAS_LONG_LONG 1
18909_ACEOF
18910
18911fi
18912
18913# Check if the compiler supports the `long double' type.  We can't use
18914# AC_C_LONG_DOUBLE because that one does additional checks on the
18915# constants defined in <float.h> that fail on some systems,
18916# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18917
18918{ echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18919echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6; }
18920if test "${gdb_cv_c_long_double+set}" = set; then
18921  echo $ECHO_N "(cached) $ECHO_C" >&6
18922else
18923  cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h.  */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h.  */
18929long double foo;
18930_ACEOF
18931rm -f conftest.$ac_objext
18932if { (ac_try="$ac_compile"
18933case "(($ac_try" in
18934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935  *) ac_try_echo=$ac_try;;
18936esac
18937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938  (eval "$ac_compile") 2>conftest.er1
18939  ac_status=$?
18940  grep -v '^ *+' conftest.er1 >conftest.err
18941  rm -f conftest.er1
18942  cat conftest.err >&5
18943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944  (exit $ac_status); } &&
18945	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18946  { (case "(($ac_try" in
18947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948  *) ac_try_echo=$ac_try;;
18949esac
18950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951  (eval "$ac_try") 2>&5
18952  ac_status=$?
18953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954  (exit $ac_status); }; } &&
18955	 { ac_try='test -s conftest.$ac_objext'
18956  { (case "(($ac_try" in
18957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958  *) ac_try_echo=$ac_try;;
18959esac
18960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961  (eval "$ac_try") 2>&5
18962  ac_status=$?
18963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964  (exit $ac_status); }; }; then
18965  gdb_cv_c_long_double=yes
18966else
18967  echo "$as_me: failed program was:" >&5
18968sed 's/^/| /' conftest.$ac_ext >&5
18969
18970	gdb_cv_c_long_double=no
18971fi
18972
18973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18974fi
18975{ echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18976echo "${ECHO_T}$gdb_cv_c_long_double" >&6; }
18977if test $gdb_cv_c_long_double = yes; then
18978
18979cat >>confdefs.h <<\_ACEOF
18980#define HAVE_LONG_DOUBLE 1
18981_ACEOF
18982
18983fi
18984
18985# Check if the compiler and runtime support printing long doubles.
18986
18987{ echo "$as_me:$LINENO: checking for long double support in printf" >&5
18988echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6; }
18989if test "${gdb_cv_printf_has_long_double+set}" = set; then
18990  echo $ECHO_N "(cached) $ECHO_C" >&6
18991else
18992  if test "$cross_compiling" = yes; then
18993  gdb_cv_printf_has_long_double=no
18994else
18995  cat >conftest.$ac_ext <<_ACEOF
18996/* confdefs.h.  */
18997_ACEOF
18998cat confdefs.h >>conftest.$ac_ext
18999cat >>conftest.$ac_ext <<_ACEOF
19000/* end confdefs.h.  */
19001$ac_includes_default
19002int
19003main ()
19004{
19005char buf[16];
19006  long double f = 3.141592653;
19007  sprintf (buf, "%Lg", f);
19008  return (strncmp ("3.14159", buf, 7));
19009  ;
19010  return 0;
19011}
19012_ACEOF
19013rm -f conftest$ac_exeext
19014if { (ac_try="$ac_link"
19015case "(($ac_try" in
19016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017  *) ac_try_echo=$ac_try;;
19018esac
19019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020  (eval "$ac_link") 2>&5
19021  ac_status=$?
19022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19024  { (case "(($ac_try" in
19025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026  *) ac_try_echo=$ac_try;;
19027esac
19028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029  (eval "$ac_try") 2>&5
19030  ac_status=$?
19031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032  (exit $ac_status); }; }; then
19033  gdb_cv_printf_has_long_double=yes
19034else
19035  echo "$as_me: program exited with status $ac_status" >&5
19036echo "$as_me: failed program was:" >&5
19037sed 's/^/| /' conftest.$ac_ext >&5
19038
19039( exit $ac_status )
19040gdb_cv_printf_has_long_double=no
19041fi
19042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19043fi
19044
19045
19046fi
19047{ echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19048echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6; }
19049if test $gdb_cv_printf_has_long_double = yes; then
19050
19051cat >>confdefs.h <<\_ACEOF
19052#define PRINTF_HAS_LONG_DOUBLE 1
19053_ACEOF
19054
19055fi
19056
19057# Check if the compiler and runtime support scanning long doubles.
19058
19059{ echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19060echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6; }
19061if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19062  echo $ECHO_N "(cached) $ECHO_C" >&6
19063else
19064  if test "$cross_compiling" = yes; then
19065  gdb_cv_scanf_has_long_double=no
19066else
19067  cat >conftest.$ac_ext <<_ACEOF
19068/* confdefs.h.  */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h.  */
19073#include <stdio.h>
19074int
19075main ()
19076{
19077char *buf = "3.141592653";
19078  long double f = 0;
19079  sscanf (buf, "%Lg", &f);
19080  return !(f > 3.14159 && f < 3.14160);
19081  ;
19082  return 0;
19083}
19084_ACEOF
19085rm -f conftest$ac_exeext
19086if { (ac_try="$ac_link"
19087case "(($ac_try" in
19088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089  *) ac_try_echo=$ac_try;;
19090esac
19091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092  (eval "$ac_link") 2>&5
19093  ac_status=$?
19094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19096  { (case "(($ac_try" in
19097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098  *) ac_try_echo=$ac_try;;
19099esac
19100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101  (eval "$ac_try") 2>&5
19102  ac_status=$?
19103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104  (exit $ac_status); }; }; then
19105  gdb_cv_scanf_has_long_double=yes
19106else
19107  echo "$as_me: program exited with status $ac_status" >&5
19108echo "$as_me: failed program was:" >&5
19109sed 's/^/| /' conftest.$ac_ext >&5
19110
19111( exit $ac_status )
19112gdb_cv_scanf_has_long_double=no
19113fi
19114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19115fi
19116
19117
19118fi
19119{ echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19120echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6; }
19121if test $gdb_cv_scanf_has_long_double = yes; then
19122
19123cat >>confdefs.h <<\_ACEOF
19124#define SCANF_HAS_LONG_DOUBLE 1
19125_ACEOF
19126
19127fi
19128
19129case ${host_os} in
19130aix*)
19131  { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19132echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
19133if test "${gdb_cv_bigtoc+set}" = set; then
19134  echo $ECHO_N "(cached) $ECHO_C" >&6
19135else
19136
19137    SAVE_LDFLAGS=$LDFLAGS
19138
19139    case $GCC in
19140    yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19141    *) gdb_cv_bigtoc=-bbigtoc ;;
19142    esac
19143
19144    LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19145    cat >conftest.$ac_ext <<_ACEOF
19146/* confdefs.h.  */
19147_ACEOF
19148cat confdefs.h >>conftest.$ac_ext
19149cat >>conftest.$ac_ext <<_ACEOF
19150/* end confdefs.h.  */
19151
19152int
19153main ()
19154{
19155int i;
19156  ;
19157  return 0;
19158}
19159_ACEOF
19160rm -f conftest.$ac_objext conftest$ac_exeext
19161if { (ac_try="$ac_link"
19162case "(($ac_try" in
19163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164  *) ac_try_echo=$ac_try;;
19165esac
19166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167  (eval "$ac_link") 2>conftest.er1
19168  ac_status=$?
19169  grep -v '^ *+' conftest.er1 >conftest.err
19170  rm -f conftest.er1
19171  cat conftest.err >&5
19172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173  (exit $ac_status); } &&
19174	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19175  { (case "(($ac_try" in
19176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177  *) ac_try_echo=$ac_try;;
19178esac
19179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180  (eval "$ac_try") 2>&5
19181  ac_status=$?
19182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183  (exit $ac_status); }; } &&
19184	 { ac_try='test -s conftest$ac_exeext'
19185  { (case "(($ac_try" in
19186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187  *) ac_try_echo=$ac_try;;
19188esac
19189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190  (eval "$ac_try") 2>&5
19191  ac_status=$?
19192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193  (exit $ac_status); }; }; then
19194  :
19195else
19196  echo "$as_me: failed program was:" >&5
19197sed 's/^/| /' conftest.$ac_ext >&5
19198
19199	gdb_cv_bigtoc=
19200fi
19201
19202rm -f core conftest.err conftest.$ac_objext \
19203      conftest$ac_exeext conftest.$ac_ext
19204    LDFLAGS="${SAVE_LDFLAGS}"
19205
19206fi
19207{ echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19208echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
19209  CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19210  ;;
19211esac
19212
19213
19214
19215if test ${build} = ${host} -a ${host} = ${target} ; then
19216   case ${host_os} in
19217   hpux*)
19218      { echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19219echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6; }
19220      if test -f /usr/include/dce/cma_config.h ; then
19221         if test "$GCC" = "yes" ; then
19222            { echo "$as_me:$LINENO: result: yes" >&5
19223echo "${ECHO_T}yes" >&6; }
19224
19225cat >>confdefs.h <<\_ACEOF
19226#define HAVE_HPUX_THREAD_SUPPORT 1
19227_ACEOF
19228
19229            CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19230            CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19231         else
19232            { echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19233echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6; }
19234         fi
19235      else
19236         { echo "$as_me:$LINENO: result: no" >&5
19237echo "${ECHO_T}no" >&6; }
19238      fi
19239      ;;
19240   solaris*)
19241      # See if thread_db library is around for Solaris thread debugging.
19242      # Note that we must explicitly test for version 1 of the library
19243      # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19244      # the same API.
19245      { echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19246echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6; }
19247      if test -f /usr/lib/libthread_db.so.1 ; then
19248         { echo "$as_me:$LINENO: result: yes" >&5
19249echo "${ECHO_T}yes" >&6; }
19250
19251cat >>confdefs.h <<\_ACEOF
19252#define HAVE_THREAD_DB_LIB 1
19253_ACEOF
19254
19255         CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19256         CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19257
19258{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19259echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19260if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19261  echo $ECHO_N "(cached) $ECHO_C" >&6
19262else
19263  ac_check_lib_save_LIBS=$LIBS
19264LIBS="-ldl  $LIBS"
19265cat >conftest.$ac_ext <<_ACEOF
19266/* confdefs.h.  */
19267_ACEOF
19268cat confdefs.h >>conftest.$ac_ext
19269cat >>conftest.$ac_ext <<_ACEOF
19270/* end confdefs.h.  */
19271
19272/* Override any GCC internal prototype to avoid an error.
19273   Use char because int might match the return type of a GCC
19274   builtin and then its argument prototype would still apply.  */
19275#ifdef __cplusplus
19276extern "C"
19277#endif
19278char dlopen ();
19279int
19280main ()
19281{
19282return dlopen ();
19283  ;
19284  return 0;
19285}
19286_ACEOF
19287rm -f conftest.$ac_objext conftest$ac_exeext
19288if { (ac_try="$ac_link"
19289case "(($ac_try" in
19290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291  *) ac_try_echo=$ac_try;;
19292esac
19293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294  (eval "$ac_link") 2>conftest.er1
19295  ac_status=$?
19296  grep -v '^ *+' conftest.er1 >conftest.err
19297  rm -f conftest.er1
19298  cat conftest.err >&5
19299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300  (exit $ac_status); } &&
19301	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19302  { (case "(($ac_try" in
19303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304  *) ac_try_echo=$ac_try;;
19305esac
19306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307  (eval "$ac_try") 2>&5
19308  ac_status=$?
19309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310  (exit $ac_status); }; } &&
19311	 { ac_try='test -s conftest$ac_exeext'
19312  { (case "(($ac_try" in
19313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314  *) ac_try_echo=$ac_try;;
19315esac
19316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317  (eval "$ac_try") 2>&5
19318  ac_status=$?
19319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320  (exit $ac_status); }; }; then
19321  ac_cv_lib_dl_dlopen=yes
19322else
19323  echo "$as_me: failed program was:" >&5
19324sed 's/^/| /' conftest.$ac_ext >&5
19325
19326	ac_cv_lib_dl_dlopen=no
19327fi
19328
19329rm -f core conftest.err conftest.$ac_objext \
19330      conftest$ac_exeext conftest.$ac_ext
19331LIBS=$ac_check_lib_save_LIBS
19332fi
19333{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19334echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19335if test $ac_cv_lib_dl_dlopen = yes; then
19336  cat >>confdefs.h <<_ACEOF
19337#define HAVE_LIBDL 1
19338_ACEOF
19339
19340  LIBS="-ldl $LIBS"
19341
19342fi
19343
19344         if test "$GCC" = "yes" ; then
19345            # The GNU linker requires the -export-dynamic option to make
19346            # all symbols visible in the dynamic symbol table.
19347            hold_ldflags=$LDFLAGS
19348            { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19349echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
19350            LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19351            cat >conftest.$ac_ext <<_ACEOF
19352/* confdefs.h.  */
19353_ACEOF
19354cat confdefs.h >>conftest.$ac_ext
19355cat >>conftest.$ac_ext <<_ACEOF
19356/* end confdefs.h.  */
19357
19358int
19359main ()
19360{
19361int i;
19362  ;
19363  return 0;
19364}
19365_ACEOF
19366rm -f conftest.$ac_objext conftest$ac_exeext
19367if { (ac_try="$ac_link"
19368case "(($ac_try" in
19369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370  *) ac_try_echo=$ac_try;;
19371esac
19372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373  (eval "$ac_link") 2>conftest.er1
19374  ac_status=$?
19375  grep -v '^ *+' conftest.er1 >conftest.err
19376  rm -f conftest.er1
19377  cat conftest.err >&5
19378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379  (exit $ac_status); } &&
19380	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19381  { (case "(($ac_try" in
19382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383  *) ac_try_echo=$ac_try;;
19384esac
19385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386  (eval "$ac_try") 2>&5
19387  ac_status=$?
19388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389  (exit $ac_status); }; } &&
19390	 { ac_try='test -s conftest$ac_exeext'
19391  { (case "(($ac_try" in
19392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393  *) ac_try_echo=$ac_try;;
19394esac
19395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396  (eval "$ac_try") 2>&5
19397  ac_status=$?
19398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399  (exit $ac_status); }; }; then
19400  found=yes
19401else
19402  echo "$as_me: failed program was:" >&5
19403sed 's/^/| /' conftest.$ac_ext >&5
19404
19405	found=no
19406fi
19407
19408rm -f core conftest.err conftest.$ac_objext \
19409      conftest$ac_exeext conftest.$ac_ext
19410            LDFLAGS=$hold_ldflags
19411            { echo "$as_me:$LINENO: result: $found" >&5
19412echo "${ECHO_T}$found" >&6; }
19413            if test $found = yes; then
19414               CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19415            fi
19416         fi
19417	 # Sun randomly tweaked the prototypes in <proc_service.h>
19418	 # at one point.
19419	 { echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19420echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6; }
19421	 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19422  echo $ECHO_N "(cached) $ECHO_C" >&6
19423else
19424
19425	    cat >conftest.$ac_ext <<_ACEOF
19426/* confdefs.h.  */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h.  */
19431
19432		#include <proc_service.h>
19433		ps_err_e ps_pdwrite
19434		    (struct ps_prochandle*, psaddr_t, const void*, size_t);
19435
19436int
19437main ()
19438{
19439
19440  ;
19441  return 0;
19442}
19443_ACEOF
19444rm -f conftest.$ac_objext
19445if { (ac_try="$ac_compile"
19446case "(($ac_try" in
19447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448  *) ac_try_echo=$ac_try;;
19449esac
19450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451  (eval "$ac_compile") 2>conftest.er1
19452  ac_status=$?
19453  grep -v '^ *+' conftest.er1 >conftest.err
19454  rm -f conftest.er1
19455  cat conftest.err >&5
19456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457  (exit $ac_status); } &&
19458	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19459  { (case "(($ac_try" in
19460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461  *) ac_try_echo=$ac_try;;
19462esac
19463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464  (eval "$ac_try") 2>&5
19465  ac_status=$?
19466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467  (exit $ac_status); }; } &&
19468	 { ac_try='test -s conftest.$ac_objext'
19469  { (case "(($ac_try" in
19470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471  *) ac_try_echo=$ac_try;;
19472esac
19473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474  (eval "$ac_try") 2>&5
19475  ac_status=$?
19476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477  (exit $ac_status); }; }; then
19478  gdb_cv_proc_service_is_old=no
19479else
19480  echo "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
19483	gdb_cv_proc_service_is_old=yes
19484fi
19485
19486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487
19488fi
19489
19490	 { echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19491echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6; }
19492	 if test $gdb_cv_proc_service_is_old = yes; then
19493
19494cat >>confdefs.h <<\_ACEOF
19495#define PROC_SERVICE_IS_OLD 1
19496_ACEOF
19497
19498	 fi
19499      else
19500         { echo "$as_me:$LINENO: result: no" >&5
19501echo "${ECHO_T}no" >&6; }
19502      fi
19503      ;;
19504   aix*)
19505      { echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19506echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6; }
19507      if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19508  echo $ECHO_N "(cached) $ECHO_C" >&6
19509else
19510  cat >conftest.$ac_ext <<_ACEOF
19511/* confdefs.h.  */
19512_ACEOF
19513cat confdefs.h >>conftest.$ac_ext
19514cat >>conftest.$ac_ext <<_ACEOF
19515/* end confdefs.h.  */
19516#include <sys/pthdebug.h>
19517int
19518main ()
19519{
19520#ifndef PTHDB_VERSION_3
19521                                    #error
19522                                    #endif
19523  ;
19524  return 0;
19525}
19526_ACEOF
19527rm -f conftest.$ac_objext
19528if { (ac_try="$ac_compile"
19529case "(($ac_try" in
19530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531  *) ac_try_echo=$ac_try;;
19532esac
19533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534  (eval "$ac_compile") 2>conftest.er1
19535  ac_status=$?
19536  grep -v '^ *+' conftest.er1 >conftest.err
19537  rm -f conftest.er1
19538  cat conftest.err >&5
19539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540  (exit $ac_status); } &&
19541	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19542  { (case "(($ac_try" in
19543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544  *) ac_try_echo=$ac_try;;
19545esac
19546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547  (eval "$ac_try") 2>&5
19548  ac_status=$?
19549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550  (exit $ac_status); }; } &&
19551	 { ac_try='test -s conftest.$ac_objext'
19552  { (case "(($ac_try" in
19553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554  *) ac_try_echo=$ac_try;;
19555esac
19556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557  (eval "$ac_try") 2>&5
19558  ac_status=$?
19559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560  (exit $ac_status); }; }; then
19561  gdb_cv_have_aix_thread_debug=yes
19562else
19563  echo "$as_me: failed program was:" >&5
19564sed 's/^/| /' conftest.$ac_ext >&5
19565
19566	gdb_cv_have_aix_thread_debug=no
19567fi
19568
19569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570fi
19571
19572      { echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19573echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6; }
19574      if test $gdb_cv_have_aix_thread_debug = yes; then
19575         CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19576         CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19577         CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19578      fi
19579      ;;
19580   esac
19581
19582fi
19583
19584if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19585   { echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19586echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6; }
19587if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19588  echo $ECHO_N "(cached) $ECHO_C" >&6
19589else
19590  cat >conftest.$ac_ext <<_ACEOF
19591/* confdefs.h.  */
19592_ACEOF
19593cat confdefs.h >>conftest.$ac_ext
19594cat >>conftest.$ac_ext <<_ACEOF
19595/* end confdefs.h.  */
19596#include <thread_db.h>
19597int
19598main ()
19599{
19600int i = TD_NOTALLOC;
19601  ;
19602  return 0;
19603}
19604_ACEOF
19605rm -f conftest.$ac_objext
19606if { (ac_try="$ac_compile"
19607case "(($ac_try" in
19608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609  *) ac_try_echo=$ac_try;;
19610esac
19611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612  (eval "$ac_compile") 2>conftest.er1
19613  ac_status=$?
19614  grep -v '^ *+' conftest.er1 >conftest.err
19615  rm -f conftest.er1
19616  cat conftest.err >&5
19617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618  (exit $ac_status); } &&
19619	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19620  { (case "(($ac_try" in
19621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622  *) ac_try_echo=$ac_try;;
19623esac
19624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625  (eval "$ac_try") 2>&5
19626  ac_status=$?
19627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628  (exit $ac_status); }; } &&
19629	 { ac_try='test -s conftest.$ac_objext'
19630  { (case "(($ac_try" in
19631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632  *) ac_try_echo=$ac_try;;
19633esac
19634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635  (eval "$ac_try") 2>&5
19636  ac_status=$?
19637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638  (exit $ac_status); }; }; then
19639  gdb_cv_thread_db_h_has_td_notalloc=yes
19640else
19641  echo "$as_me: failed program was:" >&5
19642sed 's/^/| /' conftest.$ac_ext >&5
19643
19644	gdb_cv_thread_db_h_has_td_notalloc=no
19645
19646fi
19647
19648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649
19650fi
19651{ echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19652echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
19653fi
19654if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19655
19656cat >>confdefs.h <<\_ACEOF
19657#define THREAD_DB_HAS_TD_NOTALLOC 1
19658_ACEOF
19659
19660fi
19661
19662if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19663   { echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19664echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6; }
19665if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19666  echo $ECHO_N "(cached) $ECHO_C" >&6
19667else
19668  cat >conftest.$ac_ext <<_ACEOF
19669/* confdefs.h.  */
19670_ACEOF
19671cat confdefs.h >>conftest.$ac_ext
19672cat >>conftest.$ac_ext <<_ACEOF
19673/* end confdefs.h.  */
19674#include <sys/syscall.h>
19675int
19676main ()
19677{
19678int i = __NR_tkill;
19679  ;
19680  return 0;
19681}
19682_ACEOF
19683rm -f conftest.$ac_objext
19684if { (ac_try="$ac_compile"
19685case "(($ac_try" in
19686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687  *) ac_try_echo=$ac_try;;
19688esac
19689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690  (eval "$ac_compile") 2>conftest.er1
19691  ac_status=$?
19692  grep -v '^ *+' conftest.er1 >conftest.err
19693  rm -f conftest.er1
19694  cat conftest.err >&5
19695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696  (exit $ac_status); } &&
19697	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19698  { (case "(($ac_try" in
19699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700  *) ac_try_echo=$ac_try;;
19701esac
19702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703  (eval "$ac_try") 2>&5
19704  ac_status=$?
19705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706  (exit $ac_status); }; } &&
19707	 { ac_try='test -s conftest.$ac_objext'
19708  { (case "(($ac_try" in
19709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710  *) ac_try_echo=$ac_try;;
19711esac
19712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713  (eval "$ac_try") 2>&5
19714  ac_status=$?
19715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716  (exit $ac_status); }; }; then
19717  gdb_cv_sys_syscall_h_has_tkill=yes
19718else
19719  echo "$as_me: failed program was:" >&5
19720sed 's/^/| /' conftest.$ac_ext >&5
19721
19722	gdb_cv_sys_syscall_h_has_tkill=no
19723
19724fi
19725
19726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19727
19728fi
19729{ echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19730echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6; }
19731fi
19732if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19733
19734cat >>confdefs.h <<\_ACEOF
19735#define HAVE_TKILL_SYSCALL 1
19736_ACEOF
19737
19738fi
19739
19740
19741
19742# Check whether --with-sysroot was given.
19743if test "${with_sysroot+set}" = set; then
19744  withval=$with_sysroot;
19745 case ${with_sysroot} in
19746 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19747 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19748 esac
19749
19750 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19751
19752 if test "x$exec_prefix" = xNONE; then
19753  if test "x$prefix" = xNONE; then
19754   test_prefix=/usr/local
19755  else
19756   test_prefix=$prefix
19757  fi
19758 else
19759  test_prefix=$exec_prefix
19760 fi
19761 case ${TARGET_SYSTEM_ROOT} in
19762 "${test_prefix}"|"${test_prefix}/"*|\
19763 '${exec_prefix}'|'${exec_prefix}/'*)
19764   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19765   TARGET_SYSTEM_ROOT_DEFINE="$t"
19766   ;;
19767 esac
19768
19769else
19770
19771 TARGET_SYSTEM_ROOT=
19772 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19773
19774fi
19775
19776
19777
19778
19779# NOTE: Don't add -Wall or -Wunused, they both include
19780# -Wunused-parameter which reports bogus warnings.
19781# NOTE: If you add to this list, remember to update
19782# gdb/doc/gdbint.texinfo.
19783build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19784-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
19785-Wunused-label -Wunused-function"
19786
19787# GCC supports -Wuninitialized only with -O or -On, n != 0.
19788if test x${CFLAGS+set} = xset; then
19789  case "${CFLAGS}" in
19790    *"-O0"* ) ;;
19791    *"-O"* )
19792      build_warnings="${build_warnings} -Wuninitialized"
19793    ;;
19794  esac
19795else
19796  build_warnings="${build_warnings} -Wuninitialized"
19797fi
19798
19799# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19800# -Wunused-function -Wunused-variable -Wunused-value
19801# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19802# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19803# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19804# -Woverloaded-virtual -Winline -Werror"
19805# Check whether --enable-build-warnings was given.
19806if test "${enable_build_warnings+set}" = set; then
19807  enableval=$enable_build_warnings; case "${enableval}" in
19808  yes)	;;
19809  no)	build_warnings="-w";;
19810  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19811        build_warnings="${build_warnings} ${t}";;
19812  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19813        build_warnings="${t} ${build_warnings}";;
19814  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19815esac
19816if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19817  echo "Setting compiler warning flags = $build_warnings" 6>&1
19818fi
19819fi
19820# Check whether --enable-gdb-build-warnings was given.
19821if test "${enable_gdb_build_warnings+set}" = set; then
19822  enableval=$enable_gdb_build_warnings; case "${enableval}" in
19823  yes)	;;
19824  no)	build_warnings="-w";;
19825  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19826        build_warnings="${build_warnings} ${t}";;
19827  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19828        build_warnings="${t} ${build_warnings}";;
19829  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19830esac
19831if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19832  echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19833fi
19834fi
19835WARN_CFLAGS=""
19836WERROR_CFLAGS=""
19837if test "x${build_warnings}" != x -a "x$GCC" = xyes
19838then
19839    { echo "$as_me:$LINENO: checking compiler warning flags" >&5
19840echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6; }
19841    # Separate out the -Werror flag as some files just cannot be
19842    # compiled with it enabled.
19843    for w in ${build_warnings}; do
19844	case $w in
19845	-Werr*) WERROR_CFLAGS=-Werror ;;
19846	*) # Check that GCC accepts it
19847	    saved_CFLAGS="$CFLAGS"
19848	    CFLAGS="$CFLAGS $w"
19849	    cat >conftest.$ac_ext <<_ACEOF
19850/* confdefs.h.  */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
19854/* end confdefs.h.  */
19855
19856int
19857main ()
19858{
19859
19860  ;
19861  return 0;
19862}
19863_ACEOF
19864rm -f conftest.$ac_objext
19865if { (ac_try="$ac_compile"
19866case "(($ac_try" in
19867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868  *) ac_try_echo=$ac_try;;
19869esac
19870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871  (eval "$ac_compile") 2>conftest.er1
19872  ac_status=$?
19873  grep -v '^ *+' conftest.er1 >conftest.err
19874  rm -f conftest.er1
19875  cat conftest.err >&5
19876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877  (exit $ac_status); } &&
19878	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19879  { (case "(($ac_try" in
19880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881  *) ac_try_echo=$ac_try;;
19882esac
19883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884  (eval "$ac_try") 2>&5
19885  ac_status=$?
19886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887  (exit $ac_status); }; } &&
19888	 { ac_try='test -s conftest.$ac_objext'
19889  { (case "(($ac_try" in
19890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891  *) ac_try_echo=$ac_try;;
19892esac
19893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894  (eval "$ac_try") 2>&5
19895  ac_status=$?
19896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897  (exit $ac_status); }; }; then
19898  WARN_CFLAGS="${WARN_CFLAGS} $w"
19899else
19900  echo "$as_me: failed program was:" >&5
19901sed 's/^/| /' conftest.$ac_ext >&5
19902
19903
19904fi
19905
19906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19907	    CFLAGS="$saved_CFLAGS"
19908	esac
19909    done
19910    { echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19911echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
19912fi
19913
19914
19915
19916# In the Cygwin environment, we need some additional flags.
19917{ echo "$as_me:$LINENO: checking for cygwin" >&5
19918echo $ECHO_N "checking for cygwin... $ECHO_C" >&6; }
19919if test "${gdb_cv_os_cygwin+set}" = set; then
19920  echo $ECHO_N "(cached) $ECHO_C" >&6
19921else
19922  cat >conftest.$ac_ext <<_ACEOF
19923/* confdefs.h.  */
19924_ACEOF
19925cat confdefs.h >>conftest.$ac_ext
19926cat >>conftest.$ac_ext <<_ACEOF
19927/* end confdefs.h.  */
19928
19929#if defined (__CYGWIN__) || defined (__CYGWIN32__)
19930lose
19931#endif
19932_ACEOF
19933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19934  $EGREP "lose" >/dev/null 2>&1; then
19935  gdb_cv_os_cygwin=yes
19936else
19937  gdb_cv_os_cygwin=no
19938fi
19939rm -f conftest*
19940
19941fi
19942{ echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19943echo "${ECHO_T}$gdb_cv_os_cygwin" >&6; }
19944
19945
19946SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
19947case ${host} in
19948  *go32* ) SER_HARDWIRE=ser-go32.o ;;
19949  *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
19950  *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o" ;;
19951esac
19952
19953
19954# libreadline needs libuser32.a in a cygwin environment
19955WIN32LIBS=
19956if test x$gdb_cv_os_cygwin = xyes; then
19957    WIN32LIBS="-luser32"
19958    case "${target}" in
19959	*cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19960	;;
19961    esac
19962fi
19963
19964# The ser-tcp.c module requires sockets.
19965case ${host} in
19966  *mingw32*)
19967
19968cat >>confdefs.h <<\_ACEOF
19969#define USE_WIN32API 1
19970_ACEOF
19971
19972    WIN32LIBS="$WIN32LIBS -lws2_32"
19973    ;;
19974esac
19975
19976
19977LIBGUI="../libgui/src/libgui.a"
19978GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19979
19980
19981
19982WIN32LDAPP=
19983
19984
19985
19986case "${host}" in
19987*-*-cygwin*)
19988    configdir="win"
19989    ;;
19990*)
19991    configdir="unix"
19992    ;;
19993esac
19994
19995GDBTKLIBS=
19996if test "${enable_gdbtk}" = "yes"; then
19997
19998    # Gdbtk must have an absolute path to srcdir in order to run
19999    # properly when not installed.
20000    here=`pwd`
20001    cd ${srcdir}
20002    GDBTK_SRC_DIR=`pwd`
20003    cd $here
20004
20005
20006#
20007# Ok, lets find the tcl configuration
20008# First, look for one uninstalled.
20009# the alternative search directory is invoked by --with-tclconfig
20010#
20011
20012if test x"${no_tcl}" = x ; then
20013  # we reset no_tcl in case something fails here
20014  no_tcl=true
20015
20016# Check whether --with-tclconfig was given.
20017if test "${with_tclconfig+set}" = set; then
20018  withval=$with_tclconfig; with_tclconfig=${withval}
20019fi
20020
20021  { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20022echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
20023  if test "${ac_cv_c_tclconfig+set}" = set; then
20024  echo $ECHO_N "(cached) $ECHO_C" >&6
20025else
20026
20027
20028  # First check to see if --with-tclconfig was specified.
20029  if test x"${with_tclconfig}" != x ; then
20030    if test -f "${with_tclconfig}/tclConfig.sh" ; then
20031      ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20032    else
20033      { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20034echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20035   { (exit 1); exit 1; }; }
20036    fi
20037  fi
20038
20039  # then check for a private Tcl installation
20040  if test x"${ac_cv_c_tclconfig}" = x ; then
20041    for i in \
20042		../tcl \
20043		`ls -dr ../tcl[7-9]* 2>/dev/null` \
20044		../../tcl \
20045		`ls -dr ../../tcl[7-9]* 2>/dev/null` \
20046		../../../tcl \
20047		`ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20048      if test -f "$i/${configdir}/tclConfig.sh" ; then
20049        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20050	break
20051      fi
20052    done
20053  fi
20054  # check in a few common install locations
20055  if test x"${ac_cv_c_tclconfig}" = x ; then
20056    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20057      if test -f "$i/tclConfig.sh" ; then
20058        ac_cv_c_tclconfig=`(cd $i; pwd)`
20059	break
20060      fi
20061    done
20062  fi
20063  # check in a few other private locations
20064  if test x"${ac_cv_c_tclconfig}" = x ; then
20065    for i in \
20066		${srcdir}/../tcl \
20067		`ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20068      if test -f "$i/${configdir}/tclConfig.sh" ; then
20069        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20070	break
20071      fi
20072    done
20073  fi
20074
20075fi
20076
20077  if test x"${ac_cv_c_tclconfig}" = x ; then
20078    TCLCONFIG="# no Tcl configs found"
20079    { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20080echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20081  else
20082    no_tcl=
20083    TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
20084    { echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20085echo "${ECHO_T}found $TCLCONFIG" >&6; }
20086  fi
20087fi
20088
20089    if test -z "${no_tcl}"; then
20090
20091    . $TCLCONFIG
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119#
20120# Ok, lets find the tk configuration
20121# First, look for one uninstalled.
20122# the alternative search directory is invoked by --with-tkconfig
20123#
20124
20125if test x"${no_tk}" = x ; then
20126  # we reset no_tk in case something fails here
20127  no_tk=true
20128
20129# Check whether --with-tkconfig was given.
20130if test "${with_tkconfig+set}" = set; then
20131  withval=$with_tkconfig; with_tkconfig=${withval}
20132fi
20133
20134  { echo "$as_me:$LINENO: checking for Tk configuration" >&5
20135echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; }
20136  if test "${ac_cv_c_tkconfig+set}" = set; then
20137  echo $ECHO_N "(cached) $ECHO_C" >&6
20138else
20139
20140
20141  # First check to see if --with-tkconfig was specified.
20142  if test x"${with_tkconfig}" != x ; then
20143    if test -f "${with_tkconfig}/tkConfig.sh" ; then
20144      ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20145    else
20146      { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20147echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20148   { (exit 1); exit 1; }; }
20149    fi
20150  fi
20151
20152  # then check for a private Tk library
20153  if test x"${ac_cv_c_tkconfig}" = x ; then
20154    for i in \
20155		../tk \
20156		`ls -dr ../tk[4-9]* 2>/dev/null` \
20157		../../tk \
20158		`ls -dr ../../tk[4-9]* 2>/dev/null` \
20159		../../../tk \
20160		`ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20161      if test -f "$i/${configdir}/tkConfig.sh" ; then
20162        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20163	break
20164      fi
20165    done
20166  fi
20167  # check in a few common install locations
20168  if test x"${ac_cv_c_tkconfig}" = x ; then
20169    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20170      if test -f "$i/tkConfig.sh" ; then
20171        ac_cv_c_tkconfig=`(cd $i; pwd)`
20172	break
20173      fi
20174    done
20175  fi
20176  # check in a few other private locations
20177  if test x"${ac_cv_c_tkconfig}" = x ; then
20178    for i in \
20179		${srcdir}/../tk \
20180		`ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20181      if test -f "$i/${configdir}/tkConfig.sh" ; then
20182        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20183	break
20184      fi
20185    done
20186  fi
20187
20188fi
20189
20190  if test x"${ac_cv_c_tkconfig}" = x ; then
20191    TKCONFIG="# no Tk configs found"
20192    { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20193echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20194  else
20195    no_tk=
20196    TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20197    { echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20198echo "${ECHO_T}found $TKCONFIG" >&6; }
20199  fi
20200fi
20201
20202
20203
20204	# now look for Tcl library stuff
20205
20206	tcldir="../tcl/${configdir}/"
20207
20208	TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20209
20210	# If $no_tk is nonempty, then we can't do Tk, and there is no
20211	# point to doing Tcl.
20212	if test -z "${no_tk}"; then
20213
20214    if test -f "$TKCONFIG" ; then
20215      . $TKCONFIG
20216    fi
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231#
20232# Ok, lets find the tcl source trees so we can use the headers
20233# Warning: transition of version 9 to 10 will break this algorithm
20234# because 10 sorts before 9. We also look for just tcl. We have to
20235# be careful that we don't match stuff like tclX by accident.
20236# the alternative search directory is involked by --with-tclinclude
20237#
20238
20239no_tcl=true
20240{ echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20241echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6; }
20242
20243# Check whether --with-tclinclude was given.
20244if test "${with_tclinclude+set}" = set; then
20245  withval=$with_tclinclude; with_tclinclude=${withval}
20246fi
20247
20248if test "${ac_cv_c_tclh+set}" = set; then
20249  echo $ECHO_N "(cached) $ECHO_C" >&6
20250else
20251
20252# first check to see if --with-tclinclude was specified
20253if test x"${with_tclinclude}" != x ; then
20254  if test -f ${with_tclinclude}/tclInt.h ; then
20255    ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20256  elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20257    ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20258  else
20259    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20260echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20261   { (exit 1); exit 1; }; }
20262  fi
20263fi
20264
20265# next check if it came with Tcl configuration file
20266if test x"${ac_cv_c_tclconfig}" = x ; then
20267  if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20268    ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20269  fi
20270fi
20271
20272# next check in private source directory
20273#
20274# since ls returns lowest version numbers first, reverse its output
20275if test x"${ac_cv_c_tclh}" = x ; then
20276  for i in \
20277		${srcdir}/../tcl \
20278		`ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20279		${srcdir}/../../tcl \
20280		`ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20281		${srcdir}/../../../tcl \
20282		`ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20283    if test -f $i/generic/tclInt.h ; then
20284      ac_cv_c_tclh=`(cd $i/generic; pwd)`
20285      break
20286    fi
20287  done
20288fi
20289# finally check in a few common install locations
20290#
20291# since ls returns lowest version numbers first, reverse its output
20292if test x"${ac_cv_c_tclh}" = x ; then
20293  for i in \
20294		`ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20295		`ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20296		/usr/local/src/tcl \
20297		/usr/local/lib/tcl \
20298		${prefix}/include ; do
20299    if test -f $i/generic/tclInt.h ; then
20300      ac_cv_c_tclh=`(cd $i/generic; pwd)`
20301      break
20302    fi
20303  done
20304fi
20305# see if one is installed
20306if test x"${ac_cv_c_tclh}" = x ; then
20307   if test "${ac_cv_header_tclInt_h+set}" = set; then
20308  { echo "$as_me:$LINENO: checking for tclInt.h" >&5
20309echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6; }
20310if test "${ac_cv_header_tclInt_h+set}" = set; then
20311  echo $ECHO_N "(cached) $ECHO_C" >&6
20312fi
20313{ echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20314echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6; }
20315else
20316  # Is the header compilable?
20317{ echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20318echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6; }
20319cat >conftest.$ac_ext <<_ACEOF
20320/* confdefs.h.  */
20321_ACEOF
20322cat confdefs.h >>conftest.$ac_ext
20323cat >>conftest.$ac_ext <<_ACEOF
20324/* end confdefs.h.  */
20325$ac_includes_default
20326#include <tclInt.h>
20327_ACEOF
20328rm -f conftest.$ac_objext
20329if { (ac_try="$ac_compile"
20330case "(($ac_try" in
20331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332  *) ac_try_echo=$ac_try;;
20333esac
20334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335  (eval "$ac_compile") 2>conftest.er1
20336  ac_status=$?
20337  grep -v '^ *+' conftest.er1 >conftest.err
20338  rm -f conftest.er1
20339  cat conftest.err >&5
20340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341  (exit $ac_status); } &&
20342	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20343  { (case "(($ac_try" in
20344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345  *) ac_try_echo=$ac_try;;
20346esac
20347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348  (eval "$ac_try") 2>&5
20349  ac_status=$?
20350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351  (exit $ac_status); }; } &&
20352	 { ac_try='test -s conftest.$ac_objext'
20353  { (case "(($ac_try" in
20354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355  *) ac_try_echo=$ac_try;;
20356esac
20357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358  (eval "$ac_try") 2>&5
20359  ac_status=$?
20360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361  (exit $ac_status); }; }; then
20362  ac_header_compiler=yes
20363else
20364  echo "$as_me: failed program was:" >&5
20365sed 's/^/| /' conftest.$ac_ext >&5
20366
20367	ac_header_compiler=no
20368fi
20369
20370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20371{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20372echo "${ECHO_T}$ac_header_compiler" >&6; }
20373
20374# Is the header present?
20375{ echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20376echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6; }
20377cat >conftest.$ac_ext <<_ACEOF
20378/* confdefs.h.  */
20379_ACEOF
20380cat confdefs.h >>conftest.$ac_ext
20381cat >>conftest.$ac_ext <<_ACEOF
20382/* end confdefs.h.  */
20383#include <tclInt.h>
20384_ACEOF
20385if { (ac_try="$ac_cpp conftest.$ac_ext"
20386case "(($ac_try" in
20387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388  *) ac_try_echo=$ac_try;;
20389esac
20390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20392  ac_status=$?
20393  grep -v '^ *+' conftest.er1 >conftest.err
20394  rm -f conftest.er1
20395  cat conftest.err >&5
20396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397  (exit $ac_status); } >/dev/null; then
20398  if test -s conftest.err; then
20399    ac_cpp_err=$ac_c_preproc_warn_flag
20400    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20401  else
20402    ac_cpp_err=
20403  fi
20404else
20405  ac_cpp_err=yes
20406fi
20407if test -z "$ac_cpp_err"; then
20408  ac_header_preproc=yes
20409else
20410  echo "$as_me: failed program was:" >&5
20411sed 's/^/| /' conftest.$ac_ext >&5
20412
20413  ac_header_preproc=no
20414fi
20415
20416rm -f conftest.err conftest.$ac_ext
20417{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20418echo "${ECHO_T}$ac_header_preproc" >&6; }
20419
20420# So?  What about this header?
20421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20422  yes:no: )
20423    { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20424echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20425    { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20426echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20427    ac_header_preproc=yes
20428    ;;
20429  no:yes:* )
20430    { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20431echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20432    { echo "$as_me:$LINENO: WARNING: tclInt.h:     check for missing prerequisite headers?" >&5
20433echo "$as_me: WARNING: tclInt.h:     check for missing prerequisite headers?" >&2;}
20434    { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20435echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20436    { echo "$as_me:$LINENO: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&5
20437echo "$as_me: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20438    { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20439echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20440    { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20441echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20442
20443    ;;
20444esac
20445{ echo "$as_me:$LINENO: checking for tclInt.h" >&5
20446echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6; }
20447if test "${ac_cv_header_tclInt_h+set}" = set; then
20448  echo $ECHO_N "(cached) $ECHO_C" >&6
20449else
20450  ac_cv_header_tclInt_h=$ac_header_preproc
20451fi
20452{ echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20453echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6; }
20454
20455fi
20456if test $ac_cv_header_tclInt_h = yes; then
20457  ac_cv_c_tclh=installed
20458else
20459  ac_cv_c_tclh=""
20460fi
20461
20462
20463fi
20464
20465fi
20466
20467if test x"${ac_cv_c_tclh}" = x ; then
20468  TCLHDIR="# no Tcl private headers found"
20469  { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20470echo "$as_me: error: Can't find Tcl private headers" >&2;}
20471   { (exit 1); exit 1; }; }
20472fi
20473if test x"${ac_cv_c_tclh}" != x ; then
20474  no_tcl=""
20475  if test x"${ac_cv_c_tclh}" = x"installed" ; then
20476    { echo "$as_me:$LINENO: result: is installed" >&5
20477echo "${ECHO_T}is installed" >&6; }
20478    TCLHDIR=""
20479  else
20480    { echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20481echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6; }
20482    # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20483    TCLHDIR="-I${ac_cv_c_tclh}"
20484  fi
20485fi
20486
20487
20488
20489
20490#
20491# Ok, lets find the tk source trees so we can use the headers
20492# If the directory (presumably symlink) named "tk" exists, use that one
20493# in preference to any others.  Same logic is used when choosing library
20494# and again with Tcl. The search order is the best place to look first, then in
20495# decreasing significance. The loop breaks if the trigger file is found.
20496# Note the gross little conversion here of srcdir by cd'ing to the found
20497# directory. This converts the path from a relative to an absolute, so
20498# recursive cache variables for the path will work right. We check all
20499# the possible paths in one loop rather than many seperate loops to speed
20500# things up.
20501# the alternative search directory is involked by --with-tkinclude
20502#
20503no_tk=true
20504{ echo "$as_me:$LINENO: checking for Tk private headers" >&5
20505echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6; }
20506
20507# Check whether --with-tkinclude was given.
20508if test "${with_tkinclude+set}" = set; then
20509  withval=$with_tkinclude; with_tkinclude=${withval}
20510fi
20511
20512if test "${ac_cv_c_tkh+set}" = set; then
20513  echo $ECHO_N "(cached) $ECHO_C" >&6
20514else
20515
20516# first check to see if --with-tkinclude was specified
20517if test x"${with_tkinclude}" != x ; then
20518  if test -f ${with_tkinclude}/tk.h ; then
20519    ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20520  elif test -f ${with_tkinclude}/generic/tk.h ; then
20521    ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20522  else
20523    { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20524echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20525   { (exit 1); exit 1; }; }
20526  fi
20527fi
20528
20529# next check if it came with Tk configuration file
20530if test x"${ac_cv_c_tkconfig}" = x ; then
20531  if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20532    ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20533  fi
20534fi
20535
20536# next check in private source directory
20537#
20538# since ls returns lowest version numbers first, reverse its output
20539if test x"${ac_cv_c_tkh}" = x ; then
20540  for i in \
20541		${srcdir}/../tk \
20542		`ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20543		${srcdir}/../../tk \
20544		`ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20545		${srcdir}/../../../tk \
20546		`ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20547    if test -f $i/generic/tk.h ; then
20548      ac_cv_c_tkh=`(cd $i/generic; pwd)`
20549      break
20550    fi
20551  done
20552fi
20553# finally check in a few common install locations
20554#
20555# since ls returns lowest version numbers first, reverse its output
20556if test x"${ac_cv_c_tkh}" = x ; then
20557  for i in \
20558		`ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20559		`ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20560		/usr/local/src/tk \
20561		/usr/local/lib/tk \
20562		${prefix}/include ; do
20563    if test -f $i/generic/tk.h ; then
20564      ac_cv_c_tkh=`(cd $i/generic; pwd)`
20565      break
20566    fi
20567  done
20568fi
20569# see if one is installed
20570if test x"${ac_cv_c_tkh}" = x ; then
20571   if test "${ac_cv_header_tk_h+set}" = set; then
20572  { echo "$as_me:$LINENO: checking for tk.h" >&5
20573echo $ECHO_N "checking for tk.h... $ECHO_C" >&6; }
20574if test "${ac_cv_header_tk_h+set}" = set; then
20575  echo $ECHO_N "(cached) $ECHO_C" >&6
20576fi
20577{ echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20578echo "${ECHO_T}$ac_cv_header_tk_h" >&6; }
20579else
20580  # Is the header compilable?
20581{ echo "$as_me:$LINENO: checking tk.h usability" >&5
20582echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6; }
20583cat >conftest.$ac_ext <<_ACEOF
20584/* confdefs.h.  */
20585_ACEOF
20586cat confdefs.h >>conftest.$ac_ext
20587cat >>conftest.$ac_ext <<_ACEOF
20588/* end confdefs.h.  */
20589$ac_includes_default
20590#include <tk.h>
20591_ACEOF
20592rm -f conftest.$ac_objext
20593if { (ac_try="$ac_compile"
20594case "(($ac_try" in
20595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596  *) ac_try_echo=$ac_try;;
20597esac
20598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599  (eval "$ac_compile") 2>conftest.er1
20600  ac_status=$?
20601  grep -v '^ *+' conftest.er1 >conftest.err
20602  rm -f conftest.er1
20603  cat conftest.err >&5
20604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605  (exit $ac_status); } &&
20606	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20607  { (case "(($ac_try" in
20608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609  *) ac_try_echo=$ac_try;;
20610esac
20611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612  (eval "$ac_try") 2>&5
20613  ac_status=$?
20614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615  (exit $ac_status); }; } &&
20616	 { ac_try='test -s conftest.$ac_objext'
20617  { (case "(($ac_try" in
20618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619  *) ac_try_echo=$ac_try;;
20620esac
20621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622  (eval "$ac_try") 2>&5
20623  ac_status=$?
20624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625  (exit $ac_status); }; }; then
20626  ac_header_compiler=yes
20627else
20628  echo "$as_me: failed program was:" >&5
20629sed 's/^/| /' conftest.$ac_ext >&5
20630
20631	ac_header_compiler=no
20632fi
20633
20634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20635{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20636echo "${ECHO_T}$ac_header_compiler" >&6; }
20637
20638# Is the header present?
20639{ echo "$as_me:$LINENO: checking tk.h presence" >&5
20640echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6; }
20641cat >conftest.$ac_ext <<_ACEOF
20642/* confdefs.h.  */
20643_ACEOF
20644cat confdefs.h >>conftest.$ac_ext
20645cat >>conftest.$ac_ext <<_ACEOF
20646/* end confdefs.h.  */
20647#include <tk.h>
20648_ACEOF
20649if { (ac_try="$ac_cpp conftest.$ac_ext"
20650case "(($ac_try" in
20651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652  *) ac_try_echo=$ac_try;;
20653esac
20654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20656  ac_status=$?
20657  grep -v '^ *+' conftest.er1 >conftest.err
20658  rm -f conftest.er1
20659  cat conftest.err >&5
20660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661  (exit $ac_status); } >/dev/null; then
20662  if test -s conftest.err; then
20663    ac_cpp_err=$ac_c_preproc_warn_flag
20664    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20665  else
20666    ac_cpp_err=
20667  fi
20668else
20669  ac_cpp_err=yes
20670fi
20671if test -z "$ac_cpp_err"; then
20672  ac_header_preproc=yes
20673else
20674  echo "$as_me: failed program was:" >&5
20675sed 's/^/| /' conftest.$ac_ext >&5
20676
20677  ac_header_preproc=no
20678fi
20679
20680rm -f conftest.err conftest.$ac_ext
20681{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20682echo "${ECHO_T}$ac_header_preproc" >&6; }
20683
20684# So?  What about this header?
20685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20686  yes:no: )
20687    { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20688echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20689    { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20690echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20691    ac_header_preproc=yes
20692    ;;
20693  no:yes:* )
20694    { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20695echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20696    { echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
20697echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
20698    { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20699echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20700    { echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
20701echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20702    { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20703echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20704    { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20705echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20706
20707    ;;
20708esac
20709{ echo "$as_me:$LINENO: checking for tk.h" >&5
20710echo $ECHO_N "checking for tk.h... $ECHO_C" >&6; }
20711if test "${ac_cv_header_tk_h+set}" = set; then
20712  echo $ECHO_N "(cached) $ECHO_C" >&6
20713else
20714  ac_cv_header_tk_h=$ac_header_preproc
20715fi
20716{ echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20717echo "${ECHO_T}$ac_cv_header_tk_h" >&6; }
20718
20719fi
20720if test $ac_cv_header_tk_h = yes; then
20721  ac_cv_c_tkh=installed
20722else
20723  ac_cv_c_tkh=""
20724fi
20725
20726
20727fi
20728
20729fi
20730
20731if test x"${ac_cv_c_tkh}" != x ; then
20732  no_tk=""
20733  if test x"${ac_cv_c_tkh}" = x"installed" ; then
20734    { echo "$as_me:$LINENO: result: is installed" >&5
20735echo "${ECHO_T}is installed" >&6; }
20736    TKHDIR=""
20737  else
20738    { echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20739echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6; }
20740    # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20741    TKHDIR="-I${ac_cv_c_tkh}"
20742  fi
20743else
20744  TKHDIR="# no Tk directory found"
20745  { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20746echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20747  no_tk=true
20748fi
20749
20750
20751
20752
20753{ echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20754echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6; }
20755if test x"${ac_cv_c_itclh}" = x ; then
20756  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20757    if test -f $i/generic/itcl.h ; then
20758      ac_cv_c_itclh=`(cd $i/generic; pwd)`
20759      break
20760    fi
20761  done
20762fi
20763if test x"${ac_cv_c_itclh}" = x ; then
20764  ITCLHDIR="# no Itcl private headers found"
20765  { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20766echo "$as_me: error: Can't find Itcl private headers" >&2;}
20767   { (exit 1); exit 1; }; }
20768fi
20769if test x"${ac_cv_c_itclh}" != x ; then
20770     ITCLHDIR="-I${ac_cv_c_itclh}"
20771fi
20772# should always be here
20773#     ITCLLIB="../itcl/itcl/unix/libitcl.a"
20774
20775#AC_SUBST(ITCLLIB)
20776
20777
20778{ echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20779echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6; }
20780if test x"${ac_cv_c_itkh}" = x ; then
20781  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20782    if test -f $i/generic/itk.h ; then
20783      ac_cv_c_itkh=`(cd $i/generic; pwd)`
20784      break
20785    fi
20786  done
20787fi
20788if test x"${ac_cv_c_itkh}" = x ; then
20789  ITKHDIR="# no Itk private headers found"
20790  { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20791echo "$as_me: error: Can't find Itk private headers" >&2;}
20792   { (exit 1); exit 1; }; }
20793fi
20794if test x"${ac_cv_c_itkh}" != x ; then
20795     ITKHDIR="-I${ac_cv_c_itkh}"
20796fi
20797# should always be here
20798#     ITKLIB="../itcl/itk/unix/libitk.a"
20799
20800#AC_SUBST(ITKLIB)
20801
20802
20803
20804	   # now look for Tk library stuff
20805
20806	   tkdir="../tk/${configdir}/"
20807
20808	   TK_DEPS="${tkdir}${TK_LIB_FILE}"
20809
20810	   # now look for Itcl library stuff
20811
20812
20813#
20814# Ok, lets find the itcl configuration
20815# First, look for one uninstalled.
20816# the alternative search directory is invoked by --with-itclconfig
20817#
20818
20819if test x"${no_itcl}" = x ; then
20820  # we reset no_itcl in case something fails here
20821  no_itcl=true
20822
20823# Check whether --with-itclconfig was given.
20824if test "${with_itclconfig+set}" = set; then
20825  withval=$with_itclconfig; with_itclconfig=${withval}
20826fi
20827
20828  { echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20829echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6; }
20830  if test "${ac_cv_c_itclconfig+set}" = set; then
20831  echo $ECHO_N "(cached) $ECHO_C" >&6
20832else
20833
20834
20835  # First check to see if --with-itclconfig was specified.
20836  if test x"${with_itclconfig}" != x ; then
20837    if test -f "${with_itclconfig}/itclConfig.sh" ; then
20838      ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20839    else
20840      { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20841echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20842   { (exit 1); exit 1; }; }
20843    fi
20844  fi
20845
20846  # then check for a private Itcl library
20847  if test x"${ac_cv_c_itclconfig}" = x ; then
20848    for i in \
20849		../itcl/itcl \
20850		`ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20851		../../itcl \
20852		`ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20853		../../../itcl \
20854		`ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20855      if test -f "$i/itclConfig.sh" ; then
20856        ac_cv_c_itclconfig=`(cd $i; pwd)`
20857	break
20858      fi
20859    done
20860  fi
20861  # check in a few common install locations
20862  if test x"${ac_cv_c_itclconfig}" = x ; then
20863    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20864      if test -f "$i/itclConfig.sh" ; then
20865        ac_cv_c_itclconfig=`(cd $i; pwd)`
20866	break
20867      fi
20868    done
20869  fi
20870  # check in a few other private locations
20871  if test x"${ac_cv_c_itclconfig}" = x ; then
20872    for i in \
20873		${srcdir}/../itcl/itcl \
20874		`ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20875      if test -f "$i/itclConfig.sh" ; then
20876        ac_cv_c_itclconfig=`(cd $i; pwd)`
20877	break
20878      fi
20879    done
20880  fi
20881
20882fi
20883
20884  if test x"${ac_cv_c_itclconfig}" = x ; then
20885    ITCLCONFIG="# no Itcl configs found"
20886    { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20887echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
20888  else
20889    no_itcl=
20890    ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
20891    { echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20892echo "${ECHO_T}found $ITCLCONFIG" >&6; }
20893  fi
20894fi
20895
20896           if test -z "${no_itcl}"; then
20897
20898    if test -f "$ITCLCONFIG" ; then
20899      . $ITCLCONFIG
20900    fi
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913	     ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
20914	     ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
20915           fi
20916
20917
20918	   # now look for Itk library stuff
20919
20920#
20921# Ok, lets find the itk configuration
20922# First, look for one uninstalled.
20923# the alternative search directory is invoked by --with-itkconfig
20924#
20925
20926if test x"${no_itk}" = x ; then
20927  # we reset no_itk in case something fails here
20928  no_itk=true
20929
20930# Check whether --with-itkconfig was given.
20931if test "${with_itkconfig+set}" = set; then
20932  withval=$with_itkconfig; with_itkconfig=${withval}
20933fi
20934
20935  { echo "$as_me:$LINENO: checking for Itk configuration" >&5
20936echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6; }
20937  if test "${ac_cv_c_itkconfig+set}" = set; then
20938  echo $ECHO_N "(cached) $ECHO_C" >&6
20939else
20940
20941
20942  # First check to see if --with-itkconfig was specified.
20943  if test x"${with_itkconfig}" != x ; then
20944    if test -f "${with_itkconfig}/itkConfig.sh" ; then
20945      ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20946    else
20947      { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20948echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20949   { (exit 1); exit 1; }; }
20950    fi
20951  fi
20952
20953  # then check for a private Itk library
20954  if test x"${ac_cv_c_itkconfig}" = x ; then
20955    for i in \
20956		../itcl/itk \
20957		`ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20958		../../itk \
20959		`ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20960		../../../itk \
20961		`ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20962      if test -f "$i/itkConfig.sh" ; then
20963        ac_cv_c_itkconfig=`(cd $i; pwd)`
20964	break
20965      fi
20966    done
20967  fi
20968  # check in a few common install locations
20969  if test x"${ac_cv_c_itkconfig}" = x ; then
20970    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20971      if test -f "$i/itkConfig.sh" ; then
20972        ac_cv_c_itkconfig=`(cd $i; pwd)`
20973	break
20974      fi
20975    done
20976  fi
20977  # check in a few other private locations
20978  if test x"${ac_cv_c_itkconfig}" = x ; then
20979    for i in \
20980		${srcdir}/../itcl/itk \
20981		`ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20982      if test -f "$i/itkConfig.sh" ; then
20983        ac_cv_c_itkconfig=`(cd $i; pwd)`
20984	break
20985      fi
20986    done
20987  fi
20988
20989fi
20990
20991  if test x"${ac_cv_c_itkconfig}" = x ; then
20992    ITKCONFIG="# no Itk configs found"
20993    { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20994echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
20995  else
20996    no_itk=
20997    ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
20998    { echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20999echo "${ECHO_T}found $ITKCONFIG" >&6; }
21000  fi
21001fi
21002
21003
21004           if test -z "${no_itcl}"; then
21005
21006    if test -f "$ITKCONFIG" ; then
21007      . $ITKCONFIG
21008    fi
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021	     ITKLIB="${ITK_BUILD_LIB_SPEC}"
21022	     ITK_DEPS="${ITK_LIB_FULL_PATH}"
21023           fi
21024
21025           ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
21026
21027	   # Include some libraries that Tcl and Tk want.
21028	   TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
21029	   # Yes, the ordering seems wrong here.  But it isn't.
21030	   # TK_LIBS is the list of libraries that need to be linked
21031	   # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
21032	   # were in LIBS then any link tests after this point would
21033	   # try to include things like `$(LIBGUI)', which wouldn't work.
21034	   GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
21035
21036           CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21037           CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21038           CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
21039	   CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21040	   CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21041	   CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21042	   CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
21043
21044	   if test x$gdb_cv_os_cygwin = xyes; then
21045	      WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21046	      WIN32LDAPP="-Wl,--subsystem,console"
21047	      CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21048	   fi
21049	fi
21050    fi
21051
21052    subdirs="$subdirs gdbtk"
21053
21054fi
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069{ echo "$as_me:$LINENO: checking for X" >&5
21070echo $ECHO_N "checking for X... $ECHO_C" >&6; }
21071
21072
21073# Check whether --with-x was given.
21074if test "${with_x+set}" = set; then
21075  withval=$with_x;
21076fi
21077
21078# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21079if test "x$with_x" = xno; then
21080  # The user explicitly disabled X.
21081  have_x=disabled
21082else
21083  case $x_includes,$x_libraries in #(
21084    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
21085echo "$as_me: error: Cannot use X directory names containing '" >&2;}
21086   { (exit 1); exit 1; }; };; #(
21087    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
21088  echo $ECHO_N "(cached) $ECHO_C" >&6
21089else
21090  # One or both of the vars are not set, and there is no cached value.
21091ac_x_includes=no ac_x_libraries=no
21092rm -f -r conftest.dir
21093if mkdir conftest.dir; then
21094  cd conftest.dir
21095  cat >Imakefile <<'_ACEOF'
21096incroot:
21097	@echo incroot='${INCROOT}'
21098usrlibdir:
21099	@echo usrlibdir='${USRLIBDIR}'
21100libdir:
21101	@echo libdir='${LIBDIR}'
21102_ACEOF
21103  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21104    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21105    for ac_var in incroot usrlibdir libdir; do
21106      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21107    done
21108    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21109    for ac_extension in a so sl; do
21110      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21111	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21112	ac_im_usrlibdir=$ac_im_libdir; break
21113      fi
21114    done
21115    # Screen out bogus values from the imake configuration.  They are
21116    # bogus both because they are the default anyway, and because
21117    # using them would break gcc on systems where it needs fixed includes.
21118    case $ac_im_incroot in
21119	/usr/include) ac_x_includes= ;;
21120	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21121    esac
21122    case $ac_im_usrlibdir in
21123	/usr/lib | /lib) ;;
21124	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21125    esac
21126  fi
21127  cd ..
21128  rm -f -r conftest.dir
21129fi
21130
21131# Standard set of common directories for X headers.
21132# Check X11 before X11Rn because it is often a symlink to the current release.
21133ac_x_header_dirs='
21134/usr/X11/include
21135/usr/X11R6/include
21136/usr/X11R5/include
21137/usr/X11R4/include
21138
21139/usr/include/X11
21140/usr/include/X11R6
21141/usr/include/X11R5
21142/usr/include/X11R4
21143
21144/usr/local/X11/include
21145/usr/local/X11R6/include
21146/usr/local/X11R5/include
21147/usr/local/X11R4/include
21148
21149/usr/local/include/X11
21150/usr/local/include/X11R6
21151/usr/local/include/X11R5
21152/usr/local/include/X11R4
21153
21154/usr/X386/include
21155/usr/x386/include
21156/usr/XFree86/include/X11
21157
21158/usr/include
21159/usr/local/include
21160/usr/unsupported/include
21161/usr/athena/include
21162/usr/local/x11r5/include
21163/usr/lpp/Xamples/include
21164
21165/usr/openwin/include
21166/usr/openwin/share/include'
21167
21168if test "$ac_x_includes" = no; then
21169  # Guess where to find include files, by looking for Xlib.h.
21170  # First, try using that file with no special directory specified.
21171  cat >conftest.$ac_ext <<_ACEOF
21172/* confdefs.h.  */
21173_ACEOF
21174cat confdefs.h >>conftest.$ac_ext
21175cat >>conftest.$ac_ext <<_ACEOF
21176/* end confdefs.h.  */
21177#include <X11/Xlib.h>
21178_ACEOF
21179if { (ac_try="$ac_cpp conftest.$ac_ext"
21180case "(($ac_try" in
21181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182  *) ac_try_echo=$ac_try;;
21183esac
21184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21186  ac_status=$?
21187  grep -v '^ *+' conftest.er1 >conftest.err
21188  rm -f conftest.er1
21189  cat conftest.err >&5
21190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191  (exit $ac_status); } >/dev/null; then
21192  if test -s conftest.err; then
21193    ac_cpp_err=$ac_c_preproc_warn_flag
21194    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21195  else
21196    ac_cpp_err=
21197  fi
21198else
21199  ac_cpp_err=yes
21200fi
21201if test -z "$ac_cpp_err"; then
21202  # We can compile using X headers with no special include directory.
21203ac_x_includes=
21204else
21205  echo "$as_me: failed program was:" >&5
21206sed 's/^/| /' conftest.$ac_ext >&5
21207
21208  for ac_dir in $ac_x_header_dirs; do
21209  if test -r "$ac_dir/X11/Xlib.h"; then
21210    ac_x_includes=$ac_dir
21211    break
21212  fi
21213done
21214fi
21215
21216rm -f conftest.err conftest.$ac_ext
21217fi # $ac_x_includes = no
21218
21219if test "$ac_x_libraries" = no; then
21220  # Check for the libraries.
21221  # See if we find them without any special options.
21222  # Don't add to $LIBS permanently.
21223  ac_save_LIBS=$LIBS
21224  LIBS="-lXt $LIBS"
21225  cat >conftest.$ac_ext <<_ACEOF
21226/* confdefs.h.  */
21227_ACEOF
21228cat confdefs.h >>conftest.$ac_ext
21229cat >>conftest.$ac_ext <<_ACEOF
21230/* end confdefs.h.  */
21231#include <X11/Xlib.h>
21232int
21233main ()
21234{
21235XrmInitialize ()
21236  ;
21237  return 0;
21238}
21239_ACEOF
21240rm -f conftest.$ac_objext conftest$ac_exeext
21241if { (ac_try="$ac_link"
21242case "(($ac_try" in
21243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244  *) ac_try_echo=$ac_try;;
21245esac
21246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247  (eval "$ac_link") 2>conftest.er1
21248  ac_status=$?
21249  grep -v '^ *+' conftest.er1 >conftest.err
21250  rm -f conftest.er1
21251  cat conftest.err >&5
21252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253  (exit $ac_status); } &&
21254	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21255  { (case "(($ac_try" in
21256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257  *) ac_try_echo=$ac_try;;
21258esac
21259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260  (eval "$ac_try") 2>&5
21261  ac_status=$?
21262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263  (exit $ac_status); }; } &&
21264	 { ac_try='test -s conftest$ac_exeext'
21265  { (case "(($ac_try" in
21266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267  *) ac_try_echo=$ac_try;;
21268esac
21269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270  (eval "$ac_try") 2>&5
21271  ac_status=$?
21272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273  (exit $ac_status); }; }; then
21274  LIBS=$ac_save_LIBS
21275# We can link X programs with no special library path.
21276ac_x_libraries=
21277else
21278  echo "$as_me: failed program was:" >&5
21279sed 's/^/| /' conftest.$ac_ext >&5
21280
21281	LIBS=$ac_save_LIBS
21282for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21283do
21284  # Don't even attempt the hair of trying to link an X program!
21285  for ac_extension in a so sl; do
21286    if test -r "$ac_dir/libXt.$ac_extension"; then
21287      ac_x_libraries=$ac_dir
21288      break 2
21289    fi
21290  done
21291done
21292fi
21293
21294rm -f core conftest.err conftest.$ac_objext \
21295      conftest$ac_exeext conftest.$ac_ext
21296fi # $ac_x_libraries = no
21297
21298case $ac_x_includes,$ac_x_libraries in #(
21299  no,* | *,no | *\'*)
21300    # Didn't find X, or a directory has "'" in its name.
21301    ac_cv_have_x="have_x=no";; #(
21302  *)
21303    # Record where we found X for the cache.
21304    ac_cv_have_x="have_x=yes\
21305	ac_x_includes='$ac_x_includes'\
21306	ac_x_libraries='$ac_x_libraries'"
21307esac
21308fi
21309;; #(
21310    *) have_x=yes;;
21311  esac
21312  eval "$ac_cv_have_x"
21313fi # $with_x != no
21314
21315if test "$have_x" != yes; then
21316  { echo "$as_me:$LINENO: result: $have_x" >&5
21317echo "${ECHO_T}$have_x" >&6; }
21318  no_x=yes
21319else
21320  # If each of the values was on the command line, it overrides each guess.
21321  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21322  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21323  # Update the cache value to reflect the command line values.
21324  ac_cv_have_x="have_x=yes\
21325	ac_x_includes='$x_includes'\
21326	ac_x_libraries='$x_libraries'"
21327  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21328echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
21329fi
21330
21331
21332# Check whether we should enable the TUI, but only do so if we really
21333# can.
21334if test x"$enable_tui" = xyes; then
21335  if test -d $srcdir/tui; then
21336    if test "$ac_cv_search_waddstr" != no; then
21337      CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21338      CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21339      CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21340      CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21341      ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21342      CONFIG_ALL="${CONFIG_ALL} all-tui"
21343      CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21344      CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21345      CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21346    else
21347      { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21348echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21349    fi
21350  fi
21351fi
21352
21353# Unlike the sim directory, whether a simulator is linked is controlled by
21354# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21355# This code just checks for a few cases where we'd like to ignore those
21356# definitions, even when they're present in the '.mt' file.  These cases
21357# are when --disable-sim is specified, or if the simulator directory is
21358# not part of the source tree.
21359#
21360# Check whether --enable-sim was given.
21361if test "${enable_sim+set}" = set; then
21362  enableval=$enable_sim; echo "enable_sim = $enable_sim";
21363 echo "enableval = ${enableval}";
21364 case "${enableval}" in
21365  yes) ignore_sim=false ;;
21366  no)  ignore_sim=true ;;
21367  *)   ignore_sim=false ;;
21368 esac
21369else
21370  ignore_sim=false
21371fi
21372
21373
21374if test ! -d "${srcdir}/../sim"; then
21375  ignore_sim=true
21376fi
21377
21378if test "${ignore_sim}" = "true"; then
21379    IGNORE_SIM="SIM="
21380    IGNORE_SIM_OBS="SIM_OBS="
21381else
21382    IGNORE_SIM=""
21383    IGNORE_SIM_OBS=""
21384
21385cat >>confdefs.h <<\_ACEOF
21386#define WITH_SIM 1
21387_ACEOF
21388
21389fi
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404# List of host floatformats.
21405
21406cat >>confdefs.h <<_ACEOF
21407#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21408_ACEOF
21409
21410
21411cat >>confdefs.h <<_ACEOF
21412#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21413_ACEOF
21414
21415
21416cat >>confdefs.h <<_ACEOF
21417#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21418_ACEOF
21419
21420
21421# target_subdir is used by the testsuite to find the target libraries.
21422target_subdir=
21423if test "${host}" != "${target}"; then
21424    target_subdir="${target_alias}/"
21425fi
21426
21427
21428frags=
21429if test "${target}" = "${host}"; then
21430  host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21431  if test ! -f ${host_makefile_frag}; then
21432    { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21433echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21434   { (exit 1); exit 1; }; }
21435  fi
21436  frags="$frags $host_makefile_frag"
21437else
21438  host_makefile_frag=/dev/null
21439fi
21440
21441target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21442if test ! -f ${target_makefile_frag}; then
21443  { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21444echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21445   { (exit 1); exit 1; }; }
21446fi
21447frags="$frags $target_makefile_frag"
21448
21449
21450
21451
21452
21453hostfile=`sed -n '
21454s/XM_FILE[ 	]*=[ 	]*\([^ 	]*\)/\1/p
21455' ${host_makefile_frag}`
21456
21457targetfile=`sed -n '
21458s/DEPRECATED_TM_FILE[ 	]*=[ 	]*\([^ 	]*\)/\1/p
21459' ${target_makefile_frag}`
21460
21461if test "${target}" = "${host}"; then
21462# We pick this up from the host configuration file (.mh) because we
21463# do not have a native configuration Makefile fragment.
21464nativefile=`sed -n '
21465s/NAT_FILE[ 	]*=[ 	]*\([^ 	]*\)/\1/p
21466' ${host_makefile_frag}`
21467fi
21468
21469
21470if test x"${gdb_osabi}" != x ; then
21471
21472cat >>confdefs.h <<_ACEOF
21473#define GDB_OSABI_DEFAULT $gdb_osabi
21474_ACEOF
21475
21476fi
21477
21478# Enable multi-ice-gdb-server.
21479# Check whether --enable-multi-ice was given.
21480if test "${enable_multi_ice+set}" = set; then
21481  enableval=$enable_multi_ice; case $enableval in
21482    yes | no)
21483      ;;
21484    *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21485echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21486   { (exit 1); exit 1; }; } ;;
21487  esac
21488fi
21489
21490if test "x$enable_multi_ice" = xyes; then
21491   subdirs="$subdirs multi-ice"
21492
21493fi
21494
21495# We only build gdbserver automatically if host and target are the same.
21496if test "x$target" = "x$host"; then
21497  { echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21498echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6; }
21499  if test "x$build_gdbserver" = xyes; then
21500    { echo "$as_me:$LINENO: result: yes" >&5
21501echo "${ECHO_T}yes" >&6; }
21502    subdirs="$subdirs gdbserver"
21503
21504  else
21505    { echo "$as_me:$LINENO: result: no" >&5
21506echo "${ECHO_T}no" >&6; }
21507  fi
21508fi
21509
21510# We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21511if test "x$build_rdi_share" = xyes; then
21512   subdirs="$subdirs rdi-share"
21513
21514fi
21515
21516# We configure the nlm subdirectory on netware targets, as instructed
21517# by configure.tgt.
21518if test "x$build_nlm" = xyes; then
21519   subdirs="$subdirs nlm"
21520
21521fi
21522
21523# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21524# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21525# to an empty version.
21526
21527files=
21528links=
21529
21530rm -f xm.h
21531xm_h=""
21532if test "${hostfile}" != ""; then
21533    xm_h=xm.h
21534    case "${hostfile}" in
21535      xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21536      * ) GDB_XM_FILE="${hostfile}"
21537    esac
21538    files="${files} ${GDB_XM_FILE}"
21539    links="${links} xm.h"
21540
21541cat >>confdefs.h <<_ACEOF
21542#define GDB_XM_FILE "${GDB_XM_FILE}"
21543_ACEOF
21544
21545fi
21546
21547
21548rm -f tm.h
21549tm_h=""
21550if test "${targetfile}" != ""; then
21551    tm_h=tm.h
21552    case "${targetfile}" in
21553      tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21554      * ) GDB_TM_FILE="${targetfile}"
21555    esac
21556    files="${files} ${GDB_TM_FILE}"
21557    links="${links} tm.h"
21558
21559cat >>confdefs.h <<_ACEOF
21560#define GDB_TM_FILE "${GDB_TM_FILE}"
21561_ACEOF
21562
21563fi
21564
21565
21566rm -f nm.h
21567nm_h=""
21568if test "${nativefile}" != ""; then
21569    nm_h=nm.h
21570    case "${nativefile}" in
21571      nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21572      * ) GDB_NM_FILE="${nativefile}"
21573    esac
21574    files="${files} ${GDB_NM_FILE}"
21575    links="${links} nm.h"
21576
21577cat >>confdefs.h <<_ACEOF
21578#define GDB_NM_FILE "${GDB_NM_FILE}"
21579_ACEOF
21580
21581fi
21582
21583
21584ac_sources="$files"
21585ac_dests="$links"
21586while test -n "$ac_sources"; do
21587  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21588  set $ac_sources; ac_source=$1; shift; ac_sources=$*
21589  ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21590done
21591ac_config_links="$ac_config_links $ac_config_links_1"
21592
21593
21594
21595
21596
21597
21598cat >>confdefs.h <<\_ACEOF
21599#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21600_ACEOF
21601
21602
21603
21604
21605
21606# Check whether --with-libiconv-prefix was given.
21607if test "${with_libiconv_prefix+set}" = set; then
21608  withval=$with_libiconv_prefix;
21609    for dir in `echo "$withval" | tr : ' '`; do
21610      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21611      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21612    done
21613
21614fi
21615
21616
21617  { echo "$as_me:$LINENO: checking for iconv" >&5
21618echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
21619if test "${am_cv_func_iconv+set}" = set; then
21620  echo $ECHO_N "(cached) $ECHO_C" >&6
21621else
21622
21623    am_cv_func_iconv="no, consider installing GNU libiconv"
21624    am_cv_lib_iconv=no
21625    cat >conftest.$ac_ext <<_ACEOF
21626/* confdefs.h.  */
21627_ACEOF
21628cat confdefs.h >>conftest.$ac_ext
21629cat >>conftest.$ac_ext <<_ACEOF
21630/* end confdefs.h.  */
21631#include <stdlib.h>
21632#include <iconv.h>
21633int
21634main ()
21635{
21636iconv_t cd = iconv_open("","");
21637       iconv(cd,NULL,NULL,NULL,NULL);
21638       iconv_close(cd);
21639  ;
21640  return 0;
21641}
21642_ACEOF
21643rm -f conftest.$ac_objext conftest$ac_exeext
21644if { (ac_try="$ac_link"
21645case "(($ac_try" in
21646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647  *) ac_try_echo=$ac_try;;
21648esac
21649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650  (eval "$ac_link") 2>conftest.er1
21651  ac_status=$?
21652  grep -v '^ *+' conftest.er1 >conftest.err
21653  rm -f conftest.er1
21654  cat conftest.err >&5
21655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656  (exit $ac_status); } &&
21657	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21658  { (case "(($ac_try" in
21659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660  *) ac_try_echo=$ac_try;;
21661esac
21662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663  (eval "$ac_try") 2>&5
21664  ac_status=$?
21665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666  (exit $ac_status); }; } &&
21667	 { ac_try='test -s conftest$ac_exeext'
21668  { (case "(($ac_try" in
21669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670  *) ac_try_echo=$ac_try;;
21671esac
21672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673  (eval "$ac_try") 2>&5
21674  ac_status=$?
21675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676  (exit $ac_status); }; }; then
21677  am_cv_func_iconv=yes
21678else
21679  echo "$as_me: failed program was:" >&5
21680sed 's/^/| /' conftest.$ac_ext >&5
21681
21682
21683fi
21684
21685rm -f core conftest.err conftest.$ac_objext \
21686      conftest$ac_exeext conftest.$ac_ext
21687    if test "$am_cv_func_iconv" != yes; then
21688      am_save_LIBS="$LIBS"
21689      LIBS="$LIBS -liconv"
21690      cat >conftest.$ac_ext <<_ACEOF
21691/* confdefs.h.  */
21692_ACEOF
21693cat confdefs.h >>conftest.$ac_ext
21694cat >>conftest.$ac_ext <<_ACEOF
21695/* end confdefs.h.  */
21696#include <stdlib.h>
21697#include <iconv.h>
21698int
21699main ()
21700{
21701iconv_t cd = iconv_open("","");
21702         iconv(cd,NULL,NULL,NULL,NULL);
21703         iconv_close(cd);
21704  ;
21705  return 0;
21706}
21707_ACEOF
21708rm -f conftest.$ac_objext conftest$ac_exeext
21709if { (ac_try="$ac_link"
21710case "(($ac_try" in
21711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712  *) ac_try_echo=$ac_try;;
21713esac
21714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715  (eval "$ac_link") 2>conftest.er1
21716  ac_status=$?
21717  grep -v '^ *+' conftest.er1 >conftest.err
21718  rm -f conftest.er1
21719  cat conftest.err >&5
21720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721  (exit $ac_status); } &&
21722	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21723  { (case "(($ac_try" in
21724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725  *) ac_try_echo=$ac_try;;
21726esac
21727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728  (eval "$ac_try") 2>&5
21729  ac_status=$?
21730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731  (exit $ac_status); }; } &&
21732	 { ac_try='test -s conftest$ac_exeext'
21733  { (case "(($ac_try" in
21734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735  *) ac_try_echo=$ac_try;;
21736esac
21737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738  (eval "$ac_try") 2>&5
21739  ac_status=$?
21740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741  (exit $ac_status); }; }; then
21742  am_cv_lib_iconv=yes
21743        am_cv_func_iconv=yes
21744else
21745  echo "$as_me: failed program was:" >&5
21746sed 's/^/| /' conftest.$ac_ext >&5
21747
21748
21749fi
21750
21751rm -f core conftest.err conftest.$ac_objext \
21752      conftest$ac_exeext conftest.$ac_ext
21753      LIBS="$am_save_LIBS"
21754    fi
21755
21756fi
21757{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21758echo "${ECHO_T}$am_cv_func_iconv" >&6; }
21759  if test "$am_cv_func_iconv" = yes; then
21760
21761cat >>confdefs.h <<\_ACEOF
21762#define HAVE_ICONV 1
21763_ACEOF
21764
21765    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
21766echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
21767    if test "${am_cv_proto_iconv+set}" = set; then
21768  echo $ECHO_N "(cached) $ECHO_C" >&6
21769else
21770
21771      cat >conftest.$ac_ext <<_ACEOF
21772/* confdefs.h.  */
21773_ACEOF
21774cat confdefs.h >>conftest.$ac_ext
21775cat >>conftest.$ac_ext <<_ACEOF
21776/* end confdefs.h.  */
21777
21778#include <stdlib.h>
21779#include <iconv.h>
21780extern
21781#ifdef __cplusplus
21782"C"
21783#endif
21784#if defined(__STDC__) || defined(__cplusplus)
21785size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21786#else
21787size_t iconv();
21788#endif
21789
21790int
21791main ()
21792{
21793
21794  ;
21795  return 0;
21796}
21797_ACEOF
21798rm -f conftest.$ac_objext
21799if { (ac_try="$ac_compile"
21800case "(($ac_try" in
21801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802  *) ac_try_echo=$ac_try;;
21803esac
21804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805  (eval "$ac_compile") 2>conftest.er1
21806  ac_status=$?
21807  grep -v '^ *+' conftest.er1 >conftest.err
21808  rm -f conftest.er1
21809  cat conftest.err >&5
21810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811  (exit $ac_status); } &&
21812	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21813  { (case "(($ac_try" in
21814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815  *) ac_try_echo=$ac_try;;
21816esac
21817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21818  (eval "$ac_try") 2>&5
21819  ac_status=$?
21820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821  (exit $ac_status); }; } &&
21822	 { ac_try='test -s conftest.$ac_objext'
21823  { (case "(($ac_try" in
21824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825  *) ac_try_echo=$ac_try;;
21826esac
21827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828  (eval "$ac_try") 2>&5
21829  ac_status=$?
21830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831  (exit $ac_status); }; }; then
21832  am_cv_proto_iconv_arg1=""
21833else
21834  echo "$as_me: failed program was:" >&5
21835sed 's/^/| /' conftest.$ac_ext >&5
21836
21837	am_cv_proto_iconv_arg1="const"
21838fi
21839
21840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21841      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);"
21842fi
21843
21844    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21845    { echo "$as_me:$LINENO: result: ${ac_t:-
21846         }$am_cv_proto_iconv" >&5
21847echo "${ECHO_T}${ac_t:-
21848         }$am_cv_proto_iconv" >&6; }
21849
21850cat >>confdefs.h <<_ACEOF
21851#define ICONV_CONST $am_cv_proto_iconv_arg1
21852_ACEOF
21853
21854  fi
21855  LIBICONV=
21856  if test "$am_cv_lib_iconv" = yes; then
21857    LIBICONV="-liconv"
21858  fi
21859
21860
21861
21862ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21863
21864ac_config_commands="$ac_config_commands default"
21865
21866cat >confcache <<\_ACEOF
21867# This file is a shell script that caches the results of configure
21868# tests run on this system so they can be shared between configure
21869# scripts and configure runs, see configure's option --config-cache.
21870# It is not useful on other systems.  If it contains results you don't
21871# want to keep, you may remove or edit it.
21872#
21873# config.status only pays attention to the cache file if you give it
21874# the --recheck option to rerun configure.
21875#
21876# `ac_cv_env_foo' variables (set or unset) will be overridden when
21877# loading this file, other *unset* `ac_cv_foo' will be assigned the
21878# following values.
21879
21880_ACEOF
21881
21882# The following way of writing the cache mishandles newlines in values,
21883# but we know of no workaround that is simple, portable, and efficient.
21884# So, we kill variables containing newlines.
21885# Ultrix sh set writes to stderr and can't be redirected directly,
21886# and sets the high bit in the cache file unless we assign to the vars.
21887(
21888  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21889    eval ac_val=\$$ac_var
21890    case $ac_val in #(
21891    *${as_nl}*)
21892      case $ac_var in #(
21893      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21894echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21895      esac
21896      case $ac_var in #(
21897      _ | IFS | as_nl) ;; #(
21898      *) $as_unset $ac_var ;;
21899      esac ;;
21900    esac
21901  done
21902
21903  (set) 2>&1 |
21904    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21905    *${as_nl}ac_space=\ *)
21906      # `set' does not quote correctly, so add quotes (double-quote
21907      # substitution turns \\\\ into \\, and sed turns \\ into \).
21908      sed -n \
21909	"s/'/'\\\\''/g;
21910	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21911      ;; #(
21912    *)
21913      # `set' quotes correctly as required by POSIX, so do not add quotes.
21914      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21915      ;;
21916    esac |
21917    sort
21918) |
21919  sed '
21920     /^ac_cv_env_/b end
21921     t clear
21922     :clear
21923     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21924     t end
21925     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21926     :end' >>confcache
21927if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21928  if test -w "$cache_file"; then
21929    test "x$cache_file" != "x/dev/null" &&
21930      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21931echo "$as_me: updating cache $cache_file" >&6;}
21932    cat confcache >$cache_file
21933  else
21934    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21935echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21936  fi
21937fi
21938rm -f confcache
21939
21940test "x$prefix" = xNONE && prefix=$ac_default_prefix
21941# Let make expand exec_prefix.
21942test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21943
21944DEFS=-DHAVE_CONFIG_H
21945
21946ac_libobjs=
21947ac_ltlibobjs=
21948for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21949  # 1. Remove the extension, and $U if already installed.
21950  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21951  ac_i=`echo "$ac_i" | sed "$ac_script"`
21952  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21953  #    will be set to the directory where LIBOBJS objects are built.
21954  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21955  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21956done
21957LIBOBJS=$ac_libobjs
21958
21959LTLIBOBJS=$ac_ltlibobjs
21960
21961
21962if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21963  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21964Usually this means the macro was only invoked conditionally." >&5
21965echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21966Usually this means the macro was only invoked conditionally." >&2;}
21967   { (exit 1); exit 1; }; }
21968fi
21969
21970: ${CONFIG_STATUS=./config.status}
21971ac_clean_files_save=$ac_clean_files
21972ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21973{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21974echo "$as_me: creating $CONFIG_STATUS" >&6;}
21975cat >$CONFIG_STATUS <<_ACEOF
21976#! $SHELL
21977# Generated by $as_me.
21978# Run this file to recreate the current configuration.
21979# Compiler output produced by configure, useful for debugging
21980# configure, is in config.log if it exists.
21981
21982debug=false
21983ac_cs_recheck=false
21984ac_cs_silent=false
21985SHELL=\${CONFIG_SHELL-$SHELL}
21986_ACEOF
21987
21988cat >>$CONFIG_STATUS <<\_ACEOF
21989## --------------------- ##
21990## M4sh Initialization.  ##
21991## --------------------- ##
21992
21993# Be Bourne compatible
21994if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21995  emulate sh
21996  NULLCMD=:
21997  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21998  # is contrary to our usage.  Disable this feature.
21999  alias -g '${1+"$@"}'='"$@"'
22000  setopt NO_GLOB_SUBST
22001else
22002  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22003fi
22004BIN_SH=xpg4; export BIN_SH # for Tru64
22005DUALCASE=1; export DUALCASE # for MKS sh
22006
22007
22008# PATH needs CR
22009# Avoid depending upon Character Ranges.
22010as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22011as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22012as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22013as_cr_digits='0123456789'
22014as_cr_alnum=$as_cr_Letters$as_cr_digits
22015
22016# The user is always right.
22017if test "${PATH_SEPARATOR+set}" != set; then
22018  echo "#! /bin/sh" >conf$$.sh
22019  echo  "exit 0"   >>conf$$.sh
22020  chmod +x conf$$.sh
22021  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22022    PATH_SEPARATOR=';'
22023  else
22024    PATH_SEPARATOR=:
22025  fi
22026  rm -f conf$$.sh
22027fi
22028
22029# Support unset when possible.
22030if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22031  as_unset=unset
22032else
22033  as_unset=false
22034fi
22035
22036
22037# IFS
22038# We need space, tab and new line, in precisely that order.  Quoting is
22039# there to prevent editors from complaining about space-tab.
22040# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22041# splitting by setting IFS to empty value.)
22042as_nl='
22043'
22044IFS=" ""	$as_nl"
22045
22046# Find who we are.  Look in the path if we contain no directory separator.
22047case $0 in
22048  *[\\/]* ) as_myself=$0 ;;
22049  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22050for as_dir in $PATH
22051do
22052  IFS=$as_save_IFS
22053  test -z "$as_dir" && as_dir=.
22054  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22055done
22056IFS=$as_save_IFS
22057
22058     ;;
22059esac
22060# We did not find ourselves, most probably we were run as `sh COMMAND'
22061# in which case we are not to be found in the path.
22062if test "x$as_myself" = x; then
22063  as_myself=$0
22064fi
22065if test ! -f "$as_myself"; then
22066  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22067  { (exit 1); exit 1; }
22068fi
22069
22070# Work around bugs in pre-3.0 UWIN ksh.
22071for as_var in ENV MAIL MAILPATH
22072do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22073done
22074PS1='$ '
22075PS2='> '
22076PS4='+ '
22077
22078# NLS nuisances.
22079for as_var in \
22080  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22081  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22082  LC_TELEPHONE LC_TIME
22083do
22084  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22085    eval $as_var=C; export $as_var
22086  else
22087    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22088  fi
22089done
22090
22091# Required to use basename.
22092if expr a : '\(a\)' >/dev/null 2>&1 &&
22093   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22094  as_expr=expr
22095else
22096  as_expr=false
22097fi
22098
22099if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22100  as_basename=basename
22101else
22102  as_basename=false
22103fi
22104
22105
22106# Name of the executable.
22107as_me=`$as_basename -- "$0" ||
22108$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22109	 X"$0" : 'X\(//\)$' \| \
22110	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22111echo X/"$0" |
22112    sed '/^.*\/\([^/][^/]*\)\/*$/{
22113	    s//\1/
22114	    q
22115	  }
22116	  /^X\/\(\/\/\)$/{
22117	    s//\1/
22118	    q
22119	  }
22120	  /^X\/\(\/\).*/{
22121	    s//\1/
22122	    q
22123	  }
22124	  s/.*/./; q'`
22125
22126# CDPATH.
22127$as_unset CDPATH
22128
22129
22130
22131  as_lineno_1=$LINENO
22132  as_lineno_2=$LINENO
22133  test "x$as_lineno_1" != "x$as_lineno_2" &&
22134  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22135
22136  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22137  # uniformly replaced by the line number.  The first 'sed' inserts a
22138  # line-number line after each line using $LINENO; the second 'sed'
22139  # does the real work.  The second script uses 'N' to pair each
22140  # line-number line with the line containing $LINENO, and appends
22141  # trailing '-' during substitution so that $LINENO is not a special
22142  # case at line end.
22143  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22144  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22145  # E. McMahon (1931-1989) for sed's syntax.  :-)
22146  sed -n '
22147    p
22148    /[$]LINENO/=
22149  ' <$as_myself |
22150    sed '
22151      s/[$]LINENO.*/&-/
22152      t lineno
22153      b
22154      :lineno
22155      N
22156      :loop
22157      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22158      t loop
22159      s/-\n.*//
22160    ' >$as_me.lineno &&
22161  chmod +x "$as_me.lineno" ||
22162    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22163   { (exit 1); exit 1; }; }
22164
22165  # Don't try to exec as it changes $[0], causing all sort of problems
22166  # (the dirname of $[0] is not the place where we might find the
22167  # original and so on.  Autoconf is especially sensitive to this).
22168  . "./$as_me.lineno"
22169  # Exit status is that of the last command.
22170  exit
22171}
22172
22173
22174if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22175  as_dirname=dirname
22176else
22177  as_dirname=false
22178fi
22179
22180ECHO_C= ECHO_N= ECHO_T=
22181case `echo -n x` in
22182-n*)
22183  case `echo 'x\c'` in
22184  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22185  *)   ECHO_C='\c';;
22186  esac;;
22187*)
22188  ECHO_N='-n';;
22189esac
22190
22191if expr a : '\(a\)' >/dev/null 2>&1 &&
22192   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22193  as_expr=expr
22194else
22195  as_expr=false
22196fi
22197
22198rm -f conf$$ conf$$.exe conf$$.file
22199if test -d conf$$.dir; then
22200  rm -f conf$$.dir/conf$$.file
22201else
22202  rm -f conf$$.dir
22203  mkdir conf$$.dir
22204fi
22205echo >conf$$.file
22206if ln -s conf$$.file conf$$ 2>/dev/null; then
22207  as_ln_s='ln -s'
22208  # ... but there are two gotchas:
22209  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22210  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22211  # In both cases, we have to default to `cp -p'.
22212  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22213    as_ln_s='cp -p'
22214elif ln conf$$.file conf$$ 2>/dev/null; then
22215  as_ln_s=ln
22216else
22217  as_ln_s='cp -p'
22218fi
22219rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22220rmdir conf$$.dir 2>/dev/null
22221
22222if mkdir -p . 2>/dev/null; then
22223  as_mkdir_p=:
22224else
22225  test -d ./-p && rmdir ./-p
22226  as_mkdir_p=false
22227fi
22228
22229# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22230# systems may use methods other than mode bits to determine executability.
22231cat >conf$$.file <<_ASEOF
22232#! /bin/sh
22233exit 0
22234_ASEOF
22235chmod +x conf$$.file
22236if test -x conf$$.file >/dev/null 2>&1; then
22237  as_executable_p="test -x"
22238else
22239  as_executable_p=:
22240fi
22241rm -f conf$$.file
22242
22243# Sed expression to map a string onto a valid CPP name.
22244as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22245
22246# Sed expression to map a string onto a valid variable name.
22247as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22248
22249
22250exec 6>&1
22251
22252# Save the log message, to keep $[0] and so on meaningful, and to
22253# report actual input values of CONFIG_FILES etc. instead of their
22254# values after options handling.
22255ac_log="
22256This file was extended by $as_me, which was
22257generated by GNU Autoconf 2.60-MirPorts-2.  Invocation command line was
22258
22259  CONFIG_FILES    = $CONFIG_FILES
22260  CONFIG_HEADERS  = $CONFIG_HEADERS
22261  CONFIG_LINKS    = $CONFIG_LINKS
22262  CONFIG_COMMANDS = $CONFIG_COMMANDS
22263  $ $0 $@
22264
22265on `(hostname || uname -n) 2>/dev/null | sed 1q`
22266"
22267
22268_ACEOF
22269
22270cat >>$CONFIG_STATUS <<_ACEOF
22271# Files that config.status was made for.
22272config_files="$ac_config_files"
22273config_headers="$ac_config_headers"
22274config_links="$ac_config_links"
22275config_commands="$ac_config_commands"
22276
22277_ACEOF
22278
22279cat >>$CONFIG_STATUS <<\_ACEOF
22280ac_cs_usage="\
22281\`$as_me' instantiates files from templates according to the
22282current configuration.
22283
22284Usage: $0 [OPTIONS] [FILE]...
22285
22286  -h, --help       print this help, then exit
22287  -V, --version    print version number, then exit
22288  -q, --quiet      do not print progress messages
22289  -d, --debug      don't remove temporary files
22290      --recheck    update $as_me by reconfiguring in the same conditions
22291  --file=FILE[:TEMPLATE]
22292		   instantiate the configuration file FILE
22293  --header=FILE[:TEMPLATE]
22294		   instantiate the configuration header FILE
22295
22296Configuration files:
22297$config_files
22298
22299Configuration headers:
22300$config_headers
22301
22302Configuration links:
22303$config_links
22304
22305Configuration commands:
22306$config_commands
22307
22308Report bugs to <bug-autoconf@gnu.org>."
22309
22310_ACEOF
22311cat >>$CONFIG_STATUS <<_ACEOF
22312ac_cs_version="\\
22313config.status
22314configured by $0, generated by GNU Autoconf 2.60-MirPorts-2,
22315  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22316
22317Copyright (C) 2006 Free Software Foundation, Inc.
22318This config.status script is free software; the Free Software Foundation
22319gives unlimited permission to copy, distribute and modify it."
22320
22321ac_pwd='$ac_pwd'
22322srcdir='$srcdir'
22323INSTALL='$INSTALL'
22324_ACEOF
22325
22326cat >>$CONFIG_STATUS <<\_ACEOF
22327# If no file are specified by the user, then we need to provide default
22328# value.  By we need to know if files were specified by the user.
22329ac_need_defaults=:
22330while test $# != 0
22331do
22332  case $1 in
22333  --*=*)
22334    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22335    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22336    ac_shift=:
22337    ;;
22338  *)
22339    ac_option=$1
22340    ac_optarg=$2
22341    ac_shift=shift
22342    ;;
22343  esac
22344
22345  case $ac_option in
22346  # Handling of the options.
22347  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22348    ac_cs_recheck=: ;;
22349  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22350    echo "$ac_cs_version"; exit ;;
22351  --debug | --debu | --deb | --de | --d | -d )
22352    debug=: ;;
22353  --file | --fil | --fi | --f )
22354    $ac_shift
22355    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22356    ac_need_defaults=false;;
22357  --header | --heade | --head | --hea )
22358    $ac_shift
22359    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22360    ac_need_defaults=false;;
22361  --he | --h)
22362    # Conflict between --help and --header
22363    { echo "$as_me: error: ambiguous option: $1
22364Try \`$0 --help' for more information." >&2
22365   { (exit 1); exit 1; }; };;
22366  --help | --hel | -h )
22367    echo "$ac_cs_usage"; exit ;;
22368  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22369  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22370    ac_cs_silent=: ;;
22371
22372  # This is an error.
22373  -*) { echo "$as_me: error: unrecognized option: $1
22374Try \`$0 --help' for more information." >&2
22375   { (exit 1); exit 1; }; } ;;
22376
22377  *) ac_config_targets="$ac_config_targets $1"
22378     ac_need_defaults=false ;;
22379
22380  esac
22381  shift
22382done
22383
22384ac_configure_extra_args=
22385
22386if $ac_cs_silent; then
22387  exec 6>/dev/null
22388  ac_configure_extra_args="$ac_configure_extra_args --silent"
22389fi
22390
22391_ACEOF
22392cat >>$CONFIG_STATUS <<_ACEOF
22393if \$ac_cs_recheck; then
22394  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22395  CONFIG_SHELL=$SHELL
22396  export CONFIG_SHELL
22397  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22398fi
22399
22400_ACEOF
22401cat >>$CONFIG_STATUS <<\_ACEOF
22402exec 5>>config.log
22403{
22404  echo
22405  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22406## Running $as_me. ##
22407_ASBOX
22408  echo "$ac_log"
22409} >&5
22410
22411_ACEOF
22412cat >>$CONFIG_STATUS <<_ACEOF
22413#
22414# INIT-COMMANDS
22415#
22416
22417gdb_host_cpu=$gdb_host_cpu
22418gdb_target_cpu=$gdb_target_cpu
22419nativefile=$nativefile
22420
22421
22422_ACEOF
22423
22424cat >>$CONFIG_STATUS <<\_ACEOF
22425
22426# Handling of arguments.
22427for ac_config_target in $ac_config_targets
22428do
22429  case $ac_config_target in
22430    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22431    "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22432    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22433    ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22434    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22435
22436  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22437echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22438   { (exit 1); exit 1; }; };;
22439  esac
22440done
22441
22442
22443# If the user did not use the arguments to specify the items to instantiate,
22444# then the envvar interface is used.  Set only those that are not.
22445# We use the long form for the default assignment because of an extremely
22446# bizarre bug on SunOS 4.1.3.
22447if $ac_need_defaults; then
22448  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22449  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22450  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22451  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22452fi
22453
22454# Have a temporary directory for convenience.  Make it in the build tree
22455# simply because there is no reason against having it here, and in addition,
22456# creating and moving files from /tmp can sometimes cause problems.
22457# Hook for its removal unless debugging.
22458# Note that there is a small window in which the directory will not be cleaned:
22459# after its creation but before its name has been assigned to `$tmp'.
22460$debug ||
22461{
22462  tmp=
22463  trap 'exit_status=$?
22464  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22465' 0
22466  trap '{ (exit 1); exit 1; }' 1 2 13 15
22467}
22468# Create a (secure) tmp directory for tmp files.
22469
22470{
22471  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22472  test -n "$tmp" && test -d "$tmp"
22473}  ||
22474{
22475  tmp=./conf$$-$RANDOM
22476  (umask 077 && mkdir "$tmp")
22477} ||
22478{
22479   echo "$me: cannot create a temporary directory in ." >&2
22480   { (exit 1); exit 1; }
22481}
22482
22483#
22484# Set up the sed scripts for CONFIG_FILES section.
22485#
22486
22487# No need to generate the scripts if there are no CONFIG_FILES.
22488# This happens for instance when ./config.status config.h
22489if test -n "$CONFIG_FILES"; then
22490
22491_ACEOF
22492
22493# Create sed commands to just substitute file output variables.
22494
22495# Remaining file output variables are in a fragment that also has non-file
22496# output varibles.
22497
22498
22499
22500ac_delim='%!_!# '
22501for ac_last_try in false false false false false :; do
22502  cat >conf$$subs.sed <<_ACEOF
22503SHELL!$SHELL$ac_delim
22504PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22505PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22506PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22507PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22508PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22509PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22510exec_prefix!$exec_prefix$ac_delim
22511prefix!$prefix$ac_delim
22512program_transform_name!$program_transform_name$ac_delim
22513bindir!$bindir$ac_delim
22514sbindir!$sbindir$ac_delim
22515libexecdir!$libexecdir$ac_delim
22516datarootdir!$datarootdir$ac_delim
22517datadir!$datadir$ac_delim
22518sysconfdir!$sysconfdir$ac_delim
22519sharedstatedir!$sharedstatedir$ac_delim
22520localstatedir!$localstatedir$ac_delim
22521includedir!$includedir$ac_delim
22522oldincludedir!$oldincludedir$ac_delim
22523docdir!$docdir$ac_delim
22524infodir!$infodir$ac_delim
22525htmldir!$htmldir$ac_delim
22526dvidir!$dvidir$ac_delim
22527pdfdir!$pdfdir$ac_delim
22528psdir!$psdir$ac_delim
22529libdir!$libdir$ac_delim
22530localedir!$localedir$ac_delim
22531mandir!$mandir$ac_delim
22532DEFS!$DEFS$ac_delim
22533ECHO_C!$ECHO_C$ac_delim
22534ECHO_N!$ECHO_N$ac_delim
22535ECHO_T!$ECHO_T$ac_delim
22536LIBS!$LIBS$ac_delim
22537build_alias!$build_alias$ac_delim
22538host_alias!$host_alias$ac_delim
22539target_alias!$target_alias$ac_delim
22540MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22541MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22542MAINT!$MAINT$ac_delim
22543CC!$CC$ac_delim
22544CFLAGS!$CFLAGS$ac_delim
22545LDFLAGS!$LDFLAGS$ac_delim
22546CPPFLAGS!$CPPFLAGS$ac_delim
22547ac_ct_CC!$ac_ct_CC$ac_delim
22548EXEEXT!$EXEEXT$ac_delim
22549OBJEXT!$OBJEXT$ac_delim
22550CPP!$CPP$ac_delim
22551GREP!$GREP$ac_delim
22552EGREP!$EGREP$ac_delim
22553build!$build$ac_delim
22554build_cpu!$build_cpu$ac_delim
22555build_vendor!$build_vendor$ac_delim
22556build_os!$build_os$ac_delim
22557host!$host$ac_delim
22558host_cpu!$host_cpu$ac_delim
22559host_vendor!$host_vendor$ac_delim
22560host_os!$host_os$ac_delim
22561target!$target$ac_delim
22562target_cpu!$target_cpu$ac_delim
22563target_vendor!$target_vendor$ac_delim
22564target_os!$target_os$ac_delim
22565PACKAGE!$PACKAGE$ac_delim
22566subdirs!$subdirs$ac_delim
22567AWK!$AWK$ac_delim
22568INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22569INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22570INSTALL_DATA!$INSTALL_DATA$ac_delim
22571LN_S!$LN_S$ac_delim
22572RANLIB!$RANLIB$ac_delim
22573YACC!$YACC$ac_delim
22574YFLAGS!$YFLAGS$ac_delim
22575AR!$AR$ac_delim
22576DLLTOOL!$DLLTOOL$ac_delim
22577WINDRES!$WINDRES$ac_delim
22578MIG!$MIG$ac_delim
22579ALLOCA!$ALLOCA$ac_delim
22580CONFIG_LDFLAGS!$CONFIG_LDFLAGS$ac_delim
22581TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
22582TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
22583WARN_CFLAGS!$WARN_CFLAGS$ac_delim
22584WERROR_CFLAGS!$WERROR_CFLAGS$ac_delim
22585SER_HARDWIRE!$SER_HARDWIRE$ac_delim
22586WIN32LIBS!$WIN32LIBS$ac_delim
22587LIBGUI!$LIBGUI$ac_delim
22588GUI_CFLAGS_X!$GUI_CFLAGS_X$ac_delim
22589WIN32LDAPP!$WIN32LDAPP$ac_delim
22590TCL_VERSION!$TCL_VERSION$ac_delim
22591TCL_MAJOR_VERSION!$TCL_MAJOR_VERSION$ac_delim
22592TCL_MINOR_VERSION!$TCL_MINOR_VERSION$ac_delim
22593TCL_CC!$TCL_CC$ac_delim
22594_ACEOF
22595
22596  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22597    break
22598  elif $ac_last_try; then
22599    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22600echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22601   { (exit 1); exit 1; }; }
22602  else
22603    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22604  fi
22605done
22606
22607ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22608if test -n "$ac_eof"; then
22609  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22610  ac_eof=`expr $ac_eof + 1`
22611fi
22612
22613cat >>$CONFIG_STATUS <<_ACEOF
22614cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22615/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22616/^[	 ]*@host_makefile_frag@[	 ]*$/{
22617r $host_makefile_frag
22618d
22619}
22620/^[	 ]*@target_makefile_frag@[	 ]*$/{
22621r $target_makefile_frag
22622d
22623}
22624_ACEOF
22625sed '
22626s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22627s/^/s,@/; s/!/@,|#_!!_#|/
22628:n
22629t n
22630s/'"$ac_delim"'$/,g/; t
22631s/$/\\/; p
22632N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22633' >>$CONFIG_STATUS <conf$$subs.sed
22634rm -f conf$$subs.sed
22635cat >>$CONFIG_STATUS <<_ACEOF
22636CEOF$ac_eof
22637_ACEOF
22638
22639
22640ac_delim='%!_!# '
22641for ac_last_try in false false false false false :; do
22642  cat >conf$$subs.sed <<_ACEOF
22643TCL_DEFS!$TCL_DEFS$ac_delim
22644TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim
22645TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim
22646TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
22647TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim
22648TCL_DL_LIBS!$TCL_DL_LIBS$ac_delim
22649TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim
22650TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim
22651TCL_CC_SEARCH_FLAGS!$TCL_CC_SEARCH_FLAGS$ac_delim
22652TCL_COMPAT_OBJS!$TCL_COMPAT_OBJS$ac_delim
22653TCL_RANLIB!$TCL_RANLIB$ac_delim
22654TCL_BUILD_LIB_SPEC!$TCL_BUILD_LIB_SPEC$ac_delim
22655TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
22656TCL_LIB_VERSIONS_OK!$TCL_LIB_VERSIONS_OK$ac_delim
22657TK_VERSION!$TK_VERSION$ac_delim
22658TK_DEFS!$TK_DEFS$ac_delim
22659TK_BUILD_INCLUDES!$TK_BUILD_INCLUDES$ac_delim
22660TK_XINCLUDES!$TK_XINCLUDES$ac_delim
22661TK_XLIBSW!$TK_XLIBSW$ac_delim
22662TK_BUILD_LIB_SPEC!$TK_BUILD_LIB_SPEC$ac_delim
22663TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim
22664TCLHDIR!$TCLHDIR$ac_delim
22665TKHDIR!$TKHDIR$ac_delim
22666ITCLHDIR!$ITCLHDIR$ac_delim
22667ITKHDIR!$ITKHDIR$ac_delim
22668ITCL_VERSION!$ITCL_VERSION$ac_delim
22669ITCL_DEFS!$ITCL_DEFS$ac_delim
22670ITCL_BUILD_INCLUDES!$ITCL_BUILD_INCLUDES$ac_delim
22671ITCL_BUILD_LIB_SPEC!$ITCL_BUILD_LIB_SPEC$ac_delim
22672ITCL_LIB_SPEC!$ITCL_LIB_SPEC$ac_delim
22673ITK_VERSION!$ITK_VERSION$ac_delim
22674ITK_DEFS!$ITK_DEFS$ac_delim
22675ITK_BUILD_INCLUDES!$ITK_BUILD_INCLUDES$ac_delim
22676ITK_BUILD_LIB_SPEC!$ITK_BUILD_LIB_SPEC$ac_delim
22677ITK_LIB_SPEC!$ITK_LIB_SPEC$ac_delim
22678X_CFLAGS!$X_CFLAGS$ac_delim
22679X_LDFLAGS!$X_LDFLAGS$ac_delim
22680X_LIBS!$X_LIBS$ac_delim
22681TCL_DEPS!$TCL_DEPS$ac_delim
22682TK_DEPS!$TK_DEPS$ac_delim
22683ITCLLIB!$ITCLLIB$ac_delim
22684ITCL_DEPS!$ITCL_DEPS$ac_delim
22685ITKLIB!$ITKLIB$ac_delim
22686ITK_DEPS!$ITK_DEPS$ac_delim
22687GDBTKLIBS!$GDBTKLIBS$ac_delim
22688GDBTK_CFLAGS!$GDBTK_CFLAGS$ac_delim
22689GDBTK_SRC_DIR!$GDBTK_SRC_DIR$ac_delim
22690XMKMF!$XMKMF$ac_delim
22691IGNORE_SIM!$IGNORE_SIM$ac_delim
22692IGNORE_SIM_OBS!$IGNORE_SIM_OBS$ac_delim
22693ENABLE_CFLAGS!$ENABLE_CFLAGS$ac_delim
22694PROFILE_CFLAGS!$PROFILE_CFLAGS$ac_delim
22695CONFIG_OBS!$CONFIG_OBS$ac_delim
22696CONFIG_DEPS!$CONFIG_DEPS$ac_delim
22697CONFIG_SRCS!$CONFIG_SRCS$ac_delim
22698CONFIG_ALL!$CONFIG_ALL$ac_delim
22699CONFIG_CLEAN!$CONFIG_CLEAN$ac_delim
22700CONFIG_INSTALL!$CONFIG_INSTALL$ac_delim
22701CONFIG_UNINSTALL!$CONFIG_UNINSTALL$ac_delim
22702target_subdir!$target_subdir$ac_delim
22703frags!$frags$ac_delim
22704xm_h!$xm_h$ac_delim
22705tm_h!$tm_h$ac_delim
22706nm_h!$nm_h$ac_delim
22707LIBICONV!$LIBICONV$ac_delim
22708LIBOBJS!$LIBOBJS$ac_delim
22709LTLIBOBJS!$LTLIBOBJS$ac_delim
22710_ACEOF
22711
22712  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
22713    break
22714  elif $ac_last_try; then
22715    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22716echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22717   { (exit 1); exit 1; }; }
22718  else
22719    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22720  fi
22721done
22722
22723ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22724if test -n "$ac_eof"; then
22725  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22726  ac_eof=`expr $ac_eof + 1`
22727fi
22728
22729cat >>$CONFIG_STATUS <<_ACEOF
22730cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22731/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22732_ACEOF
22733sed '
22734s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22735s/^/s,@/; s/!/@,|#_!!_#|/
22736:n
22737t n
22738s/'"$ac_delim"'$/,g/; t
22739s/$/\\/; p
22740N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22741' >>$CONFIG_STATUS <conf$$subs.sed
22742rm -f conf$$subs.sed
22743cat >>$CONFIG_STATUS <<_ACEOF
22744:end
22745s/|#_!!_#|//g
22746CEOF$ac_eof
22747_ACEOF
22748
22749
22750# VPATH may cause trouble with some makes, so we remove $(srcdir),
22751# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22752# trailing colons and then remove the whole line if VPATH becomes empty
22753# (actually we leave an empty line to preserve line numbers).
22754if test "x$srcdir" = x.; then
22755  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22756s/:*\$(srcdir):*/:/
22757s/:*\${srcdir}:*/:/
22758s/:*@srcdir@:*/:/
22759s/^\([^=]*=[	 ]*\):*/\1/
22760s/:*$//
22761s/^[^=]*=[	 ]*$//
22762}'
22763fi
22764
22765cat >>$CONFIG_STATUS <<\_ACEOF
22766fi # test -n "$CONFIG_FILES"
22767
22768
22769for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
22770do
22771  case $ac_tag in
22772  :[FHLC]) ac_mode=$ac_tag; continue;;
22773  esac
22774  case $ac_mode$ac_tag in
22775  :[FHL]*:*);;
22776  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22777echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22778   { (exit 1); exit 1; }; };;
22779  :[FH]-) ac_tag=-:-;;
22780  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22781  esac
22782  ac_save_IFS=$IFS
22783  IFS=:
22784  set x $ac_tag
22785  IFS=$ac_save_IFS
22786  shift
22787  ac_file=$1
22788  shift
22789
22790  case $ac_mode in
22791  :L) ac_source=$1;;
22792  :[FH])
22793    ac_file_inputs=
22794    for ac_f
22795    do
22796      case $ac_f in
22797      -) ac_f="$tmp/stdin";;
22798      *) # Look for the file first in the build tree, then in the source tree
22799	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22800	 # because $ac_f cannot contain `:'.
22801	 test -f "$ac_f" ||
22802	   case $ac_f in
22803	   [\\/$]*) false;;
22804	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22805	   esac ||
22806	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22807echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22808   { (exit 1); exit 1; }; };;
22809      esac
22810      ac_file_inputs="$ac_file_inputs $ac_f"
22811    done
22812
22813    # Let's still pretend it is `configure' which instantiates (i.e., don't
22814    # use $as_me), people would be surprised to read:
22815    #    /* config.h.  Generated by config.status.  */
22816    configure_input="Generated from "`IFS=:
22817	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22818    if test x"$ac_file" != x-; then
22819      configure_input="$ac_file.  $configure_input"
22820      { echo "$as_me:$LINENO: creating $ac_file" >&5
22821echo "$as_me: creating $ac_file" >&6;}
22822    fi
22823
22824    case $ac_tag in
22825    *:-:* | *:-) cat >"$tmp/stdin";;
22826    esac
22827    ;;
22828  esac
22829
22830  ac_dir=`$as_dirname -- "$ac_file" ||
22831$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22832	 X"$ac_file" : 'X\(//\)[^/]' \| \
22833	 X"$ac_file" : 'X\(//\)$' \| \
22834	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22835echo X"$ac_file" |
22836    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22837	    s//\1/
22838	    q
22839	  }
22840	  /^X\(\/\/\)[^/].*/{
22841	    s//\1/
22842	    q
22843	  }
22844	  /^X\(\/\/\)$/{
22845	    s//\1/
22846	    q
22847	  }
22848	  /^X\(\/\).*/{
22849	    s//\1/
22850	    q
22851	  }
22852	  s/.*/./; q'`
22853  { as_dir="$ac_dir"
22854  case $as_dir in #(
22855  -*) as_dir=./$as_dir;;
22856  esac
22857  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22858    as_dirs=
22859    while :; do
22860      case $as_dir in #(
22861      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22862      *) as_qdir=$as_dir;;
22863      esac
22864      as_dirs="'$as_qdir' $as_dirs"
22865      as_dir=`$as_dirname -- "$as_dir" ||
22866$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22867	 X"$as_dir" : 'X\(//\)[^/]' \| \
22868	 X"$as_dir" : 'X\(//\)$' \| \
22869	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22870echo X"$as_dir" |
22871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22872	    s//\1/
22873	    q
22874	  }
22875	  /^X\(\/\/\)[^/].*/{
22876	    s//\1/
22877	    q
22878	  }
22879	  /^X\(\/\/\)$/{
22880	    s//\1/
22881	    q
22882	  }
22883	  /^X\(\/\).*/{
22884	    s//\1/
22885	    q
22886	  }
22887	  s/.*/./; q'`
22888      test -d "$as_dir" && break
22889    done
22890    test -z "$as_dirs" || eval "mkdir $as_dirs"
22891  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22892echo "$as_me: error: cannot create directory $as_dir" >&2;}
22893   { (exit 1); exit 1; }; }; }
22894  ac_builddir=.
22895
22896case "$ac_dir" in
22897.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22898*)
22899  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22900  # A ".." for each directory in $ac_dir_suffix.
22901  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22902  case $ac_top_builddir_sub in
22903  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22904  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22905  esac ;;
22906esac
22907ac_abs_top_builddir=$ac_pwd
22908ac_abs_builddir=$ac_pwd$ac_dir_suffix
22909# for backward compatibility:
22910ac_top_builddir=$ac_top_build_prefix
22911
22912case $srcdir in
22913  .)  # We are building in place.
22914    ac_srcdir=.
22915    ac_top_srcdir=$ac_top_builddir_sub
22916    ac_abs_top_srcdir=$ac_pwd ;;
22917  [\\/]* | ?:[\\/]* )  # Absolute name.
22918    ac_srcdir=$srcdir$ac_dir_suffix;
22919    ac_top_srcdir=$srcdir
22920    ac_abs_top_srcdir=$srcdir ;;
22921  *) # Relative name.
22922    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22923    ac_top_srcdir=$ac_top_build_prefix$srcdir
22924    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22925esac
22926ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22927
22928
22929  case $ac_mode in
22930  :F)
22931  #
22932  # CONFIG_FILE
22933  #
22934
22935  case $INSTALL in
22936  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22937  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22938  esac
22939_ACEOF
22940
22941cat >>$CONFIG_STATUS <<\_ACEOF
22942# If the template does not know about datarootdir, expand it.
22943# FIXME: This hack should be removed a few years after 2.60.
22944ac_datarootdir_hack=; ac_datarootdir_seen=
22945
22946case `sed -n '/datarootdir/ {
22947  p
22948  q
22949}
22950/@datadir@/p
22951/@docdir@/p
22952/@infodir@/p
22953/@localedir@/p
22954/@mandir@/p
22955' $ac_file_inputs` in
22956*datarootdir*) ac_datarootdir_seen=yes;;
22957*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22958  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22959echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22960_ACEOF
22961cat >>$CONFIG_STATUS <<_ACEOF
22962  ac_datarootdir_hack='
22963  s&@datadir@&$datadir&g
22964  s&@docdir@&$docdir&g
22965  s&@infodir@&$infodir&g
22966  s&@localedir@&$localedir&g
22967  s&@mandir@&$mandir&g
22968    s&\\\${datarootdir}&$datarootdir&g' ;;
22969esac
22970_ACEOF
22971
22972# Neutralize VPATH when `$srcdir' = `.'.
22973# Shell code in configure.ac might set extrasub.
22974# FIXME: do we really want to maintain this feature?
22975cat >>$CONFIG_STATUS <<_ACEOF
22976  sed "$ac_vpsub
22977$extrasub
22978_ACEOF
22979cat >>$CONFIG_STATUS <<\_ACEOF
22980:t
22981/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22982s&@configure_input@&$configure_input&;t t
22983s&@top_builddir@&$ac_top_builddir_sub&;t t
22984s&@srcdir@&$ac_srcdir&;t t
22985s&@abs_srcdir@&$ac_abs_srcdir&;t t
22986s&@top_srcdir@&$ac_top_srcdir&;t t
22987s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22988s&@builddir@&$ac_builddir&;t t
22989s&@abs_builddir@&$ac_abs_builddir&;t t
22990s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22991s&@INSTALL@&$ac_INSTALL&;t t
22992$ac_datarootdir_hack
22993" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22994
22995test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22996  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22997  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22998  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22999which seems to be undefined.  Please make sure it is defined." >&5
23000echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23001which seems to be undefined.  Please make sure it is defined." >&2;}
23002
23003  rm -f "$tmp/stdin"
23004  case $ac_file in
23005  -) cat "$tmp/out"; rm -f "$tmp/out";;
23006  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23007  esac
23008 ;;
23009  :H)
23010  #
23011  # CONFIG_HEADER
23012  #
23013_ACEOF
23014
23015# Transform confdefs.h into a sed script `conftest.defines', that
23016# substitutes the proper values into config.h.in to produce config.h.
23017rm -f conftest.defines conftest.tail
23018# First, append a space to every undef/define line, to ease matching.
23019echo 's/$/ /' >conftest.defines
23020# Then, protect against being on the right side of a sed subst, or in
23021# an unquoted here document, in config.status.  If some macros were
23022# called several times there might be several #defines for the same
23023# symbol, which is useless.  But do not sort them, since the last
23024# AC_DEFINE must be honored.
23025ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23026# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23027# NAME is the cpp macro being defined, VALUE is the value it is being given.
23028# PARAMS is the parameter list in the macro definition--in most cases, it's
23029# just an empty string.
23030ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23031ac_dB='\\)[	 (].*,\\1define\\2'
23032ac_dC=' '
23033ac_dD=' ,'
23034
23035uniq confdefs.h |
23036  sed -n '
23037	t rset
23038	:rset
23039	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23040	t ok
23041	d
23042	:ok
23043	s/[\\&,]/\\&/g
23044	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23045	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23046  ' >>conftest.defines
23047
23048# Remove the space that was appended to ease matching.
23049# Then replace #undef with comments.  This is necessary, for
23050# example, in the case of _POSIX_SOURCE, which is predefined and required
23051# on some systems where configure will not decide to define it.
23052# (The regexp can be short, since the line contains either #define or #undef.)
23053echo 's/ $//
23054s,^[	 #]*u.*,/* & */,' >>conftest.defines
23055
23056# Break up conftest.defines:
23057ac_max_sed_lines=50
23058
23059# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23060# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23061# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23062# et cetera.
23063ac_in='$ac_file_inputs'
23064ac_out='"$tmp/out1"'
23065ac_nxt='"$tmp/out2"'
23066
23067while :
23068do
23069  # Write a here document:
23070    cat >>$CONFIG_STATUS <<_ACEOF
23071    # First, check the format of the line:
23072    cat >"\$tmp/defines.sed" <<\\CEOF
23073/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23074/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23075b
23076:def
23077_ACEOF
23078  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23079  echo 'CEOF
23080    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23081  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23082  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23083  grep . conftest.tail >/dev/null || break
23084  rm -f conftest.defines
23085  mv conftest.tail conftest.defines
23086done
23087rm -f conftest.defines conftest.tail
23088
23089echo "ac_result=$ac_in" >>$CONFIG_STATUS
23090cat >>$CONFIG_STATUS <<\_ACEOF
23091  if test x"$ac_file" != x-; then
23092    echo "/* $configure_input  */" >"$tmp/config.h"
23093    cat "$ac_result" >>"$tmp/config.h"
23094    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23095      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23096echo "$as_me: $ac_file is unchanged" >&6;}
23097    else
23098      rm -f $ac_file
23099      mv "$tmp/config.h" $ac_file
23100    fi
23101  else
23102    echo "/* $configure_input  */"
23103    cat "$ac_result"
23104  fi
23105  rm -f "$tmp/out12"
23106 ;;
23107  :L)
23108  #
23109  # CONFIG_LINK
23110  #
23111
23112  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
23113echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
23114
23115  if test ! -r "$srcdir/$ac_source"; then
23116    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23117echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23118   { (exit 1); exit 1; }; }
23119  fi
23120  rm -f "$ac_file"
23121
23122  # Try a relative symlink, then a hard link, then a copy.
23123  case $srcdir in
23124  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23125      *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
23126  esac
23127  ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
23128    ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
23129    cp -p "$srcdir/$ac_source" "$ac_file" ||
23130    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
23131echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
23132   { (exit 1); exit 1; }; }
23133 ;;
23134  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23135echo "$as_me: executing $ac_file commands" >&6;}
23136 ;;
23137  esac
23138
23139
23140  case $ac_file$ac_mode in
23141    "default":C)
23142
23143sed -e '/^DEPRECATED_TM_FILE[ 	]*=/s,^DEPRECATED_TM_FILE[ 	]*=[ 	]*,&config/'"${gdb_target_cpu}"'/,
23144/^XM_FILE[ 	]*=/s,^XM_FILE[ 	]*=[ 	]*,&config/'"${gdb_host_cpu}"'/,
23145/^NAT_FILE[ 	]*=/s,^NAT_FILE[ 	]*=[ 	]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23146mv -f Makefile.tmp Makefile
23147
23148
23149case x$CONFIG_HEADERS in
23150xconfig.h:config.in)
23151echo > stamp-h ;;
23152esac
23153 ;;
23154
23155  esac
23156done # for ac_tag
23157
23158
23159{ (exit 0); exit 0; }
23160_ACEOF
23161chmod +x $CONFIG_STATUS
23162ac_clean_files=$ac_clean_files_save
23163
23164
23165# configure is writing to config.log, and then calls config.status.
23166# config.status does its own redirection, appending to config.log.
23167# Unfortunately, on DOS this fails, as config.log is still kept open
23168# by configure, so config.status won't be able to write to it; its
23169# output is simply discarded.  So we exec the FD to /dev/null,
23170# effectively closing config.log, so it can be properly (re)opened and
23171# appended to by config.status.  When coming back to configure, we
23172# need to make the FD available again.
23173if test "$no_create" != yes; then
23174  ac_cs_success=:
23175  ac_config_status_args=
23176  test "$silent" = yes &&
23177    ac_config_status_args="$ac_config_status_args --quiet"
23178  exec 5>/dev/null
23179  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23180  exec 5>>config.log
23181  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23182  # would make configure fail if this is the last instruction.
23183  $ac_cs_success || { (exit 1); exit 1; }
23184fi
23185
23186#
23187# CONFIG_SUBDIRS section.
23188#
23189if test "$no_recursion" != yes; then
23190
23191  # Remove --cache-file and --srcdir arguments so they do not pile up.
23192  ac_sub_configure_args=
23193  ac_prev=
23194  eval "set x $ac_configure_args"
23195  shift
23196  for ac_arg
23197  do
23198    if test -n "$ac_prev"; then
23199      ac_prev=
23200      continue
23201    fi
23202    case $ac_arg in
23203    -cache-file | --cache-file | --cache-fil | --cache-fi \
23204    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23205      ac_prev=cache_file ;;
23206    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23207    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23208    | --c=*)
23209      ;;
23210    --config-cache | -C)
23211      ;;
23212    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23213      ac_prev=srcdir ;;
23214    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23215      ;;
23216    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23217      ac_prev=prefix ;;
23218    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23219      ;;
23220    *)
23221      case $ac_arg in
23222      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23223      esac
23224      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23225    esac
23226  done
23227
23228  # Always prepend --prefix to ensure using the same prefix
23229  # in subdir configurations.
23230  ac_arg="--prefix=$prefix"
23231  case $ac_arg in
23232  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23233  esac
23234  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23235
23236  ac_popdir=`pwd`
23237  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23238
23239    # Do not complain, so a configure script can configure whichever
23240    # parts of a large source tree are present.
23241    test -d "$srcdir/$ac_dir" || continue
23242
23243    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23244    echo "$as_me:$LINENO: $ac_msg" >&5
23245    echo "$ac_msg" >&6
23246    { as_dir="$ac_dir"
23247  case $as_dir in #(
23248  -*) as_dir=./$as_dir;;
23249  esac
23250  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23251    as_dirs=
23252    while :; do
23253      case $as_dir in #(
23254      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23255      *) as_qdir=$as_dir;;
23256      esac
23257      as_dirs="'$as_qdir' $as_dirs"
23258      as_dir=`$as_dirname -- "$as_dir" ||
23259$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23260	 X"$as_dir" : 'X\(//\)[^/]' \| \
23261	 X"$as_dir" : 'X\(//\)$' \| \
23262	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23263echo X"$as_dir" |
23264    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23265	    s//\1/
23266	    q
23267	  }
23268	  /^X\(\/\/\)[^/].*/{
23269	    s//\1/
23270	    q
23271	  }
23272	  /^X\(\/\/\)$/{
23273	    s//\1/
23274	    q
23275	  }
23276	  /^X\(\/\).*/{
23277	    s//\1/
23278	    q
23279	  }
23280	  s/.*/./; q'`
23281      test -d "$as_dir" && break
23282    done
23283    test -z "$as_dirs" || eval "mkdir $as_dirs"
23284  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23285echo "$as_me: error: cannot create directory $as_dir" >&2;}
23286   { (exit 1); exit 1; }; }; }
23287    ac_builddir=.
23288
23289case "$ac_dir" in
23290.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23291*)
23292  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23293  # A ".." for each directory in $ac_dir_suffix.
23294  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23295  case $ac_top_builddir_sub in
23296  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23297  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23298  esac ;;
23299esac
23300ac_abs_top_builddir=$ac_pwd
23301ac_abs_builddir=$ac_pwd$ac_dir_suffix
23302# for backward compatibility:
23303ac_top_builddir=$ac_top_build_prefix
23304
23305case $srcdir in
23306  .)  # We are building in place.
23307    ac_srcdir=.
23308    ac_top_srcdir=$ac_top_builddir_sub
23309    ac_abs_top_srcdir=$ac_pwd ;;
23310  [\\/]* | ?:[\\/]* )  # Absolute name.
23311    ac_srcdir=$srcdir$ac_dir_suffix;
23312    ac_top_srcdir=$srcdir
23313    ac_abs_top_srcdir=$srcdir ;;
23314  *) # Relative name.
23315    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23316    ac_top_srcdir=$ac_top_build_prefix$srcdir
23317    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23318esac
23319ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23320
23321
23322    cd "$ac_dir"
23323
23324    # Check for guested configure; otherwise get Cygnus style configure.
23325    if test -f "$ac_srcdir/configure.gnu"; then
23326      ac_sub_configure=$ac_srcdir/configure.gnu
23327    elif test -f "$ac_srcdir/configure"; then
23328      ac_sub_configure=$ac_srcdir/configure
23329    elif test -f "$ac_srcdir/configure.in"; then
23330      # This should be Cygnus configure.
23331      ac_sub_configure=$ac_aux_dir/configure
23332    else
23333      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23334echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23335      ac_sub_configure=
23336    fi
23337
23338    # The recursion is here.
23339    if test -n "$ac_sub_configure"; then
23340      # Make the cache file name correct relative to the subdirectory.
23341      case $cache_file in
23342      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23343      *) # Relative name.
23344	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23345      esac
23346
23347      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23348echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23349      # The eval makes quoting arguments work.
23350      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23351	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23352	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23353echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23354   { (exit 1); exit 1; }; }
23355    fi
23356
23357    cd "$ac_popdir"
23358  done
23359fi
23360
23361
23362exit 0
23363