* Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
[external/binutils.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subdirs_all="$ac_subdirs_all doc testsuite"
313 ac_subdirs_all="$ac_subdirs_all gdbtk"
314 ac_subdirs_all="$ac_subdirs_all multi-ice"
315 ac_subdirs_all="$ac_subdirs_all gdbserver"
316 ac_subdirs_all="$ac_subdirs_all nlm"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
318 ac_subst_files='host_makefile_frag target_makefile_frag'
319
320 # Initialize some variables set by options.
321 ac_init_help=
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
325 cache_file=/dev/null
326 exec_prefix=NONE
327 no_create=
328 no_recursion=
329 prefix=NONE
330 program_prefix=NONE
331 program_suffix=NONE
332 program_transform_name=s,x,x,
333 silent=
334 site=
335 srcdir=
336 verbose=
337 x_includes=NONE
338 x_libraries=NONE
339
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
357
358 ac_prev=
359 for ac_option
360 do
361   # If the previous option needs an argument, assign it.
362   if test -n "$ac_prev"; then
363     eval "$ac_prev=\$ac_option"
364     ac_prev=
365     continue
366   fi
367
368   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370   # Accept the important Cygnus configure options, so we can diagnose typos.
371
372   case $ac_option in
373
374   -bindir | --bindir | --bindi | --bind | --bin | --bi)
375     ac_prev=bindir ;;
376   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377     bindir=$ac_optarg ;;
378
379   -build | --build | --buil | --bui | --bu)
380     ac_prev=build_alias ;;
381   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382     build_alias=$ac_optarg ;;
383
384   -cache-file | --cache-file | --cache-fil | --cache-fi \
385   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386     ac_prev=cache_file ;;
387   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389     cache_file=$ac_optarg ;;
390
391   --config-cache | -C)
392     cache_file=config.cache ;;
393
394   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395     ac_prev=datadir ;;
396   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397   | --da=*)
398     datadir=$ac_optarg ;;
399
400   -disable-* | --disable-*)
401     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402     # Reject names that are not valid shell variable names.
403     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405    { (exit 1); exit 1; }; }
406     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407     eval "enable_$ac_feature=no" ;;
408
409   -enable-* | --enable-*)
410     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411     # Reject names that are not valid shell variable names.
412     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414    { (exit 1); exit 1; }; }
415     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416     case $ac_option in
417       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418       *) ac_optarg=yes ;;
419     esac
420     eval "enable_$ac_feature='$ac_optarg'" ;;
421
422   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424   | --exec | --exe | --ex)
425     ac_prev=exec_prefix ;;
426   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428   | --exec=* | --exe=* | --ex=*)
429     exec_prefix=$ac_optarg ;;
430
431   -gas | --gas | --ga | --g)
432     # Obsolete; use --with-gas.
433     with_gas=yes ;;
434
435   -help | --help | --hel | --he | -h)
436     ac_init_help=long ;;
437   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438     ac_init_help=recursive ;;
439   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440     ac_init_help=short ;;
441
442   -host | --host | --hos | --ho)
443     ac_prev=host_alias ;;
444   -host=* | --host=* | --hos=* | --ho=*)
445     host_alias=$ac_optarg ;;
446
447   -includedir | --includedir | --includedi | --included | --include \
448   | --includ | --inclu | --incl | --inc)
449     ac_prev=includedir ;;
450   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451   | --includ=* | --inclu=* | --incl=* | --inc=*)
452     includedir=$ac_optarg ;;
453
454   -infodir | --infodir | --infodi | --infod | --info | --inf)
455     ac_prev=infodir ;;
456   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457     infodir=$ac_optarg ;;
458
459   -libdir | --libdir | --libdi | --libd)
460     ac_prev=libdir ;;
461   -libdir=* | --libdir=* | --libdi=* | --libd=*)
462     libdir=$ac_optarg ;;
463
464   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465   | --libexe | --libex | --libe)
466     ac_prev=libexecdir ;;
467   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468   | --libexe=* | --libex=* | --libe=*)
469     libexecdir=$ac_optarg ;;
470
471   -localstatedir | --localstatedir | --localstatedi | --localstated \
472   | --localstate | --localstat | --localsta | --localst \
473   | --locals | --local | --loca | --loc | --lo)
474     ac_prev=localstatedir ;;
475   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478     localstatedir=$ac_optarg ;;
479
480   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481     ac_prev=mandir ;;
482   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483     mandir=$ac_optarg ;;
484
485   -nfp | --nfp | --nf)
486     # Obsolete; use --without-fp.
487     with_fp=no ;;
488
489   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490   | --no-cr | --no-c | -n)
491     no_create=yes ;;
492
493   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495     no_recursion=yes ;;
496
497   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499   | --oldin | --oldi | --old | --ol | --o)
500     ac_prev=oldincludedir ;;
501   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504     oldincludedir=$ac_optarg ;;
505
506   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507     ac_prev=prefix ;;
508   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509     prefix=$ac_optarg ;;
510
511   -program-prefix | --program-prefix | --program-prefi | --program-pref \
512   | --program-pre | --program-pr | --program-p)
513     ac_prev=program_prefix ;;
514   -program-prefix=* | --program-prefix=* | --program-prefi=* \
515   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516     program_prefix=$ac_optarg ;;
517
518   -program-suffix | --program-suffix | --program-suffi | --program-suff \
519   | --program-suf | --program-su | --program-s)
520     ac_prev=program_suffix ;;
521   -program-suffix=* | --program-suffix=* | --program-suffi=* \
522   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523     program_suffix=$ac_optarg ;;
524
525   -program-transform-name | --program-transform-name \
526   | --program-transform-nam | --program-transform-na \
527   | --program-transform-n | --program-transform- \
528   | --program-transform | --program-transfor \
529   | --program-transfo | --program-transf \
530   | --program-trans | --program-tran \
531   | --progr-tra | --program-tr | --program-t)
532     ac_prev=program_transform_name ;;
533   -program-transform-name=* | --program-transform-name=* \
534   | --program-transform-nam=* | --program-transform-na=* \
535   | --program-transform-n=* | --program-transform-=* \
536   | --program-transform=* | --program-transfor=* \
537   | --program-transfo=* | --program-transf=* \
538   | --program-trans=* | --program-tran=* \
539   | --progr-tra=* | --program-tr=* | --program-t=*)
540     program_transform_name=$ac_optarg ;;
541
542   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543   | -silent | --silent | --silen | --sile | --sil)
544     silent=yes ;;
545
546   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547     ac_prev=sbindir ;;
548   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549   | --sbi=* | --sb=*)
550     sbindir=$ac_optarg ;;
551
552   -sharedstatedir | --sharedstatedir | --sharedstatedi \
553   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554   | --sharedst | --shareds | --shared | --share | --shar \
555   | --sha | --sh)
556     ac_prev=sharedstatedir ;;
557   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560   | --sha=* | --sh=*)
561     sharedstatedir=$ac_optarg ;;
562
563   -site | --site | --sit)
564     ac_prev=site ;;
565   -site=* | --site=* | --sit=*)
566     site=$ac_optarg ;;
567
568   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569     ac_prev=srcdir ;;
570   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571     srcdir=$ac_optarg ;;
572
573   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574   | --syscon | --sysco | --sysc | --sys | --sy)
575     ac_prev=sysconfdir ;;
576   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578     sysconfdir=$ac_optarg ;;
579
580   -target | --target | --targe | --targ | --tar | --ta | --t)
581     ac_prev=target_alias ;;
582   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583     target_alias=$ac_optarg ;;
584
585   -v | -verbose | --verbose | --verbos | --verbo | --verb)
586     verbose=yes ;;
587
588   -version | --version | --versio | --versi | --vers | -V)
589     ac_init_version=: ;;
590
591   -with-* | --with-*)
592     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593     # Reject names that are not valid shell variable names.
594     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595       { echo "$as_me: error: invalid package name: $ac_package" >&2
596    { (exit 1); exit 1; }; }
597     ac_package=`echo $ac_package| sed 's/-/_/g'`
598     case $ac_option in
599       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600       *) ac_optarg=yes ;;
601     esac
602     eval "with_$ac_package='$ac_optarg'" ;;
603
604   -without-* | --without-*)
605     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606     # Reject names that are not valid shell variable names.
607     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608       { echo "$as_me: error: invalid package name: $ac_package" >&2
609    { (exit 1); exit 1; }; }
610     ac_package=`echo $ac_package | sed 's/-/_/g'`
611     eval "with_$ac_package=no" ;;
612
613   --x)
614     # Obsolete; use --with-x.
615     with_x=yes ;;
616
617   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618   | --x-incl | --x-inc | --x-in | --x-i)
619     ac_prev=x_includes ;;
620   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622     x_includes=$ac_optarg ;;
623
624   -x-libraries | --x-libraries | --x-librarie | --x-librari \
625   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626     ac_prev=x_libraries ;;
627   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629     x_libraries=$ac_optarg ;;
630
631   -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633    { (exit 1); exit 1; }; }
634     ;;
635
636   *=*)
637     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638     # Reject names that are not valid shell variable names.
639     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641    { (exit 1); exit 1; }; }
642     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643     eval "$ac_envvar='$ac_optarg'"
644     export $ac_envvar ;;
645
646   *)
647     # FIXME: should be removed in autoconf 3.0.
648     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652     ;;
653
654   esac
655 done
656
657 if test -n "$ac_prev"; then
658   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659   { echo "$as_me: error: missing argument to $ac_option" >&2
660    { (exit 1); exit 1; }; }
661 fi
662
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
665 do
666   eval ac_val=$`echo $ac_var`
667   case $ac_val in
668     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670    { (exit 1); exit 1; }; };;
671   esac
672 done
673
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676               localstatedir libdir includedir oldincludedir infodir mandir
677 do
678   eval ac_val=$`echo $ac_var`
679   case $ac_val in
680     [\\/$]* | ?:[\\/]* ) ;;
681     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682    { (exit 1); exit 1; }; };;
683   esac
684 done
685
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
689 build=$build_alias
690 host=$host_alias
691 target=$target_alias
692
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695   if test "x$build_alias" = x; then
696     cross_compiling=maybe
697     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698     If a cross compiler is detected then cross compile mode will be used." >&2
699   elif test "x$build_alias" != "x$host_alias"; then
700     cross_compiling=yes
701   fi
702 fi
703
704 ac_tool_prefix=
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707 test "$silent" = yes && exec 6>/dev/null
708
709
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712   ac_srcdir_defaulted=yes
713   # Try the directory containing this script, then its parent.
714   ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716          X"$0" : 'X\(//\)[^/]' \| \
717          X"$0" : 'X\(//\)$' \| \
718          X"$0" : 'X\(/\)' \| \
719          .     : '\(.\)' 2>/dev/null ||
720 echo X"$0" |
721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723           /^X\(\/\/\)$/{ s//\1/; q; }
724           /^X\(\/\).*/{ s//\1/; q; }
725           s/.*/./; q'`
726   srcdir=$ac_confdir
727   if test ! -r $srcdir/$ac_unique_file; then
728     srcdir=..
729   fi
730 else
731   ac_srcdir_defaulted=no
732 fi
733 if test ! -r $srcdir/$ac_unique_file; then
734   if test "$ac_srcdir_defaulted" = yes; then
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736    { (exit 1); exit 1; }; }
737   else
738     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739    { (exit 1); exit 1; }; }
740   fi
741 fi
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744    { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
759 ac_env_CC_value=$CC
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778
779 #
780 # Report the --help message.
781 #
782 if test "$ac_init_help" = "long"; then
783   # Omit some internal or obsolete options to make the list less imposing.
784   # This message is too long to be a string in the A/UX 3.1 sh.
785   cat <<_ACEOF
786 \`configure' configures this package to adapt to many kinds of systems.
787
788 Usage: $0 [OPTION]... [VAR=VALUE]...
789
790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
791 VAR=VALUE.  See below for descriptions of some of the useful variables.
792
793 Defaults for the options are specified in brackets.
794
795 Configuration:
796   -h, --help              display this help and exit
797       --help=short        display options specific to this package
798       --help=recursive    display the short help of all the included packages
799   -V, --version           display version information and exit
800   -q, --quiet, --silent   do not print \`checking...' messages
801       --cache-file=FILE   cache test results in FILE [disabled]
802   -C, --config-cache      alias for \`--cache-file=config.cache'
803   -n, --no-create         do not create output files
804       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
805
806 _ACEOF
807
808   cat <<_ACEOF
809 Installation directories:
810   --prefix=PREFIX         install architecture-independent files in PREFIX
811                           [$ac_default_prefix]
812   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
813                           [PREFIX]
814
815 By default, \`make install' will install all the files in
816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818 for instance \`--prefix=\$HOME'.
819
820 For better control, use the options below.
821
822 Fine tuning of the installation directories:
823   --bindir=DIR           user executables [EPREFIX/bin]
824   --sbindir=DIR          system admin executables [EPREFIX/sbin]
825   --libexecdir=DIR       program executables [EPREFIX/libexec]
826   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
827   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
828   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
829   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
830   --libdir=DIR           object code libraries [EPREFIX/lib]
831   --includedir=DIR       C header files [PREFIX/include]
832   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
833   --infodir=DIR          info documentation [PREFIX/info]
834   --mandir=DIR           man documentation [PREFIX/man]
835 _ACEOF
836
837   cat <<\_ACEOF
838
839 Program names:
840   --program-prefix=PREFIX            prepend PREFIX to installed program names
841   --program-suffix=SUFFIX            append SUFFIX to installed program names
842   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
843
844 X features:
845   --x-includes=DIR    X include files are in DIR
846   --x-libraries=DIR   X library files are in DIR
847
848 System types:
849   --build=BUILD     configure for building on BUILD [guessed]
850   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
851   --target=TARGET   configure for building compilers for TARGET [HOST]
852 _ACEOF
853 fi
854
855 if test -n "$ac_init_help"; then
856
857   cat <<\_ACEOF
858
859 Optional Features:
860   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
861   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
862   --enable-maintainer-mode  enable make rules and dependencies not useful
863                           (and sometimes confusing) to the casual installer
864   --disable-nls           do not use Native Language Support
865   --disable-gdbcli        disable command-line interface (CLI)
866   --disable-gdbmi         disable machine-interface (MI)
867   --enable-tui            enable full-screen terminal user interface (TUI)
868   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
869   --enable-profiling      enable profiling of GDB
870   --enable-build-warnings Enable build-time compiler warnings if gcc is used
871   --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872   --enable-sim            Link gdb with simulator
873   --enable-multi-ice      build the multi-ice-gdb-server
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-included-gettext use the GNU gettext library included here
879   --with-separate-debug-dir=path   Look for global separate debug info in this path LIBDIR/debug
880   --with-libunwind            Use libunwind frame unwinding support
881   --without-included-regex don't use included regex; this is the default
882                           on systems with version 2 of the GNU C library
883                           (use with caution on other system)
884   --with-sysroot=DIR Search for usr/lib et al within DIR.
885   --with-tclconfig=DIR    Directory containing tcl configuration (tclConfig.sh)
886   --with-tkconfig=DIR     Directory containing tk configuration (tkConfig.sh)
887   --with-tclinclude=DIR   Directory where tcl private headers are
888   --with-tkinclude=DIR    Directory where tk private headers are
889   --with-itclconfig       Directory containing itcl configuration (itclConfig.sh)
890   --with-itkconfig        Directory containing itk configuration (itkConfig.sh)
891   --with-x                use the X Window System
892   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
893
894 Some influential environment variables:
895   CC          C compiler command
896   CFLAGS      C compiler flags
897   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
898               nonstandard directory <lib dir>
899   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
900               headers in a nonstandard directory <include dir>
901   CPP         C preprocessor
902
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
905
906 _ACEOF
907 fi
908
909 if test "$ac_init_help" = "recursive"; then
910   # If there are subdirs, report their specific --help.
911   ac_popdir=`pwd`
912   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913     test -d $ac_dir || continue
914     ac_builddir=.
915
916 if test "$ac_dir" != .; then
917   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918   # A "../" for each directory in $ac_dir_suffix.
919   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 else
921   ac_dir_suffix= ac_top_builddir=
922 fi
923
924 case $srcdir in
925   .)  # No --srcdir option.  We are building in place.
926     ac_srcdir=.
927     if test -z "$ac_top_builddir"; then
928        ac_top_srcdir=.
929     else
930        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931     fi ;;
932   [\\/]* | ?:[\\/]* )  # Absolute path.
933     ac_srcdir=$srcdir$ac_dir_suffix;
934     ac_top_srcdir=$srcdir ;;
935   *) # Relative path.
936     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937     ac_top_srcdir=$ac_top_builddir$srcdir ;;
938 esac
939
940 # Do not use `cd foo && pwd` to compute absolute paths, because
941 # the directories may not exist.
942 case `pwd` in
943 .) ac_abs_builddir="$ac_dir";;
944 *)
945   case "$ac_dir" in
946   .) ac_abs_builddir=`pwd`;;
947   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948   *) ac_abs_builddir=`pwd`/"$ac_dir";;
949   esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
953 *)
954   case ${ac_top_builddir}. in
955   .) ac_abs_top_builddir=$ac_abs_builddir;;
956   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
958   esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
962 *)
963   case $ac_srcdir in
964   .) ac_abs_srcdir=$ac_abs_builddir;;
965   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
967   esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
971 *)
972   case $ac_top_srcdir in
973   .) ac_abs_top_srcdir=$ac_abs_builddir;;
974   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
976   esac;;
977 esac
978
979     cd $ac_dir
980     # Check for guested configure; otherwise get Cygnus style configure.
981     if test -f $ac_srcdir/configure.gnu; then
982       echo
983       $SHELL $ac_srcdir/configure.gnu  --help=recursive
984     elif test -f $ac_srcdir/configure; then
985       echo
986       $SHELL $ac_srcdir/configure  --help=recursive
987     elif test -f $ac_srcdir/configure.ac ||
988            test -f $ac_srcdir/configure.in; then
989       echo
990       $ac_configure --help
991     else
992       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
993     fi
994     cd "$ac_popdir"
995   done
996 fi
997
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1000   cat <<\_ACEOF
1001
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1005 _ACEOF
1006   exit 0
1007 fi
1008 exec 5>config.log
1009 cat >&5 <<_ACEOF
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1012
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59.  Invocation command line was
1015
1016   $ $0 $@
1017
1018 _ACEOF
1019 {
1020 cat <<_ASUNAME
1021 ## --------- ##
1022 ## Platform. ##
1023 ## --------- ##
1024
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1030
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1033
1034 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1035 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1038 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1039 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1040 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1041
1042 _ASUNAME
1043
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 for as_dir in $PATH
1046 do
1047   IFS=$as_save_IFS
1048   test -z "$as_dir" && as_dir=.
1049   echo "PATH: $as_dir"
1050 done
1051
1052 } >&5
1053
1054 cat >&5 <<_ACEOF
1055
1056
1057 ## ----------- ##
1058 ## Core tests. ##
1059 ## ----------- ##
1060
1061 _ACEOF
1062
1063
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1069 ac_configure_args=
1070 ac_configure_args0=
1071 ac_configure_args1=
1072 ac_sep=
1073 ac_must_keep_next=false
1074 for ac_pass in 1 2
1075 do
1076   for ac_arg
1077   do
1078     case $ac_arg in
1079     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081     | -silent | --silent | --silen | --sile | --sil)
1082       continue ;;
1083     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085     esac
1086     case $ac_pass in
1087     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1088     2)
1089       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090       if test $ac_must_keep_next = true; then
1091         ac_must_keep_next=false # Got value, back to normal.
1092       else
1093         case $ac_arg in
1094           *=* | --config-cache | -C | -disable-* | --disable-* \
1095           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097           | -with-* | --with-* | -without-* | --without-* | --x)
1098             case "$ac_configure_args0 " in
1099               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100             esac
1101             ;;
1102           -* ) ac_must_keep_next=true ;;
1103         esac
1104       fi
1105       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106       # Get rid of the leading space.
1107       ac_sep=" "
1108       ;;
1109     esac
1110   done
1111 done
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1114
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log.  We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121   # Save into config.log some information that might help in debugging.
1122   {
1123     echo
1124
1125     cat <<\_ASBOX
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1129 _ASBOX
1130     echo
1131     # The following way of writing the cache mishandles newlines in values,
1132 {
1133   (set) 2>&1 |
1134     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135     *ac_space=\ *)
1136       sed -n \
1137         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139       ;;
1140     *)
1141       sed -n \
1142         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1143       ;;
1144     esac;
1145 }
1146     echo
1147
1148     cat <<\_ASBOX
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1152 _ASBOX
1153     echo
1154     for ac_var in $ac_subst_vars
1155     do
1156       eval ac_val=$`echo $ac_var`
1157       echo "$ac_var='"'"'$ac_val'"'"'"
1158     done | sort
1159     echo
1160
1161     if test -n "$ac_subst_files"; then
1162       cat <<\_ASBOX
1163 ## ------------- ##
1164 ## Output files. ##
1165 ## ------------- ##
1166 _ASBOX
1167       echo
1168       for ac_var in $ac_subst_files
1169       do
1170         eval ac_val=$`echo $ac_var`
1171         echo "$ac_var='"'"'$ac_val'"'"'"
1172       done | sort
1173       echo
1174     fi
1175
1176     if test -s confdefs.h; then
1177       cat <<\_ASBOX
1178 ## ----------- ##
1179 ## confdefs.h. ##
1180 ## ----------- ##
1181 _ASBOX
1182       echo
1183       sed "/^$/d" confdefs.h | sort
1184       echo
1185     fi
1186     test "$ac_signal" != 0 &&
1187       echo "$as_me: caught signal $ac_signal"
1188     echo "$as_me: exit $exit_status"
1189   } >&5
1190   rm -f core *.core &&
1191   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1192     exit $exit_status
1193      ' 0
1194 for ac_signal in 1 2 13 15; do
1195   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 done
1197 ac_signal=0
1198
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202 echo >confdefs.h
1203
1204 # Predefined preprocessor variables.
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 _ACEOF
1229
1230
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234   if test "x$prefix" != xNONE; then
1235     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236   else
1237     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1238   fi
1239 fi
1240 for ac_site_file in $CONFIG_SITE; do
1241   if test -r "$ac_site_file"; then
1242     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244     sed 's/^/| /' "$ac_site_file" >&5
1245     . "$ac_site_file"
1246   fi
1247 done
1248
1249 if test -r "$cache_file"; then
1250   # Some versions of bash will fail to source /dev/null (special
1251   # files actually), so we avoid doing that.
1252   if test -f "$cache_file"; then
1253     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1255     case $cache_file in
1256       [\\/]* | ?:[\\/]* ) . $cache_file;;
1257       *)                      . ./$cache_file;;
1258     esac
1259   fi
1260 else
1261   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1263   >$cache_file
1264 fi
1265
1266 # Check that the precious variables saved in the cache have kept the same
1267 # value.
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272   eval ac_new_set=\$ac_env_${ac_var}_set
1273   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274   eval ac_new_val="\$ac_env_${ac_var}_value"
1275   case $ac_old_set,$ac_new_set in
1276     set,)
1277       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279       ac_cache_corrupted=: ;;
1280     ,set)
1281       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283       ac_cache_corrupted=: ;;
1284     ,);;
1285     *)
1286       if test "x$ac_old_val" != "x$ac_new_val"; then
1287         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1290 echo "$as_me:   former value:  $ac_old_val" >&2;}
1291         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1292 echo "$as_me:   current value: $ac_new_val" >&2;}
1293         ac_cache_corrupted=:
1294       fi;;
1295   esac
1296   # Pass precious variables to config.status.
1297   if test "$ac_new_set" = set; then
1298     case $ac_new_val in
1299     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301     *) ac_arg=$ac_var=$ac_new_val ;;
1302     esac
1303     case " $ac_configure_args " in
1304       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1305       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306     esac
1307   fi
1308 done
1309 if $ac_cache_corrupted; then
1310   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314    { (exit 1); exit 1; }; }
1315 fi
1316
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341           ac_config_headers="$ac_config_headers config.h:config.in"
1342
1343 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1344 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1345     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1346 if test "${enable_maintainer_mode+set}" = set; then
1347   enableval="$enable_maintainer_mode"
1348   USE_MAINTAINER_MODE=$enableval
1349 else
1350   USE_MAINTAINER_MODE=no
1351 fi;
1352   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1353 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1354
1355
1356 if test $USE_MAINTAINER_MODE = yes; then
1357   MAINTAINER_MODE_TRUE=
1358   MAINTAINER_MODE_FALSE='#'
1359 else
1360   MAINTAINER_MODE_TRUE='#'
1361   MAINTAINER_MODE_FALSE=
1362 fi
1363
1364   MAINT=$MAINTAINER_MODE_TRUE
1365
1366
1367
1368 ac_ext=c
1369 ac_cpp='$CPP $CPPFLAGS'
1370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373 if test -n "$ac_tool_prefix"; then
1374   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_CC+set}" = set; then
1379   echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381   if test -n "$CC"; then
1382   ac_cv_prog_CC="$CC" # Let the user override the test.
1383 else
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 for as_dir in $PATH
1386 do
1387   IFS=$as_save_IFS
1388   test -z "$as_dir" && as_dir=.
1389   for ac_exec_ext in '' $ac_executable_extensions; do
1390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393     break 2
1394   fi
1395 done
1396 done
1397
1398 fi
1399 fi
1400 CC=$ac_cv_prog_CC
1401 if test -n "$CC"; then
1402   echo "$as_me:$LINENO: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1404 else
1405   echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409 fi
1410 if test -z "$ac_cv_prog_CC"; then
1411   ac_ct_CC=$CC
1412   # Extract the first word of "gcc", so it can be a program name with args.
1413 set dummy gcc; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417   echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419   if test -n "$ac_ct_CC"; then
1420   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1421 else
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423 for as_dir in $PATH
1424 do
1425   IFS=$as_save_IFS
1426   test -z "$as_dir" && as_dir=.
1427   for ac_exec_ext in '' $ac_executable_extensions; do
1428   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429     ac_cv_prog_ac_ct_CC="gcc"
1430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1431     break 2
1432   fi
1433 done
1434 done
1435
1436 fi
1437 fi
1438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439 if test -n "$ac_ct_CC"; then
1440   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441 echo "${ECHO_T}$ac_ct_CC" >&6
1442 else
1443   echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1445 fi
1446
1447   CC=$ac_ct_CC
1448 else
1449   CC="$ac_cv_prog_CC"
1450 fi
1451
1452 if test -z "$CC"; then
1453   if test -n "$ac_tool_prefix"; then
1454   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1455 set dummy ${ac_tool_prefix}cc; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_CC+set}" = set; then
1459   echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461   if test -n "$CC"; then
1462   ac_cv_prog_CC="$CC" # Let the user override the test.
1463 else
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465 for as_dir in $PATH
1466 do
1467   IFS=$as_save_IFS
1468   test -z "$as_dir" && as_dir=.
1469   for ac_exec_ext in '' $ac_executable_extensions; do
1470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471     ac_cv_prog_CC="${ac_tool_prefix}cc"
1472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473     break 2
1474   fi
1475 done
1476 done
1477
1478 fi
1479 fi
1480 CC=$ac_cv_prog_CC
1481 if test -n "$CC"; then
1482   echo "$as_me:$LINENO: result: $CC" >&5
1483 echo "${ECHO_T}$CC" >&6
1484 else
1485   echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1487 fi
1488
1489 fi
1490 if test -z "$ac_cv_prog_CC"; then
1491   ac_ct_CC=$CC
1492   # Extract the first word of "cc", so it can be a program name with args.
1493 set dummy cc; ac_word=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1497   echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499   if test -n "$ac_ct_CC"; then
1500   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1501 else
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1504 do
1505   IFS=$as_save_IFS
1506   test -z "$as_dir" && as_dir=.
1507   for ac_exec_ext in '' $ac_executable_extensions; do
1508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509     ac_cv_prog_ac_ct_CC="cc"
1510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1511     break 2
1512   fi
1513 done
1514 done
1515
1516 fi
1517 fi
1518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1519 if test -n "$ac_ct_CC"; then
1520   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1521 echo "${ECHO_T}$ac_ct_CC" >&6
1522 else
1523   echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1525 fi
1526
1527   CC=$ac_ct_CC
1528 else
1529   CC="$ac_cv_prog_CC"
1530 fi
1531
1532 fi
1533 if test -z "$CC"; then
1534   # Extract the first word of "cc", so it can be a program name with args.
1535 set dummy cc; ac_word=$2
1536 echo "$as_me:$LINENO: checking for $ac_word" >&5
1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538 if test "${ac_cv_prog_CC+set}" = set; then
1539   echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541   if test -n "$CC"; then
1542   ac_cv_prog_CC="$CC" # Let the user override the test.
1543 else
1544   ac_prog_rejected=no
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1547 do
1548   IFS=$as_save_IFS
1549   test -z "$as_dir" && as_dir=.
1550   for ac_exec_ext in '' $ac_executable_extensions; do
1551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1553        ac_prog_rejected=yes
1554        continue
1555      fi
1556     ac_cv_prog_CC="cc"
1557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558     break 2
1559   fi
1560 done
1561 done
1562
1563 if test $ac_prog_rejected = yes; then
1564   # We found a bogon in the path, so make sure we never use it.
1565   set dummy $ac_cv_prog_CC
1566   shift
1567   if test $# != 0; then
1568     # We chose a different compiler from the bogus one.
1569     # However, it has the same basename, so the bogon will be chosen
1570     # first if we set CC to just the basename; use the full file name.
1571     shift
1572     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1573   fi
1574 fi
1575 fi
1576 fi
1577 CC=$ac_cv_prog_CC
1578 if test -n "$CC"; then
1579   echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1581 else
1582   echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 fi
1585
1586 fi
1587 if test -z "$CC"; then
1588   if test -n "$ac_tool_prefix"; then
1589   for ac_prog in cl
1590   do
1591     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596   echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598   if test -n "$CC"; then
1599   ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604   IFS=$as_save_IFS
1605   test -z "$as_dir" && as_dir=.
1606   for ac_exec_ext in '' $ac_executable_extensions; do
1607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610     break 2
1611   fi
1612 done
1613 done
1614
1615 fi
1616 fi
1617 CC=$ac_cv_prog_CC
1618 if test -n "$CC"; then
1619   echo "$as_me:$LINENO: result: $CC" >&5
1620 echo "${ECHO_T}$CC" >&6
1621 else
1622   echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624 fi
1625
1626     test -n "$CC" && break
1627   done
1628 fi
1629 if test -z "$CC"; then
1630   ac_ct_CC=$CC
1631   for ac_prog in cl
1632 do
1633   # Extract the first word of "$ac_prog", so it can be a program name with args.
1634 set dummy $ac_prog; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   if test -n "$ac_ct_CC"; then
1641   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642 else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1645 do
1646   IFS=$as_save_IFS
1647   test -z "$as_dir" && as_dir=.
1648   for ac_exec_ext in '' $ac_executable_extensions; do
1649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650     ac_cv_prog_ac_ct_CC="$ac_prog"
1651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652     break 2
1653   fi
1654 done
1655 done
1656
1657 fi
1658 fi
1659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660 if test -n "$ac_ct_CC"; then
1661   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662 echo "${ECHO_T}$ac_ct_CC" >&6
1663 else
1664   echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1666 fi
1667
1668   test -n "$ac_ct_CC" && break
1669 done
1670
1671   CC=$ac_ct_CC
1672 fi
1673
1674 fi
1675
1676
1677 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1678 See \`config.log' for more details." >&5
1679 echo "$as_me: error: no acceptable C compiler found in \$PATH
1680 See \`config.log' for more details." >&2;}
1681    { (exit 1); exit 1; }; }
1682
1683 # Provide some information about the compiler.
1684 echo "$as_me:$LINENO:" \
1685      "checking for C compiler version" >&5
1686 ac_compiler=`set X $ac_compile; echo $2`
1687 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1688   (eval $ac_compiler --version </dev/null >&5) 2>&5
1689   ac_status=$?
1690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691   (exit $ac_status); }
1692 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1693   (eval $ac_compiler -v </dev/null >&5) 2>&5
1694   ac_status=$?
1695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696   (exit $ac_status); }
1697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1698   (eval $ac_compiler -V </dev/null >&5) 2>&5
1699   ac_status=$?
1700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701   (exit $ac_status); }
1702
1703 cat >conftest.$ac_ext <<_ACEOF
1704 /* confdefs.h.  */
1705 _ACEOF
1706 cat confdefs.h >>conftest.$ac_ext
1707 cat >>conftest.$ac_ext <<_ACEOF
1708 /* end confdefs.h.  */
1709
1710 int
1711 main ()
1712 {
1713
1714   ;
1715   return 0;
1716 }
1717 _ACEOF
1718 ac_clean_files_save=$ac_clean_files
1719 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1720 # Try to create an executable without -o first, disregard a.out.
1721 # It will help us diagnose broken compilers, and finding out an intuition
1722 # of exeext.
1723 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1724 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1725 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1726 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1727   (eval $ac_link_default) 2>&5
1728   ac_status=$?
1729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730   (exit $ac_status); }; then
1731   # Find the output, starting from the most likely.  This scheme is
1732 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1733 # resort.
1734
1735 # Be careful to initialize this variable, since it used to be cached.
1736 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1737 ac_cv_exeext=
1738 # b.out is created by i960 compilers.
1739 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1740 do
1741   test -f "$ac_file" || continue
1742   case $ac_file in
1743     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1744         ;;
1745     conftest.$ac_ext )
1746         # This is the source file.
1747         ;;
1748     [ab].out )
1749         # We found the default executable, but exeext='' is most
1750         # certainly right.
1751         break;;
1752     *.* )
1753         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754         # FIXME: I believe we export ac_cv_exeext for Libtool,
1755         # but it would be cool to find out if it's true.  Does anybody
1756         # maintain Libtool? --akim.
1757         export ac_cv_exeext
1758         break;;
1759     * )
1760         break;;
1761   esac
1762 done
1763 else
1764   echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: C compiler cannot create executables
1770 See \`config.log' for more details." >&2;}
1771    { (exit 77); exit 77; }; }
1772 fi
1773
1774 ac_exeext=$ac_cv_exeext
1775 echo "$as_me:$LINENO: result: $ac_file" >&5
1776 echo "${ECHO_T}$ac_file" >&6
1777
1778 # Check the compiler produces executables we can run.  If not, either
1779 # the compiler is broken, or we cross compile.
1780 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1783 # If not cross compiling, check that we can run a simple program.
1784 if test "$cross_compiling" != yes; then
1785   if { ac_try='./$ac_file'
1786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1787   (eval $ac_try) 2>&5
1788   ac_status=$?
1789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790   (exit $ac_status); }; }; then
1791     cross_compiling=no
1792   else
1793     if test "$cross_compiling" = maybe; then
1794         cross_compiling=yes
1795     else
1796         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'.
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'.
1801 See \`config.log' for more details." >&2;}
1802    { (exit 1); exit 1; }; }
1803     fi
1804   fi
1805 fi
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1808
1809 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1810 ac_clean_files=$ac_clean_files_save
1811 # Check the compiler produces executables we can run.  If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1814 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1815 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1816 echo "${ECHO_T}$cross_compiling" >&6
1817
1818 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1819 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1821   (eval $ac_link) 2>&5
1822   ac_status=$?
1823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824   (exit $ac_status); }; then
1825   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1826 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1827 # work properly (i.e., refer to `conftest.exe'), while it won't with
1828 # `rm'.
1829 for ac_file in conftest.exe conftest conftest.*; do
1830   test -f "$ac_file" || continue
1831   case $ac_file in
1832     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1833     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834           export ac_cv_exeext
1835           break;;
1836     * ) break;;
1837   esac
1838 done
1839 else
1840   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1843 See \`config.log' for more details." >&2;}
1844    { (exit 1); exit 1; }; }
1845 fi
1846
1847 rm -f conftest$ac_cv_exeext
1848 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1849 echo "${ECHO_T}$ac_cv_exeext" >&6
1850
1851 rm -f conftest.$ac_ext
1852 EXEEXT=$ac_cv_exeext
1853 ac_exeext=$EXEEXT
1854 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1855 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1856 if test "${ac_cv_objext+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   cat >conftest.$ac_ext <<_ACEOF
1860 /* confdefs.h.  */
1861 _ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h.  */
1865
1866 int
1867 main ()
1868 {
1869
1870   ;
1871   return 0;
1872 }
1873 _ACEOF
1874 rm -f conftest.o conftest.obj
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876   (eval $ac_compile) 2>&5
1877   ac_status=$?
1878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879   (exit $ac_status); }; then
1880   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1881   case $ac_file in
1882     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1883     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1884        break;;
1885   esac
1886 done
1887 else
1888   echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1894 See \`config.log' for more details." >&2;}
1895    { (exit 1); exit 1; }; }
1896 fi
1897
1898 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1899 fi
1900 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1901 echo "${ECHO_T}$ac_cv_objext" >&6
1902 OBJEXT=$ac_cv_objext
1903 ac_objext=$OBJEXT
1904 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1905 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1906 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   cat >conftest.$ac_ext <<_ACEOF
1910 /* confdefs.h.  */
1911 _ACEOF
1912 cat confdefs.h >>conftest.$ac_ext
1913 cat >>conftest.$ac_ext <<_ACEOF
1914 /* end confdefs.h.  */
1915
1916 int
1917 main ()
1918 {
1919 #ifndef __GNUC__
1920        choke me
1921 #endif
1922
1923   ;
1924   return 0;
1925 }
1926 _ACEOF
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929   (eval $ac_compile) 2>conftest.er1
1930   ac_status=$?
1931   grep -v '^ *+' conftest.er1 >conftest.err
1932   rm -f conftest.er1
1933   cat conftest.err >&5
1934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935   (exit $ac_status); } &&
1936          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938   (eval $ac_try) 2>&5
1939   ac_status=$?
1940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941   (exit $ac_status); }; } &&
1942          { ac_try='test -s conftest.$ac_objext'
1943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944   (eval $ac_try) 2>&5
1945   ac_status=$?
1946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947   (exit $ac_status); }; }; then
1948   ac_compiler_gnu=yes
1949 else
1950   echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 ac_compiler_gnu=no
1954 fi
1955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1956 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1957
1958 fi
1959 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1960 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1961 GCC=`test $ac_compiler_gnu = yes && echo yes`
1962 ac_test_CFLAGS=${CFLAGS+set}
1963 ac_save_CFLAGS=$CFLAGS
1964 CFLAGS="-g"
1965 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1966 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1967 if test "${ac_cv_prog_cc_g+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   cat >conftest.$ac_ext <<_ACEOF
1971 /* confdefs.h.  */
1972 _ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h.  */
1976
1977 int
1978 main ()
1979 {
1980
1981   ;
1982   return 0;
1983 }
1984 _ACEOF
1985 rm -f conftest.$ac_objext
1986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987   (eval $ac_compile) 2>conftest.er1
1988   ac_status=$?
1989   grep -v '^ *+' conftest.er1 >conftest.err
1990   rm -f conftest.er1
1991   cat conftest.err >&5
1992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993   (exit $ac_status); } &&
1994          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996   (eval $ac_try) 2>&5
1997   ac_status=$?
1998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999   (exit $ac_status); }; } &&
2000          { ac_try='test -s conftest.$ac_objext'
2001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002   (eval $ac_try) 2>&5
2003   ac_status=$?
2004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005   (exit $ac_status); }; }; then
2006   ac_cv_prog_cc_g=yes
2007 else
2008   echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2010
2011 ac_cv_prog_cc_g=no
2012 fi
2013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2014 fi
2015 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2017 if test "$ac_test_CFLAGS" = set; then
2018   CFLAGS=$ac_save_CFLAGS
2019 elif test $ac_cv_prog_cc_g = yes; then
2020   if test "$GCC" = yes; then
2021     CFLAGS="-g -O2"
2022   else
2023     CFLAGS="-g"
2024   fi
2025 else
2026   if test "$GCC" = yes; then
2027     CFLAGS="-O2"
2028   else
2029     CFLAGS=
2030   fi
2031 fi
2032 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2033 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2034 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   ac_cv_prog_cc_stdc=no
2038 ac_save_CC=$CC
2039 cat >conftest.$ac_ext <<_ACEOF
2040 /* confdefs.h.  */
2041 _ACEOF
2042 cat confdefs.h >>conftest.$ac_ext
2043 cat >>conftest.$ac_ext <<_ACEOF
2044 /* end confdefs.h.  */
2045 #include <stdarg.h>
2046 #include <stdio.h>
2047 #include <sys/types.h>
2048 #include <sys/stat.h>
2049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2050 struct buf { int x; };
2051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2052 static char *e (p, i)
2053      char **p;
2054      int i;
2055 {
2056   return p[i];
2057 }
2058 static char *f (char * (*g) (char **, int), char **p, ...)
2059 {
2060   char *s;
2061   va_list v;
2062   va_start (v,p);
2063   s = g (p, va_arg (v,int));
2064   va_end (v);
2065   return s;
2066 }
2067
2068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2069    function prototypes and stuff, but not '\xHH' hex character constants.
2070    These don't provoke an error unfortunately, instead are silently treated
2071    as 'x'.  The following induces an error, until -std1 is added to get
2072    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2073    array size at least.  It's necessary to write '\x00'==0 to get something
2074    that's true only with -std1.  */
2075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2076
2077 int test (int i, double x);
2078 struct s1 {int (*f) (int a);};
2079 struct s2 {int (*f) (double a);};
2080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2081 int argc;
2082 char **argv;
2083 int
2084 main ()
2085 {
2086 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 # Don't try gcc -ansi; that turns off useful extensions and
2092 # breaks some systems' header files.
2093 # AIX                   -qlanglvl=ansi
2094 # Ultrix and OSF/1      -std1
2095 # HP-UX 10.20 and later -Ae
2096 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2097 # SVR4                  -Xc -D__EXTENSIONS__
2098 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2099 do
2100   CC="$ac_save_CC $ac_arg"
2101   rm -f conftest.$ac_objext
2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103   (eval $ac_compile) 2>conftest.er1
2104   ac_status=$?
2105   grep -v '^ *+' conftest.er1 >conftest.err
2106   rm -f conftest.er1
2107   cat conftest.err >&5
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); } &&
2110          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112   (eval $ac_try) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }; } &&
2116          { ac_try='test -s conftest.$ac_objext'
2117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118   (eval $ac_try) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }; }; then
2122   ac_cv_prog_cc_stdc=$ac_arg
2123 break
2124 else
2125   echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2127
2128 fi
2129 rm -f conftest.err conftest.$ac_objext
2130 done
2131 rm -f conftest.$ac_ext conftest.$ac_objext
2132 CC=$ac_save_CC
2133
2134 fi
2135
2136 case "x$ac_cv_prog_cc_stdc" in
2137   x|xno)
2138     echo "$as_me:$LINENO: result: none needed" >&5
2139 echo "${ECHO_T}none needed" >&6 ;;
2140   *)
2141     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2142 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2143     CC="$CC $ac_cv_prog_cc_stdc" ;;
2144 esac
2145
2146 # Some people use a C++ compiler to compile C.  Since we use `exit',
2147 # in C++ we need to declare it.  In case someone uses the same compiler
2148 # for both compiling C and C++ we need to have the C++ compiler decide
2149 # the declaration of exit, since it's the most demanding environment.
2150 cat >conftest.$ac_ext <<_ACEOF
2151 #ifndef __cplusplus
2152   choke me
2153 #endif
2154 _ACEOF
2155 rm -f conftest.$ac_objext
2156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2157   (eval $ac_compile) 2>conftest.er1
2158   ac_status=$?
2159   grep -v '^ *+' conftest.er1 >conftest.err
2160   rm -f conftest.er1
2161   cat conftest.err >&5
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); } &&
2164          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166   (eval $ac_try) 2>&5
2167   ac_status=$?
2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169   (exit $ac_status); }; } &&
2170          { ac_try='test -s conftest.$ac_objext'
2171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172   (eval $ac_try) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; }; then
2176   for ac_declaration in \
2177    '' \
2178    'extern "C" void std::exit (int) throw (); using std::exit;' \
2179    'extern "C" void std::exit (int); using std::exit;' \
2180    'extern "C" void exit (int) throw ();' \
2181    'extern "C" void exit (int);' \
2182    'void exit (int);'
2183 do
2184   cat >conftest.$ac_ext <<_ACEOF
2185 /* confdefs.h.  */
2186 _ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h.  */
2190 $ac_declaration
2191 #include <stdlib.h>
2192 int
2193 main ()
2194 {
2195 exit (42);
2196   ;
2197   return 0;
2198 }
2199 _ACEOF
2200 rm -f conftest.$ac_objext
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202   (eval $ac_compile) 2>conftest.er1
2203   ac_status=$?
2204   grep -v '^ *+' conftest.er1 >conftest.err
2205   rm -f conftest.er1
2206   cat conftest.err >&5
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); } &&
2209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211   (eval $ac_try) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; } &&
2215          { ac_try='test -s conftest.$ac_objext'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221   :
2222 else
2223   echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 continue
2227 fi
2228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229   cat >conftest.$ac_ext <<_ACEOF
2230 /* confdefs.h.  */
2231 _ACEOF
2232 cat confdefs.h >>conftest.$ac_ext
2233 cat >>conftest.$ac_ext <<_ACEOF
2234 /* end confdefs.h.  */
2235 $ac_declaration
2236 int
2237 main ()
2238 {
2239 exit (42);
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 rm -f conftest.$ac_objext
2245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246   (eval $ac_compile) 2>conftest.er1
2247   ac_status=$?
2248   grep -v '^ *+' conftest.er1 >conftest.err
2249   rm -f conftest.er1
2250   cat conftest.err >&5
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); } &&
2253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; } &&
2259          { ac_try='test -s conftest.$ac_objext'
2260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261   (eval $ac_try) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; }; then
2265   break
2266 else
2267   echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 fi
2271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2272 done
2273 rm -f conftest*
2274 if test -n "$ac_declaration"; then
2275   echo '#ifdef __cplusplus' >>confdefs.h
2276   echo $ac_declaration      >>confdefs.h
2277   echo '#endif'             >>confdefs.h
2278 fi
2279
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 fi
2285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286 ac_ext=c
2287 ac_cpp='$CPP $CPPFLAGS'
2288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291
2292
2293 cat >>confdefs.h <<\_ACEOF
2294 #define _GNU_SOURCE 1
2295 _ACEOF
2296
2297
2298
2299 ac_ext=c
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2305 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2306 # On Suns, sometimes $CPP names a directory.
2307 if test -n "$CPP" && test -d "$CPP"; then
2308   CPP=
2309 fi
2310 if test -z "$CPP"; then
2311   if test "${ac_cv_prog_CPP+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314       # Double quotes because CPP needs to be expanded
2315     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2316     do
2317       ac_preproc_ok=false
2318 for ac_c_preproc_warn_flag in '' yes
2319 do
2320   # Use a header file that comes with gcc, so configuring glibc
2321   # with a fresh cross-compiler works.
2322   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2323   # <limits.h> exists even on freestanding compilers.
2324   # On the NeXT, cc -E runs the code through the compiler's parser,
2325   # not just through cpp. "Syntax error" is here to catch this case.
2326   cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h.  */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h.  */
2332 #ifdef __STDC__
2333 # include <limits.h>
2334 #else
2335 # include <assert.h>
2336 #endif
2337                      Syntax error
2338 _ACEOF
2339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2340   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2341   ac_status=$?
2342   grep -v '^ *+' conftest.er1 >conftest.err
2343   rm -f conftest.er1
2344   cat conftest.err >&5
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } >/dev/null; then
2347   if test -s conftest.err; then
2348     ac_cpp_err=$ac_c_preproc_warn_flag
2349     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2350   else
2351     ac_cpp_err=
2352   fi
2353 else
2354   ac_cpp_err=yes
2355 fi
2356 if test -z "$ac_cpp_err"; then
2357   :
2358 else
2359   echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361
2362   # Broken: fails on valid input.
2363 continue
2364 fi
2365 rm -f conftest.err conftest.$ac_ext
2366
2367   # OK, works on sane cases.  Now check whether non-existent headers
2368   # can be detected and how.
2369   cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h.  */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h.  */
2375 #include <ac_nonexistent.h>
2376 _ACEOF
2377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
2382   cat conftest.err >&5
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } >/dev/null; then
2385   if test -s conftest.err; then
2386     ac_cpp_err=$ac_c_preproc_warn_flag
2387     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2388   else
2389     ac_cpp_err=
2390   fi
2391 else
2392   ac_cpp_err=yes
2393 fi
2394 if test -z "$ac_cpp_err"; then
2395   # Broken: success on invalid input.
2396 continue
2397 else
2398   echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2400
2401   # Passes both tests.
2402 ac_preproc_ok=:
2403 break
2404 fi
2405 rm -f conftest.err conftest.$ac_ext
2406
2407 done
2408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2409 rm -f conftest.err conftest.$ac_ext
2410 if $ac_preproc_ok; then
2411   break
2412 fi
2413
2414     done
2415     ac_cv_prog_CPP=$CPP
2416
2417 fi
2418   CPP=$ac_cv_prog_CPP
2419 else
2420   ac_cv_prog_CPP=$CPP
2421 fi
2422 echo "$as_me:$LINENO: result: $CPP" >&5
2423 echo "${ECHO_T}$CPP" >&6
2424 ac_preproc_ok=false
2425 for ac_c_preproc_warn_flag in '' yes
2426 do
2427   # Use a header file that comes with gcc, so configuring glibc
2428   # with a fresh cross-compiler works.
2429   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2430   # <limits.h> exists even on freestanding compilers.
2431   # On the NeXT, cc -E runs the code through the compiler's parser,
2432   # not just through cpp. "Syntax error" is here to catch this case.
2433   cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439 #ifdef __STDC__
2440 # include <limits.h>
2441 #else
2442 # include <assert.h>
2443 #endif
2444                      Syntax error
2445 _ACEOF
2446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2448   ac_status=$?
2449   grep -v '^ *+' conftest.er1 >conftest.err
2450   rm -f conftest.er1
2451   cat conftest.err >&5
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); } >/dev/null; then
2454   if test -s conftest.err; then
2455     ac_cpp_err=$ac_c_preproc_warn_flag
2456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2457   else
2458     ac_cpp_err=
2459   fi
2460 else
2461   ac_cpp_err=yes
2462 fi
2463 if test -z "$ac_cpp_err"; then
2464   :
2465 else
2466   echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2468
2469   # Broken: fails on valid input.
2470 continue
2471 fi
2472 rm -f conftest.err conftest.$ac_ext
2473
2474   # OK, works on sane cases.  Now check whether non-existent headers
2475   # can be detected and how.
2476   cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h.  */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h.  */
2482 #include <ac_nonexistent.h>
2483 _ACEOF
2484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2486   ac_status=$?
2487   grep -v '^ *+' conftest.er1 >conftest.err
2488   rm -f conftest.er1
2489   cat conftest.err >&5
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); } >/dev/null; then
2492   if test -s conftest.err; then
2493     ac_cpp_err=$ac_c_preproc_warn_flag
2494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2495   else
2496     ac_cpp_err=
2497   fi
2498 else
2499   ac_cpp_err=yes
2500 fi
2501 if test -z "$ac_cpp_err"; then
2502   # Broken: success on invalid input.
2503 continue
2504 else
2505   echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508   # Passes both tests.
2509 ac_preproc_ok=:
2510 break
2511 fi
2512 rm -f conftest.err conftest.$ac_ext
2513
2514 done
2515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2516 rm -f conftest.err conftest.$ac_ext
2517 if $ac_preproc_ok; then
2518   :
2519 else
2520   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2521 See \`config.log' for more details." >&5
2522 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2523 See \`config.log' for more details." >&2;}
2524    { (exit 1); exit 1; }; }
2525 fi
2526
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
2534 echo "$as_me:$LINENO: checking for egrep" >&5
2535 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2536 if test "${ac_cv_prog_egrep+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2540     then ac_cv_prog_egrep='grep -E'
2541     else ac_cv_prog_egrep='egrep'
2542     fi
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2545 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2546  EGREP=$ac_cv_prog_egrep
2547
2548
2549
2550 echo "$as_me:$LINENO: checking for AIX" >&5
2551 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2552 cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558 #ifdef _AIX
2559   yes
2560 #endif
2561
2562 _ACEOF
2563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2564   $EGREP "yes" >/dev/null 2>&1; then
2565   echo "$as_me:$LINENO: result: yes" >&5
2566 echo "${ECHO_T}yes" >&6
2567 cat >>confdefs.h <<\_ACEOF
2568 #define _ALL_SOURCE 1
2569 _ACEOF
2570
2571 else
2572   echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6
2574 fi
2575 rm -f conftest*
2576
2577
2578 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2579 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2580 if test "${ac_cv_search_strerror+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   ac_func_search_save_LIBS=$LIBS
2584 ac_cv_search_strerror=no
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h.  */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h.  */
2591
2592 /* Override any gcc2 internal prototype to avoid an error.  */
2593 #ifdef __cplusplus
2594 extern "C"
2595 #endif
2596 /* We use char because int might match the return type of a gcc2
2597    builtin and then its argument prototype would still apply.  */
2598 char strerror ();
2599 int
2600 main ()
2601 {
2602 strerror ();
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 rm -f conftest.$ac_objext conftest$ac_exeext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609   (eval $ac_link) 2>conftest.er1
2610   ac_status=$?
2611   grep -v '^ *+' conftest.er1 >conftest.err
2612   rm -f conftest.er1
2613   cat conftest.err >&5
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); } &&
2616          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; } &&
2622          { ac_try='test -s conftest$ac_exeext'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; }; then
2628   ac_cv_search_strerror="none required"
2629 else
2630   echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2632
2633 fi
2634 rm -f conftest.err conftest.$ac_objext \
2635       conftest$ac_exeext conftest.$ac_ext
2636 if test "$ac_cv_search_strerror" = no; then
2637   for ac_lib in cposix; do
2638     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2639     cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645
2646 /* Override any gcc2 internal prototype to avoid an error.  */
2647 #ifdef __cplusplus
2648 extern "C"
2649 #endif
2650 /* We use char because int might match the return type of a gcc2
2651    builtin and then its argument prototype would still apply.  */
2652 char strerror ();
2653 int
2654 main ()
2655 {
2656 strerror ();
2657   ;
2658   return 0;
2659 }
2660 _ACEOF
2661 rm -f conftest.$ac_objext conftest$ac_exeext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2663   (eval $ac_link) 2>conftest.er1
2664   ac_status=$?
2665   grep -v '^ *+' conftest.er1 >conftest.err
2666   rm -f conftest.er1
2667   cat conftest.err >&5
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); } &&
2670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672   (eval $ac_try) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }; } &&
2676          { ac_try='test -s conftest$ac_exeext'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; }; then
2682   ac_cv_search_strerror="-l$ac_lib"
2683 break
2684 else
2685   echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688 fi
2689 rm -f conftest.err conftest.$ac_objext \
2690       conftest$ac_exeext conftest.$ac_ext
2691   done
2692 fi
2693 LIBS=$ac_func_search_save_LIBS
2694 fi
2695 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2696 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2697 if test "$ac_cv_search_strerror" != no; then
2698   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2699
2700 fi
2701
2702
2703
2704
2705 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2706 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2707 if test "${am_cv_prog_cc_stdc+set}" = set; then
2708   echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710   am_cv_prog_cc_stdc=no
2711 ac_save_CC="$CC"
2712 # Don't try gcc -ansi; that turns off useful extensions and
2713 # breaks some systems' header files.
2714 # AIX                   -qlanglvl=ansi
2715 # Ultrix and OSF/1      -std1
2716 # HP-UX 10.20 and later -Ae
2717 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2718 # SVR4                  -Xc -D__EXTENSIONS__
2719 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2720 do
2721   CC="$ac_save_CC $ac_arg"
2722   cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>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.  */
2733 struct buf { int x; };
2734 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2735 static char *e (p, i)
2736      char **p;
2737      int i;
2738 {
2739   return p[i];
2740 }
2741 static 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 int test (int i, double x);
2751 struct s1 {int (*f) (int a);};
2752 struct s2 {int (*f) (double a);};
2753 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2754 int argc;
2755 char **argv;
2756
2757 int
2758 main ()
2759 {
2760
2761 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2762
2763   ;
2764   return 0;
2765 }
2766 _ACEOF
2767 rm -f conftest.$ac_objext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769   (eval $ac_compile) 2>conftest.er1
2770   ac_status=$?
2771   grep -v '^ *+' conftest.er1 >conftest.err
2772   rm -f conftest.er1
2773   cat conftest.err >&5
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); } &&
2776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778   (eval $ac_try) 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; } &&
2782          { ac_try='test -s conftest.$ac_objext'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; }; then
2788   am_cv_prog_cc_stdc="$ac_arg"; break
2789 else
2790   echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793 fi
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 done
2796 CC="$ac_save_CC"
2797
2798 fi
2799
2800 if test -z "$am_cv_prog_cc_stdc"; then
2801   echo "$as_me:$LINENO: result: none needed" >&5
2802 echo "${ECHO_T}none needed" >&6
2803 else
2804   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2805 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2806 fi
2807 case "x$am_cv_prog_cc_stdc" in
2808   x|xno) ;;
2809   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2810 esac
2811
2812
2813 ac_aux_dir=
2814 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2815   if test -f $ac_dir/install-sh; then
2816     ac_aux_dir=$ac_dir
2817     ac_install_sh="$ac_aux_dir/install-sh -c"
2818     break
2819   elif test -f $ac_dir/install.sh; then
2820     ac_aux_dir=$ac_dir
2821     ac_install_sh="$ac_aux_dir/install.sh -c"
2822     break
2823   elif test -f $ac_dir/shtool; then
2824     ac_aux_dir=$ac_dir
2825     ac_install_sh="$ac_aux_dir/shtool install -c"
2826     break
2827   fi
2828 done
2829 if test -z "$ac_aux_dir"; then
2830   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2831 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2832    { (exit 1); exit 1; }; }
2833 fi
2834 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2835 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2836 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2837
2838 # Make sure we can run config.sub.
2839 $ac_config_sub sun4 >/dev/null 2>&1 ||
2840   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2841 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2842    { (exit 1); exit 1; }; }
2843
2844 echo "$as_me:$LINENO: checking build system type" >&5
2845 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2846 if test "${ac_cv_build+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849   ac_cv_build_alias=$build_alias
2850 test -z "$ac_cv_build_alias" &&
2851   ac_cv_build_alias=`$ac_config_guess`
2852 test -z "$ac_cv_build_alias" &&
2853   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2854 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2855    { (exit 1); exit 1; }; }
2856 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2857   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2858 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2859    { (exit 1); exit 1; }; }
2860
2861 fi
2862 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2863 echo "${ECHO_T}$ac_cv_build" >&6
2864 build=$ac_cv_build
2865 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2866 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2867 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2868
2869
2870 echo "$as_me:$LINENO: checking host system type" >&5
2871 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2872 if test "${ac_cv_host+set}" = set; then
2873   echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875   ac_cv_host_alias=$host_alias
2876 test -z "$ac_cv_host_alias" &&
2877   ac_cv_host_alias=$ac_cv_build_alias
2878 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2879   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2880 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2881    { (exit 1); exit 1; }; }
2882
2883 fi
2884 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2885 echo "${ECHO_T}$ac_cv_host" >&6
2886 host=$ac_cv_host
2887 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2888 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2889 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2890
2891
2892 echo "$as_me:$LINENO: checking target system type" >&5
2893 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2894 if test "${ac_cv_target+set}" = set; then
2895   echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897   ac_cv_target_alias=$target_alias
2898 test "x$ac_cv_target_alias" = "x" &&
2899   ac_cv_target_alias=$ac_cv_host_alias
2900 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2901   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2902 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2903    { (exit 1); exit 1; }; }
2904
2905 fi
2906 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2907 echo "${ECHO_T}$ac_cv_target" >&6
2908 target=$ac_cv_target
2909 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2910 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2911 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2912
2913
2914 # The aliases save the names the user supplied, while $host etc.
2915 # will get canonicalized.
2916 test -n "$target_alias" &&
2917   test "$program_prefix$program_suffix$program_transform_name" = \
2918     NONENONEs,x,x, &&
2919   program_prefix=${target_alias}-
2920
2921
2922 CONFIG_OBS=
2923 CONFIG_DEPS=
2924 CONFIG_SRCS=
2925 ENABLE_CFLAGS=
2926
2927 CONFIG_ALL=
2928 CONFIG_CLEAN=
2929 CONFIG_INSTALL=
2930 CONFIG_UNINSTALL=
2931
2932
2933 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2934 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2935 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2936 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   cat >conftest.make <<\_ACEOF
2940 all:
2941         @echo 'ac_maketemp="$(MAKE)"'
2942 _ACEOF
2943 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2944 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2945 if test -n "$ac_maketemp"; then
2946   eval ac_cv_prog_make_${ac_make}_set=yes
2947 else
2948   eval ac_cv_prog_make_${ac_make}_set=no
2949 fi
2950 rm -f conftest.make
2951 fi
2952 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2953   echo "$as_me:$LINENO: result: yes" >&5
2954 echo "${ECHO_T}yes" >&6
2955   SET_MAKE=
2956 else
2957   echo "$as_me:$LINENO: result: no" >&5
2958 echo "${ECHO_T}no" >&6
2959   SET_MAKE="MAKE=${MAKE-make}"
2960 fi
2961
2962 if test -n "$ac_tool_prefix"; then
2963   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2965 echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967 if test "${ac_cv_prog_RANLIB+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   if test -n "$RANLIB"; then
2971   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976   IFS=$as_save_IFS
2977   test -z "$as_dir" && as_dir=.
2978   for ac_exec_ext in '' $ac_executable_extensions; do
2979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982     break 2
2983   fi
2984 done
2985 done
2986
2987 fi
2988 fi
2989 RANLIB=$ac_cv_prog_RANLIB
2990 if test -n "$RANLIB"; then
2991   echo "$as_me:$LINENO: result: $RANLIB" >&5
2992 echo "${ECHO_T}$RANLIB" >&6
2993 else
2994   echo "$as_me:$LINENO: result: no" >&5
2995 echo "${ECHO_T}no" >&6
2996 fi
2997
2998 fi
2999 if test -z "$ac_cv_prog_RANLIB"; then
3000   ac_ct_RANLIB=$RANLIB
3001   # Extract the first word of "ranlib", so it can be a program name with args.
3002 set dummy ranlib; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   if test -n "$ac_ct_RANLIB"; then
3009   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016   for ac_exec_ext in '' $ac_executable_extensions; do
3017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018     ac_cv_prog_ac_ct_RANLIB="ranlib"
3019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023 done
3024
3025   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3026 fi
3027 fi
3028 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3029 if test -n "$ac_ct_RANLIB"; then
3030   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3031 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3032 else
3033   echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6
3035 fi
3036
3037   RANLIB=$ac_ct_RANLIB
3038 else
3039   RANLIB="$ac_cv_prog_RANLIB"
3040 fi
3041
3042 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3044 if test "${ac_cv_header_stdc+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 #include <stdlib.h>
3054 #include <stdarg.h>
3055 #include <string.h>
3056 #include <float.h>
3057
3058 int
3059 main ()
3060 {
3061
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068   (eval $ac_compile) 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } &&
3075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077   (eval $ac_try) 2>&5
3078   ac_status=$?
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); }; } &&
3081          { ac_try='test -s conftest.$ac_objext'
3082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083   (eval $ac_try) 2>&5
3084   ac_status=$?
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); }; }; then
3087   ac_cv_header_stdc=yes
3088 else
3089   echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 ac_cv_header_stdc=no
3093 fi
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3095
3096 if test $ac_cv_header_stdc = yes; then
3097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3098   cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104 #include <string.h>
3105
3106 _ACEOF
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108   $EGREP "memchr" >/dev/null 2>&1; then
3109   :
3110 else
3111   ac_cv_header_stdc=no
3112 fi
3113 rm -f conftest*
3114
3115 fi
3116
3117 if test $ac_cv_header_stdc = yes; then
3118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3119   cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125 #include <stdlib.h>
3126
3127 _ACEOF
3128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3129   $EGREP "free" >/dev/null 2>&1; then
3130   :
3131 else
3132   ac_cv_header_stdc=no
3133 fi
3134 rm -f conftest*
3135
3136 fi
3137
3138 if test $ac_cv_header_stdc = yes; then
3139   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3140   if test "$cross_compiling" = yes; then
3141   :
3142 else
3143   cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149 #include <ctype.h>
3150 #if ((' ' & 0x0FF) == 0x020)
3151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3153 #else
3154 # define ISLOWER(c) \
3155                    (('a' <= (c) && (c) <= 'i') \
3156                      || ('j' <= (c) && (c) <= 'r') \
3157                      || ('s' <= (c) && (c) <= 'z'))
3158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3159 #endif
3160
3161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3162 int
3163 main ()
3164 {
3165   int i;
3166   for (i = 0; i < 256; i++)
3167     if (XOR (islower (i), ISLOWER (i))
3168         || toupper (i) != TOUPPER (i))
3169       exit(2);
3170   exit (0);
3171 }
3172 _ACEOF
3173 rm -f conftest$ac_exeext
3174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175   (eval $ac_link) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180   (eval $ac_try) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   :
3185 else
3186   echo "$as_me: program exited with status $ac_status" >&5
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 ( exit $ac_status )
3191 ac_cv_header_stdc=no
3192 fi
3193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3194 fi
3195 fi
3196 fi
3197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3199 if test $ac_cv_header_stdc = yes; then
3200
3201 cat >>confdefs.h <<\_ACEOF
3202 #define STDC_HEADERS 1
3203 _ACEOF
3204
3205 fi
3206
3207 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3208 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3209 if test "${ac_cv_c_const+set}" = set; then
3210   echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212   cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h.  */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h.  */
3218
3219 int
3220 main ()
3221 {
3222 /* FIXME: Include the comments suggested by Paul. */
3223 #ifndef __cplusplus
3224   /* Ultrix mips cc rejects this.  */
3225   typedef int charset[2];
3226   const charset x;
3227   /* SunOS 4.1.1 cc rejects this.  */
3228   char const *const *ccp;
3229   char **p;
3230   /* NEC SVR4.0.2 mips cc rejects this.  */
3231   struct point {int x, y;};
3232   static struct point const zero = {0,0};
3233   /* AIX XL C 1.02.0.0 rejects this.
3234      It does not let you subtract one const X* pointer from another in
3235      an arm of an if-expression whose if-part is not a constant
3236      expression */
3237   const char *g = "string";
3238   ccp = &g + (g ? g-g : 0);
3239   /* HPUX 7.0 cc rejects these. */
3240   ++ccp;
3241   p = (char**) ccp;
3242   ccp = (char const *const *) p;
3243   { /* SCO 3.2v4 cc rejects this.  */
3244     char *t;
3245     char const *s = 0 ? (char *) 0 : (char const *) 0;
3246
3247     *t++ = 0;
3248   }
3249   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3250     int x[] = {25, 17};
3251     const int *foo = &x[0];
3252     ++foo;
3253   }
3254   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3255     typedef const int *iptr;
3256     iptr p = 0;
3257     ++p;
3258   }
3259   { /* AIX XL C 1.02.0.0 rejects this saying
3260        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3261     struct s { int j; const int *ap[3]; };
3262     struct s *b; b->j = 5;
3263   }
3264   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3265     const int foo = 10;
3266   }
3267 #endif
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275   (eval $ac_compile) 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } &&
3282          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284   (eval $ac_try) 2>&5
3285   ac_status=$?
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); }; } &&
3288          { ac_try='test -s conftest.$ac_objext'
3289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290   (eval $ac_try) 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; }; then
3294   ac_cv_c_const=yes
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 ac_cv_c_const=no
3300 fi
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302 fi
3303 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3304 echo "${ECHO_T}$ac_cv_c_const" >&6
3305 if test $ac_cv_c_const = no; then
3306
3307 cat >>confdefs.h <<\_ACEOF
3308 #define const
3309 _ACEOF
3310
3311 fi
3312
3313 echo "$as_me:$LINENO: checking for inline" >&5
3314 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3315 if test "${ac_cv_c_inline+set}" = set; then
3316   echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318   ac_cv_c_inline=no
3319 for ac_kw in inline __inline__ __inline; do
3320   cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h.  */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h.  */
3326 #ifndef __cplusplus
3327 typedef int foo_t;
3328 static $ac_kw foo_t static_foo () {return 0; }
3329 $ac_kw foo_t foo () {return 0; }
3330 #endif
3331
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335   (eval $ac_compile) 2>conftest.er1
3336   ac_status=$?
3337   grep -v '^ *+' conftest.er1 >conftest.err
3338   rm -f conftest.er1
3339   cat conftest.err >&5
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); } &&
3342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344   (eval $ac_try) 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); }; } &&
3348          { ac_try='test -s conftest.$ac_objext'
3349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350   (eval $ac_try) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; }; then
3354   ac_cv_c_inline=$ac_kw; break
3355 else
3356   echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 fi
3360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3361 done
3362
3363 fi
3364 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3365 echo "${ECHO_T}$ac_cv_c_inline" >&6
3366
3367
3368 case $ac_cv_c_inline in
3369   inline | yes) ;;
3370   *)
3371     case $ac_cv_c_inline in
3372       no) ac_val=;;
3373       *) ac_val=$ac_cv_c_inline;;
3374     esac
3375     cat >>confdefs.h <<_ACEOF
3376 #ifndef __cplusplus
3377 #define inline $ac_val
3378 #endif
3379 _ACEOF
3380     ;;
3381 esac
3382
3383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3394                   inttypes.h stdint.h unistd.h
3395 do
3396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3397 echo "$as_me:$LINENO: checking for $ac_header" >&5
3398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402   cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h.  */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h.  */
3408 $ac_includes_default
3409
3410 #include <$ac_header>
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414   (eval $ac_compile) 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } &&
3421          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423   (eval $ac_try) 2>&5
3424   ac_status=$?
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); }; } &&
3427          { ac_try='test -s conftest.$ac_objext'
3428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429   (eval $ac_try) 2>&5
3430   ac_status=$?
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); }; }; then
3433   eval "$as_ac_Header=yes"
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438 eval "$as_ac_Header=no"
3439 fi
3440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441 fi
3442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3445   cat >>confdefs.h <<_ACEOF
3446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3447 _ACEOF
3448
3449 fi
3450
3451 done
3452
3453
3454 echo "$as_me:$LINENO: checking for off_t" >&5
3455 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3456 if test "${ac_cv_type_off_t+set}" = set; then
3457   echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459   cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465 $ac_includes_default
3466 int
3467 main ()
3468 {
3469 if ((off_t *) 0)
3470   return 0;
3471 if (sizeof (off_t))
3472   return 0;
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479   (eval $ac_compile) 2>conftest.er1
3480   ac_status=$?
3481   grep -v '^ *+' conftest.er1 >conftest.err
3482   rm -f conftest.er1
3483   cat conftest.err >&5
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); } &&
3486          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488   (eval $ac_try) 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); }; } &&
3492          { ac_try='test -s conftest.$ac_objext'
3493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494   (eval $ac_try) 2>&5
3495   ac_status=$?
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); }; }; then
3498   ac_cv_type_off_t=yes
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 ac_cv_type_off_t=no
3504 fi
3505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506 fi
3507 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3508 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3509 if test $ac_cv_type_off_t = yes; then
3510   :
3511 else
3512
3513 cat >>confdefs.h <<_ACEOF
3514 #define off_t long
3515 _ACEOF
3516
3517 fi
3518
3519 echo "$as_me:$LINENO: checking for size_t" >&5
3520 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3521 if test "${ac_cv_type_size_t+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530 $ac_includes_default
3531 int
3532 main ()
3533 {
3534 if ((size_t *) 0)
3535   return 0;
3536 if (sizeof (size_t))
3537   return 0;
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3544   (eval $ac_compile) 2>conftest.er1
3545   ac_status=$?
3546   grep -v '^ *+' conftest.er1 >conftest.err
3547   rm -f conftest.er1
3548   cat conftest.err >&5
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); } &&
3551          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553   (eval $ac_try) 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); }; } &&
3557          { ac_try='test -s conftest.$ac_objext'
3558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559   (eval $ac_try) 2>&5
3560   ac_status=$?
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); }; }; then
3563   ac_cv_type_size_t=yes
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 ac_cv_type_size_t=no
3569 fi
3570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3571 fi
3572 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3573 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3574 if test $ac_cv_type_size_t = yes; then
3575   :
3576 else
3577
3578 cat >>confdefs.h <<_ACEOF
3579 #define size_t unsigned
3580 _ACEOF
3581
3582 fi
3583
3584 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3585 # for constant arguments.  Useless!
3586 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3587 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3588 if test "${ac_cv_working_alloca_h+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h.  */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h.  */
3597 #include <alloca.h>
3598 int
3599 main ()
3600 {
3601 char *p = (char *) alloca (2 * sizeof (int));
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 rm -f conftest.$ac_objext conftest$ac_exeext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3608   (eval $ac_link) 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } &&
3615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617   (eval $ac_try) 2>&5
3618   ac_status=$?
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); }; } &&
3621          { ac_try='test -s conftest$ac_exeext'
3622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623   (eval $ac_try) 2>&5
3624   ac_status=$?
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); }; }; then
3627   ac_cv_working_alloca_h=yes
3628 else
3629   echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 ac_cv_working_alloca_h=no
3633 fi
3634 rm -f conftest.err conftest.$ac_objext \
3635       conftest$ac_exeext conftest.$ac_ext
3636 fi
3637 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3638 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3639 if test $ac_cv_working_alloca_h = yes; then
3640
3641 cat >>confdefs.h <<\_ACEOF
3642 #define HAVE_ALLOCA_H 1
3643 _ACEOF
3644
3645 fi
3646
3647 echo "$as_me:$LINENO: checking for alloca" >&5
3648 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3649 if test "${ac_cv_func_alloca_works+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652   cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h.  */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h.  */
3658 #ifdef __GNUC__
3659 # define alloca __builtin_alloca
3660 #else
3661 # ifdef _MSC_VER
3662 #  include <malloc.h>
3663 #  define alloca _alloca
3664 # else
3665 #  if HAVE_ALLOCA_H
3666 #   include <alloca.h>
3667 #  else
3668 #   ifdef _AIX
3669  #pragma alloca
3670 #   else
3671 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3672 char *alloca ();
3673 #    endif
3674 #   endif
3675 #  endif
3676 # endif
3677 #endif
3678
3679 int
3680 main ()
3681 {
3682 char *p = (char *) alloca (1);
3683   ;
3684   return 0;
3685 }
3686 _ACEOF
3687 rm -f conftest.$ac_objext conftest$ac_exeext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689   (eval $ac_link) 2>conftest.er1
3690   ac_status=$?
3691   grep -v '^ *+' conftest.er1 >conftest.err
3692   rm -f conftest.er1
3693   cat conftest.err >&5
3694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695   (exit $ac_status); } &&
3696          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698   (eval $ac_try) 2>&5
3699   ac_status=$?
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); }; } &&
3702          { ac_try='test -s conftest$ac_exeext'
3703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704   (eval $ac_try) 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); }; }; then
3708   ac_cv_func_alloca_works=yes
3709 else
3710   echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 ac_cv_func_alloca_works=no
3714 fi
3715 rm -f conftest.err conftest.$ac_objext \
3716       conftest$ac_exeext conftest.$ac_ext
3717 fi
3718 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3719 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3720
3721 if test $ac_cv_func_alloca_works = yes; then
3722
3723 cat >>confdefs.h <<\_ACEOF
3724 #define HAVE_ALLOCA 1
3725 _ACEOF
3726
3727 else
3728   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3729 # that cause trouble.  Some versions do not even contain alloca or
3730 # contain a buggy version.  If you still want to use their alloca,
3731 # use ar to extract alloca.o from them instead of compiling alloca.c.
3732
3733 ALLOCA=alloca.$ac_objext
3734
3735 cat >>confdefs.h <<\_ACEOF
3736 #define C_ALLOCA 1
3737 _ACEOF
3738
3739
3740 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3741 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3742 if test "${ac_cv_os_cray+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   cat >conftest.$ac_ext <<_ACEOF
3746 /* confdefs.h.  */
3747 _ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h.  */
3751 #if defined(CRAY) && ! defined(CRAY2)
3752 webecray
3753 #else
3754 wenotbecray
3755 #endif
3756
3757 _ACEOF
3758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3759   $EGREP "webecray" >/dev/null 2>&1; then
3760   ac_cv_os_cray=yes
3761 else
3762   ac_cv_os_cray=no
3763 fi
3764 rm -f conftest*
3765
3766 fi
3767 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3768 echo "${ECHO_T}$ac_cv_os_cray" >&6
3769 if test $ac_cv_os_cray = yes; then
3770   for ac_func in _getb67 GETB67 getb67; do
3771     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3772 echo "$as_me:$LINENO: checking for $ac_func" >&5
3773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3774 if eval "test \"\${$as_ac_var+set}\" = set"; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3785 #define $ac_func innocuous_$ac_func
3786
3787 /* System header to define __stub macros and hopefully few prototypes,
3788     which can conflict with char $ac_func (); below.
3789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790     <limits.h> exists even on freestanding compilers.  */
3791
3792 #ifdef __STDC__
3793 # include <limits.h>
3794 #else
3795 # include <assert.h>
3796 #endif
3797
3798 #undef $ac_func
3799
3800 /* Override any gcc2 internal prototype to avoid an error.  */
3801 #ifdef __cplusplus
3802 extern "C"
3803 {
3804 #endif
3805 /* We use char because int might match the return type of a gcc2
3806    builtin and then its argument prototype would still apply.  */
3807 char $ac_func ();
3808 /* The GNU C library defines this for functions which it implements
3809     to always fail with ENOSYS.  Some functions are actually named
3810     something starting with __ and the normal name is an alias.  */
3811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3812 choke me
3813 #else
3814 char (*f) () = $ac_func;
3815 #endif
3816 #ifdef __cplusplus
3817 }
3818 #endif
3819
3820 int
3821 main ()
3822 {
3823 return f != $ac_func;
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 rm -f conftest.$ac_objext conftest$ac_exeext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830   (eval $ac_link) 2>conftest.er1
3831   ac_status=$?
3832   grep -v '^ *+' conftest.er1 >conftest.err
3833   rm -f conftest.er1
3834   cat conftest.err >&5
3835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); } &&
3837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839   (eval $ac_try) 2>&5
3840   ac_status=$?
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); }; } &&
3843          { ac_try='test -s conftest$ac_exeext'
3844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845   (eval $ac_try) 2>&5
3846   ac_status=$?
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); }; }; then
3849   eval "$as_ac_var=yes"
3850 else
3851   echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3853
3854 eval "$as_ac_var=no"
3855 fi
3856 rm -f conftest.err conftest.$ac_objext \
3857       conftest$ac_exeext conftest.$ac_ext
3858 fi
3859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3861 if test `eval echo '${'$as_ac_var'}'` = yes; then
3862
3863 cat >>confdefs.h <<_ACEOF
3864 #define CRAY_STACKSEG_END $ac_func
3865 _ACEOF
3866
3867     break
3868 fi
3869
3870   done
3871 fi
3872
3873 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3874 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3875 if test "${ac_cv_c_stack_direction+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   if test "$cross_compiling" = yes; then
3879   ac_cv_c_stack_direction=0
3880 else
3881   cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887 int
3888 find_stack_direction ()
3889 {
3890   static char *addr = 0;
3891   auto char dummy;
3892   if (addr == 0)
3893     {
3894       addr = &dummy;
3895       return find_stack_direction ();
3896     }
3897   else
3898     return (&dummy > addr) ? 1 : -1;
3899 }
3900
3901 int
3902 main ()
3903 {
3904   exit (find_stack_direction () < 0);
3905 }
3906 _ACEOF
3907 rm -f conftest$ac_exeext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909   (eval $ac_link) 2>&5
3910   ac_status=$?
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914   (eval $ac_try) 2>&5
3915   ac_status=$?
3916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); }; }; then
3918   ac_cv_c_stack_direction=1
3919 else
3920   echo "$as_me: program exited with status $ac_status" >&5
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924 ( exit $ac_status )
3925 ac_cv_c_stack_direction=-1
3926 fi
3927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3928 fi
3929 fi
3930 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3931 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3932
3933 cat >>confdefs.h <<_ACEOF
3934 #define STACK_DIRECTION $ac_cv_c_stack_direction
3935 _ACEOF
3936
3937
3938 fi
3939
3940
3941
3942 for ac_header in stdlib.h unistd.h
3943 do
3944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3946   echo "$as_me:$LINENO: checking for $ac_header" >&5
3947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3949   echo $ECHO_N "(cached) $ECHO_C" >&6
3950 fi
3951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3953 else
3954   # Is the header compilable?
3955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h.  */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h.  */
3963 $ac_includes_default
3964 #include <$ac_header>
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968   (eval $ac_compile) 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } &&
3975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977   (eval $ac_try) 2>&5
3978   ac_status=$?
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); }; } &&
3981          { ac_try='test -s conftest.$ac_objext'
3982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983   (eval $ac_try) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); }; }; then
3987   ac_header_compiler=yes
3988 else
3989   echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 ac_header_compiler=no
3993 fi
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3996 echo "${ECHO_T}$ac_header_compiler" >&6
3997
3998 # Is the header present?
3999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4001 cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h.  */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h.  */
4007 #include <$ac_header>
4008 _ACEOF
4009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4011   ac_status=$?
4012   grep -v '^ *+' conftest.er1 >conftest.err
4013   rm -f conftest.er1
4014   cat conftest.err >&5
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); } >/dev/null; then
4017   if test -s conftest.err; then
4018     ac_cpp_err=$ac_c_preproc_warn_flag
4019     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4020   else
4021     ac_cpp_err=
4022   fi
4023 else
4024   ac_cpp_err=yes
4025 fi
4026 if test -z "$ac_cpp_err"; then
4027   ac_header_preproc=yes
4028 else
4029   echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032   ac_header_preproc=no
4033 fi
4034 rm -f conftest.err conftest.$ac_ext
4035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4036 echo "${ECHO_T}$ac_header_preproc" >&6
4037
4038 # So?  What about this header?
4039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4040   yes:no: )
4041     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4045     ac_header_preproc=yes
4046     ;;
4047   no:yes:* )
4048     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4050     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4051 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4052     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4054     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4055 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4058     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4060     (
4061       cat <<\_ASBOX
4062 ## ------------------------------------------ ##
4063 ## Report this to the AC_PACKAGE_NAME lists.  ##
4064 ## ------------------------------------------ ##
4065 _ASBOX
4066     ) |
4067       sed "s/^/$as_me: WARNING:     /" >&2
4068     ;;
4069 esac
4070 echo "$as_me:$LINENO: checking for $ac_header" >&5
4071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   eval "$as_ac_Header=\$ac_header_preproc"
4076 fi
4077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4079
4080 fi
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082   cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 _ACEOF
4085
4086 fi
4087
4088 done
4089
4090
4091 for ac_func in getpagesize
4092 do
4093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4094 echo "$as_me:$LINENO: checking for $ac_func" >&5
4095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4096 if eval "test \"\${$as_ac_var+set}\" = set"; then
4097   echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099   cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h.  */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h.  */
4105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4107 #define $ac_func innocuous_$ac_func
4108
4109 /* System header to define __stub macros and hopefully few prototypes,
4110     which can conflict with char $ac_func (); below.
4111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112     <limits.h> exists even on freestanding compilers.  */
4113
4114 #ifdef __STDC__
4115 # include <limits.h>
4116 #else
4117 # include <assert.h>
4118 #endif
4119
4120 #undef $ac_func
4121
4122 /* Override any gcc2 internal prototype to avoid an error.  */
4123 #ifdef __cplusplus
4124 extern "C"
4125 {
4126 #endif
4127 /* We use char because int might match the return type of a gcc2
4128    builtin and then its argument prototype would still apply.  */
4129 char $ac_func ();
4130 /* The GNU C library defines this for functions which it implements
4131     to always fail with ENOSYS.  Some functions are actually named
4132     something starting with __ and the normal name is an alias.  */
4133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4134 choke me
4135 #else
4136 char (*f) () = $ac_func;
4137 #endif
4138 #ifdef __cplusplus
4139 }
4140 #endif
4141
4142 int
4143 main ()
4144 {
4145 return f != $ac_func;
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext conftest$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152   (eval $ac_link) 2>conftest.er1
4153   ac_status=$?
4154   grep -v '^ *+' conftest.er1 >conftest.err
4155   rm -f conftest.er1
4156   cat conftest.err >&5
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); } &&
4159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161   (eval $ac_try) 2>&5
4162   ac_status=$?
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); }; } &&
4165          { ac_try='test -s conftest$ac_exeext'
4166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167   (eval $ac_try) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; }; then
4171   eval "$as_ac_var=yes"
4172 else
4173   echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4175
4176 eval "$as_ac_var=no"
4177 fi
4178 rm -f conftest.err conftest.$ac_objext \
4179       conftest$ac_exeext conftest.$ac_ext
4180 fi
4181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4183 if test `eval echo '${'$as_ac_var'}'` = yes; then
4184   cat >>confdefs.h <<_ACEOF
4185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4186 _ACEOF
4187
4188 fi
4189 done
4190
4191 echo "$as_me:$LINENO: checking for working mmap" >&5
4192 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4193 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4194   echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196   if test "$cross_compiling" = yes; then
4197   ac_cv_func_mmap_fixed_mapped=no
4198 else
4199   cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h.  */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h.  */
4205 $ac_includes_default
4206 /* malloc might have been renamed as rpl_malloc. */
4207 #undef malloc
4208
4209 /* Thanks to Mike Haertel and Jim Avera for this test.
4210    Here is a matrix of mmap possibilities:
4211         mmap private not fixed
4212         mmap private fixed at somewhere currently unmapped
4213         mmap private fixed at somewhere already mapped
4214         mmap shared not fixed
4215         mmap shared fixed at somewhere currently unmapped
4216         mmap shared fixed at somewhere already mapped
4217    For private mappings, we should verify that changes cannot be read()
4218    back from the file, nor mmap's back from the file at a different
4219    address.  (There have been systems where private was not correctly
4220    implemented like the infamous i386 svr4.0, and systems where the
4221    VM page cache was not coherent with the file system buffer cache
4222    like early versions of FreeBSD and possibly contemporary NetBSD.)
4223    For shared mappings, we should conversely verify that changes get
4224    propagated back to all the places they're supposed to be.
4225
4226    Grep wants private fixed already mapped.
4227    The main things grep needs to know about mmap are:
4228    * does it exist and is it safe to write into the mmap'd area
4229    * how to use it (BSD variants)  */
4230
4231 #include <fcntl.h>
4232 #include <sys/mman.h>
4233
4234 #if !STDC_HEADERS && !HAVE_STDLIB_H
4235 char *malloc ();
4236 #endif
4237
4238 /* This mess was copied from the GNU getpagesize.h.  */
4239 #if !HAVE_GETPAGESIZE
4240 /* Assume that all systems that can run configure have sys/param.h.  */
4241 # if !HAVE_SYS_PARAM_H
4242 #  define HAVE_SYS_PARAM_H 1
4243 # endif
4244
4245 # ifdef _SC_PAGESIZE
4246 #  define getpagesize() sysconf(_SC_PAGESIZE)
4247 # else /* no _SC_PAGESIZE */
4248 #  if HAVE_SYS_PARAM_H
4249 #   include <sys/param.h>
4250 #   ifdef EXEC_PAGESIZE
4251 #    define getpagesize() EXEC_PAGESIZE
4252 #   else /* no EXEC_PAGESIZE */
4253 #    ifdef NBPG
4254 #     define getpagesize() NBPG * CLSIZE
4255 #     ifndef CLSIZE
4256 #      define CLSIZE 1
4257 #     endif /* no CLSIZE */
4258 #    else /* no NBPG */
4259 #     ifdef NBPC
4260 #      define getpagesize() NBPC
4261 #     else /* no NBPC */
4262 #      ifdef PAGESIZE
4263 #       define getpagesize() PAGESIZE
4264 #      endif /* PAGESIZE */
4265 #     endif /* no NBPC */
4266 #    endif /* no NBPG */
4267 #   endif /* no EXEC_PAGESIZE */
4268 #  else /* no HAVE_SYS_PARAM_H */
4269 #   define getpagesize() 8192   /* punt totally */
4270 #  endif /* no HAVE_SYS_PARAM_H */
4271 # endif /* no _SC_PAGESIZE */
4272
4273 #endif /* no HAVE_GETPAGESIZE */
4274
4275 int
4276 main ()
4277 {
4278   char *data, *data2, *data3;
4279   int i, pagesize;
4280   int fd;
4281
4282   pagesize = getpagesize ();
4283
4284   /* First, make a file with some known garbage in it. */
4285   data = (char *) malloc (pagesize);
4286   if (!data)
4287     exit (1);
4288   for (i = 0; i < pagesize; ++i)
4289     *(data + i) = rand ();
4290   umask (0);
4291   fd = creat ("conftest.mmap", 0600);
4292   if (fd < 0)
4293     exit (1);
4294   if (write (fd, data, pagesize) != pagesize)
4295     exit (1);
4296   close (fd);
4297
4298   /* Next, try to mmap the file at a fixed address which already has
4299      something else allocated at it.  If we can, also make sure that
4300      we see the same garbage.  */
4301   fd = open ("conftest.mmap", O_RDWR);
4302   if (fd < 0)
4303     exit (1);
4304   data2 = (char *) malloc (2 * pagesize);
4305   if (!data2)
4306     exit (1);
4307   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4308   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4309                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4310     exit (1);
4311   for (i = 0; i < pagesize; ++i)
4312     if (*(data + i) != *(data2 + i))
4313       exit (1);
4314
4315   /* Finally, make sure that changes to the mapped area do not
4316      percolate back to the file as seen by read().  (This is a bug on
4317      some variants of i386 svr4.0.)  */
4318   for (i = 0; i < pagesize; ++i)
4319     *(data2 + i) = *(data2 + i) + 1;
4320   data3 = (char *) malloc (pagesize);
4321   if (!data3)
4322     exit (1);
4323   if (read (fd, data3, pagesize) != pagesize)
4324     exit (1);
4325   for (i = 0; i < pagesize; ++i)
4326     if (*(data + i) != *(data3 + i))
4327       exit (1);
4328   close (fd);
4329   exit (0);
4330 }
4331 _ACEOF
4332 rm -f conftest$ac_exeext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4334   (eval $ac_link) 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339   (eval $ac_try) 2>&5
4340   ac_status=$?
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); }; }; then
4343   ac_cv_func_mmap_fixed_mapped=yes
4344 else
4345   echo "$as_me: program exited with status $ac_status" >&5
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349 ( exit $ac_status )
4350 ac_cv_func_mmap_fixed_mapped=no
4351 fi
4352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4353 fi
4354 fi
4355 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4356 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4357 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4358
4359 cat >>confdefs.h <<\_ACEOF
4360 #define HAVE_MMAP 1
4361 _ACEOF
4362
4363 fi
4364 rm -f conftest.mmap
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4377 unistd.h values.h sys/param.h
4378 do
4379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4381   echo "$as_me:$LINENO: checking for $ac_header" >&5
4382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 fi
4386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4388 else
4389   # Is the header compilable?
4390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h.  */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h.  */
4398 $ac_includes_default
4399 #include <$ac_header>
4400 _ACEOF
4401 rm -f conftest.$ac_objext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403   (eval $ac_compile) 2>conftest.er1
4404   ac_status=$?
4405   grep -v '^ *+' conftest.er1 >conftest.err
4406   rm -f conftest.er1
4407   cat conftest.err >&5
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); } &&
4410          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412   (eval $ac_try) 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; } &&
4416          { ac_try='test -s conftest.$ac_objext'
4417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418   (eval $ac_try) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; }; then
4422   ac_header_compiler=yes
4423 else
4424   echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427 ac_header_compiler=no
4428 fi
4429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4431 echo "${ECHO_T}$ac_header_compiler" >&6
4432
4433 # Is the header present?
4434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 #include <$ac_header>
4443 _ACEOF
4444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4446   ac_status=$?
4447   grep -v '^ *+' conftest.er1 >conftest.err
4448   rm -f conftest.er1
4449   cat conftest.err >&5
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); } >/dev/null; then
4452   if test -s conftest.err; then
4453     ac_cpp_err=$ac_c_preproc_warn_flag
4454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4455   else
4456     ac_cpp_err=
4457   fi
4458 else
4459   ac_cpp_err=yes
4460 fi
4461 if test -z "$ac_cpp_err"; then
4462   ac_header_preproc=yes
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467   ac_header_preproc=no
4468 fi
4469 rm -f conftest.err conftest.$ac_ext
4470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4471 echo "${ECHO_T}$ac_header_preproc" >&6
4472
4473 # So?  What about this header?
4474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4475   yes:no: )
4476     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4480     ac_header_preproc=yes
4481     ;;
4482   no:yes:* )
4483     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4485     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4486 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4487     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4489     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4490 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4493     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4495     (
4496       cat <<\_ASBOX
4497 ## ------------------------------------------ ##
4498 ## Report this to the AC_PACKAGE_NAME lists.  ##
4499 ## ------------------------------------------ ##
4500 _ASBOX
4501     ) |
4502       sed "s/^/$as_me: WARNING:     /" >&2
4503     ;;
4504 esac
4505 echo "$as_me:$LINENO: checking for $ac_header" >&5
4506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4508   echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510   eval "$as_ac_Header=\$ac_header_preproc"
4511 fi
4512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4514
4515 fi
4516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4517   cat >>confdefs.h <<_ACEOF
4518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4519 _ACEOF
4520
4521 fi
4522
4523 done
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4536 __argz_count __argz_stringify __argz_next
4537 do
4538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4539 echo "$as_me:$LINENO: checking for $ac_func" >&5
4540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4541 if eval "test \"\${$as_ac_var+set}\" = set"; then
4542   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544   cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4552 #define $ac_func innocuous_$ac_func
4553
4554 /* System header to define __stub macros and hopefully few prototypes,
4555     which can conflict with char $ac_func (); below.
4556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557     <limits.h> exists even on freestanding compilers.  */
4558
4559 #ifdef __STDC__
4560 # include <limits.h>
4561 #else
4562 # include <assert.h>
4563 #endif
4564
4565 #undef $ac_func
4566
4567 /* Override any gcc2 internal prototype to avoid an error.  */
4568 #ifdef __cplusplus
4569 extern "C"
4570 {
4571 #endif
4572 /* We use char because int might match the return type of a gcc2
4573    builtin and then its argument prototype would still apply.  */
4574 char $ac_func ();
4575 /* The GNU C library defines this for functions which it implements
4576     to always fail with ENOSYS.  Some functions are actually named
4577     something starting with __ and the normal name is an alias.  */
4578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4579 choke me
4580 #else
4581 char (*f) () = $ac_func;
4582 #endif
4583 #ifdef __cplusplus
4584 }
4585 #endif
4586
4587 int
4588 main ()
4589 {
4590 return f != $ac_func;
4591   ;
4592   return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.$ac_objext conftest$ac_exeext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4597   (eval $ac_link) 2>conftest.er1
4598   ac_status=$?
4599   grep -v '^ *+' conftest.er1 >conftest.err
4600   rm -f conftest.er1
4601   cat conftest.err >&5
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } &&
4604          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606   (eval $ac_try) 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }; } &&
4610          { ac_try='test -s conftest$ac_exeext'
4611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612   (eval $ac_try) 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }; }; then
4616   eval "$as_ac_var=yes"
4617 else
4618   echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621 eval "$as_ac_var=no"
4622 fi
4623 rm -f conftest.err conftest.$ac_objext \
4624       conftest$ac_exeext conftest.$ac_ext
4625 fi
4626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4628 if test `eval echo '${'$as_ac_var'}'` = yes; then
4629   cat >>confdefs.h <<_ACEOF
4630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4631 _ACEOF
4632
4633 fi
4634 done
4635
4636
4637    if test "${ac_cv_func_stpcpy+set}" != "set"; then
4638
4639 for ac_func in stpcpy
4640 do
4641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4642 echo "$as_me:$LINENO: checking for $ac_func" >&5
4643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4644 if eval "test \"\${$as_ac_var+set}\" = set"; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h.  */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h.  */
4653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4655 #define $ac_func innocuous_$ac_func
4656
4657 /* System header to define __stub macros and hopefully few prototypes,
4658     which can conflict with char $ac_func (); below.
4659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660     <limits.h> exists even on freestanding compilers.  */
4661
4662 #ifdef __STDC__
4663 # include <limits.h>
4664 #else
4665 # include <assert.h>
4666 #endif
4667
4668 #undef $ac_func
4669
4670 /* Override any gcc2 internal prototype to avoid an error.  */
4671 #ifdef __cplusplus
4672 extern "C"
4673 {
4674 #endif
4675 /* We use char because int might match the return type of a gcc2
4676    builtin and then its argument prototype would still apply.  */
4677 char $ac_func ();
4678 /* The GNU C library defines this for functions which it implements
4679     to always fail with ENOSYS.  Some functions are actually named
4680     something starting with __ and the normal name is an alias.  */
4681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4682 choke me
4683 #else
4684 char (*f) () = $ac_func;
4685 #endif
4686 #ifdef __cplusplus
4687 }
4688 #endif
4689
4690 int
4691 main ()
4692 {
4693 return f != $ac_func;
4694   ;
4695   return 0;
4696 }
4697 _ACEOF
4698 rm -f conftest.$ac_objext conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700   (eval $ac_link) 2>conftest.er1
4701   ac_status=$?
4702   grep -v '^ *+' conftest.er1 >conftest.err
4703   rm -f conftest.er1
4704   cat conftest.err >&5
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); } &&
4707          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709   (eval $ac_try) 2>&5
4710   ac_status=$?
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); }; } &&
4713          { ac_try='test -s conftest$ac_exeext'
4714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715   (eval $ac_try) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; }; then
4719   eval "$as_ac_var=yes"
4720 else
4721   echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 eval "$as_ac_var=no"
4725 fi
4726 rm -f conftest.err conftest.$ac_objext \
4727       conftest$ac_exeext conftest.$ac_ext
4728 fi
4729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4731 if test `eval echo '${'$as_ac_var'}'` = yes; then
4732   cat >>confdefs.h <<_ACEOF
4733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4734 _ACEOF
4735
4736 fi
4737 done
4738
4739    fi
4740    if test "${ac_cv_func_stpcpy}" = "yes"; then
4741
4742 cat >>confdefs.h <<\_ACEOF
4743 #define HAVE_STPCPY 1
4744 _ACEOF
4745
4746    fi
4747
4748    if test $ac_cv_header_locale_h = yes; then
4749     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4750 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4751 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4752   echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754   cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h.  */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h.  */
4760 #include <locale.h>
4761 int
4762 main ()
4763 {
4764 return LC_MESSAGES
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext conftest$ac_exeext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771   (eval $ac_link) 2>conftest.er1
4772   ac_status=$?
4773   grep -v '^ *+' conftest.er1 >conftest.err
4774   rm -f conftest.er1
4775   cat conftest.err >&5
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } &&
4778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780   (eval $ac_try) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); }; } &&
4784          { ac_try='test -s conftest$ac_exeext'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; }; then
4790   am_cv_val_LC_MESSAGES=yes
4791 else
4792   echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 am_cv_val_LC_MESSAGES=no
4796 fi
4797 rm -f conftest.err conftest.$ac_objext \
4798       conftest$ac_exeext conftest.$ac_ext
4799 fi
4800 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4801 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4802     if test $am_cv_val_LC_MESSAGES = yes; then
4803
4804 cat >>confdefs.h <<\_ACEOF
4805 #define HAVE_LC_MESSAGES 1
4806 _ACEOF
4807
4808     fi
4809   fi
4810    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4811 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4812         # Check whether --enable-nls or --disable-nls was given.
4813 if test "${enable_nls+set}" = set; then
4814   enableval="$enable_nls"
4815   USE_NLS=$enableval
4816 else
4817   USE_NLS=yes
4818 fi;
4819     echo "$as_me:$LINENO: result: $USE_NLS" >&5
4820 echo "${ECHO_T}$USE_NLS" >&6
4821
4822
4823     USE_INCLUDED_LIBINTL=no
4824
4825         if test "$USE_NLS" = "yes"; then
4826       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4827 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4828
4829 # Check whether --with-included-gettext or --without-included-gettext was given.
4830 if test "${with_included_gettext+set}" = set; then
4831   withval="$with_included_gettext"
4832   nls_cv_force_use_gnu_gettext=$withval
4833 else
4834   nls_cv_force_use_gnu_gettext=no
4835 fi;
4836       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4837 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4838
4839       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4840       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4841                                         nls_cv_header_intl=
4842         nls_cv_header_libgt=
4843         CATOBJEXT=
4844
4845         if test "${ac_cv_header_libintl_h+set}" = set; then
4846   echo "$as_me:$LINENO: checking for libintl.h" >&5
4847 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4848 if test "${ac_cv_header_libintl_h+set}" = set; then
4849   echo $ECHO_N "(cached) $ECHO_C" >&6
4850 fi
4851 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4852 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4853 else
4854   # Is the header compilable?
4855 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4856 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4857 cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863 $ac_includes_default
4864 #include <libintl.h>
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868   (eval $ac_compile) 2>conftest.er1
4869   ac_status=$?
4870   grep -v '^ *+' conftest.er1 >conftest.err
4871   rm -f conftest.er1
4872   cat conftest.err >&5
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } &&
4875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; } &&
4881          { ac_try='test -s conftest.$ac_objext'
4882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883   (eval $ac_try) 2>&5
4884   ac_status=$?
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); }; }; then
4887   ac_header_compiler=yes
4888 else
4889   echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892 ac_header_compiler=no
4893 fi
4894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4896 echo "${ECHO_T}$ac_header_compiler" >&6
4897
4898 # Is the header present?
4899 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4900 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4901 cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907 #include <libintl.h>
4908 _ACEOF
4909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4910   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4911   ac_status=$?
4912   grep -v '^ *+' conftest.er1 >conftest.err
4913   rm -f conftest.er1
4914   cat conftest.err >&5
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } >/dev/null; then
4917   if test -s conftest.err; then
4918     ac_cpp_err=$ac_c_preproc_warn_flag
4919     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4920   else
4921     ac_cpp_err=
4922   fi
4923 else
4924   ac_cpp_err=yes
4925 fi
4926 if test -z "$ac_cpp_err"; then
4927   ac_header_preproc=yes
4928 else
4929   echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932   ac_header_preproc=no
4933 fi
4934 rm -f conftest.err conftest.$ac_ext
4935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4936 echo "${ECHO_T}$ac_header_preproc" >&6
4937
4938 # So?  What about this header?
4939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4940   yes:no: )
4941     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4942 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4943     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4944 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4945     ac_header_preproc=yes
4946     ;;
4947   no:yes:* )
4948     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4949 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4950     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
4951 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
4952     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4953 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4954     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
4955 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4956     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4957 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4958     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4959 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4960     (
4961       cat <<\_ASBOX
4962 ## ------------------------------------------ ##
4963 ## Report this to the AC_PACKAGE_NAME lists.  ##
4964 ## ------------------------------------------ ##
4965 _ASBOX
4966     ) |
4967       sed "s/^/$as_me: WARNING:     /" >&2
4968     ;;
4969 esac
4970 echo "$as_me:$LINENO: checking for libintl.h" >&5
4971 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4972 if test "${ac_cv_header_libintl_h+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   ac_cv_header_libintl_h=$ac_header_preproc
4976 fi
4977 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4978 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4979
4980 fi
4981 if test $ac_cv_header_libintl_h = yes; then
4982   echo "$as_me:$LINENO: checking for gettext in libc" >&5
4983 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4984 if test "${gt_cv_func_gettext_libc+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h.  */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h.  */
4993 #include <libintl.h>
4994 int
4995 main ()
4996 {
4997 return (int) gettext ("")
4998   ;
4999   return 0;
5000 }
5001 _ACEOF
5002 rm -f conftest.$ac_objext conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004   (eval $ac_link) 2>conftest.er1
5005   ac_status=$?
5006   grep -v '^ *+' conftest.er1 >conftest.err
5007   rm -f conftest.er1
5008   cat conftest.err >&5
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); } &&
5011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013   (eval $ac_try) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); }; } &&
5017          { ac_try='test -s conftest$ac_exeext'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; }; then
5023   gt_cv_func_gettext_libc=yes
5024 else
5025   echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 gt_cv_func_gettext_libc=no
5029 fi
5030 rm -f conftest.err conftest.$ac_objext \
5031       conftest$ac_exeext conftest.$ac_ext
5032 fi
5033 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5034 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5035
5036            if test "$gt_cv_func_gettext_libc" != "yes"; then
5037              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5038 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5039 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5040   echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042   ac_check_lib_save_LIBS=$LIBS
5043 LIBS="-lintl  $LIBS"
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h.  */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h.  */
5050
5051 /* Override any gcc2 internal prototype to avoid an error.  */
5052 #ifdef __cplusplus
5053 extern "C"
5054 #endif
5055 /* We use char because int might match the return type of a gcc2
5056    builtin and then its argument prototype would still apply.  */
5057 char bindtextdomain ();
5058 int
5059 main ()
5060 {
5061 bindtextdomain ();
5062   ;
5063   return 0;
5064 }
5065 _ACEOF
5066 rm -f conftest.$ac_objext conftest$ac_exeext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5068   (eval $ac_link) 2>conftest.er1
5069   ac_status=$?
5070   grep -v '^ *+' conftest.er1 >conftest.err
5071   rm -f conftest.er1
5072   cat conftest.err >&5
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } &&
5075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077   (eval $ac_try) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }; } &&
5081          { ac_try='test -s conftest$ac_exeext'
5082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083   (eval $ac_try) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); }; }; then
5087   ac_cv_lib_intl_bindtextdomain=yes
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 ac_cv_lib_intl_bindtextdomain=no
5093 fi
5094 rm -f conftest.err conftest.$ac_objext \
5095       conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5097 fi
5098 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5099 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5100 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5101   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5102 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5103 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h.  */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h.  */
5112
5113 int
5114 main ()
5115 {
5116 return (int) gettext ("")
5117   ;
5118   return 0;
5119 }
5120 _ACEOF
5121 rm -f conftest.$ac_objext conftest$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123   (eval $ac_link) 2>conftest.er1
5124   ac_status=$?
5125   grep -v '^ *+' conftest.er1 >conftest.err
5126   rm -f conftest.er1
5127   cat conftest.err >&5
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); } &&
5130          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132   (eval $ac_try) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; } &&
5136          { ac_try='test -s conftest$ac_exeext'
5137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138   (eval $ac_try) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); }; }; then
5142   gt_cv_func_gettext_libintl=yes
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 gt_cv_func_gettext_libintl=no
5148 fi
5149 rm -f conftest.err conftest.$ac_objext \
5150       conftest$ac_exeext conftest.$ac_ext
5151 fi
5152 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5153 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5154 fi
5155
5156            fi
5157
5158            if test "$gt_cv_func_gettext_libc" = "yes" \
5159               || test "$gt_cv_func_gettext_libintl" = "yes"; then
5160
5161 cat >>confdefs.h <<\_ACEOF
5162 #define HAVE_GETTEXT 1
5163 _ACEOF
5164
5165               # Extract the first word of "msgfmt", so it can be a program name with args.
5166 set dummy msgfmt; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_path_MSGFMT+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   case "$MSGFMT" in
5173   /*)
5174   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5175   ;;
5176   *)
5177   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5178   for ac_dir in $PATH; do
5179     test -z "$ac_dir" && ac_dir=.
5180     if test -f $ac_dir/$ac_word; then
5181       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5182         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5183         break
5184       fi
5185     fi
5186   done
5187   IFS="$ac_save_ifs"
5188   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5189   ;;
5190 esac
5191 fi
5192 MSGFMT="$ac_cv_path_MSGFMT"
5193 if test -n "$MSGFMT"; then
5194   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5195 echo "${ECHO_T}$MSGFMT" >&6
5196 else
5197   echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6
5199 fi
5200               if test "$MSGFMT" != "no"; then
5201
5202 for ac_func in dcgettext
5203 do
5204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5205 echo "$as_me:$LINENO: checking for $ac_func" >&5
5206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5207 if eval "test \"\${$as_ac_var+set}\" = set"; then
5208   echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210   cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h.  */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h.  */
5216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5218 #define $ac_func innocuous_$ac_func
5219
5220 /* System header to define __stub macros and hopefully few prototypes,
5221     which can conflict with char $ac_func (); below.
5222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223     <limits.h> exists even on freestanding compilers.  */
5224
5225 #ifdef __STDC__
5226 # include <limits.h>
5227 #else
5228 # include <assert.h>
5229 #endif
5230
5231 #undef $ac_func
5232
5233 /* Override any gcc2 internal prototype to avoid an error.  */
5234 #ifdef __cplusplus
5235 extern "C"
5236 {
5237 #endif
5238 /* We use char because int might match the return type of a gcc2
5239    builtin and then its argument prototype would still apply.  */
5240 char $ac_func ();
5241 /* The GNU C library defines this for functions which it implements
5242     to always fail with ENOSYS.  Some functions are actually named
5243     something starting with __ and the normal name is an alias.  */
5244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5245 choke me
5246 #else
5247 char (*f) () = $ac_func;
5248 #endif
5249 #ifdef __cplusplus
5250 }
5251 #endif
5252
5253 int
5254 main ()
5255 {
5256 return f != $ac_func;
5257   ;
5258   return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263   (eval $ac_link) 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } &&
5270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272   (eval $ac_try) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; } &&
5276          { ac_try='test -s conftest$ac_exeext'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; }; then
5282   eval "$as_ac_var=yes"
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 eval "$as_ac_var=no"
5288 fi
5289 rm -f conftest.err conftest.$ac_objext \
5290       conftest$ac_exeext conftest.$ac_ext
5291 fi
5292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5294 if test `eval echo '${'$as_ac_var'}'` = yes; then
5295   cat >>confdefs.h <<_ACEOF
5296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5297 _ACEOF
5298
5299 fi
5300 done
5301
5302                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5303 set dummy gmsgfmt; ac_word=$2
5304 echo "$as_me:$LINENO: checking for $ac_word" >&5
5305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5306 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5307   echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309   case $GMSGFMT in
5310   [\\/]* | ?:[\\/]*)
5311   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5312   ;;
5313   *)
5314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317   IFS=$as_save_IFS
5318   test -z "$as_dir" && as_dir=.
5319   for ac_exec_ext in '' $ac_executable_extensions; do
5320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323     break 2
5324   fi
5325 done
5326 done
5327
5328   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5329   ;;
5330 esac
5331 fi
5332 GMSGFMT=$ac_cv_path_GMSGFMT
5333
5334 if test -n "$GMSGFMT"; then
5335   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5336 echo "${ECHO_T}$GMSGFMT" >&6
5337 else
5338   echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5340 fi
5341
5342                 # Extract the first word of "xgettext", so it can be a program name with args.
5343 set dummy xgettext; ac_word=$2
5344 echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   case "$XGETTEXT" in
5350   /*)
5351   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5352   ;;
5353   *)
5354   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5355   for ac_dir in $PATH; do
5356     test -z "$ac_dir" && ac_dir=.
5357     if test -f $ac_dir/$ac_word; then
5358       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5359         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5360         break
5361       fi
5362     fi
5363   done
5364   IFS="$ac_save_ifs"
5365   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5366   ;;
5367 esac
5368 fi
5369 XGETTEXT="$ac_cv_path_XGETTEXT"
5370 if test -n "$XGETTEXT"; then
5371   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5372 echo "${ECHO_T}$XGETTEXT" >&6
5373 else
5374   echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376 fi
5377
5378                 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384
5385 int
5386 main ()
5387 {
5388 extern int _nl_msg_cat_cntr;
5389                                return _nl_msg_cat_cntr
5390   ;
5391   return 0;
5392 }
5393 _ACEOF
5394 rm -f conftest.$ac_objext conftest$ac_exeext
5395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5396   (eval $ac_link) 2>conftest.er1
5397   ac_status=$?
5398   grep -v '^ *+' conftest.er1 >conftest.err
5399   rm -f conftest.er1
5400   cat conftest.err >&5
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); } &&
5403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405   (eval $ac_try) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; } &&
5409          { ac_try='test -s conftest$ac_exeext'
5410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411   (eval $ac_try) 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); }; }; then
5415   CATOBJEXT=.gmo
5416                    DATADIRNAME=share
5417 else
5418   echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421 CATOBJEXT=.mo
5422                    DATADIRNAME=lib
5423 fi
5424 rm -f conftest.err conftest.$ac_objext \
5425       conftest$ac_exeext conftest.$ac_ext
5426                 INSTOBJEXT=.mo
5427               fi
5428             fi
5429
5430 fi
5431
5432
5433
5434
5435         if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5436           # Neither gettext nor catgets in included in the C library.
5437           # Fall back on GNU gettext library (assuming it is present).
5438           nls_cv_use_gnu_gettext=yes
5439         fi
5440       fi
5441
5442       if test "$nls_cv_use_gnu_gettext" = "yes"; then
5443                 INTLOBJS="\$(GETTOBJS)"
5444         # Extract the first word of "msgfmt", so it can be a program name with args.
5445 set dummy msgfmt; ac_word=$2
5446 echo "$as_me:$LINENO: checking for $ac_word" >&5
5447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5448 if test "${ac_cv_path_MSGFMT+set}" = set; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451   case "$MSGFMT" in
5452   /*)
5453   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5454   ;;
5455   *)
5456   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5457   for ac_dir in $PATH; do
5458     test -z "$ac_dir" && ac_dir=.
5459     if test -f $ac_dir/$ac_word; then
5460       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5461         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5462         break
5463       fi
5464     fi
5465   done
5466   IFS="$ac_save_ifs"
5467   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5468   ;;
5469 esac
5470 fi
5471 MSGFMT="$ac_cv_path_MSGFMT"
5472 if test -n "$MSGFMT"; then
5473   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5474 echo "${ECHO_T}$MSGFMT" >&6
5475 else
5476   echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6
5478 fi
5479
5480         # Extract the first word of "gmsgfmt", so it can be a program name with args.
5481 set dummy gmsgfmt; ac_word=$2
5482 echo "$as_me:$LINENO: checking for $ac_word" >&5
5483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5484 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5485   echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487   case $GMSGFMT in
5488   [\\/]* | ?:[\\/]*)
5489   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5490   ;;
5491   *)
5492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497   for ac_exec_ext in '' $ac_executable_extensions; do
5498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504 done
5505
5506   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5507   ;;
5508 esac
5509 fi
5510 GMSGFMT=$ac_cv_path_GMSGFMT
5511
5512 if test -n "$GMSGFMT"; then
5513   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5514 echo "${ECHO_T}$GMSGFMT" >&6
5515 else
5516   echo "$as_me:$LINENO: result: no" >&5
5517 echo "${ECHO_T}no" >&6
5518 fi
5519
5520         # Extract the first word of "xgettext", so it can be a program name with args.
5521 set dummy xgettext; ac_word=$2
5522 echo "$as_me:$LINENO: checking for $ac_word" >&5
5523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5524 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5525   echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527   case "$XGETTEXT" in
5528   /*)
5529   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5530   ;;
5531   *)
5532   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5533   for ac_dir in $PATH; do
5534     test -z "$ac_dir" && ac_dir=.
5535     if test -f $ac_dir/$ac_word; then
5536       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5537         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5538         break
5539       fi
5540     fi
5541   done
5542   IFS="$ac_save_ifs"
5543   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5544   ;;
5545 esac
5546 fi
5547 XGETTEXT="$ac_cv_path_XGETTEXT"
5548 if test -n "$XGETTEXT"; then
5549   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5550 echo "${ECHO_T}$XGETTEXT" >&6
5551 else
5552   echo "$as_me:$LINENO: result: no" >&5
5553 echo "${ECHO_T}no" >&6
5554 fi
5555
5556
5557         USE_INCLUDED_LIBINTL=yes
5558         CATOBJEXT=.gmo
5559         INSTOBJEXT=.mo
5560         DATADIRNAME=share
5561         INTLDEPS='$(top_builddir)/../intl/libintl.a'
5562         INTLLIBS=$INTLDEPS
5563         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5564         nls_cv_header_intl=libintl.h
5565         nls_cv_header_libgt=libgettext.h
5566       fi
5567
5568             if test "$XGETTEXT" != ":"; then
5569                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5570           : ;
5571         else
5572           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5573 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5574           XGETTEXT=":"
5575         fi
5576       fi
5577
5578       # We need to process the po/ directory.
5579       POSUB=po
5580     else
5581       DATADIRNAME=share
5582       nls_cv_header_intl=libintl.h
5583       nls_cv_header_libgt=libgettext.h
5584     fi
5585
5586     # If this is used in GNU gettext we have to set USE_NLS to `yes'
5587     # because some of the sources are only built for this goal.
5588     if test "$PACKAGE" = gettext; then
5589       USE_NLS=yes
5590       USE_INCLUDED_LIBINTL=yes
5591     fi
5592
5593                 for lang in $ALL_LINGUAS; do
5594       GMOFILES="$GMOFILES $lang.gmo"
5595       POFILES="$POFILES $lang.po"
5596     done
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609     if test "x$CATOBJEXT" != "x"; then
5610
5611 cat >>confdefs.h <<\_ACEOF
5612 #define ENABLE_NLS 1
5613 _ACEOF
5614
5615     fi
5616
5617
5618    if test "x$CATOBJEXT" != "x"; then
5619      if test "x$ALL_LINGUAS" = "x"; then
5620        LINGUAS=
5621      else
5622        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5623 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5624        NEW_LINGUAS=
5625        for lang in ${LINGUAS=$ALL_LINGUAS}; do
5626          case "$ALL_LINGUAS" in
5627           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5628          esac
5629        done
5630        LINGUAS=$NEW_LINGUAS
5631        echo "$as_me:$LINENO: result: $LINGUAS" >&5
5632 echo "${ECHO_T}$LINGUAS" >&6
5633      fi
5634
5635           if test -n "$LINGUAS"; then
5636        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5637      fi
5638    fi
5639
5640             if test $ac_cv_header_locale_h = yes; then
5641      INCLUDE_LOCALE_H="#include <locale.h>"
5642    else
5643      INCLUDE_LOCALE_H="\
5644 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
5645    fi
5646
5647
5648             if test -f $srcdir/po2tbl.sed.in; then
5649       if test "$CATOBJEXT" = ".cat"; then
5650          if test "${ac_cv_header_linux_version_h+set}" = set; then
5651   echo "$as_me:$LINENO: checking for linux/version.h" >&5
5652 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5653 if test "${ac_cv_header_linux_version_h+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 fi
5656 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5657 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5658 else
5659   # Is the header compilable?
5660 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5661 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5662 cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h.  */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h.  */
5668 $ac_includes_default
5669 #include <linux/version.h>
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673   (eval $ac_compile) 2>conftest.er1
5674   ac_status=$?
5675   grep -v '^ *+' conftest.er1 >conftest.err
5676   rm -f conftest.er1
5677   cat conftest.err >&5
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); } &&
5680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682   (eval $ac_try) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); }; } &&
5686          { ac_try='test -s conftest.$ac_objext'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; }; then
5692   ac_header_compiler=yes
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 ac_header_compiler=no
5698 fi
5699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5701 echo "${ECHO_T}$ac_header_compiler" >&6
5702
5703 # Is the header present?
5704 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5705 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h.  */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h.  */
5712 #include <linux/version.h>
5713 _ACEOF
5714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5716   ac_status=$?
5717   grep -v '^ *+' conftest.er1 >conftest.err
5718   rm -f conftest.er1
5719   cat conftest.err >&5
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); } >/dev/null; then
5722   if test -s conftest.err; then
5723     ac_cpp_err=$ac_c_preproc_warn_flag
5724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5725   else
5726     ac_cpp_err=
5727   fi
5728 else
5729   ac_cpp_err=yes
5730 fi
5731 if test -z "$ac_cpp_err"; then
5732   ac_header_preproc=yes
5733 else
5734   echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737   ac_header_preproc=no
5738 fi
5739 rm -f conftest.err conftest.$ac_ext
5740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5741 echo "${ECHO_T}$ac_header_preproc" >&6
5742
5743 # So?  What about this header?
5744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5745   yes:no: )
5746     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5747 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5748     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5749 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5750     ac_header_preproc=yes
5751     ;;
5752   no:yes:* )
5753     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5754 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5755     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
5756 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
5757     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5758 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5759     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
5760 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5761     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5762 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5763     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5764 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5765     (
5766       cat <<\_ASBOX
5767 ## ------------------------------------------ ##
5768 ## Report this to the AC_PACKAGE_NAME lists.  ##
5769 ## ------------------------------------------ ##
5770 _ASBOX
5771     ) |
5772       sed "s/^/$as_me: WARNING:     /" >&2
5773     ;;
5774 esac
5775 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5776 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5777 if test "${ac_cv_header_linux_version_h+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   ac_cv_header_linux_version_h=$ac_header_preproc
5781 fi
5782 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5783 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5784
5785 fi
5786 if test $ac_cv_header_linux_version_h = yes; then
5787   msgformat=linux
5788 else
5789   msgformat=xopen
5790 fi
5791
5792
5793
5794                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5795       fi
5796             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5797          $srcdir/po2tbl.sed.in > po2tbl.sed
5798    fi
5799
5800             if test "$PACKAGE" = "gettext"; then
5801      GT_NO="#NO#"
5802      GT_YES=
5803    else
5804      GT_NO=
5805      GT_YES="#YES#"
5806    fi
5807
5808
5809
5810    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5811
5812
5813       l=
5814
5815
5816             if test -f $srcdir/po/POTFILES.in; then
5817       test -d po || mkdir po
5818       if test "x$srcdir" != "x."; then
5819          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5820             posrcprefix="$srcdir/"
5821          else
5822             posrcprefix="../$srcdir/"
5823          fi
5824       else
5825          posrcprefix="../"
5826       fi
5827       rm -f po/POTFILES
5828       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5829          < $srcdir/po/POTFILES.in > po/POTFILES
5830    fi
5831
5832
5833 localedir='${datadir}/locale'
5834
5835
5836 if test "x$POSUB" != x; then
5837
5838     echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5839 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5840   # Look for .po and .gmo files in the source directory.
5841   CATALOGS=
5842   XLINGUAS=
5843   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5844     # If there aren't any .gmo files the shell will give us the
5845     # literal string "../path/to/srcdir/po/*.gmo" which has to be
5846     # weeded out.
5847     case "$cat" in *\**)
5848       continue;;
5849     esac
5850     # The quadruple backslash is collapsed to a double backslash
5851     # by the backticks, then collapsed again by the double quotes,
5852     # leaving us with one backslash in the sed expression (right
5853     # before the dot that mustn't act as a wildcard).
5854     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5855     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5856     # The user is allowed to set LINGUAS to a list of languages to
5857     # install catalogs for.  If it's empty that means "all of them."
5858     if test "x$LINGUAS" = x; then
5859       CATALOGS="$CATALOGS $cat"
5860       XLINGUAS="$XLINGUAS $lang"
5861     else
5862       case "$LINGUAS" in *$lang*)
5863         CATALOGS="$CATALOGS $cat"
5864         XLINGUAS="$XLINGUAS $lang"
5865         ;;
5866       esac
5867     fi
5868   done
5869   LINGUAS="$XLINGUAS"
5870   echo "$as_me:$LINENO: result: $LINGUAS" >&5
5871 echo "${ECHO_T}$LINGUAS" >&6
5872
5873    CONFIG_ALL="$CONFIG_ALL all-po"
5874    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5875    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5876    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5877 fi
5878
5879 PACKAGE=gdb
5880
5881 cat >>confdefs.h <<_ACEOF
5882 #define PACKAGE "$PACKAGE"
5883 _ACEOF
5884
5885
5886
5887 debugdir=${libdir}/debug
5888
5889
5890 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5891 if test "${with_separate_debug_dir+set}" = set; then
5892   withval="$with_separate_debug_dir"
5893   debugdir="${withval}"
5894 fi;
5895
5896
5897   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5898   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5899   ac_define_dir=`eval echo $debugdir`
5900   ac_define_dir=`eval echo $ac_define_dir`
5901
5902 cat >>confdefs.h <<_ACEOF
5903 #define DEBUGDIR "$ac_define_dir"
5904 _ACEOF
5905
5906
5907 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5908
5909
5910
5911 subdirs="$subdirs doc testsuite"
5912
5913
5914 # Provide defaults for some variables set by the per-host and per-target
5915 # configuration.
5916 gdb_host_obs=posix-hdep.o
5917
5918 . $srcdir/configure.host
5919
5920 . $srcdir/configure.tgt
5921
5922 # Fetch the default architecture and default target vector from BFD.
5923 targ=$target; . $srcdir/../bfd/config.bfd
5924
5925 # We only want the first architecture, so strip off the others if
5926 # there is more than one.
5927 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5928
5929 if test "x$targ_archs" != x; then
5930
5931 cat >>confdefs.h <<_ACEOF
5932 #define DEFAULT_BFD_ARCH $targ_archs
5933 _ACEOF
5934
5935 fi
5936 if test "x$targ_defvec" != x; then
5937
5938 cat >>confdefs.h <<_ACEOF
5939 #define DEFAULT_BFD_VEC $targ_defvec
5940 _ACEOF
5941
5942 fi
5943
5944 test "$program_prefix" != NONE &&
5945   program_transform_name="s,^,$program_prefix,;$program_transform_name"
5946 # Use a double $ so make ignores it.
5947 test "$program_suffix" != NONE &&
5948   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5949 # Double any \ or $.  echo might interpret backslashes.
5950 # By default was `s,x,x', remove it if useless.
5951 cat <<\_ACEOF >conftest.sed
5952 s/[\\$]/&&/g;s/;s,x,x,$//
5953 _ACEOF
5954 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5955 rm conftest.sed
5956
5957
5958 # The CLI cannot be disabled yet, but may be in the future.
5959
5960 # Enable CLI.
5961 # Check whether --enable-gdbcli or --disable-gdbcli was given.
5962 if test "${enable_gdbcli+set}" = set; then
5963   enableval="$enable_gdbcli"
5964   case $enableval in
5965     yes)
5966       ;;
5967     no)
5968       { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5969 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5970    { (exit 1); exit 1; }; } ;;
5971     *)
5972       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
5973 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
5974    { (exit 1); exit 1; }; } ;;
5975   esac
5976 else
5977   enable_gdbcli=yes
5978 fi;
5979 if test x"$enable_gdbcli" = xyes; then
5980   if test -d $srcdir/cli; then
5981     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5982     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5983     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5984     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5985   fi
5986 fi
5987
5988 # Enable MI.
5989 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5990 if test "${enable_gdbmi+set}" = set; then
5991   enableval="$enable_gdbmi"
5992   case $enableval in
5993     yes | no)
5994       ;;
5995     *)
5996       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
5997 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
5998    { (exit 1); exit 1; }; } ;;
5999   esac
6000 else
6001   enable_gdbmi=yes
6002 fi;
6003 if test x"$enable_gdbmi" = xyes; then
6004   if test -d $srcdir/mi; then
6005     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6006     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6007     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6008     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6009   fi
6010 fi
6011
6012 # Enable TUI.
6013 # Check whether --enable-tui or --disable-tui was given.
6014 if test "${enable_tui+set}" = set; then
6015   enableval="$enable_tui"
6016   case $enableval in
6017     yes | no)
6018       ;;
6019     *)
6020       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6021 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6022    { (exit 1); exit 1; }; } ;;
6023   esac
6024 else
6025   enable_tui=yes
6026 fi;
6027
6028 # Enable gdbtk.
6029 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6030 if test "${enable_gdbtk+set}" = set; then
6031   enableval="$enable_gdbtk"
6032   case $enableval in
6033     yes | no)
6034       ;;
6035     *)
6036       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6037 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6038    { (exit 1); exit 1; }; } ;;
6039   esac
6040 else
6041   if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
6042     enable_gdbtk=yes
6043   else
6044     enable_gdbtk=no
6045   fi
6046 fi;
6047 # We unconditionally disable gdbtk tests on selected platforms.
6048 case $host_os in
6049   go32* | windows*)
6050     { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6051 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6052     enable_gdbtk=no ;;
6053 esac
6054
6055 # Libunwind support.
6056
6057 # Check whether --with-libunwind or --without-libunwind was given.
6058 if test "${with_libunwind+set}" = set; then
6059   withval="$with_libunwind"
6060   case "${withval}" in
6061   yes)  enable_libunwind=yes ;;
6062   no)   enable_libunwind=no ;;
6063   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6064 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6065    { (exit 1); exit 1; }; } ;;
6066 esac
6067 else
6068
6069
6070 for ac_header in libunwind.h
6071 do
6072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074   echo "$as_me:$LINENO: checking for $ac_header" >&5
6075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 fi
6079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6081 else
6082   # Is the header compilable?
6083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h.  */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h.  */
6091 $ac_includes_default
6092 #include <$ac_header>
6093 _ACEOF
6094 rm -f conftest.$ac_objext
6095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6096   (eval $ac_compile) 2>conftest.er1
6097   ac_status=$?
6098   grep -v '^ *+' conftest.er1 >conftest.err
6099   rm -f conftest.er1
6100   cat conftest.err >&5
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); } &&
6103          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105   (eval $ac_try) 2>&5
6106   ac_status=$?
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); }; } &&
6109          { ac_try='test -s conftest.$ac_objext'
6110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111   (eval $ac_try) 2>&5
6112   ac_status=$?
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); }; }; then
6115   ac_header_compiler=yes
6116 else
6117   echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120 ac_header_compiler=no
6121 fi
6122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6124 echo "${ECHO_T}$ac_header_compiler" >&6
6125
6126 # Is the header present?
6127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h.  */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h.  */
6135 #include <$ac_header>
6136 _ACEOF
6137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6139   ac_status=$?
6140   grep -v '^ *+' conftest.er1 >conftest.err
6141   rm -f conftest.er1
6142   cat conftest.err >&5
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } >/dev/null; then
6145   if test -s conftest.err; then
6146     ac_cpp_err=$ac_c_preproc_warn_flag
6147     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6148   else
6149     ac_cpp_err=
6150   fi
6151 else
6152   ac_cpp_err=yes
6153 fi
6154 if test -z "$ac_cpp_err"; then
6155   ac_header_preproc=yes
6156 else
6157   echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160   ac_header_preproc=no
6161 fi
6162 rm -f conftest.err conftest.$ac_ext
6163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6164 echo "${ECHO_T}$ac_header_preproc" >&6
6165
6166 # So?  What about this header?
6167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6168   yes:no: )
6169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6173     ac_header_preproc=yes
6174     ;;
6175   no:yes:* )
6176     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6178     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6179 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6180     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6182     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6183 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6186     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6188     (
6189       cat <<\_ASBOX
6190 ## ------------------------------------------ ##
6191 ## Report this to the AC_PACKAGE_NAME lists.  ##
6192 ## ------------------------------------------ ##
6193 _ASBOX
6194     ) |
6195       sed "s/^/$as_me: WARNING:     /" >&2
6196     ;;
6197 esac
6198 echo "$as_me:$LINENO: checking for $ac_header" >&5
6199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201   echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203   eval "$as_ac_Header=\$ac_header_preproc"
6204 fi
6205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6207
6208 fi
6209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210   cat >>confdefs.h <<_ACEOF
6211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6212 _ACEOF
6213
6214 fi
6215
6216 done
6217
6218
6219 for ac_header in libunwind-ia64.h
6220 do
6221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6223   echo "$as_me:$LINENO: checking for $ac_header" >&5
6224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226   echo $ECHO_N "(cached) $ECHO_C" >&6
6227 fi
6228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6230 else
6231   # Is the header compilable?
6232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h.  */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h.  */
6240 $ac_includes_default
6241 #include <$ac_header>
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245   (eval $ac_compile) 2>conftest.er1
6246   ac_status=$?
6247   grep -v '^ *+' conftest.er1 >conftest.err
6248   rm -f conftest.er1
6249   cat conftest.err >&5
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); } &&
6252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254   (eval $ac_try) 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; } &&
6258          { ac_try='test -s conftest.$ac_objext'
6259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260   (eval $ac_try) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; }; then
6264   ac_header_compiler=yes
6265 else
6266   echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6268
6269 ac_header_compiler=no
6270 fi
6271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6273 echo "${ECHO_T}$ac_header_compiler" >&6
6274
6275 # Is the header present?
6276 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6278 cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h.  */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h.  */
6284 #include <$ac_header>
6285 _ACEOF
6286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6288   ac_status=$?
6289   grep -v '^ *+' conftest.er1 >conftest.err
6290   rm -f conftest.er1
6291   cat conftest.err >&5
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); } >/dev/null; then
6294   if test -s conftest.err; then
6295     ac_cpp_err=$ac_c_preproc_warn_flag
6296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6297   else
6298     ac_cpp_err=
6299   fi
6300 else
6301   ac_cpp_err=yes
6302 fi
6303 if test -z "$ac_cpp_err"; then
6304   ac_header_preproc=yes
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309   ac_header_preproc=no
6310 fi
6311 rm -f conftest.err conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6313 echo "${ECHO_T}$ac_header_preproc" >&6
6314
6315 # So?  What about this header?
6316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6317   yes:no: )
6318     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6322     ac_header_preproc=yes
6323     ;;
6324   no:yes:* )
6325     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6327     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6328 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6329     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6331     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6332 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6335     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6337     (
6338       cat <<\_ASBOX
6339 ## ------------------------------------------ ##
6340 ## Report this to the AC_PACKAGE_NAME lists.  ##
6341 ## ------------------------------------------ ##
6342 _ASBOX
6343     ) |
6344       sed "s/^/$as_me: WARNING:     /" >&2
6345     ;;
6346 esac
6347 echo "$as_me:$LINENO: checking for $ac_header" >&5
6348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   eval "$as_ac_Header=\$ac_header_preproc"
6353 fi
6354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6356
6357 fi
6358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6359   cat >>confdefs.h <<_ACEOF
6360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6361 _ACEOF
6362
6363 fi
6364
6365 done
6366
6367   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6368     enable_libunwind=yes;
6369   fi
6370
6371 fi;
6372
6373 if test x"$enable_libunwind" = xyes; then
6374
6375 for ac_header in libunwind.h
6376 do
6377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379   echo "$as_me:$LINENO: checking for $ac_header" >&5
6380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 fi
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386 else
6387   # Is the header compilable?
6388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h.  */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h.  */
6396 $ac_includes_default
6397 #include <$ac_header>
6398 _ACEOF
6399 rm -f conftest.$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401   (eval $ac_compile) 2>conftest.er1
6402   ac_status=$?
6403   grep -v '^ *+' conftest.er1 >conftest.err
6404   rm -f conftest.er1
6405   cat conftest.err >&5
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } &&
6408          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410   (eval $ac_try) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }; } &&
6414          { ac_try='test -s conftest.$ac_objext'
6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416   (eval $ac_try) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; }; then
6420   ac_header_compiler=yes
6421 else
6422   echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 ac_header_compiler=no
6426 fi
6427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6429 echo "${ECHO_T}$ac_header_compiler" >&6
6430
6431 # Is the header present?
6432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h.  */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h.  */
6440 #include <$ac_header>
6441 _ACEOF
6442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6443   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6444   ac_status=$?
6445   grep -v '^ *+' conftest.er1 >conftest.err
6446   rm -f conftest.er1
6447   cat conftest.err >&5
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); } >/dev/null; then
6450   if test -s conftest.err; then
6451     ac_cpp_err=$ac_c_preproc_warn_flag
6452     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6453   else
6454     ac_cpp_err=
6455   fi
6456 else
6457   ac_cpp_err=yes
6458 fi
6459 if test -z "$ac_cpp_err"; then
6460   ac_header_preproc=yes
6461 else
6462   echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465   ac_header_preproc=no
6466 fi
6467 rm -f conftest.err conftest.$ac_ext
6468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6469 echo "${ECHO_T}$ac_header_preproc" >&6
6470
6471 # So?  What about this header?
6472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6473   yes:no: )
6474     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6478     ac_header_preproc=yes
6479     ;;
6480   no:yes:* )
6481     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6483     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6484 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6485     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6487     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6488 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6491     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6493     (
6494       cat <<\_ASBOX
6495 ## ------------------------------------------ ##
6496 ## Report this to the AC_PACKAGE_NAME lists.  ##
6497 ## ------------------------------------------ ##
6498 _ASBOX
6499     ) |
6500       sed "s/^/$as_me: WARNING:     /" >&2
6501     ;;
6502 esac
6503 echo "$as_me:$LINENO: checking for $ac_header" >&5
6504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   eval "$as_ac_Header=\$ac_header_preproc"
6509 fi
6510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6512
6513 fi
6514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6515   cat >>confdefs.h <<_ACEOF
6516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6517 _ACEOF
6518
6519 fi
6520
6521 done
6522
6523
6524 for ac_header in libunwind-ia64.h
6525 do
6526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528   echo "$as_me:$LINENO: checking for $ac_header" >&5
6529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 fi
6533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6535 else
6536   # Is the header compilable?
6537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6539 cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h.  */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h.  */
6545 $ac_includes_default
6546 #include <$ac_header>
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550   (eval $ac_compile) 2>conftest.er1
6551   ac_status=$?
6552   grep -v '^ *+' conftest.er1 >conftest.err
6553   rm -f conftest.er1
6554   cat conftest.err >&5
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); } &&
6557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559   (eval $ac_try) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; } &&
6563          { ac_try='test -s conftest.$ac_objext'
6564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565   (eval $ac_try) 2>&5
6566   ac_status=$?
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); }; }; then
6569   ac_header_compiler=yes
6570 else
6571   echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574 ac_header_compiler=no
6575 fi
6576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6578 echo "${ECHO_T}$ac_header_compiler" >&6
6579
6580 # Is the header present?
6581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589 #include <$ac_header>
6590 _ACEOF
6591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6592   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6593   ac_status=$?
6594   grep -v '^ *+' conftest.er1 >conftest.err
6595   rm -f conftest.er1
6596   cat conftest.err >&5
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } >/dev/null; then
6599   if test -s conftest.err; then
6600     ac_cpp_err=$ac_c_preproc_warn_flag
6601     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6602   else
6603     ac_cpp_err=
6604   fi
6605 else
6606   ac_cpp_err=yes
6607 fi
6608 if test -z "$ac_cpp_err"; then
6609   ac_header_preproc=yes
6610 else
6611   echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614   ac_header_preproc=no
6615 fi
6616 rm -f conftest.err conftest.$ac_ext
6617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6618 echo "${ECHO_T}$ac_header_preproc" >&6
6619
6620 # So?  What about this header?
6621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6622   yes:no: )
6623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6627     ac_header_preproc=yes
6628     ;;
6629   no:yes:* )
6630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6642     (
6643       cat <<\_ASBOX
6644 ## ------------------------------------------ ##
6645 ## Report this to the AC_PACKAGE_NAME lists.  ##
6646 ## ------------------------------------------ ##
6647 _ASBOX
6648     ) |
6649       sed "s/^/$as_me: WARNING:     /" >&2
6650     ;;
6651 esac
6652 echo "$as_me:$LINENO: checking for $ac_header" >&5
6653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   eval "$as_ac_Header=\$ac_header_preproc"
6658 fi
6659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6661
6662 fi
6663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6664   cat >>confdefs.h <<_ACEOF
6665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6666 _ACEOF
6667
6668 fi
6669
6670 done
6671
6672
6673 cat >>confdefs.h <<\_ACEOF
6674 #define HAVE_LIBUNWIND 1
6675 _ACEOF
6676
6677   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6678   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6679   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6680 fi
6681
6682 # Profiling support.
6683 # Check whether --enable-profiling or --disable-profiling was given.
6684 if test "${enable_profiling+set}" = set; then
6685   enableval="$enable_profiling"
6686   case $enableval in
6687     yes | no)
6688       ;;
6689     *)
6690       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6691 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6692    { (exit 1); exit 1; }; } ;;
6693   esac
6694 else
6695   enable_profiling=no
6696 fi;
6697
6698
6699
6700 for ac_func in monstartup _mcleanup
6701 do
6702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6703 echo "$as_me:$LINENO: checking for $ac_func" >&5
6704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6705 if eval "test \"\${$as_ac_var+set}\" = set"; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6716 #define $ac_func innocuous_$ac_func
6717
6718 /* System header to define __stub macros and hopefully few prototypes,
6719     which can conflict with char $ac_func (); below.
6720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6721     <limits.h> exists even on freestanding compilers.  */
6722
6723 #ifdef __STDC__
6724 # include <limits.h>
6725 #else
6726 # include <assert.h>
6727 #endif
6728
6729 #undef $ac_func
6730
6731 /* Override any gcc2 internal prototype to avoid an error.  */
6732 #ifdef __cplusplus
6733 extern "C"
6734 {
6735 #endif
6736 /* We use char because int might match the return type of a gcc2
6737    builtin and then its argument prototype would still apply.  */
6738 char $ac_func ();
6739 /* The GNU C library defines this for functions which it implements
6740     to always fail with ENOSYS.  Some functions are actually named
6741     something starting with __ and the normal name is an alias.  */
6742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6743 choke me
6744 #else
6745 char (*f) () = $ac_func;
6746 #endif
6747 #ifdef __cplusplus
6748 }
6749 #endif
6750
6751 int
6752 main ()
6753 {
6754 return f != $ac_func;
6755   ;
6756   return 0;
6757 }
6758 _ACEOF
6759 rm -f conftest.$ac_objext conftest$ac_exeext
6760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761   (eval $ac_link) 2>conftest.er1
6762   ac_status=$?
6763   grep -v '^ *+' conftest.er1 >conftest.err
6764   rm -f conftest.er1
6765   cat conftest.err >&5
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); } &&
6768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770   (eval $ac_try) 2>&5
6771   ac_status=$?
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); }; } &&
6774          { ac_try='test -s conftest$ac_exeext'
6775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776   (eval $ac_try) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); }; }; then
6780   eval "$as_ac_var=yes"
6781 else
6782   echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6784
6785 eval "$as_ac_var=no"
6786 fi
6787 rm -f conftest.err conftest.$ac_objext \
6788       conftest$ac_exeext conftest.$ac_ext
6789 fi
6790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6792 if test `eval echo '${'$as_ac_var'}'` = yes; then
6793   cat >>confdefs.h <<_ACEOF
6794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6795 _ACEOF
6796
6797 fi
6798 done
6799
6800 echo "$as_me:$LINENO: checking for _etext" >&5
6801 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6802 if test "${ac_cv_var__etext+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h.  */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h.  */
6811 #include <stdlib.h>
6812 extern char _etext;
6813
6814 int
6815 main ()
6816 {
6817 free (&_etext);
6818   ;
6819   return 0;
6820 }
6821 _ACEOF
6822 rm -f conftest.$ac_objext conftest$ac_exeext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824   (eval $ac_link) 2>conftest.er1
6825   ac_status=$?
6826   grep -v '^ *+' conftest.er1 >conftest.err
6827   rm -f conftest.er1
6828   cat conftest.err >&5
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); } &&
6831          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833   (eval $ac_try) 2>&5
6834   ac_status=$?
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); }; } &&
6837          { ac_try='test -s conftest$ac_exeext'
6838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839   (eval $ac_try) 2>&5
6840   ac_status=$?
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); }; }; then
6843   ac_cv_var__etext=yes
6844 else
6845   echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6847
6848 ac_cv_var__etext=no
6849 fi
6850 rm -f conftest.err conftest.$ac_objext \
6851       conftest$ac_exeext conftest.$ac_ext
6852 fi
6853 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6854 echo "${ECHO_T}$ac_cv_var__etext" >&6
6855 if test $ac_cv_var__etext = yes; then
6856
6857 cat >>confdefs.h <<\_ACEOF
6858 #define HAVE__ETEXT 1
6859 _ACEOF
6860
6861 fi
6862 if test "$enable_profiling" = yes ; then
6863   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6864     { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6865 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6866    { (exit 1); exit 1; }; }
6867   fi
6868   PROFILE_CFLAGS=-pg
6869   OLD_CFLAGS="$CFLAGS"
6870   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6871
6872   echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6873 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6874 if test "${ac_cv_cc_supports_pg+set}" = set; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877   cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h.  */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h.  */
6883
6884 int
6885 main ()
6886 {
6887 int x;
6888   ;
6889   return 0;
6890 }
6891 _ACEOF
6892 rm -f conftest.$ac_objext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894   (eval $ac_compile) 2>conftest.er1
6895   ac_status=$?
6896   grep -v '^ *+' conftest.er1 >conftest.err
6897   rm -f conftest.er1
6898   cat conftest.err >&5
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); } &&
6901          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903   (eval $ac_try) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); }; } &&
6907          { ac_try='test -s conftest.$ac_objext'
6908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909   (eval $ac_try) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); }; }; then
6913   ac_cv_cc_supports_pg=yes
6914 else
6915   echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 ac_cv_cc_supports_pg=no
6919 fi
6920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6921 fi
6922 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6923 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6924
6925   if test $ac_cv_cc_supports_pg = no; then
6926     { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6927 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6928    { (exit 1); exit 1; }; }
6929   fi
6930
6931   CFLAGS="$OLD_CFLAGS"
6932 fi
6933
6934 # --------------------- #
6935 # Checks for programs.  #
6936 # --------------------- #
6937
6938 for ac_prog in gawk mawk nawk awk
6939 do
6940   # Extract the first word of "$ac_prog", so it can be a program name with args.
6941 set dummy $ac_prog; ac_word=$2
6942 echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6944 if test "${ac_cv_prog_AWK+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   if test -n "$AWK"; then
6948   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953   IFS=$as_save_IFS
6954   test -z "$as_dir" && as_dir=.
6955   for ac_exec_ext in '' $ac_executable_extensions; do
6956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957     ac_cv_prog_AWK="$ac_prog"
6958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959     break 2
6960   fi
6961 done
6962 done
6963
6964 fi
6965 fi
6966 AWK=$ac_cv_prog_AWK
6967 if test -n "$AWK"; then
6968   echo "$as_me:$LINENO: result: $AWK" >&5
6969 echo "${ECHO_T}$AWK" >&6
6970 else
6971   echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6
6973 fi
6974
6975   test -n "$AWK" && break
6976 done
6977
6978 # Find a good install program.  We prefer a C program (faster),
6979 # so one script is as good as another.  But avoid the broken or
6980 # incompatible versions:
6981 # SysV /etc/install, /usr/sbin/install
6982 # SunOS /usr/etc/install
6983 # IRIX /sbin/install
6984 # AIX /bin/install
6985 # AmigaOS /C/install, which installs bootblocks on floppy discs
6986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6989 # OS/2's system install, which has a completely different semantic
6990 # ./install, which can be erroneously created by make from ./install.sh.
6991 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6992 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6993 if test -z "$INSTALL"; then
6994 if test "${ac_cv_path_install+set}" = set; then
6995   echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000   IFS=$as_save_IFS
7001   test -z "$as_dir" && as_dir=.
7002   # Account for people who put trailing slashes in PATH elements.
7003 case $as_dir/ in
7004   ./ | .// | /cC/* | \
7005   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7006   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7007   /usr/ucb/* ) ;;
7008   *)
7009     # OSF1 and SCO ODT 3.0 have their own names for install.
7010     # Don't use installbsd from OSF since it installs stuff as root
7011     # by default.
7012     for ac_prog in ginstall scoinst install; do
7013       for ac_exec_ext in '' $ac_executable_extensions; do
7014         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7015           if test $ac_prog = install &&
7016             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7017             # AIX install.  It has an incompatible calling convention.
7018             :
7019           elif test $ac_prog = install &&
7020             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7021             # program-specific install script used by HP pwplus--don't use.
7022             :
7023           else
7024             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7025             break 3
7026           fi
7027         fi
7028       done
7029     done
7030     ;;
7031 esac
7032 done
7033
7034
7035 fi
7036   if test "${ac_cv_path_install+set}" = set; then
7037     INSTALL=$ac_cv_path_install
7038   else
7039     # As a last resort, use the slow shell script.  We don't cache a
7040     # path for INSTALL within a source directory, because that will
7041     # break other packages using the cache if that directory is
7042     # removed, or if the path is relative.
7043     INSTALL=$ac_install_sh
7044   fi
7045 fi
7046 echo "$as_me:$LINENO: result: $INSTALL" >&5
7047 echo "${ECHO_T}$INSTALL" >&6
7048
7049 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7050 # It thinks the first close brace ends the variable substitution.
7051 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7052
7053 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7054
7055 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7056
7057 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7058 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7059 LN_S=$as_ln_s
7060 if test "$LN_S" = "ln -s"; then
7061   echo "$as_me:$LINENO: result: yes" >&5
7062 echo "${ECHO_T}yes" >&6
7063 else
7064   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7065 echo "${ECHO_T}no, using $LN_S" >&6
7066 fi
7067
7068 if test -n "$ac_tool_prefix"; then
7069   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7071 echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7073 if test "${ac_cv_prog_RANLIB+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   if test -n "$RANLIB"; then
7077   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082   IFS=$as_save_IFS
7083   test -z "$as_dir" && as_dir=.
7084   for ac_exec_ext in '' $ac_executable_extensions; do
7085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088     break 2
7089   fi
7090 done
7091 done
7092
7093 fi
7094 fi
7095 RANLIB=$ac_cv_prog_RANLIB
7096 if test -n "$RANLIB"; then
7097   echo "$as_me:$LINENO: result: $RANLIB" >&5
7098 echo "${ECHO_T}$RANLIB" >&6
7099 else
7100   echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6
7102 fi
7103
7104 fi
7105 if test -z "$ac_cv_prog_RANLIB"; then
7106   ac_ct_RANLIB=$RANLIB
7107   # Extract the first word of "ranlib", so it can be a program name with args.
7108 set dummy ranlib; ac_word=$2
7109 echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   if test -n "$ac_ct_RANLIB"; then
7115   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124     ac_cv_prog_ac_ct_RANLIB="ranlib"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130
7131   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7132 fi
7133 fi
7134 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7135 if test -n "$ac_ct_RANLIB"; then
7136   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7137 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7138 else
7139   echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6
7141 fi
7142
7143   RANLIB=$ac_ct_RANLIB
7144 else
7145   RANLIB="$ac_cv_prog_RANLIB"
7146 fi
7147
7148 for ac_prog in 'bison -y' byacc
7149 do
7150   # Extract the first word of "$ac_prog", so it can be a program name with args.
7151 set dummy $ac_prog; ac_word=$2
7152 echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7154 if test "${ac_cv_prog_YACC+set}" = set; then
7155   echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157   if test -n "$YACC"; then
7158   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165   for ac_exec_ext in '' $ac_executable_extensions; do
7166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167     ac_cv_prog_YACC="$ac_prog"
7168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172 done
7173
7174 fi
7175 fi
7176 YACC=$ac_cv_prog_YACC
7177 if test -n "$YACC"; then
7178   echo "$as_me:$LINENO: result: $YACC" >&5
7179 echo "${ECHO_T}$YACC" >&6
7180 else
7181   echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6
7183 fi
7184
7185   test -n "$YACC" && break
7186 done
7187 test -n "$YACC" || YACC="yacc"
7188
7189
7190 if test -n "$ac_tool_prefix"; then
7191   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}ar; ac_word=$2
7193 echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7195 if test "${ac_cv_prog_AR+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198   if test -n "$AR"; then
7199   ac_cv_prog_AR="$AR" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206   for ac_exec_ext in '' $ac_executable_extensions; do
7207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208     ac_cv_prog_AR="${ac_tool_prefix}ar"
7209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213 done
7214
7215 fi
7216 fi
7217 AR=$ac_cv_prog_AR
7218 if test -n "$AR"; then
7219   echo "$as_me:$LINENO: result: $AR" >&5
7220 echo "${ECHO_T}$AR" >&6
7221 else
7222   echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6
7224 fi
7225
7226 fi
7227 if test -z "$ac_cv_prog_AR"; then
7228   ac_ct_AR=$AR
7229   # Extract the first word of "ar", so it can be a program name with args.
7230 set dummy ar; ac_word=$2
7231 echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   if test -n "$ac_ct_AR"; then
7237   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242   IFS=$as_save_IFS
7243   test -z "$as_dir" && as_dir=.
7244   for ac_exec_ext in '' $ac_executable_extensions; do
7245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246     ac_cv_prog_ac_ct_AR="ar"
7247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248     break 2
7249   fi
7250 done
7251 done
7252
7253 fi
7254 fi
7255 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7256 if test -n "$ac_ct_AR"; then
7257   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7258 echo "${ECHO_T}$ac_ct_AR" >&6
7259 else
7260   echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6
7262 fi
7263
7264   AR=$ac_ct_AR
7265 else
7266   AR="$ac_cv_prog_AR"
7267 fi
7268
7269 if test -n "$ac_tool_prefix"; then
7270   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7271 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7272 echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7274 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277   if test -n "$DLLTOOL"; then
7278   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283   IFS=$as_save_IFS
7284   test -z "$as_dir" && as_dir=.
7285   for ac_exec_ext in '' $ac_executable_extensions; do
7286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289     break 2
7290   fi
7291 done
7292 done
7293
7294 fi
7295 fi
7296 DLLTOOL=$ac_cv_prog_DLLTOOL
7297 if test -n "$DLLTOOL"; then
7298   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7299 echo "${ECHO_T}$DLLTOOL" >&6
7300 else
7301   echo "$as_me:$LINENO: result: no" >&5
7302 echo "${ECHO_T}no" >&6
7303 fi
7304
7305 fi
7306 if test -z "$ac_cv_prog_DLLTOOL"; then
7307   ac_ct_DLLTOOL=$DLLTOOL
7308   # Extract the first word of "dlltool", so it can be a program name with args.
7309 set dummy dlltool; ac_word=$2
7310 echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7312 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   if test -n "$ac_ct_DLLTOOL"; then
7316   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7317 else
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7320 do
7321   IFS=$as_save_IFS
7322   test -z "$as_dir" && as_dir=.
7323   for ac_exec_ext in '' $ac_executable_extensions; do
7324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327     break 2
7328   fi
7329 done
7330 done
7331
7332 fi
7333 fi
7334 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7335 if test -n "$ac_ct_DLLTOOL"; then
7336   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7337 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7338 else
7339   echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7341 fi
7342
7343   DLLTOOL=$ac_ct_DLLTOOL
7344 else
7345   DLLTOOL="$ac_cv_prog_DLLTOOL"
7346 fi
7347
7348 if test -n "$ac_tool_prefix"; then
7349   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7350 set dummy ${ac_tool_prefix}windres; ac_word=$2
7351 echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353 if test "${ac_cv_prog_WINDRES+set}" = set; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356   if test -n "$WINDRES"; then
7357   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364   for ac_exec_ext in '' $ac_executable_extensions; do
7365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371 done
7372
7373 fi
7374 fi
7375 WINDRES=$ac_cv_prog_WINDRES
7376 if test -n "$WINDRES"; then
7377   echo "$as_me:$LINENO: result: $WINDRES" >&5
7378 echo "${ECHO_T}$WINDRES" >&6
7379 else
7380   echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6
7382 fi
7383
7384 fi
7385 if test -z "$ac_cv_prog_WINDRES"; then
7386   ac_ct_WINDRES=$WINDRES
7387   # Extract the first word of "windres", so it can be a program name with args.
7388 set dummy windres; ac_word=$2
7389 echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7391 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7392   echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394   if test -n "$ac_ct_WINDRES"; then
7395   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402   for ac_exec_ext in '' $ac_executable_extensions; do
7403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404     ac_cv_prog_ac_ct_WINDRES="windres"
7405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409 done
7410
7411 fi
7412 fi
7413 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7414 if test -n "$ac_ct_WINDRES"; then
7415   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7416 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7417 else
7418   echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6
7420 fi
7421
7422   WINDRES=$ac_ct_WINDRES
7423 else
7424   WINDRES="$ac_cv_prog_WINDRES"
7425 fi
7426
7427
7428 # Needed for GNU/Hurd.
7429 if test -n "$ac_tool_prefix"; then
7430   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7431 set dummy ${ac_tool_prefix}mig; ac_word=$2
7432 echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7434 if test "${ac_cv_prog_MIG+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   if test -n "$MIG"; then
7438   ac_cv_prog_MIG="$MIG" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443   IFS=$as_save_IFS
7444   test -z "$as_dir" && as_dir=.
7445   for ac_exec_ext in '' $ac_executable_extensions; do
7446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447     ac_cv_prog_MIG="${ac_tool_prefix}mig"
7448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449     break 2
7450   fi
7451 done
7452 done
7453
7454 fi
7455 fi
7456 MIG=$ac_cv_prog_MIG
7457 if test -n "$MIG"; then
7458   echo "$as_me:$LINENO: result: $MIG" >&5
7459 echo "${ECHO_T}$MIG" >&6
7460 else
7461   echo "$as_me:$LINENO: result: no" >&5
7462 echo "${ECHO_T}no" >&6
7463 fi
7464
7465 fi
7466 if test -z "$ac_cv_prog_MIG"; then
7467   ac_ct_MIG=$MIG
7468   # Extract the first word of "mig", so it can be a program name with args.
7469 set dummy mig; ac_word=$2
7470 echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7472 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   if test -n "$ac_ct_MIG"; then
7476   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481   IFS=$as_save_IFS
7482   test -z "$as_dir" && as_dir=.
7483   for ac_exec_ext in '' $ac_executable_extensions; do
7484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485     ac_cv_prog_ac_ct_MIG="mig"
7486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487     break 2
7488   fi
7489 done
7490 done
7491
7492 fi
7493 fi
7494 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7495 if test -n "$ac_ct_MIG"; then
7496   echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7497 echo "${ECHO_T}$ac_ct_MIG" >&6
7498 else
7499   echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6
7501 fi
7502
7503   MIG=$ac_ct_MIG
7504 else
7505   MIG="$ac_cv_prog_MIG"
7506 fi
7507
7508
7509 # ---------------------- #
7510 # Checks for libraries.  #
7511 # ---------------------- #
7512
7513 # We might need to link with -lm; most simulators need it.
7514
7515 echo "$as_me:$LINENO: checking for main in -lm" >&5
7516 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7517 if test "${ac_cv_lib_m_main+set}" = set; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   ac_check_lib_save_LIBS=$LIBS
7521 LIBS="-lm  $LIBS"
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h.  */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h.  */
7528
7529
7530 int
7531 main ()
7532 {
7533 main ();
7534   ;
7535   return 0;
7536 }
7537 _ACEOF
7538 rm -f conftest.$ac_objext conftest$ac_exeext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7540   (eval $ac_link) 2>conftest.er1
7541   ac_status=$?
7542   grep -v '^ *+' conftest.er1 >conftest.err
7543   rm -f conftest.er1
7544   cat conftest.err >&5
7545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); } &&
7547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549   (eval $ac_try) 2>&5
7550   ac_status=$?
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); }; } &&
7553          { ac_try='test -s conftest$ac_exeext'
7554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555   (eval $ac_try) 2>&5
7556   ac_status=$?
7557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); }; }; then
7559   ac_cv_lib_m_main=yes
7560 else
7561   echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7563
7564 ac_cv_lib_m_main=no
7565 fi
7566 rm -f conftest.err conftest.$ac_objext \
7567       conftest$ac_exeext conftest.$ac_ext
7568 LIBS=$ac_check_lib_save_LIBS
7569 fi
7570 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7571 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7572 if test $ac_cv_lib_m_main = yes; then
7573   cat >>confdefs.h <<_ACEOF
7574 #define HAVE_LIBM 1
7575 _ACEOF
7576
7577   LIBS="-lm $LIBS"
7578
7579 fi
7580
7581
7582 # We need to link with -lw to get `wctype' on Solaris before Solaris
7583 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
7584 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7585 # is known to have this problem).  Therefore we avoid libw if we can.
7586 echo "$as_me:$LINENO: checking for wctype" >&5
7587 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7588 if test "${ac_cv_func_wctype+set}" = set; then
7589   echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591   cat >conftest.$ac_ext <<_ACEOF
7592 /* confdefs.h.  */
7593 _ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h.  */
7597 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7599 #define wctype innocuous_wctype
7600
7601 /* System header to define __stub macros and hopefully few prototypes,
7602     which can conflict with char wctype (); below.
7603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7604     <limits.h> exists even on freestanding compilers.  */
7605
7606 #ifdef __STDC__
7607 # include <limits.h>
7608 #else
7609 # include <assert.h>
7610 #endif
7611
7612 #undef wctype
7613
7614 /* Override any gcc2 internal prototype to avoid an error.  */
7615 #ifdef __cplusplus
7616 extern "C"
7617 {
7618 #endif
7619 /* We use char because int might match the return type of a gcc2
7620    builtin and then its argument prototype would still apply.  */
7621 char wctype ();
7622 /* The GNU C library defines this for functions which it implements
7623     to always fail with ENOSYS.  Some functions are actually named
7624     something starting with __ and the normal name is an alias.  */
7625 #if defined (__stub_wctype) || defined (__stub___wctype)
7626 choke me
7627 #else
7628 char (*f) () = wctype;
7629 #endif
7630 #ifdef __cplusplus
7631 }
7632 #endif
7633
7634 int
7635 main ()
7636 {
7637 return f != wctype;
7638   ;
7639   return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7644   (eval $ac_link) 2>conftest.er1
7645   ac_status=$?
7646   grep -v '^ *+' conftest.er1 >conftest.err
7647   rm -f conftest.er1
7648   cat conftest.err >&5
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); } &&
7651          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653   (eval $ac_try) 2>&5
7654   ac_status=$?
7655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); }; } &&
7657          { ac_try='test -s conftest$ac_exeext'
7658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659   (eval $ac_try) 2>&5
7660   ac_status=$?
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); }; }; then
7663   ac_cv_func_wctype=yes
7664 else
7665   echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7667
7668 ac_cv_func_wctype=no
7669 fi
7670 rm -f conftest.err conftest.$ac_objext \
7671       conftest$ac_exeext conftest.$ac_ext
7672 fi
7673 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7674 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7675 if test $ac_cv_func_wctype = yes; then
7676   :
7677 else
7678
7679 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7680 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7681 if test "${ac_cv_lib_w_wctype+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   ac_check_lib_save_LIBS=$LIBS
7685 LIBS="-lw  $LIBS"
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h.  */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h.  */
7692
7693 /* Override any gcc2 internal prototype to avoid an error.  */
7694 #ifdef __cplusplus
7695 extern "C"
7696 #endif
7697 /* We use char because int might match the return type of a gcc2
7698    builtin and then its argument prototype would still apply.  */
7699 char wctype ();
7700 int
7701 main ()
7702 {
7703 wctype ();
7704   ;
7705   return 0;
7706 }
7707 _ACEOF
7708 rm -f conftest.$ac_objext conftest$ac_exeext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7710   (eval $ac_link) 2>conftest.er1
7711   ac_status=$?
7712   grep -v '^ *+' conftest.er1 >conftest.err
7713   rm -f conftest.er1
7714   cat conftest.err >&5
7715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716   (exit $ac_status); } &&
7717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; } &&
7723          { ac_try='test -s conftest$ac_exeext'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; }; then
7729   ac_cv_lib_w_wctype=yes
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_lib_w_wctype=no
7735 fi
7736 rm -f conftest.err conftest.$ac_objext \
7737       conftest$ac_exeext conftest.$ac_ext
7738 LIBS=$ac_check_lib_save_LIBS
7739 fi
7740 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7741 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7742 if test $ac_cv_lib_w_wctype = yes; then
7743   cat >>confdefs.h <<_ACEOF
7744 #define HAVE_LIBW 1
7745 _ACEOF
7746
7747   LIBS="-lw $LIBS"
7748
7749 fi
7750
7751 fi
7752
7753
7754 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7755 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7756 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7757 if test "${ac_cv_search_gethostbyname+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   ac_func_search_save_LIBS=$LIBS
7761 ac_cv_search_gethostbyname=no
7762 cat >conftest.$ac_ext <<_ACEOF
7763 /* confdefs.h.  */
7764 _ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h.  */
7768
7769 /* Override any gcc2 internal prototype to avoid an error.  */
7770 #ifdef __cplusplus
7771 extern "C"
7772 #endif
7773 /* We use char because int might match the return type of a gcc2
7774    builtin and then its argument prototype would still apply.  */
7775 char gethostbyname ();
7776 int
7777 main ()
7778 {
7779 gethostbyname ();
7780   ;
7781   return 0;
7782 }
7783 _ACEOF
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7786   (eval $ac_link) 2>conftest.er1
7787   ac_status=$?
7788   grep -v '^ *+' conftest.er1 >conftest.err
7789   rm -f conftest.er1
7790   cat conftest.err >&5
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); } &&
7793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; } &&
7799          { ac_try='test -s conftest$ac_exeext'
7800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801   (eval $ac_try) 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; }; then
7805   ac_cv_search_gethostbyname="none required"
7806 else
7807   echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810 fi
7811 rm -f conftest.err conftest.$ac_objext \
7812       conftest$ac_exeext conftest.$ac_ext
7813 if test "$ac_cv_search_gethostbyname" = no; then
7814   for ac_lib in nsl; do
7815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7816     cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h.  */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h.  */
7822
7823 /* Override any gcc2 internal prototype to avoid an error.  */
7824 #ifdef __cplusplus
7825 extern "C"
7826 #endif
7827 /* We use char because int might match the return type of a gcc2
7828    builtin and then its argument prototype would still apply.  */
7829 char gethostbyname ();
7830 int
7831 main ()
7832 {
7833 gethostbyname ();
7834   ;
7835   return 0;
7836 }
7837 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840   (eval $ac_link) 2>conftest.er1
7841   ac_status=$?
7842   grep -v '^ *+' conftest.er1 >conftest.err
7843   rm -f conftest.er1
7844   cat conftest.err >&5
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); } &&
7847          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849   (eval $ac_try) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; } &&
7853          { ac_try='test -s conftest$ac_exeext'
7854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855   (eval $ac_try) 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; }; then
7859   ac_cv_search_gethostbyname="-l$ac_lib"
7860 break
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865 fi
7866 rm -f conftest.err conftest.$ac_objext \
7867       conftest$ac_exeext conftest.$ac_ext
7868   done
7869 fi
7870 LIBS=$ac_func_search_save_LIBS
7871 fi
7872 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7873 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7874 if test "$ac_cv_search_gethostbyname" != no; then
7875   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7876
7877 fi
7878
7879
7880 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7881 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7882 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7883 if test "${ac_cv_search_socketpair+set}" = set; then
7884   echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886   ac_func_search_save_LIBS=$LIBS
7887 ac_cv_search_socketpair=no
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h.  */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h.  */
7894
7895 /* Override any gcc2 internal prototype to avoid an error.  */
7896 #ifdef __cplusplus
7897 extern "C"
7898 #endif
7899 /* We use char because int might match the return type of a gcc2
7900    builtin and then its argument prototype would still apply.  */
7901 char socketpair ();
7902 int
7903 main ()
7904 {
7905 socketpair ();
7906   ;
7907   return 0;
7908 }
7909 _ACEOF
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912   (eval $ac_link) 2>conftest.er1
7913   ac_status=$?
7914   grep -v '^ *+' conftest.er1 >conftest.err
7915   rm -f conftest.er1
7916   cat conftest.err >&5
7917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); } &&
7919          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921   (eval $ac_try) 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); }; } &&
7925          { ac_try='test -s conftest$ac_exeext'
7926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927   (eval $ac_try) 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; }; then
7931   ac_cv_search_socketpair="none required"
7932 else
7933   echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7935
7936 fi
7937 rm -f conftest.err conftest.$ac_objext \
7938       conftest$ac_exeext conftest.$ac_ext
7939 if test "$ac_cv_search_socketpair" = no; then
7940   for ac_lib in socket; do
7941     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7942     cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948
7949 /* Override any gcc2 internal prototype to avoid an error.  */
7950 #ifdef __cplusplus
7951 extern "C"
7952 #endif
7953 /* We use char because int might match the return type of a gcc2
7954    builtin and then its argument prototype would still apply.  */
7955 char socketpair ();
7956 int
7957 main ()
7958 {
7959 socketpair ();
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966   (eval $ac_link) 2>conftest.er1
7967   ac_status=$?
7968   grep -v '^ *+' conftest.er1 >conftest.err
7969   rm -f conftest.er1
7970   cat conftest.err >&5
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } &&
7973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975   (eval $ac_try) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; } &&
7979          { ac_try='test -s conftest$ac_exeext'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; }; then
7985   ac_cv_search_socketpair="-l$ac_lib"
7986 break
7987 else
7988   echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 fi
7992 rm -f conftest.err conftest.$ac_objext \
7993       conftest$ac_exeext conftest.$ac_ext
7994   done
7995 fi
7996 LIBS=$ac_func_search_save_LIBS
7997 fi
7998 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
7999 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8000 if test "$ac_cv_search_socketpair" != no; then
8001   test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8002
8003 fi
8004
8005
8006 # For the TUI, we need enhanced curses functionality.
8007 #
8008 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8009 # curses library because the latter might not provide all the
8010 # functionality we need.  However, this leads to problems on systems
8011 # where the linker searches /usr/local/lib, but the compiler doesn't
8012 # search /usr/local/include, if ncurses is installed in /usr/local.  A
8013 # default installation of ncurses on alpha*-dec-osf* will lead to such
8014 # a situation.
8015 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8016 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8017 if test "${ac_cv_search_waddstr+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020   ac_func_search_save_LIBS=$LIBS
8021 ac_cv_search_waddstr=no
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h.  */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h.  */
8028
8029 /* Override any gcc2 internal prototype to avoid an error.  */
8030 #ifdef __cplusplus
8031 extern "C"
8032 #endif
8033 /* We use char because int might match the return type of a gcc2
8034    builtin and then its argument prototype would still apply.  */
8035 char waddstr ();
8036 int
8037 main ()
8038 {
8039 waddstr ();
8040   ;
8041   return 0;
8042 }
8043 _ACEOF
8044 rm -f conftest.$ac_objext conftest$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046   (eval $ac_link) 2>conftest.er1
8047   ac_status=$?
8048   grep -v '^ *+' conftest.er1 >conftest.err
8049   rm -f conftest.er1
8050   cat conftest.err >&5
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } &&
8053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055   (eval $ac_try) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); }; } &&
8059          { ac_try='test -s conftest$ac_exeext'
8060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061   (eval $ac_try) 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); }; }; then
8065   ac_cv_search_waddstr="none required"
8066 else
8067   echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070 fi
8071 rm -f conftest.err conftest.$ac_objext \
8072       conftest$ac_exeext conftest.$ac_ext
8073 if test "$ac_cv_search_waddstr" = no; then
8074   for ac_lib in ncurses cursesX curses; do
8075     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8076     cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082
8083 /* Override any gcc2 internal prototype to avoid an error.  */
8084 #ifdef __cplusplus
8085 extern "C"
8086 #endif
8087 /* We use char because int might match the return type of a gcc2
8088    builtin and then its argument prototype would still apply.  */
8089 char waddstr ();
8090 int
8091 main ()
8092 {
8093 waddstr ();
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100   (eval $ac_link) 2>conftest.er1
8101   ac_status=$?
8102   grep -v '^ *+' conftest.er1 >conftest.err
8103   rm -f conftest.er1
8104   cat conftest.err >&5
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; } &&
8113          { ac_try='test -s conftest$ac_exeext'
8114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115   (eval $ac_try) 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); }; }; then
8119   ac_cv_search_waddstr="-l$ac_lib"
8120 break
8121 else
8122   echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8124
8125 fi
8126 rm -f conftest.err conftest.$ac_objext \
8127       conftest$ac_exeext conftest.$ac_ext
8128   done
8129 fi
8130 LIBS=$ac_func_search_save_LIBS
8131 fi
8132 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8133 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8134 if test "$ac_cv_search_waddstr" != no; then
8135   test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8136
8137 fi
8138
8139
8140 # Since GDB uses Readline, we need termcap functionality.  In many
8141 # cases this will be provided by the curses library, but some systems
8142 # have a seperate termcap library, or no curses library at all.
8143
8144 case $host_os in
8145   cygwin*)
8146     if test -d $srcdir/libtermcap; then
8147       LIBS="../libtermcap/libtermcap.a $LIBS"
8148       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8149     fi ;;
8150   go32* | *djgpp*)
8151     ac_cv_search_tgetent="none required"
8152     ;;
8153   *mingw32*)
8154     ac_cv_search_tgetent="none required"
8155     CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8156     ;;
8157 esac
8158
8159 # These are the libraries checked by Readline.
8160 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8161 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8162 if test "${ac_cv_search_tgetent+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   ac_func_search_save_LIBS=$LIBS
8166 ac_cv_search_tgetent=no
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173
8174 /* Override any gcc2 internal prototype to avoid an error.  */
8175 #ifdef __cplusplus
8176 extern "C"
8177 #endif
8178 /* We use char because int might match the return type of a gcc2
8179    builtin and then its argument prototype would still apply.  */
8180 char tgetent ();
8181 int
8182 main ()
8183 {
8184 tgetent ();
8185   ;
8186   return 0;
8187 }
8188 _ACEOF
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191   (eval $ac_link) 2>conftest.er1
8192   ac_status=$?
8193   grep -v '^ *+' conftest.er1 >conftest.err
8194   rm -f conftest.er1
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } &&
8198          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200   (eval $ac_try) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); }; } &&
8204          { ac_try='test -s conftest$ac_exeext'
8205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206   (eval $ac_try) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); }; }; then
8210   ac_cv_search_tgetent="none required"
8211 else
8212   echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 fi
8216 rm -f conftest.err conftest.$ac_objext \
8217       conftest$ac_exeext conftest.$ac_ext
8218 if test "$ac_cv_search_tgetent" = no; then
8219   for ac_lib in termcap tinfo curses ncurses; do
8220     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8221     cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h.  */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h.  */
8227
8228 /* Override any gcc2 internal prototype to avoid an error.  */
8229 #ifdef __cplusplus
8230 extern "C"
8231 #endif
8232 /* We use char because int might match the return type of a gcc2
8233    builtin and then its argument prototype would still apply.  */
8234 char tgetent ();
8235 int
8236 main ()
8237 {
8238 tgetent ();
8239   ;
8240   return 0;
8241 }
8242 _ACEOF
8243 rm -f conftest.$ac_objext conftest$ac_exeext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245   (eval $ac_link) 2>conftest.er1
8246   ac_status=$?
8247   grep -v '^ *+' conftest.er1 >conftest.err
8248   rm -f conftest.er1
8249   cat conftest.err >&5
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } &&
8252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; } &&
8258          { ac_try='test -s conftest$ac_exeext'
8259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260   (eval $ac_try) 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); }; }; then
8264   ac_cv_search_tgetent="-l$ac_lib"
8265 break
8266 else
8267   echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270 fi
8271 rm -f conftest.err conftest.$ac_objext \
8272       conftest$ac_exeext conftest.$ac_ext
8273   done
8274 fi
8275 LIBS=$ac_func_search_save_LIBS
8276 fi
8277 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8278 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8279 if test "$ac_cv_search_tgetent" != no; then
8280   test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8281
8282 fi
8283
8284
8285 if test "$ac_cv_search_tgetent" = no; then
8286   { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8287 echo "$as_me: error: no termcap library found" >&2;}
8288    { (exit 1); exit 1; }; }
8289 fi
8290
8291 # ------------------------- #
8292 # Checks for header files.  #
8293 # ------------------------- #
8294
8295
8296
8297
8298
8299
8300 ac_header_dirent=no
8301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8302   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8303 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8304 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314 #include <sys/types.h>
8315 #include <$ac_hdr>
8316
8317 int
8318 main ()
8319 {
8320 if ((DIR *) 0)
8321 return 0;
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 rm -f conftest.$ac_objext
8327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328   (eval $ac_compile) 2>conftest.er1
8329   ac_status=$?
8330   grep -v '^ *+' conftest.er1 >conftest.err
8331   rm -f conftest.er1
8332   cat conftest.err >&5
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } &&
8335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337   (eval $ac_try) 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; } &&
8341          { ac_try='test -s conftest.$ac_objext'
8342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343   (eval $ac_try) 2>&5
8344   ac_status=$?
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); }; }; then
8347   eval "$as_ac_Header=yes"
8348 else
8349   echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8351
8352 eval "$as_ac_Header=no"
8353 fi
8354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8355 fi
8356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8359   cat >>confdefs.h <<_ACEOF
8360 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8361 _ACEOF
8362
8363 ac_header_dirent=$ac_hdr; break
8364 fi
8365
8366 done
8367 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8368 if test $ac_header_dirent = dirent.h; then
8369   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8370 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8371 if test "${ac_cv_search_opendir+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   ac_func_search_save_LIBS=$LIBS
8375 ac_cv_search_opendir=no
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h.  */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h.  */
8382
8383 /* Override any gcc2 internal prototype to avoid an error.  */
8384 #ifdef __cplusplus
8385 extern "C"
8386 #endif
8387 /* We use char because int might match the return type of a gcc2
8388    builtin and then its argument prototype would still apply.  */
8389 char opendir ();
8390 int
8391 main ()
8392 {
8393 opendir ();
8394   ;
8395   return 0;
8396 }
8397 _ACEOF
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400   (eval $ac_link) 2>conftest.er1
8401   ac_status=$?
8402   grep -v '^ *+' conftest.er1 >conftest.err
8403   rm -f conftest.er1
8404   cat conftest.err >&5
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } &&
8407          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; } &&
8413          { ac_try='test -s conftest$ac_exeext'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   ac_cv_search_opendir="none required"
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 fi
8425 rm -f conftest.err conftest.$ac_objext \
8426       conftest$ac_exeext conftest.$ac_ext
8427 if test "$ac_cv_search_opendir" = no; then
8428   for ac_lib in dir; do
8429     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8430     cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h.  */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h.  */
8436
8437 /* Override any gcc2 internal prototype to avoid an error.  */
8438 #ifdef __cplusplus
8439 extern "C"
8440 #endif
8441 /* We use char because int might match the return type of a gcc2
8442    builtin and then its argument prototype would still apply.  */
8443 char opendir ();
8444 int
8445 main ()
8446 {
8447 opendir ();
8448   ;
8449   return 0;
8450 }
8451 _ACEOF
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454   (eval $ac_link) 2>conftest.er1
8455   ac_status=$?
8456   grep -v '^ *+' conftest.er1 >conftest.err
8457   rm -f conftest.er1
8458   cat conftest.err >&5
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); } &&
8461          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463   (eval $ac_try) 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; } &&
8467          { ac_try='test -s conftest$ac_exeext'
8468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469   (eval $ac_try) 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); }; }; then
8473   ac_cv_search_opendir="-l$ac_lib"
8474 break
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479 fi
8480 rm -f conftest.err conftest.$ac_objext \
8481       conftest$ac_exeext conftest.$ac_ext
8482   done
8483 fi
8484 LIBS=$ac_func_search_save_LIBS
8485 fi
8486 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8487 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8488 if test "$ac_cv_search_opendir" != no; then
8489   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8490
8491 fi
8492
8493 else
8494   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8495 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8496 if test "${ac_cv_search_opendir+set}" = set; then
8497   echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499   ac_func_search_save_LIBS=$LIBS
8500 ac_cv_search_opendir=no
8501 cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h.  */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h.  */
8507
8508 /* Override any gcc2 internal prototype to avoid an error.  */
8509 #ifdef __cplusplus
8510 extern "C"
8511 #endif
8512 /* We use char because int might match the return type of a gcc2
8513    builtin and then its argument prototype would still apply.  */
8514 char opendir ();
8515 int
8516 main ()
8517 {
8518 opendir ();
8519   ;
8520   return 0;
8521 }
8522 _ACEOF
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525   (eval $ac_link) 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } &&
8532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; } &&
8538          { ac_try='test -s conftest$ac_exeext'
8539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540   (eval $ac_try) 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; }; then
8544   ac_cv_search_opendir="none required"
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 fi
8550 rm -f conftest.err conftest.$ac_objext \
8551       conftest$ac_exeext conftest.$ac_ext
8552 if test "$ac_cv_search_opendir" = no; then
8553   for ac_lib in x; do
8554     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8555     cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h.  */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h.  */
8561
8562 /* Override any gcc2 internal prototype to avoid an error.  */
8563 #ifdef __cplusplus
8564 extern "C"
8565 #endif
8566 /* We use char because int might match the return type of a gcc2
8567    builtin and then its argument prototype would still apply.  */
8568 char opendir ();
8569 int
8570 main ()
8571 {
8572 opendir ();
8573   ;
8574   return 0;
8575 }
8576 _ACEOF
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8579   (eval $ac_link) 2>conftest.er1
8580   ac_status=$?
8581   grep -v '^ *+' conftest.er1 >conftest.err
8582   rm -f conftest.er1
8583   cat conftest.err >&5
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } &&
8586          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588   (eval $ac_try) 2>&5
8589   ac_status=$?
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); }; } &&
8592          { ac_try='test -s conftest$ac_exeext'
8593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594   (eval $ac_try) 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; }; then
8598   ac_cv_search_opendir="-l$ac_lib"
8599 break
8600 else
8601   echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8603
8604 fi
8605 rm -f conftest.err conftest.$ac_objext \
8606       conftest$ac_exeext conftest.$ac_ext
8607   done
8608 fi
8609 LIBS=$ac_func_search_save_LIBS
8610 fi
8611 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8612 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8613 if test "$ac_cv_search_opendir" != no; then
8614   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8615
8616 fi
8617
8618 fi
8619
8620 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8621 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8622 if test "${ac_cv_header_stat_broken+set}" = set; then
8623   echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625   cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631 #include <sys/types.h>
8632 #include <sys/stat.h>
8633
8634 #if defined(S_ISBLK) && defined(S_IFDIR)
8635 # if S_ISBLK (S_IFDIR)
8636 You lose.
8637 # endif
8638 #endif
8639
8640 #if defined(S_ISBLK) && defined(S_IFCHR)
8641 # if S_ISBLK (S_IFCHR)
8642 You lose.
8643 # endif
8644 #endif
8645
8646 #if defined(S_ISLNK) && defined(S_IFREG)
8647 # if S_ISLNK (S_IFREG)
8648 You lose.
8649 # endif
8650 #endif
8651
8652 #if defined(S_ISSOCK) && defined(S_IFREG)
8653 # if S_ISSOCK (S_IFREG)
8654 You lose.
8655 # endif
8656 #endif
8657
8658 _ACEOF
8659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8660   $EGREP "You lose" >/dev/null 2>&1; then
8661   ac_cv_header_stat_broken=yes
8662 else
8663   ac_cv_header_stat_broken=no
8664 fi
8665 rm -f conftest*
8666
8667 fi
8668 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8669 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8670 if test $ac_cv_header_stat_broken = yes; then
8671
8672 cat >>confdefs.h <<\_ACEOF
8673 #define STAT_MACROS_BROKEN 1
8674 _ACEOF
8675
8676 fi
8677
8678 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8679 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8680 if test "${ac_cv_header_stdc+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683   cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h.  */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h.  */
8689 #include <stdlib.h>
8690 #include <stdarg.h>
8691 #include <string.h>
8692 #include <float.h>
8693
8694 int
8695 main ()
8696 {
8697
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8704   (eval $ac_compile) 2>conftest.er1
8705   ac_status=$?
8706   grep -v '^ *+' conftest.er1 >conftest.err
8707   rm -f conftest.er1
8708   cat conftest.err >&5
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } &&
8711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; } &&
8717          { ac_try='test -s conftest.$ac_objext'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; }; then
8723   ac_cv_header_stdc=yes
8724 else
8725   echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 ac_cv_header_stdc=no
8729 fi
8730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8731
8732 if test $ac_cv_header_stdc = yes; then
8733   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8734   cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740 #include <string.h>
8741
8742 _ACEOF
8743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8744   $EGREP "memchr" >/dev/null 2>&1; then
8745   :
8746 else
8747   ac_cv_header_stdc=no
8748 fi
8749 rm -f conftest*
8750
8751 fi
8752
8753 if test $ac_cv_header_stdc = yes; then
8754   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8755   cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h.  */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h.  */
8761 #include <stdlib.h>
8762
8763 _ACEOF
8764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8765   $EGREP "free" >/dev/null 2>&1; then
8766   :
8767 else
8768   ac_cv_header_stdc=no
8769 fi
8770 rm -f conftest*
8771
8772 fi
8773
8774 if test $ac_cv_header_stdc = yes; then
8775   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8776   if test "$cross_compiling" = yes; then
8777   :
8778 else
8779   cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h.  */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h.  */
8785 #include <ctype.h>
8786 #if ((' ' & 0x0FF) == 0x020)
8787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8789 #else
8790 # define ISLOWER(c) \
8791                    (('a' <= (c) && (c) <= 'i') \
8792                      || ('j' <= (c) && (c) <= 'r') \
8793                      || ('s' <= (c) && (c) <= 'z'))
8794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8795 #endif
8796
8797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8798 int
8799 main ()
8800 {
8801   int i;
8802   for (i = 0; i < 256; i++)
8803     if (XOR (islower (i), ISLOWER (i))
8804         || toupper (i) != TOUPPER (i))
8805       exit(2);
8806   exit (0);
8807 }
8808 _ACEOF
8809 rm -f conftest$ac_exeext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8811   (eval $ac_link) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816   (eval $ac_try) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); }; }; then
8820   :
8821 else
8822   echo "$as_me: program exited with status $ac_status" >&5
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8825
8826 ( exit $ac_status )
8827 ac_cv_header_stdc=no
8828 fi
8829 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8830 fi
8831 fi
8832 fi
8833 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8834 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8835 if test $ac_cv_header_stdc = yes; then
8836
8837 cat >>confdefs.h <<\_ACEOF
8838 #define STDC_HEADERS 1
8839 _ACEOF
8840
8841 fi
8842
8843
8844 for ac_header in nlist.h
8845 do
8846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8848   echo "$as_me:$LINENO: checking for $ac_header" >&5
8849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 fi
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8855 else
8856   # Is the header compilable?
8857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h.  */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h.  */
8865 $ac_includes_default
8866 #include <$ac_header>
8867 _ACEOF
8868 rm -f conftest.$ac_objext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8870   (eval $ac_compile) 2>conftest.er1
8871   ac_status=$?
8872   grep -v '^ *+' conftest.er1 >conftest.err
8873   rm -f conftest.er1
8874   cat conftest.err >&5
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); } &&
8877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879   (eval $ac_try) 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); }; } &&
8883          { ac_try='test -s conftest.$ac_objext'
8884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885   (eval $ac_try) 2>&5
8886   ac_status=$?
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); }; }; then
8889   ac_header_compiler=yes
8890 else
8891   echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8893
8894 ac_header_compiler=no
8895 fi
8896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8898 echo "${ECHO_T}$ac_header_compiler" >&6
8899
8900 # Is the header present?
8901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h.  */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h.  */
8909 #include <$ac_header>
8910 _ACEOF
8911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8913   ac_status=$?
8914   grep -v '^ *+' conftest.er1 >conftest.err
8915   rm -f conftest.er1
8916   cat conftest.err >&5
8917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918   (exit $ac_status); } >/dev/null; then
8919   if test -s conftest.err; then
8920     ac_cpp_err=$ac_c_preproc_warn_flag
8921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8922   else
8923     ac_cpp_err=
8924   fi
8925 else
8926   ac_cpp_err=yes
8927 fi
8928 if test -z "$ac_cpp_err"; then
8929   ac_header_preproc=yes
8930 else
8931   echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934   ac_header_preproc=no
8935 fi
8936 rm -f conftest.err conftest.$ac_ext
8937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8938 echo "${ECHO_T}$ac_header_preproc" >&6
8939
8940 # So?  What about this header?
8941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8942   yes:no: )
8943     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8947     ac_header_preproc=yes
8948     ;;
8949   no:yes:* )
8950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8952     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8953 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8954     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8956     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8957 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8960     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8962     (
8963       cat <<\_ASBOX
8964 ## ------------------------------------------ ##
8965 ## Report this to the AC_PACKAGE_NAME lists.  ##
8966 ## ------------------------------------------ ##
8967 _ASBOX
8968     ) |
8969       sed "s/^/$as_me: WARNING:     /" >&2
8970     ;;
8971 esac
8972 echo "$as_me:$LINENO: checking for $ac_header" >&5
8973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8975   echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977   eval "$as_ac_Header=\$ac_header_preproc"
8978 fi
8979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8981
8982 fi
8983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8984   cat >>confdefs.h <<_ACEOF
8985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8986 _ACEOF
8987
8988 fi
8989
8990 done
8991
8992
8993 for ac_header in link.h
8994 do
8995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8996 echo "$as_me:$LINENO: checking for $ac_header" >&5
8997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999   echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001   cat >conftest.$ac_ext <<_ACEOF
9002 /* confdefs.h.  */
9003 _ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h.  */
9007 #if HAVE_SYS_TYPES_H
9008 # include <sys/types.h>
9009 #endif
9010 #if HAVE_NLIST_H
9011 # include <nlist.h>
9012 #endif
9013
9014
9015 #include <$ac_header>
9016 _ACEOF
9017 rm -f conftest.$ac_objext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019   (eval $ac_compile) 2>conftest.er1
9020   ac_status=$?
9021   grep -v '^ *+' conftest.er1 >conftest.err
9022   rm -f conftest.er1
9023   cat conftest.err >&5
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); } &&
9026          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028   (eval $ac_try) 2>&5
9029   ac_status=$?
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); }; } &&
9032          { ac_try='test -s conftest.$ac_objext'
9033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034   (eval $ac_try) 2>&5
9035   ac_status=$?
9036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037   (exit $ac_status); }; }; then
9038   eval "$as_ac_Header=yes"
9039 else
9040   echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9042
9043 eval "$as_ac_Header=no"
9044 fi
9045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9046 fi
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9050   cat >>confdefs.h <<_ACEOF
9051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9052 _ACEOF
9053
9054 fi
9055
9056 done
9057
9058
9059 for ac_header in machine/reg.h
9060 do
9061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9063   echo "$as_me:$LINENO: checking for $ac_header" >&5
9064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066   echo $ECHO_N "(cached) $ECHO_C" >&6
9067 fi
9068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9070 else
9071   # Is the header compilable?
9072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h.  */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h.  */
9080 $ac_includes_default
9081 #include <$ac_header>
9082 _ACEOF
9083 rm -f conftest.$ac_objext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9085   (eval $ac_compile) 2>conftest.er1
9086   ac_status=$?
9087   grep -v '^ *+' conftest.er1 >conftest.err
9088   rm -f conftest.er1
9089   cat conftest.err >&5
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); } &&
9092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094   (eval $ac_try) 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); }; } &&
9098          { ac_try='test -s conftest.$ac_objext'
9099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100   (eval $ac_try) 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); }; }; then
9104   ac_header_compiler=yes
9105 else
9106   echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9108
9109 ac_header_compiler=no
9110 fi
9111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9113 echo "${ECHO_T}$ac_header_compiler" >&6
9114
9115 # Is the header present?
9116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124 #include <$ac_header>
9125 _ACEOF
9126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9128   ac_status=$?
9129   grep -v '^ *+' conftest.er1 >conftest.err
9130   rm -f conftest.er1
9131   cat conftest.err >&5
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); } >/dev/null; then
9134   if test -s conftest.err; then
9135     ac_cpp_err=$ac_c_preproc_warn_flag
9136     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9137   else
9138     ac_cpp_err=
9139   fi
9140 else
9141   ac_cpp_err=yes
9142 fi
9143 if test -z "$ac_cpp_err"; then
9144   ac_header_preproc=yes
9145 else
9146   echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9148
9149   ac_header_preproc=no
9150 fi
9151 rm -f conftest.err conftest.$ac_ext
9152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9153 echo "${ECHO_T}$ac_header_preproc" >&6
9154
9155 # So?  What about this header?
9156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9157   yes:no: )
9158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9162     ac_header_preproc=yes
9163     ;;
9164   no:yes:* )
9165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9167     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9168 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9169     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9171     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9172 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9175     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9177     (
9178       cat <<\_ASBOX
9179 ## ------------------------------------------ ##
9180 ## Report this to the AC_PACKAGE_NAME lists.  ##
9181 ## ------------------------------------------ ##
9182 _ASBOX
9183     ) |
9184       sed "s/^/$as_me: WARNING:     /" >&2
9185     ;;
9186 esac
9187 echo "$as_me:$LINENO: checking for $ac_header" >&5
9188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   eval "$as_ac_Header=\$ac_header_preproc"
9193 fi
9194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9196
9197 fi
9198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9199   cat >>confdefs.h <<_ACEOF
9200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9201 _ACEOF
9202
9203 fi
9204
9205 done
9206
9207
9208
9209 for ac_header in poll.h sys/poll.h
9210 do
9211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9213   echo "$as_me:$LINENO: checking for $ac_header" >&5
9214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 fi
9218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9220 else
9221   # Is the header compilable?
9222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h.  */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h.  */
9230 $ac_includes_default
9231 #include <$ac_header>
9232 _ACEOF
9233 rm -f conftest.$ac_objext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9235   (eval $ac_compile) 2>conftest.er1
9236   ac_status=$?
9237   grep -v '^ *+' conftest.er1 >conftest.err
9238   rm -f conftest.er1
9239   cat conftest.err >&5
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); } &&
9242          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244   (eval $ac_try) 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }; } &&
9248          { ac_try='test -s conftest.$ac_objext'
9249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250   (eval $ac_try) 2>&5
9251   ac_status=$?
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); }; }; then
9254   ac_header_compiler=yes
9255 else
9256   echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9258
9259 ac_header_compiler=no
9260 fi
9261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9263 echo "${ECHO_T}$ac_header_compiler" >&6
9264
9265 # Is the header present?
9266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h.  */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h.  */
9274 #include <$ac_header>
9275 _ACEOF
9276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9278   ac_status=$?
9279   grep -v '^ *+' conftest.er1 >conftest.err
9280   rm -f conftest.er1
9281   cat conftest.err >&5
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } >/dev/null; then
9284   if test -s conftest.err; then
9285     ac_cpp_err=$ac_c_preproc_warn_flag
9286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9287   else
9288     ac_cpp_err=
9289   fi
9290 else
9291   ac_cpp_err=yes
9292 fi
9293 if test -z "$ac_cpp_err"; then
9294   ac_header_preproc=yes
9295 else
9296   echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9298
9299   ac_header_preproc=no
9300 fi
9301 rm -f conftest.err conftest.$ac_ext
9302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9303 echo "${ECHO_T}$ac_header_preproc" >&6
9304
9305 # So?  What about this header?
9306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9307   yes:no: )
9308     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9312     ac_header_preproc=yes
9313     ;;
9314   no:yes:* )
9315     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9317     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9318 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9319     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9321     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9322 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9325     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9327     (
9328       cat <<\_ASBOX
9329 ## ------------------------------------------ ##
9330 ## Report this to the AC_PACKAGE_NAME lists.  ##
9331 ## ------------------------------------------ ##
9332 _ASBOX
9333     ) |
9334       sed "s/^/$as_me: WARNING:     /" >&2
9335     ;;
9336 esac
9337 echo "$as_me:$LINENO: checking for $ac_header" >&5
9338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9340   echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342   eval "$as_ac_Header=\$ac_header_preproc"
9343 fi
9344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9346
9347 fi
9348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9349   cat >>confdefs.h <<_ACEOF
9350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9351 _ACEOF
9352
9353 fi
9354
9355 done
9356
9357
9358
9359
9360 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9361 do
9362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9364   echo "$as_me:$LINENO: checking for $ac_header" >&5
9365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9367   echo $ECHO_N "(cached) $ECHO_C" >&6
9368 fi
9369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9371 else
9372   # Is the header compilable?
9373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381 $ac_includes_default
9382 #include <$ac_header>
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386   (eval $ac_compile) 2>conftest.er1
9387   ac_status=$?
9388   grep -v '^ *+' conftest.er1 >conftest.err
9389   rm -f conftest.er1
9390   cat conftest.err >&5
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); } &&
9393          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395   (eval $ac_try) 2>&5
9396   ac_status=$?
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); }; } &&
9399          { ac_try='test -s conftest.$ac_objext'
9400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401   (eval $ac_try) 2>&5
9402   ac_status=$?
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); }; }; then
9405   ac_header_compiler=yes
9406 else
9407   echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410 ac_header_compiler=no
9411 fi
9412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9414 echo "${ECHO_T}$ac_header_compiler" >&6
9415
9416 # Is the header present?
9417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9419 cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h.  */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h.  */
9425 #include <$ac_header>
9426 _ACEOF
9427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9429   ac_status=$?
9430   grep -v '^ *+' conftest.er1 >conftest.err
9431   rm -f conftest.er1
9432   cat conftest.err >&5
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } >/dev/null; then
9435   if test -s conftest.err; then
9436     ac_cpp_err=$ac_c_preproc_warn_flag
9437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9438   else
9439     ac_cpp_err=
9440   fi
9441 else
9442   ac_cpp_err=yes
9443 fi
9444 if test -z "$ac_cpp_err"; then
9445   ac_header_preproc=yes
9446 else
9447   echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450   ac_header_preproc=no
9451 fi
9452 rm -f conftest.err conftest.$ac_ext
9453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9454 echo "${ECHO_T}$ac_header_preproc" >&6
9455
9456 # So?  What about this header?
9457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9458   yes:no: )
9459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9463     ac_header_preproc=yes
9464     ;;
9465   no:yes:* )
9466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9478     (
9479       cat <<\_ASBOX
9480 ## ------------------------------------------ ##
9481 ## Report this to the AC_PACKAGE_NAME lists.  ##
9482 ## ------------------------------------------ ##
9483 _ASBOX
9484     ) |
9485       sed "s/^/$as_me: WARNING:     /" >&2
9486     ;;
9487 esac
9488 echo "$as_me:$LINENO: checking for $ac_header" >&5
9489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9491   echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493   eval "$as_ac_Header=\$ac_header_preproc"
9494 fi
9495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9497
9498 fi
9499 if 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
9504 fi
9505
9506 done
9507
9508
9509 for ac_header in stddef.h
9510 do
9511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9513   echo "$as_me:$LINENO: checking for $ac_header" >&5
9514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9516   echo $ECHO_N "(cached) $ECHO_C" >&6
9517 fi
9518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9520 else
9521   # Is the header compilable?
9522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9524 cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h.  */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h.  */
9530 $ac_includes_default
9531 #include <$ac_header>
9532 _ACEOF
9533 rm -f conftest.$ac_objext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9535   (eval $ac_compile) 2>conftest.er1
9536   ac_status=$?
9537   grep -v '^ *+' conftest.er1 >conftest.err
9538   rm -f conftest.er1
9539   cat conftest.err >&5
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); } &&
9542          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544   (eval $ac_try) 2>&5
9545   ac_status=$?
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); }; } &&
9548          { ac_try='test -s conftest.$ac_objext'
9549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550   (eval $ac_try) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; }; then
9554   ac_header_compiler=yes
9555 else
9556   echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 ac_header_compiler=no
9560 fi
9561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9563 echo "${ECHO_T}$ac_header_compiler" >&6
9564
9565 # Is the header present?
9566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h.  */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h.  */
9574 #include <$ac_header>
9575 _ACEOF
9576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9578   ac_status=$?
9579   grep -v '^ *+' conftest.er1 >conftest.err
9580   rm -f conftest.er1
9581   cat conftest.err >&5
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } >/dev/null; then
9584   if test -s conftest.err; then
9585     ac_cpp_err=$ac_c_preproc_warn_flag
9586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9587   else
9588     ac_cpp_err=
9589   fi
9590 else
9591   ac_cpp_err=yes
9592 fi
9593 if test -z "$ac_cpp_err"; then
9594   ac_header_preproc=yes
9595 else
9596   echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9598
9599   ac_header_preproc=no
9600 fi
9601 rm -f conftest.err conftest.$ac_ext
9602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9603 echo "${ECHO_T}$ac_header_preproc" >&6
9604
9605 # So?  What about this header?
9606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9607   yes:no: )
9608     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9612     ac_header_preproc=yes
9613     ;;
9614   no:yes:* )
9615     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9617     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9618 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9619     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9621     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9622 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9625     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9627     (
9628       cat <<\_ASBOX
9629 ## ------------------------------------------ ##
9630 ## Report this to the AC_PACKAGE_NAME lists.  ##
9631 ## ------------------------------------------ ##
9632 _ASBOX
9633     ) |
9634       sed "s/^/$as_me: WARNING:     /" >&2
9635     ;;
9636 esac
9637 echo "$as_me:$LINENO: checking for $ac_header" >&5
9638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9640   echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642   eval "$as_ac_Header=\$ac_header_preproc"
9643 fi
9644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9646
9647 fi
9648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9649   cat >>confdefs.h <<_ACEOF
9650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9651 _ACEOF
9652
9653 fi
9654
9655 done
9656
9657
9658 for ac_header in stdlib.h
9659 do
9660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9662   echo "$as_me:$LINENO: checking for $ac_header" >&5
9663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9665   echo $ECHO_N "(cached) $ECHO_C" >&6
9666 fi
9667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9669 else
9670   # Is the header compilable?
9671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h.  */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h.  */
9679 $ac_includes_default
9680 #include <$ac_header>
9681 _ACEOF
9682 rm -f conftest.$ac_objext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684   (eval $ac_compile) 2>conftest.er1
9685   ac_status=$?
9686   grep -v '^ *+' conftest.er1 >conftest.err
9687   rm -f conftest.er1
9688   cat conftest.err >&5
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } &&
9691          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693   (eval $ac_try) 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); }; } &&
9697          { ac_try='test -s conftest.$ac_objext'
9698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699   (eval $ac_try) 2>&5
9700   ac_status=$?
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); }; }; then
9703   ac_header_compiler=yes
9704 else
9705   echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708 ac_header_compiler=no
9709 fi
9710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9712 echo "${ECHO_T}$ac_header_compiler" >&6
9713
9714 # Is the header present?
9715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9717 cat >conftest.$ac_ext <<_ACEOF
9718 /* confdefs.h.  */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h.  */
9723 #include <$ac_header>
9724 _ACEOF
9725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9727   ac_status=$?
9728   grep -v '^ *+' conftest.er1 >conftest.err
9729   rm -f conftest.er1
9730   cat conftest.err >&5
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } >/dev/null; then
9733   if test -s conftest.err; then
9734     ac_cpp_err=$ac_c_preproc_warn_flag
9735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9736   else
9737     ac_cpp_err=
9738   fi
9739 else
9740   ac_cpp_err=yes
9741 fi
9742 if test -z "$ac_cpp_err"; then
9743   ac_header_preproc=yes
9744 else
9745   echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9747
9748   ac_header_preproc=no
9749 fi
9750 rm -f conftest.err conftest.$ac_ext
9751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9752 echo "${ECHO_T}$ac_header_preproc" >&6
9753
9754 # So?  What about this header?
9755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9756   yes:no: )
9757     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9761     ac_header_preproc=yes
9762     ;;
9763   no:yes:* )
9764     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9766     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9767 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9768     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9770     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9771 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9774     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9776     (
9777       cat <<\_ASBOX
9778 ## ------------------------------------------ ##
9779 ## Report this to the AC_PACKAGE_NAME lists.  ##
9780 ## ------------------------------------------ ##
9781 _ASBOX
9782     ) |
9783       sed "s/^/$as_me: WARNING:     /" >&2
9784     ;;
9785 esac
9786 echo "$as_me:$LINENO: checking for $ac_header" >&5
9787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9789   echo $ECHO_N "(cached) $ECHO_C" >&6
9790 else
9791   eval "$as_ac_Header=\$ac_header_preproc"
9792 fi
9793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9795
9796 fi
9797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9798   cat >>confdefs.h <<_ACEOF
9799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9800 _ACEOF
9801
9802 fi
9803
9804 done
9805
9806
9807 for ac_header in stdint.h
9808 do
9809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9811   echo "$as_me:$LINENO: checking for $ac_header" >&5
9812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9814   echo $ECHO_N "(cached) $ECHO_C" >&6
9815 fi
9816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9818 else
9819   # Is the header compilable?
9820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828 $ac_includes_default
9829 #include <$ac_header>
9830 _ACEOF
9831 rm -f conftest.$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833   (eval $ac_compile) 2>conftest.er1
9834   ac_status=$?
9835   grep -v '^ *+' conftest.er1 >conftest.err
9836   rm -f conftest.er1
9837   cat conftest.err >&5
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } &&
9840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842   (eval $ac_try) 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; } &&
9846          { ac_try='test -s conftest.$ac_objext'
9847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848   (eval $ac_try) 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; }; then
9852   ac_header_compiler=yes
9853 else
9854   echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857 ac_header_compiler=no
9858 fi
9859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9861 echo "${ECHO_T}$ac_header_compiler" >&6
9862
9863 # Is the header present?
9864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h.  */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h.  */
9872 #include <$ac_header>
9873 _ACEOF
9874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9876   ac_status=$?
9877   grep -v '^ *+' conftest.er1 >conftest.err
9878   rm -f conftest.er1
9879   cat conftest.err >&5
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } >/dev/null; then
9882   if test -s conftest.err; then
9883     ac_cpp_err=$ac_c_preproc_warn_flag
9884     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9885   else
9886     ac_cpp_err=
9887   fi
9888 else
9889   ac_cpp_err=yes
9890 fi
9891 if test -z "$ac_cpp_err"; then
9892   ac_header_preproc=yes
9893 else
9894   echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897   ac_header_preproc=no
9898 fi
9899 rm -f conftest.err conftest.$ac_ext
9900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9901 echo "${ECHO_T}$ac_header_preproc" >&6
9902
9903 # So?  What about this header?
9904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9905   yes:no: )
9906     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9910     ac_header_preproc=yes
9911     ;;
9912   no:yes:* )
9913     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9915     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9916 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9917     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9919     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9920 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9923     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9925     (
9926       cat <<\_ASBOX
9927 ## ------------------------------------------ ##
9928 ## Report this to the AC_PACKAGE_NAME lists.  ##
9929 ## ------------------------------------------ ##
9930 _ASBOX
9931     ) |
9932       sed "s/^/$as_me: WARNING:     /" >&2
9933     ;;
9934 esac
9935 echo "$as_me:$LINENO: checking for $ac_header" >&5
9936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940   eval "$as_ac_Header=\$ac_header_preproc"
9941 fi
9942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9944
9945 fi
9946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9947   cat >>confdefs.h <<_ACEOF
9948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9949 _ACEOF
9950
9951 fi
9952
9953 done
9954
9955
9956
9957
9958 for ac_header in string.h memory.h strings.h
9959 do
9960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962   echo "$as_me:$LINENO: checking for $ac_header" >&5
9963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9965   echo $ECHO_N "(cached) $ECHO_C" >&6
9966 fi
9967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9969 else
9970   # Is the header compilable?
9971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9973 cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h.  */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h.  */
9979 $ac_includes_default
9980 #include <$ac_header>
9981 _ACEOF
9982 rm -f conftest.$ac_objext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984   (eval $ac_compile) 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
9988   cat conftest.err >&5
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } &&
9991          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993   (eval $ac_try) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); }; } &&
9997          { ac_try='test -s conftest.$ac_objext'
9998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999   (eval $ac_try) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; }; then
10003   ac_header_compiler=yes
10004 else
10005   echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10007
10008 ac_header_compiler=no
10009 fi
10010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10012 echo "${ECHO_T}$ac_header_compiler" >&6
10013
10014 # Is the header present?
10015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h.  */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h.  */
10023 #include <$ac_header>
10024 _ACEOF
10025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10027   ac_status=$?
10028   grep -v '^ *+' conftest.er1 >conftest.err
10029   rm -f conftest.er1
10030   cat conftest.err >&5
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); } >/dev/null; then
10033   if test -s conftest.err; then
10034     ac_cpp_err=$ac_c_preproc_warn_flag
10035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10036   else
10037     ac_cpp_err=
10038   fi
10039 else
10040   ac_cpp_err=yes
10041 fi
10042 if test -z "$ac_cpp_err"; then
10043   ac_header_preproc=yes
10044 else
10045   echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10047
10048   ac_header_preproc=no
10049 fi
10050 rm -f conftest.err conftest.$ac_ext
10051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10052 echo "${ECHO_T}$ac_header_preproc" >&6
10053
10054 # So?  What about this header?
10055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10056   yes:no: )
10057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10061     ac_header_preproc=yes
10062     ;;
10063   no:yes:* )
10064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10076     (
10077       cat <<\_ASBOX
10078 ## ------------------------------------------ ##
10079 ## Report this to the AC_PACKAGE_NAME lists.  ##
10080 ## ------------------------------------------ ##
10081 _ASBOX
10082     ) |
10083       sed "s/^/$as_me: WARNING:     /" >&2
10084     ;;
10085 esac
10086 echo "$as_me:$LINENO: checking for $ac_header" >&5
10087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10089   echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091   eval "$as_ac_Header=\$ac_header_preproc"
10092 fi
10093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10095
10096 fi
10097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10098   cat >>confdefs.h <<_ACEOF
10099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10100 _ACEOF
10101
10102 fi
10103
10104 done
10105
10106
10107 for ac_header in sys/fault.h
10108 do
10109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10111   echo "$as_me:$LINENO: checking for $ac_header" >&5
10112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10114   echo $ECHO_N "(cached) $ECHO_C" >&6
10115 fi
10116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10118 else
10119   # Is the header compilable?
10120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h.  */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h.  */
10128 $ac_includes_default
10129 #include <$ac_header>
10130 _ACEOF
10131 rm -f conftest.$ac_objext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10133   (eval $ac_compile) 2>conftest.er1
10134   ac_status=$?
10135   grep -v '^ *+' conftest.er1 >conftest.err
10136   rm -f conftest.er1
10137   cat conftest.err >&5
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); } &&
10140          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142   (eval $ac_try) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; } &&
10146          { ac_try='test -s conftest.$ac_objext'
10147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148   (eval $ac_try) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); }; }; then
10152   ac_header_compiler=yes
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 ac_header_compiler=no
10158 fi
10159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10161 echo "${ECHO_T}$ac_header_compiler" >&6
10162
10163 # Is the header present?
10164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10166 cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h.  */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h.  */
10172 #include <$ac_header>
10173 _ACEOF
10174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10176   ac_status=$?
10177   grep -v '^ *+' conftest.er1 >conftest.err
10178   rm -f conftest.er1
10179   cat conftest.err >&5
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); } >/dev/null; then
10182   if test -s conftest.err; then
10183     ac_cpp_err=$ac_c_preproc_warn_flag
10184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10185   else
10186     ac_cpp_err=
10187   fi
10188 else
10189   ac_cpp_err=yes
10190 fi
10191 if test -z "$ac_cpp_err"; then
10192   ac_header_preproc=yes
10193 else
10194   echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197   ac_header_preproc=no
10198 fi
10199 rm -f conftest.err conftest.$ac_ext
10200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10201 echo "${ECHO_T}$ac_header_preproc" >&6
10202
10203 # So?  What about this header?
10204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10205   yes:no: )
10206     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10210     ac_header_preproc=yes
10211     ;;
10212   no:yes:* )
10213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10215     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10216 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10217     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10219     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10220 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10223     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10225     (
10226       cat <<\_ASBOX
10227 ## ------------------------------------------ ##
10228 ## Report this to the AC_PACKAGE_NAME lists.  ##
10229 ## ------------------------------------------ ##
10230 _ASBOX
10231     ) |
10232       sed "s/^/$as_me: WARNING:     /" >&2
10233     ;;
10234 esac
10235 echo "$as_me:$LINENO: checking for $ac_header" >&5
10236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240   eval "$as_ac_Header=\$ac_header_preproc"
10241 fi
10242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10244
10245 fi
10246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10247   cat >>confdefs.h <<_ACEOF
10248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10249 _ACEOF
10250
10251 fi
10252
10253 done
10254
10255
10256 for ac_header in sys/file.h
10257 do
10258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10260   echo "$as_me:$LINENO: checking for $ac_header" >&5
10261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10263   echo $ECHO_N "(cached) $ECHO_C" >&6
10264 fi
10265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10267 else
10268   # Is the header compilable?
10269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10271 cat >conftest.$ac_ext <<_ACEOF
10272 /* confdefs.h.  */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h.  */
10277 $ac_includes_default
10278 #include <$ac_header>
10279 _ACEOF
10280 rm -f conftest.$ac_objext
10281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10282   (eval $ac_compile) 2>conftest.er1
10283   ac_status=$?
10284   grep -v '^ *+' conftest.er1 >conftest.err
10285   rm -f conftest.er1
10286   cat conftest.err >&5
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } &&
10289          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291   (eval $ac_try) 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); }; } &&
10295          { ac_try='test -s conftest.$ac_objext'
10296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297   (eval $ac_try) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); }; }; then
10301   ac_header_compiler=yes
10302 else
10303   echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10305
10306 ac_header_compiler=no
10307 fi
10308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10310 echo "${ECHO_T}$ac_header_compiler" >&6
10311
10312 # Is the header present?
10313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10315 cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h.  */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h.  */
10321 #include <$ac_header>
10322 _ACEOF
10323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10325   ac_status=$?
10326   grep -v '^ *+' conftest.er1 >conftest.err
10327   rm -f conftest.er1
10328   cat conftest.err >&5
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); } >/dev/null; then
10331   if test -s conftest.err; then
10332     ac_cpp_err=$ac_c_preproc_warn_flag
10333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10334   else
10335     ac_cpp_err=
10336   fi
10337 else
10338   ac_cpp_err=yes
10339 fi
10340 if test -z "$ac_cpp_err"; then
10341   ac_header_preproc=yes
10342 else
10343   echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10345
10346   ac_header_preproc=no
10347 fi
10348 rm -f conftest.err conftest.$ac_ext
10349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10350 echo "${ECHO_T}$ac_header_preproc" >&6
10351
10352 # So?  What about this header?
10353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10354   yes:no: )
10355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10359     ac_header_preproc=yes
10360     ;;
10361   no:yes:* )
10362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10374     (
10375       cat <<\_ASBOX
10376 ## ------------------------------------------ ##
10377 ## Report this to the AC_PACKAGE_NAME lists.  ##
10378 ## ------------------------------------------ ##
10379 _ASBOX
10380     ) |
10381       sed "s/^/$as_me: WARNING:     /" >&2
10382     ;;
10383 esac
10384 echo "$as_me:$LINENO: checking for $ac_header" >&5
10385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10387   echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389   eval "$as_ac_Header=\$ac_header_preproc"
10390 fi
10391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10393
10394 fi
10395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10396   cat >>confdefs.h <<_ACEOF
10397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10398 _ACEOF
10399
10400 fi
10401
10402 done
10403
10404
10405 for ac_header in sys/filio.h
10406 do
10407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10409   echo "$as_me:$LINENO: checking for $ac_header" >&5
10410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10412   echo $ECHO_N "(cached) $ECHO_C" >&6
10413 fi
10414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10416 else
10417   # Is the header compilable?
10418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h.  */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h.  */
10426 $ac_includes_default
10427 #include <$ac_header>
10428 _ACEOF
10429 rm -f conftest.$ac_objext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431   (eval $ac_compile) 2>conftest.er1
10432   ac_status=$?
10433   grep -v '^ *+' conftest.er1 >conftest.err
10434   rm -f conftest.er1
10435   cat conftest.err >&5
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); } &&
10438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440   (eval $ac_try) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; } &&
10444          { ac_try='test -s conftest.$ac_objext'
10445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446   (eval $ac_try) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; }; then
10450   ac_header_compiler=yes
10451 else
10452   echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455 ac_header_compiler=no
10456 fi
10457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10459 echo "${ECHO_T}$ac_header_compiler" >&6
10460
10461 # Is the header present?
10462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10464 cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h.  */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h.  */
10470 #include <$ac_header>
10471 _ACEOF
10472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10474   ac_status=$?
10475   grep -v '^ *+' conftest.er1 >conftest.err
10476   rm -f conftest.er1
10477   cat conftest.err >&5
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); } >/dev/null; then
10480   if test -s conftest.err; then
10481     ac_cpp_err=$ac_c_preproc_warn_flag
10482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10483   else
10484     ac_cpp_err=
10485   fi
10486 else
10487   ac_cpp_err=yes
10488 fi
10489 if test -z "$ac_cpp_err"; then
10490   ac_header_preproc=yes
10491 else
10492   echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495   ac_header_preproc=no
10496 fi
10497 rm -f conftest.err conftest.$ac_ext
10498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10499 echo "${ECHO_T}$ac_header_preproc" >&6
10500
10501 # So?  What about this header?
10502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10503   yes:no: )
10504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10508     ac_header_preproc=yes
10509     ;;
10510   no:yes:* )
10511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10523     (
10524       cat <<\_ASBOX
10525 ## ------------------------------------------ ##
10526 ## Report this to the AC_PACKAGE_NAME lists.  ##
10527 ## ------------------------------------------ ##
10528 _ASBOX
10529     ) |
10530       sed "s/^/$as_me: WARNING:     /" >&2
10531     ;;
10532 esac
10533 echo "$as_me:$LINENO: checking for $ac_header" >&5
10534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10536   echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538   eval "$as_ac_Header=\$ac_header_preproc"
10539 fi
10540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10542
10543 fi
10544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10545   cat >>confdefs.h <<_ACEOF
10546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10547 _ACEOF
10548
10549 fi
10550
10551 done
10552
10553
10554 for ac_header in sys/ioctl.h
10555 do
10556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10558   echo "$as_me:$LINENO: checking for $ac_header" >&5
10559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10561   echo $ECHO_N "(cached) $ECHO_C" >&6
10562 fi
10563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10565 else
10566   # Is the header compilable?
10567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10569 cat >conftest.$ac_ext <<_ACEOF
10570 /* confdefs.h.  */
10571 _ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h.  */
10575 $ac_includes_default
10576 #include <$ac_header>
10577 _ACEOF
10578 rm -f conftest.$ac_objext
10579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580   (eval $ac_compile) 2>conftest.er1
10581   ac_status=$?
10582   grep -v '^ *+' conftest.er1 >conftest.err
10583   rm -f conftest.er1
10584   cat conftest.err >&5
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); } &&
10587          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589   (eval $ac_try) 2>&5
10590   ac_status=$?
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); }; } &&
10593          { ac_try='test -s conftest.$ac_objext'
10594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595   (eval $ac_try) 2>&5
10596   ac_status=$?
10597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598   (exit $ac_status); }; }; then
10599   ac_header_compiler=yes
10600 else
10601   echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10603
10604 ac_header_compiler=no
10605 fi
10606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10608 echo "${ECHO_T}$ac_header_compiler" >&6
10609
10610 # Is the header present?
10611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619 #include <$ac_header>
10620 _ACEOF
10621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10623   ac_status=$?
10624   grep -v '^ *+' conftest.er1 >conftest.err
10625   rm -f conftest.er1
10626   cat conftest.err >&5
10627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628   (exit $ac_status); } >/dev/null; then
10629   if test -s conftest.err; then
10630     ac_cpp_err=$ac_c_preproc_warn_flag
10631     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10632   else
10633     ac_cpp_err=
10634   fi
10635 else
10636   ac_cpp_err=yes
10637 fi
10638 if test -z "$ac_cpp_err"; then
10639   ac_header_preproc=yes
10640 else
10641   echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10643
10644   ac_header_preproc=no
10645 fi
10646 rm -f conftest.err conftest.$ac_ext
10647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10648 echo "${ECHO_T}$ac_header_preproc" >&6
10649
10650 # So?  What about this header?
10651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10652   yes:no: )
10653     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10657     ac_header_preproc=yes
10658     ;;
10659   no:yes:* )
10660     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10662     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10663 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10664     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10666     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10667 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10670     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10672     (
10673       cat <<\_ASBOX
10674 ## ------------------------------------------ ##
10675 ## Report this to the AC_PACKAGE_NAME lists.  ##
10676 ## ------------------------------------------ ##
10677 _ASBOX
10678     ) |
10679       sed "s/^/$as_me: WARNING:     /" >&2
10680     ;;
10681 esac
10682 echo "$as_me:$LINENO: checking for $ac_header" >&5
10683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10685   echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687   eval "$as_ac_Header=\$ac_header_preproc"
10688 fi
10689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10691
10692 fi
10693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10694   cat >>confdefs.h <<_ACEOF
10695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696 _ACEOF
10697
10698 fi
10699
10700 done
10701
10702
10703 for ac_header in sys/param.h
10704 do
10705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10707   echo "$as_me:$LINENO: checking for $ac_header" >&5
10708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 fi
10712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10714 else
10715   # Is the header compilable?
10716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10718 cat >conftest.$ac_ext <<_ACEOF
10719 /* confdefs.h.  */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h.  */
10724 $ac_includes_default
10725 #include <$ac_header>
10726 _ACEOF
10727 rm -f conftest.$ac_objext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10729   (eval $ac_compile) 2>conftest.er1
10730   ac_status=$?
10731   grep -v '^ *+' conftest.er1 >conftest.err
10732   rm -f conftest.er1
10733   cat conftest.err >&5
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); } &&
10736          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738   (eval $ac_try) 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); }; } &&
10742          { ac_try='test -s conftest.$ac_objext'
10743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744   (eval $ac_try) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; }; then
10748   ac_header_compiler=yes
10749 else
10750   echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10752
10753 ac_header_compiler=no
10754 fi
10755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10757 echo "${ECHO_T}$ac_header_compiler" >&6
10758
10759 # Is the header present?
10760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10762 cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h.  */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h.  */
10768 #include <$ac_header>
10769 _ACEOF
10770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10771   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10772   ac_status=$?
10773   grep -v '^ *+' conftest.er1 >conftest.err
10774   rm -f conftest.er1
10775   cat conftest.err >&5
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } >/dev/null; then
10778   if test -s conftest.err; then
10779     ac_cpp_err=$ac_c_preproc_warn_flag
10780     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10781   else
10782     ac_cpp_err=
10783   fi
10784 else
10785   ac_cpp_err=yes
10786 fi
10787 if test -z "$ac_cpp_err"; then
10788   ac_header_preproc=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793   ac_header_preproc=no
10794 fi
10795 rm -f conftest.err conftest.$ac_ext
10796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10797 echo "${ECHO_T}$ac_header_preproc" >&6
10798
10799 # So?  What about this header?
10800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10801   yes:no: )
10802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10806     ac_header_preproc=yes
10807     ;;
10808   no:yes:* )
10809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10821     (
10822       cat <<\_ASBOX
10823 ## ------------------------------------------ ##
10824 ## Report this to the AC_PACKAGE_NAME lists.  ##
10825 ## ------------------------------------------ ##
10826 _ASBOX
10827     ) |
10828       sed "s/^/$as_me: WARNING:     /" >&2
10829     ;;
10830 esac
10831 echo "$as_me:$LINENO: checking for $ac_header" >&5
10832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10834   echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836   eval "$as_ac_Header=\$ac_header_preproc"
10837 fi
10838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10840
10841 fi
10842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10843   cat >>confdefs.h <<_ACEOF
10844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10845 _ACEOF
10846
10847 fi
10848
10849 done
10850
10851
10852 for ac_header in sys/proc.h
10853 do
10854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10855 echo "$as_me:$LINENO: checking for $ac_header" >&5
10856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10858   echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860   cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h.  */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h.  */
10866 #if HAVE_SYS_PARAM_H
10867 # include <sys/param.h>
10868 #endif
10869
10870
10871 #include <$ac_header>
10872 _ACEOF
10873 rm -f conftest.$ac_objext
10874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10875   (eval $ac_compile) 2>conftest.er1
10876   ac_status=$?
10877   grep -v '^ *+' conftest.er1 >conftest.err
10878   rm -f conftest.er1
10879   cat conftest.err >&5
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); } &&
10882          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884   (eval $ac_try) 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; } &&
10888          { ac_try='test -s conftest.$ac_objext'
10889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890   (eval $ac_try) 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; }; then
10894   eval "$as_ac_Header=yes"
10895 else
10896   echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10898
10899 eval "$as_ac_Header=no"
10900 fi
10901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10902 fi
10903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10906   cat >>confdefs.h <<_ACEOF
10907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10908 _ACEOF
10909
10910 fi
10911
10912 done
10913
10914
10915 for ac_header in sys/procfs.h
10916 do
10917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10919   echo "$as_me:$LINENO: checking for $ac_header" >&5
10920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10922   echo $ECHO_N "(cached) $ECHO_C" >&6
10923 fi
10924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10926 else
10927   # Is the header compilable?
10928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h.  */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h.  */
10936 $ac_includes_default
10937 #include <$ac_header>
10938 _ACEOF
10939 rm -f conftest.$ac_objext
10940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10941   (eval $ac_compile) 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } &&
10948          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; } &&
10954          { ac_try='test -s conftest.$ac_objext'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; }; then
10960   ac_header_compiler=yes
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965 ac_header_compiler=no
10966 fi
10967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10969 echo "${ECHO_T}$ac_header_compiler" >&6
10970
10971 # Is the header present?
10972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10974 cat >conftest.$ac_ext <<_ACEOF
10975 /* confdefs.h.  */
10976 _ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h.  */
10980 #include <$ac_header>
10981 _ACEOF
10982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10984   ac_status=$?
10985   grep -v '^ *+' conftest.er1 >conftest.err
10986   rm -f conftest.er1
10987   cat conftest.err >&5
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); } >/dev/null; then
10990   if test -s conftest.err; then
10991     ac_cpp_err=$ac_c_preproc_warn_flag
10992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10993   else
10994     ac_cpp_err=
10995   fi
10996 else
10997   ac_cpp_err=yes
10998 fi
10999 if test -z "$ac_cpp_err"; then
11000   ac_header_preproc=yes
11001 else
11002   echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11004
11005   ac_header_preproc=no
11006 fi
11007 rm -f conftest.err conftest.$ac_ext
11008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11009 echo "${ECHO_T}$ac_header_preproc" >&6
11010
11011 # So?  What about this header?
11012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11013   yes:no: )
11014     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11018     ac_header_preproc=yes
11019     ;;
11020   no:yes:* )
11021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11023     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11024 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11025     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11027     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11028 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11031     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11033     (
11034       cat <<\_ASBOX
11035 ## ------------------------------------------ ##
11036 ## Report this to the AC_PACKAGE_NAME lists.  ##
11037 ## ------------------------------------------ ##
11038 _ASBOX
11039     ) |
11040       sed "s/^/$as_me: WARNING:     /" >&2
11041     ;;
11042 esac
11043 echo "$as_me:$LINENO: checking for $ac_header" >&5
11044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11046   echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048   eval "$as_ac_Header=\$ac_header_preproc"
11049 fi
11050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11052
11053 fi
11054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11055   cat >>confdefs.h <<_ACEOF
11056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11057 _ACEOF
11058
11059 fi
11060
11061 done
11062
11063
11064
11065 for ac_header in sys/ptrace.h ptrace.h
11066 do
11067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11069   echo "$as_me:$LINENO: checking for $ac_header" >&5
11070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11072   echo $ECHO_N "(cached) $ECHO_C" >&6
11073 fi
11074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11076 else
11077   # Is the header compilable?
11078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h.  */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h.  */
11086 $ac_includes_default
11087 #include <$ac_header>
11088 _ACEOF
11089 rm -f conftest.$ac_objext
11090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091   (eval $ac_compile) 2>conftest.er1
11092   ac_status=$?
11093   grep -v '^ *+' conftest.er1 >conftest.err
11094   rm -f conftest.er1
11095   cat conftest.err >&5
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); } &&
11098          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100   (eval $ac_try) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; } &&
11104          { ac_try='test -s conftest.$ac_objext'
11105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106   (eval $ac_try) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); }; }; then
11110   ac_header_compiler=yes
11111 else
11112   echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 ac_header_compiler=no
11116 fi
11117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11119 echo "${ECHO_T}$ac_header_compiler" >&6
11120
11121 # Is the header present?
11122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11124 cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h.  */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h.  */
11130 #include <$ac_header>
11131 _ACEOF
11132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11134   ac_status=$?
11135   grep -v '^ *+' conftest.er1 >conftest.err
11136   rm -f conftest.er1
11137   cat conftest.err >&5
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); } >/dev/null; then
11140   if test -s conftest.err; then
11141     ac_cpp_err=$ac_c_preproc_warn_flag
11142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11143   else
11144     ac_cpp_err=
11145   fi
11146 else
11147   ac_cpp_err=yes
11148 fi
11149 if test -z "$ac_cpp_err"; then
11150   ac_header_preproc=yes
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155   ac_header_preproc=no
11156 fi
11157 rm -f conftest.err conftest.$ac_ext
11158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11159 echo "${ECHO_T}$ac_header_preproc" >&6
11160
11161 # So?  What about this header?
11162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11163   yes:no: )
11164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11168     ac_header_preproc=yes
11169     ;;
11170   no:yes:* )
11171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11183     (
11184       cat <<\_ASBOX
11185 ## ------------------------------------------ ##
11186 ## Report this to the AC_PACKAGE_NAME lists.  ##
11187 ## ------------------------------------------ ##
11188 _ASBOX
11189     ) |
11190       sed "s/^/$as_me: WARNING:     /" >&2
11191     ;;
11192 esac
11193 echo "$as_me:$LINENO: checking for $ac_header" >&5
11194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11196   echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198   eval "$as_ac_Header=\$ac_header_preproc"
11199 fi
11200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11202
11203 fi
11204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11205   cat >>confdefs.h <<_ACEOF
11206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11207 _ACEOF
11208
11209 fi
11210
11211 done
11212
11213
11214
11215 for ac_header in sys/reg.h sys/debugreg.h
11216 do
11217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11219   echo "$as_me:$LINENO: checking for $ac_header" >&5
11220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11222   echo $ECHO_N "(cached) $ECHO_C" >&6
11223 fi
11224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11226 else
11227   # Is the header compilable?
11228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11230 cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h.  */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h.  */
11236 $ac_includes_default
11237 #include <$ac_header>
11238 _ACEOF
11239 rm -f conftest.$ac_objext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241   (eval $ac_compile) 2>conftest.er1
11242   ac_status=$?
11243   grep -v '^ *+' conftest.er1 >conftest.err
11244   rm -f conftest.er1
11245   cat conftest.err >&5
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); } &&
11248          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250   (eval $ac_try) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); }; } &&
11254          { ac_try='test -s conftest.$ac_objext'
11255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256   (eval $ac_try) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); }; }; then
11260   ac_header_compiler=yes
11261 else
11262   echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265 ac_header_compiler=no
11266 fi
11267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11269 echo "${ECHO_T}$ac_header_compiler" >&6
11270
11271 # Is the header present?
11272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11274 cat >conftest.$ac_ext <<_ACEOF
11275 /* confdefs.h.  */
11276 _ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h.  */
11280 #include <$ac_header>
11281 _ACEOF
11282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11283   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } >/dev/null; then
11290   if test -s conftest.err; then
11291     ac_cpp_err=$ac_c_preproc_warn_flag
11292     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11293   else
11294     ac_cpp_err=
11295   fi
11296 else
11297   ac_cpp_err=yes
11298 fi
11299 if test -z "$ac_cpp_err"; then
11300   ac_header_preproc=yes
11301 else
11302   echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11304
11305   ac_header_preproc=no
11306 fi
11307 rm -f conftest.err conftest.$ac_ext
11308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11309 echo "${ECHO_T}$ac_header_preproc" >&6
11310
11311 # So?  What about this header?
11312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11313   yes:no: )
11314     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11318     ac_header_preproc=yes
11319     ;;
11320   no:yes:* )
11321     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11323     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11324 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11325     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11327     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11328 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11331     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11333     (
11334       cat <<\_ASBOX
11335 ## ------------------------------------------ ##
11336 ## Report this to the AC_PACKAGE_NAME lists.  ##
11337 ## ------------------------------------------ ##
11338 _ASBOX
11339     ) |
11340       sed "s/^/$as_me: WARNING:     /" >&2
11341     ;;
11342 esac
11343 echo "$as_me:$LINENO: checking for $ac_header" >&5
11344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348   eval "$as_ac_Header=\$ac_header_preproc"
11349 fi
11350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11352
11353 fi
11354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11355   cat >>confdefs.h <<_ACEOF
11356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11357 _ACEOF
11358
11359 fi
11360
11361 done
11362
11363
11364 for ac_header in sys/select.h
11365 do
11366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11368   echo "$as_me:$LINENO: checking for $ac_header" >&5
11369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 fi
11373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11375 else
11376   # Is the header compilable?
11377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h.  */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h.  */
11385 $ac_includes_default
11386 #include <$ac_header>
11387 _ACEOF
11388 rm -f conftest.$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390   (eval $ac_compile) 2>conftest.er1
11391   ac_status=$?
11392   grep -v '^ *+' conftest.er1 >conftest.err
11393   rm -f conftest.er1
11394   cat conftest.err >&5
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } &&
11397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399   (eval $ac_try) 2>&5
11400   ac_status=$?
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); }; } &&
11403          { ac_try='test -s conftest.$ac_objext'
11404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405   (eval $ac_try) 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; }; then
11409   ac_header_compiler=yes
11410 else
11411   echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11413
11414 ac_header_compiler=no
11415 fi
11416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11418 echo "${ECHO_T}$ac_header_compiler" >&6
11419
11420 # Is the header present?
11421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h.  */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h.  */
11429 #include <$ac_header>
11430 _ACEOF
11431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11433   ac_status=$?
11434   grep -v '^ *+' conftest.er1 >conftest.err
11435   rm -f conftest.er1
11436   cat conftest.err >&5
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); } >/dev/null; then
11439   if test -s conftest.err; then
11440     ac_cpp_err=$ac_c_preproc_warn_flag
11441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11442   else
11443     ac_cpp_err=
11444   fi
11445 else
11446   ac_cpp_err=yes
11447 fi
11448 if test -z "$ac_cpp_err"; then
11449   ac_header_preproc=yes
11450 else
11451   echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11453
11454   ac_header_preproc=no
11455 fi
11456 rm -f conftest.err conftest.$ac_ext
11457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458 echo "${ECHO_T}$ac_header_preproc" >&6
11459
11460 # So?  What about this header?
11461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462   yes:no: )
11463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467     ac_header_preproc=yes
11468     ;;
11469   no:yes:* )
11470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11482     (
11483       cat <<\_ASBOX
11484 ## ------------------------------------------ ##
11485 ## Report this to the AC_PACKAGE_NAME lists.  ##
11486 ## ------------------------------------------ ##
11487 _ASBOX
11488     ) |
11489       sed "s/^/$as_me: WARNING:     /" >&2
11490     ;;
11491 esac
11492 echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   eval "$as_ac_Header=\$ac_header_preproc"
11498 fi
11499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11501
11502 fi
11503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11504   cat >>confdefs.h <<_ACEOF
11505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11506 _ACEOF
11507
11508 fi
11509
11510 done
11511
11512
11513 for ac_header in sys/syscall.h
11514 do
11515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11517   echo "$as_me:$LINENO: checking for $ac_header" >&5
11518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 fi
11522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11524 else
11525   # Is the header compilable?
11526 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h.  */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h.  */
11534 $ac_includes_default
11535 #include <$ac_header>
11536 _ACEOF
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539   (eval $ac_compile) 2>conftest.er1
11540   ac_status=$?
11541   grep -v '^ *+' conftest.er1 >conftest.err
11542   rm -f conftest.er1
11543   cat conftest.err >&5
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); } &&
11546          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548   (eval $ac_try) 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); }; } &&
11552          { ac_try='test -s conftest.$ac_objext'
11553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554   (eval $ac_try) 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); }; }; then
11558   ac_header_compiler=yes
11559 else
11560   echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563 ac_header_compiler=no
11564 fi
11565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11567 echo "${ECHO_T}$ac_header_compiler" >&6
11568
11569 # Is the header present?
11570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11572 cat >conftest.$ac_ext <<_ACEOF
11573 /* confdefs.h.  */
11574 _ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h.  */
11578 #include <$ac_header>
11579 _ACEOF
11580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11581   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11582   ac_status=$?
11583   grep -v '^ *+' conftest.er1 >conftest.err
11584   rm -f conftest.er1
11585   cat conftest.err >&5
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); } >/dev/null; then
11588   if test -s conftest.err; then
11589     ac_cpp_err=$ac_c_preproc_warn_flag
11590     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11591   else
11592     ac_cpp_err=
11593   fi
11594 else
11595   ac_cpp_err=yes
11596 fi
11597 if test -z "$ac_cpp_err"; then
11598   ac_header_preproc=yes
11599 else
11600   echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11602
11603   ac_header_preproc=no
11604 fi
11605 rm -f conftest.err conftest.$ac_ext
11606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11607 echo "${ECHO_T}$ac_header_preproc" >&6
11608
11609 # So?  What about this header?
11610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11611   yes:no: )
11612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11616     ac_header_preproc=yes
11617     ;;
11618   no:yes:* )
11619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11621     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11622 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11623     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11625     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11626 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11629     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11631     (
11632       cat <<\_ASBOX
11633 ## ------------------------------------------ ##
11634 ## Report this to the AC_PACKAGE_NAME lists.  ##
11635 ## ------------------------------------------ ##
11636 _ASBOX
11637     ) |
11638       sed "s/^/$as_me: WARNING:     /" >&2
11639     ;;
11640 esac
11641 echo "$as_me:$LINENO: checking for $ac_header" >&5
11642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11644   echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646   eval "$as_ac_Header=\$ac_header_preproc"
11647 fi
11648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11650
11651 fi
11652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653   cat >>confdefs.h <<_ACEOF
11654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11655 _ACEOF
11656
11657 fi
11658
11659 done
11660
11661
11662 for ac_header in sys/types.h
11663 do
11664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11666   echo "$as_me:$LINENO: checking for $ac_header" >&5
11667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11669   echo $ECHO_N "(cached) $ECHO_C" >&6
11670 fi
11671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11673 else
11674   # Is the header compilable?
11675 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683 $ac_includes_default
11684 #include <$ac_header>
11685 _ACEOF
11686 rm -f conftest.$ac_objext
11687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688   (eval $ac_compile) 2>conftest.er1
11689   ac_status=$?
11690   grep -v '^ *+' conftest.er1 >conftest.err
11691   rm -f conftest.er1
11692   cat conftest.err >&5
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); } &&
11695          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697   (eval $ac_try) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; } &&
11701          { ac_try='test -s conftest.$ac_objext'
11702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703   (eval $ac_try) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); }; }; then
11707   ac_header_compiler=yes
11708 else
11709   echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ac_header_compiler=no
11713 fi
11714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11716 echo "${ECHO_T}$ac_header_compiler" >&6
11717
11718 # Is the header present?
11719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11721 cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h.  */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h.  */
11727 #include <$ac_header>
11728 _ACEOF
11729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11731   ac_status=$?
11732   grep -v '^ *+' conftest.er1 >conftest.err
11733   rm -f conftest.er1
11734   cat conftest.err >&5
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); } >/dev/null; then
11737   if test -s conftest.err; then
11738     ac_cpp_err=$ac_c_preproc_warn_flag
11739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11740   else
11741     ac_cpp_err=
11742   fi
11743 else
11744   ac_cpp_err=yes
11745 fi
11746 if test -z "$ac_cpp_err"; then
11747   ac_header_preproc=yes
11748 else
11749   echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752   ac_header_preproc=no
11753 fi
11754 rm -f conftest.err conftest.$ac_ext
11755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11756 echo "${ECHO_T}$ac_header_preproc" >&6
11757
11758 # So?  What about this header?
11759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11760   yes:no: )
11761     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11765     ac_header_preproc=yes
11766     ;;
11767   no:yes:* )
11768     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11770     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11771 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11772     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11774     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11775 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11778     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11780     (
11781       cat <<\_ASBOX
11782 ## ------------------------------------------ ##
11783 ## Report this to the AC_PACKAGE_NAME lists.  ##
11784 ## ------------------------------------------ ##
11785 _ASBOX
11786     ) |
11787       sed "s/^/$as_me: WARNING:     /" >&2
11788     ;;
11789 esac
11790 echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11793   echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795   eval "$as_ac_Header=\$ac_header_preproc"
11796 fi
11797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11799
11800 fi
11801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11802   cat >>confdefs.h <<_ACEOF
11803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11804 _ACEOF
11805
11806 fi
11807
11808 done
11809
11810
11811 for ac_header in sys/user.h
11812 do
11813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11814 echo "$as_me:$LINENO: checking for $ac_header" >&5
11815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11817   echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819   cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h.  */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h.  */
11825 #if HAVE_SYS_PARAM_H
11826 # include <sys/param.h>
11827 #endif
11828
11829
11830 #include <$ac_header>
11831 _ACEOF
11832 rm -f conftest.$ac_objext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11834   (eval $ac_compile) 2>conftest.er1
11835   ac_status=$?
11836   grep -v '^ *+' conftest.er1 >conftest.err
11837   rm -f conftest.er1
11838   cat conftest.err >&5
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); } &&
11841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843   (eval $ac_try) 2>&5
11844   ac_status=$?
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); }; } &&
11847          { ac_try='test -s conftest.$ac_objext'
11848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849   (eval $ac_try) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); }; }; then
11853   eval "$as_ac_Header=yes"
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858 eval "$as_ac_Header=no"
11859 fi
11860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11861 fi
11862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11865   cat >>confdefs.h <<_ACEOF
11866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11867 _ACEOF
11868
11869 fi
11870
11871 done
11872
11873
11874
11875 for ac_header in sys/wait.h wait.h
11876 do
11877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11879   echo "$as_me:$LINENO: checking for $ac_header" >&5
11880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11882   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 fi
11884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11886 else
11887   # Is the header compilable?
11888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896 $ac_includes_default
11897 #include <$ac_header>
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901   (eval $ac_compile) 2>conftest.er1
11902   ac_status=$?
11903   grep -v '^ *+' conftest.er1 >conftest.err
11904   rm -f conftest.er1
11905   cat conftest.err >&5
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); } &&
11908          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; } &&
11914          { ac_try='test -s conftest.$ac_objext'
11915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916   (eval $ac_try) 2>&5
11917   ac_status=$?
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); }; }; then
11920   ac_header_compiler=yes
11921 else
11922   echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11924
11925 ac_header_compiler=no
11926 fi
11927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11929 echo "${ECHO_T}$ac_header_compiler" >&6
11930
11931 # Is the header present?
11932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h.  */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h.  */
11940 #include <$ac_header>
11941 _ACEOF
11942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11944   ac_status=$?
11945   grep -v '^ *+' conftest.er1 >conftest.err
11946   rm -f conftest.er1
11947   cat conftest.err >&5
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } >/dev/null; then
11950   if test -s conftest.err; then
11951     ac_cpp_err=$ac_c_preproc_warn_flag
11952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11953   else
11954     ac_cpp_err=
11955   fi
11956 else
11957   ac_cpp_err=yes
11958 fi
11959 if test -z "$ac_cpp_err"; then
11960   ac_header_preproc=yes
11961 else
11962   echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965   ac_header_preproc=no
11966 fi
11967 rm -f conftest.err conftest.$ac_ext
11968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11969 echo "${ECHO_T}$ac_header_preproc" >&6
11970
11971 # So?  What about this header?
11972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11973   yes:no: )
11974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11978     ac_header_preproc=yes
11979     ;;
11980   no:yes:* )
11981     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11983     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11984 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11985     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11987     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11988 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11991     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11993     (
11994       cat <<\_ASBOX
11995 ## ------------------------------------------ ##
11996 ## Report this to the AC_PACKAGE_NAME lists.  ##
11997 ## ------------------------------------------ ##
11998 _ASBOX
11999     ) |
12000       sed "s/^/$as_me: WARNING:     /" >&2
12001     ;;
12002 esac
12003 echo "$as_me:$LINENO: checking for $ac_header" >&5
12004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12006   echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008   eval "$as_ac_Header=\$ac_header_preproc"
12009 fi
12010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12012
12013 fi
12014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12015   cat >>confdefs.h <<_ACEOF
12016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12017 _ACEOF
12018
12019 fi
12020
12021 done
12022
12023
12024
12025
12026 for ac_header in termios.h termio.h sgtty.h
12027 do
12028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12030   echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12033   echo $ECHO_N "(cached) $ECHO_C" >&6
12034 fi
12035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12037 else
12038   # Is the header compilable?
12039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h.  */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h.  */
12047 $ac_includes_default
12048 #include <$ac_header>
12049 _ACEOF
12050 rm -f conftest.$ac_objext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052   (eval $ac_compile) 2>conftest.er1
12053   ac_status=$?
12054   grep -v '^ *+' conftest.er1 >conftest.err
12055   rm -f conftest.er1
12056   cat conftest.err >&5
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); } &&
12059          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061   (eval $ac_try) 2>&5
12062   ac_status=$?
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); }; } &&
12065          { ac_try='test -s conftest.$ac_objext'
12066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067   (eval $ac_try) 2>&5
12068   ac_status=$?
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); }; }; then
12071   ac_header_compiler=yes
12072 else
12073   echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12075
12076 ac_header_compiler=no
12077 fi
12078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12080 echo "${ECHO_T}$ac_header_compiler" >&6
12081
12082 # Is the header present?
12083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12085 cat >conftest.$ac_ext <<_ACEOF
12086 /* confdefs.h.  */
12087 _ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h.  */
12091 #include <$ac_header>
12092 _ACEOF
12093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12095   ac_status=$?
12096   grep -v '^ *+' conftest.er1 >conftest.err
12097   rm -f conftest.er1
12098   cat conftest.err >&5
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); } >/dev/null; then
12101   if test -s conftest.err; then
12102     ac_cpp_err=$ac_c_preproc_warn_flag
12103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12104   else
12105     ac_cpp_err=
12106   fi
12107 else
12108   ac_cpp_err=yes
12109 fi
12110 if test -z "$ac_cpp_err"; then
12111   ac_header_preproc=yes
12112 else
12113   echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12115
12116   ac_header_preproc=no
12117 fi
12118 rm -f conftest.err conftest.$ac_ext
12119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12120 echo "${ECHO_T}$ac_header_preproc" >&6
12121
12122 # So?  What about this header?
12123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12124   yes:no: )
12125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12129     ac_header_preproc=yes
12130     ;;
12131   no:yes:* )
12132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12144     (
12145       cat <<\_ASBOX
12146 ## ------------------------------------------ ##
12147 ## Report this to the AC_PACKAGE_NAME lists.  ##
12148 ## ------------------------------------------ ##
12149 _ASBOX
12150     ) |
12151       sed "s/^/$as_me: WARNING:     /" >&2
12152     ;;
12153 esac
12154 echo "$as_me:$LINENO: checking for $ac_header" >&5
12155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12157   echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159   eval "$as_ac_Header=\$ac_header_preproc"
12160 fi
12161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12163
12164 fi
12165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12166   cat >>confdefs.h <<_ACEOF
12167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12168 _ACEOF
12169
12170 fi
12171
12172 done
12173
12174
12175 for ac_header in unistd.h
12176 do
12177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12179   echo "$as_me:$LINENO: checking for $ac_header" >&5
12180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182   echo $ECHO_N "(cached) $ECHO_C" >&6
12183 fi
12184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12186 else
12187   # Is the header compilable?
12188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196 $ac_includes_default
12197 #include <$ac_header>
12198 _ACEOF
12199 rm -f conftest.$ac_objext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201   (eval $ac_compile) 2>conftest.er1
12202   ac_status=$?
12203   grep -v '^ *+' conftest.er1 >conftest.err
12204   rm -f conftest.er1
12205   cat conftest.err >&5
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } &&
12208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210   (eval $ac_try) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; } &&
12214          { ac_try='test -s conftest.$ac_objext'
12215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216   (eval $ac_try) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; }; then
12220   ac_header_compiler=yes
12221 else
12222   echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12224
12225 ac_header_compiler=no
12226 fi
12227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12229 echo "${ECHO_T}$ac_header_compiler" >&6
12230
12231 # Is the header present?
12232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12240 #include <$ac_header>
12241 _ACEOF
12242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12244   ac_status=$?
12245   grep -v '^ *+' conftest.er1 >conftest.err
12246   rm -f conftest.er1
12247   cat conftest.err >&5
12248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249   (exit $ac_status); } >/dev/null; then
12250   if test -s conftest.err; then
12251     ac_cpp_err=$ac_c_preproc_warn_flag
12252     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12253   else
12254     ac_cpp_err=
12255   fi
12256 else
12257   ac_cpp_err=yes
12258 fi
12259 if test -z "$ac_cpp_err"; then
12260   ac_header_preproc=yes
12261 else
12262   echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12264
12265   ac_header_preproc=no
12266 fi
12267 rm -f conftest.err conftest.$ac_ext
12268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12269 echo "${ECHO_T}$ac_header_preproc" >&6
12270
12271 # So?  What about this header?
12272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12273   yes:no: )
12274     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12278     ac_header_preproc=yes
12279     ;;
12280   no:yes:* )
12281     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12283     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12284 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12285     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12287     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12288 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12291     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12293     (
12294       cat <<\_ASBOX
12295 ## ------------------------------------------ ##
12296 ## Report this to the AC_PACKAGE_NAME lists.  ##
12297 ## ------------------------------------------ ##
12298 _ASBOX
12299     ) |
12300       sed "s/^/$as_me: WARNING:     /" >&2
12301     ;;
12302 esac
12303 echo "$as_me:$LINENO: checking for $ac_header" >&5
12304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12306   echo $ECHO_N "(cached) $ECHO_C" >&6
12307 else
12308   eval "$as_ac_Header=\$ac_header_preproc"
12309 fi
12310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12312
12313 fi
12314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12315   cat >>confdefs.h <<_ACEOF
12316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317 _ACEOF
12318
12319 fi
12320
12321 done
12322
12323
12324 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12325 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12326 # think that we don't have <curses.h> if we're using GCC.
12327 case $host_os in
12328   solaris2.[789])
12329     if test "$GCC" = yes; then
12330
12331 cat >>confdefs.h <<\_ACEOF
12332 #define _MSE_INT_H 1
12333 _ACEOF
12334
12335     fi ;;
12336 esac
12337
12338
12339
12340
12341 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12342 do
12343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12345   echo "$as_me:$LINENO: checking for $ac_header" >&5
12346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12348   echo $ECHO_N "(cached) $ECHO_C" >&6
12349 fi
12350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12352 else
12353   # Is the header compilable?
12354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h.  */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h.  */
12362 $ac_includes_default
12363 #include <$ac_header>
12364 _ACEOF
12365 rm -f conftest.$ac_objext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12367   (eval $ac_compile) 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } &&
12374          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376   (eval $ac_try) 2>&5
12377   ac_status=$?
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); }; } &&
12380          { ac_try='test -s conftest.$ac_objext'
12381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382   (eval $ac_try) 2>&5
12383   ac_status=$?
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); }; }; then
12386   ac_header_compiler=yes
12387 else
12388   echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12390
12391 ac_header_compiler=no
12392 fi
12393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12395 echo "${ECHO_T}$ac_header_compiler" >&6
12396
12397 # Is the header present?
12398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h.  */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h.  */
12406 #include <$ac_header>
12407 _ACEOF
12408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12410   ac_status=$?
12411   grep -v '^ *+' conftest.er1 >conftest.err
12412   rm -f conftest.er1
12413   cat conftest.err >&5
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); } >/dev/null; then
12416   if test -s conftest.err; then
12417     ac_cpp_err=$ac_c_preproc_warn_flag
12418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12419   else
12420     ac_cpp_err=
12421   fi
12422 else
12423   ac_cpp_err=yes
12424 fi
12425 if test -z "$ac_cpp_err"; then
12426   ac_header_preproc=yes
12427 else
12428   echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12430
12431   ac_header_preproc=no
12432 fi
12433 rm -f conftest.err conftest.$ac_ext
12434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12435 echo "${ECHO_T}$ac_header_preproc" >&6
12436
12437 # So?  What about this header?
12438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12439   yes:no: )
12440     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12444     ac_header_preproc=yes
12445     ;;
12446   no:yes:* )
12447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12449     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12450 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12451     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12453     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12454 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12457     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12459     (
12460       cat <<\_ASBOX
12461 ## ------------------------------------------ ##
12462 ## Report this to the AC_PACKAGE_NAME lists.  ##
12463 ## ------------------------------------------ ##
12464 _ASBOX
12465     ) |
12466       sed "s/^/$as_me: WARNING:     /" >&2
12467     ;;
12468 esac
12469 echo "$as_me:$LINENO: checking for $ac_header" >&5
12470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12472   echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474   eval "$as_ac_Header=\$ac_header_preproc"
12475 fi
12476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12478
12479 fi
12480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12481   cat >>confdefs.h <<_ACEOF
12482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12483 _ACEOF
12484
12485 fi
12486
12487 done
12488
12489
12490 for ac_header in ncurses/term.h
12491 do
12492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12494   echo "$as_me:$LINENO: checking for $ac_header" >&5
12495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12497   echo $ECHO_N "(cached) $ECHO_C" >&6
12498 fi
12499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12501 else
12502   # Is the header compilable?
12503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511 $ac_includes_default
12512 #include <$ac_header>
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516   (eval $ac_compile) 2>conftest.er1
12517   ac_status=$?
12518   grep -v '^ *+' conftest.er1 >conftest.err
12519   rm -f conftest.er1
12520   cat conftest.err >&5
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); } &&
12523          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525   (eval $ac_try) 2>&5
12526   ac_status=$?
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); }; } &&
12529          { ac_try='test -s conftest.$ac_objext'
12530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531   (eval $ac_try) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; }; then
12535   ac_header_compiler=yes
12536 else
12537   echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12539
12540 ac_header_compiler=no
12541 fi
12542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12544 echo "${ECHO_T}$ac_header_compiler" >&6
12545
12546 # Is the header present?
12547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12549 cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h.  */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h.  */
12555 #include <$ac_header>
12556 _ACEOF
12557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12559   ac_status=$?
12560   grep -v '^ *+' conftest.er1 >conftest.err
12561   rm -f conftest.er1
12562   cat conftest.err >&5
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); } >/dev/null; then
12565   if test -s conftest.err; then
12566     ac_cpp_err=$ac_c_preproc_warn_flag
12567     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12568   else
12569     ac_cpp_err=
12570   fi
12571 else
12572   ac_cpp_err=yes
12573 fi
12574 if test -z "$ac_cpp_err"; then
12575   ac_header_preproc=yes
12576 else
12577   echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580   ac_header_preproc=no
12581 fi
12582 rm -f conftest.err conftest.$ac_ext
12583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12584 echo "${ECHO_T}$ac_header_preproc" >&6
12585
12586 # So?  What about this header?
12587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12588   yes:no: )
12589     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12593     ac_header_preproc=yes
12594     ;;
12595   no:yes:* )
12596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12598     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12599 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12600     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12602     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12603 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12606     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12608     (
12609       cat <<\_ASBOX
12610 ## ------------------------------------------ ##
12611 ## Report this to the AC_PACKAGE_NAME lists.  ##
12612 ## ------------------------------------------ ##
12613 _ASBOX
12614     ) |
12615       sed "s/^/$as_me: WARNING:     /" >&2
12616     ;;
12617 esac
12618 echo "$as_me:$LINENO: checking for $ac_header" >&5
12619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12621   echo $ECHO_N "(cached) $ECHO_C" >&6
12622 else
12623   eval "$as_ac_Header=\$ac_header_preproc"
12624 fi
12625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12627
12628 fi
12629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12630   cat >>confdefs.h <<_ACEOF
12631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12632 _ACEOF
12633
12634 fi
12635
12636 done
12637
12638
12639 for ac_header in term.h
12640 do
12641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12642 echo "$as_me:$LINENO: checking for $ac_header" >&5
12643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12645   echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647   cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h.  */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h.  */
12653 #if HAVE_CURSES_H
12654 # include <curses.h>
12655 #endif
12656
12657
12658 #include <$ac_header>
12659 _ACEOF
12660 rm -f conftest.$ac_objext
12661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12662   (eval $ac_compile) 2>conftest.er1
12663   ac_status=$?
12664   grep -v '^ *+' conftest.er1 >conftest.err
12665   rm -f conftest.er1
12666   cat conftest.err >&5
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); } &&
12669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671   (eval $ac_try) 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); }; } &&
12675          { ac_try='test -s conftest.$ac_objext'
12676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677   (eval $ac_try) 2>&5
12678   ac_status=$?
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); }; }; then
12681   eval "$as_ac_Header=yes"
12682 else
12683   echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12685
12686 eval "$as_ac_Header=no"
12687 fi
12688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12689 fi
12690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12693   cat >>confdefs.h <<_ACEOF
12694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12695 _ACEOF
12696
12697 fi
12698
12699 done
12700
12701
12702 # FIXME: kettenis/20030102: In most cases we include these
12703 # unconditionally, so what's the point in checking these?
12704
12705
12706 for ac_header in ctype.h time.h
12707 do
12708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12710   echo "$as_me:$LINENO: checking for $ac_header" >&5
12711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12713   echo $ECHO_N "(cached) $ECHO_C" >&6
12714 fi
12715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12717 else
12718   # Is the header compilable?
12719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12721 cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h.  */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h.  */
12727 $ac_includes_default
12728 #include <$ac_header>
12729 _ACEOF
12730 rm -f conftest.$ac_objext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732   (eval $ac_compile) 2>conftest.er1
12733   ac_status=$?
12734   grep -v '^ *+' conftest.er1 >conftest.err
12735   rm -f conftest.er1
12736   cat conftest.err >&5
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } &&
12739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741   (eval $ac_try) 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); }; } &&
12745          { ac_try='test -s conftest.$ac_objext'
12746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747   (eval $ac_try) 2>&5
12748   ac_status=$?
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); }; }; then
12751   ac_header_compiler=yes
12752 else
12753   echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12755
12756 ac_header_compiler=no
12757 fi
12758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12760 echo "${ECHO_T}$ac_header_compiler" >&6
12761
12762 # Is the header present?
12763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h.  */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h.  */
12771 #include <$ac_header>
12772 _ACEOF
12773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12775   ac_status=$?
12776   grep -v '^ *+' conftest.er1 >conftest.err
12777   rm -f conftest.er1
12778   cat conftest.err >&5
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); } >/dev/null; then
12781   if test -s conftest.err; then
12782     ac_cpp_err=$ac_c_preproc_warn_flag
12783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12784   else
12785     ac_cpp_err=
12786   fi
12787 else
12788   ac_cpp_err=yes
12789 fi
12790 if test -z "$ac_cpp_err"; then
12791   ac_header_preproc=yes
12792 else
12793   echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12795
12796   ac_header_preproc=no
12797 fi
12798 rm -f conftest.err conftest.$ac_ext
12799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12800 echo "${ECHO_T}$ac_header_preproc" >&6
12801
12802 # So?  What about this header?
12803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12804   yes:no: )
12805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12809     ac_header_preproc=yes
12810     ;;
12811   no:yes:* )
12812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12814     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12815 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12816     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12818     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12819 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12822     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12824     (
12825       cat <<\_ASBOX
12826 ## ------------------------------------------ ##
12827 ## Report this to the AC_PACKAGE_NAME lists.  ##
12828 ## ------------------------------------------ ##
12829 _ASBOX
12830     ) |
12831       sed "s/^/$as_me: WARNING:     /" >&2
12832     ;;
12833 esac
12834 echo "$as_me:$LINENO: checking for $ac_header" >&5
12835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12837   echo $ECHO_N "(cached) $ECHO_C" >&6
12838 else
12839   eval "$as_ac_Header=\$ac_header_preproc"
12840 fi
12841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12843
12844 fi
12845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12846   cat >>confdefs.h <<_ACEOF
12847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12848 _ACEOF
12849
12850 fi
12851
12852 done
12853
12854
12855 # ------------------------- #
12856 # Checks for declarations.  #
12857 # ------------------------- #
12858
12859 echo "$as_me:$LINENO: checking whether free is declared" >&5
12860 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12861 if test "${ac_cv_have_decl_free+set}" = set; then
12862   echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864   cat >conftest.$ac_ext <<_ACEOF
12865 /* confdefs.h.  */
12866 _ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h.  */
12870 $ac_includes_default
12871 int
12872 main ()
12873 {
12874 #ifndef free
12875   char *p = (char *) free;
12876 #endif
12877
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12884   (eval $ac_compile) 2>conftest.er1
12885   ac_status=$?
12886   grep -v '^ *+' conftest.er1 >conftest.err
12887   rm -f conftest.er1
12888   cat conftest.err >&5
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); } &&
12891          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893   (eval $ac_try) 2>&5
12894   ac_status=$?
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); }; } &&
12897          { ac_try='test -s conftest.$ac_objext'
12898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899   (eval $ac_try) 2>&5
12900   ac_status=$?
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); }; }; then
12903   ac_cv_have_decl_free=yes
12904 else
12905   echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12907
12908 ac_cv_have_decl_free=no
12909 fi
12910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12911 fi
12912 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12913 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12914 if test $ac_cv_have_decl_free = yes; then
12915
12916 cat >>confdefs.h <<_ACEOF
12917 #define HAVE_DECL_FREE 1
12918 _ACEOF
12919
12920
12921 else
12922   cat >>confdefs.h <<_ACEOF
12923 #define HAVE_DECL_FREE 0
12924 _ACEOF
12925
12926
12927 fi
12928 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12929 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12930 if test "${ac_cv_have_decl_malloc+set}" = set; then
12931   echo $ECHO_N "(cached) $ECHO_C" >&6
12932 else
12933   cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h.  */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h.  */
12939 $ac_includes_default
12940 int
12941 main ()
12942 {
12943 #ifndef malloc
12944   char *p = (char *) malloc;
12945 #endif
12946
12947   ;
12948   return 0;
12949 }
12950 _ACEOF
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953   (eval $ac_compile) 2>conftest.er1
12954   ac_status=$?
12955   grep -v '^ *+' conftest.er1 >conftest.err
12956   rm -f conftest.er1
12957   cat conftest.err >&5
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); } &&
12960          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962   (eval $ac_try) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); }; } &&
12966          { ac_try='test -s conftest.$ac_objext'
12967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968   (eval $ac_try) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; }; then
12972   ac_cv_have_decl_malloc=yes
12973 else
12974   echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12976
12977 ac_cv_have_decl_malloc=no
12978 fi
12979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12980 fi
12981 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12982 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12983 if test $ac_cv_have_decl_malloc = yes; then
12984
12985 cat >>confdefs.h <<_ACEOF
12986 #define HAVE_DECL_MALLOC 1
12987 _ACEOF
12988
12989
12990 else
12991   cat >>confdefs.h <<_ACEOF
12992 #define HAVE_DECL_MALLOC 0
12993 _ACEOF
12994
12995
12996 fi
12997 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12998 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
12999 if test "${ac_cv_have_decl_realloc+set}" = set; then
13000   echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002   cat >conftest.$ac_ext <<_ACEOF
13003 /* confdefs.h.  */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h.  */
13008 $ac_includes_default
13009 int
13010 main ()
13011 {
13012 #ifndef realloc
13013   char *p = (char *) realloc;
13014 #endif
13015
13016   ;
13017   return 0;
13018 }
13019 _ACEOF
13020 rm -f conftest.$ac_objext
13021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13022   (eval $ac_compile) 2>conftest.er1
13023   ac_status=$?
13024   grep -v '^ *+' conftest.er1 >conftest.err
13025   rm -f conftest.er1
13026   cat conftest.err >&5
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); } &&
13029          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031   (eval $ac_try) 2>&5
13032   ac_status=$?
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); }; } &&
13035          { ac_try='test -s conftest.$ac_objext'
13036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037   (eval $ac_try) 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; }; then
13041   ac_cv_have_decl_realloc=yes
13042 else
13043   echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13045
13046 ac_cv_have_decl_realloc=no
13047 fi
13048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13049 fi
13050 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13051 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13052 if test $ac_cv_have_decl_realloc = yes; then
13053
13054 cat >>confdefs.h <<_ACEOF
13055 #define HAVE_DECL_REALLOC 1
13056 _ACEOF
13057
13058
13059 else
13060   cat >>confdefs.h <<_ACEOF
13061 #define HAVE_DECL_REALLOC 0
13062 _ACEOF
13063
13064
13065 fi
13066
13067
13068 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13069 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13070 if test "${ac_cv_have_decl_strerror+set}" = set; then
13071   echo $ECHO_N "(cached) $ECHO_C" >&6
13072 else
13073   cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h.  */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h.  */
13079 $ac_includes_default
13080 int
13081 main ()
13082 {
13083 #ifndef strerror
13084   char *p = (char *) strerror;
13085 #endif
13086
13087   ;
13088   return 0;
13089 }
13090 _ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093   (eval $ac_compile) 2>conftest.er1
13094   ac_status=$?
13095   grep -v '^ *+' conftest.er1 >conftest.err
13096   rm -f conftest.er1
13097   cat conftest.err >&5
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); } &&
13100          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102   (eval $ac_try) 2>&5
13103   ac_status=$?
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); }; } &&
13106          { ac_try='test -s conftest.$ac_objext'
13107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108   (eval $ac_try) 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); }; }; then
13112   ac_cv_have_decl_strerror=yes
13113 else
13114   echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117 ac_cv_have_decl_strerror=no
13118 fi
13119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13120 fi
13121 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13122 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13123 if test $ac_cv_have_decl_strerror = yes; then
13124
13125 cat >>confdefs.h <<_ACEOF
13126 #define HAVE_DECL_STRERROR 1
13127 _ACEOF
13128
13129
13130 else
13131   cat >>confdefs.h <<_ACEOF
13132 #define HAVE_DECL_STRERROR 0
13133 _ACEOF
13134
13135
13136 fi
13137 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13138 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13139 if test "${ac_cv_have_decl_strstr+set}" = set; then
13140   echo $ECHO_N "(cached) $ECHO_C" >&6
13141 else
13142   cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h.  */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h.  */
13148 $ac_includes_default
13149 int
13150 main ()
13151 {
13152 #ifndef strstr
13153   char *p = (char *) strstr;
13154 #endif
13155
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest.$ac_objext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162   (eval $ac_compile) 2>conftest.er1
13163   ac_status=$?
13164   grep -v '^ *+' conftest.er1 >conftest.err
13165   rm -f conftest.er1
13166   cat conftest.err >&5
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } &&
13169          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171   (eval $ac_try) 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); }; } &&
13175          { ac_try='test -s conftest.$ac_objext'
13176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177   (eval $ac_try) 2>&5
13178   ac_status=$?
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); }; }; then
13181   ac_cv_have_decl_strstr=yes
13182 else
13183   echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13185
13186 ac_cv_have_decl_strstr=no
13187 fi
13188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13189 fi
13190 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13191 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13192 if test $ac_cv_have_decl_strstr = yes; then
13193
13194 cat >>confdefs.h <<_ACEOF
13195 #define HAVE_DECL_STRSTR 1
13196 _ACEOF
13197
13198
13199 else
13200   cat >>confdefs.h <<_ACEOF
13201 #define HAVE_DECL_STRSTR 0
13202 _ACEOF
13203
13204
13205 fi
13206
13207
13208 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13209 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13210 if test "${ac_cv_have_decl_getopt+set}" = set; then
13211   echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213   cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219 $ac_includes_default
13220 int
13221 main ()
13222 {
13223 #ifndef getopt
13224   char *p = (char *) getopt;
13225 #endif
13226
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231 rm -f conftest.$ac_objext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233   (eval $ac_compile) 2>conftest.er1
13234   ac_status=$?
13235   grep -v '^ *+' conftest.er1 >conftest.err
13236   rm -f conftest.er1
13237   cat conftest.err >&5
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); } &&
13240          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242   (eval $ac_try) 2>&5
13243   ac_status=$?
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); }; } &&
13246          { ac_try='test -s conftest.$ac_objext'
13247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248   (eval $ac_try) 2>&5
13249   ac_status=$?
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); }; }; then
13252   ac_cv_have_decl_getopt=yes
13253 else
13254   echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13256
13257 ac_cv_have_decl_getopt=no
13258 fi
13259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13260 fi
13261 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13262 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13263 if test $ac_cv_have_decl_getopt = yes; then
13264
13265 cat >>confdefs.h <<_ACEOF
13266 #define HAVE_DECL_GETOPT 1
13267 _ACEOF
13268
13269
13270 else
13271   cat >>confdefs.h <<_ACEOF
13272 #define HAVE_DECL_GETOPT 0
13273 _ACEOF
13274
13275
13276 fi
13277 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13278 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13279 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13280   echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282   cat >conftest.$ac_ext <<_ACEOF
13283 /* confdefs.h.  */
13284 _ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h.  */
13288 $ac_includes_default
13289 int
13290 main ()
13291 {
13292 #ifndef snprintf
13293   char *p = (char *) snprintf;
13294 #endif
13295
13296   ;
13297   return 0;
13298 }
13299 _ACEOF
13300 rm -f conftest.$ac_objext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302   (eval $ac_compile) 2>conftest.er1
13303   ac_status=$?
13304   grep -v '^ *+' conftest.er1 >conftest.err
13305   rm -f conftest.er1
13306   cat conftest.err >&5
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); } &&
13309          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311   (eval $ac_try) 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }; } &&
13315          { ac_try='test -s conftest.$ac_objext'
13316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317   (eval $ac_try) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); }; }; then
13321   ac_cv_have_decl_snprintf=yes
13322 else
13323   echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ac_cv_have_decl_snprintf=no
13327 fi
13328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13329 fi
13330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13331 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13332 if test $ac_cv_have_decl_snprintf = yes; then
13333
13334 cat >>confdefs.h <<_ACEOF
13335 #define HAVE_DECL_SNPRINTF 1
13336 _ACEOF
13337
13338
13339 else
13340   cat >>confdefs.h <<_ACEOF
13341 #define HAVE_DECL_SNPRINTF 0
13342 _ACEOF
13343
13344
13345 fi
13346 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13347 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13348 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13349   echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351   cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h.  */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h.  */
13357 $ac_includes_default
13358 int
13359 main ()
13360 {
13361 #ifndef vsnprintf
13362   char *p = (char *) vsnprintf;
13363 #endif
13364
13365   ;
13366   return 0;
13367 }
13368 _ACEOF
13369 rm -f conftest.$ac_objext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371   (eval $ac_compile) 2>conftest.er1
13372   ac_status=$?
13373   grep -v '^ *+' conftest.er1 >conftest.err
13374   rm -f conftest.er1
13375   cat conftest.err >&5
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); } &&
13378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380   (eval $ac_try) 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); }; } &&
13384          { ac_try='test -s conftest.$ac_objext'
13385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386   (eval $ac_try) 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; }; then
13390   ac_cv_have_decl_vsnprintf=yes
13391 else
13392   echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13394
13395 ac_cv_have_decl_vsnprintf=no
13396 fi
13397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13398 fi
13399 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13400 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13401 if test $ac_cv_have_decl_vsnprintf = yes; then
13402
13403 cat >>confdefs.h <<_ACEOF
13404 #define HAVE_DECL_VSNPRINTF 1
13405 _ACEOF
13406
13407
13408 else
13409   cat >>confdefs.h <<_ACEOF
13410 #define HAVE_DECL_VSNPRINTF 0
13411 _ACEOF
13412
13413
13414 fi
13415
13416
13417
13418 # ----------------------- #
13419 # Checks for structures.  #
13420 # ----------------------- #
13421
13422 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13423 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13424 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13425   echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427   cat >conftest.$ac_ext <<_ACEOF
13428 /* confdefs.h.  */
13429 _ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h.  */
13433 $ac_includes_default
13434 int
13435 main ()
13436 {
13437 static struct stat ac_aggr;
13438 if (ac_aggr.st_blocks)
13439 return 0;
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444 rm -f conftest.$ac_objext
13445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13446   (eval $ac_compile) 2>conftest.er1
13447   ac_status=$?
13448   grep -v '^ *+' conftest.er1 >conftest.err
13449   rm -f conftest.er1
13450   cat conftest.err >&5
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); } &&
13453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455   (eval $ac_try) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; } &&
13459          { ac_try='test -s conftest.$ac_objext'
13460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461   (eval $ac_try) 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); }; }; then
13465   ac_cv_member_struct_stat_st_blocks=yes
13466 else
13467   echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h.  */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h.  */
13476 $ac_includes_default
13477 int
13478 main ()
13479 {
13480 static struct stat ac_aggr;
13481 if (sizeof ac_aggr.st_blocks)
13482 return 0;
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489   (eval $ac_compile) 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498   (eval $ac_try) 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; } &&
13502          { ac_try='test -s conftest.$ac_objext'
13503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504   (eval $ac_try) 2>&5
13505   ac_status=$?
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); }; }; then
13508   ac_cv_member_struct_stat_st_blocks=yes
13509 else
13510   echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13512
13513 ac_cv_member_struct_stat_st_blocks=no
13514 fi
13515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13516 fi
13517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13518 fi
13519 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13520 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13521 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13522
13523 cat >>confdefs.h <<_ACEOF
13524 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13525 _ACEOF
13526
13527
13528 fi
13529
13530 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13531 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13532 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535   cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h.  */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h.  */
13541 $ac_includes_default
13542 int
13543 main ()
13544 {
13545 static struct stat ac_aggr;
13546 if (ac_aggr.st_blksize)
13547 return 0;
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554   (eval $ac_compile) 2>conftest.er1
13555   ac_status=$?
13556   grep -v '^ *+' conftest.er1 >conftest.err
13557   rm -f conftest.er1
13558   cat conftest.err >&5
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } &&
13561          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; } &&
13567          { ac_try='test -s conftest.$ac_objext'
13568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569   (eval $ac_try) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; }; then
13573   ac_cv_member_struct_stat_st_blksize=yes
13574 else
13575   echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578 cat >conftest.$ac_ext <<_ACEOF
13579 /* confdefs.h.  */
13580 _ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h.  */
13584 $ac_includes_default
13585 int
13586 main ()
13587 {
13588 static struct stat ac_aggr;
13589 if (sizeof ac_aggr.st_blksize)
13590 return 0;
13591   ;
13592   return 0;
13593 }
13594 _ACEOF
13595 rm -f conftest.$ac_objext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597   (eval $ac_compile) 2>conftest.er1
13598   ac_status=$?
13599   grep -v '^ *+' conftest.er1 >conftest.err
13600   rm -f conftest.er1
13601   cat conftest.err >&5
13602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); } &&
13604          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606   (eval $ac_try) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); }; } &&
13610          { ac_try='test -s conftest.$ac_objext'
13611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612   (eval $ac_try) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; }; then
13616   ac_cv_member_struct_stat_st_blksize=yes
13617 else
13618   echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13620
13621 ac_cv_member_struct_stat_st_blksize=no
13622 fi
13623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13624 fi
13625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13626 fi
13627 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13628 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13629 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13630
13631 cat >>confdefs.h <<_ACEOF
13632 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13633 _ACEOF
13634
13635
13636 fi
13637
13638
13639 # ------------------ #
13640 # Checks for types.  #
13641 # ------------------ #
13642
13643 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13644 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13645 if test "${ac_cv_type_signal+set}" = set; then
13646   echo $ECHO_N "(cached) $ECHO_C" >&6
13647 else
13648   cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h.  */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h.  */
13654 #include <sys/types.h>
13655 #include <signal.h>
13656 #ifdef signal
13657 # undef signal
13658 #endif
13659 #ifdef __cplusplus
13660 extern "C" void (*signal (int, void (*)(int)))(int);
13661 #else
13662 void (*signal ()) ();
13663 #endif
13664
13665 int
13666 main ()
13667 {
13668 int i;
13669   ;
13670   return 0;
13671 }
13672 _ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675   (eval $ac_compile) 2>conftest.er1
13676   ac_status=$?
13677   grep -v '^ *+' conftest.er1 >conftest.err
13678   rm -f conftest.er1
13679   cat conftest.err >&5
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); } &&
13682          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684   (eval $ac_try) 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; } &&
13688          { ac_try='test -s conftest.$ac_objext'
13689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690   (eval $ac_try) 2>&5
13691   ac_status=$?
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); }; }; then
13694   ac_cv_type_signal=void
13695 else
13696   echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13698
13699 ac_cv_type_signal=int
13700 fi
13701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13702 fi
13703 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13704 echo "${ECHO_T}$ac_cv_type_signal" >&6
13705
13706 cat >>confdefs.h <<_ACEOF
13707 #define RETSIGTYPE $ac_cv_type_signal
13708 _ACEOF
13709
13710
13711 echo "$as_me:$LINENO: checking for socklen_t" >&5
13712 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13713 if test "${ac_cv_type_socklen_t+set}" = set; then
13714   echo $ECHO_N "(cached) $ECHO_C" >&6
13715 else
13716   cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h.  */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h.  */
13722 #include <sys/types.h>
13723 #include <sys/socket.h>
13724
13725
13726 int
13727 main ()
13728 {
13729 if ((socklen_t *) 0)
13730   return 0;
13731 if (sizeof (socklen_t))
13732   return 0;
13733   ;
13734   return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739   (eval $ac_compile) 2>conftest.er1
13740   ac_status=$?
13741   grep -v '^ *+' conftest.er1 >conftest.err
13742   rm -f conftest.er1
13743   cat conftest.err >&5
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); } &&
13746          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748   (eval $ac_try) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; } &&
13752          { ac_try='test -s conftest.$ac_objext'
13753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754   (eval $ac_try) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; }; then
13758   ac_cv_type_socklen_t=yes
13759 else
13760   echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 ac_cv_type_socklen_t=no
13764 fi
13765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13766 fi
13767 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13768 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13769 if test $ac_cv_type_socklen_t = yes; then
13770
13771 cat >>confdefs.h <<_ACEOF
13772 #define HAVE_SOCKLEN_T 1
13773 _ACEOF
13774
13775
13776 fi
13777
13778 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13779 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13780 if test "${ac_cv_type_uintptr_t+set}" = set; then
13781   echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783   cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h.  */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h.  */
13789 #include <stdint.h>
13790
13791 int
13792 main ()
13793 {
13794 if ((uintptr_t *) 0)
13795   return 0;
13796 if (sizeof (uintptr_t))
13797   return 0;
13798   ;
13799   return 0;
13800 }
13801 _ACEOF
13802 rm -f conftest.$ac_objext
13803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13804   (eval $ac_compile) 2>conftest.er1
13805   ac_status=$?
13806   grep -v '^ *+' conftest.er1 >conftest.err
13807   rm -f conftest.er1
13808   cat conftest.err >&5
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); } &&
13811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813   (eval $ac_try) 2>&5
13814   ac_status=$?
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); }; } &&
13817          { ac_try='test -s conftest.$ac_objext'
13818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819   (eval $ac_try) 2>&5
13820   ac_status=$?
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); }; }; then
13823   ac_cv_type_uintptr_t=yes
13824 else
13825   echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828 ac_cv_type_uintptr_t=no
13829 fi
13830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13831 fi
13832 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13833 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13834 if test $ac_cv_type_uintptr_t = yes; then
13835
13836 cat >>confdefs.h <<_ACEOF
13837 #define HAVE_UINTPTR_T 1
13838 _ACEOF
13839
13840
13841 fi
13842
13843
13844 # ------------------------------------- #
13845 # Checks for compiler characteristics.  #
13846 # ------------------------------------- #
13847
13848 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13849 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13850 if test "${ac_cv_c_const+set}" = set; then
13851   echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853   cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h.  */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h.  */
13859
13860 int
13861 main ()
13862 {
13863 /* FIXME: Include the comments suggested by Paul. */
13864 #ifndef __cplusplus
13865   /* Ultrix mips cc rejects this.  */
13866   typedef int charset[2];
13867   const charset x;
13868   /* SunOS 4.1.1 cc rejects this.  */
13869   char const *const *ccp;
13870   char **p;
13871   /* NEC SVR4.0.2 mips cc rejects this.  */
13872   struct point {int x, y;};
13873   static struct point const zero = {0,0};
13874   /* AIX XL C 1.02.0.0 rejects this.
13875      It does not let you subtract one const X* pointer from another in
13876      an arm of an if-expression whose if-part is not a constant
13877      expression */
13878   const char *g = "string";
13879   ccp = &g + (g ? g-g : 0);
13880   /* HPUX 7.0 cc rejects these. */
13881   ++ccp;
13882   p = (char**) ccp;
13883   ccp = (char const *const *) p;
13884   { /* SCO 3.2v4 cc rejects this.  */
13885     char *t;
13886     char const *s = 0 ? (char *) 0 : (char const *) 0;
13887
13888     *t++ = 0;
13889   }
13890   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13891     int x[] = {25, 17};
13892     const int *foo = &x[0];
13893     ++foo;
13894   }
13895   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13896     typedef const int *iptr;
13897     iptr p = 0;
13898     ++p;
13899   }
13900   { /* AIX XL C 1.02.0.0 rejects this saying
13901        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13902     struct s { int j; const int *ap[3]; };
13903     struct s *b; b->j = 5;
13904   }
13905   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13906     const int foo = 10;
13907   }
13908 #endif
13909
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13916   (eval $ac_compile) 2>conftest.er1
13917   ac_status=$?
13918   grep -v '^ *+' conftest.er1 >conftest.err
13919   rm -f conftest.er1
13920   cat conftest.err >&5
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); } &&
13923          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925   (eval $ac_try) 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); }; } &&
13929          { ac_try='test -s conftest.$ac_objext'
13930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931   (eval $ac_try) 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); }; }; then
13935   ac_cv_c_const=yes
13936 else
13937   echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13939
13940 ac_cv_c_const=no
13941 fi
13942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13943 fi
13944 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13945 echo "${ECHO_T}$ac_cv_c_const" >&6
13946 if test $ac_cv_c_const = no; then
13947
13948 cat >>confdefs.h <<\_ACEOF
13949 #define const
13950 _ACEOF
13951
13952 fi
13953
13954 echo "$as_me:$LINENO: checking for inline" >&5
13955 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13956 if test "${ac_cv_c_inline+set}" = set; then
13957   echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959   ac_cv_c_inline=no
13960 for ac_kw in inline __inline__ __inline; do
13961   cat >conftest.$ac_ext <<_ACEOF
13962 /* confdefs.h.  */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h.  */
13967 #ifndef __cplusplus
13968 typedef int foo_t;
13969 static $ac_kw foo_t static_foo () {return 0; }
13970 $ac_kw foo_t foo () {return 0; }
13971 #endif
13972
13973 _ACEOF
13974 rm -f conftest.$ac_objext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976   (eval $ac_compile) 2>conftest.er1
13977   ac_status=$?
13978   grep -v '^ *+' conftest.er1 >conftest.err
13979   rm -f conftest.er1
13980   cat conftest.err >&5
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); } &&
13983          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985   (eval $ac_try) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); }; } &&
13989          { ac_try='test -s conftest.$ac_objext'
13990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991   (eval $ac_try) 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); }; }; then
13995   ac_cv_c_inline=$ac_kw; break
13996 else
13997   echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
13999
14000 fi
14001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14002 done
14003
14004 fi
14005 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14006 echo "${ECHO_T}$ac_cv_c_inline" >&6
14007
14008
14009 case $ac_cv_c_inline in
14010   inline | yes) ;;
14011   *)
14012     case $ac_cv_c_inline in
14013       no) ac_val=;;
14014       *) ac_val=$ac_cv_c_inline;;
14015     esac
14016     cat >>confdefs.h <<_ACEOF
14017 #ifndef __cplusplus
14018 #define inline $ac_val
14019 #endif
14020 _ACEOF
14021     ;;
14022 esac
14023
14024
14025 # ------------------------------ #
14026 # Checks for library functions.  #
14027 # ------------------------------ #
14028
14029 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14030 # for constant arguments.  Useless!
14031 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14032 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14033 if test "${ac_cv_working_alloca_h+set}" = set; then
14034   echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036   cat >conftest.$ac_ext <<_ACEOF
14037 /* confdefs.h.  */
14038 _ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h.  */
14042 #include <alloca.h>
14043 int
14044 main ()
14045 {
14046 char *p = (char *) alloca (2 * sizeof (int));
14047   ;
14048   return 0;
14049 }
14050 _ACEOF
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053   (eval $ac_link) 2>conftest.er1
14054   ac_status=$?
14055   grep -v '^ *+' conftest.er1 >conftest.err
14056   rm -f conftest.er1
14057   cat conftest.err >&5
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); } &&
14060          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062   (eval $ac_try) 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; } &&
14066          { ac_try='test -s conftest$ac_exeext'
14067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068   (eval $ac_try) 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); }; }; then
14072   ac_cv_working_alloca_h=yes
14073 else
14074   echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14076
14077 ac_cv_working_alloca_h=no
14078 fi
14079 rm -f conftest.err conftest.$ac_objext \
14080       conftest$ac_exeext conftest.$ac_ext
14081 fi
14082 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14083 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14084 if test $ac_cv_working_alloca_h = yes; then
14085
14086 cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_ALLOCA_H 1
14088 _ACEOF
14089
14090 fi
14091
14092 echo "$as_me:$LINENO: checking for alloca" >&5
14093 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14094 if test "${ac_cv_func_alloca_works+set}" = set; then
14095   echo $ECHO_N "(cached) $ECHO_C" >&6
14096 else
14097   cat >conftest.$ac_ext <<_ACEOF
14098 /* confdefs.h.  */
14099 _ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h.  */
14103 #ifdef __GNUC__
14104 # define alloca __builtin_alloca
14105 #else
14106 # ifdef _MSC_VER
14107 #  include <malloc.h>
14108 #  define alloca _alloca
14109 # else
14110 #  if HAVE_ALLOCA_H
14111 #   include <alloca.h>
14112 #  else
14113 #   ifdef _AIX
14114  #pragma alloca
14115 #   else
14116 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14117 char *alloca ();
14118 #    endif
14119 #   endif
14120 #  endif
14121 # endif
14122 #endif
14123
14124 int
14125 main ()
14126 {
14127 char *p = (char *) alloca (1);
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14134   (eval $ac_link) 2>conftest.er1
14135   ac_status=$?
14136   grep -v '^ *+' conftest.er1 >conftest.err
14137   rm -f conftest.er1
14138   cat conftest.err >&5
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } &&
14141          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143   (eval $ac_try) 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; } &&
14147          { ac_try='test -s conftest$ac_exeext'
14148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149   (eval $ac_try) 2>&5
14150   ac_status=$?
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); }; }; then
14153   ac_cv_func_alloca_works=yes
14154 else
14155   echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158 ac_cv_func_alloca_works=no
14159 fi
14160 rm -f conftest.err conftest.$ac_objext \
14161       conftest$ac_exeext conftest.$ac_ext
14162 fi
14163 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14164 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14165
14166 if test $ac_cv_func_alloca_works = yes; then
14167
14168 cat >>confdefs.h <<\_ACEOF
14169 #define HAVE_ALLOCA 1
14170 _ACEOF
14171
14172 else
14173   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14174 # that cause trouble.  Some versions do not even contain alloca or
14175 # contain a buggy version.  If you still want to use their alloca,
14176 # use ar to extract alloca.o from them instead of compiling alloca.c.
14177
14178 ALLOCA=alloca.$ac_objext
14179
14180 cat >>confdefs.h <<\_ACEOF
14181 #define C_ALLOCA 1
14182 _ACEOF
14183
14184
14185 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14186 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14187 if test "${ac_cv_os_cray+set}" = set; then
14188   echo $ECHO_N "(cached) $ECHO_C" >&6
14189 else
14190   cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h.  */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h.  */
14196 #if defined(CRAY) && ! defined(CRAY2)
14197 webecray
14198 #else
14199 wenotbecray
14200 #endif
14201
14202 _ACEOF
14203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14204   $EGREP "webecray" >/dev/null 2>&1; then
14205   ac_cv_os_cray=yes
14206 else
14207   ac_cv_os_cray=no
14208 fi
14209 rm -f conftest*
14210
14211 fi
14212 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14213 echo "${ECHO_T}$ac_cv_os_cray" >&6
14214 if test $ac_cv_os_cray = yes; then
14215   for ac_func in _getb67 GETB67 getb67; do
14216     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14217 echo "$as_me:$LINENO: checking for $ac_func" >&5
14218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14219 if eval "test \"\${$as_ac_var+set}\" = set"; then
14220   echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222   cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h.  */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h.  */
14228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14230 #define $ac_func innocuous_$ac_func
14231
14232 /* System header to define __stub macros and hopefully few prototypes,
14233     which can conflict with char $ac_func (); below.
14234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14235     <limits.h> exists even on freestanding compilers.  */
14236
14237 #ifdef __STDC__
14238 # include <limits.h>
14239 #else
14240 # include <assert.h>
14241 #endif
14242
14243 #undef $ac_func
14244
14245 /* Override any gcc2 internal prototype to avoid an error.  */
14246 #ifdef __cplusplus
14247 extern "C"
14248 {
14249 #endif
14250 /* We use char because int might match the return type of a gcc2
14251    builtin and then its argument prototype would still apply.  */
14252 char $ac_func ();
14253 /* The GNU C library defines this for functions which it implements
14254     to always fail with ENOSYS.  Some functions are actually named
14255     something starting with __ and the normal name is an alias.  */
14256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14257 choke me
14258 #else
14259 char (*f) () = $ac_func;
14260 #endif
14261 #ifdef __cplusplus
14262 }
14263 #endif
14264
14265 int
14266 main ()
14267 {
14268 return f != $ac_func;
14269   ;
14270   return 0;
14271 }
14272 _ACEOF
14273 rm -f conftest.$ac_objext conftest$ac_exeext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275   (eval $ac_link) 2>conftest.er1
14276   ac_status=$?
14277   grep -v '^ *+' conftest.er1 >conftest.err
14278   rm -f conftest.er1
14279   cat conftest.err >&5
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); } &&
14282          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284   (eval $ac_try) 2>&5
14285   ac_status=$?
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); }; } &&
14288          { ac_try='test -s conftest$ac_exeext'
14289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290   (eval $ac_try) 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); }; }; then
14294   eval "$as_ac_var=yes"
14295 else
14296   echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14298
14299 eval "$as_ac_var=no"
14300 fi
14301 rm -f conftest.err conftest.$ac_objext \
14302       conftest$ac_exeext conftest.$ac_ext
14303 fi
14304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14306 if test `eval echo '${'$as_ac_var'}'` = yes; then
14307
14308 cat >>confdefs.h <<_ACEOF
14309 #define CRAY_STACKSEG_END $ac_func
14310 _ACEOF
14311
14312     break
14313 fi
14314
14315   done
14316 fi
14317
14318 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14319 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14320 if test "${ac_cv_c_stack_direction+set}" = set; then
14321   echo $ECHO_N "(cached) $ECHO_C" >&6
14322 else
14323   if test "$cross_compiling" = yes; then
14324   ac_cv_c_stack_direction=0
14325 else
14326   cat >conftest.$ac_ext <<_ACEOF
14327 /* confdefs.h.  */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h.  */
14332 int
14333 find_stack_direction ()
14334 {
14335   static char *addr = 0;
14336   auto char dummy;
14337   if (addr == 0)
14338     {
14339       addr = &dummy;
14340       return find_stack_direction ();
14341     }
14342   else
14343     return (&dummy > addr) ? 1 : -1;
14344 }
14345
14346 int
14347 main ()
14348 {
14349   exit (find_stack_direction () < 0);
14350 }
14351 _ACEOF
14352 rm -f conftest$ac_exeext
14353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14354   (eval $ac_link) 2>&5
14355   ac_status=$?
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359   (eval $ac_try) 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; }; then
14363   ac_cv_c_stack_direction=1
14364 else
14365   echo "$as_me: program exited with status $ac_status" >&5
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369 ( exit $ac_status )
14370 ac_cv_c_stack_direction=-1
14371 fi
14372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14373 fi
14374 fi
14375 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14376 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14377
14378 cat >>confdefs.h <<_ACEOF
14379 #define STACK_DIRECTION $ac_cv_c_stack_direction
14380 _ACEOF
14381
14382
14383 fi
14384
14385
14386
14387 for ac_header in stdlib.h unistd.h
14388 do
14389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14391   echo "$as_me:$LINENO: checking for $ac_header" >&5
14392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14394   echo $ECHO_N "(cached) $ECHO_C" >&6
14395 fi
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14398 else
14399   # Is the header compilable?
14400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14402 cat >conftest.$ac_ext <<_ACEOF
14403 /* confdefs.h.  */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h.  */
14408 $ac_includes_default
14409 #include <$ac_header>
14410 _ACEOF
14411 rm -f conftest.$ac_objext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413   (eval $ac_compile) 2>conftest.er1
14414   ac_status=$?
14415   grep -v '^ *+' conftest.er1 >conftest.err
14416   rm -f conftest.er1
14417   cat conftest.err >&5
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); } &&
14420          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422   (eval $ac_try) 2>&5
14423   ac_status=$?
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; } &&
14426          { ac_try='test -s conftest.$ac_objext'
14427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428   (eval $ac_try) 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; }; then
14432   ac_header_compiler=yes
14433 else
14434   echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14436
14437 ac_header_compiler=no
14438 fi
14439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14441 echo "${ECHO_T}$ac_header_compiler" >&6
14442
14443 # Is the header present?
14444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14446 cat >conftest.$ac_ext <<_ACEOF
14447 /* confdefs.h.  */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h.  */
14452 #include <$ac_header>
14453 _ACEOF
14454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14455   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14456   ac_status=$?
14457   grep -v '^ *+' conftest.er1 >conftest.err
14458   rm -f conftest.er1
14459   cat conftest.err >&5
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } >/dev/null; then
14462   if test -s conftest.err; then
14463     ac_cpp_err=$ac_c_preproc_warn_flag
14464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14465   else
14466     ac_cpp_err=
14467   fi
14468 else
14469   ac_cpp_err=yes
14470 fi
14471 if test -z "$ac_cpp_err"; then
14472   ac_header_preproc=yes
14473 else
14474   echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14476
14477   ac_header_preproc=no
14478 fi
14479 rm -f conftest.err conftest.$ac_ext
14480 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14481 echo "${ECHO_T}$ac_header_preproc" >&6
14482
14483 # So?  What about this header?
14484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14485   yes:no: )
14486     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14490     ac_header_preproc=yes
14491     ;;
14492   no:yes:* )
14493     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14495     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14496 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14497     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14499     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14500 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14503     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14505     (
14506       cat <<\_ASBOX
14507 ## ------------------------------------------ ##
14508 ## Report this to the AC_PACKAGE_NAME lists.  ##
14509 ## ------------------------------------------ ##
14510 _ASBOX
14511     ) |
14512       sed "s/^/$as_me: WARNING:     /" >&2
14513     ;;
14514 esac
14515 echo "$as_me:$LINENO: checking for $ac_header" >&5
14516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14518   echo $ECHO_N "(cached) $ECHO_C" >&6
14519 else
14520   eval "$as_ac_Header=\$ac_header_preproc"
14521 fi
14522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14524
14525 fi
14526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14527   cat >>confdefs.h <<_ACEOF
14528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14529 _ACEOF
14530
14531 fi
14532
14533 done
14534
14535
14536 for ac_func in getpagesize
14537 do
14538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14539 echo "$as_me:$LINENO: checking for $ac_func" >&5
14540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14541 if eval "test \"\${$as_ac_var+set}\" = set"; then
14542   echo $ECHO_N "(cached) $ECHO_C" >&6
14543 else
14544   cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h.  */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h.  */
14550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14552 #define $ac_func innocuous_$ac_func
14553
14554 /* System header to define __stub macros and hopefully few prototypes,
14555     which can conflict with char $ac_func (); below.
14556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14557     <limits.h> exists even on freestanding compilers.  */
14558
14559 #ifdef __STDC__
14560 # include <limits.h>
14561 #else
14562 # include <assert.h>
14563 #endif
14564
14565 #undef $ac_func
14566
14567 /* Override any gcc2 internal prototype to avoid an error.  */
14568 #ifdef __cplusplus
14569 extern "C"
14570 {
14571 #endif
14572 /* We use char because int might match the return type of a gcc2
14573    builtin and then its argument prototype would still apply.  */
14574 char $ac_func ();
14575 /* The GNU C library defines this for functions which it implements
14576     to always fail with ENOSYS.  Some functions are actually named
14577     something starting with __ and the normal name is an alias.  */
14578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14579 choke me
14580 #else
14581 char (*f) () = $ac_func;
14582 #endif
14583 #ifdef __cplusplus
14584 }
14585 #endif
14586
14587 int
14588 main ()
14589 {
14590 return f != $ac_func;
14591   ;
14592   return 0;
14593 }
14594 _ACEOF
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14597   (eval $ac_link) 2>conftest.er1
14598   ac_status=$?
14599   grep -v '^ *+' conftest.er1 >conftest.err
14600   rm -f conftest.er1
14601   cat conftest.err >&5
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); } &&
14604          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606   (eval $ac_try) 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; } &&
14610          { ac_try='test -s conftest$ac_exeext'
14611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612   (eval $ac_try) 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); }; }; then
14616   eval "$as_ac_var=yes"
14617 else
14618   echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621 eval "$as_ac_var=no"
14622 fi
14623 rm -f conftest.err conftest.$ac_objext \
14624       conftest$ac_exeext conftest.$ac_ext
14625 fi
14626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14628 if test `eval echo '${'$as_ac_var'}'` = yes; then
14629   cat >>confdefs.h <<_ACEOF
14630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14631 _ACEOF
14632
14633 fi
14634 done
14635
14636 echo "$as_me:$LINENO: checking for working mmap" >&5
14637 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14638 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14639   echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641   if test "$cross_compiling" = yes; then
14642   ac_cv_func_mmap_fixed_mapped=no
14643 else
14644   cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h.  */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h.  */
14650 $ac_includes_default
14651 /* malloc might have been renamed as rpl_malloc. */
14652 #undef malloc
14653
14654 /* Thanks to Mike Haertel and Jim Avera for this test.
14655    Here is a matrix of mmap possibilities:
14656         mmap private not fixed
14657         mmap private fixed at somewhere currently unmapped
14658         mmap private fixed at somewhere already mapped
14659         mmap shared not fixed
14660         mmap shared fixed at somewhere currently unmapped
14661         mmap shared fixed at somewhere already mapped
14662    For private mappings, we should verify that changes cannot be read()
14663    back from the file, nor mmap's back from the file at a different
14664    address.  (There have been systems where private was not correctly
14665    implemented like the infamous i386 svr4.0, and systems where the
14666    VM page cache was not coherent with the file system buffer cache
14667    like early versions of FreeBSD and possibly contemporary NetBSD.)
14668    For shared mappings, we should conversely verify that changes get
14669    propagated back to all the places they're supposed to be.
14670
14671    Grep wants private fixed already mapped.
14672    The main things grep needs to know about mmap are:
14673    * does it exist and is it safe to write into the mmap'd area
14674    * how to use it (BSD variants)  */
14675
14676 #include <fcntl.h>
14677 #include <sys/mman.h>
14678
14679 #if !STDC_HEADERS && !HAVE_STDLIB_H
14680 char *malloc ();
14681 #endif
14682
14683 /* This mess was copied from the GNU getpagesize.h.  */
14684 #if !HAVE_GETPAGESIZE
14685 /* Assume that all systems that can run configure have sys/param.h.  */
14686 # if !HAVE_SYS_PARAM_H
14687 #  define HAVE_SYS_PARAM_H 1
14688 # endif
14689
14690 # ifdef _SC_PAGESIZE
14691 #  define getpagesize() sysconf(_SC_PAGESIZE)
14692 # else /* no _SC_PAGESIZE */
14693 #  if HAVE_SYS_PARAM_H
14694 #   include <sys/param.h>
14695 #   ifdef EXEC_PAGESIZE
14696 #    define getpagesize() EXEC_PAGESIZE
14697 #   else /* no EXEC_PAGESIZE */
14698 #    ifdef NBPG
14699 #     define getpagesize() NBPG * CLSIZE
14700 #     ifndef CLSIZE
14701 #      define CLSIZE 1
14702 #     endif /* no CLSIZE */
14703 #    else /* no NBPG */
14704 #     ifdef NBPC
14705 #      define getpagesize() NBPC
14706 #     else /* no NBPC */
14707 #      ifdef PAGESIZE
14708 #       define getpagesize() PAGESIZE
14709 #      endif /* PAGESIZE */
14710 #     endif /* no NBPC */
14711 #    endif /* no NBPG */
14712 #   endif /* no EXEC_PAGESIZE */
14713 #  else /* no HAVE_SYS_PARAM_H */
14714 #   define getpagesize() 8192   /* punt totally */
14715 #  endif /* no HAVE_SYS_PARAM_H */
14716 # endif /* no _SC_PAGESIZE */
14717
14718 #endif /* no HAVE_GETPAGESIZE */
14719
14720 int
14721 main ()
14722 {
14723   char *data, *data2, *data3;
14724   int i, pagesize;
14725   int fd;
14726
14727   pagesize = getpagesize ();
14728
14729   /* First, make a file with some known garbage in it. */
14730   data = (char *) malloc (pagesize);
14731   if (!data)
14732     exit (1);
14733   for (i = 0; i < pagesize; ++i)
14734     *(data + i) = rand ();
14735   umask (0);
14736   fd = creat ("conftest.mmap", 0600);
14737   if (fd < 0)
14738     exit (1);
14739   if (write (fd, data, pagesize) != pagesize)
14740     exit (1);
14741   close (fd);
14742
14743   /* Next, try to mmap the file at a fixed address which already has
14744      something else allocated at it.  If we can, also make sure that
14745      we see the same garbage.  */
14746   fd = open ("conftest.mmap", O_RDWR);
14747   if (fd < 0)
14748     exit (1);
14749   data2 = (char *) malloc (2 * pagesize);
14750   if (!data2)
14751     exit (1);
14752   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14753   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14754                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14755     exit (1);
14756   for (i = 0; i < pagesize; ++i)
14757     if (*(data + i) != *(data2 + i))
14758       exit (1);
14759
14760   /* Finally, make sure that changes to the mapped area do not
14761      percolate back to the file as seen by read().  (This is a bug on
14762      some variants of i386 svr4.0.)  */
14763   for (i = 0; i < pagesize; ++i)
14764     *(data2 + i) = *(data2 + i) + 1;
14765   data3 = (char *) malloc (pagesize);
14766   if (!data3)
14767     exit (1);
14768   if (read (fd, data3, pagesize) != pagesize)
14769     exit (1);
14770   for (i = 0; i < pagesize; ++i)
14771     if (*(data + i) != *(data3 + i))
14772       exit (1);
14773   close (fd);
14774   exit (0);
14775 }
14776 _ACEOF
14777 rm -f conftest$ac_exeext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779   (eval $ac_link) 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784   (eval $ac_try) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788   ac_cv_func_mmap_fixed_mapped=yes
14789 else
14790   echo "$as_me: program exited with status $ac_status" >&5
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14793
14794 ( exit $ac_status )
14795 ac_cv_func_mmap_fixed_mapped=no
14796 fi
14797 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14798 fi
14799 fi
14800 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14801 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14802 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14803
14804 cat >>confdefs.h <<\_ACEOF
14805 #define HAVE_MMAP 1
14806 _ACEOF
14807
14808 fi
14809 rm -f conftest.mmap
14810
14811 echo "$as_me:$LINENO: checking for pid_t" >&5
14812 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14813 if test "${ac_cv_type_pid_t+set}" = set; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h.  */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h.  */
14822 $ac_includes_default
14823 int
14824 main ()
14825 {
14826 if ((pid_t *) 0)
14827   return 0;
14828 if (sizeof (pid_t))
14829   return 0;
14830   ;
14831   return 0;
14832 }
14833 _ACEOF
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836   (eval $ac_compile) 2>conftest.er1
14837   ac_status=$?
14838   grep -v '^ *+' conftest.er1 >conftest.err
14839   rm -f conftest.er1
14840   cat conftest.err >&5
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); } &&
14843          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845   (eval $ac_try) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); }; } &&
14849          { ac_try='test -s conftest.$ac_objext'
14850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851   (eval $ac_try) 2>&5
14852   ac_status=$?
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); }; }; then
14855   ac_cv_type_pid_t=yes
14856 else
14857   echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14859
14860 ac_cv_type_pid_t=no
14861 fi
14862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14863 fi
14864 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14865 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14866 if test $ac_cv_type_pid_t = yes; then
14867   :
14868 else
14869
14870 cat >>confdefs.h <<_ACEOF
14871 #define pid_t int
14872 _ACEOF
14873
14874 fi
14875
14876
14877
14878 for ac_header in unistd.h vfork.h
14879 do
14880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14882   echo "$as_me:$LINENO: checking for $ac_header" >&5
14883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14885   echo $ECHO_N "(cached) $ECHO_C" >&6
14886 fi
14887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14889 else
14890   # Is the header compilable?
14891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h.  */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h.  */
14899 $ac_includes_default
14900 #include <$ac_header>
14901 _ACEOF
14902 rm -f conftest.$ac_objext
14903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14904   (eval $ac_compile) 2>conftest.er1
14905   ac_status=$?
14906   grep -v '^ *+' conftest.er1 >conftest.err
14907   rm -f conftest.er1
14908   cat conftest.err >&5
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); } &&
14911          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; } &&
14917          { ac_try='test -s conftest.$ac_objext'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923   ac_header_compiler=yes
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_header_compiler=no
14929 fi
14930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14932 echo "${ECHO_T}$ac_header_compiler" >&6
14933
14934 # Is the header present?
14935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h.  */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h.  */
14943 #include <$ac_header>
14944 _ACEOF
14945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14947   ac_status=$?
14948   grep -v '^ *+' conftest.er1 >conftest.err
14949   rm -f conftest.er1
14950   cat conftest.err >&5
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); } >/dev/null; then
14953   if test -s conftest.err; then
14954     ac_cpp_err=$ac_c_preproc_warn_flag
14955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14956   else
14957     ac_cpp_err=
14958   fi
14959 else
14960   ac_cpp_err=yes
14961 fi
14962 if test -z "$ac_cpp_err"; then
14963   ac_header_preproc=yes
14964 else
14965   echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14967
14968   ac_header_preproc=no
14969 fi
14970 rm -f conftest.err conftest.$ac_ext
14971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14972 echo "${ECHO_T}$ac_header_preproc" >&6
14973
14974 # So?  What about this header?
14975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14976   yes:no: )
14977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14981     ac_header_preproc=yes
14982     ;;
14983   no:yes:* )
14984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14996     (
14997       cat <<\_ASBOX
14998 ## ------------------------------------------ ##
14999 ## Report this to the AC_PACKAGE_NAME lists.  ##
15000 ## ------------------------------------------ ##
15001 _ASBOX
15002     ) |
15003       sed "s/^/$as_me: WARNING:     /" >&2
15004     ;;
15005 esac
15006 echo "$as_me:$LINENO: checking for $ac_header" >&5
15007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15009   echo $ECHO_N "(cached) $ECHO_C" >&6
15010 else
15011   eval "$as_ac_Header=\$ac_header_preproc"
15012 fi
15013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15015
15016 fi
15017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15018   cat >>confdefs.h <<_ACEOF
15019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15020 _ACEOF
15021
15022 fi
15023
15024 done
15025
15026
15027
15028 for ac_func in fork vfork
15029 do
15030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15031 echo "$as_me:$LINENO: checking for $ac_func" >&5
15032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15033 if eval "test \"\${$as_ac_var+set}\" = set"; then
15034   echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036   cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h.  */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h.  */
15042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15044 #define $ac_func innocuous_$ac_func
15045
15046 /* System header to define __stub macros and hopefully few prototypes,
15047     which can conflict with char $ac_func (); below.
15048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15049     <limits.h> exists even on freestanding compilers.  */
15050
15051 #ifdef __STDC__
15052 # include <limits.h>
15053 #else
15054 # include <assert.h>
15055 #endif
15056
15057 #undef $ac_func
15058
15059 /* Override any gcc2 internal prototype to avoid an error.  */
15060 #ifdef __cplusplus
15061 extern "C"
15062 {
15063 #endif
15064 /* We use char because int might match the return type of a gcc2
15065    builtin and then its argument prototype would still apply.  */
15066 char $ac_func ();
15067 /* The GNU C library defines this for functions which it implements
15068     to always fail with ENOSYS.  Some functions are actually named
15069     something starting with __ and the normal name is an alias.  */
15070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15071 choke me
15072 #else
15073 char (*f) () = $ac_func;
15074 #endif
15075 #ifdef __cplusplus
15076 }
15077 #endif
15078
15079 int
15080 main ()
15081 {
15082 return f != $ac_func;
15083   ;
15084   return 0;
15085 }
15086 _ACEOF
15087 rm -f conftest.$ac_objext conftest$ac_exeext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15089   (eval $ac_link) 2>conftest.er1
15090   ac_status=$?
15091   grep -v '^ *+' conftest.er1 >conftest.err
15092   rm -f conftest.er1
15093   cat conftest.err >&5
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } &&
15096          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098   (eval $ac_try) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; } &&
15102          { ac_try='test -s conftest$ac_exeext'
15103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104   (eval $ac_try) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); }; }; then
15108   eval "$as_ac_var=yes"
15109 else
15110   echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15112
15113 eval "$as_ac_var=no"
15114 fi
15115 rm -f conftest.err conftest.$ac_objext \
15116       conftest$ac_exeext conftest.$ac_ext
15117 fi
15118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15120 if test `eval echo '${'$as_ac_var'}'` = yes; then
15121   cat >>confdefs.h <<_ACEOF
15122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15123 _ACEOF
15124
15125 fi
15126 done
15127
15128 if test "x$ac_cv_func_fork" = xyes; then
15129   echo "$as_me:$LINENO: checking for working fork" >&5
15130 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15131 if test "${ac_cv_func_fork_works+set}" = set; then
15132   echo $ECHO_N "(cached) $ECHO_C" >&6
15133 else
15134   if test "$cross_compiling" = yes; then
15135   ac_cv_func_fork_works=cross
15136 else
15137   cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h.  */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h.  */
15143 $ac_includes_default
15144 int
15145 main ()
15146 {
15147
15148           /* By Ruediger Kuhlmann. */
15149           if (fork() < 0)
15150             exit (1);
15151           exit (0);
15152
15153   ;
15154   return 0;
15155 }
15156 _ACEOF
15157 rm -f conftest$ac_exeext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159   (eval $ac_link) 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164   (eval $ac_try) 2>&5
15165   ac_status=$?
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); }; }; then
15168   ac_cv_func_fork_works=yes
15169 else
15170   echo "$as_me: program exited with status $ac_status" >&5
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15173
15174 ( exit $ac_status )
15175 ac_cv_func_fork_works=no
15176 fi
15177 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15178 fi
15179 fi
15180 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15181 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15182
15183 else
15184   ac_cv_func_fork_works=$ac_cv_func_fork
15185 fi
15186 if test "x$ac_cv_func_fork_works" = xcross; then
15187   case $host in
15188     *-*-amigaos* | *-*-msdosdjgpp*)
15189       # Override, as these systems have only a dummy fork() stub
15190       ac_cv_func_fork_works=no
15191       ;;
15192     *)
15193       ac_cv_func_fork_works=yes
15194       ;;
15195   esac
15196   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15197 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15198 fi
15199 ac_cv_func_vfork_works=$ac_cv_func_vfork
15200 if test "x$ac_cv_func_vfork" = xyes; then
15201   echo "$as_me:$LINENO: checking for working vfork" >&5
15202 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15203 if test "${ac_cv_func_vfork_works+set}" = set; then
15204   echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206   if test "$cross_compiling" = yes; then
15207   ac_cv_func_vfork_works=cross
15208 else
15209   cat >conftest.$ac_ext <<_ACEOF
15210 /* confdefs.h.  */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h.  */
15215 /* Thanks to Paul Eggert for this test.  */
15216 #include <stdio.h>
15217 #include <stdlib.h>
15218 #include <sys/types.h>
15219 #include <sys/stat.h>
15220 #include <sys/wait.h>
15221 #if HAVE_UNISTD_H
15222 # include <unistd.h>
15223 #endif
15224 #if HAVE_VFORK_H
15225 # include <vfork.h>
15226 #endif
15227 /* On some sparc systems, changes by the child to local and incoming
15228    argument registers are propagated back to the parent.  The compiler
15229    is told about this with #include <vfork.h>, but some compilers
15230    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15231    static variable whose address is put into a register that is
15232    clobbered by the vfork.  */
15233 static void
15234 #ifdef __cplusplus
15235 sparc_address_test (int arg)
15236 # else
15237 sparc_address_test (arg) int arg;
15238 #endif
15239 {
15240   static pid_t child;
15241   if (!child) {
15242     child = vfork ();
15243     if (child < 0) {
15244       perror ("vfork");
15245       _exit(2);
15246     }
15247     if (!child) {
15248       arg = getpid();
15249       write(-1, "", 0);
15250       _exit (arg);
15251     }
15252   }
15253 }
15254
15255 int
15256 main ()
15257 {
15258   pid_t parent = getpid ();
15259   pid_t child;
15260
15261   sparc_address_test (0);
15262
15263   child = vfork ();
15264
15265   if (child == 0) {
15266     /* Here is another test for sparc vfork register problems.  This
15267        test uses lots of local variables, at least as many local
15268        variables as main has allocated so far including compiler
15269        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15270        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15271        reuse the register of parent for one of the local variables,
15272        since it will think that parent can't possibly be used any more
15273        in this routine.  Assigning to the local variable will thus
15274        munge parent in the parent process.  */
15275     pid_t
15276       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15277       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15278     /* Convince the compiler that p..p7 are live; otherwise, it might
15279        use the same hardware register for all 8 local variables.  */
15280     if (p != p1 || p != p2 || p != p3 || p != p4
15281         || p != p5 || p != p6 || p != p7)
15282       _exit(1);
15283
15284     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15285        from child file descriptors.  If the child closes a descriptor
15286        before it execs or exits, this munges the parent's descriptor
15287        as well.  Test for this by closing stdout in the child.  */
15288     _exit(close(fileno(stdout)) != 0);
15289   } else {
15290     int status;
15291     struct stat st;
15292
15293     while (wait(&status) != child)
15294       ;
15295     exit(
15296          /* Was there some problem with vforking?  */
15297          child < 0
15298
15299          /* Did the child fail?  (This shouldn't happen.)  */
15300          || status
15301
15302          /* Did the vfork/compiler bug occur?  */
15303          || parent != getpid()
15304
15305          /* Did the file descriptor bug occur?  */
15306          || fstat(fileno(stdout), &st) != 0
15307          );
15308   }
15309 }
15310 _ACEOF
15311 rm -f conftest$ac_exeext
15312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15313   (eval $ac_link) 2>&5
15314   ac_status=$?
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318   (eval $ac_try) 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }; }; then
15322   ac_cv_func_vfork_works=yes
15323 else
15324   echo "$as_me: program exited with status $ac_status" >&5
15325 echo "$as_me: failed program was:" >&5
15326 sed 's/^/| /' conftest.$ac_ext >&5
15327
15328 ( exit $ac_status )
15329 ac_cv_func_vfork_works=no
15330 fi
15331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15332 fi
15333 fi
15334 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15335 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15336
15337 fi;
15338 if test "x$ac_cv_func_fork_works" = xcross; then
15339   ac_cv_func_vfork_works=$ac_cv_func_vfork
15340   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15341 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15342 fi
15343
15344 if test "x$ac_cv_func_vfork_works" = xyes; then
15345
15346 cat >>confdefs.h <<\_ACEOF
15347 #define HAVE_WORKING_VFORK 1
15348 _ACEOF
15349
15350 else
15351
15352 cat >>confdefs.h <<\_ACEOF
15353 #define vfork fork
15354 _ACEOF
15355
15356 fi
15357 if test "x$ac_cv_func_fork_works" = xyes; then
15358
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_WORKING_FORK 1
15361 _ACEOF
15362
15363 fi
15364
15365
15366
15367 for ac_func in canonicalize_file_name realpath
15368 do
15369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15370 echo "$as_me:$LINENO: checking for $ac_func" >&5
15371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15372 if eval "test \"\${$as_ac_var+set}\" = set"; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15383 #define $ac_func innocuous_$ac_func
15384
15385 /* System header to define __stub macros and hopefully few prototypes,
15386     which can conflict with char $ac_func (); below.
15387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15388     <limits.h> exists even on freestanding compilers.  */
15389
15390 #ifdef __STDC__
15391 # include <limits.h>
15392 #else
15393 # include <assert.h>
15394 #endif
15395
15396 #undef $ac_func
15397
15398 /* Override any gcc2 internal prototype to avoid an error.  */
15399 #ifdef __cplusplus
15400 extern "C"
15401 {
15402 #endif
15403 /* We use char because int might match the return type of a gcc2
15404    builtin and then its argument prototype would still apply.  */
15405 char $ac_func ();
15406 /* The GNU C library defines this for functions which it implements
15407     to always fail with ENOSYS.  Some functions are actually named
15408     something starting with __ and the normal name is an alias.  */
15409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15410 choke me
15411 #else
15412 char (*f) () = $ac_func;
15413 #endif
15414 #ifdef __cplusplus
15415 }
15416 #endif
15417
15418 int
15419 main ()
15420 {
15421 return f != $ac_func;
15422   ;
15423   return 0;
15424 }
15425 _ACEOF
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428   (eval $ac_link) 2>conftest.er1
15429   ac_status=$?
15430   grep -v '^ *+' conftest.er1 >conftest.err
15431   rm -f conftest.er1
15432   cat conftest.err >&5
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); } &&
15435          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437   (eval $ac_try) 2>&5
15438   ac_status=$?
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); }; } &&
15441          { ac_try='test -s conftest$ac_exeext'
15442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443   (eval $ac_try) 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); }; }; then
15447   eval "$as_ac_var=yes"
15448 else
15449   echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 eval "$as_ac_var=no"
15453 fi
15454 rm -f conftest.err conftest.$ac_objext \
15455       conftest$ac_exeext conftest.$ac_ext
15456 fi
15457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15459 if test `eval echo '${'$as_ac_var'}'` = yes; then
15460   cat >>confdefs.h <<_ACEOF
15461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15462 _ACEOF
15463
15464 fi
15465 done
15466
15467
15468
15469 for ac_func in getuid getgid
15470 do
15471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15472 echo "$as_me:$LINENO: checking for $ac_func" >&5
15473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15474 if eval "test \"\${$as_ac_var+set}\" = set"; then
15475   echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477   cat >conftest.$ac_ext <<_ACEOF
15478 /* confdefs.h.  */
15479 _ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h.  */
15483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15485 #define $ac_func innocuous_$ac_func
15486
15487 /* System header to define __stub macros and hopefully few prototypes,
15488     which can conflict with char $ac_func (); below.
15489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15490     <limits.h> exists even on freestanding compilers.  */
15491
15492 #ifdef __STDC__
15493 # include <limits.h>
15494 #else
15495 # include <assert.h>
15496 #endif
15497
15498 #undef $ac_func
15499
15500 /* Override any gcc2 internal prototype to avoid an error.  */
15501 #ifdef __cplusplus
15502 extern "C"
15503 {
15504 #endif
15505 /* We use char because int might match the return type of a gcc2
15506    builtin and then its argument prototype would still apply.  */
15507 char $ac_func ();
15508 /* The GNU C library defines this for functions which it implements
15509     to always fail with ENOSYS.  Some functions are actually named
15510     something starting with __ and the normal name is an alias.  */
15511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15512 choke me
15513 #else
15514 char (*f) () = $ac_func;
15515 #endif
15516 #ifdef __cplusplus
15517 }
15518 #endif
15519
15520 int
15521 main ()
15522 {
15523 return f != $ac_func;
15524   ;
15525   return 0;
15526 }
15527 _ACEOF
15528 rm -f conftest.$ac_objext conftest$ac_exeext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15530   (eval $ac_link) 2>conftest.er1
15531   ac_status=$?
15532   grep -v '^ *+' conftest.er1 >conftest.err
15533   rm -f conftest.er1
15534   cat conftest.err >&5
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); } &&
15537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539   (eval $ac_try) 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); }; } &&
15543          { ac_try='test -s conftest$ac_exeext'
15544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545   (eval $ac_try) 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); }; }; then
15549   eval "$as_ac_var=yes"
15550 else
15551   echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554 eval "$as_ac_var=no"
15555 fi
15556 rm -f conftest.err conftest.$ac_objext \
15557       conftest$ac_exeext conftest.$ac_ext
15558 fi
15559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15561 if test `eval echo '${'$as_ac_var'}'` = yes; then
15562   cat >>confdefs.h <<_ACEOF
15563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15564 _ACEOF
15565
15566 fi
15567 done
15568
15569
15570 for ac_func in poll
15571 do
15572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15573 echo "$as_me:$LINENO: checking for $ac_func" >&5
15574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15575 if eval "test \"\${$as_ac_var+set}\" = set"; then
15576   echo $ECHO_N "(cached) $ECHO_C" >&6
15577 else
15578   cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h.  */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h.  */
15584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15586 #define $ac_func innocuous_$ac_func
15587
15588 /* System header to define __stub macros and hopefully few prototypes,
15589     which can conflict with char $ac_func (); below.
15590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15591     <limits.h> exists even on freestanding compilers.  */
15592
15593 #ifdef __STDC__
15594 # include <limits.h>
15595 #else
15596 # include <assert.h>
15597 #endif
15598
15599 #undef $ac_func
15600
15601 /* Override any gcc2 internal prototype to avoid an error.  */
15602 #ifdef __cplusplus
15603 extern "C"
15604 {
15605 #endif
15606 /* We use char because int might match the return type of a gcc2
15607    builtin and then its argument prototype would still apply.  */
15608 char $ac_func ();
15609 /* The GNU C library defines this for functions which it implements
15610     to always fail with ENOSYS.  Some functions are actually named
15611     something starting with __ and the normal name is an alias.  */
15612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15613 choke me
15614 #else
15615 char (*f) () = $ac_func;
15616 #endif
15617 #ifdef __cplusplus
15618 }
15619 #endif
15620
15621 int
15622 main ()
15623 {
15624 return f != $ac_func;
15625   ;
15626   return 0;
15627 }
15628 _ACEOF
15629 rm -f conftest.$ac_objext conftest$ac_exeext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15631   (eval $ac_link) 2>conftest.er1
15632   ac_status=$?
15633   grep -v '^ *+' conftest.er1 >conftest.err
15634   rm -f conftest.er1
15635   cat conftest.err >&5
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); } &&
15638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640   (eval $ac_try) 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); }; } &&
15644          { ac_try='test -s conftest$ac_exeext'
15645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646   (eval $ac_try) 2>&5
15647   ac_status=$?
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); }; }; then
15650   eval "$as_ac_var=yes"
15651 else
15652   echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655 eval "$as_ac_var=no"
15656 fi
15657 rm -f conftest.err conftest.$ac_objext \
15658       conftest$ac_exeext conftest.$ac_ext
15659 fi
15660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15662 if test `eval echo '${'$as_ac_var'}'` = yes; then
15663   cat >>confdefs.h <<_ACEOF
15664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15665 _ACEOF
15666
15667 fi
15668 done
15669
15670
15671 for ac_func in pread64
15672 do
15673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15674 echo "$as_me:$LINENO: checking for $ac_func" >&5
15675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15676 if eval "test \"\${$as_ac_var+set}\" = set"; then
15677   echo $ECHO_N "(cached) $ECHO_C" >&6
15678 else
15679   cat >conftest.$ac_ext <<_ACEOF
15680 /* confdefs.h.  */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h.  */
15685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15687 #define $ac_func innocuous_$ac_func
15688
15689 /* System header to define __stub macros and hopefully few prototypes,
15690     which can conflict with char $ac_func (); below.
15691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15692     <limits.h> exists even on freestanding compilers.  */
15693
15694 #ifdef __STDC__
15695 # include <limits.h>
15696 #else
15697 # include <assert.h>
15698 #endif
15699
15700 #undef $ac_func
15701
15702 /* Override any gcc2 internal prototype to avoid an error.  */
15703 #ifdef __cplusplus
15704 extern "C"
15705 {
15706 #endif
15707 /* We use char because int might match the return type of a gcc2
15708    builtin and then its argument prototype would still apply.  */
15709 char $ac_func ();
15710 /* The GNU C library defines this for functions which it implements
15711     to always fail with ENOSYS.  Some functions are actually named
15712     something starting with __ and the normal name is an alias.  */
15713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15714 choke me
15715 #else
15716 char (*f) () = $ac_func;
15717 #endif
15718 #ifdef __cplusplus
15719 }
15720 #endif
15721
15722 int
15723 main ()
15724 {
15725 return f != $ac_func;
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15732   (eval $ac_link) 2>conftest.er1
15733   ac_status=$?
15734   grep -v '^ *+' conftest.er1 >conftest.err
15735   rm -f conftest.er1
15736   cat conftest.err >&5
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } &&
15739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741   (eval $ac_try) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; } &&
15745          { ac_try='test -s conftest$ac_exeext'
15746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747   (eval $ac_try) 2>&5
15748   ac_status=$?
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); }; }; then
15751   eval "$as_ac_var=yes"
15752 else
15753   echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15755
15756 eval "$as_ac_var=no"
15757 fi
15758 rm -f conftest.err conftest.$ac_objext \
15759       conftest$ac_exeext conftest.$ac_ext
15760 fi
15761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15763 if test `eval echo '${'$as_ac_var'}'` = yes; then
15764   cat >>confdefs.h <<_ACEOF
15765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15766 _ACEOF
15767
15768 fi
15769 done
15770
15771
15772 for ac_func in sbrk
15773 do
15774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15775 echo "$as_me:$LINENO: checking for $ac_func" >&5
15776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15777 if eval "test \"\${$as_ac_var+set}\" = set"; then
15778   echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780   cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h.  */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h.  */
15786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15788 #define $ac_func innocuous_$ac_func
15789
15790 /* System header to define __stub macros and hopefully few prototypes,
15791     which can conflict with char $ac_func (); below.
15792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15793     <limits.h> exists even on freestanding compilers.  */
15794
15795 #ifdef __STDC__
15796 # include <limits.h>
15797 #else
15798 # include <assert.h>
15799 #endif
15800
15801 #undef $ac_func
15802
15803 /* Override any gcc2 internal prototype to avoid an error.  */
15804 #ifdef __cplusplus
15805 extern "C"
15806 {
15807 #endif
15808 /* We use char because int might match the return type of a gcc2
15809    builtin and then its argument prototype would still apply.  */
15810 char $ac_func ();
15811 /* The GNU C library defines this for functions which it implements
15812     to always fail with ENOSYS.  Some functions are actually named
15813     something starting with __ and the normal name is an alias.  */
15814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15815 choke me
15816 #else
15817 char (*f) () = $ac_func;
15818 #endif
15819 #ifdef __cplusplus
15820 }
15821 #endif
15822
15823 int
15824 main ()
15825 {
15826 return f != $ac_func;
15827   ;
15828   return 0;
15829 }
15830 _ACEOF
15831 rm -f conftest.$ac_objext conftest$ac_exeext
15832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15833   (eval $ac_link) 2>conftest.er1
15834   ac_status=$?
15835   grep -v '^ *+' conftest.er1 >conftest.err
15836   rm -f conftest.er1
15837   cat conftest.err >&5
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); } &&
15840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842   (eval $ac_try) 2>&5
15843   ac_status=$?
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); }; } &&
15846          { ac_try='test -s conftest$ac_exeext'
15847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848   (eval $ac_try) 2>&5
15849   ac_status=$?
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); }; }; then
15852   eval "$as_ac_var=yes"
15853 else
15854   echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15856
15857 eval "$as_ac_var=no"
15858 fi
15859 rm -f conftest.err conftest.$ac_objext \
15860       conftest$ac_exeext conftest.$ac_ext
15861 fi
15862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15864 if test `eval echo '${'$as_ac_var'}'` = yes; then
15865   cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15867 _ACEOF
15868
15869 fi
15870 done
15871
15872
15873
15874 for ac_func in setpgid setpgrp
15875 do
15876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15877 echo "$as_me:$LINENO: checking for $ac_func" >&5
15878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15879 if eval "test \"\${$as_ac_var+set}\" = set"; then
15880   echo $ECHO_N "(cached) $ECHO_C" >&6
15881 else
15882   cat >conftest.$ac_ext <<_ACEOF
15883 /* confdefs.h.  */
15884 _ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h.  */
15888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15890 #define $ac_func innocuous_$ac_func
15891
15892 /* System header to define __stub macros and hopefully few prototypes,
15893     which can conflict with char $ac_func (); below.
15894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15895     <limits.h> exists even on freestanding compilers.  */
15896
15897 #ifdef __STDC__
15898 # include <limits.h>
15899 #else
15900 # include <assert.h>
15901 #endif
15902
15903 #undef $ac_func
15904
15905 /* Override any gcc2 internal prototype to avoid an error.  */
15906 #ifdef __cplusplus
15907 extern "C"
15908 {
15909 #endif
15910 /* We use char because int might match the return type of a gcc2
15911    builtin and then its argument prototype would still apply.  */
15912 char $ac_func ();
15913 /* The GNU C library defines this for functions which it implements
15914     to always fail with ENOSYS.  Some functions are actually named
15915     something starting with __ and the normal name is an alias.  */
15916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15917 choke me
15918 #else
15919 char (*f) () = $ac_func;
15920 #endif
15921 #ifdef __cplusplus
15922 }
15923 #endif
15924
15925 int
15926 main ()
15927 {
15928 return f != $ac_func;
15929   ;
15930   return 0;
15931 }
15932 _ACEOF
15933 rm -f conftest.$ac_objext conftest$ac_exeext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935   (eval $ac_link) 2>conftest.er1
15936   ac_status=$?
15937   grep -v '^ *+' conftest.er1 >conftest.err
15938   rm -f conftest.er1
15939   cat conftest.err >&5
15940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941   (exit $ac_status); } &&
15942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944   (eval $ac_try) 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; } &&
15948          { ac_try='test -s conftest$ac_exeext'
15949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950   (eval $ac_try) 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); }; }; then
15954   eval "$as_ac_var=yes"
15955 else
15956   echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15958
15959 eval "$as_ac_var=no"
15960 fi
15961 rm -f conftest.err conftest.$ac_objext \
15962       conftest$ac_exeext conftest.$ac_ext
15963 fi
15964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15966 if test `eval echo '${'$as_ac_var'}'` = yes; then
15967   cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15969 _ACEOF
15970
15971 fi
15972 done
15973
15974
15975
15976
15977 for ac_func in sigaction sigprocmask sigsetmask
15978 do
15979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15980 echo "$as_me:$LINENO: checking for $ac_func" >&5
15981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15982 if eval "test \"\${$as_ac_var+set}\" = set"; then
15983   echo $ECHO_N "(cached) $ECHO_C" >&6
15984 else
15985   cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h.  */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h.  */
15991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15993 #define $ac_func innocuous_$ac_func
15994
15995 /* System header to define __stub macros and hopefully few prototypes,
15996     which can conflict with char $ac_func (); below.
15997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15998     <limits.h> exists even on freestanding compilers.  */
15999
16000 #ifdef __STDC__
16001 # include <limits.h>
16002 #else
16003 # include <assert.h>
16004 #endif
16005
16006 #undef $ac_func
16007
16008 /* Override any gcc2 internal prototype to avoid an error.  */
16009 #ifdef __cplusplus
16010 extern "C"
16011 {
16012 #endif
16013 /* We use char because int might match the return type of a gcc2
16014    builtin and then its argument prototype would still apply.  */
16015 char $ac_func ();
16016 /* The GNU C library defines this for functions which it implements
16017     to always fail with ENOSYS.  Some functions are actually named
16018     something starting with __ and the normal name is an alias.  */
16019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16020 choke me
16021 #else
16022 char (*f) () = $ac_func;
16023 #endif
16024 #ifdef __cplusplus
16025 }
16026 #endif
16027
16028 int
16029 main ()
16030 {
16031 return f != $ac_func;
16032   ;
16033   return 0;
16034 }
16035 _ACEOF
16036 rm -f conftest.$ac_objext conftest$ac_exeext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038   (eval $ac_link) 2>conftest.er1
16039   ac_status=$?
16040   grep -v '^ *+' conftest.er1 >conftest.err
16041   rm -f conftest.er1
16042   cat conftest.err >&5
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); } &&
16045          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047   (eval $ac_try) 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); }; } &&
16051          { ac_try='test -s conftest$ac_exeext'
16052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053   (eval $ac_try) 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; }; then
16057   eval "$as_ac_var=yes"
16058 else
16059   echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 eval "$as_ac_var=no"
16063 fi
16064 rm -f conftest.err conftest.$ac_objext \
16065       conftest$ac_exeext conftest.$ac_ext
16066 fi
16067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16069 if test `eval echo '${'$as_ac_var'}'` = yes; then
16070   cat >>confdefs.h <<_ACEOF
16071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16072 _ACEOF
16073
16074 fi
16075 done
16076
16077
16078 for ac_func in socketpair
16079 do
16080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16081 echo "$as_me:$LINENO: checking for $ac_func" >&5
16082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16083 if eval "test \"\${$as_ac_var+set}\" = set"; then
16084   echo $ECHO_N "(cached) $ECHO_C" >&6
16085 else
16086   cat >conftest.$ac_ext <<_ACEOF
16087 /* confdefs.h.  */
16088 _ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h.  */
16092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16094 #define $ac_func innocuous_$ac_func
16095
16096 /* System header to define __stub macros and hopefully few prototypes,
16097     which can conflict with char $ac_func (); below.
16098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16099     <limits.h> exists even on freestanding compilers.  */
16100
16101 #ifdef __STDC__
16102 # include <limits.h>
16103 #else
16104 # include <assert.h>
16105 #endif
16106
16107 #undef $ac_func
16108
16109 /* Override any gcc2 internal prototype to avoid an error.  */
16110 #ifdef __cplusplus
16111 extern "C"
16112 {
16113 #endif
16114 /* We use char because int might match the return type of a gcc2
16115    builtin and then its argument prototype would still apply.  */
16116 char $ac_func ();
16117 /* The GNU C library defines this for functions which it implements
16118     to always fail with ENOSYS.  Some functions are actually named
16119     something starting with __ and the normal name is an alias.  */
16120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16121 choke me
16122 #else
16123 char (*f) () = $ac_func;
16124 #endif
16125 #ifdef __cplusplus
16126 }
16127 #endif
16128
16129 int
16130 main ()
16131 {
16132 return f != $ac_func;
16133   ;
16134   return 0;
16135 }
16136 _ACEOF
16137 rm -f conftest.$ac_objext conftest$ac_exeext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16139   (eval $ac_link) 2>conftest.er1
16140   ac_status=$?
16141   grep -v '^ *+' conftest.er1 >conftest.err
16142   rm -f conftest.er1
16143   cat conftest.err >&5
16144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145   (exit $ac_status); } &&
16146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148   (eval $ac_try) 2>&5
16149   ac_status=$?
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); }; } &&
16152          { ac_try='test -s conftest$ac_exeext'
16153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154   (eval $ac_try) 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); }; }; then
16158   eval "$as_ac_var=yes"
16159 else
16160   echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 eval "$as_ac_var=no"
16164 fi
16165 rm -f conftest.err conftest.$ac_objext \
16166       conftest$ac_exeext conftest.$ac_ext
16167 fi
16168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16170 if test `eval echo '${'$as_ac_var'}'` = yes; then
16171   cat >>confdefs.h <<_ACEOF
16172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16173 _ACEOF
16174
16175 fi
16176 done
16177
16178
16179 for ac_func in syscall
16180 do
16181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16182 echo "$as_me:$LINENO: checking for $ac_func" >&5
16183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16184 if eval "test \"\${$as_ac_var+set}\" = set"; then
16185   echo $ECHO_N "(cached) $ECHO_C" >&6
16186 else
16187   cat >conftest.$ac_ext <<_ACEOF
16188 /* confdefs.h.  */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h.  */
16193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16195 #define $ac_func innocuous_$ac_func
16196
16197 /* System header to define __stub macros and hopefully few prototypes,
16198     which can conflict with char $ac_func (); below.
16199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16200     <limits.h> exists even on freestanding compilers.  */
16201
16202 #ifdef __STDC__
16203 # include <limits.h>
16204 #else
16205 # include <assert.h>
16206 #endif
16207
16208 #undef $ac_func
16209
16210 /* Override any gcc2 internal prototype to avoid an error.  */
16211 #ifdef __cplusplus
16212 extern "C"
16213 {
16214 #endif
16215 /* We use char because int might match the return type of a gcc2
16216    builtin and then its argument prototype would still apply.  */
16217 char $ac_func ();
16218 /* The GNU C library defines this for functions which it implements
16219     to always fail with ENOSYS.  Some functions are actually named
16220     something starting with __ and the normal name is an alias.  */
16221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16222 choke me
16223 #else
16224 char (*f) () = $ac_func;
16225 #endif
16226 #ifdef __cplusplus
16227 }
16228 #endif
16229
16230 int
16231 main ()
16232 {
16233 return f != $ac_func;
16234   ;
16235   return 0;
16236 }
16237 _ACEOF
16238 rm -f conftest.$ac_objext conftest$ac_exeext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240   (eval $ac_link) 2>conftest.er1
16241   ac_status=$?
16242   grep -v '^ *+' conftest.er1 >conftest.err
16243   rm -f conftest.er1
16244   cat conftest.err >&5
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); } &&
16247          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249   (eval $ac_try) 2>&5
16250   ac_status=$?
16251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252   (exit $ac_status); }; } &&
16253          { ac_try='test -s conftest$ac_exeext'
16254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255   (eval $ac_try) 2>&5
16256   ac_status=$?
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); }; }; then
16259   eval "$as_ac_var=yes"
16260 else
16261   echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16263
16264 eval "$as_ac_var=no"
16265 fi
16266 rm -f conftest.err conftest.$ac_objext \
16267       conftest$ac_exeext conftest.$ac_ext
16268 fi
16269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16271 if test `eval echo '${'$as_ac_var'}'` = yes; then
16272   cat >>confdefs.h <<_ACEOF
16273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16274 _ACEOF
16275
16276 fi
16277 done
16278
16279
16280 for ac_func in ttrace
16281 do
16282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16283 echo "$as_me:$LINENO: checking for $ac_func" >&5
16284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16285 if eval "test \"\${$as_ac_var+set}\" = set"; then
16286   echo $ECHO_N "(cached) $ECHO_C" >&6
16287 else
16288   cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16296 #define $ac_func innocuous_$ac_func
16297
16298 /* System header to define __stub macros and hopefully few prototypes,
16299     which can conflict with char $ac_func (); below.
16300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16301     <limits.h> exists even on freestanding compilers.  */
16302
16303 #ifdef __STDC__
16304 # include <limits.h>
16305 #else
16306 # include <assert.h>
16307 #endif
16308
16309 #undef $ac_func
16310
16311 /* Override any gcc2 internal prototype to avoid an error.  */
16312 #ifdef __cplusplus
16313 extern "C"
16314 {
16315 #endif
16316 /* We use char because int might match the return type of a gcc2
16317    builtin and then its argument prototype would still apply.  */
16318 char $ac_func ();
16319 /* The GNU C library defines this for functions which it implements
16320     to always fail with ENOSYS.  Some functions are actually named
16321     something starting with __ and the normal name is an alias.  */
16322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16323 choke me
16324 #else
16325 char (*f) () = $ac_func;
16326 #endif
16327 #ifdef __cplusplus
16328 }
16329 #endif
16330
16331 int
16332 main ()
16333 {
16334 return f != $ac_func;
16335   ;
16336   return 0;
16337 }
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341   (eval $ac_link) 2>conftest.er1
16342   ac_status=$?
16343   grep -v '^ *+' conftest.er1 >conftest.err
16344   rm -f conftest.er1
16345   cat conftest.err >&5
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); } &&
16348          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350   (eval $ac_try) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; } &&
16354          { ac_try='test -s conftest$ac_exeext'
16355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356   (eval $ac_try) 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; }; then
16360   eval "$as_ac_var=yes"
16361 else
16362   echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16364
16365 eval "$as_ac_var=no"
16366 fi
16367 rm -f conftest.err conftest.$ac_objext \
16368       conftest$ac_exeext conftest.$ac_ext
16369 fi
16370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16372 if test `eval echo '${'$as_ac_var'}'` = yes; then
16373   cat >>confdefs.h <<_ACEOF
16374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16375 _ACEOF
16376
16377 fi
16378 done
16379
16380
16381 for ac_func in wborder
16382 do
16383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16384 echo "$as_me:$LINENO: checking for $ac_func" >&5
16385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16386 if eval "test \"\${$as_ac_var+set}\" = set"; then
16387   echo $ECHO_N "(cached) $ECHO_C" >&6
16388 else
16389   cat >conftest.$ac_ext <<_ACEOF
16390 /* confdefs.h.  */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h.  */
16395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16397 #define $ac_func innocuous_$ac_func
16398
16399 /* System header to define __stub macros and hopefully few prototypes,
16400     which can conflict with char $ac_func (); below.
16401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16402     <limits.h> exists even on freestanding compilers.  */
16403
16404 #ifdef __STDC__
16405 # include <limits.h>
16406 #else
16407 # include <assert.h>
16408 #endif
16409
16410 #undef $ac_func
16411
16412 /* Override any gcc2 internal prototype to avoid an error.  */
16413 #ifdef __cplusplus
16414 extern "C"
16415 {
16416 #endif
16417 /* We use char because int might match the return type of a gcc2
16418    builtin and then its argument prototype would still apply.  */
16419 char $ac_func ();
16420 /* The GNU C library defines this for functions which it implements
16421     to always fail with ENOSYS.  Some functions are actually named
16422     something starting with __ and the normal name is an alias.  */
16423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16424 choke me
16425 #else
16426 char (*f) () = $ac_func;
16427 #endif
16428 #ifdef __cplusplus
16429 }
16430 #endif
16431
16432 int
16433 main ()
16434 {
16435 return f != $ac_func;
16436   ;
16437   return 0;
16438 }
16439 _ACEOF
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16442   (eval $ac_link) 2>conftest.er1
16443   ac_status=$?
16444   grep -v '^ *+' conftest.er1 >conftest.err
16445   rm -f conftest.er1
16446   cat conftest.err >&5
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); } &&
16449          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451   (eval $ac_try) 2>&5
16452   ac_status=$?
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); }; } &&
16455          { ac_try='test -s conftest$ac_exeext'
16456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457   (eval $ac_try) 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); }; }; then
16461   eval "$as_ac_var=yes"
16462 else
16463   echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466 eval "$as_ac_var=no"
16467 fi
16468 rm -f conftest.err conftest.$ac_objext \
16469       conftest$ac_exeext conftest.$ac_ext
16470 fi
16471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16473 if test `eval echo '${'$as_ac_var'}'` = yes; then
16474   cat >>confdefs.h <<_ACEOF
16475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16476 _ACEOF
16477
16478 fi
16479 done
16480
16481
16482 # Check the return and argument types of ptrace.  No canned test for
16483 # this, so roll our own.
16484 gdb_ptrace_headers='
16485 #if HAVE_SYS_TYPES_H
16486 # include <sys/types.h>
16487 #endif
16488 #if HAVE_SYS_PTRACE_H
16489 # include <sys/ptrace.h>
16490 #endif
16491 #if HAVE_UNISTD_H
16492 # include <unistd.h>
16493 #endif
16494 '
16495 # There is no point in checking if we don't have a prototype.
16496 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16497 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16498 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16499   echo $ECHO_N "(cached) $ECHO_C" >&6
16500 else
16501   cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h.  */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h.  */
16507 $gdb_ptrace_headers
16508
16509 int
16510 main ()
16511 {
16512 #ifndef ptrace
16513   char *p = (char *) ptrace;
16514 #endif
16515
16516   ;
16517   return 0;
16518 }
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522   (eval $ac_compile) 2>conftest.er1
16523   ac_status=$?
16524   grep -v '^ *+' conftest.er1 >conftest.err
16525   rm -f conftest.er1
16526   cat conftest.err >&5
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } &&
16529          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531   (eval $ac_try) 2>&5
16532   ac_status=$?
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); }; } &&
16535          { ac_try='test -s conftest.$ac_objext'
16536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537   (eval $ac_try) 2>&5
16538   ac_status=$?
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); }; }; then
16541   ac_cv_have_decl_ptrace=yes
16542 else
16543   echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546 ac_cv_have_decl_ptrace=no
16547 fi
16548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16549 fi
16550 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16551 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16552 if test $ac_cv_have_decl_ptrace = yes; then
16553
16554 cat >>confdefs.h <<_ACEOF
16555 #define HAVE_DECL_PTRACE 1
16556 _ACEOF
16557
16558
16559 else
16560   cat >>confdefs.h <<_ACEOF
16561 #define HAVE_DECL_PTRACE 0
16562 _ACEOF
16563
16564
16565   : ${gdb_cv_func_ptrace_ret='int'}
16566   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16567
16568 fi
16569
16570
16571 # Check return type.
16572 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16573 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16574 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16575   echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577   cat >conftest.$ac_ext <<_ACEOF
16578 /* confdefs.h.  */
16579 _ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h.  */
16583 $gdb_ptrace_headers
16584 int
16585 main ()
16586 {
16587 extern int ptrace ();
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16594   (eval $ac_compile) 2>conftest.er1
16595   ac_status=$?
16596   grep -v '^ *+' conftest.er1 >conftest.err
16597   rm -f conftest.er1
16598   cat conftest.err >&5
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); } &&
16601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603   (eval $ac_try) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; } &&
16607          { ac_try='test -s conftest.$ac_objext'
16608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609   (eval $ac_try) 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; }; then
16613   gdb_cv_func_ptrace_ret='int'
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 gdb_cv_func_ptrace_ret='long'
16619 fi
16620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16621 fi
16622 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16623 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16624
16625 cat >>confdefs.h <<_ACEOF
16626 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16627 _ACEOF
16628
16629 # Check argument types.
16630 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16631 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16632 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16633   echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635
16636 for gdb_arg1 in 'int' 'long'; do
16637  for gdb_arg2 in 'pid_t' 'int' 'long'; do
16638   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16639    for gdb_arg4 in 'int' 'long'; do
16640      cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646 $gdb_ptrace_headers
16647 int
16648 main ()
16649 {
16650
16651 extern $gdb_cv_func_ptrace_ret
16652   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16653
16654   ;
16655   return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660   (eval $ac_compile) 2>conftest.er1
16661   ac_status=$?
16662   grep -v '^ *+' conftest.er1 >conftest.err
16663   rm -f conftest.er1
16664   cat conftest.err >&5
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); } &&
16667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669   (eval $ac_try) 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); }; } &&
16673          { ac_try='test -s conftest.$ac_objext'
16674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675   (eval $ac_try) 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; }; then
16679   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16680     break 4;
16681 else
16682   echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16684
16685 fi
16686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16687     for gdb_arg5 in 'int *' 'int' 'long'; do
16688      cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h.  */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h.  */
16694 $gdb_ptrace_headers
16695 int
16696 main ()
16697 {
16698
16699 extern $gdb_cv_func_ptrace_ret
16700   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16701
16702   ;
16703   return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext
16707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16708   (eval $ac_compile) 2>conftest.er1
16709   ac_status=$?
16710   grep -v '^ *+' conftest.er1 >conftest.err
16711   rm -f conftest.er1
16712   cat conftest.err >&5
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); } &&
16715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717   (eval $ac_try) 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; } &&
16721          { ac_try='test -s conftest.$ac_objext'
16722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723   (eval $ac_try) 2>&5
16724   ac_status=$?
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); }; }; then
16727
16728 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16729     break 5;
16730 else
16731   echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734 fi
16735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16736     done
16737    done
16738   done
16739  done
16740 done
16741 # Provide a safe default value.
16742 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16743
16744 fi
16745 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16746 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16747 ac_save_IFS=$IFS; IFS=','
16748 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16749 IFS=$ac_save_IFS
16750 shift
16751
16752 cat >>confdefs.h <<_ACEOF
16753 #define PTRACE_TYPE_ARG3 $3
16754 _ACEOF
16755
16756 if test -n "$5"; then
16757
16758 cat >>confdefs.h <<_ACEOF
16759 #define PTRACE_TYPE_ARG5 $5
16760 _ACEOF
16761
16762 fi
16763
16764 if test "$cross_compiling" = no; then
16765   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16766 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16767 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16768   echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770   if test "$cross_compiling" = yes; then
16771   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16772 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16773    { (exit 1); exit 1; }; }
16774 else
16775   cat >conftest.$ac_ext <<_ACEOF
16776 /* confdefs.h.  */
16777 _ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h.  */
16781 #if HAVE_UNISTD_H
16782 # include <unistd.h>
16783 #endif
16784
16785 int
16786 main ()
16787 {
16788 /* If this system has a BSD-style setpgrp which takes arguments,
16789   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16790   exit successfully. */
16791   exit (setpgrp (1,1) == -1 ? 0 : 1);
16792   ;
16793   return 0;
16794 }
16795 _ACEOF
16796 rm -f conftest$ac_exeext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798   (eval $ac_link) 2>&5
16799   ac_status=$?
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803   (eval $ac_try) 2>&5
16804   ac_status=$?
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); }; }; then
16807   ac_cv_func_setpgrp_void=no
16808 else
16809   echo "$as_me: program exited with status $ac_status" >&5
16810 echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16812
16813 ( exit $ac_status )
16814 ac_cv_func_setpgrp_void=yes
16815 fi
16816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16817 fi
16818 fi
16819 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16820 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16821 if test $ac_cv_func_setpgrp_void = yes; then
16822
16823 cat >>confdefs.h <<\_ACEOF
16824 #define SETPGRP_VOID 1
16825 _ACEOF
16826
16827 fi
16828
16829 else
16830   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16831 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16832 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16833   echo $ECHO_N "(cached) $ECHO_C" >&6
16834 else
16835   cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h.  */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h.  */
16841
16842 #include <unistd.h>
16843
16844 int
16845 main ()
16846 {
16847
16848   if (setpgrp(1,1) == -1)
16849     exit (0);
16850   else
16851     exit (1);
16852
16853   ;
16854   return 0;
16855 }
16856 _ACEOF
16857 rm -f conftest.$ac_objext
16858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16859   (eval $ac_compile) 2>conftest.er1
16860   ac_status=$?
16861   grep -v '^ *+' conftest.er1 >conftest.err
16862   rm -f conftest.er1
16863   cat conftest.err >&5
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); } &&
16866          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868   (eval $ac_try) 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; } &&
16872          { ac_try='test -s conftest.$ac_objext'
16873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874   (eval $ac_try) 2>&5
16875   ac_status=$?
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); }; }; then
16878   ac_cv_func_setpgrp_void=no
16879 else
16880   echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16882
16883 ac_cv_func_setpgrp_void=yes
16884 fi
16885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16886 fi
16887 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16888 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16889 if test $ac_cv_func_setpgrp_void = yes; then
16890   cat >>confdefs.h <<\_ACEOF
16891 #define SETPGRP_VOID 1
16892 _ACEOF
16893
16894 fi
16895 fi
16896
16897 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
16898 # since sigsetjmp might only be defined as a macro.
16899 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16900 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16901 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16902   echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904   cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h.  */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h.  */
16910
16911 #include <setjmp.h>
16912
16913 int
16914 main ()
16915 {
16916 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16917   ;
16918   return 0;
16919 }
16920 _ACEOF
16921 rm -f conftest.$ac_objext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16923   (eval $ac_compile) 2>conftest.er1
16924   ac_status=$?
16925   grep -v '^ *+' conftest.er1 >conftest.err
16926   rm -f conftest.er1
16927   cat conftest.err >&5
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); } &&
16930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932   (eval $ac_try) 2>&5
16933   ac_status=$?
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); }; } &&
16936          { ac_try='test -s conftest.$ac_objext'
16937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938   (eval $ac_try) 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; }; then
16942   gdb_cv_func_sigsetjmp=yes
16943 else
16944   echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16946
16947 gdb_cv_func_sigsetjmp=no
16948 fi
16949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16950 fi
16951 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16952 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16953 if test $gdb_cv_func_sigsetjmp = yes; then
16954
16955 cat >>confdefs.h <<\_ACEOF
16956 #define HAVE_SIGSETJMP 1
16957 _ACEOF
16958
16959 fi
16960
16961 # Assume we'll default to using the included libiberty regex.
16962 gdb_use_included_regex=yes
16963
16964 # However, if the system regex is GNU regex, then default to *not*
16965 # using the included regex.
16966 echo "$as_me:$LINENO: checking for GNU regex" >&5
16967 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16968 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16969   echo $ECHO_N "(cached) $ECHO_C" >&6
16970 else
16971   cat >conftest.$ac_ext <<_ACEOF
16972 /* confdefs.h.  */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h.  */
16977 #include <gnu-versions.h>
16978 int
16979 main ()
16980 {
16981 #define REGEX_INTERFACE_VERSION 1
16982 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16983 # error "Version mismatch"
16984 #endif
16985   ;
16986   return 0;
16987 }
16988 _ACEOF
16989 rm -f conftest.$ac_objext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16991   (eval $ac_compile) 2>conftest.er1
16992   ac_status=$?
16993   grep -v '^ *+' conftest.er1 >conftest.err
16994   rm -f conftest.er1
16995   cat conftest.err >&5
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); } &&
16998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000   (eval $ac_try) 2>&5
17001   ac_status=$?
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); }; } &&
17004          { ac_try='test -s conftest.$ac_objext'
17005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006   (eval $ac_try) 2>&5
17007   ac_status=$?
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); }; }; then
17010   gdb_cv_have_gnu_regex=yes
17011 else
17012   echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17014
17015 gdb_cv_have_gnu_regex=no
17016 fi
17017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17018 fi
17019 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17020 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17021 if test $gdb_cv_have_gnu_regex = yes; then
17022   gdb_use_included_regex=no
17023 fi
17024
17025
17026 # Check whether --with-included-regex or --without-included-regex was given.
17027 if test "${with_included_regex+set}" = set; then
17028   withval="$with_included_regex"
17029   gdb_with_regex=$withval
17030 else
17031   gdb_with_regex=$gdb_use_included_regex
17032 fi;
17033 if test "$gdb_with_regex" = yes; then
17034
17035 cat >>confdefs.h <<\_ACEOF
17036 #define USE_INCLUDED_REGEX 1
17037 _ACEOF
17038
17039 fi
17040
17041 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17042 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17043 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17044 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
17045   echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047   cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h.  */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h.  */
17053 #include <sys/param.h>
17054 #include <sys/proc.h>
17055
17056
17057 int
17058 main ()
17059 {
17060 static struct thread ac_aggr;
17061 if (ac_aggr.td_pcb)
17062 return 0;
17063   ;
17064   return 0;
17065 }
17066 _ACEOF
17067 rm -f conftest.$ac_objext
17068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17069   (eval $ac_compile) 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } &&
17076          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078   (eval $ac_try) 2>&5
17079   ac_status=$?
17080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081   (exit $ac_status); }; } &&
17082          { ac_try='test -s conftest.$ac_objext'
17083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084   (eval $ac_try) 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; }; then
17088   ac_cv_member_struct_thread_td_pcb=yes
17089 else
17090   echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093 cat >conftest.$ac_ext <<_ACEOF
17094 /* confdefs.h.  */
17095 _ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h.  */
17099 #include <sys/param.h>
17100 #include <sys/proc.h>
17101
17102
17103 int
17104 main ()
17105 {
17106 static struct thread ac_aggr;
17107 if (sizeof ac_aggr.td_pcb)
17108 return 0;
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115   (eval $ac_compile) 2>conftest.er1
17116   ac_status=$?
17117   grep -v '^ *+' conftest.er1 >conftest.err
17118   rm -f conftest.er1
17119   cat conftest.err >&5
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); } &&
17122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124   (eval $ac_try) 2>&5
17125   ac_status=$?
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); }; } &&
17128          { ac_try='test -s conftest.$ac_objext'
17129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130   (eval $ac_try) 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); }; }; then
17134   ac_cv_member_struct_thread_td_pcb=yes
17135 else
17136   echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17138
17139 ac_cv_member_struct_thread_td_pcb=no
17140 fi
17141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17142 fi
17143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17144 fi
17145 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17146 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17147 if test $ac_cv_member_struct_thread_td_pcb = yes; then
17148
17149 cat >>confdefs.h <<_ACEOF
17150 #define HAVE_STRUCT_THREAD_TD_PCB 1
17151 _ACEOF
17152
17153
17154 fi
17155
17156
17157 # See if <sys/lwp.h> defines `struct lwp`.
17158 echo "$as_me:$LINENO: checking for struct lwp" >&5
17159 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17160 if test "${gdb_cv_struct_lwp+set}" = set; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163   cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169 #include <sys/param.h>
17170 #include <sys/lwp.h>
17171 int
17172 main ()
17173 {
17174 struct lwp l;
17175   ;
17176   return 0;
17177 }
17178 _ACEOF
17179 rm -f conftest.$ac_objext
17180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17181   (eval $ac_compile) 2>conftest.er1
17182   ac_status=$?
17183   grep -v '^ *+' conftest.er1 >conftest.err
17184   rm -f conftest.er1
17185   cat conftest.err >&5
17186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187   (exit $ac_status); } &&
17188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190   (eval $ac_try) 2>&5
17191   ac_status=$?
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); }; } &&
17194          { ac_try='test -s conftest.$ac_objext'
17195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196   (eval $ac_try) 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; }; then
17200   gdb_cv_struct_lwp=yes
17201 else
17202   echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205 gdb_cv_struct_lwp=no
17206 fi
17207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17208 fi
17209 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17210 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17211 if test $gdb_cv_struct_lwp = yes; then
17212
17213 cat >>confdefs.h <<\_ACEOF
17214 #define HAVE_STRUCT_LWP 1
17215 _ACEOF
17216
17217 fi
17218
17219 # See if <machine/reg.h> degines `struct reg'.
17220 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17221 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17222 if test "${gdb_cv_struct_reg+set}" = set; then
17223   echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225   cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h.  */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h.  */
17231 #include <sys/types.h>
17232 #include <machine/reg.h>
17233 int
17234 main ()
17235 {
17236 struct reg r;
17237   ;
17238   return 0;
17239 }
17240 _ACEOF
17241 rm -f conftest.$ac_objext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243   (eval $ac_compile) 2>conftest.er1
17244   ac_status=$?
17245   grep -v '^ *+' conftest.er1 >conftest.err
17246   rm -f conftest.er1
17247   cat conftest.err >&5
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); } &&
17250          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252   (eval $ac_try) 2>&5
17253   ac_status=$?
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); }; } &&
17256          { ac_try='test -s conftest.$ac_objext'
17257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258   (eval $ac_try) 2>&5
17259   ac_status=$?
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); }; }; then
17262   gdb_cv_struct_reg=yes
17263 else
17264   echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17266
17267 gdb_cv_struct_reg=no
17268 fi
17269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17270 fi
17271 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17272 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17273 if test $gdb_cv_struct_reg = yes; then
17274
17275 cat >>confdefs.h <<\_ACEOF
17276 #define HAVE_STRUCT_REG 1
17277 _ACEOF
17278
17279 fi
17280
17281 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17282 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
17283 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17284 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17285 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
17286   echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288   cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h.  */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h.  */
17294 #include <machine/reg.h>
17295
17296 int
17297 main ()
17298 {
17299 static struct reg ac_aggr;
17300 if (ac_aggr.r_fs)
17301 return 0;
17302   ;
17303   return 0;
17304 }
17305 _ACEOF
17306 rm -f conftest.$ac_objext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17308   (eval $ac_compile) 2>conftest.er1
17309   ac_status=$?
17310   grep -v '^ *+' conftest.er1 >conftest.err
17311   rm -f conftest.er1
17312   cat conftest.err >&5
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); } &&
17315          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317   (eval $ac_try) 2>&5
17318   ac_status=$?
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); }; } &&
17321          { ac_try='test -s conftest.$ac_objext'
17322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323   (eval $ac_try) 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; }; then
17327   ac_cv_member_struct_reg_r_fs=yes
17328 else
17329   echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17331
17332 cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h.  */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h.  */
17338 #include <machine/reg.h>
17339
17340 int
17341 main ()
17342 {
17343 static struct reg ac_aggr;
17344 if (sizeof ac_aggr.r_fs)
17345 return 0;
17346   ;
17347   return 0;
17348 }
17349 _ACEOF
17350 rm -f conftest.$ac_objext
17351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17352   (eval $ac_compile) 2>conftest.er1
17353   ac_status=$?
17354   grep -v '^ *+' conftest.er1 >conftest.err
17355   rm -f conftest.er1
17356   cat conftest.err >&5
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); } &&
17359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361   (eval $ac_try) 2>&5
17362   ac_status=$?
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); }; } &&
17365          { ac_try='test -s conftest.$ac_objext'
17366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367   (eval $ac_try) 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; }; then
17371   ac_cv_member_struct_reg_r_fs=yes
17372 else
17373   echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17375
17376 ac_cv_member_struct_reg_r_fs=no
17377 fi
17378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17379 fi
17380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17381 fi
17382 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17383 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17384 if test $ac_cv_member_struct_reg_r_fs = yes; then
17385
17386 cat >>confdefs.h <<_ACEOF
17387 #define HAVE_STRUCT_REG_R_FS 1
17388 _ACEOF
17389
17390
17391 fi
17392 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17393 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17394 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17395   echo $ECHO_N "(cached) $ECHO_C" >&6
17396 else
17397   cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403 #include <machine/reg.h>
17404
17405 int
17406 main ()
17407 {
17408 static struct reg ac_aggr;
17409 if (ac_aggr.r_gs)
17410 return 0;
17411   ;
17412   return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17417   (eval $ac_compile) 2>conftest.er1
17418   ac_status=$?
17419   grep -v '^ *+' conftest.er1 >conftest.err
17420   rm -f conftest.er1
17421   cat conftest.err >&5
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); } &&
17424          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426   (eval $ac_try) 2>&5
17427   ac_status=$?
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); }; } &&
17430          { ac_try='test -s conftest.$ac_objext'
17431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432   (eval $ac_try) 2>&5
17433   ac_status=$?
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); }; }; then
17436   ac_cv_member_struct_reg_r_gs=yes
17437 else
17438   echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17440
17441 cat >conftest.$ac_ext <<_ACEOF
17442 /* confdefs.h.  */
17443 _ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h.  */
17447 #include <machine/reg.h>
17448
17449 int
17450 main ()
17451 {
17452 static struct reg ac_aggr;
17453 if (sizeof ac_aggr.r_gs)
17454 return 0;
17455   ;
17456   return 0;
17457 }
17458 _ACEOF
17459 rm -f conftest.$ac_objext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17461   (eval $ac_compile) 2>conftest.er1
17462   ac_status=$?
17463   grep -v '^ *+' conftest.er1 >conftest.err
17464   rm -f conftest.er1
17465   cat conftest.err >&5
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); } &&
17468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470   (eval $ac_try) 2>&5
17471   ac_status=$?
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); }; } &&
17474          { ac_try='test -s conftest.$ac_objext'
17475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476   (eval $ac_try) 2>&5
17477   ac_status=$?
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); }; }; then
17480   ac_cv_member_struct_reg_r_gs=yes
17481 else
17482   echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17484
17485 ac_cv_member_struct_reg_r_gs=no
17486 fi
17487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17488 fi
17489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17490 fi
17491 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17492 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17493 if test $ac_cv_member_struct_reg_r_gs = yes; then
17494
17495 cat >>confdefs.h <<_ACEOF
17496 #define HAVE_STRUCT_REG_R_GS 1
17497 _ACEOF
17498
17499
17500 fi
17501
17502
17503 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17504 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17505 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17506 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17507   echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509   cat >conftest.$ac_ext <<_ACEOF
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515 #include <sys/ptrace.h>
17516 int
17517 main ()
17518 {
17519 PTRACE_GETREGS;
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17526   (eval $ac_compile) 2>conftest.er1
17527   ac_status=$?
17528   grep -v '^ *+' conftest.er1 >conftest.err
17529   rm -f conftest.er1
17530   cat conftest.err >&5
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); } &&
17533          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535   (eval $ac_try) 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; } &&
17539          { ac_try='test -s conftest.$ac_objext'
17540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541   (eval $ac_try) 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; }; then
17545   gdb_cv_have_ptrace_getregs=yes
17546 else
17547   echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550 gdb_cv_have_ptrace_getregs=no
17551 fi
17552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17553 fi
17554
17555 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17556 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17557 if test $gdb_cv_have_ptrace_getregs = yes; then
17558
17559 cat >>confdefs.h <<\_ACEOF
17560 #define HAVE_PTRACE_GETREGS 1
17561 _ACEOF
17562
17563 fi
17564
17565 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17566 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17567 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17568 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17569   echo $ECHO_N "(cached) $ECHO_C" >&6
17570 else
17571   cat >conftest.$ac_ext <<_ACEOF
17572 /* confdefs.h.  */
17573 _ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h.  */
17577 #include <sys/ptrace.h>
17578 int
17579 main ()
17580 {
17581 PTRACE_GETFPXREGS;
17582   ;
17583   return 0;
17584 }
17585 _ACEOF
17586 rm -f conftest.$ac_objext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588   (eval $ac_compile) 2>conftest.er1
17589   ac_status=$?
17590   grep -v '^ *+' conftest.er1 >conftest.err
17591   rm -f conftest.er1
17592   cat conftest.err >&5
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); } &&
17595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597   (eval $ac_try) 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; } &&
17601          { ac_try='test -s conftest.$ac_objext'
17602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603   (eval $ac_try) 2>&5
17604   ac_status=$?
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); }; }; then
17607   gdb_cv_have_ptrace_getfpxregs=yes
17608 else
17609   echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17611
17612 gdb_cv_have_ptrace_getfpxregs=no
17613 fi
17614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17615 fi
17616
17617 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17618 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17619 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17620
17621 cat >>confdefs.h <<\_ACEOF
17622 #define HAVE_PTRACE_GETFPXREGS 1
17623 _ACEOF
17624
17625 fi
17626
17627 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17628 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17629 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17630 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17631   echo $ECHO_N "(cached) $ECHO_C" >&6
17632 else
17633   cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h.  */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h.  */
17639 #include <sys/types.h>
17640 #include <sys/ptrace.h>
17641 int
17642 main ()
17643 {
17644 PT_GETDBREGS;
17645   ;
17646   return 0;
17647 }
17648 _ACEOF
17649 rm -f conftest.$ac_objext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17651   (eval $ac_compile) 2>conftest.er1
17652   ac_status=$?
17653   grep -v '^ *+' conftest.er1 >conftest.err
17654   rm -f conftest.er1
17655   cat conftest.err >&5
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); } &&
17658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660   (eval $ac_try) 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; } &&
17664          { ac_try='test -s conftest.$ac_objext'
17665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666   (eval $ac_try) 2>&5
17667   ac_status=$?
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); }; }; then
17670   gdb_cv_have_pt_getdbregs=yes
17671 else
17672   echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17674
17675 gdb_cv_have_pt_getdbregs=no
17676 fi
17677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17678 fi
17679
17680 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17681 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17682 if test $gdb_cv_have_pt_getdbregs = yes; then
17683
17684 cat >>confdefs.h <<\_ACEOF
17685 #define HAVE_PT_GETDBREGS 1
17686 _ACEOF
17687
17688 fi
17689
17690 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17691 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17692 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17693 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17694   echo $ECHO_N "(cached) $ECHO_C" >&6
17695 else
17696   cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h.  */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h.  */
17702 #include <sys/types.h>
17703 #include <sys/ptrace.h>
17704 int
17705 main ()
17706 {
17707 PT_GETXMMREGS;
17708   ;
17709   return 0;
17710 }
17711 _ACEOF
17712 rm -f conftest.$ac_objext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17714   (eval $ac_compile) 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } &&
17721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; } &&
17727          { ac_try='test -s conftest.$ac_objext'
17728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729   (eval $ac_try) 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; }; then
17733   gdb_cv_have_pt_getxmmregs=yes
17734 else
17735   echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 gdb_cv_have_pt_getxmmregs=no
17739 fi
17740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17741 fi
17742
17743 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17744 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17745 if test $gdb_cv_have_pt_getxmmregs = yes; then
17746
17747 cat >>confdefs.h <<\_ACEOF
17748 #define HAVE_PT_GETXMMREGS 1
17749 _ACEOF
17750
17751 fi
17752
17753 # If we are configured native on GNU/Linux, work around problems with
17754 # sys/procfs.h
17755 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17756
17757 if test "${target}" = "${host}"; then
17758   case "${host}" in
17759   i[3456]86-*-linux*)
17760
17761 cat >>confdefs.h <<\_ACEOF
17762 #define START_INFERIOR_TRAPS_EXPECTED 2
17763 _ACEOF
17764
17765
17766 cat >>confdefs.h <<\_ACEOF
17767 #define sys_quotactl 1
17768 _ACEOF
17769
17770         ;;
17771   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17772
17773 cat >>confdefs.h <<\_ACEOF
17774 #define NEW_PROC_API 1
17775 _ACEOF
17776
17777       ;;
17778   *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17779
17780 cat >>confdefs.h <<\_ACEOF
17781 #define NEW_PROC_API 1
17782 _ACEOF
17783
17784       ;;
17785   mips-sgi-irix5*)
17786       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17787
17788 cat >>confdefs.h <<\_ACEOF
17789 #define _KMEMUSER 1
17790 _ACEOF
17791
17792       ;;
17793   esac
17794 fi
17795
17796 if test "$ac_cv_header_sys_procfs_h" = yes; then
17797   echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17798 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17799  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17800   echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802   cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h.  */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h.  */
17808
17809 #define _SYSCALL32
17810 #include <sys/procfs.h>
17811 int
17812 main ()
17813 {
17814 pstatus_t avar
17815   ;
17816   return 0;
17817 }
17818 _ACEOF
17819 rm -f conftest.$ac_objext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17821   (eval $ac_compile) 2>conftest.er1
17822   ac_status=$?
17823   grep -v '^ *+' conftest.er1 >conftest.err
17824   rm -f conftest.er1
17825   cat conftest.err >&5
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); } &&
17828          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830   (eval $ac_try) 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); }; } &&
17834          { ac_try='test -s conftest.$ac_objext'
17835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836   (eval $ac_try) 2>&5
17837   ac_status=$?
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); }; }; then
17840   bfd_cv_have_sys_procfs_type_pstatus_t=yes
17841 else
17842   echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17844
17845 bfd_cv_have_sys_procfs_type_pstatus_t=no
17846
17847 fi
17848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17849 fi
17850
17851  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17852
17853 cat >>confdefs.h <<\_ACEOF
17854 #define HAVE_PSTATUS_T 1
17855 _ACEOF
17856
17857  fi
17858  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17859 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17860
17861   echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17862 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17863  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17864   echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866   cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h.  */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h.  */
17872
17873 #define _SYSCALL32
17874 #include <sys/procfs.h>
17875 int
17876 main ()
17877 {
17878 prrun_t avar
17879   ;
17880   return 0;
17881 }
17882 _ACEOF
17883 rm -f conftest.$ac_objext
17884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17885   (eval $ac_compile) 2>conftest.er1
17886   ac_status=$?
17887   grep -v '^ *+' conftest.er1 >conftest.err
17888   rm -f conftest.er1
17889   cat conftest.err >&5
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); } &&
17892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894   (eval $ac_try) 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); }; } &&
17898          { ac_try='test -s conftest.$ac_objext'
17899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900   (eval $ac_try) 2>&5
17901   ac_status=$?
17902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903   (exit $ac_status); }; }; then
17904   bfd_cv_have_sys_procfs_type_prrun_t=yes
17905 else
17906   echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17908
17909 bfd_cv_have_sys_procfs_type_prrun_t=no
17910
17911 fi
17912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17913 fi
17914
17915  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17916
17917 cat >>confdefs.h <<\_ACEOF
17918 #define HAVE_PRRUN_T 1
17919 _ACEOF
17920
17921  fi
17922  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17923 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17924
17925   echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17926 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17927  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17928   echo $ECHO_N "(cached) $ECHO_C" >&6
17929 else
17930   cat >conftest.$ac_ext <<_ACEOF
17931 /* confdefs.h.  */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h.  */
17936
17937 #define _SYSCALL32
17938 #include <sys/procfs.h>
17939 int
17940 main ()
17941 {
17942 gregset_t avar
17943   ;
17944   return 0;
17945 }
17946 _ACEOF
17947 rm -f conftest.$ac_objext
17948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17949   (eval $ac_compile) 2>conftest.er1
17950   ac_status=$?
17951   grep -v '^ *+' conftest.er1 >conftest.err
17952   rm -f conftest.er1
17953   cat conftest.err >&5
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); } &&
17956          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958   (eval $ac_try) 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); }; } &&
17962          { ac_try='test -s conftest.$ac_objext'
17963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964   (eval $ac_try) 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); }; }; then
17968   bfd_cv_have_sys_procfs_type_gregset_t=yes
17969 else
17970   echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973 bfd_cv_have_sys_procfs_type_gregset_t=no
17974
17975 fi
17976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17977 fi
17978
17979  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17980
17981 cat >>confdefs.h <<\_ACEOF
17982 #define HAVE_GREGSET_T 1
17983 _ACEOF
17984
17985  fi
17986  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17987 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17988
17989   echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17990 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17991  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17992   echo $ECHO_N "(cached) $ECHO_C" >&6
17993 else
17994   cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h.  */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h.  */
18000
18001 #define _SYSCALL32
18002 #include <sys/procfs.h>
18003 int
18004 main ()
18005 {
18006 fpregset_t avar
18007   ;
18008   return 0;
18009 }
18010 _ACEOF
18011 rm -f conftest.$ac_objext
18012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18013   (eval $ac_compile) 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } &&
18020          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022   (eval $ac_try) 2>&5
18023   ac_status=$?
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); }; } &&
18026          { ac_try='test -s conftest.$ac_objext'
18027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_fpregset_t=yes
18033 else
18034   echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 bfd_cv_have_sys_procfs_type_fpregset_t=no
18038
18039 fi
18040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18041 fi
18042
18043  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
18044
18045 cat >>confdefs.h <<\_ACEOF
18046 #define HAVE_FPREGSET_T 1
18047 _ACEOF
18048
18049  fi
18050  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18051 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
18052
18053   echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18054 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18055  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18056   echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058   cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h.  */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h.  */
18064
18065 #define _SYSCALL32
18066 #include <sys/procfs.h>
18067 int
18068 main ()
18069 {
18070 prgregset_t avar
18071   ;
18072   return 0;
18073 }
18074 _ACEOF
18075 rm -f conftest.$ac_objext
18076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18077   (eval $ac_compile) 2>conftest.er1
18078   ac_status=$?
18079   grep -v '^ *+' conftest.er1 >conftest.err
18080   rm -f conftest.er1
18081   cat conftest.err >&5
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); } &&
18084          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086   (eval $ac_try) 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); }; } &&
18090          { ac_try='test -s conftest.$ac_objext'
18091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092   (eval $ac_try) 2>&5
18093   ac_status=$?
18094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); }; }; then
18096   bfd_cv_have_sys_procfs_type_prgregset_t=yes
18097 else
18098   echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18100
18101 bfd_cv_have_sys_procfs_type_prgregset_t=no
18102
18103 fi
18104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18105 fi
18106
18107  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
18108
18109 cat >>confdefs.h <<\_ACEOF
18110 #define HAVE_PRGREGSET_T 1
18111 _ACEOF
18112
18113  fi
18114  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18115 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
18116
18117   echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18118 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18119  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18120   echo $ECHO_N "(cached) $ECHO_C" >&6
18121 else
18122   cat >conftest.$ac_ext <<_ACEOF
18123 /* confdefs.h.  */
18124 _ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h.  */
18128
18129 #define _SYSCALL32
18130 #include <sys/procfs.h>
18131 int
18132 main ()
18133 {
18134 prfpregset_t avar
18135   ;
18136   return 0;
18137 }
18138 _ACEOF
18139 rm -f conftest.$ac_objext
18140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18141   (eval $ac_compile) 2>conftest.er1
18142   ac_status=$?
18143   grep -v '^ *+' conftest.er1 >conftest.err
18144   rm -f conftest.er1
18145   cat conftest.err >&5
18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); } &&
18148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150   (eval $ac_try) 2>&5
18151   ac_status=$?
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); }; } &&
18154          { ac_try='test -s conftest.$ac_objext'
18155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156   (eval $ac_try) 2>&5
18157   ac_status=$?
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); }; }; then
18160   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
18161 else
18162   echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18164
18165 bfd_cv_have_sys_procfs_type_prfpregset_t=no
18166
18167 fi
18168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18169 fi
18170
18171  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18172
18173 cat >>confdefs.h <<\_ACEOF
18174 #define HAVE_PRFPREGSET_T 1
18175 _ACEOF
18176
18177  fi
18178  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18179 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
18180
18181   echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18182 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18183  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18184   echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186   cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h.  */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h.  */
18192
18193 #define _SYSCALL32
18194 #include <sys/procfs.h>
18195 int
18196 main ()
18197 {
18198 prgregset32_t avar
18199   ;
18200   return 0;
18201 }
18202 _ACEOF
18203 rm -f conftest.$ac_objext
18204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18205   (eval $ac_compile) 2>conftest.er1
18206   ac_status=$?
18207   grep -v '^ *+' conftest.er1 >conftest.err
18208   rm -f conftest.er1
18209   cat conftest.err >&5
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); } &&
18212          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214   (eval $ac_try) 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); }; } &&
18218          { ac_try='test -s conftest.$ac_objext'
18219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220   (eval $ac_try) 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; }; then
18224   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
18225 else
18226   echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 bfd_cv_have_sys_procfs_type_prgregset32_t=no
18230
18231 fi
18232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18233 fi
18234
18235  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18236
18237 cat >>confdefs.h <<\_ACEOF
18238 #define HAVE_PRGREGSET32_T 1
18239 _ACEOF
18240
18241  fi
18242  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18243 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18244
18245   echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18246 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18247  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18248   echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250   cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h.  */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h.  */
18256
18257 #define _SYSCALL32
18258 #include <sys/procfs.h>
18259 int
18260 main ()
18261 {
18262 prfpregset32_t avar
18263   ;
18264   return 0;
18265 }
18266 _ACEOF
18267 rm -f conftest.$ac_objext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269   (eval $ac_compile) 2>conftest.er1
18270   ac_status=$?
18271   grep -v '^ *+' conftest.er1 >conftest.err
18272   rm -f conftest.er1
18273   cat conftest.err >&5
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); } &&
18276          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278   (eval $ac_try) 2>&5
18279   ac_status=$?
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); }; } &&
18282          { ac_try='test -s conftest.$ac_objext'
18283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284   (eval $ac_try) 2>&5
18285   ac_status=$?
18286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287   (exit $ac_status); }; }; then
18288   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18289 else
18290   echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18292
18293 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18294
18295 fi
18296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18297 fi
18298
18299  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18300
18301 cat >>confdefs.h <<\_ACEOF
18302 #define HAVE_PRFPREGSET32_T 1
18303 _ACEOF
18304
18305  fi
18306  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18307 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18308
18309   echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18310 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18311  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18312   echo $ECHO_N "(cached) $ECHO_C" >&6
18313 else
18314   cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h.  */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h.  */
18320
18321 #define _SYSCALL32
18322 #include <sys/procfs.h>
18323 int
18324 main ()
18325 {
18326 lwpid_t avar
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18333   (eval $ac_compile) 2>conftest.er1
18334   ac_status=$?
18335   grep -v '^ *+' conftest.er1 >conftest.err
18336   rm -f conftest.er1
18337   cat conftest.err >&5
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); } &&
18340          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342   (eval $ac_try) 2>&5
18343   ac_status=$?
18344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345   (exit $ac_status); }; } &&
18346          { ac_try='test -s conftest.$ac_objext'
18347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348   (eval $ac_try) 2>&5
18349   ac_status=$?
18350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); }; }; then
18352   bfd_cv_have_sys_procfs_type_lwpid_t=yes
18353 else
18354   echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357 bfd_cv_have_sys_procfs_type_lwpid_t=no
18358
18359 fi
18360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18361 fi
18362
18363  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18364
18365 cat >>confdefs.h <<\_ACEOF
18366 #define HAVE_LWPID_T 1
18367 _ACEOF
18368
18369  fi
18370  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18371 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18372
18373   echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18374 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18375  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18376   echo $ECHO_N "(cached) $ECHO_C" >&6
18377 else
18378   cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h.  */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h.  */
18384
18385 #define _SYSCALL32
18386 #include <sys/procfs.h>
18387 int
18388 main ()
18389 {
18390 psaddr_t avar
18391   ;
18392   return 0;
18393 }
18394 _ACEOF
18395 rm -f conftest.$ac_objext
18396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18397   (eval $ac_compile) 2>conftest.er1
18398   ac_status=$?
18399   grep -v '^ *+' conftest.er1 >conftest.err
18400   rm -f conftest.er1
18401   cat conftest.err >&5
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); } &&
18404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406   (eval $ac_try) 2>&5
18407   ac_status=$?
18408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409   (exit $ac_status); }; } &&
18410          { ac_try='test -s conftest.$ac_objext'
18411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412   (eval $ac_try) 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; }; then
18416   bfd_cv_have_sys_procfs_type_psaddr_t=yes
18417 else
18418   echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421 bfd_cv_have_sys_procfs_type_psaddr_t=no
18422
18423 fi
18424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18425 fi
18426
18427  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18428
18429 cat >>confdefs.h <<\_ACEOF
18430 #define HAVE_PSADDR_T 1
18431 _ACEOF
18432
18433  fi
18434  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18435 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18436
18437   echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18438 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18439  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18440   echo $ECHO_N "(cached) $ECHO_C" >&6
18441 else
18442   cat >conftest.$ac_ext <<_ACEOF
18443 /* confdefs.h.  */
18444 _ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h.  */
18448
18449 #define _SYSCALL32
18450 #include <sys/procfs.h>
18451 int
18452 main ()
18453 {
18454 prsysent_t avar
18455   ;
18456   return 0;
18457 }
18458 _ACEOF
18459 rm -f conftest.$ac_objext
18460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18461   (eval $ac_compile) 2>conftest.er1
18462   ac_status=$?
18463   grep -v '^ *+' conftest.er1 >conftest.err
18464   rm -f conftest.er1
18465   cat conftest.err >&5
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); } &&
18468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470   (eval $ac_try) 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }; } &&
18474          { ac_try='test -s conftest.$ac_objext'
18475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476   (eval $ac_try) 2>&5
18477   ac_status=$?
18478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); }; }; then
18480   bfd_cv_have_sys_procfs_type_prsysent_t=yes
18481 else
18482   echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18484
18485 bfd_cv_have_sys_procfs_type_prsysent_t=no
18486
18487 fi
18488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18489 fi
18490
18491  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18492
18493 cat >>confdefs.h <<\_ACEOF
18494 #define HAVE_PRSYSENT_T 1
18495 _ACEOF
18496
18497  fi
18498  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18499 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18500
18501   echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18502 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18503  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18504   echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506   cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h.  */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h.  */
18512
18513 #define _SYSCALL32
18514 #include <sys/procfs.h>
18515 int
18516 main ()
18517 {
18518 pr_sigset_t avar
18519   ;
18520   return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext
18524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18525   (eval $ac_compile) 2>conftest.er1
18526   ac_status=$?
18527   grep -v '^ *+' conftest.er1 >conftest.err
18528   rm -f conftest.er1
18529   cat conftest.err >&5
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); } &&
18532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534   (eval $ac_try) 2>&5
18535   ac_status=$?
18536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537   (exit $ac_status); }; } &&
18538          { ac_try='test -s conftest.$ac_objext'
18539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540   (eval $ac_try) 2>&5
18541   ac_status=$?
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); }; }; then
18544   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18545 else
18546   echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18548
18549 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18550
18551 fi
18552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18553 fi
18554
18555  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18556
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_PR_SIGSET_T 1
18559 _ACEOF
18560
18561  fi
18562  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18563 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18564
18565   echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18566 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18567  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18568   echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570   cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h.  */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h.  */
18576
18577 #define _SYSCALL32
18578 #include <sys/procfs.h>
18579 int
18580 main ()
18581 {
18582 pr_sigaction64_t avar
18583   ;
18584   return 0;
18585 }
18586 _ACEOF
18587 rm -f conftest.$ac_objext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18589   (eval $ac_compile) 2>conftest.er1
18590   ac_status=$?
18591   grep -v '^ *+' conftest.er1 >conftest.err
18592   rm -f conftest.er1
18593   cat conftest.err >&5
18594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595   (exit $ac_status); } &&
18596          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598   (eval $ac_try) 2>&5
18599   ac_status=$?
18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601   (exit $ac_status); }; } &&
18602          { ac_try='test -s conftest.$ac_objext'
18603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604   (eval $ac_try) 2>&5
18605   ac_status=$?
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); }; }; then
18608   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18609 else
18610   echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18612
18613 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18614
18615 fi
18616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18617 fi
18618
18619  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18620
18621 cat >>confdefs.h <<\_ACEOF
18622 #define HAVE_PR_SIGACTION64_T 1
18623 _ACEOF
18624
18625  fi
18626  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18627 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18628
18629   echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18630 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18631  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18632   echo $ECHO_N "(cached) $ECHO_C" >&6
18633 else
18634   cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h.  */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h.  */
18640
18641 #define _SYSCALL32
18642 #include <sys/procfs.h>
18643 int
18644 main ()
18645 {
18646 pr_siginfo64_t avar
18647   ;
18648   return 0;
18649 }
18650 _ACEOF
18651 rm -f conftest.$ac_objext
18652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18653   (eval $ac_compile) 2>conftest.er1
18654   ac_status=$?
18655   grep -v '^ *+' conftest.er1 >conftest.err
18656   rm -f conftest.er1
18657   cat conftest.err >&5
18658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659   (exit $ac_status); } &&
18660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662   (eval $ac_try) 2>&5
18663   ac_status=$?
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); }; } &&
18666          { ac_try='test -s conftest.$ac_objext'
18667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668   (eval $ac_try) 2>&5
18669   ac_status=$?
18670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671   (exit $ac_status); }; }; then
18672   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18673 else
18674   echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18676
18677 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18678
18679 fi
18680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18681 fi
18682
18683  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18684
18685 cat >>confdefs.h <<\_ACEOF
18686 #define HAVE_PR_SIGINFO64_T 1
18687 _ACEOF
18688
18689  fi
18690  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18691 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18692
18693
18694
18695
18696
18697   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18698     echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18699 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18700     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18701   echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703   if test "$cross_compiling" = yes; then
18704   gdb_cv_prfpregset_t_broken=yes
18705 else
18706   cat >conftest.$ac_ext <<_ACEOF
18707 /* confdefs.h.  */
18708 _ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h.  */
18712 #include <sys/procfs.h>
18713        int main ()
18714        {
18715          if (sizeof (prfpregset_t) == sizeof (void *))
18716            return 1;
18717          return 0;
18718        }
18719 _ACEOF
18720 rm -f conftest$ac_exeext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18722   (eval $ac_link) 2>&5
18723   ac_status=$?
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727   (eval $ac_try) 2>&5
18728   ac_status=$?
18729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730   (exit $ac_status); }; }; then
18731   gdb_cv_prfpregset_t_broken=no
18732 else
18733   echo "$as_me: program exited with status $ac_status" >&5
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18736
18737 ( exit $ac_status )
18738 gdb_cv_prfpregset_t_broken=yes
18739 fi
18740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18741 fi
18742 fi
18743
18744     echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18745 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18746     if test $gdb_cv_prfpregset_t_broken = yes; then
18747
18748 cat >>confdefs.h <<\_ACEOF
18749 #define PRFPREGSET_T_BROKEN 1
18750 _ACEOF
18751
18752     fi
18753   fi
18754
18755
18756   echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18757 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18758   if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18759   echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761   cat >conftest.$ac_ext <<_ACEOF
18762 /* confdefs.h.  */
18763 _ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h.  */
18767 #include <unistd.h>
18768 #include <sys/types.h>
18769 #include <sys/procfs.h>
18770
18771 int
18772 main ()
18773 {
18774
18775     int dummy;;
18776     dummy = ioctl(0, PIOCSET, &dummy);
18777
18778   ;
18779   return 0;
18780 }
18781 _ACEOF
18782 rm -f conftest.$ac_objext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18784   (eval $ac_compile) 2>conftest.er1
18785   ac_status=$?
18786   grep -v '^ *+' conftest.er1 >conftest.err
18787   rm -f conftest.er1
18788   cat conftest.err >&5
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); } &&
18791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793   (eval $ac_try) 2>&5
18794   ac_status=$?
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); }; } &&
18797          { ac_try='test -s conftest.$ac_objext'
18798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799   (eval $ac_try) 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); }; }; then
18803   gdb_cv_have_procfs_piocset=yes
18804 else
18805   echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18807
18808 gdb_cv_have_procfs_piocset=no
18809 fi
18810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18811 fi
18812
18813   echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18814 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18815   if test $gdb_cv_have_procfs_piocset = yes; then
18816
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE_PROCFS_PIOCSET 1
18819 _ACEOF
18820
18821   fi
18822 fi
18823
18824 if test ${host} = ${target} ; then
18825
18826   echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18827 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18828   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18829   echo $ECHO_N "(cached) $ECHO_C" >&6
18830 else
18831   cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h.  */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h.  */
18837 #include <link.h>
18838 int
18839 main ()
18840 {
18841 struct link_map lm; (void) lm.l_addr;
18842   ;
18843   return 0;
18844 }
18845 _ACEOF
18846 rm -f conftest.$ac_objext
18847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18848   (eval $ac_compile) 2>conftest.er1
18849   ac_status=$?
18850   grep -v '^ *+' conftest.er1 >conftest.err
18851   rm -f conftest.er1
18852   cat conftest.err >&5
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } &&
18855          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857   (eval $ac_try) 2>&5
18858   ac_status=$?
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); }; } &&
18861          { ac_try='test -s conftest.$ac_objext'
18862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863   (eval $ac_try) 2>&5
18864   ac_status=$?
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); }; }; then
18867   gdb_cv_have_struct_link_map_with_l_members=yes
18868 else
18869   echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18871
18872 gdb_cv_have_struct_link_map_with_l_members=no
18873 fi
18874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18875 fi
18876
18877   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18878 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18879   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18880
18881 cat >>confdefs.h <<\_ACEOF
18882 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18883 _ACEOF
18884
18885   fi
18886
18887
18888   echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18889 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18890   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18891   echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893   cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h.  */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h.  */
18899 #include <sys/types.h>
18900 #include <link.h>
18901 int
18902 main ()
18903 {
18904 struct link_map lm; (void) lm.lm_addr;
18905   ;
18906   return 0;
18907 }
18908 _ACEOF
18909 rm -f conftest.$ac_objext
18910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18911   (eval $ac_compile) 2>conftest.er1
18912   ac_status=$?
18913   grep -v '^ *+' conftest.er1 >conftest.err
18914   rm -f conftest.er1
18915   cat conftest.err >&5
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   (exit $ac_status); } &&
18918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920   (eval $ac_try) 2>&5
18921   ac_status=$?
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); }; } &&
18924          { ac_try='test -s conftest.$ac_objext'
18925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926   (eval $ac_try) 2>&5
18927   ac_status=$?
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); }; }; then
18930   gdb_cv_have_struct_link_map_with_lm_members=yes
18931 else
18932   echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935 gdb_cv_have_struct_link_map_with_lm_members=no
18936 fi
18937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18938 fi
18939
18940   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18941 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18942   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18943
18944 cat >>confdefs.h <<\_ACEOF
18945 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18946 _ACEOF
18947
18948   fi
18949
18950
18951   echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18952 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18953   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18954   echo $ECHO_N "(cached) $ECHO_C" >&6
18955 else
18956   cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h.  */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h.  */
18962 #include <sys/types.h>
18963 #ifdef HAVE_NLIST_H
18964 #include <nlist.h>
18965 #endif
18966 #include <link.h>
18967 int
18968 main ()
18969 {
18970 struct so_map lm; (void) lm.som_addr;
18971   ;
18972   return 0;
18973 }
18974 _ACEOF
18975 rm -f conftest.$ac_objext
18976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18977   (eval $ac_compile) 2>conftest.er1
18978   ac_status=$?
18979   grep -v '^ *+' conftest.er1 >conftest.err
18980   rm -f conftest.er1
18981   cat conftest.err >&5
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); } &&
18984          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986   (eval $ac_try) 2>&5
18987   ac_status=$?
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); }; } &&
18990          { ac_try='test -s conftest.$ac_objext'
18991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992   (eval $ac_try) 2>&5
18993   ac_status=$?
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); }; }; then
18996   gdb_cv_have_struct_so_map_with_som_members=yes
18997 else
18998   echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19000
19001 gdb_cv_have_struct_so_map_with_som_members=no
19002 fi
19003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19004 fi
19005
19006   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19007 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
19008   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
19009
19010 cat >>confdefs.h <<\_ACEOF
19011 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
19012 _ACEOF
19013
19014   fi
19015
19016
19017   echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19018 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19019   if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19020   echo $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022   cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h.  */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h.  */
19028 #define _SYSCALL32
19029 #include <sys/link.h>
19030 int
19031 main ()
19032 {
19033 struct link_map32 l;
19034   ;
19035   return 0;
19036 }
19037 _ACEOF
19038 rm -f conftest.$ac_objext
19039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19040   (eval $ac_compile) 2>conftest.er1
19041   ac_status=$?
19042   grep -v '^ *+' conftest.er1 >conftest.err
19043   rm -f conftest.er1
19044   cat conftest.err >&5
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); } &&
19047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049   (eval $ac_try) 2>&5
19050   ac_status=$?
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); }; } &&
19053          { ac_try='test -s conftest.$ac_objext'
19054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055   (eval $ac_try) 2>&5
19056   ac_status=$?
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); }; }; then
19059   gdb_cv_have_struct_link_map32=yes
19060 else
19061   echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19063
19064 gdb_cv_have_struct_link_map32=no
19065 fi
19066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19067 fi
19068
19069   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19070 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
19071   if test $gdb_cv_have_struct_link_map32 = yes; then
19072
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE_STRUCT_LINK_MAP32 1
19075 _ACEOF
19076
19077
19078 cat >>confdefs.h <<\_ACEOF
19079 #define _SYSCALL32 1
19080 _ACEOF
19081
19082   fi
19083 fi
19084
19085 # Check if the compiler supports the `long long' type.
19086
19087 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19088 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19089 if test "${gdb_cv_c_long_long+set}" = set; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   cat >conftest.$ac_ext <<_ACEOF
19093 /* confdefs.h.  */
19094 _ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h.  */
19098 extern long long foo;
19099 int
19100 main ()
19101 {
19102 switch (foo & 2) { case 0: return 1; }
19103   ;
19104   return 0;
19105 }
19106 _ACEOF
19107 rm -f conftest.$ac_objext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19109   (eval $ac_compile) 2>conftest.er1
19110   ac_status=$?
19111   grep -v '^ *+' conftest.er1 >conftest.err
19112   rm -f conftest.er1
19113   cat conftest.err >&5
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); } &&
19116          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118   (eval $ac_try) 2>&5
19119   ac_status=$?
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); }; } &&
19122          { ac_try='test -s conftest.$ac_objext'
19123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124   (eval $ac_try) 2>&5
19125   ac_status=$?
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); }; }; then
19128   gdb_cv_c_long_long=yes
19129 else
19130   echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133 gdb_cv_c_long_long=no
19134 fi
19135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19136 fi
19137 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19138 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
19139 if test $gdb_cv_c_long_long = yes; then
19140
19141 cat >>confdefs.h <<\_ACEOF
19142 #define CC_HAS_LONG_LONG 1
19143 _ACEOF
19144
19145 fi
19146
19147 # Check if the compiler and runtime support printing long longs.
19148
19149 echo "$as_me:$LINENO: checking for long long support in printf" >&5
19150 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19151 if test "${gdb_cv_printf_has_long_long+set}" = set; then
19152   echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154   if test "$cross_compiling" = yes; then
19155   gdb_cv_printf_has_long_long=no
19156 else
19157   cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163 $ac_includes_default
19164 int
19165 main ()
19166 {
19167 char buf[32];
19168   long long l = 0;
19169   l = (l << 16) + 0x0123;
19170   l = (l << 16) + 0x4567;
19171   l = (l << 16) + 0x89ab;
19172   l = (l << 16) + 0xcdef;
19173   sprintf (buf, "0x%016llx", l);
19174   return (strcmp ("0x0123456789abcdef", buf));
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest$ac_exeext
19180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181   (eval $ac_link) 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186   (eval $ac_try) 2>&5
19187   ac_status=$?
19188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189   (exit $ac_status); }; }; then
19190   gdb_cv_printf_has_long_long=yes
19191 else
19192   echo "$as_me: program exited with status $ac_status" >&5
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19195
19196 ( exit $ac_status )
19197 gdb_cv_printf_has_long_long=no
19198 fi
19199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19200 fi
19201 fi
19202 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19203 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
19204 if test $gdb_cv_printf_has_long_long = yes; then
19205
19206 cat >>confdefs.h <<\_ACEOF
19207 #define PRINTF_HAS_LONG_LONG 1
19208 _ACEOF
19209
19210 fi
19211
19212 # Check if the compiler supports the `long double' type.  We can't use
19213 # AC_C_LONG_DOUBLE because that one does additional checks on the
19214 # constants defined in <float.h> that fail on some systems,
19215 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
19216
19217 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19218 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
19219 if test "${gdb_cv_c_long_double+set}" = set; then
19220   echo $ECHO_N "(cached) $ECHO_C" >&6
19221 else
19222   cat >conftest.$ac_ext <<_ACEOF
19223 /* confdefs.h.  */
19224 _ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h.  */
19228 long double foo;
19229 _ACEOF
19230 rm -f conftest.$ac_objext
19231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232   (eval $ac_compile) 2>conftest.er1
19233   ac_status=$?
19234   grep -v '^ *+' conftest.er1 >conftest.err
19235   rm -f conftest.er1
19236   cat conftest.err >&5
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } &&
19239          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241   (eval $ac_try) 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); }; } &&
19245          { ac_try='test -s conftest.$ac_objext'
19246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247   (eval $ac_try) 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); }; }; then
19251   gdb_cv_c_long_double=yes
19252 else
19253   echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256 gdb_cv_c_long_double=no
19257 fi
19258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19259 fi
19260 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19261 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19262 if test $gdb_cv_c_long_double = yes; then
19263
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE_LONG_DOUBLE 1
19266 _ACEOF
19267
19268 fi
19269
19270 # Check if the compiler and runtime support printing long doubles.
19271
19272 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19273 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19274 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19275   echo $ECHO_N "(cached) $ECHO_C" >&6
19276 else
19277   if test "$cross_compiling" = yes; then
19278   gdb_cv_printf_has_long_double=no
19279 else
19280   cat >conftest.$ac_ext <<_ACEOF
19281 /* confdefs.h.  */
19282 _ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h.  */
19286 $ac_includes_default
19287 int
19288 main ()
19289 {
19290 char buf[16];
19291   long double f = 3.141592653;
19292   sprintf (buf, "%Lg", f);
19293   return (strncmp ("3.14159", buf, 7));
19294   ;
19295   return 0;
19296 }
19297 _ACEOF
19298 rm -f conftest$ac_exeext
19299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19300   (eval $ac_link) 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305   (eval $ac_try) 2>&5
19306   ac_status=$?
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); }; }; then
19309   gdb_cv_printf_has_long_double=yes
19310 else
19311   echo "$as_me: program exited with status $ac_status" >&5
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 ( exit $ac_status )
19316 gdb_cv_printf_has_long_double=no
19317 fi
19318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19319 fi
19320 fi
19321 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19322 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19323 if test $gdb_cv_printf_has_long_double = yes; then
19324
19325 cat >>confdefs.h <<\_ACEOF
19326 #define PRINTF_HAS_LONG_DOUBLE 1
19327 _ACEOF
19328
19329 fi
19330
19331 # Check if the compiler and runtime support scanning long doubles.
19332
19333 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19334 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19335 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19336   echo $ECHO_N "(cached) $ECHO_C" >&6
19337 else
19338   if test "$cross_compiling" = yes; then
19339   gdb_cv_scanf_has_long_double=no
19340 else
19341   cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347 #include <stdio.h>
19348 int
19349 main ()
19350 {
19351 char *buf = "3.141592653";
19352   long double f = 0;
19353   sscanf (buf, "%Lg", &f);
19354   return !(f > 3.14159 && f < 3.14160);
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest$ac_exeext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19361   (eval $ac_link) 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366   (eval $ac_try) 2>&5
19367   ac_status=$?
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); }; }; then
19370   gdb_cv_scanf_has_long_double=yes
19371 else
19372   echo "$as_me: program exited with status $ac_status" >&5
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19375
19376 ( exit $ac_status )
19377 gdb_cv_scanf_has_long_double=no
19378 fi
19379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19380 fi
19381 fi
19382 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19383 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19384 if test $gdb_cv_scanf_has_long_double = yes; then
19385
19386 cat >>confdefs.h <<\_ACEOF
19387 #define SCANF_HAS_LONG_DOUBLE 1
19388 _ACEOF
19389
19390 fi
19391
19392 case ${host_os} in
19393 aix*)
19394   echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19395 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19396 if test "${gdb_cv_bigtoc+set}" = set; then
19397   echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399
19400     SAVE_LDFLAGS=$LDFLAGS
19401
19402     case $GCC in
19403     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19404     *) gdb_cv_bigtoc=-bbigtoc ;;
19405     esac
19406
19407     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19408     cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h.  */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h.  */
19414
19415 int
19416 main ()
19417 {
19418 int i;
19419   ;
19420   return 0;
19421 }
19422 _ACEOF
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19425   (eval $ac_link) 2>conftest.er1
19426   ac_status=$?
19427   grep -v '^ *+' conftest.er1 >conftest.err
19428   rm -f conftest.er1
19429   cat conftest.err >&5
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); } &&
19432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; } &&
19438          { ac_try='test -s conftest$ac_exeext'
19439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440   (eval $ac_try) 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); }; }; then
19444   :
19445 else
19446   echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19448
19449 gdb_cv_bigtoc=
19450 fi
19451 rm -f conftest.err conftest.$ac_objext \
19452       conftest$ac_exeext conftest.$ac_ext
19453     LDFLAGS="${SAVE_LDFLAGS}"
19454
19455 fi
19456 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19457 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19458   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19459   ;;
19460 esac
19461
19462
19463
19464 if test ${build} = ${host} -a ${host} = ${target} ; then
19465    case ${host_os} in
19466    hpux*)
19467       echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19468 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19469       if test -f /usr/include/dce/cma_config.h ; then
19470          if test "$GCC" = "yes" ; then
19471             echo "$as_me:$LINENO: result: yes" >&5
19472 echo "${ECHO_T}yes" >&6
19473
19474 cat >>confdefs.h <<\_ACEOF
19475 #define HAVE_HPUX_THREAD_SUPPORT 1
19476 _ACEOF
19477
19478             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19479             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19480          else
19481             echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19482 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19483          fi
19484       else
19485          echo "$as_me:$LINENO: result: no" >&5
19486 echo "${ECHO_T}no" >&6
19487       fi
19488       ;;
19489    solaris*)
19490       # See if thread_db library is around for Solaris thread debugging.
19491       # Note that we must explicitly test for version 1 of the library
19492       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19493       # the same API.
19494       echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19495 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19496       if test -f /usr/lib/libthread_db.so.1 ; then
19497          echo "$as_me:$LINENO: result: yes" >&5
19498 echo "${ECHO_T}yes" >&6
19499
19500 cat >>confdefs.h <<\_ACEOF
19501 #define HAVE_THREAD_DB_LIB 1
19502 _ACEOF
19503
19504          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19505          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19506
19507 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19508 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19509 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19510   echo $ECHO_N "(cached) $ECHO_C" >&6
19511 else
19512   ac_check_lib_save_LIBS=$LIBS
19513 LIBS="-ldl  $LIBS"
19514 cat >conftest.$ac_ext <<_ACEOF
19515 /* confdefs.h.  */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h.  */
19520
19521 /* Override any gcc2 internal prototype to avoid an error.  */
19522 #ifdef __cplusplus
19523 extern "C"
19524 #endif
19525 /* We use char because int might match the return type of a gcc2
19526    builtin and then its argument prototype would still apply.  */
19527 char dlopen ();
19528 int
19529 main ()
19530 {
19531 dlopen ();
19532   ;
19533   return 0;
19534 }
19535 _ACEOF
19536 rm -f conftest.$ac_objext conftest$ac_exeext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19538   (eval $ac_link) 2>conftest.er1
19539   ac_status=$?
19540   grep -v '^ *+' conftest.er1 >conftest.err
19541   rm -f conftest.er1
19542   cat conftest.err >&5
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); } &&
19545          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_exeext'
19552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553   (eval $ac_try) 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; }; then
19557   ac_cv_lib_dl_dlopen=yes
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 ac_cv_lib_dl_dlopen=no
19563 fi
19564 rm -f conftest.err conftest.$ac_objext \
19565       conftest$ac_exeext conftest.$ac_ext
19566 LIBS=$ac_check_lib_save_LIBS
19567 fi
19568 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19569 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19570 if test $ac_cv_lib_dl_dlopen = yes; then
19571   cat >>confdefs.h <<_ACEOF
19572 #define HAVE_LIBDL 1
19573 _ACEOF
19574
19575   LIBS="-ldl $LIBS"
19576
19577 fi
19578
19579          if test "$GCC" = "yes" ; then
19580             # The GNU linker requires the -export-dynamic option to make
19581             # all symbols visible in the dynamic symbol table.
19582             hold_ldflags=$LDFLAGS
19583             echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19584 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19585             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19586             cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h.  */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h.  */
19592
19593 int
19594 main ()
19595 {
19596 int i;
19597   ;
19598   return 0;
19599 }
19600 _ACEOF
19601 rm -f conftest.$ac_objext conftest$ac_exeext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19603   (eval $ac_link) 2>conftest.er1
19604   ac_status=$?
19605   grep -v '^ *+' conftest.er1 >conftest.err
19606   rm -f conftest.er1
19607   cat conftest.err >&5
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); } &&
19610          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612   (eval $ac_try) 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }; } &&
19616          { ac_try='test -s conftest$ac_exeext'
19617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618   (eval $ac_try) 2>&5
19619   ac_status=$?
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); }; }; then
19622   found=yes
19623 else
19624   echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19626
19627 found=no
19628 fi
19629 rm -f conftest.err conftest.$ac_objext \
19630       conftest$ac_exeext conftest.$ac_ext
19631             LDFLAGS=$hold_ldflags
19632             echo "$as_me:$LINENO: result: $found" >&5
19633 echo "${ECHO_T}$found" >&6
19634             if test $found = yes; then
19635                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19636             fi
19637          fi
19638          # Sun randomly tweaked the prototypes in <proc_service.h>
19639          # at one point.
19640          echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19641 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19642          if test "${gdb_cv_proc_service_is_old+set}" = set; then
19643   echo $ECHO_N "(cached) $ECHO_C" >&6
19644 else
19645
19646             cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h.  */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h.  */
19652
19653                 #include <proc_service.h>
19654                 ps_err_e ps_pdwrite
19655                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
19656
19657 int
19658 main ()
19659 {
19660
19661   ;
19662   return 0;
19663 }
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667   (eval $ac_compile) 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } &&
19674          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676   (eval $ac_try) 2>&5
19677   ac_status=$?
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); }; } &&
19680          { ac_try='test -s conftest.$ac_objext'
19681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682   (eval $ac_try) 2>&5
19683   ac_status=$?
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); }; }; then
19686   gdb_cv_proc_service_is_old=no
19687 else
19688   echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19690
19691 gdb_cv_proc_service_is_old=yes
19692 fi
19693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19694
19695 fi
19696
19697          echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19698 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19699          if test $gdb_cv_proc_service_is_old = yes; then
19700
19701 cat >>confdefs.h <<\_ACEOF
19702 #define PROC_SERVICE_IS_OLD 1
19703 _ACEOF
19704
19705          fi
19706       else
19707          echo "$as_me:$LINENO: result: no" >&5
19708 echo "${ECHO_T}no" >&6
19709       fi
19710       ;;
19711    aix*)
19712       echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19713 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19714       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723 #include <sys/pthdebug.h>
19724 int
19725 main ()
19726 {
19727 #ifndef PTHDB_VERSION_3
19728                                     #error
19729                                     #endif
19730   ;
19731   return 0;
19732 }
19733 _ACEOF
19734 rm -f conftest.$ac_objext
19735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19736   (eval $ac_compile) 2>conftest.er1
19737   ac_status=$?
19738   grep -v '^ *+' conftest.er1 >conftest.err
19739   rm -f conftest.er1
19740   cat conftest.err >&5
19741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742   (exit $ac_status); } &&
19743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745   (eval $ac_try) 2>&5
19746   ac_status=$?
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); }; } &&
19749          { ac_try='test -s conftest.$ac_objext'
19750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751   (eval $ac_try) 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); }; }; then
19755   gdb_cv_have_aix_thread_debug=yes
19756 else
19757   echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 gdb_cv_have_aix_thread_debug=no
19761 fi
19762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19763 fi
19764
19765       echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19766 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19767       if test $gdb_cv_have_aix_thread_debug = yes; then
19768          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19769          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19770          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19771       fi
19772       ;;
19773    esac
19774
19775 fi
19776
19777 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19778    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19779 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19780 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19781   echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783   cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h.  */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h.  */
19789 #include <thread_db.h>
19790 int
19791 main ()
19792 {
19793 int i = TD_NOTALLOC;
19794   ;
19795   return 0;
19796 }
19797 _ACEOF
19798 rm -f conftest.$ac_objext
19799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19800   (eval $ac_compile) 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } &&
19807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809   (eval $ac_try) 2>&5
19810   ac_status=$?
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); }; } &&
19813          { ac_try='test -s conftest.$ac_objext'
19814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815   (eval $ac_try) 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; }; then
19819   gdb_cv_thread_db_h_has_td_notalloc=yes
19820 else
19821   echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824 gdb_cv_thread_db_h_has_td_notalloc=no
19825
19826 fi
19827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19828
19829 fi
19830 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19831 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19832 fi
19833 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19834
19835 cat >>confdefs.h <<\_ACEOF
19836 #define THREAD_DB_HAS_TD_NOTALLOC 1
19837 _ACEOF
19838
19839 fi
19840
19841 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19842    echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19843 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19844 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19845   echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847   cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853 #include <sys/syscall.h>
19854 int
19855 main ()
19856 {
19857 int i = __NR_tkill;
19858   ;
19859   return 0;
19860 }
19861 _ACEOF
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864   (eval $ac_compile) 2>conftest.er1
19865   ac_status=$?
19866   grep -v '^ *+' conftest.er1 >conftest.err
19867   rm -f conftest.er1
19868   cat conftest.err >&5
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } &&
19871          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873   (eval $ac_try) 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); }; } &&
19877          { ac_try='test -s conftest.$ac_objext'
19878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879   (eval $ac_try) 2>&5
19880   ac_status=$?
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); }; }; then
19883   gdb_cv_sys_syscall_h_has_tkill=yes
19884 else
19885   echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19887
19888 gdb_cv_sys_syscall_h_has_tkill=no
19889
19890 fi
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892
19893 fi
19894 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19895 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19896 fi
19897 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19898
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_TKILL_SYSCALL 1
19901 _ACEOF
19902
19903 fi
19904
19905
19906
19907 # Check whether --with-sysroot or --without-sysroot was given.
19908 if test "${with_sysroot+set}" = set; then
19909   withval="$with_sysroot"
19910
19911  case ${with_sysroot} in
19912  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19913  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19914  esac
19915
19916  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19917
19918  if test "x$exec_prefix" = xNONE; then
19919   if test "x$prefix" = xNONE; then
19920    test_prefix=/usr/local
19921   else
19922    test_prefix=$prefix
19923   fi
19924  else
19925   test_prefix=$exec_prefix
19926  fi
19927  case ${TARGET_SYSTEM_ROOT} in
19928  "${test_prefix}"|"${test_prefix}/"*|\
19929  '${exec_prefix}'|'${exec_prefix}/'*)
19930    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19931    TARGET_SYSTEM_ROOT_DEFINE="$t"
19932    ;;
19933  esac
19934
19935 else
19936
19937  TARGET_SYSTEM_ROOT=
19938  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19939
19940 fi;
19941
19942
19943
19944 # NOTE: Don't add -Wall or -Wunused, they both include
19945 # -Wunused-parameter which reports bogus warnings.
19946 # NOTE: If you add to this list, remember to update
19947 # gdb/doc/gdbint.texinfo.
19948 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19949 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
19950 -Wunused-label -Wunused-function -Wno-pointer-sign"
19951
19952 # GCC supports -Wuninitialized only with -O or -On, n != 0.
19953 if test x${CFLAGS+set} = xset; then
19954   case "${CFLAGS}" in
19955     *"-O0"* ) ;;
19956     *"-O"* )
19957       build_warnings="${build_warnings} -Wuninitialized"
19958     ;;
19959   esac
19960 else
19961   build_warnings="${build_warnings} -Wuninitialized"
19962 fi
19963
19964 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19965 # -Wunused-function -Wunused-variable -Wunused-value
19966 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19967 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19968 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19969 # -Woverloaded-virtual -Winline -Werror"
19970 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19971 if test "${enable_build_warnings+set}" = set; then
19972   enableval="$enable_build_warnings"
19973   case "${enableval}" in
19974   yes)  ;;
19975   no)   build_warnings="-w";;
19976   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19977         build_warnings="${build_warnings} ${t}";;
19978   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19979         build_warnings="${t} ${build_warnings}";;
19980   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19981 esac
19982 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19983   echo "Setting compiler warning flags = $build_warnings" 6>&1
19984 fi
19985 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19986 if test "${enable_gdb_build_warnings+set}" = set; then
19987   enableval="$enable_gdb_build_warnings"
19988   case "${enableval}" in
19989   yes)  ;;
19990   no)   build_warnings="-w";;
19991   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19992         build_warnings="${build_warnings} ${t}";;
19993   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19994         build_warnings="${t} ${build_warnings}";;
19995   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19996 esac
19997 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19998   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19999 fi
20000 fi; WARN_CFLAGS=""
20001 WERROR_CFLAGS=""
20002 if test "x${build_warnings}" != x -a "x$GCC" = xyes
20003 then
20004     echo "$as_me:$LINENO: checking compiler warning flags" >&5
20005 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20006     # Separate out the -Werror flag as some files just cannot be
20007     # compiled with it enabled.
20008     for w in ${build_warnings}; do
20009         case $w in
20010         -Werr*) WERROR_CFLAGS=-Werror ;;
20011         *) # Check that GCC accepts it
20012             saved_CFLAGS="$CFLAGS"
20013             CFLAGS="$CFLAGS $w"
20014             cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h.  */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h.  */
20020
20021 int
20022 main ()
20023 {
20024
20025   ;
20026   return 0;
20027 }
20028 _ACEOF
20029 rm -f conftest.$ac_objext
20030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20031   (eval $ac_compile) 2>conftest.er1
20032   ac_status=$?
20033   grep -v '^ *+' conftest.er1 >conftest.err
20034   rm -f conftest.er1
20035   cat conftest.err >&5
20036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037   (exit $ac_status); } &&
20038          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040   (eval $ac_try) 2>&5
20041   ac_status=$?
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); }; } &&
20044          { ac_try='test -s conftest.$ac_objext'
20045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046   (eval $ac_try) 2>&5
20047   ac_status=$?
20048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); }; }; then
20050   WARN_CFLAGS="${WARN_CFLAGS} $w"
20051 else
20052   echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20054
20055 fi
20056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20057             CFLAGS="$saved_CFLAGS"
20058         esac
20059     done
20060     echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20061 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
20062 fi
20063
20064
20065
20066 # In the Cygwin environment, we need some additional flags.
20067 echo "$as_me:$LINENO: checking for cygwin" >&5
20068 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20069 if test "${gdb_cv_os_cygwin+set}" = set; then
20070   echo $ECHO_N "(cached) $ECHO_C" >&6
20071 else
20072   cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h.  */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h.  */
20078
20079 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20080 lose
20081 #endif
20082 _ACEOF
20083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20084   $EGREP "lose" >/dev/null 2>&1; then
20085   gdb_cv_os_cygwin=yes
20086 else
20087   gdb_cv_os_cygwin=no
20088 fi
20089 rm -f conftest*
20090
20091 fi
20092 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20093 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20094
20095
20096 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20097 case ${host} in
20098   *go32* ) SER_HARDWIRE=ser-go32.o ;;
20099   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20100   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o" ;;
20101 esac
20102
20103
20104 # libreadline needs libuser32.a in a cygwin environment
20105 WIN32LIBS=
20106 if test x$gdb_cv_os_cygwin = xyes; then
20107     WIN32LIBS="-luser32"
20108     case "${target}" in
20109         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20110         ;;
20111     esac
20112 fi
20113
20114 # The ser-tcp.c module requires sockets.
20115 case ${host} in
20116   *mingw32*)
20117
20118 cat >>confdefs.h <<\_ACEOF
20119 #define USE_WIN32API 1
20120 _ACEOF
20121
20122     WIN32LIBS="$WIN32LIBS -lws2_32"
20123     ;;
20124 esac
20125
20126
20127 # Add any host-specific objects to GDB.
20128 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20129
20130 LIBGUI="../libgui/src/libgui.a"
20131 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20132
20133
20134
20135 WIN32LDAPP=
20136
20137
20138
20139 case "${host}" in
20140 *-*-cygwin*)
20141     configdir="win"
20142     ;;
20143 *)
20144     configdir="unix"
20145     ;;
20146 esac
20147
20148 GDBTKLIBS=
20149 if test "${enable_gdbtk}" = "yes"; then
20150
20151     # Gdbtk must have an absolute path to srcdir in order to run
20152     # properly when not installed.
20153     here=`pwd`
20154     cd ${srcdir}
20155     GDBTK_SRC_DIR=`pwd`
20156     cd $here
20157
20158
20159 #
20160 # Ok, lets find the tcl configuration
20161 # First, look for one uninstalled.
20162 # the alternative search directory is invoked by --with-tclconfig
20163 #
20164
20165 if test x"${no_tcl}" = x ; then
20166   # we reset no_tcl in case something fails here
20167   no_tcl=true
20168
20169 # Check whether --with-tclconfig or --without-tclconfig was given.
20170 if test "${with_tclconfig+set}" = set; then
20171   withval="$with_tclconfig"
20172   with_tclconfig=${withval}
20173 fi;
20174   echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20175 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20176   if test "${ac_cv_c_tclconfig+set}" = set; then
20177   echo $ECHO_N "(cached) $ECHO_C" >&6
20178 else
20179
20180
20181   # First check to see if --with-tclconfig was specified.
20182   if test x"${with_tclconfig}" != x ; then
20183     if test -f "${with_tclconfig}/tclConfig.sh" ; then
20184       ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20185     else
20186       { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20187 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20188    { (exit 1); exit 1; }; }
20189     fi
20190   fi
20191
20192   # then check for a private Tcl installation
20193   if test x"${ac_cv_c_tclconfig}" = x ; then
20194     for i in \
20195                 ../tcl \
20196                 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20197                 ../../tcl \
20198                 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20199                 ../../../tcl \
20200                 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20201       if test -f "$i/${configdir}/tclConfig.sh" ; then
20202         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20203         break
20204       fi
20205     done
20206   fi
20207   # check in a few common install locations
20208   if test x"${ac_cv_c_tclconfig}" = x ; then
20209     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20210       if test -f "$i/tclConfig.sh" ; then
20211         ac_cv_c_tclconfig=`(cd $i; pwd)`
20212         break
20213       fi
20214     done
20215   fi
20216   # check in a few other private locations
20217   if test x"${ac_cv_c_tclconfig}" = x ; then
20218     for i in \
20219                 ${srcdir}/../tcl \
20220                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20221       if test -f "$i/${configdir}/tclConfig.sh" ; then
20222         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20223         break
20224       fi
20225     done
20226   fi
20227
20228 fi
20229
20230   if test x"${ac_cv_c_tclconfig}" = x ; then
20231     TCLCONFIG="# no Tcl configs found"
20232     { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20233 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20234   else
20235     no_tcl=
20236     TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
20237     echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20238 echo "${ECHO_T}found $TCLCONFIG" >&6
20239   fi
20240 fi
20241
20242     if test -z "${no_tcl}"; then
20243
20244     . $TCLCONFIG
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272 #
20273 # Ok, lets find the tk configuration
20274 # First, look for one uninstalled.
20275 # the alternative search directory is invoked by --with-tkconfig
20276 #
20277
20278 if test x"${no_tk}" = x ; then
20279   # we reset no_tk in case something fails here
20280   no_tk=true
20281
20282 # Check whether --with-tkconfig or --without-tkconfig was given.
20283 if test "${with_tkconfig+set}" = set; then
20284   withval="$with_tkconfig"
20285   with_tkconfig=${withval}
20286 fi;
20287   echo "$as_me:$LINENO: checking for Tk configuration" >&5
20288 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20289   if test "${ac_cv_c_tkconfig+set}" = set; then
20290   echo $ECHO_N "(cached) $ECHO_C" >&6
20291 else
20292
20293
20294   # First check to see if --with-tkconfig was specified.
20295   if test x"${with_tkconfig}" != x ; then
20296     if test -f "${with_tkconfig}/tkConfig.sh" ; then
20297       ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20298     else
20299       { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20300 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20301    { (exit 1); exit 1; }; }
20302     fi
20303   fi
20304
20305   # then check for a private Tk library
20306   if test x"${ac_cv_c_tkconfig}" = x ; then
20307     for i in \
20308                 ../tk \
20309                 `ls -dr ../tk[4-9]* 2>/dev/null` \
20310                 ../../tk \
20311                 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20312                 ../../../tk \
20313                 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20314       if test -f "$i/${configdir}/tkConfig.sh" ; then
20315         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20316         break
20317       fi
20318     done
20319   fi
20320   # check in a few common install locations
20321   if test x"${ac_cv_c_tkconfig}" = x ; then
20322     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20323       if test -f "$i/tkConfig.sh" ; then
20324         ac_cv_c_tkconfig=`(cd $i; pwd)`
20325         break
20326       fi
20327     done
20328   fi
20329   # check in a few other private locations
20330   if test x"${ac_cv_c_tkconfig}" = x ; then
20331     for i in \
20332                 ${srcdir}/../tk \
20333                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20334       if test -f "$i/${configdir}/tkConfig.sh" ; then
20335         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20336         break
20337       fi
20338     done
20339   fi
20340
20341 fi
20342
20343   if test x"${ac_cv_c_tkconfig}" = x ; then
20344     TKCONFIG="# no Tk configs found"
20345     { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20346 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20347   else
20348     no_tk=
20349     TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20350     echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20351 echo "${ECHO_T}found $TKCONFIG" >&6
20352   fi
20353 fi
20354
20355
20356
20357         # now look for Tcl library stuff
20358
20359         tcldir="../tcl/${configdir}/"
20360
20361         TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20362
20363         # If $no_tk is nonempty, then we can't do Tk, and there is no
20364         # point to doing Tcl.
20365         if test -z "${no_tk}"; then
20366
20367     if test -f "$TKCONFIG" ; then
20368       . $TKCONFIG
20369     fi
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384 #
20385 # Ok, lets find the tcl source trees so we can use the headers
20386 # Warning: transition of version 9 to 10 will break this algorithm
20387 # because 10 sorts before 9. We also look for just tcl. We have to
20388 # be careful that we don't match stuff like tclX by accident.
20389 # the alternative search directory is involked by --with-tclinclude
20390 #
20391
20392 no_tcl=true
20393 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20394 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20395
20396 # Check whether --with-tclinclude or --without-tclinclude was given.
20397 if test "${with_tclinclude+set}" = set; then
20398   withval="$with_tclinclude"
20399   with_tclinclude=${withval}
20400 fi;
20401 if test "${ac_cv_c_tclh+set}" = set; then
20402   echo $ECHO_N "(cached) $ECHO_C" >&6
20403 else
20404
20405 # first check to see if --with-tclinclude was specified
20406 if test x"${with_tclinclude}" != x ; then
20407   if test -f ${with_tclinclude}/tclInt.h ; then
20408     ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20409   elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20410     ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20411   else
20412     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20413 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20414    { (exit 1); exit 1; }; }
20415   fi
20416 fi
20417
20418 # next check if it came with Tcl configuration file
20419 if test x"${ac_cv_c_tclconfig}" = x ; then
20420   if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20421     ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20422   fi
20423 fi
20424
20425 # next check in private source directory
20426 #
20427 # since ls returns lowest version numbers first, reverse its output
20428 if test x"${ac_cv_c_tclh}" = x ; then
20429   for i in \
20430                 ${srcdir}/../tcl \
20431                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20432                 ${srcdir}/../../tcl \
20433                 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20434                 ${srcdir}/../../../tcl \
20435                 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20436     if test -f $i/generic/tclInt.h ; then
20437       ac_cv_c_tclh=`(cd $i/generic; pwd)`
20438       break
20439     fi
20440   done
20441 fi
20442 # finally check in a few common install locations
20443 #
20444 # since ls returns lowest version numbers first, reverse its output
20445 if test x"${ac_cv_c_tclh}" = x ; then
20446   for i in \
20447                 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20448                 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20449                 /usr/local/src/tcl \
20450                 /usr/local/lib/tcl \
20451                 ${prefix}/include ; do
20452     if test -f $i/generic/tclInt.h ; then
20453       ac_cv_c_tclh=`(cd $i/generic; pwd)`
20454       break
20455     fi
20456   done
20457 fi
20458 # see if one is installed
20459 if test x"${ac_cv_c_tclh}" = x ; then
20460    if test "${ac_cv_header_tclInt_h+set}" = set; then
20461   echo "$as_me:$LINENO: checking for tclInt.h" >&5
20462 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20463 if test "${ac_cv_header_tclInt_h+set}" = set; then
20464   echo $ECHO_N "(cached) $ECHO_C" >&6
20465 fi
20466 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20467 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20468 else
20469   # Is the header compilable?
20470 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20471 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478 $ac_includes_default
20479 #include <tclInt.h>
20480 _ACEOF
20481 rm -f conftest.$ac_objext
20482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20483   (eval $ac_compile) 2>conftest.er1
20484   ac_status=$?
20485   grep -v '^ *+' conftest.er1 >conftest.err
20486   rm -f conftest.er1
20487   cat conftest.err >&5
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); } &&
20490          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492   (eval $ac_try) 2>&5
20493   ac_status=$?
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); }; } &&
20496          { ac_try='test -s conftest.$ac_objext'
20497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498   (eval $ac_try) 2>&5
20499   ac_status=$?
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); }; }; then
20502   ac_header_compiler=yes
20503 else
20504   echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20506
20507 ac_header_compiler=no
20508 fi
20509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20511 echo "${ECHO_T}$ac_header_compiler" >&6
20512
20513 # Is the header present?
20514 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20515 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20516 cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h.  */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h.  */
20522 #include <tclInt.h>
20523 _ACEOF
20524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20526   ac_status=$?
20527   grep -v '^ *+' conftest.er1 >conftest.err
20528   rm -f conftest.er1
20529   cat conftest.err >&5
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } >/dev/null; then
20532   if test -s conftest.err; then
20533     ac_cpp_err=$ac_c_preproc_warn_flag
20534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20535   else
20536     ac_cpp_err=
20537   fi
20538 else
20539   ac_cpp_err=yes
20540 fi
20541 if test -z "$ac_cpp_err"; then
20542   ac_header_preproc=yes
20543 else
20544   echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547   ac_header_preproc=no
20548 fi
20549 rm -f conftest.err conftest.$ac_ext
20550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20551 echo "${ECHO_T}$ac_header_preproc" >&6
20552
20553 # So?  What about this header?
20554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20555   yes:no: )
20556     { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20557 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20558     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20559 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20560     ac_header_preproc=yes
20561     ;;
20562   no:yes:* )
20563     { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20564 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20565     { echo "$as_me:$LINENO: WARNING: tclInt.h:     check for missing prerequisite headers?" >&5
20566 echo "$as_me: WARNING: tclInt.h:     check for missing prerequisite headers?" >&2;}
20567     { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20568 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20569     { echo "$as_me:$LINENO: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&5
20570 echo "$as_me: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20571     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20572 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20573     { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20574 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20575     (
20576       cat <<\_ASBOX
20577 ## ------------------------------------------ ##
20578 ## Report this to the AC_PACKAGE_NAME lists.  ##
20579 ## ------------------------------------------ ##
20580 _ASBOX
20581     ) |
20582       sed "s/^/$as_me: WARNING:     /" >&2
20583     ;;
20584 esac
20585 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20586 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20587 if test "${ac_cv_header_tclInt_h+set}" = set; then
20588   echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590   ac_cv_header_tclInt_h=$ac_header_preproc
20591 fi
20592 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20593 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20594
20595 fi
20596 if test $ac_cv_header_tclInt_h = yes; then
20597   ac_cv_c_tclh=installed
20598 else
20599   ac_cv_c_tclh=""
20600 fi
20601
20602
20603 fi
20604
20605 fi
20606
20607 if test x"${ac_cv_c_tclh}" = x ; then
20608   TCLHDIR="# no Tcl private headers found"
20609   { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20610 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20611    { (exit 1); exit 1; }; }
20612 fi
20613 if test x"${ac_cv_c_tclh}" != x ; then
20614   no_tcl=""
20615   if test x"${ac_cv_c_tclh}" = x"installed" ; then
20616     echo "$as_me:$LINENO: result: is installed" >&5
20617 echo "${ECHO_T}is installed" >&6
20618     TCLHDIR=""
20619   else
20620     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20621 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20622     # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20623     TCLHDIR="-I${ac_cv_c_tclh}"
20624   fi
20625 fi
20626
20627
20628
20629
20630 #
20631 # Ok, lets find the tk source trees so we can use the headers
20632 # If the directory (presumably symlink) named "tk" exists, use that one
20633 # in preference to any others.  Same logic is used when choosing library
20634 # and again with Tcl. The search order is the best place to look first, then in
20635 # decreasing significance. The loop breaks if the trigger file is found.
20636 # Note the gross little conversion here of srcdir by cd'ing to the found
20637 # directory. This converts the path from a relative to an absolute, so
20638 # recursive cache variables for the path will work right. We check all
20639 # the possible paths in one loop rather than many seperate loops to speed
20640 # things up.
20641 # the alternative search directory is involked by --with-tkinclude
20642 #
20643 no_tk=true
20644 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20645 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20646
20647 # Check whether --with-tkinclude or --without-tkinclude was given.
20648 if test "${with_tkinclude+set}" = set; then
20649   withval="$with_tkinclude"
20650   with_tkinclude=${withval}
20651 fi;
20652 if test "${ac_cv_c_tkh+set}" = set; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655
20656 # first check to see if --with-tkinclude was specified
20657 if test x"${with_tkinclude}" != x ; then
20658   if test -f ${with_tkinclude}/tk.h ; then
20659     ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20660   elif test -f ${with_tkinclude}/generic/tk.h ; then
20661     ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20662   else
20663     { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20664 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20665    { (exit 1); exit 1; }; }
20666   fi
20667 fi
20668
20669 # next check if it came with Tk configuration file
20670 if test x"${ac_cv_c_tkconfig}" = x ; then
20671   if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20672     ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20673   fi
20674 fi
20675
20676 # next check in private source directory
20677 #
20678 # since ls returns lowest version numbers first, reverse its output
20679 if test x"${ac_cv_c_tkh}" = x ; then
20680   for i in \
20681                 ${srcdir}/../tk \
20682                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20683                 ${srcdir}/../../tk \
20684                 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20685                 ${srcdir}/../../../tk \
20686                 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20687     if test -f $i/generic/tk.h ; then
20688       ac_cv_c_tkh=`(cd $i/generic; pwd)`
20689       break
20690     fi
20691   done
20692 fi
20693 # finally check in a few common install locations
20694 #
20695 # since ls returns lowest version numbers first, reverse its output
20696 if test x"${ac_cv_c_tkh}" = x ; then
20697   for i in \
20698                 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20699                 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20700                 /usr/local/src/tk \
20701                 /usr/local/lib/tk \
20702                 ${prefix}/include ; do
20703     if test -f $i/generic/tk.h ; then
20704       ac_cv_c_tkh=`(cd $i/generic; pwd)`
20705       break
20706     fi
20707   done
20708 fi
20709 # see if one is installed
20710 if test x"${ac_cv_c_tkh}" = x ; then
20711    if test "${ac_cv_header_tk_h+set}" = set; then
20712   echo "$as_me:$LINENO: checking for tk.h" >&5
20713 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20714 if test "${ac_cv_header_tk_h+set}" = set; then
20715   echo $ECHO_N "(cached) $ECHO_C" >&6
20716 fi
20717 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20718 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20719 else
20720   # Is the header compilable?
20721 echo "$as_me:$LINENO: checking tk.h usability" >&5
20722 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h.  */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h.  */
20729 $ac_includes_default
20730 #include <tk.h>
20731 _ACEOF
20732 rm -f conftest.$ac_objext
20733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734   (eval $ac_compile) 2>conftest.er1
20735   ac_status=$?
20736   grep -v '^ *+' conftest.er1 >conftest.err
20737   rm -f conftest.er1
20738   cat conftest.err >&5
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); } &&
20741          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743   (eval $ac_try) 2>&5
20744   ac_status=$?
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); }; } &&
20747          { ac_try='test -s conftest.$ac_objext'
20748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749   (eval $ac_try) 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); }; }; then
20753   ac_header_compiler=yes
20754 else
20755   echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758 ac_header_compiler=no
20759 fi
20760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20762 echo "${ECHO_T}$ac_header_compiler" >&6
20763
20764 # Is the header present?
20765 echo "$as_me:$LINENO: checking tk.h presence" >&5
20766 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20767 cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h.  */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h.  */
20773 #include <tk.h>
20774 _ACEOF
20775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20777   ac_status=$?
20778   grep -v '^ *+' conftest.er1 >conftest.err
20779   rm -f conftest.er1
20780   cat conftest.err >&5
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); } >/dev/null; then
20783   if test -s conftest.err; then
20784     ac_cpp_err=$ac_c_preproc_warn_flag
20785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20786   else
20787     ac_cpp_err=
20788   fi
20789 else
20790   ac_cpp_err=yes
20791 fi
20792 if test -z "$ac_cpp_err"; then
20793   ac_header_preproc=yes
20794 else
20795   echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20797
20798   ac_header_preproc=no
20799 fi
20800 rm -f conftest.err conftest.$ac_ext
20801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20802 echo "${ECHO_T}$ac_header_preproc" >&6
20803
20804 # So?  What about this header?
20805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20806   yes:no: )
20807     { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20808 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20809     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20810 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20811     ac_header_preproc=yes
20812     ;;
20813   no:yes:* )
20814     { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20815 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20816     { echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
20817 echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
20818     { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20819 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20820     { echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
20821 echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20822     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20823 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20824     { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20825 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20826     (
20827       cat <<\_ASBOX
20828 ## ------------------------------------------ ##
20829 ## Report this to the AC_PACKAGE_NAME lists.  ##
20830 ## ------------------------------------------ ##
20831 _ASBOX
20832     ) |
20833       sed "s/^/$as_me: WARNING:     /" >&2
20834     ;;
20835 esac
20836 echo "$as_me:$LINENO: checking for tk.h" >&5
20837 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20838 if test "${ac_cv_header_tk_h+set}" = set; then
20839   echo $ECHO_N "(cached) $ECHO_C" >&6
20840 else
20841   ac_cv_header_tk_h=$ac_header_preproc
20842 fi
20843 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20844 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20845
20846 fi
20847 if test $ac_cv_header_tk_h = yes; then
20848   ac_cv_c_tkh=installed
20849 else
20850   ac_cv_c_tkh=""
20851 fi
20852
20853
20854 fi
20855
20856 fi
20857
20858 if test x"${ac_cv_c_tkh}" != x ; then
20859   no_tk=""
20860   if test x"${ac_cv_c_tkh}" = x"installed" ; then
20861     echo "$as_me:$LINENO: result: is installed" >&5
20862 echo "${ECHO_T}is installed" >&6
20863     TKHDIR=""
20864   else
20865     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20866 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20867     # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20868     TKHDIR="-I${ac_cv_c_tkh}"
20869   fi
20870 else
20871   TKHDIR="# no Tk directory found"
20872   { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20873 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20874   no_tk=true
20875 fi
20876
20877
20878
20879
20880 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20881 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20882 if test x"${ac_cv_c_itclh}" = x ; then
20883   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20884     if test -f $i/generic/itcl.h ; then
20885       ac_cv_c_itclh=`(cd $i/generic; pwd)`
20886       break
20887     fi
20888   done
20889 fi
20890 if test x"${ac_cv_c_itclh}" = x ; then
20891   ITCLHDIR="# no Itcl private headers found"
20892   { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20893 echo "$as_me: error: Can't find Itcl private headers" >&2;}
20894    { (exit 1); exit 1; }; }
20895 fi
20896 if test x"${ac_cv_c_itclh}" != x ; then
20897      ITCLHDIR="-I${ac_cv_c_itclh}"
20898 fi
20899 # should always be here
20900 #     ITCLLIB="../itcl/itcl/unix/libitcl.a"
20901
20902 #AC_SUBST(ITCLLIB)
20903
20904
20905 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20906 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20907 if test x"${ac_cv_c_itkh}" = x ; then
20908   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20909     if test -f $i/generic/itk.h ; then
20910       ac_cv_c_itkh=`(cd $i/generic; pwd)`
20911       break
20912     fi
20913   done
20914 fi
20915 if test x"${ac_cv_c_itkh}" = x ; then
20916   ITKHDIR="# no Itk private headers found"
20917   { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20918 echo "$as_me: error: Can't find Itk private headers" >&2;}
20919    { (exit 1); exit 1; }; }
20920 fi
20921 if test x"${ac_cv_c_itkh}" != x ; then
20922      ITKHDIR="-I${ac_cv_c_itkh}"
20923 fi
20924 # should always be here
20925 #     ITKLIB="../itcl/itk/unix/libitk.a"
20926
20927 #AC_SUBST(ITKLIB)
20928
20929
20930
20931            # now look for Tk library stuff
20932
20933            tkdir="../tk/${configdir}/"
20934
20935            TK_DEPS="${tkdir}${TK_LIB_FILE}"
20936
20937            # now look for Itcl library stuff
20938
20939
20940 #
20941 # Ok, lets find the itcl configuration
20942 # First, look for one uninstalled.
20943 # the alternative search directory is invoked by --with-itclconfig
20944 #
20945
20946 if test x"${no_itcl}" = x ; then
20947   # we reset no_itcl in case something fails here
20948   no_itcl=true
20949
20950 # Check whether --with-itclconfig or --without-itclconfig was given.
20951 if test "${with_itclconfig+set}" = set; then
20952   withval="$with_itclconfig"
20953   with_itclconfig=${withval}
20954 fi;
20955   echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20956 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20957   if test "${ac_cv_c_itclconfig+set}" = set; then
20958   echo $ECHO_N "(cached) $ECHO_C" >&6
20959 else
20960
20961
20962   # First check to see if --with-itclconfig was specified.
20963   if test x"${with_itclconfig}" != x ; then
20964     if test -f "${with_itclconfig}/itclConfig.sh" ; then
20965       ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20966     else
20967       { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20968 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20969    { (exit 1); exit 1; }; }
20970     fi
20971   fi
20972
20973   # then check for a private Itcl library
20974   if test x"${ac_cv_c_itclconfig}" = x ; then
20975     for i in \
20976                 ../itcl/itcl \
20977                 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20978                 ../../itcl \
20979                 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20980                 ../../../itcl \
20981                 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20982       if test -f "$i/itclConfig.sh" ; then
20983         ac_cv_c_itclconfig=`(cd $i; pwd)`
20984         break
20985       fi
20986     done
20987   fi
20988   # check in a few common install locations
20989   if test x"${ac_cv_c_itclconfig}" = x ; then
20990     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20991       if test -f "$i/itclConfig.sh" ; then
20992         ac_cv_c_itclconfig=`(cd $i; pwd)`
20993         break
20994       fi
20995     done
20996   fi
20997   # check in a few other private locations
20998   if test x"${ac_cv_c_itclconfig}" = x ; then
20999     for i in \
21000                 ${srcdir}/../itcl/itcl \
21001                 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21002       if test -f "$i/itclConfig.sh" ; then
21003         ac_cv_c_itclconfig=`(cd $i; pwd)`
21004         break
21005       fi
21006     done
21007   fi
21008
21009 fi
21010
21011   if test x"${ac_cv_c_itclconfig}" = x ; then
21012     ITCLCONFIG="# no Itcl configs found"
21013     { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21014 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
21015   else
21016     no_itcl=
21017     ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
21018     echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21019 echo "${ECHO_T}found $ITCLCONFIG" >&6
21020   fi
21021 fi
21022
21023            if test -z "${no_itcl}"; then
21024
21025     if test -f "$ITCLCONFIG" ; then
21026       . $ITCLCONFIG
21027     fi
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040              ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
21041              ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
21042            fi
21043
21044
21045            # now look for Itk library stuff
21046
21047 #
21048 # Ok, lets find the itk configuration
21049 # First, look for one uninstalled.
21050 # the alternative search directory is invoked by --with-itkconfig
21051 #
21052
21053 if test x"${no_itk}" = x ; then
21054   # we reset no_itk in case something fails here
21055   no_itk=true
21056
21057 # Check whether --with-itkconfig or --without-itkconfig was given.
21058 if test "${with_itkconfig+set}" = set; then
21059   withval="$with_itkconfig"
21060   with_itkconfig=${withval}
21061 fi;
21062   echo "$as_me:$LINENO: checking for Itk configuration" >&5
21063 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21064   if test "${ac_cv_c_itkconfig+set}" = set; then
21065   echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067
21068
21069   # First check to see if --with-itkconfig was specified.
21070   if test x"${with_itkconfig}" != x ; then
21071     if test -f "${with_itkconfig}/itkConfig.sh" ; then
21072       ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21073     else
21074       { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21075 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21076    { (exit 1); exit 1; }; }
21077     fi
21078   fi
21079
21080   # then check for a private Itk library
21081   if test x"${ac_cv_c_itkconfig}" = x ; then
21082     for i in \
21083                 ../itcl/itk \
21084                 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21085                 ../../itk \
21086                 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21087                 ../../../itk \
21088                 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21089       if test -f "$i/itkConfig.sh" ; then
21090         ac_cv_c_itkconfig=`(cd $i; pwd)`
21091         break
21092       fi
21093     done
21094   fi
21095   # check in a few common install locations
21096   if test x"${ac_cv_c_itkconfig}" = x ; then
21097     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21098       if test -f "$i/itkConfig.sh" ; then
21099         ac_cv_c_itkconfig=`(cd $i; pwd)`
21100         break
21101       fi
21102     done
21103   fi
21104   # check in a few other private locations
21105   if test x"${ac_cv_c_itkconfig}" = x ; then
21106     for i in \
21107                 ${srcdir}/../itcl/itk \
21108                 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21109       if test -f "$i/itkConfig.sh" ; then
21110         ac_cv_c_itkconfig=`(cd $i; pwd)`
21111         break
21112       fi
21113     done
21114   fi
21115
21116 fi
21117
21118   if test x"${ac_cv_c_itkconfig}" = x ; then
21119     ITKCONFIG="# no Itk configs found"
21120     { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21121 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
21122   else
21123     no_itk=
21124     ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
21125     echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21126 echo "${ECHO_T}found $ITKCONFIG" >&6
21127   fi
21128 fi
21129
21130
21131            if test -z "${no_itcl}"; then
21132
21133     if test -f "$ITKCONFIG" ; then
21134       . $ITKCONFIG
21135     fi
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148              ITKLIB="${ITK_BUILD_LIB_SPEC}"
21149              ITK_DEPS="${ITK_LIB_FULL_PATH}"
21150            fi
21151
21152            ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
21153
21154            # Include some libraries that Tcl and Tk want.
21155            TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
21156            # Yes, the ordering seems wrong here.  But it isn't.
21157            # TK_LIBS is the list of libraries that need to be linked
21158            # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
21159            # were in LIBS then any link tests after this point would
21160            # try to include things like `$(LIBGUI)', which wouldn't work.
21161            GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
21162
21163            CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21164            CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21165            CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
21166            CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21167            CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21168            CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21169            CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
21170
21171            if test x$gdb_cv_os_cygwin = xyes; then
21172               WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21173               WIN32LDAPP="-Wl,--subsystem,console"
21174               CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21175            fi
21176         fi
21177     fi
21178
21179
21180
21181 subdirs="$subdirs gdbtk"
21182
21183 fi
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198 echo "$as_me:$LINENO: checking for X" >&5
21199 echo $ECHO_N "checking for X... $ECHO_C" >&6
21200
21201 ac_path_x_has_been_run=yes
21202
21203 # Check whether --with-x or --without-x was given.
21204 if test "${with_x+set}" = set; then
21205   withval="$with_x"
21206
21207 fi;
21208 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21209 if test "x$with_x" = xno; then
21210   # The user explicitly disabled X.
21211   have_x=disabled
21212 else
21213   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21214     # Both variables are already set.
21215     have_x=yes
21216   else
21217     if test "${ac_cv_have_x+set}" = set; then
21218   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220   # One or both of the vars are not set, and there is no cached value.
21221 ac_x_includes=no ac_x_libraries=no
21222 rm -fr conftest.dir
21223 if mkdir conftest.dir; then
21224   cd conftest.dir
21225   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21226   cat >Imakefile <<'_ACEOF'
21227 acfindx:
21228         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21229 _ACEOF
21230   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21231     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21232     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21233     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21234     for ac_extension in a so sl; do
21235       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21236          test -f $ac_im_libdir/libX11.$ac_extension; then
21237         ac_im_usrlibdir=$ac_im_libdir; break
21238       fi
21239     done
21240     # Screen out bogus values from the imake configuration.  They are
21241     # bogus both because they are the default anyway, and because
21242     # using them would break gcc on systems where it needs fixed includes.
21243     case $ac_im_incroot in
21244         /usr/include) ;;
21245         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21246     esac
21247     case $ac_im_usrlibdir in
21248         /usr/lib | /lib) ;;
21249         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21250     esac
21251   fi
21252   cd ..
21253   rm -fr conftest.dir
21254 fi
21255
21256 # Standard set of common directories for X headers.
21257 # Check X11 before X11Rn because it is often a symlink to the current release.
21258 ac_x_header_dirs='
21259 /usr/X11/include
21260 /usr/X11R6/include
21261 /usr/X11R5/include
21262 /usr/X11R4/include
21263
21264 /usr/include/X11
21265 /usr/include/X11R6
21266 /usr/include/X11R5
21267 /usr/include/X11R4
21268
21269 /usr/local/X11/include
21270 /usr/local/X11R6/include
21271 /usr/local/X11R5/include
21272 /usr/local/X11R4/include
21273
21274 /usr/local/include/X11
21275 /usr/local/include/X11R6
21276 /usr/local/include/X11R5
21277 /usr/local/include/X11R4
21278
21279 /usr/X386/include
21280 /usr/x386/include
21281 /usr/XFree86/include/X11
21282
21283 /usr/include
21284 /usr/local/include
21285 /usr/unsupported/include
21286 /usr/athena/include
21287 /usr/local/x11r5/include
21288 /usr/lpp/Xamples/include
21289
21290 /usr/openwin/include
21291 /usr/openwin/share/include'
21292
21293 if test "$ac_x_includes" = no; then
21294   # Guess where to find include files, by looking for a specified header file.
21295   # First, try using that file with no special directory specified.
21296   cat >conftest.$ac_ext <<_ACEOF
21297 /* confdefs.h.  */
21298 _ACEOF
21299 cat confdefs.h >>conftest.$ac_ext
21300 cat >>conftest.$ac_ext <<_ACEOF
21301 /* end confdefs.h.  */
21302 #include <X11/Xlib.h>
21303 _ACEOF
21304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21306   ac_status=$?
21307   grep -v '^ *+' conftest.er1 >conftest.err
21308   rm -f conftest.er1
21309   cat conftest.err >&5
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); } >/dev/null; then
21312   if test -s conftest.err; then
21313     ac_cpp_err=$ac_c_preproc_warn_flag
21314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21315   else
21316     ac_cpp_err=
21317   fi
21318 else
21319   ac_cpp_err=yes
21320 fi
21321 if test -z "$ac_cpp_err"; then
21322   # We can compile using X headers with no special include directory.
21323 ac_x_includes=
21324 else
21325   echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328   for ac_dir in $ac_x_header_dirs; do
21329   if test -r "$ac_dir/X11/Xlib.h"; then
21330     ac_x_includes=$ac_dir
21331     break
21332   fi
21333 done
21334 fi
21335 rm -f conftest.err conftest.$ac_ext
21336 fi # $ac_x_includes = no
21337
21338 if test "$ac_x_libraries" = no; then
21339   # Check for the libraries.
21340   # See if we find them without any special options.
21341   # Don't add to $LIBS permanently.
21342   ac_save_LIBS=$LIBS
21343   LIBS="-lX11 $LIBS"
21344   cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h.  */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h.  */
21350 #include <X11/Xlib.h>
21351 int
21352 main ()
21353 {
21354 XrmInitialize ()
21355   ;
21356   return 0;
21357 }
21358 _ACEOF
21359 rm -f conftest.$ac_objext conftest$ac_exeext
21360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21361   (eval $ac_link) 2>conftest.er1
21362   ac_status=$?
21363   grep -v '^ *+' conftest.er1 >conftest.err
21364   rm -f conftest.er1
21365   cat conftest.err >&5
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); } &&
21368          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370   (eval $ac_try) 2>&5
21371   ac_status=$?
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); }; } &&
21374          { ac_try='test -s conftest$ac_exeext'
21375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376   (eval $ac_try) 2>&5
21377   ac_status=$?
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); }; }; then
21380   LIBS=$ac_save_LIBS
21381 # We can link X programs with no special library path.
21382 ac_x_libraries=
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 LIBS=$ac_save_LIBS
21388 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21389 do
21390   # Don't even attempt the hair of trying to link an X program!
21391   for ac_extension in a so sl; do
21392     if test -r $ac_dir/libX11.$ac_extension; then
21393       ac_x_libraries=$ac_dir
21394       break 2
21395     fi
21396   done
21397 done
21398 fi
21399 rm -f conftest.err conftest.$ac_objext \
21400       conftest$ac_exeext conftest.$ac_ext
21401 fi # $ac_x_libraries = no
21402
21403 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21404   # Didn't find X anywhere.  Cache the known absence of X.
21405   ac_cv_have_x="have_x=no"
21406 else
21407   # Record where we found X for the cache.
21408   ac_cv_have_x="have_x=yes \
21409                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21410 fi
21411 fi
21412
21413   fi
21414   eval "$ac_cv_have_x"
21415 fi # $with_x != no
21416
21417 if test "$have_x" != yes; then
21418   echo "$as_me:$LINENO: result: $have_x" >&5
21419 echo "${ECHO_T}$have_x" >&6
21420   no_x=yes
21421 else
21422   # If each of the values was on the command line, it overrides each guess.
21423   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21424   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21425   # Update the cache value to reflect the command line values.
21426   ac_cv_have_x="have_x=yes \
21427                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21428   # It might be that x_includes is empty (headers are found in the
21429   # standard search path. Then output the corresponding message
21430   ac_out_x_includes=$x_includes
21431   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
21432   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
21433 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
21434 fi
21435
21436
21437 # Check whether we should enable the TUI, but only do so if we really
21438 # can.
21439 if test x"$enable_tui" = xyes; then
21440   if test -d $srcdir/tui; then
21441     if test "$ac_cv_search_waddstr" != no; then
21442       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21443       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21444       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21445       CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21446       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21447       CONFIG_ALL="${CONFIG_ALL} all-tui"
21448       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21449       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21450       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21451     else
21452       { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21453 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21454     fi
21455   fi
21456 fi
21457
21458 # Unlike the sim directory, whether a simulator is linked is controlled by
21459 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21460 # This code just checks for a few cases where we'd like to ignore those
21461 # definitions, even when they're present in the '.mt' file.  These cases
21462 # are when --disable-sim is specified, or if the simulator directory is
21463 # not part of the source tree.
21464 #
21465 # Check whether --enable-sim or --disable-sim was given.
21466 if test "${enable_sim+set}" = set; then
21467   enableval="$enable_sim"
21468   echo "enable_sim = $enable_sim";
21469  echo "enableval = ${enableval}";
21470  case "${enableval}" in
21471   yes) ignore_sim=false ;;
21472   no)  ignore_sim=true ;;
21473   *)   ignore_sim=false ;;
21474  esac
21475 else
21476   ignore_sim=false
21477 fi;
21478
21479 if test ! -d "${srcdir}/../sim"; then
21480   ignore_sim=true
21481 fi
21482
21483 if test "${ignore_sim}" = "true"; then
21484     IGNORE_SIM="SIM="
21485     IGNORE_SIM_OBS="SIM_OBS="
21486 else
21487     IGNORE_SIM=""
21488     IGNORE_SIM_OBS=""
21489
21490 cat >>confdefs.h <<\_ACEOF
21491 #define WITH_SIM 1
21492 _ACEOF
21493
21494 fi
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509 # List of host floatformats.
21510
21511 cat >>confdefs.h <<_ACEOF
21512 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21513 _ACEOF
21514
21515
21516 cat >>confdefs.h <<_ACEOF
21517 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21518 _ACEOF
21519
21520
21521 cat >>confdefs.h <<_ACEOF
21522 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21523 _ACEOF
21524
21525
21526 # target_subdir is used by the testsuite to find the target libraries.
21527 target_subdir=
21528 if test "${host}" != "${target}"; then
21529     target_subdir="${target_alias}/"
21530 fi
21531
21532
21533 frags=
21534 if test "${target}" = "${host}"; then
21535   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21536   if test ! -f ${host_makefile_frag}; then
21537     { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21538 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21539    { (exit 1); exit 1; }; }
21540   fi
21541   frags="$frags $host_makefile_frag"
21542 else
21543   host_makefile_frag=/dev/null
21544 fi
21545
21546 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21547 if test ! -f ${target_makefile_frag}; then
21548   { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21549 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21550    { (exit 1); exit 1; }; }
21551 fi
21552 frags="$frags $target_makefile_frag"
21553
21554
21555
21556
21557
21558 hostfile=`sed -n '
21559 s/XM_FILE[      ]*=[    ]*\([^  ]*\)/\1/p
21560 ' ${host_makefile_frag}`
21561
21562 targetfile=`sed -n '
21563 s/DEPRECATED_TM_FILE[   ]*=[    ]*\([^  ]*\)/\1/p
21564 ' ${target_makefile_frag}`
21565
21566 if test "${target}" = "${host}"; then
21567 # We pick this up from the host configuration file (.mh) because we
21568 # do not have a native configuration Makefile fragment.
21569 nativefile=`sed -n '
21570 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
21571 ' ${host_makefile_frag}`
21572 fi
21573
21574
21575 if test x"${gdb_osabi}" != x ; then
21576
21577 cat >>confdefs.h <<_ACEOF
21578 #define GDB_OSABI_DEFAULT $gdb_osabi
21579 _ACEOF
21580
21581 fi
21582
21583 # Enable multi-ice-gdb-server.
21584 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21585 if test "${enable_multi_ice+set}" = set; then
21586   enableval="$enable_multi_ice"
21587   case $enableval in
21588     yes | no)
21589       ;;
21590     *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21591 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21592    { (exit 1); exit 1; }; } ;;
21593   esac
21594 fi;
21595 if test "x$enable_multi_ice" = xyes; then
21596
21597
21598 subdirs="$subdirs multi-ice"
21599
21600 fi
21601
21602 # We only build gdbserver automatically if host and target are the same.
21603 if test "x$target" = "x$host"; then
21604   echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21605 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21606   if test "x$build_gdbserver" = xyes; then
21607     echo "$as_me:$LINENO: result: yes" >&5
21608 echo "${ECHO_T}yes" >&6
21609
21610
21611 subdirs="$subdirs gdbserver"
21612
21613   else
21614     echo "$as_me:$LINENO: result: no" >&5
21615 echo "${ECHO_T}no" >&6
21616   fi
21617 fi
21618
21619 # We configure the nlm subdirectory on netware targets, as instructed
21620 # by configure.tgt.
21621 if test "x$build_nlm" = xyes; then
21622
21623
21624 subdirs="$subdirs nlm"
21625
21626 fi
21627
21628 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21629 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21630 # to an empty version.
21631
21632 files=
21633 links=
21634
21635 rm -f xm.h
21636 xm_h=""
21637 if test "${hostfile}" != ""; then
21638     xm_h=xm.h
21639     case "${hostfile}" in
21640       xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21641       * ) GDB_XM_FILE="${hostfile}"
21642     esac
21643     files="${files} ${GDB_XM_FILE}"
21644     links="${links} xm.h"
21645
21646 cat >>confdefs.h <<_ACEOF
21647 #define GDB_XM_FILE "${GDB_XM_FILE}"
21648 _ACEOF
21649
21650 fi
21651
21652
21653 rm -f tm.h
21654 tm_h=""
21655 if test "${targetfile}" != ""; then
21656     tm_h=tm.h
21657     case "${targetfile}" in
21658       tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21659       * ) GDB_TM_FILE="${targetfile}"
21660     esac
21661     files="${files} ${GDB_TM_FILE}"
21662     links="${links} tm.h"
21663
21664 cat >>confdefs.h <<_ACEOF
21665 #define GDB_TM_FILE "${GDB_TM_FILE}"
21666 _ACEOF
21667
21668 fi
21669
21670
21671 rm -f nm.h
21672 nm_h=""
21673 if test "${nativefile}" != ""; then
21674     nm_h=nm.h
21675     case "${nativefile}" in
21676       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21677       * ) GDB_NM_FILE="${nativefile}"
21678     esac
21679     files="${files} ${GDB_NM_FILE}"
21680     links="${links} nm.h"
21681
21682 cat >>confdefs.h <<_ACEOF
21683 #define GDB_NM_FILE "${GDB_NM_FILE}"
21684 _ACEOF
21685
21686 fi
21687
21688
21689 ac_sources="$files"
21690 ac_dests="$links"
21691 while test -n "$ac_sources"; do
21692   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21693   set $ac_sources; ac_source=$1; shift; ac_sources=$*
21694   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21695 done
21696           ac_config_links="$ac_config_links $ac_config_links_1"
21697
21698
21699
21700
21701
21702
21703 cat >>confdefs.h <<\_ACEOF
21704 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21705 _ACEOF
21706
21707
21708
21709
21710
21711 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21712 if test "${with_libiconv_prefix+set}" = set; then
21713   withval="$with_libiconv_prefix"
21714
21715     for dir in `echo "$withval" | tr : ' '`; do
21716       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21717       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21718     done
21719
21720 fi;
21721
21722   echo "$as_me:$LINENO: checking for iconv" >&5
21723 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21724 if test "${am_cv_func_iconv+set}" = set; then
21725   echo $ECHO_N "(cached) $ECHO_C" >&6
21726 else
21727
21728     am_cv_func_iconv="no, consider installing GNU libiconv"
21729     am_cv_lib_iconv=no
21730     cat >conftest.$ac_ext <<_ACEOF
21731 /* confdefs.h.  */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h.  */
21736 #include <stdlib.h>
21737 #include <iconv.h>
21738 int
21739 main ()
21740 {
21741 iconv_t cd = iconv_open("","");
21742        iconv(cd,NULL,NULL,NULL,NULL);
21743        iconv_close(cd);
21744   ;
21745   return 0;
21746 }
21747 _ACEOF
21748 rm -f conftest.$ac_objext conftest$ac_exeext
21749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21750   (eval $ac_link) 2>conftest.er1
21751   ac_status=$?
21752   grep -v '^ *+' conftest.er1 >conftest.err
21753   rm -f conftest.er1
21754   cat conftest.err >&5
21755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756   (exit $ac_status); } &&
21757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759   (eval $ac_try) 2>&5
21760   ac_status=$?
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); }; } &&
21763          { ac_try='test -s conftest$ac_exeext'
21764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765   (eval $ac_try) 2>&5
21766   ac_status=$?
21767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768   (exit $ac_status); }; }; then
21769   am_cv_func_iconv=yes
21770 else
21771   echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21773
21774 fi
21775 rm -f conftest.err conftest.$ac_objext \
21776       conftest$ac_exeext conftest.$ac_ext
21777     if test "$am_cv_func_iconv" != yes; then
21778       am_save_LIBS="$LIBS"
21779       LIBS="$LIBS -liconv"
21780       cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h.  */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h.  */
21786 #include <stdlib.h>
21787 #include <iconv.h>
21788 int
21789 main ()
21790 {
21791 iconv_t cd = iconv_open("","");
21792          iconv(cd,NULL,NULL,NULL,NULL);
21793          iconv_close(cd);
21794   ;
21795   return 0;
21796 }
21797 _ACEOF
21798 rm -f conftest.$ac_objext conftest$ac_exeext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21800   (eval $ac_link) 2>conftest.er1
21801   ac_status=$?
21802   grep -v '^ *+' conftest.er1 >conftest.err
21803   rm -f conftest.er1
21804   cat conftest.err >&5
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); } &&
21807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809   (eval $ac_try) 2>&5
21810   ac_status=$?
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); }; } &&
21813          { ac_try='test -s conftest$ac_exeext'
21814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815   (eval $ac_try) 2>&5
21816   ac_status=$?
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); }; }; then
21819   am_cv_lib_iconv=yes
21820         am_cv_func_iconv=yes
21821 else
21822   echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21824
21825 fi
21826 rm -f conftest.err conftest.$ac_objext \
21827       conftest$ac_exeext conftest.$ac_ext
21828       LIBS="$am_save_LIBS"
21829     fi
21830
21831 fi
21832 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21833 echo "${ECHO_T}$am_cv_func_iconv" >&6
21834   if test "$am_cv_func_iconv" = yes; then
21835
21836 cat >>confdefs.h <<\_ACEOF
21837 #define HAVE_ICONV 1
21838 _ACEOF
21839
21840     echo "$as_me:$LINENO: checking for iconv declaration" >&5
21841 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21842     if test "${am_cv_proto_iconv+set}" = set; then
21843   echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845
21846       cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h.  */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h.  */
21852
21853 #include <stdlib.h>
21854 #include <iconv.h>
21855 extern
21856 #ifdef __cplusplus
21857 "C"
21858 #endif
21859 #if defined(__STDC__) || defined(__cplusplus)
21860 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21861 #else
21862 size_t iconv();
21863 #endif
21864
21865 int
21866 main ()
21867 {
21868
21869   ;
21870   return 0;
21871 }
21872 _ACEOF
21873 rm -f conftest.$ac_objext
21874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21875   (eval $ac_compile) 2>conftest.er1
21876   ac_status=$?
21877   grep -v '^ *+' conftest.er1 >conftest.err
21878   rm -f conftest.er1
21879   cat conftest.err >&5
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); } &&
21882          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884   (eval $ac_try) 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); }; } &&
21888          { ac_try='test -s conftest.$ac_objext'
21889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890   (eval $ac_try) 2>&5
21891   ac_status=$?
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); }; }; then
21894   am_cv_proto_iconv_arg1=""
21895 else
21896   echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21898
21899 am_cv_proto_iconv_arg1="const"
21900 fi
21901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21902       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);"
21903 fi
21904
21905     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21906     echo "$as_me:$LINENO: result: ${ac_t:-
21907          }$am_cv_proto_iconv" >&5
21908 echo "${ECHO_T}${ac_t:-
21909          }$am_cv_proto_iconv" >&6
21910
21911 cat >>confdefs.h <<_ACEOF
21912 #define ICONV_CONST $am_cv_proto_iconv_arg1
21913 _ACEOF
21914
21915   fi
21916   LIBICONV=
21917   if test "$am_cv_lib_iconv" = yes; then
21918     LIBICONV="-liconv"
21919   fi
21920
21921
21922
21923                     ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21924           ac_config_commands="$ac_config_commands default"
21925 cat >confcache <<\_ACEOF
21926 # This file is a shell script that caches the results of configure
21927 # tests run on this system so they can be shared between configure
21928 # scripts and configure runs, see configure's option --config-cache.
21929 # It is not useful on other systems.  If it contains results you don't
21930 # want to keep, you may remove or edit it.
21931 #
21932 # config.status only pays attention to the cache file if you give it
21933 # the --recheck option to rerun configure.
21934 #
21935 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21936 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21937 # following values.
21938
21939 _ACEOF
21940
21941 # The following way of writing the cache mishandles newlines in values,
21942 # but we know of no workaround that is simple, portable, and efficient.
21943 # So, don't put newlines in cache variables' values.
21944 # Ultrix sh set writes to stderr and can't be redirected directly,
21945 # and sets the high bit in the cache file unless we assign to the vars.
21946 {
21947   (set) 2>&1 |
21948     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21949     *ac_space=\ *)
21950       # `set' does not quote correctly, so add quotes (double-quote
21951       # substitution turns \\\\ into \\, and sed turns \\ into \).
21952       sed -n \
21953         "s/'/'\\\\''/g;
21954           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21955       ;;
21956     *)
21957       # `set' quotes correctly as required by POSIX, so do not add quotes.
21958       sed -n \
21959         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21960       ;;
21961     esac;
21962 } |
21963   sed '
21964      t clear
21965      : clear
21966      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21967      t end
21968      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21969      : end' >>confcache
21970 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21971   if test -w $cache_file; then
21972     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21973     cat confcache >$cache_file
21974   else
21975     echo "not updating unwritable cache $cache_file"
21976   fi
21977 fi
21978 rm -f confcache
21979
21980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21981 # Let make expand exec_prefix.
21982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21983
21984 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21985 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21986 # trailing colons and then remove the whole line if VPATH becomes empty
21987 # (actually we leave an empty line to preserve line numbers).
21988 if test "x$srcdir" = x.; then
21989   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21990 s/:*\$(srcdir):*/:/;
21991 s/:*\${srcdir}:*/:/;
21992 s/:*@srcdir@:*/:/;
21993 s/^\([^=]*=[     ]*\):*/\1/;
21994 s/:*$//;
21995 s/^[^=]*=[       ]*$//;
21996 }'
21997 fi
21998
21999 DEFS=-DHAVE_CONFIG_H
22000
22001 ac_libobjs=
22002 ac_ltlibobjs=
22003 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22004   # 1. Remove the extension, and $U if already installed.
22005   ac_i=`echo "$ac_i" |
22006          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22007   # 2. Add them.
22008   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22009   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22010 done
22011 LIBOBJS=$ac_libobjs
22012
22013 LTLIBOBJS=$ac_ltlibobjs
22014
22015
22016 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22017   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22018 Usually this means the macro was only invoked conditionally." >&5
22019 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22020 Usually this means the macro was only invoked conditionally." >&2;}
22021    { (exit 1); exit 1; }; }
22022 fi
22023
22024 : ${CONFIG_STATUS=./config.status}
22025 ac_clean_files_save=$ac_clean_files
22026 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22027 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22028 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22029 cat >$CONFIG_STATUS <<_ACEOF
22030 #! $SHELL
22031 # Generated by $as_me.
22032 # Run this file to recreate the current configuration.
22033 # Compiler output produced by configure, useful for debugging
22034 # configure, is in config.log if it exists.
22035
22036 debug=false
22037 ac_cs_recheck=false
22038 ac_cs_silent=false
22039 SHELL=\${CONFIG_SHELL-$SHELL}
22040 _ACEOF
22041
22042 cat >>$CONFIG_STATUS <<\_ACEOF
22043 ## --------------------- ##
22044 ## M4sh Initialization.  ##
22045 ## --------------------- ##
22046
22047 # Be Bourne compatible
22048 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22049   emulate sh
22050   NULLCMD=:
22051   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22052   # is contrary to our usage.  Disable this feature.
22053   alias -g '${1+"$@"}'='"$@"'
22054 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22055   set -o posix
22056 fi
22057 DUALCASE=1; export DUALCASE # for MKS sh
22058
22059 # Support unset when possible.
22060 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22061   as_unset=unset
22062 else
22063   as_unset=false
22064 fi
22065
22066
22067 # Work around bugs in pre-3.0 UWIN ksh.
22068 $as_unset ENV MAIL MAILPATH
22069 PS1='$ '
22070 PS2='> '
22071 PS4='+ '
22072
22073 # NLS nuisances.
22074 for as_var in \
22075   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22076   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22077   LC_TELEPHONE LC_TIME
22078 do
22079   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22080     eval $as_var=C; export $as_var
22081   else
22082     $as_unset $as_var
22083   fi
22084 done
22085
22086 # Required to use basename.
22087 if expr a : '\(a\)' >/dev/null 2>&1; then
22088   as_expr=expr
22089 else
22090   as_expr=false
22091 fi
22092
22093 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22094   as_basename=basename
22095 else
22096   as_basename=false
22097 fi
22098
22099
22100 # Name of the executable.
22101 as_me=`$as_basename "$0" ||
22102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22103          X"$0" : 'X\(//\)$' \| \
22104          X"$0" : 'X\(/\)$' \| \
22105          .     : '\(.\)' 2>/dev/null ||
22106 echo X/"$0" |
22107     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22108           /^X\/\(\/\/\)$/{ s//\1/; q; }
22109           /^X\/\(\/\).*/{ s//\1/; q; }
22110           s/.*/./; q'`
22111
22112
22113 # PATH needs CR, and LINENO needs CR and PATH.
22114 # Avoid depending upon Character Ranges.
22115 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22116 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22117 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22118 as_cr_digits='0123456789'
22119 as_cr_alnum=$as_cr_Letters$as_cr_digits
22120
22121 # The user is always right.
22122 if test "${PATH_SEPARATOR+set}" != set; then
22123   echo "#! /bin/sh" >conf$$.sh
22124   echo  "exit 0"   >>conf$$.sh
22125   chmod +x conf$$.sh
22126   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22127     PATH_SEPARATOR=';'
22128   else
22129     PATH_SEPARATOR=:
22130   fi
22131   rm -f conf$$.sh
22132 fi
22133
22134
22135   as_lineno_1=$LINENO
22136   as_lineno_2=$LINENO
22137   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22138   test "x$as_lineno_1" != "x$as_lineno_2" &&
22139   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22140   # Find who we are.  Look in the path if we contain no path at all
22141   # relative or not.
22142   case $0 in
22143     *[\\/]* ) as_myself=$0 ;;
22144     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22145 for as_dir in $PATH
22146 do
22147   IFS=$as_save_IFS
22148   test -z "$as_dir" && as_dir=.
22149   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22150 done
22151
22152        ;;
22153   esac
22154   # We did not find ourselves, most probably we were run as `sh COMMAND'
22155   # in which case we are not to be found in the path.
22156   if test "x$as_myself" = x; then
22157     as_myself=$0
22158   fi
22159   if test ! -f "$as_myself"; then
22160     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22161 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22162    { (exit 1); exit 1; }; }
22163   fi
22164   case $CONFIG_SHELL in
22165   '')
22166     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22167 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22168 do
22169   IFS=$as_save_IFS
22170   test -z "$as_dir" && as_dir=.
22171   for as_base in sh bash ksh sh5; do
22172          case $as_dir in
22173          /*)
22174            if ("$as_dir/$as_base" -c '
22175   as_lineno_1=$LINENO
22176   as_lineno_2=$LINENO
22177   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22178   test "x$as_lineno_1" != "x$as_lineno_2" &&
22179   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22180              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22181              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22182              CONFIG_SHELL=$as_dir/$as_base
22183              export CONFIG_SHELL
22184              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22185            fi;;
22186          esac
22187        done
22188 done
22189 ;;
22190   esac
22191
22192   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22193   # uniformly replaced by the line number.  The first 'sed' inserts a
22194   # line-number line before each line; the second 'sed' does the real
22195   # work.  The second script uses 'N' to pair each line-number line
22196   # with the numbered line, and appends trailing '-' during
22197   # substitution so that $LINENO is not a special case at line end.
22198   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22199   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22200   sed '=' <$as_myself |
22201     sed '
22202       N
22203       s,$,-,
22204       : loop
22205       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22206       t loop
22207       s,-$,,
22208       s,^['$as_cr_digits']*\n,,
22209     ' >$as_me.lineno &&
22210   chmod +x $as_me.lineno ||
22211     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22212 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22213    { (exit 1); exit 1; }; }
22214
22215   # Don't try to exec as it changes $[0], causing all sort of problems
22216   # (the dirname of $[0] is not the place where we might find the
22217   # original and so on.  Autoconf is especially sensible to this).
22218   . ./$as_me.lineno
22219   # Exit status is that of the last command.
22220   exit
22221 }
22222
22223
22224 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22225   *c*,-n*) ECHO_N= ECHO_C='
22226 ' ECHO_T='      ' ;;
22227   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22228   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22229 esac
22230
22231 if expr a : '\(a\)' >/dev/null 2>&1; then
22232   as_expr=expr
22233 else
22234   as_expr=false
22235 fi
22236
22237 rm -f conf$$ conf$$.exe conf$$.file
22238 echo >conf$$.file
22239 if ln -s conf$$.file conf$$ 2>/dev/null; then
22240   # We could just check for DJGPP; but this test a) works b) is more generic
22241   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22242   if test -f conf$$.exe; then
22243     # Don't use ln at all; we don't have any links
22244     as_ln_s='cp -p'
22245   else
22246     as_ln_s='ln -s'
22247   fi
22248 elif ln conf$$.file conf$$ 2>/dev/null; then
22249   as_ln_s=ln
22250 else
22251   as_ln_s='cp -p'
22252 fi
22253 rm -f conf$$ conf$$.exe conf$$.file
22254
22255 if mkdir -p . 2>/dev/null; then
22256   as_mkdir_p=:
22257 else
22258   test -d ./-p && rmdir ./-p
22259   as_mkdir_p=false
22260 fi
22261
22262 as_executable_p="test -f"
22263
22264 # Sed expression to map a string onto a valid CPP name.
22265 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22266
22267 # Sed expression to map a string onto a valid variable name.
22268 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22269
22270
22271 # IFS
22272 # We need space, tab and new line, in precisely that order.
22273 as_nl='
22274 '
22275 IFS="   $as_nl"
22276
22277 # CDPATH.
22278 $as_unset CDPATH
22279
22280 exec 6>&1
22281
22282 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22283 # report actual input values of CONFIG_FILES etc. instead of their
22284 # values after options handling.  Logging --version etc. is OK.
22285 exec 5>>config.log
22286 {
22287   echo
22288   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22289 ## Running $as_me. ##
22290 _ASBOX
22291 } >&5
22292 cat >&5 <<_CSEOF
22293
22294 This file was extended by $as_me, which was
22295 generated by GNU Autoconf 2.59.  Invocation command line was
22296
22297   CONFIG_FILES    = $CONFIG_FILES
22298   CONFIG_HEADERS  = $CONFIG_HEADERS
22299   CONFIG_LINKS    = $CONFIG_LINKS
22300   CONFIG_COMMANDS = $CONFIG_COMMANDS
22301   $ $0 $@
22302
22303 _CSEOF
22304 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22305 echo >&5
22306 _ACEOF
22307
22308 # Files that config.status was made for.
22309 if test -n "$ac_config_files"; then
22310   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22311 fi
22312
22313 if test -n "$ac_config_headers"; then
22314   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22315 fi
22316
22317 if test -n "$ac_config_links"; then
22318   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22319 fi
22320
22321 if test -n "$ac_config_commands"; then
22322   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22323 fi
22324
22325 cat >>$CONFIG_STATUS <<\_ACEOF
22326
22327 ac_cs_usage="\
22328 \`$as_me' instantiates files from templates according to the
22329 current configuration.
22330
22331 Usage: $0 [OPTIONS] [FILE]...
22332
22333   -h, --help       print this help, then exit
22334   -V, --version    print version number, then exit
22335   -q, --quiet      do not print progress messages
22336   -d, --debug      don't remove temporary files
22337       --recheck    update $as_me by reconfiguring in the same conditions
22338   --file=FILE[:TEMPLATE]
22339                    instantiate the configuration file FILE
22340   --header=FILE[:TEMPLATE]
22341                    instantiate the configuration header FILE
22342
22343 Configuration files:
22344 $config_files
22345
22346 Configuration headers:
22347 $config_headers
22348
22349 Configuration links:
22350 $config_links
22351
22352 Configuration commands:
22353 $config_commands
22354
22355 Report bugs to <bug-autoconf@gnu.org>."
22356 _ACEOF
22357
22358 cat >>$CONFIG_STATUS <<_ACEOF
22359 ac_cs_version="\\
22360 config.status
22361 configured by $0, generated by GNU Autoconf 2.59,
22362   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22363
22364 Copyright (C) 2003 Free Software Foundation, Inc.
22365 This config.status script is free software; the Free Software Foundation
22366 gives unlimited permission to copy, distribute and modify it."
22367 srcdir=$srcdir
22368 INSTALL="$INSTALL"
22369 _ACEOF
22370
22371 cat >>$CONFIG_STATUS <<\_ACEOF
22372 # If no file are specified by the user, then we need to provide default
22373 # value.  By we need to know if files were specified by the user.
22374 ac_need_defaults=:
22375 while test $# != 0
22376 do
22377   case $1 in
22378   --*=*)
22379     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22380     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22381     ac_shift=:
22382     ;;
22383   -*)
22384     ac_option=$1
22385     ac_optarg=$2
22386     ac_shift=shift
22387     ;;
22388   *) # This is not an option, so the user has probably given explicit
22389      # arguments.
22390      ac_option=$1
22391      ac_need_defaults=false;;
22392   esac
22393
22394   case $ac_option in
22395   # Handling of the options.
22396 _ACEOF
22397 cat >>$CONFIG_STATUS <<\_ACEOF
22398   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22399     ac_cs_recheck=: ;;
22400   --version | --vers* | -V )
22401     echo "$ac_cs_version"; exit 0 ;;
22402   --he | --h)
22403     # Conflict between --help and --header
22404     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22405 Try \`$0 --help' for more information." >&5
22406 echo "$as_me: error: ambiguous option: $1
22407 Try \`$0 --help' for more information." >&2;}
22408    { (exit 1); exit 1; }; };;
22409   --help | --hel | -h )
22410     echo "$ac_cs_usage"; exit 0 ;;
22411   --debug | --d* | -d )
22412     debug=: ;;
22413   --file | --fil | --fi | --f )
22414     $ac_shift
22415     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22416     ac_need_defaults=false;;
22417   --header | --heade | --head | --hea )
22418     $ac_shift
22419     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22420     ac_need_defaults=false;;
22421   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22422   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22423     ac_cs_silent=: ;;
22424
22425   # This is an error.
22426   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22427 Try \`$0 --help' for more information." >&5
22428 echo "$as_me: error: unrecognized option: $1
22429 Try \`$0 --help' for more information." >&2;}
22430    { (exit 1); exit 1; }; } ;;
22431
22432   *) ac_config_targets="$ac_config_targets $1" ;;
22433
22434   esac
22435   shift
22436 done
22437
22438 ac_configure_extra_args=
22439
22440 if $ac_cs_silent; then
22441   exec 6>/dev/null
22442   ac_configure_extra_args="$ac_configure_extra_args --silent"
22443 fi
22444
22445 _ACEOF
22446 cat >>$CONFIG_STATUS <<_ACEOF
22447 if \$ac_cs_recheck; then
22448   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22449   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22450 fi
22451
22452 _ACEOF
22453
22454 cat >>$CONFIG_STATUS <<_ACEOF
22455 #
22456 # INIT-COMMANDS section.
22457 #
22458
22459
22460 gdb_host_cpu=$gdb_host_cpu
22461 gdb_target_cpu=$gdb_target_cpu
22462 nativefile=$nativefile
22463
22464
22465 _ACEOF
22466
22467
22468
22469 cat >>$CONFIG_STATUS <<\_ACEOF
22470 for ac_config_target in $ac_config_targets
22471 do
22472   case "$ac_config_target" in
22473   # Handling of arguments.
22474   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22475   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22476   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22477   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22478   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22479   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22480 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22481    { (exit 1); exit 1; }; };;
22482   esac
22483 done
22484
22485 # If the user did not use the arguments to specify the items to instantiate,
22486 # then the envvar interface is used.  Set only those that are not.
22487 # We use the long form for the default assignment because of an extremely
22488 # bizarre bug on SunOS 4.1.3.
22489 if $ac_need_defaults; then
22490   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22491   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22492   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22493   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22494 fi
22495
22496 # Have a temporary directory for convenience.  Make it in the build tree
22497 # simply because there is no reason to put it here, and in addition,
22498 # creating and moving files from /tmp can sometimes cause problems.
22499 # Create a temporary directory, and hook for its removal unless debugging.
22500 $debug ||
22501 {
22502   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22503   trap '{ (exit 1); exit 1; }' 1 2 13 15
22504 }
22505
22506 # Create a (secure) tmp directory for tmp files.
22507
22508 {
22509   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22510   test -n "$tmp" && test -d "$tmp"
22511 }  ||
22512 {
22513   tmp=./confstat$$-$RANDOM
22514   (umask 077 && mkdir $tmp)
22515 } ||
22516 {
22517    echo "$me: cannot create a temporary directory in ." >&2
22518    { (exit 1); exit 1; }
22519 }
22520
22521 _ACEOF
22522
22523 cat >>$CONFIG_STATUS <<_ACEOF
22524
22525 #
22526 # CONFIG_FILES section.
22527 #
22528
22529 # No need to generate the scripts if there are no CONFIG_FILES.
22530 # This happens for instance when ./config.status config.h
22531 if test -n "\$CONFIG_FILES"; then
22532   # Protect against being on the right side of a sed subst in config.status.
22533   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22534    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22535 s,@SHELL@,$SHELL,;t t
22536 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22537 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22538 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22539 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22540 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22541 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22542 s,@exec_prefix@,$exec_prefix,;t t
22543 s,@prefix@,$prefix,;t t
22544 s,@program_transform_name@,$program_transform_name,;t t
22545 s,@bindir@,$bindir,;t t
22546 s,@sbindir@,$sbindir,;t t
22547 s,@libexecdir@,$libexecdir,;t t
22548 s,@datadir@,$datadir,;t t
22549 s,@sysconfdir@,$sysconfdir,;t t
22550 s,@sharedstatedir@,$sharedstatedir,;t t
22551 s,@localstatedir@,$localstatedir,;t t
22552 s,@libdir@,$libdir,;t t
22553 s,@includedir@,$includedir,;t t
22554 s,@oldincludedir@,$oldincludedir,;t t
22555 s,@infodir@,$infodir,;t t
22556 s,@mandir@,$mandir,;t t
22557 s,@build_alias@,$build_alias,;t t
22558 s,@host_alias@,$host_alias,;t t
22559 s,@target_alias@,$target_alias,;t t
22560 s,@DEFS@,$DEFS,;t t
22561 s,@ECHO_C@,$ECHO_C,;t t
22562 s,@ECHO_N@,$ECHO_N,;t t
22563 s,@ECHO_T@,$ECHO_T,;t t
22564 s,@LIBS@,$LIBS,;t t
22565 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22566 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22567 s,@MAINT@,$MAINT,;t t
22568 s,@CC@,$CC,;t t
22569 s,@CFLAGS@,$CFLAGS,;t t
22570 s,@LDFLAGS@,$LDFLAGS,;t t
22571 s,@CPPFLAGS@,$CPPFLAGS,;t t
22572 s,@ac_ct_CC@,$ac_ct_CC,;t t
22573 s,@EXEEXT@,$EXEEXT,;t t
22574 s,@OBJEXT@,$OBJEXT,;t t
22575 s,@CPP@,$CPP,;t t
22576 s,@EGREP@,$EGREP,;t t
22577 s,@build@,$build,;t t
22578 s,@build_cpu@,$build_cpu,;t t
22579 s,@build_vendor@,$build_vendor,;t t
22580 s,@build_os@,$build_os,;t t
22581 s,@host@,$host,;t t
22582 s,@host_cpu@,$host_cpu,;t t
22583 s,@host_vendor@,$host_vendor,;t t
22584 s,@host_os@,$host_os,;t t
22585 s,@target@,$target,;t t
22586 s,@target_cpu@,$target_cpu,;t t
22587 s,@target_vendor@,$target_vendor,;t t
22588 s,@target_os@,$target_os,;t t
22589 s,@SET_MAKE@,$SET_MAKE,;t t
22590 s,@RANLIB@,$RANLIB,;t t
22591 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22592 s,@ALLOCA@,$ALLOCA,;t t
22593 s,@USE_NLS@,$USE_NLS,;t t
22594 s,@MSGFMT@,$MSGFMT,;t t
22595 s,@GMSGFMT@,$GMSGFMT,;t t
22596 s,@XGETTEXT@,$XGETTEXT,;t t
22597 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22598 s,@CATALOGS@,$CATALOGS,;t t
22599 s,@CATOBJEXT@,$CATOBJEXT,;t t
22600 s,@DATADIRNAME@,$DATADIRNAME,;t t
22601 s,@GMOFILES@,$GMOFILES,;t t
22602 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22603 s,@INTLDEPS@,$INTLDEPS,;t t
22604 s,@INTLLIBS@,$INTLLIBS,;t t
22605 s,@INTLOBJS@,$INTLOBJS,;t t
22606 s,@POFILES@,$POFILES,;t t
22607 s,@POSUB@,$POSUB,;t t
22608 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22609 s,@GT_NO@,$GT_NO,;t t
22610 s,@GT_YES@,$GT_YES,;t t
22611 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22612 s,@l@,$l,;t t
22613 s,@localedir@,$localedir,;t t
22614 s,@PACKAGE@,$PACKAGE,;t t
22615 s,@subdirs@,$subdirs,;t t
22616 s,@AWK@,$AWK,;t t
22617 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22618 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22619 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22620 s,@LN_S@,$LN_S,;t t
22621 s,@YACC@,$YACC,;t t
22622 s,@AR@,$AR,;t t
22623 s,@ac_ct_AR@,$ac_ct_AR,;t t
22624 s,@DLLTOOL@,$DLLTOOL,;t t
22625 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22626 s,@WINDRES@,$WINDRES,;t t
22627 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22628 s,@MIG@,$MIG,;t t
22629 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22630 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22631 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22632 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22633 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22634 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22635 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22636 s,@WIN32LIBS@,$WIN32LIBS,;t t
22637 s,@LIBGUI@,$LIBGUI,;t t
22638 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22639 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22640 s,@TCL_VERSION@,$TCL_VERSION,;t t
22641 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22642 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22643 s,@TCL_CC@,$TCL_CC,;t t
22644 s,@TCL_DEFS@,$TCL_DEFS,;t t
22645 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22646 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22647 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22648 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22649 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22650 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22651 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22652 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22653 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22654 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22655 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22656 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22657 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22658 s,@TK_VERSION@,$TK_VERSION,;t t
22659 s,@TK_DEFS@,$TK_DEFS,;t t
22660 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22661 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22662 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22663 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22664 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22665 s,@TCLHDIR@,$TCLHDIR,;t t
22666 s,@TKHDIR@,$TKHDIR,;t t
22667 s,@ITCLHDIR@,$ITCLHDIR,;t t
22668 s,@ITKHDIR@,$ITKHDIR,;t t
22669 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22670 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22671 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22672 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22673 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22674 s,@ITK_VERSION@,$ITK_VERSION,;t t
22675 s,@ITK_DEFS@,$ITK_DEFS,;t t
22676 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22677 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22678 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22679 s,@X_CFLAGS@,$X_CFLAGS,;t t
22680 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22681 s,@X_LIBS@,$X_LIBS,;t t
22682 s,@TCL_DEPS@,$TCL_DEPS,;t t
22683 s,@TK_DEPS@,$TK_DEPS,;t t
22684 s,@ITCLLIB@,$ITCLLIB,;t t
22685 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22686 s,@ITKLIB@,$ITKLIB,;t t
22687 s,@ITK_DEPS@,$ITK_DEPS,;t t
22688 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22689 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22690 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22691 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22692 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22693 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22694 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22695 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22696 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22697 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22698 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22699 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22700 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22701 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22702 s,@target_subdir@,$target_subdir,;t t
22703 s,@frags@,$frags,;t t
22704 s,@xm_h@,$xm_h,;t t
22705 s,@tm_h@,$tm_h,;t t
22706 s,@nm_h@,$nm_h,;t t
22707 s,@LIBICONV@,$LIBICONV,;t t
22708 s,@LIBOBJS@,$LIBOBJS,;t t
22709 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22710 /@host_makefile_frag@/r $host_makefile_frag
22711 s,@host_makefile_frag@,,;t t
22712 /@target_makefile_frag@/r $target_makefile_frag
22713 s,@target_makefile_frag@,,;t t
22714 CEOF
22715
22716 _ACEOF
22717
22718   cat >>$CONFIG_STATUS <<\_ACEOF
22719   # Split the substitutions into bite-sized pieces for seds with
22720   # small command number limits, like on Digital OSF/1 and HP-UX.
22721   ac_max_sed_lines=48
22722   ac_sed_frag=1 # Number of current file.
22723   ac_beg=1 # First line for current file.
22724   ac_end=$ac_max_sed_lines # Line after last line for current file.
22725   ac_more_lines=:
22726   ac_sed_cmds=
22727   while $ac_more_lines; do
22728     if test $ac_beg -gt 1; then
22729       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22730     else
22731       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22732     fi
22733     if test ! -s $tmp/subs.frag; then
22734       ac_more_lines=false
22735     else
22736       # The purpose of the label and of the branching condition is to
22737       # speed up the sed processing (if there are no `@' at all, there
22738       # is no need to browse any of the substitutions).
22739       # These are the two extra sed commands mentioned above.
22740       (echo ':t
22741   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22742       if test -z "$ac_sed_cmds"; then
22743         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22744       else
22745         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22746       fi
22747       ac_sed_frag=`expr $ac_sed_frag + 1`
22748       ac_beg=$ac_end
22749       ac_end=`expr $ac_end + $ac_max_sed_lines`
22750     fi
22751   done
22752   if test -z "$ac_sed_cmds"; then
22753     ac_sed_cmds=cat
22754   fi
22755 fi # test -n "$CONFIG_FILES"
22756
22757 _ACEOF
22758 cat >>$CONFIG_STATUS <<\_ACEOF
22759 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22760   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22761   case $ac_file in
22762   - | *:- | *:-:* ) # input from stdin
22763         cat >$tmp/stdin
22764         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22765         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22766   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22767         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22768   * )   ac_file_in=$ac_file.in ;;
22769   esac
22770
22771   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22772   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22774          X"$ac_file" : 'X\(//\)[^/]' \| \
22775          X"$ac_file" : 'X\(//\)$' \| \
22776          X"$ac_file" : 'X\(/\)' \| \
22777          .     : '\(.\)' 2>/dev/null ||
22778 echo X"$ac_file" |
22779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22780           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22781           /^X\(\/\/\)$/{ s//\1/; q; }
22782           /^X\(\/\).*/{ s//\1/; q; }
22783           s/.*/./; q'`
22784   { if $as_mkdir_p; then
22785     mkdir -p "$ac_dir"
22786   else
22787     as_dir="$ac_dir"
22788     as_dirs=
22789     while test ! -d "$as_dir"; do
22790       as_dirs="$as_dir $as_dirs"
22791       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22793          X"$as_dir" : 'X\(//\)[^/]' \| \
22794          X"$as_dir" : 'X\(//\)$' \| \
22795          X"$as_dir" : 'X\(/\)' \| \
22796          .     : '\(.\)' 2>/dev/null ||
22797 echo X"$as_dir" |
22798     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22799           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22800           /^X\(\/\/\)$/{ s//\1/; q; }
22801           /^X\(\/\).*/{ s//\1/; q; }
22802           s/.*/./; q'`
22803     done
22804     test ! -n "$as_dirs" || mkdir $as_dirs
22805   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22806 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22807    { (exit 1); exit 1; }; }; }
22808
22809   ac_builddir=.
22810
22811 if test "$ac_dir" != .; then
22812   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22813   # A "../" for each directory in $ac_dir_suffix.
22814   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22815 else
22816   ac_dir_suffix= ac_top_builddir=
22817 fi
22818
22819 case $srcdir in
22820   .)  # No --srcdir option.  We are building in place.
22821     ac_srcdir=.
22822     if test -z "$ac_top_builddir"; then
22823        ac_top_srcdir=.
22824     else
22825        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22826     fi ;;
22827   [\\/]* | ?:[\\/]* )  # Absolute path.
22828     ac_srcdir=$srcdir$ac_dir_suffix;
22829     ac_top_srcdir=$srcdir ;;
22830   *) # Relative path.
22831     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22832     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22833 esac
22834
22835 # Do not use `cd foo && pwd` to compute absolute paths, because
22836 # the directories may not exist.
22837 case `pwd` in
22838 .) ac_abs_builddir="$ac_dir";;
22839 *)
22840   case "$ac_dir" in
22841   .) ac_abs_builddir=`pwd`;;
22842   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22843   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22844   esac;;
22845 esac
22846 case $ac_abs_builddir in
22847 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22848 *)
22849   case ${ac_top_builddir}. in
22850   .) ac_abs_top_builddir=$ac_abs_builddir;;
22851   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22852   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22853   esac;;
22854 esac
22855 case $ac_abs_builddir in
22856 .) ac_abs_srcdir=$ac_srcdir;;
22857 *)
22858   case $ac_srcdir in
22859   .) ac_abs_srcdir=$ac_abs_builddir;;
22860   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22861   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22862   esac;;
22863 esac
22864 case $ac_abs_builddir in
22865 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22866 *)
22867   case $ac_top_srcdir in
22868   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22869   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22870   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22871   esac;;
22872 esac
22873
22874
22875   case $INSTALL in
22876   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22877   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22878   esac
22879
22880   # Let's still pretend it is `configure' which instantiates (i.e., don't
22881   # use $as_me), people would be surprised to read:
22882   #    /* config.h.  Generated by config.status.  */
22883   if test x"$ac_file" = x-; then
22884     configure_input=
22885   else
22886     configure_input="$ac_file.  "
22887   fi
22888   configure_input=$configure_input"Generated from `echo $ac_file_in |
22889                                      sed 's,.*/,,'` by configure."
22890
22891   # First look for the input files in the build tree, otherwise in the
22892   # src tree.
22893   ac_file_inputs=`IFS=:
22894     for f in $ac_file_in; do
22895       case $f in
22896       -) echo $tmp/stdin ;;
22897       [\\/$]*)
22898          # Absolute (can't be DOS-style, as IFS=:)
22899          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22900 echo "$as_me: error: cannot find input file: $f" >&2;}
22901    { (exit 1); exit 1; }; }
22902          echo "$f";;
22903       *) # Relative
22904          if test -f "$f"; then
22905            # Build tree
22906            echo "$f"
22907          elif test -f "$srcdir/$f"; then
22908            # Source tree
22909            echo "$srcdir/$f"
22910          else
22911            # /dev/null tree
22912            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22913 echo "$as_me: error: cannot find input file: $f" >&2;}
22914    { (exit 1); exit 1; }; }
22915          fi;;
22916       esac
22917     done` || { (exit 1); exit 1; }
22918
22919   if test x"$ac_file" != x-; then
22920     { echo "$as_me:$LINENO: creating $ac_file" >&5
22921 echo "$as_me: creating $ac_file" >&6;}
22922     rm -f "$ac_file"
22923   fi
22924 _ACEOF
22925 cat >>$CONFIG_STATUS <<_ACEOF
22926   sed "$ac_vpsub
22927 $extrasub
22928 _ACEOF
22929 cat >>$CONFIG_STATUS <<\_ACEOF
22930 :t
22931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22932 s,@configure_input@,$configure_input,;t t
22933 s,@srcdir@,$ac_srcdir,;t t
22934 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22935 s,@top_srcdir@,$ac_top_srcdir,;t t
22936 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22937 s,@builddir@,$ac_builddir,;t t
22938 s,@abs_builddir@,$ac_abs_builddir,;t t
22939 s,@top_builddir@,$ac_top_builddir,;t t
22940 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22941 s,@INSTALL@,$ac_INSTALL,;t t
22942 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22943   rm -f $tmp/stdin
22944   if test x"$ac_file" != x-; then
22945     mv $tmp/out $ac_file
22946   else
22947     cat $tmp/out
22948     rm -f $tmp/out
22949   fi
22950
22951 done
22952 _ACEOF
22953 cat >>$CONFIG_STATUS <<\_ACEOF
22954
22955 #
22956 # CONFIG_HEADER section.
22957 #
22958
22959 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22960 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22961 #
22962 # ac_d sets the value in "#define NAME VALUE" lines.
22963 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22964 ac_dB='[         ].*$,\1#\2'
22965 ac_dC=' '
22966 ac_dD=',;t'
22967 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22968 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22969 ac_uB='$,\1#\2define\3'
22970 ac_uC=' '
22971 ac_uD=',;t'
22972
22973 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22974   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22975   case $ac_file in
22976   - | *:- | *:-:* ) # input from stdin
22977         cat >$tmp/stdin
22978         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22979         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22980   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22981         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22982   * )   ac_file_in=$ac_file.in ;;
22983   esac
22984
22985   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22986 echo "$as_me: creating $ac_file" >&6;}
22987
22988   # First look for the input files in the build tree, otherwise in the
22989   # src tree.
22990   ac_file_inputs=`IFS=:
22991     for f in $ac_file_in; do
22992       case $f in
22993       -) echo $tmp/stdin ;;
22994       [\\/$]*)
22995          # Absolute (can't be DOS-style, as IFS=:)
22996          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22997 echo "$as_me: error: cannot find input file: $f" >&2;}
22998    { (exit 1); exit 1; }; }
22999          # Do quote $f, to prevent DOS paths from being IFS'd.
23000          echo "$f";;
23001       *) # Relative
23002          if test -f "$f"; then
23003            # Build tree
23004            echo "$f"
23005          elif test -f "$srcdir/$f"; then
23006            # Source tree
23007            echo "$srcdir/$f"
23008          else
23009            # /dev/null tree
23010            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23011 echo "$as_me: error: cannot find input file: $f" >&2;}
23012    { (exit 1); exit 1; }; }
23013          fi;;
23014       esac
23015     done` || { (exit 1); exit 1; }
23016   # Remove the trailing spaces.
23017   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23018
23019 _ACEOF
23020
23021 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23022 # `conftest.undefs', that substitutes the proper values into
23023 # config.h.in to produce config.h.  The first handles `#define'
23024 # templates, and the second `#undef' templates.
23025 # And first: Protect against being on the right side of a sed subst in
23026 # config.status.  Protect against being in an unquoted here document
23027 # in config.status.
23028 rm -f conftest.defines conftest.undefs
23029 # Using a here document instead of a string reduces the quoting nightmare.
23030 # Putting comments in sed scripts is not portable.
23031 #
23032 # `end' is used to avoid that the second main sed command (meant for
23033 # 0-ary CPP macros) applies to n-ary macro definitions.
23034 # See the Autoconf documentation for `clear'.
23035 cat >confdef2sed.sed <<\_ACEOF
23036 s/[\\&,]/\\&/g
23037 s,[\\$`],\\&,g
23038 t clear
23039 : clear
23040 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23041 t end
23042 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23043 : end
23044 _ACEOF
23045 # If some macros were called several times there might be several times
23046 # the same #defines, which is useless.  Nevertheless, we may not want to
23047 # sort them, since we want the *last* AC-DEFINE to be honored.
23048 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23049 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23050 rm -f confdef2sed.sed
23051
23052 # This sed command replaces #undef with comments.  This is necessary, for
23053 # example, in the case of _POSIX_SOURCE, which is predefined and required
23054 # on some systems where configure will not decide to define it.
23055 cat >>conftest.undefs <<\_ACEOF
23056 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23057 _ACEOF
23058
23059 # Break up conftest.defines because some shells have a limit on the size
23060 # of here documents, and old seds have small limits too (100 cmds).
23061 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23062 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23063 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23064 echo '  :' >>$CONFIG_STATUS
23065 rm -f conftest.tail
23066 while grep . conftest.defines >/dev/null
23067 do
23068   # Write a limited-size here document to $tmp/defines.sed.
23069   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23070   # Speed up: don't consider the non `#define' lines.
23071   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23072   # Work around the forget-to-reset-the-flag bug.
23073   echo 't clr' >>$CONFIG_STATUS
23074   echo ': clr' >>$CONFIG_STATUS
23075   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23076   echo 'CEOF
23077   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23078   rm -f $tmp/in
23079   mv $tmp/out $tmp/in
23080 ' >>$CONFIG_STATUS
23081   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23082   rm -f conftest.defines
23083   mv conftest.tail conftest.defines
23084 done
23085 rm -f conftest.defines
23086 echo '  fi # grep' >>$CONFIG_STATUS
23087 echo >>$CONFIG_STATUS
23088
23089 # Break up conftest.undefs because some shells have a limit on the size
23090 # of here documents, and old seds have small limits too (100 cmds).
23091 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23092 rm -f conftest.tail
23093 while grep . conftest.undefs >/dev/null
23094 do
23095   # Write a limited-size here document to $tmp/undefs.sed.
23096   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23097   # Speed up: don't consider the non `#undef'
23098   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23099   # Work around the forget-to-reset-the-flag bug.
23100   echo 't clr' >>$CONFIG_STATUS
23101   echo ': clr' >>$CONFIG_STATUS
23102   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23103   echo 'CEOF
23104   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23105   rm -f $tmp/in
23106   mv $tmp/out $tmp/in
23107 ' >>$CONFIG_STATUS
23108   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23109   rm -f conftest.undefs
23110   mv conftest.tail conftest.undefs
23111 done
23112 rm -f conftest.undefs
23113
23114 cat >>$CONFIG_STATUS <<\_ACEOF
23115   # Let's still pretend it is `configure' which instantiates (i.e., don't
23116   # use $as_me), people would be surprised to read:
23117   #    /* config.h.  Generated by config.status.  */
23118   if test x"$ac_file" = x-; then
23119     echo "/* Generated by configure.  */" >$tmp/config.h
23120   else
23121     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23122   fi
23123   cat $tmp/in >>$tmp/config.h
23124   rm -f $tmp/in
23125   if test x"$ac_file" != x-; then
23126     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23127       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23128 echo "$as_me: $ac_file is unchanged" >&6;}
23129     else
23130       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23132          X"$ac_file" : 'X\(//\)[^/]' \| \
23133          X"$ac_file" : 'X\(//\)$' \| \
23134          X"$ac_file" : 'X\(/\)' \| \
23135          .     : '\(.\)' 2>/dev/null ||
23136 echo X"$ac_file" |
23137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23138           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23139           /^X\(\/\/\)$/{ s//\1/; q; }
23140           /^X\(\/\).*/{ s//\1/; q; }
23141           s/.*/./; q'`
23142       { if $as_mkdir_p; then
23143     mkdir -p "$ac_dir"
23144   else
23145     as_dir="$ac_dir"
23146     as_dirs=
23147     while test ! -d "$as_dir"; do
23148       as_dirs="$as_dir $as_dirs"
23149       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23151          X"$as_dir" : 'X\(//\)[^/]' \| \
23152          X"$as_dir" : 'X\(//\)$' \| \
23153          X"$as_dir" : 'X\(/\)' \| \
23154          .     : '\(.\)' 2>/dev/null ||
23155 echo X"$as_dir" |
23156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23157           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23158           /^X\(\/\/\)$/{ s//\1/; q; }
23159           /^X\(\/\).*/{ s//\1/; q; }
23160           s/.*/./; q'`
23161     done
23162     test ! -n "$as_dirs" || mkdir $as_dirs
23163   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23164 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23165    { (exit 1); exit 1; }; }; }
23166
23167       rm -f $ac_file
23168       mv $tmp/config.h $ac_file
23169     fi
23170   else
23171     cat $tmp/config.h
23172     rm -f $tmp/config.h
23173   fi
23174 done
23175 _ACEOF
23176 cat >>$CONFIG_STATUS <<\_ACEOF
23177
23178 #
23179 # CONFIG_LINKS section.
23180 #
23181
23182 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23183   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23184   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23185
23186   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23187 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23188
23189   if test ! -r $srcdir/$ac_source; then
23190     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23191 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23192    { (exit 1); exit 1; }; }
23193   fi
23194   rm -f $ac_dest
23195
23196   # Make relative symlinks.
23197   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23198 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23199          X"$ac_dest" : 'X\(//\)[^/]' \| \
23200          X"$ac_dest" : 'X\(//\)$' \| \
23201          X"$ac_dest" : 'X\(/\)' \| \
23202          .     : '\(.\)' 2>/dev/null ||
23203 echo X"$ac_dest" |
23204     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23205           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23206           /^X\(\/\/\)$/{ s//\1/; q; }
23207           /^X\(\/\).*/{ s//\1/; q; }
23208           s/.*/./; q'`
23209   { if $as_mkdir_p; then
23210     mkdir -p "$ac_dest_dir"
23211   else
23212     as_dir="$ac_dest_dir"
23213     as_dirs=
23214     while test ! -d "$as_dir"; do
23215       as_dirs="$as_dir $as_dirs"
23216       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23218          X"$as_dir" : 'X\(//\)[^/]' \| \
23219          X"$as_dir" : 'X\(//\)$' \| \
23220          X"$as_dir" : 'X\(/\)' \| \
23221          .     : '\(.\)' 2>/dev/null ||
23222 echo X"$as_dir" |
23223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23224           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23225           /^X\(\/\/\)$/{ s//\1/; q; }
23226           /^X\(\/\).*/{ s//\1/; q; }
23227           s/.*/./; q'`
23228     done
23229     test ! -n "$as_dirs" || mkdir $as_dirs
23230   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23231 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23232    { (exit 1); exit 1; }; }; }
23233
23234   ac_builddir=.
23235
23236 if test "$ac_dest_dir" != .; then
23237   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23238   # A "../" for each directory in $ac_dir_suffix.
23239   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23240 else
23241   ac_dir_suffix= ac_top_builddir=
23242 fi
23243
23244 case $srcdir in
23245   .)  # No --srcdir option.  We are building in place.
23246     ac_srcdir=.
23247     if test -z "$ac_top_builddir"; then
23248        ac_top_srcdir=.
23249     else
23250        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23251     fi ;;
23252   [\\/]* | ?:[\\/]* )  # Absolute path.
23253     ac_srcdir=$srcdir$ac_dir_suffix;
23254     ac_top_srcdir=$srcdir ;;
23255   *) # Relative path.
23256     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23257     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23258 esac
23259
23260 # Do not use `cd foo && pwd` to compute absolute paths, because
23261 # the directories may not exist.
23262 case `pwd` in
23263 .) ac_abs_builddir="$ac_dest_dir";;
23264 *)
23265   case "$ac_dest_dir" in
23266   .) ac_abs_builddir=`pwd`;;
23267   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23268   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23269   esac;;
23270 esac
23271 case $ac_abs_builddir in
23272 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23273 *)
23274   case ${ac_top_builddir}. in
23275   .) ac_abs_top_builddir=$ac_abs_builddir;;
23276   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23277   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23278   esac;;
23279 esac
23280 case $ac_abs_builddir in
23281 .) ac_abs_srcdir=$ac_srcdir;;
23282 *)
23283   case $ac_srcdir in
23284   .) ac_abs_srcdir=$ac_abs_builddir;;
23285   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23286   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23287   esac;;
23288 esac
23289 case $ac_abs_builddir in
23290 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23291 *)
23292   case $ac_top_srcdir in
23293   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23294   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23295   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23296   esac;;
23297 esac
23298
23299
23300   case $srcdir in
23301   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23302       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23303   esac
23304
23305   # Try a symlink, then a hard link, then a copy.
23306   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23307     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23308     cp -p $srcdir/$ac_source $ac_dest ||
23309     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23310 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23311    { (exit 1); exit 1; }; }
23312 done
23313 _ACEOF
23314 cat >>$CONFIG_STATUS <<\_ACEOF
23315
23316 #
23317 # CONFIG_COMMANDS section.
23318 #
23319 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23320   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23321   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23322   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23323 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23324          X"$ac_dest" : 'X\(//\)[^/]' \| \
23325          X"$ac_dest" : 'X\(//\)$' \| \
23326          X"$ac_dest" : 'X\(/\)' \| \
23327          .     : '\(.\)' 2>/dev/null ||
23328 echo X"$ac_dest" |
23329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23330           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23331           /^X\(\/\/\)$/{ s//\1/; q; }
23332           /^X\(\/\).*/{ s//\1/; q; }
23333           s/.*/./; q'`
23334   { if $as_mkdir_p; then
23335     mkdir -p "$ac_dir"
23336   else
23337     as_dir="$ac_dir"
23338     as_dirs=
23339     while test ! -d "$as_dir"; do
23340       as_dirs="$as_dir $as_dirs"
23341       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23343          X"$as_dir" : 'X\(//\)[^/]' \| \
23344          X"$as_dir" : 'X\(//\)$' \| \
23345          X"$as_dir" : 'X\(/\)' \| \
23346          .     : '\(.\)' 2>/dev/null ||
23347 echo X"$as_dir" |
23348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23349           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23350           /^X\(\/\/\)$/{ s//\1/; q; }
23351           /^X\(\/\).*/{ s//\1/; q; }
23352           s/.*/./; q'`
23353     done
23354     test ! -n "$as_dirs" || mkdir $as_dirs
23355   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23356 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23357    { (exit 1); exit 1; }; }; }
23358
23359   ac_builddir=.
23360
23361 if test "$ac_dir" != .; then
23362   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23363   # A "../" for each directory in $ac_dir_suffix.
23364   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23365 else
23366   ac_dir_suffix= ac_top_builddir=
23367 fi
23368
23369 case $srcdir in
23370   .)  # No --srcdir option.  We are building in place.
23371     ac_srcdir=.
23372     if test -z "$ac_top_builddir"; then
23373        ac_top_srcdir=.
23374     else
23375        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23376     fi ;;
23377   [\\/]* | ?:[\\/]* )  # Absolute path.
23378     ac_srcdir=$srcdir$ac_dir_suffix;
23379     ac_top_srcdir=$srcdir ;;
23380   *) # Relative path.
23381     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23382     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23383 esac
23384
23385 # Do not use `cd foo && pwd` to compute absolute paths, because
23386 # the directories may not exist.
23387 case `pwd` in
23388 .) ac_abs_builddir="$ac_dir";;
23389 *)
23390   case "$ac_dir" in
23391   .) ac_abs_builddir=`pwd`;;
23392   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23393   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23394   esac;;
23395 esac
23396 case $ac_abs_builddir in
23397 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23398 *)
23399   case ${ac_top_builddir}. in
23400   .) ac_abs_top_builddir=$ac_abs_builddir;;
23401   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23402   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23403   esac;;
23404 esac
23405 case $ac_abs_builddir in
23406 .) ac_abs_srcdir=$ac_srcdir;;
23407 *)
23408   case $ac_srcdir in
23409   .) ac_abs_srcdir=$ac_abs_builddir;;
23410   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23411   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23412   esac;;
23413 esac
23414 case $ac_abs_builddir in
23415 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23416 *)
23417   case $ac_top_srcdir in
23418   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23419   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23420   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23421   esac;;
23422 esac
23423
23424
23425   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23426 echo "$as_me: executing $ac_dest commands" >&6;}
23427   case $ac_dest in
23428     default )
23429
23430 sed -e '/^DEPRECATED_TM_FILE[   ]*=/s,^DEPRECATED_TM_FILE[      ]*=[    ]*,&config/'"${gdb_target_cpu}"'/,
23431 /^XM_FILE[      ]*=/s,^XM_FILE[         ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,
23432 /^NAT_FILE[     ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23433 mv -f Makefile.tmp Makefile
23434
23435
23436 case x$CONFIG_HEADERS in
23437 xconfig.h:config.in)
23438 echo > stamp-h ;;
23439 esac
23440  ;;
23441   esac
23442 done
23443 _ACEOF
23444
23445 cat >>$CONFIG_STATUS <<\_ACEOF
23446
23447 { (exit 0); exit 0; }
23448 _ACEOF
23449 chmod +x $CONFIG_STATUS
23450 ac_clean_files=$ac_clean_files_save
23451
23452
23453 # configure is writing to config.log, and then calls config.status.
23454 # config.status does its own redirection, appending to config.log.
23455 # Unfortunately, on DOS this fails, as config.log is still kept open
23456 # by configure, so config.status won't be able to write to it; its
23457 # output is simply discarded.  So we exec the FD to /dev/null,
23458 # effectively closing config.log, so it can be properly (re)opened and
23459 # appended to by config.status.  When coming back to configure, we
23460 # need to make the FD available again.
23461 if test "$no_create" != yes; then
23462   ac_cs_success=:
23463   ac_config_status_args=
23464   test "$silent" = yes &&
23465     ac_config_status_args="$ac_config_status_args --quiet"
23466   exec 5>/dev/null
23467   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23468   exec 5>>config.log
23469   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23470   # would make configure fail if this is the last instruction.
23471   $ac_cs_success || { (exit 1); exit 1; }
23472 fi
23473
23474 #
23475 # CONFIG_SUBDIRS section.
23476 #
23477 if test "$no_recursion" != yes; then
23478
23479   # Remove --cache-file and --srcdir arguments so they do not pile up.
23480   ac_sub_configure_args=
23481   ac_prev=
23482   for ac_arg in $ac_configure_args; do
23483     if test -n "$ac_prev"; then
23484       ac_prev=
23485       continue
23486     fi
23487     case $ac_arg in
23488     -cache-file | --cache-file | --cache-fil | --cache-fi \
23489     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23490       ac_prev=cache_file ;;
23491     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23492     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23493     | --c=*)
23494       ;;
23495     --config-cache | -C)
23496       ;;
23497     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23498       ac_prev=srcdir ;;
23499     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23500       ;;
23501     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23502       ac_prev=prefix ;;
23503     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23504       ;;
23505     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23506     esac
23507   done
23508
23509   # Always prepend --prefix to ensure using the same prefix
23510   # in subdir configurations.
23511   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23512
23513   ac_popdir=`pwd`
23514   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23515
23516     # Do not complain, so a configure script can configure whichever
23517     # parts of a large source tree are present.
23518     test -d $srcdir/$ac_dir || continue
23519
23520     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23521 echo "$as_me: configuring in $ac_dir" >&6;}
23522     { if $as_mkdir_p; then
23523     mkdir -p "$ac_dir"
23524   else
23525     as_dir="$ac_dir"
23526     as_dirs=
23527     while test ! -d "$as_dir"; do
23528       as_dirs="$as_dir $as_dirs"
23529       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23530 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23531          X"$as_dir" : 'X\(//\)[^/]' \| \
23532          X"$as_dir" : 'X\(//\)$' \| \
23533          X"$as_dir" : 'X\(/\)' \| \
23534          .     : '\(.\)' 2>/dev/null ||
23535 echo X"$as_dir" |
23536     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23537           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23538           /^X\(\/\/\)$/{ s//\1/; q; }
23539           /^X\(\/\).*/{ s//\1/; q; }
23540           s/.*/./; q'`
23541     done
23542     test ! -n "$as_dirs" || mkdir $as_dirs
23543   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23544 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23545    { (exit 1); exit 1; }; }; }
23546
23547     ac_builddir=.
23548
23549 if test "$ac_dir" != .; then
23550   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23551   # A "../" for each directory in $ac_dir_suffix.
23552   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23553 else
23554   ac_dir_suffix= ac_top_builddir=
23555 fi
23556
23557 case $srcdir in
23558   .)  # No --srcdir option.  We are building in place.
23559     ac_srcdir=.
23560     if test -z "$ac_top_builddir"; then
23561        ac_top_srcdir=.
23562     else
23563        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23564     fi ;;
23565   [\\/]* | ?:[\\/]* )  # Absolute path.
23566     ac_srcdir=$srcdir$ac_dir_suffix;
23567     ac_top_srcdir=$srcdir ;;
23568   *) # Relative path.
23569     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23570     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23571 esac
23572
23573 # Do not use `cd foo && pwd` to compute absolute paths, because
23574 # the directories may not exist.
23575 case `pwd` in
23576 .) ac_abs_builddir="$ac_dir";;
23577 *)
23578   case "$ac_dir" in
23579   .) ac_abs_builddir=`pwd`;;
23580   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23581   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23582   esac;;
23583 esac
23584 case $ac_abs_builddir in
23585 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23586 *)
23587   case ${ac_top_builddir}. in
23588   .) ac_abs_top_builddir=$ac_abs_builddir;;
23589   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23590   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23591   esac;;
23592 esac
23593 case $ac_abs_builddir in
23594 .) ac_abs_srcdir=$ac_srcdir;;
23595 *)
23596   case $ac_srcdir in
23597   .) ac_abs_srcdir=$ac_abs_builddir;;
23598   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23599   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23600   esac;;
23601 esac
23602 case $ac_abs_builddir in
23603 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23604 *)
23605   case $ac_top_srcdir in
23606   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23607   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23608   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23609   esac;;
23610 esac
23611
23612
23613     cd $ac_dir
23614
23615     # Check for guested configure; otherwise get Cygnus style configure.
23616     if test -f $ac_srcdir/configure.gnu; then
23617       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23618     elif test -f $ac_srcdir/configure; then
23619       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23620     elif test -f $ac_srcdir/configure.in; then
23621       ac_sub_configure=$ac_configure
23622     else
23623       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23624 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23625       ac_sub_configure=
23626     fi
23627
23628     # The recursion is here.
23629     if test -n "$ac_sub_configure"; then
23630       # Make the cache file name correct relative to the subdirectory.
23631       case $cache_file in
23632       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23633       *) # Relative path.
23634         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23635       esac
23636
23637       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23638 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23639       # The eval makes quoting arguments work.
23640       eval $ac_sub_configure $ac_sub_configure_args \
23641            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23642         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23643 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23644    { (exit 1); exit 1; }; }
23645     fi
23646
23647     cd "$ac_popdir"
23648   done
23649 fi
23650
23651
23652 exit 0