configure clean up patch from Steve Ellcey.
[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 rdi-share"
317 ac_subdirs_all="$ac_subdirs_all nlm"
318 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'
319 ac_subst_files='host_makefile_frag target_makefile_frag'
320
321 # Initialize some variables set by options.
322 ac_init_help=
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
326 cache_file=/dev/null
327 exec_prefix=NONE
328 no_create=
329 no_recursion=
330 prefix=NONE
331 program_prefix=NONE
332 program_suffix=NONE
333 program_transform_name=s,x,x,
334 silent=
335 site=
336 srcdir=
337 verbose=
338 x_includes=NONE
339 x_libraries=NONE
340
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
358
359 ac_prev=
360 for ac_option
361 do
362   # If the previous option needs an argument, assign it.
363   if test -n "$ac_prev"; then
364     eval "$ac_prev=\$ac_option"
365     ac_prev=
366     continue
367   fi
368
369   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
371   # Accept the important Cygnus configure options, so we can diagnose typos.
372
373   case $ac_option in
374
375   -bindir | --bindir | --bindi | --bind | --bin | --bi)
376     ac_prev=bindir ;;
377   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378     bindir=$ac_optarg ;;
379
380   -build | --build | --buil | --bui | --bu)
381     ac_prev=build_alias ;;
382   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383     build_alias=$ac_optarg ;;
384
385   -cache-file | --cache-file | --cache-fil | --cache-fi \
386   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387     ac_prev=cache_file ;;
388   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390     cache_file=$ac_optarg ;;
391
392   --config-cache | -C)
393     cache_file=config.cache ;;
394
395   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396     ac_prev=datadir ;;
397   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398   | --da=*)
399     datadir=$ac_optarg ;;
400
401   -disable-* | --disable-*)
402     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403     # Reject names that are not valid shell variable names.
404     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406    { (exit 1); exit 1; }; }
407     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408     eval "enable_$ac_feature=no" ;;
409
410   -enable-* | --enable-*)
411     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412     # Reject names that are not valid shell variable names.
413     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415    { (exit 1); exit 1; }; }
416     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417     case $ac_option in
418       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419       *) ac_optarg=yes ;;
420     esac
421     eval "enable_$ac_feature='$ac_optarg'" ;;
422
423   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425   | --exec | --exe | --ex)
426     ac_prev=exec_prefix ;;
427   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429   | --exec=* | --exe=* | --ex=*)
430     exec_prefix=$ac_optarg ;;
431
432   -gas | --gas | --ga | --g)
433     # Obsolete; use --with-gas.
434     with_gas=yes ;;
435
436   -help | --help | --hel | --he | -h)
437     ac_init_help=long ;;
438   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439     ac_init_help=recursive ;;
440   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441     ac_init_help=short ;;
442
443   -host | --host | --hos | --ho)
444     ac_prev=host_alias ;;
445   -host=* | --host=* | --hos=* | --ho=*)
446     host_alias=$ac_optarg ;;
447
448   -includedir | --includedir | --includedi | --included | --include \
449   | --includ | --inclu | --incl | --inc)
450     ac_prev=includedir ;;
451   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452   | --includ=* | --inclu=* | --incl=* | --inc=*)
453     includedir=$ac_optarg ;;
454
455   -infodir | --infodir | --infodi | --infod | --info | --inf)
456     ac_prev=infodir ;;
457   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458     infodir=$ac_optarg ;;
459
460   -libdir | --libdir | --libdi | --libd)
461     ac_prev=libdir ;;
462   -libdir=* | --libdir=* | --libdi=* | --libd=*)
463     libdir=$ac_optarg ;;
464
465   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466   | --libexe | --libex | --libe)
467     ac_prev=libexecdir ;;
468   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469   | --libexe=* | --libex=* | --libe=*)
470     libexecdir=$ac_optarg ;;
471
472   -localstatedir | --localstatedir | --localstatedi | --localstated \
473   | --localstate | --localstat | --localsta | --localst \
474   | --locals | --local | --loca | --loc | --lo)
475     ac_prev=localstatedir ;;
476   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479     localstatedir=$ac_optarg ;;
480
481   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482     ac_prev=mandir ;;
483   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484     mandir=$ac_optarg ;;
485
486   -nfp | --nfp | --nf)
487     # Obsolete; use --without-fp.
488     with_fp=no ;;
489
490   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491   | --no-cr | --no-c | -n)
492     no_create=yes ;;
493
494   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496     no_recursion=yes ;;
497
498   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500   | --oldin | --oldi | --old | --ol | --o)
501     ac_prev=oldincludedir ;;
502   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505     oldincludedir=$ac_optarg ;;
506
507   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508     ac_prev=prefix ;;
509   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510     prefix=$ac_optarg ;;
511
512   -program-prefix | --program-prefix | --program-prefi | --program-pref \
513   | --program-pre | --program-pr | --program-p)
514     ac_prev=program_prefix ;;
515   -program-prefix=* | --program-prefix=* | --program-prefi=* \
516   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517     program_prefix=$ac_optarg ;;
518
519   -program-suffix | --program-suffix | --program-suffi | --program-suff \
520   | --program-suf | --program-su | --program-s)
521     ac_prev=program_suffix ;;
522   -program-suffix=* | --program-suffix=* | --program-suffi=* \
523   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524     program_suffix=$ac_optarg ;;
525
526   -program-transform-name | --program-transform-name \
527   | --program-transform-nam | --program-transform-na \
528   | --program-transform-n | --program-transform- \
529   | --program-transform | --program-transfor \
530   | --program-transfo | --program-transf \
531   | --program-trans | --program-tran \
532   | --progr-tra | --program-tr | --program-t)
533     ac_prev=program_transform_name ;;
534   -program-transform-name=* | --program-transform-name=* \
535   | --program-transform-nam=* | --program-transform-na=* \
536   | --program-transform-n=* | --program-transform-=* \
537   | --program-transform=* | --program-transfor=* \
538   | --program-transfo=* | --program-transf=* \
539   | --program-trans=* | --program-tran=* \
540   | --progr-tra=* | --program-tr=* | --program-t=*)
541     program_transform_name=$ac_optarg ;;
542
543   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544   | -silent | --silent | --silen | --sile | --sil)
545     silent=yes ;;
546
547   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548     ac_prev=sbindir ;;
549   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550   | --sbi=* | --sb=*)
551     sbindir=$ac_optarg ;;
552
553   -sharedstatedir | --sharedstatedir | --sharedstatedi \
554   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555   | --sharedst | --shareds | --shared | --share | --shar \
556   | --sha | --sh)
557     ac_prev=sharedstatedir ;;
558   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561   | --sha=* | --sh=*)
562     sharedstatedir=$ac_optarg ;;
563
564   -site | --site | --sit)
565     ac_prev=site ;;
566   -site=* | --site=* | --sit=*)
567     site=$ac_optarg ;;
568
569   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570     ac_prev=srcdir ;;
571   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572     srcdir=$ac_optarg ;;
573
574   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575   | --syscon | --sysco | --sysc | --sys | --sy)
576     ac_prev=sysconfdir ;;
577   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579     sysconfdir=$ac_optarg ;;
580
581   -target | --target | --targe | --targ | --tar | --ta | --t)
582     ac_prev=target_alias ;;
583   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584     target_alias=$ac_optarg ;;
585
586   -v | -verbose | --verbose | --verbos | --verbo | --verb)
587     verbose=yes ;;
588
589   -version | --version | --versio | --versi | --vers | -V)
590     ac_init_version=: ;;
591
592   -with-* | --with-*)
593     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594     # Reject names that are not valid shell variable names.
595     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596       { echo "$as_me: error: invalid package name: $ac_package" >&2
597    { (exit 1); exit 1; }; }
598     ac_package=`echo $ac_package| sed 's/-/_/g'`
599     case $ac_option in
600       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601       *) ac_optarg=yes ;;
602     esac
603     eval "with_$ac_package='$ac_optarg'" ;;
604
605   -without-* | --without-*)
606     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607     # Reject names that are not valid shell variable names.
608     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609       { echo "$as_me: error: invalid package name: $ac_package" >&2
610    { (exit 1); exit 1; }; }
611     ac_package=`echo $ac_package | sed 's/-/_/g'`
612     eval "with_$ac_package=no" ;;
613
614   --x)
615     # Obsolete; use --with-x.
616     with_x=yes ;;
617
618   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619   | --x-incl | --x-inc | --x-in | --x-i)
620     ac_prev=x_includes ;;
621   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623     x_includes=$ac_optarg ;;
624
625   -x-libraries | --x-libraries | --x-librarie | --x-librari \
626   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627     ac_prev=x_libraries ;;
628   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630     x_libraries=$ac_optarg ;;
631
632   -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634    { (exit 1); exit 1; }; }
635     ;;
636
637   *=*)
638     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639     # Reject names that are not valid shell variable names.
640     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642    { (exit 1); exit 1; }; }
643     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644     eval "$ac_envvar='$ac_optarg'"
645     export $ac_envvar ;;
646
647   *)
648     # FIXME: should be removed in autoconf 3.0.
649     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653     ;;
654
655   esac
656 done
657
658 if test -n "$ac_prev"; then
659   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660   { echo "$as_me: error: missing argument to $ac_option" >&2
661    { (exit 1); exit 1; }; }
662 fi
663
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
666 do
667   eval ac_val=$`echo $ac_var`
668   case $ac_val in
669     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671    { (exit 1); exit 1; }; };;
672   esac
673 done
674
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677               localstatedir libdir includedir oldincludedir infodir mandir
678 do
679   eval ac_val=$`echo $ac_var`
680   case $ac_val in
681     [\\/$]* | ?:[\\/]* ) ;;
682     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683    { (exit 1); exit 1; }; };;
684   esac
685 done
686
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
690 build=$build_alias
691 host=$host_alias
692 target=$target_alias
693
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696   if test "x$build_alias" = x; then
697     cross_compiling=maybe
698     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699     If a cross compiler is detected then cross compile mode will be used." >&2
700   elif test "x$build_alias" != "x$host_alias"; then
701     cross_compiling=yes
702   fi
703 fi
704
705 ac_tool_prefix=
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708 test "$silent" = yes && exec 6>/dev/null
709
710
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713   ac_srcdir_defaulted=yes
714   # Try the directory containing this script, then its parent.
715   ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717          X"$0" : 'X\(//\)[^/]' \| \
718          X"$0" : 'X\(//\)$' \| \
719          X"$0" : 'X\(/\)' \| \
720          .     : '\(.\)' 2>/dev/null ||
721 echo X"$0" |
722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724           /^X\(\/\/\)$/{ s//\1/; q; }
725           /^X\(\/\).*/{ s//\1/; q; }
726           s/.*/./; q'`
727   srcdir=$ac_confdir
728   if test ! -r $srcdir/$ac_unique_file; then
729     srcdir=..
730   fi
731 else
732   ac_srcdir_defaulted=no
733 fi
734 if test ! -r $srcdir/$ac_unique_file; then
735   if test "$ac_srcdir_defaulted" = yes; then
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737    { (exit 1); exit 1; }; }
738   else
739     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740    { (exit 1); exit 1; }; }
741   fi
742 fi
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745    { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
760 ac_env_CC_value=$CC
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784   # Omit some internal or obsolete options to make the list less imposing.
785   # This message is too long to be a string in the A/UX 3.1 sh.
786   cat <<_ACEOF
787 \`configure' configures this package to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE.  See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797   -h, --help              display this help and exit
798       --help=short        display options specific to this package
799       --help=recursive    display the short help of all the included packages
800   -V, --version           display version information and exit
801   -q, --quiet, --silent   do not print \`checking...' messages
802       --cache-file=FILE   cache test results in FILE [disabled]
803   -C, --config-cache      alias for \`--cache-file=config.cache'
804   -n, --no-create         do not create output files
805       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809   cat <<_ACEOF
810 Installation directories:
811   --prefix=PREFIX         install architecture-independent files in PREFIX
812                           [$ac_default_prefix]
813   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
814                           [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824   --bindir=DIR           user executables [EPREFIX/bin]
825   --sbindir=DIR          system admin executables [EPREFIX/sbin]
826   --libexecdir=DIR       program executables [EPREFIX/libexec]
827   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
828   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
829   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
830   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
831   --libdir=DIR           object code libraries [EPREFIX/lib]
832   --includedir=DIR       C header files [PREFIX/include]
833   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
834   --infodir=DIR          info documentation [PREFIX/info]
835   --mandir=DIR           man documentation [PREFIX/man]
836 _ACEOF
837
838   cat <<\_ACEOF
839
840 Program names:
841   --program-prefix=PREFIX            prepend PREFIX to installed program names
842   --program-suffix=SUFFIX            append SUFFIX to installed program names
843   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
844
845 X features:
846   --x-includes=DIR    X include files are in DIR
847   --x-libraries=DIR   X library files are in DIR
848
849 System types:
850   --build=BUILD     configure for building on BUILD [guessed]
851   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852   --target=TARGET   configure for building compilers for TARGET [HOST]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --enable-maintainer-mode  enable make rules and dependencies not useful
864                           (and sometimes confusing) to the casual installer
865   --disable-nls           do not use Native Language Support
866   --disable-gdbcli        disable command-line interface (CLI)
867   --disable-gdbmi         disable machine-interface (MI)
868   --enable-tui            enable full-screen terminal user interface (TUI)
869   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
870   --enable-profiling      enable profiling of GDB
871   --enable-build-warnings Enable build-time compiler warnings if gcc is used
872   --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
873   --enable-sim            Link gdb with simulator
874   --enable-multi-ice      build the multi-ice-gdb-server
875
876 Optional Packages:
877   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879   --with-included-gettext use the GNU gettext library included here
880   --with-separate-debug-dir=path   Look for global separate debug info in this path LIBDIR/debug
881   --with-libunwind            Use libunwind frame unwinding support
882   --without-included-regex don't use included regex; this is the default
883                           on systems with version 2 of the GNU C library
884                           (use with caution on other system)
885   --with-sysroot=DIR Search for usr/lib et al within DIR.
886   --with-tclconfig=DIR    Directory containing tcl configuration (tclConfig.sh)
887   --with-tkconfig=DIR     Directory containing tk configuration (tkConfig.sh)
888   --with-tclinclude=DIR   Directory where tcl private headers are
889   --with-tkinclude=DIR    Directory where tk private headers are
890   --with-itclconfig       Directory containing itcl configuration (itclConfig.sh)
891   --with-itkconfig        Directory containing itk configuration (itkConfig.sh)
892   --with-x                use the X Window System
893   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
894
895 Some influential environment variables:
896   CC          C compiler command
897   CFLAGS      C compiler flags
898   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
899               nonstandard directory <lib dir>
900   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
901               headers in a nonstandard directory <include dir>
902   CPP         C preprocessor
903
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
906
907 _ACEOF
908 fi
909
910 if test "$ac_init_help" = "recursive"; then
911   # If there are subdirs, report their specific --help.
912   ac_popdir=`pwd`
913   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914     test -d $ac_dir || continue
915     ac_builddir=.
916
917 if test "$ac_dir" != .; then
918   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919   # A "../" for each directory in $ac_dir_suffix.
920   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 else
922   ac_dir_suffix= ac_top_builddir=
923 fi
924
925 case $srcdir in
926   .)  # No --srcdir option.  We are building in place.
927     ac_srcdir=.
928     if test -z "$ac_top_builddir"; then
929        ac_top_srcdir=.
930     else
931        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932     fi ;;
933   [\\/]* | ?:[\\/]* )  # Absolute path.
934     ac_srcdir=$srcdir$ac_dir_suffix;
935     ac_top_srcdir=$srcdir ;;
936   *) # Relative path.
937     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938     ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 esac
940
941 # Do not use `cd foo && pwd` to compute absolute paths, because
942 # the directories may not exist.
943 case `pwd` in
944 .) ac_abs_builddir="$ac_dir";;
945 *)
946   case "$ac_dir" in
947   .) ac_abs_builddir=`pwd`;;
948   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949   *) ac_abs_builddir=`pwd`/"$ac_dir";;
950   esac;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *)
955   case ${ac_top_builddir}. in
956   .) ac_abs_top_builddir=$ac_abs_builddir;;
957   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959   esac;;
960 esac
961 case $ac_abs_builddir in
962 .) ac_abs_srcdir=$ac_srcdir;;
963 *)
964   case $ac_srcdir in
965   .) ac_abs_srcdir=$ac_abs_builddir;;
966   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968   esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *)
973   case $ac_top_srcdir in
974   .) ac_abs_top_srcdir=$ac_abs_builddir;;
975   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977   esac;;
978 esac
979
980     cd $ac_dir
981     # Check for guested configure; otherwise get Cygnus style configure.
982     if test -f $ac_srcdir/configure.gnu; then
983       echo
984       $SHELL $ac_srcdir/configure.gnu  --help=recursive
985     elif test -f $ac_srcdir/configure; then
986       echo
987       $SHELL $ac_srcdir/configure  --help=recursive
988     elif test -f $ac_srcdir/configure.ac ||
989            test -f $ac_srcdir/configure.in; then
990       echo
991       $ac_configure --help
992     else
993       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994     fi
995     cd $ac_popdir
996   done
997 fi
998
999 test -n "$ac_init_help" && exit 0
1000 if $ac_init_version; then
1001   cat <<\_ACEOF
1002
1003 Copyright (C) 2003 Free Software Foundation, Inc.
1004 This configure script is free software; the Free Software Foundation
1005 gives unlimited permission to copy, distribute and modify it.
1006 _ACEOF
1007   exit 0
1008 fi
1009 exec 5>config.log
1010 cat >&5 <<_ACEOF
1011 This file contains any messages produced by compilers while
1012 running configure, to aid debugging if configure makes a mistake.
1013
1014 It was created by $as_me, which was
1015 generated by GNU Autoconf 2.59.  Invocation command line was
1016
1017   $ $0 $@
1018
1019 _ACEOF
1020 {
1021 cat <<_ASUNAME
1022 ## --------- ##
1023 ## Platform. ##
1024 ## --------- ##
1025
1026 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031
1032 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1034
1035 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1036 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1037 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1039 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1040 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1041 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1042
1043 _ASUNAME
1044
1045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046 for as_dir in $PATH
1047 do
1048   IFS=$as_save_IFS
1049   test -z "$as_dir" && as_dir=.
1050   echo "PATH: $as_dir"
1051 done
1052
1053 } >&5
1054
1055 cat >&5 <<_ACEOF
1056
1057
1058 ## ----------- ##
1059 ## Core tests. ##
1060 ## ----------- ##
1061
1062 _ACEOF
1063
1064
1065 # Keep a trace of the command line.
1066 # Strip out --no-create and --no-recursion so they do not pile up.
1067 # Strip out --silent because we don't want to record it for future runs.
1068 # Also quote any args containing shell meta-characters.
1069 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_configure_args=
1071 ac_configure_args0=
1072 ac_configure_args1=
1073 ac_sep=
1074 ac_must_keep_next=false
1075 for ac_pass in 1 2
1076 do
1077   for ac_arg
1078   do
1079     case $ac_arg in
1080     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082     | -silent | --silent | --silen | --sile | --sil)
1083       continue ;;
1084     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086     esac
1087     case $ac_pass in
1088     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089     2)
1090       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091       if test $ac_must_keep_next = true; then
1092         ac_must_keep_next=false # Got value, back to normal.
1093       else
1094         case $ac_arg in
1095           *=* | --config-cache | -C | -disable-* | --disable-* \
1096           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098           | -with-* | --with-* | -without-* | --without-* | --x)
1099             case "$ac_configure_args0 " in
1100               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101             esac
1102             ;;
1103           -* ) ac_must_keep_next=true ;;
1104         esac
1105       fi
1106       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107       # Get rid of the leading space.
1108       ac_sep=" "
1109       ;;
1110     esac
1111   done
1112 done
1113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115
1116 # When interrupted or exit'd, cleanup temporary files, and complete
1117 # config.log.  We remove comments because anyway the quotes in there
1118 # would cause problems or look ugly.
1119 # WARNING: Be sure not to use single quotes in there, as some shells,
1120 # such as our DU 5.0 friend, will then `close' the trap.
1121 trap 'exit_status=$?
1122   # Save into config.log some information that might help in debugging.
1123   {
1124     echo
1125
1126     cat <<\_ASBOX
1127 ## ---------------- ##
1128 ## Cache variables. ##
1129 ## ---------------- ##
1130 _ASBOX
1131     echo
1132     # The following way of writing the cache mishandles newlines in values,
1133 {
1134   (set) 2>&1 |
1135     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136     *ac_space=\ *)
1137       sed -n \
1138         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140       ;;
1141     *)
1142       sed -n \
1143         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144       ;;
1145     esac;
1146 }
1147     echo
1148
1149     cat <<\_ASBOX
1150 ## ----------------- ##
1151 ## Output variables. ##
1152 ## ----------------- ##
1153 _ASBOX
1154     echo
1155     for ac_var in $ac_subst_vars
1156     do
1157       eval ac_val=$`echo $ac_var`
1158       echo "$ac_var='"'"'$ac_val'"'"'"
1159     done | sort
1160     echo
1161
1162     if test -n "$ac_subst_files"; then
1163       cat <<\_ASBOX
1164 ## ------------- ##
1165 ## Output files. ##
1166 ## ------------- ##
1167 _ASBOX
1168       echo
1169       for ac_var in $ac_subst_files
1170       do
1171         eval ac_val=$`echo $ac_var`
1172         echo "$ac_var='"'"'$ac_val'"'"'"
1173       done | sort
1174       echo
1175     fi
1176
1177     if test -s confdefs.h; then
1178       cat <<\_ASBOX
1179 ## ----------- ##
1180 ## confdefs.h. ##
1181 ## ----------- ##
1182 _ASBOX
1183       echo
1184       sed "/^$/d" confdefs.h | sort
1185       echo
1186     fi
1187     test "$ac_signal" != 0 &&
1188       echo "$as_me: caught signal $ac_signal"
1189     echo "$as_me: exit $exit_status"
1190   } >&5
1191   rm -f core *.core &&
1192   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193     exit $exit_status
1194      ' 0
1195 for ac_signal in 1 2 13 15; do
1196   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197 done
1198 ac_signal=0
1199
1200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201 rm -rf conftest* confdefs.h
1202 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203 echo >confdefs.h
1204
1205 # Predefined preprocessor variables.
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_NAME "$PACKAGE_NAME"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1219 _ACEOF
1220
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_STRING "$PACKAGE_STRING"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229 _ACEOF
1230
1231
1232 # Let the site file select an alternate cache file if it wants to.
1233 # Prefer explicitly selected file to automatically selected ones.
1234 if test -z "$CONFIG_SITE"; then
1235   if test "x$prefix" != xNONE; then
1236     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237   else
1238     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1239   fi
1240 fi
1241 for ac_site_file in $CONFIG_SITE; do
1242   if test -r "$ac_site_file"; then
1243     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 echo "$as_me: loading site script $ac_site_file" >&6;}
1245     sed 's/^/| /' "$ac_site_file" >&5
1246     . "$ac_site_file"
1247   fi
1248 done
1249
1250 if test -r "$cache_file"; then
1251   # Some versions of bash will fail to source /dev/null (special
1252   # files actually), so we avoid doing that.
1253   if test -f "$cache_file"; then
1254     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 echo "$as_me: loading cache $cache_file" >&6;}
1256     case $cache_file in
1257       [\\/]* | ?:[\\/]* ) . $cache_file;;
1258       *)                      . ./$cache_file;;
1259     esac
1260   fi
1261 else
1262   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 echo "$as_me: creating cache $cache_file" >&6;}
1264   >$cache_file
1265 fi
1266
1267 # Check that the precious variables saved in the cache have kept the same
1268 # value.
1269 ac_cache_corrupted=false
1270 for ac_var in `(set) 2>&1 |
1271                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273   eval ac_new_set=\$ac_env_${ac_var}_set
1274   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275   eval ac_new_val="\$ac_env_${ac_var}_value"
1276   case $ac_old_set,$ac_new_set in
1277     set,)
1278       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280       ac_cache_corrupted=: ;;
1281     ,set)
1282       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284       ac_cache_corrupted=: ;;
1285     ,);;
1286     *)
1287       if test "x$ac_old_val" != "x$ac_new_val"; then
1288         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1291 echo "$as_me:   former value:  $ac_old_val" >&2;}
1292         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1293 echo "$as_me:   current value: $ac_new_val" >&2;}
1294         ac_cache_corrupted=:
1295       fi;;
1296   esac
1297   # Pass precious variables to config.status.
1298   if test "$ac_new_set" = set; then
1299     case $ac_new_val in
1300     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302     *) ac_arg=$ac_var=$ac_new_val ;;
1303     esac
1304     case " $ac_configure_args " in
1305       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1306       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307     esac
1308   fi
1309 done
1310 if $ac_cache_corrupted; then
1311   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315    { (exit 1); exit 1; }; }
1316 fi
1317
1318 ac_ext=c
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342           ac_config_headers="$ac_config_headers config.h:config.in"
1343
1344 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1345 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1346     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1347 if test "${enable_maintainer_mode+set}" = set; then
1348   enableval="$enable_maintainer_mode"
1349   USE_MAINTAINER_MODE=$enableval
1350 else
1351   USE_MAINTAINER_MODE=no
1352 fi;
1353   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1354 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1355
1356
1357 if test $USE_MAINTAINER_MODE = yes; then
1358   MAINTAINER_MODE_TRUE=
1359   MAINTAINER_MODE_FALSE='#'
1360 else
1361   MAINTAINER_MODE_TRUE='#'
1362   MAINTAINER_MODE_FALSE=
1363 fi
1364
1365   MAINT=$MAINTAINER_MODE_TRUE
1366
1367
1368
1369 ac_ext=c
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374 if test -n "$ac_tool_prefix"; then
1375   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1377 echo "$as_me:$LINENO: checking for $ac_word" >&5
1378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379 if test "${ac_cv_prog_CC+set}" = set; then
1380   echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382   if test -n "$CC"; then
1383   ac_cv_prog_CC="$CC" # Let the user override the test.
1384 else
1385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 for as_dir in $PATH
1387 do
1388   IFS=$as_save_IFS
1389   test -z "$as_dir" && as_dir=.
1390   for ac_exec_ext in '' $ac_executable_extensions; do
1391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1394     break 2
1395   fi
1396 done
1397 done
1398
1399 fi
1400 fi
1401 CC=$ac_cv_prog_CC
1402 if test -n "$CC"; then
1403   echo "$as_me:$LINENO: result: $CC" >&5
1404 echo "${ECHO_T}$CC" >&6
1405 else
1406   echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1408 fi
1409
1410 fi
1411 if test -z "$ac_cv_prog_CC"; then
1412   ac_ct_CC=$CC
1413   # Extract the first word of "gcc", so it can be a program name with args.
1414 set dummy gcc; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1418   echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420   if test -n "$ac_ct_CC"; then
1421   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1422 else
1423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 for as_dir in $PATH
1425 do
1426   IFS=$as_save_IFS
1427   test -z "$as_dir" && as_dir=.
1428   for ac_exec_ext in '' $ac_executable_extensions; do
1429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430     ac_cv_prog_ac_ct_CC="gcc"
1431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432     break 2
1433   fi
1434 done
1435 done
1436
1437 fi
1438 fi
1439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440 if test -n "$ac_ct_CC"; then
1441   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1442 echo "${ECHO_T}$ac_ct_CC" >&6
1443 else
1444   echo "$as_me:$LINENO: result: no" >&5
1445 echo "${ECHO_T}no" >&6
1446 fi
1447
1448   CC=$ac_ct_CC
1449 else
1450   CC="$ac_cv_prog_CC"
1451 fi
1452
1453 if test -z "$CC"; then
1454   if test -n "$ac_tool_prefix"; then
1455   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1456 set dummy ${ac_tool_prefix}cc; ac_word=$2
1457 echo "$as_me:$LINENO: checking for $ac_word" >&5
1458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459 if test "${ac_cv_prog_CC+set}" = set; then
1460   echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462   if test -n "$CC"; then
1463   ac_cv_prog_CC="$CC" # Let the user override the test.
1464 else
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1467 do
1468   IFS=$as_save_IFS
1469   test -z "$as_dir" && as_dir=.
1470   for ac_exec_ext in '' $ac_executable_extensions; do
1471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472     ac_cv_prog_CC="${ac_tool_prefix}cc"
1473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474     break 2
1475   fi
1476 done
1477 done
1478
1479 fi
1480 fi
1481 CC=$ac_cv_prog_CC
1482 if test -n "$CC"; then
1483   echo "$as_me:$LINENO: result: $CC" >&5
1484 echo "${ECHO_T}$CC" >&6
1485 else
1486   echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1488 fi
1489
1490 fi
1491 if test -z "$ac_cv_prog_CC"; then
1492   ac_ct_CC=$CC
1493   # Extract the first word of "cc", so it can be a program name with args.
1494 set dummy cc; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1498   echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500   if test -n "$ac_ct_CC"; then
1501   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1502 else
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 for as_dir in $PATH
1505 do
1506   IFS=$as_save_IFS
1507   test -z "$as_dir" && as_dir=.
1508   for ac_exec_ext in '' $ac_executable_extensions; do
1509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510     ac_cv_prog_ac_ct_CC="cc"
1511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512     break 2
1513   fi
1514 done
1515 done
1516
1517 fi
1518 fi
1519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1520 if test -n "$ac_ct_CC"; then
1521   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1522 echo "${ECHO_T}$ac_ct_CC" >&6
1523 else
1524   echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1526 fi
1527
1528   CC=$ac_ct_CC
1529 else
1530   CC="$ac_cv_prog_CC"
1531 fi
1532
1533 fi
1534 if test -z "$CC"; then
1535   # Extract the first word of "cc", so it can be a program name with args.
1536 set dummy cc; ac_word=$2
1537 echo "$as_me:$LINENO: checking for $ac_word" >&5
1538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539 if test "${ac_cv_prog_CC+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   if test -n "$CC"; then
1543   ac_cv_prog_CC="$CC" # Let the user override the test.
1544 else
1545   ac_prog_rejected=no
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549   IFS=$as_save_IFS
1550   test -z "$as_dir" && as_dir=.
1551   for ac_exec_ext in '' $ac_executable_extensions; do
1552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1554        ac_prog_rejected=yes
1555        continue
1556      fi
1557     ac_cv_prog_CC="cc"
1558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559     break 2
1560   fi
1561 done
1562 done
1563
1564 if test $ac_prog_rejected = yes; then
1565   # We found a bogon in the path, so make sure we never use it.
1566   set dummy $ac_cv_prog_CC
1567   shift
1568   if test $# != 0; then
1569     # We chose a different compiler from the bogus one.
1570     # However, it has the same basename, so the bogon will be chosen
1571     # first if we set CC to just the basename; use the full file name.
1572     shift
1573     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1574   fi
1575 fi
1576 fi
1577 fi
1578 CC=$ac_cv_prog_CC
1579 if test -n "$CC"; then
1580   echo "$as_me:$LINENO: result: $CC" >&5
1581 echo "${ECHO_T}$CC" >&6
1582 else
1583   echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1585 fi
1586
1587 fi
1588 if test -z "$CC"; then
1589   if test -n "$ac_tool_prefix"; then
1590   for ac_prog in cl
1591   do
1592     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$CC"; then
1600   ac_cv_prog_CC="$CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 CC=$ac_cv_prog_CC
1619 if test -n "$CC"; then
1620   echo "$as_me:$LINENO: result: $CC" >&5
1621 echo "${ECHO_T}$CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627     test -n "$CC" && break
1628   done
1629 fi
1630 if test -z "$CC"; then
1631   ac_ct_CC=$CC
1632   for ac_prog in cl
1633 do
1634   # Extract the first word of "$ac_prog", so it can be a program name with args.
1635 set dummy $ac_prog; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$ac_ct_CC"; then
1642   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647   IFS=$as_save_IFS
1648   test -z "$as_dir" && as_dir=.
1649   for ac_exec_ext in '' $ac_executable_extensions; do
1650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651     ac_cv_prog_ac_ct_CC="$ac_prog"
1652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653     break 2
1654   fi
1655 done
1656 done
1657
1658 fi
1659 fi
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665   echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1667 fi
1668
1669   test -n "$ac_ct_CC" && break
1670 done
1671
1672   CC=$ac_ct_CC
1673 fi
1674
1675 fi
1676
1677
1678 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1679 See \`config.log' for more details." >&5
1680 echo "$as_me: error: no acceptable C compiler found in \$PATH
1681 See \`config.log' for more details." >&2;}
1682    { (exit 1); exit 1; }; }
1683
1684 # Provide some information about the compiler.
1685 echo "$as_me:$LINENO:" \
1686      "checking for C compiler version" >&5
1687 ac_compiler=`set X $ac_compile; echo $2`
1688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1689   (eval $ac_compiler --version </dev/null >&5) 2>&5
1690   ac_status=$?
1691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692   (exit $ac_status); }
1693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1694   (eval $ac_compiler -v </dev/null >&5) 2>&5
1695   ac_status=$?
1696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697   (exit $ac_status); }
1698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1699   (eval $ac_compiler -V </dev/null >&5) 2>&5
1700   ac_status=$?
1701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702   (exit $ac_status); }
1703
1704 cat >conftest.$ac_ext <<_ACEOF
1705 /* confdefs.h.  */
1706 _ACEOF
1707 cat confdefs.h >>conftest.$ac_ext
1708 cat >>conftest.$ac_ext <<_ACEOF
1709 /* end confdefs.h.  */
1710
1711 int
1712 main ()
1713 {
1714
1715   ;
1716   return 0;
1717 }
1718 _ACEOF
1719 ac_clean_files_save=$ac_clean_files
1720 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1721 # Try to create an executable without -o first, disregard a.out.
1722 # It will help us diagnose broken compilers, and finding out an intuition
1723 # of exeext.
1724 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1725 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1726 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1727 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1728   (eval $ac_link_default) 2>&5
1729   ac_status=$?
1730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731   (exit $ac_status); }; then
1732   # Find the output, starting from the most likely.  This scheme is
1733 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1734 # resort.
1735
1736 # Be careful to initialize this variable, since it used to be cached.
1737 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1738 ac_cv_exeext=
1739 # b.out is created by i960 compilers.
1740 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1741 do
1742   test -f "$ac_file" || continue
1743   case $ac_file in
1744     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1745         ;;
1746     conftest.$ac_ext )
1747         # This is the source file.
1748         ;;
1749     [ab].out )
1750         # We found the default executable, but exeext='' is most
1751         # certainly right.
1752         break;;
1753     *.* )
1754         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755         # FIXME: I believe we export ac_cv_exeext for Libtool,
1756         # but it would be cool to find out if it's true.  Does anybody
1757         # maintain Libtool? --akim.
1758         export ac_cv_exeext
1759         break;;
1760     * )
1761         break;;
1762   esac
1763 done
1764 else
1765   echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1769 See \`config.log' for more details." >&5
1770 echo "$as_me: error: C compiler cannot create executables
1771 See \`config.log' for more details." >&2;}
1772    { (exit 77); exit 77; }; }
1773 fi
1774
1775 ac_exeext=$ac_cv_exeext
1776 echo "$as_me:$LINENO: result: $ac_file" >&5
1777 echo "${ECHO_T}$ac_file" >&6
1778
1779 # Check the compiler produces executables we can run.  If not, either
1780 # the compiler is broken, or we cross compile.
1781 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1782 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784 # If not cross compiling, check that we can run a simple program.
1785 if test "$cross_compiling" != yes; then
1786   if { ac_try='./$ac_file'
1787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788   (eval $ac_try) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }; }; then
1792     cross_compiling=no
1793   else
1794     if test "$cross_compiling" = maybe; then
1795         cross_compiling=yes
1796     else
1797         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'.
1799 See \`config.log' for more details." >&5
1800 echo "$as_me: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'.
1802 See \`config.log' for more details." >&2;}
1803    { (exit 1); exit 1; }; }
1804     fi
1805   fi
1806 fi
1807 echo "$as_me:$LINENO: result: yes" >&5
1808 echo "${ECHO_T}yes" >&6
1809
1810 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1811 ac_clean_files=$ac_clean_files_save
1812 # Check the compiler produces executables we can run.  If not, either
1813 # the compiler is broken, or we cross compile.
1814 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1815 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1817 echo "${ECHO_T}$cross_compiling" >&6
1818
1819 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1820 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1822   (eval $ac_link) 2>&5
1823   ac_status=$?
1824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825   (exit $ac_status); }; then
1826   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1828 # work properly (i.e., refer to `conftest.exe'), while it won't with
1829 # `rm'.
1830 for ac_file in conftest.exe conftest conftest.*; do
1831   test -f "$ac_file" || continue
1832   case $ac_file in
1833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1834     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835           export ac_cv_exeext
1836           break;;
1837     * ) break;;
1838   esac
1839 done
1840 else
1841   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1844 See \`config.log' for more details." >&2;}
1845    { (exit 1); exit 1; }; }
1846 fi
1847
1848 rm -f conftest$ac_cv_exeext
1849 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1850 echo "${ECHO_T}$ac_cv_exeext" >&6
1851
1852 rm -f conftest.$ac_ext
1853 EXEEXT=$ac_cv_exeext
1854 ac_exeext=$EXEEXT
1855 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1856 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1857 if test "${ac_cv_objext+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   cat >conftest.$ac_ext <<_ACEOF
1861 /* confdefs.h.  */
1862 _ACEOF
1863 cat confdefs.h >>conftest.$ac_ext
1864 cat >>conftest.$ac_ext <<_ACEOF
1865 /* end confdefs.h.  */
1866
1867 int
1868 main ()
1869 {
1870
1871   ;
1872   return 0;
1873 }
1874 _ACEOF
1875 rm -f conftest.o conftest.obj
1876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1877   (eval $ac_compile) 2>&5
1878   ac_status=$?
1879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880   (exit $ac_status); }; then
1881   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1882   case $ac_file in
1883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1884     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1885        break;;
1886   esac
1887 done
1888 else
1889   echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1893 See \`config.log' for more details." >&5
1894 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1895 See \`config.log' for more details." >&2;}
1896    { (exit 1); exit 1; }; }
1897 fi
1898
1899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1900 fi
1901 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1902 echo "${ECHO_T}$ac_cv_objext" >&6
1903 OBJEXT=$ac_cv_objext
1904 ac_objext=$OBJEXT
1905 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1908   echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910   cat >conftest.$ac_ext <<_ACEOF
1911 /* confdefs.h.  */
1912 _ACEOF
1913 cat confdefs.h >>conftest.$ac_ext
1914 cat >>conftest.$ac_ext <<_ACEOF
1915 /* end confdefs.h.  */
1916
1917 int
1918 main ()
1919 {
1920 #ifndef __GNUC__
1921        choke me
1922 #endif
1923
1924   ;
1925   return 0;
1926 }
1927 _ACEOF
1928 rm -f conftest.$ac_objext
1929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930   (eval $ac_compile) 2>conftest.er1
1931   ac_status=$?
1932   grep -v '^ *+' conftest.er1 >conftest.err
1933   rm -f conftest.er1
1934   cat conftest.err >&5
1935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936   (exit $ac_status); } &&
1937          { ac_try='test -z "$ac_c_werror_flag"
1938                          || test ! -s conftest.err'
1939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940   (eval $ac_try) 2>&5
1941   ac_status=$?
1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943   (exit $ac_status); }; } &&
1944          { ac_try='test -s conftest.$ac_objext'
1945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946   (eval $ac_try) 2>&5
1947   ac_status=$?
1948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949   (exit $ac_status); }; }; then
1950   ac_compiler_gnu=yes
1951 else
1952   echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 ac_compiler_gnu=no
1956 fi
1957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1958 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1959
1960 fi
1961 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1962 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1963 GCC=`test $ac_compiler_gnu = yes && echo yes`
1964 ac_test_CFLAGS=${CFLAGS+set}
1965 ac_save_CFLAGS=$CFLAGS
1966 CFLAGS="-g"
1967 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1968 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1969 if test "${ac_cv_prog_cc_g+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   cat >conftest.$ac_ext <<_ACEOF
1973 /* confdefs.h.  */
1974 _ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h.  */
1978
1979 int
1980 main ()
1981 {
1982
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989   (eval $ac_compile) 2>conftest.er1
1990   ac_status=$?
1991   grep -v '^ *+' conftest.er1 >conftest.err
1992   rm -f conftest.er1
1993   cat conftest.err >&5
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); } &&
1996          { ac_try='test -z "$ac_c_werror_flag"
1997                          || test ! -s conftest.err'
1998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999   (eval $ac_try) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }; } &&
2003          { ac_try='test -s conftest.$ac_objext'
2004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005   (eval $ac_try) 2>&5
2006   ac_status=$?
2007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008   (exit $ac_status); }; }; then
2009   ac_cv_prog_cc_g=yes
2010 else
2011   echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 ac_cv_prog_cc_g=no
2015 fi
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2019 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2020 if test "$ac_test_CFLAGS" = set; then
2021   CFLAGS=$ac_save_CFLAGS
2022 elif test $ac_cv_prog_cc_g = yes; then
2023   if test "$GCC" = yes; then
2024     CFLAGS="-g -O2"
2025   else
2026     CFLAGS="-g"
2027   fi
2028 else
2029   if test "$GCC" = yes; then
2030     CFLAGS="-O2"
2031   else
2032     CFLAGS=
2033   fi
2034 fi
2035 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2036 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2037 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2038   echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040   ac_cv_prog_cc_stdc=no
2041 ac_save_CC=$CC
2042 cat >conftest.$ac_ext <<_ACEOF
2043 /* confdefs.h.  */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h.  */
2048 #include <stdarg.h>
2049 #include <stdio.h>
2050 #include <sys/types.h>
2051 #include <sys/stat.h>
2052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2053 struct buf { int x; };
2054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2055 static char *e (p, i)
2056      char **p;
2057      int i;
2058 {
2059   return p[i];
2060 }
2061 static char *f (char * (*g) (char **, int), char **p, ...)
2062 {
2063   char *s;
2064   va_list v;
2065   va_start (v,p);
2066   s = g (p, va_arg (v,int));
2067   va_end (v);
2068   return s;
2069 }
2070
2071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2072    function prototypes and stuff, but not '\xHH' hex character constants.
2073    These don't provoke an error unfortunately, instead are silently treated
2074    as 'x'.  The following induces an error, until -std1 is added to get
2075    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2076    array size at least.  It's necessary to write '\x00'==0 to get something
2077    that's true only with -std1.  */
2078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2079
2080 int test (int i, double x);
2081 struct s1 {int (*f) (int a);};
2082 struct s2 {int (*f) (double a);};
2083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2084 int argc;
2085 char **argv;
2086 int
2087 main ()
2088 {
2089 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 # Don't try gcc -ansi; that turns off useful extensions and
2095 # breaks some systems' header files.
2096 # AIX                   -qlanglvl=ansi
2097 # Ultrix and OSF/1      -std1
2098 # HP-UX 10.20 and later -Ae
2099 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2100 # SVR4                  -Xc -D__EXTENSIONS__
2101 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2102 do
2103   CC="$ac_save_CC $ac_arg"
2104   rm -f conftest.$ac_objext
2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106   (eval $ac_compile) 2>conftest.er1
2107   ac_status=$?
2108   grep -v '^ *+' conftest.er1 >conftest.err
2109   rm -f conftest.er1
2110   cat conftest.err >&5
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); } &&
2113          { ac_try='test -z "$ac_c_werror_flag"
2114                          || test ! -s conftest.err'
2115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116   (eval $ac_try) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }; } &&
2120          { ac_try='test -s conftest.$ac_objext'
2121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122   (eval $ac_try) 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }; }; then
2126   ac_cv_prog_cc_stdc=$ac_arg
2127 break
2128 else
2129   echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2131
2132 fi
2133 rm -f conftest.err conftest.$ac_objext
2134 done
2135 rm -f conftest.$ac_ext conftest.$ac_objext
2136 CC=$ac_save_CC
2137
2138 fi
2139
2140 case "x$ac_cv_prog_cc_stdc" in
2141   x|xno)
2142     echo "$as_me:$LINENO: result: none needed" >&5
2143 echo "${ECHO_T}none needed" >&6 ;;
2144   *)
2145     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2146 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2147     CC="$CC $ac_cv_prog_cc_stdc" ;;
2148 esac
2149
2150 # Some people use a C++ compiler to compile C.  Since we use `exit',
2151 # in C++ we need to declare it.  In case someone uses the same compiler
2152 # for both compiling C and C++ we need to have the C++ compiler decide
2153 # the declaration of exit, since it's the most demanding environment.
2154 cat >conftest.$ac_ext <<_ACEOF
2155 #ifndef __cplusplus
2156   choke me
2157 #endif
2158 _ACEOF
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161   (eval $ac_compile) 2>conftest.er1
2162   ac_status=$?
2163   grep -v '^ *+' conftest.er1 >conftest.err
2164   rm -f conftest.er1
2165   cat conftest.err >&5
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); } &&
2168          { ac_try='test -z "$ac_c_werror_flag"
2169                          || test ! -s conftest.err'
2170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171   (eval $ac_try) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; } &&
2175          { ac_try='test -s conftest.$ac_objext'
2176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177   (eval $ac_try) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; }; then
2181   for ac_declaration in \
2182    '' \
2183    'extern "C" void std::exit (int) throw (); using std::exit;' \
2184    'extern "C" void std::exit (int); using std::exit;' \
2185    'extern "C" void exit (int) throw ();' \
2186    'extern "C" void exit (int);' \
2187    'void exit (int);'
2188 do
2189   cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h.  */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h.  */
2195 $ac_declaration
2196 #include <stdlib.h>
2197 int
2198 main ()
2199 {
2200 exit (42);
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 rm -f conftest.$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207   (eval $ac_compile) 2>conftest.er1
2208   ac_status=$?
2209   grep -v '^ *+' conftest.er1 >conftest.err
2210   rm -f conftest.er1
2211   cat conftest.err >&5
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); } &&
2214          { ac_try='test -z "$ac_c_werror_flag"
2215                          || test ! -s conftest.err'
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); }; } &&
2221          { ac_try='test -s conftest.$ac_objext'
2222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223   (eval $ac_try) 2>&5
2224   ac_status=$?
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); }; }; then
2227   :
2228 else
2229   echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 continue
2233 fi
2234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2235   cat >conftest.$ac_ext <<_ACEOF
2236 /* confdefs.h.  */
2237 _ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h.  */
2241 $ac_declaration
2242 int
2243 main ()
2244 {
2245 exit (42);
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252   (eval $ac_compile) 2>conftest.er1
2253   ac_status=$?
2254   grep -v '^ *+' conftest.er1 >conftest.err
2255   rm -f conftest.er1
2256   cat conftest.err >&5
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); } &&
2259          { ac_try='test -z "$ac_c_werror_flag"
2260                          || test ! -s conftest.err'
2261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262   (eval $ac_try) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; } &&
2266          { ac_try='test -s conftest.$ac_objext'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; }; then
2272   break
2273 else
2274   echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 fi
2278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279 done
2280 rm -f conftest*
2281 if test -n "$ac_declaration"; then
2282   echo '#ifdef __cplusplus' >>confdefs.h
2283   echo $ac_declaration      >>confdefs.h
2284   echo '#endif'             >>confdefs.h
2285 fi
2286
2287 else
2288   echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 fi
2292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293 ac_ext=c
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298
2299 cat >>confdefs.h <<\_ACEOF
2300 #define _GNU_SOURCE 1
2301 _ACEOF
2302
2303
2304
2305 ac_ext=c
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2312 # On Suns, sometimes $CPP names a directory.
2313 if test -n "$CPP" && test -d "$CPP"; then
2314   CPP=
2315 fi
2316 if test -z "$CPP"; then
2317   if test "${ac_cv_prog_CPP+set}" = set; then
2318   echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320       # Double quotes because CPP needs to be expanded
2321     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2322     do
2323       ac_preproc_ok=false
2324 for ac_c_preproc_warn_flag in '' yes
2325 do
2326   # Use a header file that comes with gcc, so configuring glibc
2327   # with a fresh cross-compiler works.
2328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329   # <limits.h> exists even on freestanding compilers.
2330   # On the NeXT, cc -E runs the code through the compiler's parser,
2331   # not just through cpp. "Syntax error" is here to catch this case.
2332   cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h.  */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h.  */
2338 #ifdef __STDC__
2339 # include <limits.h>
2340 #else
2341 # include <assert.h>
2342 #endif
2343                      Syntax error
2344 _ACEOF
2345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347   ac_status=$?
2348   grep -v '^ *+' conftest.er1 >conftest.err
2349   rm -f conftest.er1
2350   cat conftest.err >&5
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); } >/dev/null; then
2353   if test -s conftest.err; then
2354     ac_cpp_err=$ac_c_preproc_warn_flag
2355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356   else
2357     ac_cpp_err=
2358   fi
2359 else
2360   ac_cpp_err=yes
2361 fi
2362 if test -z "$ac_cpp_err"; then
2363   :
2364 else
2365   echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368   # Broken: fails on valid input.
2369 continue
2370 fi
2371 rm -f conftest.err conftest.$ac_ext
2372
2373   # OK, works on sane cases.  Now check whether non-existent headers
2374   # can be detected and how.
2375   cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h.  */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h.  */
2381 #include <ac_nonexistent.h>
2382 _ACEOF
2383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385   ac_status=$?
2386   grep -v '^ *+' conftest.er1 >conftest.err
2387   rm -f conftest.er1
2388   cat conftest.err >&5
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } >/dev/null; then
2391   if test -s conftest.err; then
2392     ac_cpp_err=$ac_c_preproc_warn_flag
2393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394   else
2395     ac_cpp_err=
2396   fi
2397 else
2398   ac_cpp_err=yes
2399 fi
2400 if test -z "$ac_cpp_err"; then
2401   # Broken: success on invalid input.
2402 continue
2403 else
2404   echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407   # Passes both tests.
2408 ac_preproc_ok=:
2409 break
2410 fi
2411 rm -f conftest.err conftest.$ac_ext
2412
2413 done
2414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2415 rm -f conftest.err conftest.$ac_ext
2416 if $ac_preproc_ok; then
2417   break
2418 fi
2419
2420     done
2421     ac_cv_prog_CPP=$CPP
2422
2423 fi
2424   CPP=$ac_cv_prog_CPP
2425 else
2426   ac_cv_prog_CPP=$CPP
2427 fi
2428 echo "$as_me:$LINENO: result: $CPP" >&5
2429 echo "${ECHO_T}$CPP" >&6
2430 ac_preproc_ok=false
2431 for ac_c_preproc_warn_flag in '' yes
2432 do
2433   # Use a header file that comes with gcc, so configuring glibc
2434   # with a fresh cross-compiler works.
2435   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2436   # <limits.h> exists even on freestanding compilers.
2437   # On the NeXT, cc -E runs the code through the compiler's parser,
2438   # not just through cpp. "Syntax error" is here to catch this case.
2439   cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h.  */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h.  */
2445 #ifdef __STDC__
2446 # include <limits.h>
2447 #else
2448 # include <assert.h>
2449 #endif
2450                      Syntax error
2451 _ACEOF
2452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454   ac_status=$?
2455   grep -v '^ *+' conftest.er1 >conftest.err
2456   rm -f conftest.er1
2457   cat conftest.err >&5
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); } >/dev/null; then
2460   if test -s conftest.err; then
2461     ac_cpp_err=$ac_c_preproc_warn_flag
2462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2463   else
2464     ac_cpp_err=
2465   fi
2466 else
2467   ac_cpp_err=yes
2468 fi
2469 if test -z "$ac_cpp_err"; then
2470   :
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475   # Broken: fails on valid input.
2476 continue
2477 fi
2478 rm -f conftest.err conftest.$ac_ext
2479
2480   # OK, works on sane cases.  Now check whether non-existent headers
2481   # can be detected and how.
2482   cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h.  */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h.  */
2488 #include <ac_nonexistent.h>
2489 _ACEOF
2490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2492   ac_status=$?
2493   grep -v '^ *+' conftest.er1 >conftest.err
2494   rm -f conftest.er1
2495   cat conftest.err >&5
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); } >/dev/null; then
2498   if test -s conftest.err; then
2499     ac_cpp_err=$ac_c_preproc_warn_flag
2500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2501   else
2502     ac_cpp_err=
2503   fi
2504 else
2505   ac_cpp_err=yes
2506 fi
2507 if test -z "$ac_cpp_err"; then
2508   # Broken: success on invalid input.
2509 continue
2510 else
2511   echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514   # Passes both tests.
2515 ac_preproc_ok=:
2516 break
2517 fi
2518 rm -f conftest.err conftest.$ac_ext
2519
2520 done
2521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2522 rm -f conftest.err conftest.$ac_ext
2523 if $ac_preproc_ok; then
2524   :
2525 else
2526   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2529 See \`config.log' for more details." >&2;}
2530    { (exit 1); exit 1; }; }
2531 fi
2532
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540 echo "$as_me:$LINENO: checking for egrep" >&5
2541 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2542 if test "${ac_cv_prog_egrep+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2546     then ac_cv_prog_egrep='grep -E'
2547     else ac_cv_prog_egrep='egrep'
2548     fi
2549 fi
2550 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2551 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2552  EGREP=$ac_cv_prog_egrep
2553
2554
2555
2556 echo "$as_me:$LINENO: checking for AIX" >&5
2557 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h.  */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h.  */
2564 #ifdef _AIX
2565   yes
2566 #endif
2567
2568 _ACEOF
2569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2570   $EGREP "yes" >/dev/null 2>&1; then
2571   echo "$as_me:$LINENO: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6
2573 cat >>confdefs.h <<\_ACEOF
2574 #define _ALL_SOURCE 1
2575 _ACEOF
2576
2577 else
2578   echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2580 fi
2581 rm -f conftest*
2582
2583
2584 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2585 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2586 if test "${ac_cv_search_strerror+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   ac_func_search_save_LIBS=$LIBS
2590 ac_cv_search_strerror=no
2591 cat >conftest.$ac_ext <<_ACEOF
2592 /* confdefs.h.  */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h.  */
2597
2598 /* Override any gcc2 internal prototype to avoid an error.  */
2599 #ifdef __cplusplus
2600 extern "C"
2601 #endif
2602 /* We use char because int might match the return type of a gcc2
2603    builtin and then its argument prototype would still apply.  */
2604 char strerror ();
2605 int
2606 main ()
2607 {
2608 strerror ();
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext conftest$ac_exeext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615   (eval $ac_link) 2>conftest.er1
2616   ac_status=$?
2617   grep -v '^ *+' conftest.er1 >conftest.err
2618   rm -f conftest.er1
2619   cat conftest.err >&5
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } &&
2622          { ac_try='test -z "$ac_c_werror_flag"
2623                          || test ! -s conftest.err'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; } &&
2629          { ac_try='test -s conftest$ac_exeext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   ac_cv_search_strerror="none required"
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.err conftest.$ac_objext \
2642       conftest$ac_exeext conftest.$ac_ext
2643 if test "$ac_cv_search_strerror" = no; then
2644   for ac_lib in cposix; do
2645     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2646     cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h.  */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h.  */
2652
2653 /* Override any gcc2 internal prototype to avoid an error.  */
2654 #ifdef __cplusplus
2655 extern "C"
2656 #endif
2657 /* We use char because int might match the return type of a gcc2
2658    builtin and then its argument prototype would still apply.  */
2659 char strerror ();
2660 int
2661 main ()
2662 {
2663 strerror ();
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 rm -f conftest.$ac_objext conftest$ac_exeext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670   (eval $ac_link) 2>conftest.er1
2671   ac_status=$?
2672   grep -v '^ *+' conftest.er1 >conftest.err
2673   rm -f conftest.er1
2674   cat conftest.err >&5
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); } &&
2677          { ac_try='test -z "$ac_c_werror_flag"
2678                          || test ! -s conftest.err'
2679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680   (eval $ac_try) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }; } &&
2684          { ac_try='test -s conftest$ac_exeext'
2685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686   (eval $ac_try) 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); }; }; then
2690   ac_cv_search_strerror="-l$ac_lib"
2691 break
2692 else
2693   echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696 fi
2697 rm -f conftest.err conftest.$ac_objext \
2698       conftest$ac_exeext conftest.$ac_ext
2699   done
2700 fi
2701 LIBS=$ac_func_search_save_LIBS
2702 fi
2703 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705 if test "$ac_cv_search_strerror" != no; then
2706   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2707
2708 fi
2709
2710
2711
2712
2713 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2714 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2715 if test "${am_cv_prog_cc_stdc+set}" = set; then
2716   echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718   am_cv_prog_cc_stdc=no
2719 ac_save_CC="$CC"
2720 # Don't try gcc -ansi; that turns off useful extensions and
2721 # breaks some systems' header files.
2722 # AIX                   -qlanglvl=ansi
2723 # Ultrix and OSF/1      -std1
2724 # HP-UX 10.20 and later -Ae
2725 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2726 # SVR4                  -Xc -D__EXTENSIONS__
2727 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 do
2729   CC="$ac_save_CC $ac_arg"
2730   cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h.  */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h.  */
2736 #include <stdarg.h>
2737 #include <stdio.h>
2738 #include <sys/types.h>
2739 #include <sys/stat.h>
2740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2741 struct buf { int x; };
2742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743 static char *e (p, i)
2744      char **p;
2745      int i;
2746 {
2747   return p[i];
2748 }
2749 static char *f (char * (*g) (char **, int), char **p, ...)
2750 {
2751   char *s;
2752   va_list v;
2753   va_start (v,p);
2754   s = g (p, va_arg (v,int));
2755   va_end (v);
2756   return s;
2757 }
2758 int test (int i, double x);
2759 struct s1 {int (*f) (int a);};
2760 struct s2 {int (*f) (double a);};
2761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762 int argc;
2763 char **argv;
2764
2765 int
2766 main ()
2767 {
2768
2769 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2770
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777   (eval $ac_compile) 2>conftest.er1
2778   ac_status=$?
2779   grep -v '^ *+' conftest.er1 >conftest.err
2780   rm -f conftest.er1
2781   cat conftest.err >&5
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); } &&
2784          { ac_try='test -z "$ac_c_werror_flag"
2785                          || test ! -s conftest.err'
2786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787   (eval $ac_try) 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }; } &&
2791          { ac_try='test -s conftest.$ac_objext'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; }; then
2797   am_cv_prog_cc_stdc="$ac_arg"; break
2798 else
2799   echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2801
2802 fi
2803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804 done
2805 CC="$ac_save_CC"
2806
2807 fi
2808
2809 if test -z "$am_cv_prog_cc_stdc"; then
2810   echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6
2812 else
2813   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2815 fi
2816 case "x$am_cv_prog_cc_stdc" in
2817   x|xno) ;;
2818   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2819 esac
2820
2821
2822 ac_aux_dir=
2823 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2824   if test -f $ac_dir/install-sh; then
2825     ac_aux_dir=$ac_dir
2826     ac_install_sh="$ac_aux_dir/install-sh -c"
2827     break
2828   elif test -f $ac_dir/install.sh; then
2829     ac_aux_dir=$ac_dir
2830     ac_install_sh="$ac_aux_dir/install.sh -c"
2831     break
2832   elif test -f $ac_dir/shtool; then
2833     ac_aux_dir=$ac_dir
2834     ac_install_sh="$ac_aux_dir/shtool install -c"
2835     break
2836   fi
2837 done
2838 if test -z "$ac_aux_dir"; then
2839   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2840 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2841    { (exit 1); exit 1; }; }
2842 fi
2843 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2844 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2845 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2846
2847 # Make sure we can run config.sub.
2848 $ac_config_sub sun4 >/dev/null 2>&1 ||
2849   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2850 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2851    { (exit 1); exit 1; }; }
2852
2853 echo "$as_me:$LINENO: checking build system type" >&5
2854 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2855 if test "${ac_cv_build+set}" = set; then
2856   echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858   ac_cv_build_alias=$build_alias
2859 test -z "$ac_cv_build_alias" &&
2860   ac_cv_build_alias=`$ac_config_guess`
2861 test -z "$ac_cv_build_alias" &&
2862   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2863 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2864    { (exit 1); exit 1; }; }
2865 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2866   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2867 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2868    { (exit 1); exit 1; }; }
2869
2870 fi
2871 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2872 echo "${ECHO_T}$ac_cv_build" >&6
2873 build=$ac_cv_build
2874 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2875 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2876 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2877
2878
2879 echo "$as_me:$LINENO: checking host system type" >&5
2880 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2881 if test "${ac_cv_host+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884   ac_cv_host_alias=$host_alias
2885 test -z "$ac_cv_host_alias" &&
2886   ac_cv_host_alias=$ac_cv_build_alias
2887 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2888   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2889 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2890    { (exit 1); exit 1; }; }
2891
2892 fi
2893 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2894 echo "${ECHO_T}$ac_cv_host" >&6
2895 host=$ac_cv_host
2896 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2897 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2898 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2899
2900
2901 echo "$as_me:$LINENO: checking target system type" >&5
2902 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2903 if test "${ac_cv_target+set}" = set; then
2904   echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906   ac_cv_target_alias=$target_alias
2907 test "x$ac_cv_target_alias" = "x" &&
2908   ac_cv_target_alias=$ac_cv_host_alias
2909 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2910   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2911 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2912    { (exit 1); exit 1; }; }
2913
2914 fi
2915 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2916 echo "${ECHO_T}$ac_cv_target" >&6
2917 target=$ac_cv_target
2918 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2919 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2920 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2921
2922
2923 # The aliases save the names the user supplied, while $host etc.
2924 # will get canonicalized.
2925 test -n "$target_alias" &&
2926   test "$program_prefix$program_suffix$program_transform_name" = \
2927     NONENONEs,x,x, &&
2928   program_prefix=${target_alias}-
2929
2930
2931 CONFIG_OBS=
2932 CONFIG_DEPS=
2933 CONFIG_SRCS=
2934 ENABLE_CFLAGS=
2935
2936 CONFIG_ALL=
2937 CONFIG_CLEAN=
2938 CONFIG_INSTALL=
2939 CONFIG_UNINSTALL=
2940
2941
2942 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2944 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2945 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   cat >conftest.make <<\_ACEOF
2949 all:
2950         @echo 'ac_maketemp="$(MAKE)"'
2951 _ACEOF
2952 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2953 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2954 if test -n "$ac_maketemp"; then
2955   eval ac_cv_prog_make_${ac_make}_set=yes
2956 else
2957   eval ac_cv_prog_make_${ac_make}_set=no
2958 fi
2959 rm -f conftest.make
2960 fi
2961 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2962   echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2964   SET_MAKE=
2965 else
2966   echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2968   SET_MAKE="MAKE=${MAKE-make}"
2969 fi
2970
2971 if test -n "$ac_tool_prefix"; then
2972   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_RANLIB+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   if test -n "$RANLIB"; then
2980   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987   for ac_exec_ext in '' $ac_executable_extensions; do
2988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994 done
2995
2996 fi
2997 fi
2998 RANLIB=$ac_cv_prog_RANLIB
2999 if test -n "$RANLIB"; then
3000   echo "$as_me:$LINENO: result: $RANLIB" >&5
3001 echo "${ECHO_T}$RANLIB" >&6
3002 else
3003   echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3005 fi
3006
3007 fi
3008 if test -z "$ac_cv_prog_RANLIB"; then
3009   ac_ct_RANLIB=$RANLIB
3010   # Extract the first word of "ranlib", so it can be a program name with args.
3011 set dummy ranlib; ac_word=$2
3012 echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   if test -n "$ac_ct_RANLIB"; then
3018   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023   IFS=$as_save_IFS
3024   test -z "$as_dir" && as_dir=.
3025   for ac_exec_ext in '' $ac_executable_extensions; do
3026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027     ac_cv_prog_ac_ct_RANLIB="ranlib"
3028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029     break 2
3030   fi
3031 done
3032 done
3033
3034   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3035 fi
3036 fi
3037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3038 if test -n "$ac_ct_RANLIB"; then
3039   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3040 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3041 else
3042   echo "$as_me:$LINENO: result: no" >&5
3043 echo "${ECHO_T}no" >&6
3044 fi
3045
3046   RANLIB=$ac_ct_RANLIB
3047 else
3048   RANLIB="$ac_cv_prog_RANLIB"
3049 fi
3050
3051 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3053 if test "${ac_cv_header_stdc+set}" = set; then
3054   echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056   cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062 #include <stdlib.h>
3063 #include <stdarg.h>
3064 #include <string.h>
3065 #include <float.h>
3066
3067 int
3068 main ()
3069 {
3070
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077   (eval $ac_compile) 2>conftest.er1
3078   ac_status=$?
3079   grep -v '^ *+' conftest.er1 >conftest.err
3080   rm -f conftest.er1
3081   cat conftest.err >&5
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } &&
3084          { ac_try='test -z "$ac_c_werror_flag"
3085                          || test ! -s conftest.err'
3086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087   (eval $ac_try) 2>&5
3088   ac_status=$?
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); }; } &&
3091          { ac_try='test -s conftest.$ac_objext'
3092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093   (eval $ac_try) 2>&5
3094   ac_status=$?
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }; }; then
3097   ac_cv_header_stdc=yes
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102 ac_cv_header_stdc=no
3103 fi
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105
3106 if test $ac_cv_header_stdc = yes; then
3107   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108   cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h.  */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h.  */
3114 #include <string.h>
3115
3116 _ACEOF
3117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118   $EGREP "memchr" >/dev/null 2>&1; then
3119   :
3120 else
3121   ac_cv_header_stdc=no
3122 fi
3123 rm -f conftest*
3124
3125 fi
3126
3127 if test $ac_cv_header_stdc = yes; then
3128   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3129   cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135 #include <stdlib.h>
3136
3137 _ACEOF
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139   $EGREP "free" >/dev/null 2>&1; then
3140   :
3141 else
3142   ac_cv_header_stdc=no
3143 fi
3144 rm -f conftest*
3145
3146 fi
3147
3148 if test $ac_cv_header_stdc = yes; then
3149   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3150   if test "$cross_compiling" = yes; then
3151   :
3152 else
3153   cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 #include <ctype.h>
3160 #if ((' ' & 0x0FF) == 0x020)
3161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3163 #else
3164 # define ISLOWER(c) \
3165                    (('a' <= (c) && (c) <= 'i') \
3166                      || ('j' <= (c) && (c) <= 'r') \
3167                      || ('s' <= (c) && (c) <= 'z'))
3168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3169 #endif
3170
3171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3172 int
3173 main ()
3174 {
3175   int i;
3176   for (i = 0; i < 256; i++)
3177     if (XOR (islower (i), ISLOWER (i))
3178         || toupper (i) != TOUPPER (i))
3179       exit(2);
3180   exit (0);
3181 }
3182 _ACEOF
3183 rm -f conftest$ac_exeext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185   (eval $ac_link) 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; }; then
3194   :
3195 else
3196   echo "$as_me: program exited with status $ac_status" >&5
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 ( exit $ac_status )
3201 ac_cv_header_stdc=no
3202 fi
3203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3204 fi
3205 fi
3206 fi
3207 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3208 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3209 if test $ac_cv_header_stdc = yes; then
3210
3211 cat >>confdefs.h <<\_ACEOF
3212 #define STDC_HEADERS 1
3213 _ACEOF
3214
3215 fi
3216
3217 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3219 if test "${ac_cv_c_const+set}" = set; then
3220   echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222   cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228
3229 int
3230 main ()
3231 {
3232 /* FIXME: Include the comments suggested by Paul. */
3233 #ifndef __cplusplus
3234   /* Ultrix mips cc rejects this.  */
3235   typedef int charset[2];
3236   const charset x;
3237   /* SunOS 4.1.1 cc rejects this.  */
3238   char const *const *ccp;
3239   char **p;
3240   /* NEC SVR4.0.2 mips cc rejects this.  */
3241   struct point {int x, y;};
3242   static struct point const zero = {0,0};
3243   /* AIX XL C 1.02.0.0 rejects this.
3244      It does not let you subtract one const X* pointer from another in
3245      an arm of an if-expression whose if-part is not a constant
3246      expression */
3247   const char *g = "string";
3248   ccp = &g + (g ? g-g : 0);
3249   /* HPUX 7.0 cc rejects these. */
3250   ++ccp;
3251   p = (char**) ccp;
3252   ccp = (char const *const *) p;
3253   { /* SCO 3.2v4 cc rejects this.  */
3254     char *t;
3255     char const *s = 0 ? (char *) 0 : (char const *) 0;
3256
3257     *t++ = 0;
3258   }
3259   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3260     int x[] = {25, 17};
3261     const int *foo = &x[0];
3262     ++foo;
3263   }
3264   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265     typedef const int *iptr;
3266     iptr p = 0;
3267     ++p;
3268   }
3269   { /* AIX XL C 1.02.0.0 rejects this saying
3270        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271     struct s { int j; const int *ap[3]; };
3272     struct s *b; b->j = 5;
3273   }
3274   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3275     const int foo = 10;
3276   }
3277 #endif
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285   (eval $ac_compile) 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } &&
3292          { ac_try='test -z "$ac_c_werror_flag"
3293                          || test ! -s conftest.err'
3294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295   (eval $ac_try) 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); }; } &&
3299          { ac_try='test -s conftest.$ac_objext'
3300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301   (eval $ac_try) 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }; }; then
3305   ac_cv_c_const=yes
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 ac_cv_c_const=no
3311 fi
3312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3313 fi
3314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315 echo "${ECHO_T}$ac_cv_c_const" >&6
3316 if test $ac_cv_c_const = no; then
3317
3318 cat >>confdefs.h <<\_ACEOF
3319 #define const
3320 _ACEOF
3321
3322 fi
3323
3324 echo "$as_me:$LINENO: checking for inline" >&5
3325 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3326 if test "${ac_cv_c_inline+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   ac_cv_c_inline=no
3330 for ac_kw in inline __inline__ __inline; do
3331   cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h.  */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h.  */
3337 #ifndef __cplusplus
3338 typedef int foo_t;
3339 static $ac_kw foo_t static_foo () {return 0; }
3340 $ac_kw foo_t foo () {return 0; }
3341 #endif
3342
3343 _ACEOF
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346   (eval $ac_compile) 2>conftest.er1
3347   ac_status=$?
3348   grep -v '^ *+' conftest.er1 >conftest.err
3349   rm -f conftest.er1
3350   cat conftest.err >&5
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); } &&
3353          { ac_try='test -z "$ac_c_werror_flag"
3354                          || test ! -s conftest.err'
3355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356   (eval $ac_try) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; } &&
3360          { ac_try='test -s conftest.$ac_objext'
3361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362   (eval $ac_try) 2>&5
3363   ac_status=$?
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); }; }; then
3366   ac_cv_c_inline=$ac_kw; break
3367 else
3368   echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 fi
3372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3373 done
3374
3375 fi
3376 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377 echo "${ECHO_T}$ac_cv_c_inline" >&6
3378
3379
3380 case $ac_cv_c_inline in
3381   inline | yes) ;;
3382   *)
3383     case $ac_cv_c_inline in
3384       no) ac_val=;;
3385       *) ac_val=$ac_cv_c_inline;;
3386     esac
3387     cat >>confdefs.h <<_ACEOF
3388 #ifndef __cplusplus
3389 #define inline $ac_val
3390 #endif
3391 _ACEOF
3392     ;;
3393 esac
3394
3395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406                   inttypes.h stdint.h unistd.h
3407 do
3408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409 echo "$as_me:$LINENO: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 $ac_includes_default
3421
3422 #include <$ac_header>
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426   (eval $ac_compile) 2>conftest.er1
3427   ac_status=$?
3428   grep -v '^ *+' conftest.er1 >conftest.err
3429   rm -f conftest.er1
3430   cat conftest.err >&5
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } &&
3433          { ac_try='test -z "$ac_c_werror_flag"
3434                          || test ! -s conftest.err'
3435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436   (eval $ac_try) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }; } &&
3440          { ac_try='test -s conftest.$ac_objext'
3441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442   (eval $ac_try) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }; }; then
3446   eval "$as_ac_Header=yes"
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 eval "$as_ac_Header=no"
3452 fi
3453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454 fi
3455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458   cat >>confdefs.h <<_ACEOF
3459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460 _ACEOF
3461
3462 fi
3463
3464 done
3465
3466
3467 echo "$as_me:$LINENO: checking for off_t" >&5
3468 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3469 if test "${ac_cv_type_off_t+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h.  */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h.  */
3478 $ac_includes_default
3479 int
3480 main ()
3481 {
3482 if ((off_t *) 0)
3483   return 0;
3484 if (sizeof (off_t))
3485   return 0;
3486   ;
3487   return 0;
3488 }
3489 _ACEOF
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492   (eval $ac_compile) 2>conftest.er1
3493   ac_status=$?
3494   grep -v '^ *+' conftest.er1 >conftest.err
3495   rm -f conftest.er1
3496   cat conftest.err >&5
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); } &&
3499          { ac_try='test -z "$ac_c_werror_flag"
3500                          || test ! -s conftest.err'
3501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502   (eval $ac_try) 2>&5
3503   ac_status=$?
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); }; } &&
3506          { ac_try='test -s conftest.$ac_objext'
3507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508   (eval $ac_try) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }; }; then
3512   ac_cv_type_off_t=yes
3513 else
3514   echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 ac_cv_type_off_t=no
3518 fi
3519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520 fi
3521 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3522 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3523 if test $ac_cv_type_off_t = yes; then
3524   :
3525 else
3526
3527 cat >>confdefs.h <<_ACEOF
3528 #define off_t long
3529 _ACEOF
3530
3531 fi
3532
3533 echo "$as_me:$LINENO: checking for size_t" >&5
3534 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3535 if test "${ac_cv_type_size_t+set}" = set; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538   cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h.  */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h.  */
3544 $ac_includes_default
3545 int
3546 main ()
3547 {
3548 if ((size_t *) 0)
3549   return 0;
3550 if (sizeof (size_t))
3551   return 0;
3552   ;
3553   return 0;
3554 }
3555 _ACEOF
3556 rm -f conftest.$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558   (eval $ac_compile) 2>conftest.er1
3559   ac_status=$?
3560   grep -v '^ *+' conftest.er1 >conftest.err
3561   rm -f conftest.er1
3562   cat conftest.err >&5
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } &&
3565          { ac_try='test -z "$ac_c_werror_flag"
3566                          || test ! -s conftest.err'
3567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568   (eval $ac_try) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; } &&
3572          { ac_try='test -s conftest.$ac_objext'
3573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574   (eval $ac_try) 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }; }; then
3578   ac_cv_type_size_t=yes
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 ac_cv_type_size_t=no
3584 fi
3585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3588 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3589 if test $ac_cv_type_size_t = yes; then
3590   :
3591 else
3592
3593 cat >>confdefs.h <<_ACEOF
3594 #define size_t unsigned
3595 _ACEOF
3596
3597 fi
3598
3599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3600 # for constant arguments.  Useless!
3601 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3602 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3603 if test "${ac_cv_working_alloca_h+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h.  */
3612 #include <alloca.h>
3613 int
3614 main ()
3615 {
3616 char *p = (char *) alloca (2 * sizeof (int));
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext conftest$ac_exeext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623   (eval $ac_link) 2>conftest.er1
3624   ac_status=$?
3625   grep -v '^ *+' conftest.er1 >conftest.err
3626   rm -f conftest.er1
3627   cat conftest.err >&5
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); } &&
3630          { ac_try='test -z "$ac_c_werror_flag"
3631                          || test ! -s conftest.err'
3632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633   (eval $ac_try) 2>&5
3634   ac_status=$?
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); }; } &&
3637          { ac_try='test -s conftest$ac_exeext'
3638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639   (eval $ac_try) 2>&5
3640   ac_status=$?
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); }; }; then
3643   ac_cv_working_alloca_h=yes
3644 else
3645   echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648 ac_cv_working_alloca_h=no
3649 fi
3650 rm -f conftest.err conftest.$ac_objext \
3651       conftest$ac_exeext conftest.$ac_ext
3652 fi
3653 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3654 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3655 if test $ac_cv_working_alloca_h = yes; then
3656
3657 cat >>confdefs.h <<\_ACEOF
3658 #define HAVE_ALLOCA_H 1
3659 _ACEOF
3660
3661 fi
3662
3663 echo "$as_me:$LINENO: checking for alloca" >&5
3664 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3665 if test "${ac_cv_func_alloca_works+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 #ifdef __GNUC__
3675 # define alloca __builtin_alloca
3676 #else
3677 # ifdef _MSC_VER
3678 #  include <malloc.h>
3679 #  define alloca _alloca
3680 # else
3681 #  if HAVE_ALLOCA_H
3682 #   include <alloca.h>
3683 #  else
3684 #   ifdef _AIX
3685  #pragma alloca
3686 #   else
3687 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3688 char *alloca ();
3689 #    endif
3690 #   endif
3691 #  endif
3692 # endif
3693 #endif
3694
3695 int
3696 main ()
3697 {
3698 char *p = (char *) alloca (1);
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 rm -f conftest.$ac_objext conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705   (eval $ac_link) 2>conftest.er1
3706   ac_status=$?
3707   grep -v '^ *+' conftest.er1 >conftest.err
3708   rm -f conftest.er1
3709   cat conftest.err >&5
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } &&
3712          { ac_try='test -z "$ac_c_werror_flag"
3713                          || test ! -s conftest.err'
3714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715   (eval $ac_try) 2>&5
3716   ac_status=$?
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); }; } &&
3719          { ac_try='test -s conftest$ac_exeext'
3720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721   (eval $ac_try) 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }; }; then
3725   ac_cv_func_alloca_works=yes
3726 else
3727   echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730 ac_cv_func_alloca_works=no
3731 fi
3732 rm -f conftest.err conftest.$ac_objext \
3733       conftest$ac_exeext conftest.$ac_ext
3734 fi
3735 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3736 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3737
3738 if test $ac_cv_func_alloca_works = yes; then
3739
3740 cat >>confdefs.h <<\_ACEOF
3741 #define HAVE_ALLOCA 1
3742 _ACEOF
3743
3744 else
3745   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3746 # that cause trouble.  Some versions do not even contain alloca or
3747 # contain a buggy version.  If you still want to use their alloca,
3748 # use ar to extract alloca.o from them instead of compiling alloca.c.
3749
3750 ALLOCA=alloca.$ac_objext
3751
3752 cat >>confdefs.h <<\_ACEOF
3753 #define C_ALLOCA 1
3754 _ACEOF
3755
3756
3757 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3758 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3759 if test "${ac_cv_os_cray+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h.  */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h.  */
3768 #if defined(CRAY) && ! defined(CRAY2)
3769 webecray
3770 #else
3771 wenotbecray
3772 #endif
3773
3774 _ACEOF
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776   $EGREP "webecray" >/dev/null 2>&1; then
3777   ac_cv_os_cray=yes
3778 else
3779   ac_cv_os_cray=no
3780 fi
3781 rm -f conftest*
3782
3783 fi
3784 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3785 echo "${ECHO_T}$ac_cv_os_cray" >&6
3786 if test $ac_cv_os_cray = yes; then
3787   for ac_func in _getb67 GETB67 getb67; do
3788     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3789 echo "$as_me:$LINENO: checking for $ac_func" >&5
3790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3791 if eval "test \"\${$as_ac_var+set}\" = set"; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h.  */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h.  */
3800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3802 #define $ac_func innocuous_$ac_func
3803
3804 /* System header to define __stub macros and hopefully few prototypes,
3805     which can conflict with char $ac_func (); below.
3806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807     <limits.h> exists even on freestanding compilers.  */
3808
3809 #ifdef __STDC__
3810 # include <limits.h>
3811 #else
3812 # include <assert.h>
3813 #endif
3814
3815 #undef $ac_func
3816
3817 /* Override any gcc2 internal prototype to avoid an error.  */
3818 #ifdef __cplusplus
3819 extern "C"
3820 {
3821 #endif
3822 /* We use char because int might match the return type of a gcc2
3823    builtin and then its argument prototype would still apply.  */
3824 char $ac_func ();
3825 /* The GNU C library defines this for functions which it implements
3826     to always fail with ENOSYS.  Some functions are actually named
3827     something starting with __ and the normal name is an alias.  */
3828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3829 choke me
3830 #else
3831 char (*f) () = $ac_func;
3832 #endif
3833 #ifdef __cplusplus
3834 }
3835 #endif
3836
3837 int
3838 main ()
3839 {
3840 return f != $ac_func;
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847   (eval $ac_link) 2>conftest.er1
3848   ac_status=$?
3849   grep -v '^ *+' conftest.er1 >conftest.err
3850   rm -f conftest.er1
3851   cat conftest.err >&5
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); } &&
3854          { ac_try='test -z "$ac_c_werror_flag"
3855                          || test ! -s conftest.err'
3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857   (eval $ac_try) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest$ac_exeext'
3862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863   (eval $ac_try) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; }; then
3867   eval "$as_ac_var=yes"
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 eval "$as_ac_var=no"
3873 fi
3874 rm -f conftest.err conftest.$ac_objext \
3875       conftest$ac_exeext conftest.$ac_ext
3876 fi
3877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3879 if test `eval echo '${'$as_ac_var'}'` = yes; then
3880
3881 cat >>confdefs.h <<_ACEOF
3882 #define CRAY_STACKSEG_END $ac_func
3883 _ACEOF
3884
3885     break
3886 fi
3887
3888   done
3889 fi
3890
3891 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3892 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3893 if test "${ac_cv_c_stack_direction+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   if test "$cross_compiling" = yes; then
3897   ac_cv_c_stack_direction=0
3898 else
3899   cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905 int
3906 find_stack_direction ()
3907 {
3908   static char *addr = 0;
3909   auto char dummy;
3910   if (addr == 0)
3911     {
3912       addr = &dummy;
3913       return find_stack_direction ();
3914     }
3915   else
3916     return (&dummy > addr) ? 1 : -1;
3917 }
3918
3919 int
3920 main ()
3921 {
3922   exit (find_stack_direction () < 0);
3923 }
3924 _ACEOF
3925 rm -f conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927   (eval $ac_link) 2>&5
3928   ac_status=$?
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932   (eval $ac_try) 2>&5
3933   ac_status=$?
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); }; }; then
3936   ac_cv_c_stack_direction=1
3937 else
3938   echo "$as_me: program exited with status $ac_status" >&5
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 ( exit $ac_status )
3943 ac_cv_c_stack_direction=-1
3944 fi
3945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3946 fi
3947 fi
3948 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3949 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3950
3951 cat >>confdefs.h <<_ACEOF
3952 #define STACK_DIRECTION $ac_cv_c_stack_direction
3953 _ACEOF
3954
3955
3956 fi
3957
3958
3959
3960 for ac_header in stdlib.h unistd.h
3961 do
3962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964   echo "$as_me:$LINENO: checking for $ac_header" >&5
3965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967   echo $ECHO_N "(cached) $ECHO_C" >&6
3968 fi
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3971 else
3972   # Is the header compilable?
3973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h.  */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h.  */
3981 $ac_includes_default
3982 #include <$ac_header>
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986   (eval $ac_compile) 2>conftest.er1
3987   ac_status=$?
3988   grep -v '^ *+' conftest.er1 >conftest.err
3989   rm -f conftest.er1
3990   cat conftest.err >&5
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); } &&
3993          { ac_try='test -z "$ac_c_werror_flag"
3994                          || test ! -s conftest.err'
3995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996   (eval $ac_try) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); }; } &&
4000          { ac_try='test -s conftest.$ac_objext'
4001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002   (eval $ac_try) 2>&5
4003   ac_status=$?
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); }; }; then
4006   ac_header_compiler=yes
4007 else
4008   echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4010
4011 ac_header_compiler=no
4012 fi
4013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4015 echo "${ECHO_T}$ac_header_compiler" >&6
4016
4017 # Is the header present?
4018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h.  */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h.  */
4026 #include <$ac_header>
4027 _ACEOF
4028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030   ac_status=$?
4031   grep -v '^ *+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } >/dev/null; then
4036   if test -s conftest.err; then
4037     ac_cpp_err=$ac_c_preproc_warn_flag
4038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039   else
4040     ac_cpp_err=
4041   fi
4042 else
4043   ac_cpp_err=yes
4044 fi
4045 if test -z "$ac_cpp_err"; then
4046   ac_header_preproc=yes
4047 else
4048   echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051   ac_header_preproc=no
4052 fi
4053 rm -f conftest.err conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4055 echo "${ECHO_T}$ac_header_preproc" >&6
4056
4057 # So?  What about this header?
4058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4059   yes:no: )
4060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4064     ac_header_preproc=yes
4065     ;;
4066   no:yes:* )
4067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4069     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4070 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4071     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4073     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4074 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4077     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4079     (
4080       cat <<\_ASBOX
4081 ## ------------------------------------------ ##
4082 ## Report this to the AC_PACKAGE_NAME lists.  ##
4083 ## ------------------------------------------ ##
4084 _ASBOX
4085     ) |
4086       sed "s/^/$as_me: WARNING:     /" >&2
4087     ;;
4088 esac
4089 echo "$as_me:$LINENO: checking for $ac_header" >&5
4090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   eval "$as_ac_Header=\$ac_header_preproc"
4095 fi
4096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4098
4099 fi
4100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101   cat >>confdefs.h <<_ACEOF
4102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103 _ACEOF
4104
4105 fi
4106
4107 done
4108
4109
4110 for ac_func in getpagesize
4111 do
4112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4113 echo "$as_me:$LINENO: checking for $ac_func" >&5
4114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4115 if eval "test \"\${$as_ac_var+set}\" = set"; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h.  */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h.  */
4124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4126 #define $ac_func innocuous_$ac_func
4127
4128 /* System header to define __stub macros and hopefully few prototypes,
4129     which can conflict with char $ac_func (); below.
4130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131     <limits.h> exists even on freestanding compilers.  */
4132
4133 #ifdef __STDC__
4134 # include <limits.h>
4135 #else
4136 # include <assert.h>
4137 #endif
4138
4139 #undef $ac_func
4140
4141 /* Override any gcc2 internal prototype to avoid an error.  */
4142 #ifdef __cplusplus
4143 extern "C"
4144 {
4145 #endif
4146 /* We use char because int might match the return type of a gcc2
4147    builtin and then its argument prototype would still apply.  */
4148 char $ac_func ();
4149 /* The GNU C library defines this for functions which it implements
4150     to always fail with ENOSYS.  Some functions are actually named
4151     something starting with __ and the normal name is an alias.  */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4153 choke me
4154 #else
4155 char (*f) () = $ac_func;
4156 #endif
4157 #ifdef __cplusplus
4158 }
4159 #endif
4160
4161 int
4162 main ()
4163 {
4164 return f != $ac_func;
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171   (eval $ac_link) 2>conftest.er1
4172   ac_status=$?
4173   grep -v '^ *+' conftest.er1 >conftest.err
4174   rm -f conftest.er1
4175   cat conftest.err >&5
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); } &&
4178          { ac_try='test -z "$ac_c_werror_flag"
4179                          || test ! -s conftest.err'
4180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181   (eval $ac_try) 2>&5
4182   ac_status=$?
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); }; } &&
4185          { ac_try='test -s conftest$ac_exeext'
4186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187   (eval $ac_try) 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); }; }; then
4191   eval "$as_ac_var=yes"
4192 else
4193   echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 eval "$as_ac_var=no"
4197 fi
4198 rm -f conftest.err conftest.$ac_objext \
4199       conftest$ac_exeext conftest.$ac_ext
4200 fi
4201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4203 if test `eval echo '${'$as_ac_var'}'` = yes; then
4204   cat >>confdefs.h <<_ACEOF
4205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4206 _ACEOF
4207
4208 fi
4209 done
4210
4211 echo "$as_me:$LINENO: checking for working mmap" >&5
4212 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4213 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4214   echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216   if test "$cross_compiling" = yes; then
4217   ac_cv_func_mmap_fixed_mapped=no
4218 else
4219   cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h.  */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h.  */
4225 $ac_includes_default
4226 /* malloc might have been renamed as rpl_malloc. */
4227 #undef malloc
4228
4229 /* Thanks to Mike Haertel and Jim Avera for this test.
4230    Here is a matrix of mmap possibilities:
4231         mmap private not fixed
4232         mmap private fixed at somewhere currently unmapped
4233         mmap private fixed at somewhere already mapped
4234         mmap shared not fixed
4235         mmap shared fixed at somewhere currently unmapped
4236         mmap shared fixed at somewhere already mapped
4237    For private mappings, we should verify that changes cannot be read()
4238    back from the file, nor mmap's back from the file at a different
4239    address.  (There have been systems where private was not correctly
4240    implemented like the infamous i386 svr4.0, and systems where the
4241    VM page cache was not coherent with the file system buffer cache
4242    like early versions of FreeBSD and possibly contemporary NetBSD.)
4243    For shared mappings, we should conversely verify that changes get
4244    propagated back to all the places they're supposed to be.
4245
4246    Grep wants private fixed already mapped.
4247    The main things grep needs to know about mmap are:
4248    * does it exist and is it safe to write into the mmap'd area
4249    * how to use it (BSD variants)  */
4250
4251 #include <fcntl.h>
4252 #include <sys/mman.h>
4253
4254 #if !STDC_HEADERS && !HAVE_STDLIB_H
4255 char *malloc ();
4256 #endif
4257
4258 /* This mess was copied from the GNU getpagesize.h.  */
4259 #if !HAVE_GETPAGESIZE
4260 /* Assume that all systems that can run configure have sys/param.h.  */
4261 # if !HAVE_SYS_PARAM_H
4262 #  define HAVE_SYS_PARAM_H 1
4263 # endif
4264
4265 # ifdef _SC_PAGESIZE
4266 #  define getpagesize() sysconf(_SC_PAGESIZE)
4267 # else /* no _SC_PAGESIZE */
4268 #  if HAVE_SYS_PARAM_H
4269 #   include <sys/param.h>
4270 #   ifdef EXEC_PAGESIZE
4271 #    define getpagesize() EXEC_PAGESIZE
4272 #   else /* no EXEC_PAGESIZE */
4273 #    ifdef NBPG
4274 #     define getpagesize() NBPG * CLSIZE
4275 #     ifndef CLSIZE
4276 #      define CLSIZE 1
4277 #     endif /* no CLSIZE */
4278 #    else /* no NBPG */
4279 #     ifdef NBPC
4280 #      define getpagesize() NBPC
4281 #     else /* no NBPC */
4282 #      ifdef PAGESIZE
4283 #       define getpagesize() PAGESIZE
4284 #      endif /* PAGESIZE */
4285 #     endif /* no NBPC */
4286 #    endif /* no NBPG */
4287 #   endif /* no EXEC_PAGESIZE */
4288 #  else /* no HAVE_SYS_PARAM_H */
4289 #   define getpagesize() 8192   /* punt totally */
4290 #  endif /* no HAVE_SYS_PARAM_H */
4291 # endif /* no _SC_PAGESIZE */
4292
4293 #endif /* no HAVE_GETPAGESIZE */
4294
4295 int
4296 main ()
4297 {
4298   char *data, *data2, *data3;
4299   int i, pagesize;
4300   int fd;
4301
4302   pagesize = getpagesize ();
4303
4304   /* First, make a file with some known garbage in it. */
4305   data = (char *) malloc (pagesize);
4306   if (!data)
4307     exit (1);
4308   for (i = 0; i < pagesize; ++i)
4309     *(data + i) = rand ();
4310   umask (0);
4311   fd = creat ("conftest.mmap", 0600);
4312   if (fd < 0)
4313     exit (1);
4314   if (write (fd, data, pagesize) != pagesize)
4315     exit (1);
4316   close (fd);
4317
4318   /* Next, try to mmap the file at a fixed address which already has
4319      something else allocated at it.  If we can, also make sure that
4320      we see the same garbage.  */
4321   fd = open ("conftest.mmap", O_RDWR);
4322   if (fd < 0)
4323     exit (1);
4324   data2 = (char *) malloc (2 * pagesize);
4325   if (!data2)
4326     exit (1);
4327   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4328   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4329                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4330     exit (1);
4331   for (i = 0; i < pagesize; ++i)
4332     if (*(data + i) != *(data2 + i))
4333       exit (1);
4334
4335   /* Finally, make sure that changes to the mapped area do not
4336      percolate back to the file as seen by read().  (This is a bug on
4337      some variants of i386 svr4.0.)  */
4338   for (i = 0; i < pagesize; ++i)
4339     *(data2 + i) = *(data2 + i) + 1;
4340   data3 = (char *) malloc (pagesize);
4341   if (!data3)
4342     exit (1);
4343   if (read (fd, data3, pagesize) != pagesize)
4344     exit (1);
4345   for (i = 0; i < pagesize; ++i)
4346     if (*(data + i) != *(data3 + i))
4347       exit (1);
4348   close (fd);
4349   exit (0);
4350 }
4351 _ACEOF
4352 rm -f conftest$ac_exeext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354   (eval $ac_link) 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359   (eval $ac_try) 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; }; then
4363   ac_cv_func_mmap_fixed_mapped=yes
4364 else
4365   echo "$as_me: program exited with status $ac_status" >&5
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 ( exit $ac_status )
4370 ac_cv_func_mmap_fixed_mapped=no
4371 fi
4372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4373 fi
4374 fi
4375 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4376 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4378
4379 cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_MMAP 1
4381 _ACEOF
4382
4383 fi
4384 rm -f conftest.mmap
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4397 unistd.h values.h sys/param.h
4398 do
4399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401   echo "$as_me:$LINENO: checking for $ac_header" >&5
4402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404   echo $ECHO_N "(cached) $ECHO_C" >&6
4405 fi
4406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408 else
4409   # Is the header compilable?
4410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h.  */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h.  */
4418 $ac_includes_default
4419 #include <$ac_header>
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423   (eval $ac_compile) 2>conftest.er1
4424   ac_status=$?
4425   grep -v '^ *+' conftest.er1 >conftest.err
4426   rm -f conftest.er1
4427   cat conftest.err >&5
4428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); } &&
4430          { ac_try='test -z "$ac_c_werror_flag"
4431                          || test ! -s conftest.err'
4432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433   (eval $ac_try) 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }; } &&
4437          { ac_try='test -s conftest.$ac_objext'
4438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439   (eval $ac_try) 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); }; }; then
4443   ac_header_compiler=yes
4444 else
4445   echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 ac_header_compiler=no
4449 fi
4450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4452 echo "${ECHO_T}$ac_header_compiler" >&6
4453
4454 # Is the header present?
4455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463 #include <$ac_header>
4464 _ACEOF
4465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4467   ac_status=$?
4468   grep -v '^ *+' conftest.er1 >conftest.err
4469   rm -f conftest.er1
4470   cat conftest.err >&5
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); } >/dev/null; then
4473   if test -s conftest.err; then
4474     ac_cpp_err=$ac_c_preproc_warn_flag
4475     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476   else
4477     ac_cpp_err=
4478   fi
4479 else
4480   ac_cpp_err=yes
4481 fi
4482 if test -z "$ac_cpp_err"; then
4483   ac_header_preproc=yes
4484 else
4485   echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488   ac_header_preproc=no
4489 fi
4490 rm -f conftest.err conftest.$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4492 echo "${ECHO_T}$ac_header_preproc" >&6
4493
4494 # So?  What about this header?
4495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4496   yes:no: )
4497     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4501     ac_header_preproc=yes
4502     ;;
4503   no:yes:* )
4504     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4506     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4507 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4508     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4510     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4511 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4514     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4516     (
4517       cat <<\_ASBOX
4518 ## ------------------------------------------ ##
4519 ## Report this to the AC_PACKAGE_NAME lists.  ##
4520 ## ------------------------------------------ ##
4521 _ASBOX
4522     ) |
4523       sed "s/^/$as_me: WARNING:     /" >&2
4524     ;;
4525 esac
4526 echo "$as_me:$LINENO: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   eval "$as_ac_Header=\$ac_header_preproc"
4532 fi
4533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4535
4536 fi
4537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538   cat >>confdefs.h <<_ACEOF
4539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4540 _ACEOF
4541
4542 fi
4543
4544 done
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4557 __argz_count __argz_stringify __argz_next
4558 do
4559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4560 echo "$as_me:$LINENO: checking for $ac_func" >&5
4561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4562 if eval "test \"\${$as_ac_var+set}\" = set"; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h.  */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h.  */
4571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4573 #define $ac_func innocuous_$ac_func
4574
4575 /* System header to define __stub macros and hopefully few prototypes,
4576     which can conflict with char $ac_func (); below.
4577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578     <limits.h> exists even on freestanding compilers.  */
4579
4580 #ifdef __STDC__
4581 # include <limits.h>
4582 #else
4583 # include <assert.h>
4584 #endif
4585
4586 #undef $ac_func
4587
4588 /* Override any gcc2 internal prototype to avoid an error.  */
4589 #ifdef __cplusplus
4590 extern "C"
4591 {
4592 #endif
4593 /* We use char because int might match the return type of a gcc2
4594    builtin and then its argument prototype would still apply.  */
4595 char $ac_func ();
4596 /* The GNU C library defines this for functions which it implements
4597     to always fail with ENOSYS.  Some functions are actually named
4598     something starting with __ and the normal name is an alias.  */
4599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600 choke me
4601 #else
4602 char (*f) () = $ac_func;
4603 #endif
4604 #ifdef __cplusplus
4605 }
4606 #endif
4607
4608 int
4609 main ()
4610 {
4611 return f != $ac_func;
4612   ;
4613   return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest.$ac_objext conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618   (eval $ac_link) 2>conftest.er1
4619   ac_status=$?
4620   grep -v '^ *+' conftest.er1 >conftest.err
4621   rm -f conftest.er1
4622   cat conftest.err >&5
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); } &&
4625          { ac_try='test -z "$ac_c_werror_flag"
4626                          || test ! -s conftest.err'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; } &&
4632          { ac_try='test -s conftest$ac_exeext'
4633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634   (eval $ac_try) 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); }; }; then
4638   eval "$as_ac_var=yes"
4639 else
4640   echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 eval "$as_ac_var=no"
4644 fi
4645 rm -f conftest.err conftest.$ac_objext \
4646       conftest$ac_exeext conftest.$ac_ext
4647 fi
4648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4650 if test `eval echo '${'$as_ac_var'}'` = yes; then
4651   cat >>confdefs.h <<_ACEOF
4652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4653 _ACEOF
4654
4655 fi
4656 done
4657
4658
4659    if test "${ac_cv_func_stpcpy+set}" != "set"; then
4660
4661 for ac_func in stpcpy
4662 do
4663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4664 echo "$as_me:$LINENO: checking for $ac_func" >&5
4665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_var+set}\" = set"; then
4667   echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669   cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h.  */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h.  */
4675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4677 #define $ac_func innocuous_$ac_func
4678
4679 /* System header to define __stub macros and hopefully few prototypes,
4680     which can conflict with char $ac_func (); below.
4681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682     <limits.h> exists even on freestanding compilers.  */
4683
4684 #ifdef __STDC__
4685 # include <limits.h>
4686 #else
4687 # include <assert.h>
4688 #endif
4689
4690 #undef $ac_func
4691
4692 /* Override any gcc2 internal prototype to avoid an error.  */
4693 #ifdef __cplusplus
4694 extern "C"
4695 {
4696 #endif
4697 /* We use char because int might match the return type of a gcc2
4698    builtin and then its argument prototype would still apply.  */
4699 char $ac_func ();
4700 /* The GNU C library defines this for functions which it implements
4701     to always fail with ENOSYS.  Some functions are actually named
4702     something starting with __ and the normal name is an alias.  */
4703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4704 choke me
4705 #else
4706 char (*f) () = $ac_func;
4707 #endif
4708 #ifdef __cplusplus
4709 }
4710 #endif
4711
4712 int
4713 main ()
4714 {
4715 return f != $ac_func;
4716   ;
4717   return 0;
4718 }
4719 _ACEOF
4720 rm -f conftest.$ac_objext conftest$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722   (eval $ac_link) 2>conftest.er1
4723   ac_status=$?
4724   grep -v '^ *+' conftest.er1 >conftest.err
4725   rm -f conftest.er1
4726   cat conftest.err >&5
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } &&
4729          { ac_try='test -z "$ac_c_werror_flag"
4730                          || test ! -s conftest.err'
4731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732   (eval $ac_try) 2>&5
4733   ac_status=$?
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); }; } &&
4736          { ac_try='test -s conftest$ac_exeext'
4737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738   (eval $ac_try) 2>&5
4739   ac_status=$?
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); }; }; then
4742   eval "$as_ac_var=yes"
4743 else
4744   echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 eval "$as_ac_var=no"
4748 fi
4749 rm -f conftest.err conftest.$ac_objext \
4750       conftest$ac_exeext conftest.$ac_ext
4751 fi
4752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4754 if test `eval echo '${'$as_ac_var'}'` = yes; then
4755   cat >>confdefs.h <<_ACEOF
4756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4757 _ACEOF
4758
4759 fi
4760 done
4761
4762    fi
4763    if test "${ac_cv_func_stpcpy}" = "yes"; then
4764
4765 cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_STPCPY 1
4767 _ACEOF
4768
4769    fi
4770
4771    if test $ac_cv_header_locale_h = yes; then
4772     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4773 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4774 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777   cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h.  */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h.  */
4783 #include <locale.h>
4784 int
4785 main ()
4786 {
4787 return LC_MESSAGES
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794   (eval $ac_link) 2>conftest.er1
4795   ac_status=$?
4796   grep -v '^ *+' conftest.er1 >conftest.err
4797   rm -f conftest.er1
4798   cat conftest.err >&5
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); } &&
4801          { ac_try='test -z "$ac_c_werror_flag"
4802                          || test ! -s conftest.err'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; } &&
4808          { ac_try='test -s conftest$ac_exeext'
4809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810   (eval $ac_try) 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; }; then
4814   am_cv_val_LC_MESSAGES=yes
4815 else
4816   echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 am_cv_val_LC_MESSAGES=no
4820 fi
4821 rm -f conftest.err conftest.$ac_objext \
4822       conftest$ac_exeext conftest.$ac_ext
4823 fi
4824 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4825 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4826     if test $am_cv_val_LC_MESSAGES = yes; then
4827
4828 cat >>confdefs.h <<\_ACEOF
4829 #define HAVE_LC_MESSAGES 1
4830 _ACEOF
4831
4832     fi
4833   fi
4834    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4835 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4836         # Check whether --enable-nls or --disable-nls was given.
4837 if test "${enable_nls+set}" = set; then
4838   enableval="$enable_nls"
4839   USE_NLS=$enableval
4840 else
4841   USE_NLS=yes
4842 fi;
4843     echo "$as_me:$LINENO: result: $USE_NLS" >&5
4844 echo "${ECHO_T}$USE_NLS" >&6
4845
4846
4847     USE_INCLUDED_LIBINTL=no
4848
4849         if test "$USE_NLS" = "yes"; then
4850       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4851 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4852
4853 # Check whether --with-included-gettext or --without-included-gettext was given.
4854 if test "${with_included_gettext+set}" = set; then
4855   withval="$with_included_gettext"
4856   nls_cv_force_use_gnu_gettext=$withval
4857 else
4858   nls_cv_force_use_gnu_gettext=no
4859 fi;
4860       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4861 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4862
4863       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4864       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4865                                         nls_cv_header_intl=
4866         nls_cv_header_libgt=
4867         CATOBJEXT=
4868
4869         if test "${ac_cv_header_libintl_h+set}" = set; then
4870   echo "$as_me:$LINENO: checking for libintl.h" >&5
4871 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4872 if test "${ac_cv_header_libintl_h+set}" = set; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 fi
4875 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4876 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4877 else
4878   # Is the header compilable?
4879 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4880 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h.  */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h.  */
4887 $ac_includes_default
4888 #include <libintl.h>
4889 _ACEOF
4890 rm -f conftest.$ac_objext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892   (eval $ac_compile) 2>conftest.er1
4893   ac_status=$?
4894   grep -v '^ *+' conftest.er1 >conftest.err
4895   rm -f conftest.er1
4896   cat conftest.err >&5
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } &&
4899          { ac_try='test -z "$ac_c_werror_flag"
4900                          || test ! -s conftest.err'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; } &&
4906          { ac_try='test -s conftest.$ac_objext'
4907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908   (eval $ac_try) 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); }; }; then
4912   ac_header_compiler=yes
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 ac_header_compiler=no
4918 fi
4919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4921 echo "${ECHO_T}$ac_header_compiler" >&6
4922
4923 # Is the header present?
4924 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4925 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h.  */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h.  */
4932 #include <libintl.h>
4933 _ACEOF
4934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4936   ac_status=$?
4937   grep -v '^ *+' conftest.er1 >conftest.err
4938   rm -f conftest.er1
4939   cat conftest.err >&5
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); } >/dev/null; then
4942   if test -s conftest.err; then
4943     ac_cpp_err=$ac_c_preproc_warn_flag
4944     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4945   else
4946     ac_cpp_err=
4947   fi
4948 else
4949   ac_cpp_err=yes
4950 fi
4951 if test -z "$ac_cpp_err"; then
4952   ac_header_preproc=yes
4953 else
4954   echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957   ac_header_preproc=no
4958 fi
4959 rm -f conftest.err conftest.$ac_ext
4960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4961 echo "${ECHO_T}$ac_header_preproc" >&6
4962
4963 # So?  What about this header?
4964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4965   yes:no: )
4966     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4967 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4968     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4969 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4970     ac_header_preproc=yes
4971     ;;
4972   no:yes:* )
4973     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4974 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4975     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
4976 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
4977     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4978 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4979     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
4980 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4981     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4982 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4983     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4984 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4985     (
4986       cat <<\_ASBOX
4987 ## ------------------------------------------ ##
4988 ## Report this to the AC_PACKAGE_NAME lists.  ##
4989 ## ------------------------------------------ ##
4990 _ASBOX
4991     ) |
4992       sed "s/^/$as_me: WARNING:     /" >&2
4993     ;;
4994 esac
4995 echo "$as_me:$LINENO: checking for libintl.h" >&5
4996 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4997 if test "${ac_cv_header_libintl_h+set}" = set; then
4998   echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000   ac_cv_header_libintl_h=$ac_header_preproc
5001 fi
5002 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5003 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5004
5005 fi
5006 if test $ac_cv_header_libintl_h = yes; then
5007   echo "$as_me:$LINENO: checking for gettext in libc" >&5
5008 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5009 if test "${gt_cv_func_gettext_libc+set}" = set; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h.  */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h.  */
5018 #include <libintl.h>
5019 int
5020 main ()
5021 {
5022 return (int) gettext ("")
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 rm -f conftest.$ac_objext conftest$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029   (eval $ac_link) 2>conftest.er1
5030   ac_status=$?
5031   grep -v '^ *+' conftest.er1 >conftest.err
5032   rm -f conftest.er1
5033   cat conftest.err >&5
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } &&
5036          { ac_try='test -z "$ac_c_werror_flag"
5037                          || test ! -s conftest.err'
5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; } &&
5043          { ac_try='test -s conftest$ac_exeext'
5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; }; then
5049   gt_cv_func_gettext_libc=yes
5050 else
5051   echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 gt_cv_func_gettext_libc=no
5055 fi
5056 rm -f conftest.err conftest.$ac_objext \
5057       conftest$ac_exeext conftest.$ac_ext
5058 fi
5059 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5060 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5061
5062            if test "$gt_cv_func_gettext_libc" != "yes"; then
5063              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5064 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5065 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   ac_check_lib_save_LIBS=$LIBS
5069 LIBS="-lintl  $LIBS"
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h.  */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h.  */
5076
5077 /* Override any gcc2 internal prototype to avoid an error.  */
5078 #ifdef __cplusplus
5079 extern "C"
5080 #endif
5081 /* We use char because int might match the return type of a gcc2
5082    builtin and then its argument prototype would still apply.  */
5083 char bindtextdomain ();
5084 int
5085 main ()
5086 {
5087 bindtextdomain ();
5088   ;
5089   return 0;
5090 }
5091 _ACEOF
5092 rm -f conftest.$ac_objext conftest$ac_exeext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094   (eval $ac_link) 2>conftest.er1
5095   ac_status=$?
5096   grep -v '^ *+' conftest.er1 >conftest.err
5097   rm -f conftest.er1
5098   cat conftest.err >&5
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); } &&
5101          { ac_try='test -z "$ac_c_werror_flag"
5102                          || test ! -s conftest.err'
5103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104   (eval $ac_try) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }; } &&
5108          { ac_try='test -s conftest$ac_exeext'
5109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110   (eval $ac_try) 2>&5
5111   ac_status=$?
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); }; }; then
5114   ac_cv_lib_intl_bindtextdomain=yes
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_cv_lib_intl_bindtextdomain=no
5120 fi
5121 rm -f conftest.err conftest.$ac_objext \
5122       conftest$ac_exeext conftest.$ac_ext
5123 LIBS=$ac_check_lib_save_LIBS
5124 fi
5125 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5126 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5127 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5128   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5129 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5130 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133   cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h.  */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h.  */
5139
5140 int
5141 main ()
5142 {
5143 return (int) gettext ("")
5144   ;
5145   return 0;
5146 }
5147 _ACEOF
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150   (eval $ac_link) 2>conftest.er1
5151   ac_status=$?
5152   grep -v '^ *+' conftest.er1 >conftest.err
5153   rm -f conftest.er1
5154   cat conftest.err >&5
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } &&
5157          { ac_try='test -z "$ac_c_werror_flag"
5158                          || test ! -s conftest.err'
5159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160   (eval $ac_try) 2>&5
5161   ac_status=$?
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); }; } &&
5164          { ac_try='test -s conftest$ac_exeext'
5165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166   (eval $ac_try) 2>&5
5167   ac_status=$?
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); }; }; then
5170   gt_cv_func_gettext_libintl=yes
5171 else
5172   echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5174
5175 gt_cv_func_gettext_libintl=no
5176 fi
5177 rm -f conftest.err conftest.$ac_objext \
5178       conftest$ac_exeext conftest.$ac_ext
5179 fi
5180 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5181 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5182 fi
5183
5184            fi
5185
5186            if test "$gt_cv_func_gettext_libc" = "yes" \
5187               || test "$gt_cv_func_gettext_libintl" = "yes"; then
5188
5189 cat >>confdefs.h <<\_ACEOF
5190 #define HAVE_GETTEXT 1
5191 _ACEOF
5192
5193               # Extract the first word of "msgfmt", so it can be a program name with args.
5194 set dummy msgfmt; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_path_MSGFMT+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   case "$MSGFMT" in
5201   /*)
5202   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5203   ;;
5204   *)
5205   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5206   for ac_dir in $PATH; do
5207     test -z "$ac_dir" && ac_dir=.
5208     if test -f $ac_dir/$ac_word; then
5209       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5210         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5211         break
5212       fi
5213     fi
5214   done
5215   IFS="$ac_save_ifs"
5216   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5217   ;;
5218 esac
5219 fi
5220 MSGFMT="$ac_cv_path_MSGFMT"
5221 if test -n "$MSGFMT"; then
5222   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5223 echo "${ECHO_T}$MSGFMT" >&6
5224 else
5225   echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6
5227 fi
5228               if test "$MSGFMT" != "no"; then
5229
5230 for ac_func in dcgettext
5231 do
5232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5233 echo "$as_me:$LINENO: checking for $ac_func" >&5
5234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5235 if eval "test \"\${$as_ac_var+set}\" = set"; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238   cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5246 #define $ac_func innocuous_$ac_func
5247
5248 /* System header to define __stub macros and hopefully few prototypes,
5249     which can conflict with char $ac_func (); below.
5250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5251     <limits.h> exists even on freestanding compilers.  */
5252
5253 #ifdef __STDC__
5254 # include <limits.h>
5255 #else
5256 # include <assert.h>
5257 #endif
5258
5259 #undef $ac_func
5260
5261 /* Override any gcc2 internal prototype to avoid an error.  */
5262 #ifdef __cplusplus
5263 extern "C"
5264 {
5265 #endif
5266 /* We use char because int might match the return type of a gcc2
5267    builtin and then its argument prototype would still apply.  */
5268 char $ac_func ();
5269 /* The GNU C library defines this for functions which it implements
5270     to always fail with ENOSYS.  Some functions are actually named
5271     something starting with __ and the normal name is an alias.  */
5272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5273 choke me
5274 #else
5275 char (*f) () = $ac_func;
5276 #endif
5277 #ifdef __cplusplus
5278 }
5279 #endif
5280
5281 int
5282 main ()
5283 {
5284 return f != $ac_func;
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 rm -f conftest.$ac_objext conftest$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291   (eval $ac_link) 2>conftest.er1
5292   ac_status=$?
5293   grep -v '^ *+' conftest.er1 >conftest.err
5294   rm -f conftest.er1
5295   cat conftest.err >&5
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); } &&
5298          { ac_try='test -z "$ac_c_werror_flag"
5299                          || test ! -s conftest.err'
5300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301   (eval $ac_try) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }; } &&
5305          { ac_try='test -s conftest$ac_exeext'
5306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307   (eval $ac_try) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; }; then
5311   eval "$as_ac_var=yes"
5312 else
5313   echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 eval "$as_ac_var=no"
5317 fi
5318 rm -f conftest.err conftest.$ac_objext \
5319       conftest$ac_exeext conftest.$ac_ext
5320 fi
5321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5323 if test `eval echo '${'$as_ac_var'}'` = yes; then
5324   cat >>confdefs.h <<_ACEOF
5325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5326 _ACEOF
5327
5328 fi
5329 done
5330
5331                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5332 set dummy gmsgfmt; ac_word=$2
5333 echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5335 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   case $GMSGFMT in
5339   [\\/]* | ?:[\\/]*)
5340   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5341   ;;
5342   *)
5343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348   for ac_exec_ext in '' $ac_executable_extensions; do
5349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355 done
5356
5357   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5358   ;;
5359 esac
5360 fi
5361 GMSGFMT=$ac_cv_path_GMSGFMT
5362
5363 if test -n "$GMSGFMT"; then
5364   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5365 echo "${ECHO_T}$GMSGFMT" >&6
5366 else
5367   echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5369 fi
5370
5371                 # Extract the first word of "xgettext", so it can be a program name with args.
5372 set dummy xgettext; ac_word=$2
5373 echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5376   echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378   case "$XGETTEXT" in
5379   /*)
5380   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5381   ;;
5382   *)
5383   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5384   for ac_dir in $PATH; do
5385     test -z "$ac_dir" && ac_dir=.
5386     if test -f $ac_dir/$ac_word; then
5387       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5388         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5389         break
5390       fi
5391     fi
5392   done
5393   IFS="$ac_save_ifs"
5394   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5395   ;;
5396 esac
5397 fi
5398 XGETTEXT="$ac_cv_path_XGETTEXT"
5399 if test -n "$XGETTEXT"; then
5400   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5401 echo "${ECHO_T}$XGETTEXT" >&6
5402 else
5403   echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5405 fi
5406
5407                 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h.  */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h.  */
5413
5414 int
5415 main ()
5416 {
5417 extern int _nl_msg_cat_cntr;
5418                                return _nl_msg_cat_cntr
5419   ;
5420   return 0;
5421 }
5422 _ACEOF
5423 rm -f conftest.$ac_objext conftest$ac_exeext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425   (eval $ac_link) 2>conftest.er1
5426   ac_status=$?
5427   grep -v '^ *+' conftest.er1 >conftest.err
5428   rm -f conftest.er1
5429   cat conftest.err >&5
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); } &&
5432          { ac_try='test -z "$ac_c_werror_flag"
5433                          || test ! -s conftest.err'
5434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435   (eval $ac_try) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); }; } &&
5439          { ac_try='test -s conftest$ac_exeext'
5440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441   (eval $ac_try) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   CATOBJEXT=.gmo
5446                    DATADIRNAME=share
5447 else
5448   echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5450
5451 CATOBJEXT=.mo
5452                    DATADIRNAME=lib
5453 fi
5454 rm -f conftest.err conftest.$ac_objext \
5455       conftest$ac_exeext conftest.$ac_ext
5456                 INSTOBJEXT=.mo
5457               fi
5458             fi
5459
5460 fi
5461
5462
5463
5464
5465         if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5466           # Neither gettext nor catgets in included in the C library.
5467           # Fall back on GNU gettext library (assuming it is present).
5468           nls_cv_use_gnu_gettext=yes
5469         fi
5470       fi
5471
5472       if test "$nls_cv_use_gnu_gettext" = "yes"; then
5473                 INTLOBJS="\$(GETTOBJS)"
5474         # Extract the first word of "msgfmt", so it can be a program name with args.
5475 set dummy msgfmt; ac_word=$2
5476 echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478 if test "${ac_cv_path_MSGFMT+set}" = set; then
5479   echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481   case "$MSGFMT" in
5482   /*)
5483   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5484   ;;
5485   *)
5486   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5487   for ac_dir in $PATH; do
5488     test -z "$ac_dir" && ac_dir=.
5489     if test -f $ac_dir/$ac_word; then
5490       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5491         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5492         break
5493       fi
5494     fi
5495   done
5496   IFS="$ac_save_ifs"
5497   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5498   ;;
5499 esac
5500 fi
5501 MSGFMT="$ac_cv_path_MSGFMT"
5502 if test -n "$MSGFMT"; then
5503   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5504 echo "${ECHO_T}$MSGFMT" >&6
5505 else
5506   echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5508 fi
5509
5510         # Extract the first word of "gmsgfmt", so it can be a program name with args.
5511 set dummy gmsgfmt; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   case $GMSGFMT in
5518   [\\/]* | ?:[\\/]*)
5519   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5520   ;;
5521   *)
5522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527   for ac_exec_ext in '' $ac_executable_extensions; do
5528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531     break 2
5532   fi
5533 done
5534 done
5535
5536   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5537   ;;
5538 esac
5539 fi
5540 GMSGFMT=$ac_cv_path_GMSGFMT
5541
5542 if test -n "$GMSGFMT"; then
5543   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5544 echo "${ECHO_T}$GMSGFMT" >&6
5545 else
5546   echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5548 fi
5549
5550         # Extract the first word of "xgettext", so it can be a program name with args.
5551 set dummy xgettext; ac_word=$2
5552 echo "$as_me:$LINENO: checking for $ac_word" >&5
5553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5555   echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557   case "$XGETTEXT" in
5558   /*)
5559   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5560   ;;
5561   *)
5562   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5563   for ac_dir in $PATH; do
5564     test -z "$ac_dir" && ac_dir=.
5565     if test -f $ac_dir/$ac_word; then
5566       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5567         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5568         break
5569       fi
5570     fi
5571   done
5572   IFS="$ac_save_ifs"
5573   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5574   ;;
5575 esac
5576 fi
5577 XGETTEXT="$ac_cv_path_XGETTEXT"
5578 if test -n "$XGETTEXT"; then
5579   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5580 echo "${ECHO_T}$XGETTEXT" >&6
5581 else
5582   echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5584 fi
5585
5586
5587         USE_INCLUDED_LIBINTL=yes
5588         CATOBJEXT=.gmo
5589         INSTOBJEXT=.mo
5590         DATADIRNAME=share
5591         INTLDEPS='$(top_builddir)/../intl/libintl.a'
5592         INTLLIBS=$INTLDEPS
5593         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5594         nls_cv_header_intl=libintl.h
5595         nls_cv_header_libgt=libgettext.h
5596       fi
5597
5598             if test "$XGETTEXT" != ":"; then
5599                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5600           : ;
5601         else
5602           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5603 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5604           XGETTEXT=":"
5605         fi
5606       fi
5607
5608       # We need to process the po/ directory.
5609       POSUB=po
5610     else
5611       DATADIRNAME=share
5612       nls_cv_header_intl=libintl.h
5613       nls_cv_header_libgt=libgettext.h
5614     fi
5615
5616     # If this is used in GNU gettext we have to set USE_NLS to `yes'
5617     # because some of the sources are only built for this goal.
5618     if test "$PACKAGE" = gettext; then
5619       USE_NLS=yes
5620       USE_INCLUDED_LIBINTL=yes
5621     fi
5622
5623                 for lang in $ALL_LINGUAS; do
5624       GMOFILES="$GMOFILES $lang.gmo"
5625       POFILES="$POFILES $lang.po"
5626     done
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639     if test "x$CATOBJEXT" != "x"; then
5640
5641 cat >>confdefs.h <<\_ACEOF
5642 #define ENABLE_NLS 1
5643 _ACEOF
5644
5645     fi
5646
5647
5648    if test "x$CATOBJEXT" != "x"; then
5649      if test "x$ALL_LINGUAS" = "x"; then
5650        LINGUAS=
5651      else
5652        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5653 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5654        NEW_LINGUAS=
5655        for lang in ${LINGUAS=$ALL_LINGUAS}; do
5656          case "$ALL_LINGUAS" in
5657           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5658          esac
5659        done
5660        LINGUAS=$NEW_LINGUAS
5661        echo "$as_me:$LINENO: result: $LINGUAS" >&5
5662 echo "${ECHO_T}$LINGUAS" >&6
5663      fi
5664
5665           if test -n "$LINGUAS"; then
5666        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5667      fi
5668    fi
5669
5670             if test $ac_cv_header_locale_h = yes; then
5671      INCLUDE_LOCALE_H="#include <locale.h>"
5672    else
5673      INCLUDE_LOCALE_H="\
5674 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
5675    fi
5676
5677
5678             if test -f $srcdir/po2tbl.sed.in; then
5679       if test "$CATOBJEXT" = ".cat"; then
5680          if test "${ac_cv_header_linux_version_h+set}" = set; then
5681   echo "$as_me:$LINENO: checking for linux/version.h" >&5
5682 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5683 if test "${ac_cv_header_linux_version_h+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 fi
5686 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5687 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5688 else
5689   # Is the header compilable?
5690 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5691 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5692 cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5698 $ac_includes_default
5699 #include <linux/version.h>
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703   (eval $ac_compile) 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } &&
5710          { ac_try='test -z "$ac_c_werror_flag"
5711                          || test ! -s conftest.err'
5712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713   (eval $ac_try) 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; } &&
5717          { ac_try='test -s conftest.$ac_objext'
5718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719   (eval $ac_try) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; }; then
5723   ac_header_compiler=yes
5724 else
5725   echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5727
5728 ac_header_compiler=no
5729 fi
5730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5732 echo "${ECHO_T}$ac_header_compiler" >&6
5733
5734 # Is the header present?
5735 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5736 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h.  */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h.  */
5743 #include <linux/version.h>
5744 _ACEOF
5745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5747   ac_status=$?
5748   grep -v '^ *+' conftest.er1 >conftest.err
5749   rm -f conftest.er1
5750   cat conftest.err >&5
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); } >/dev/null; then
5753   if test -s conftest.err; then
5754     ac_cpp_err=$ac_c_preproc_warn_flag
5755     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5756   else
5757     ac_cpp_err=
5758   fi
5759 else
5760   ac_cpp_err=yes
5761 fi
5762 if test -z "$ac_cpp_err"; then
5763   ac_header_preproc=yes
5764 else
5765   echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768   ac_header_preproc=no
5769 fi
5770 rm -f conftest.err conftest.$ac_ext
5771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5772 echo "${ECHO_T}$ac_header_preproc" >&6
5773
5774 # So?  What about this header?
5775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5776   yes:no: )
5777     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5778 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5779     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5780 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5781     ac_header_preproc=yes
5782     ;;
5783   no:yes:* )
5784     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5785 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5786     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
5787 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
5788     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5789 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5790     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
5791 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5792     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5793 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5794     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5795 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5796     (
5797       cat <<\_ASBOX
5798 ## ------------------------------------------ ##
5799 ## Report this to the AC_PACKAGE_NAME lists.  ##
5800 ## ------------------------------------------ ##
5801 _ASBOX
5802     ) |
5803       sed "s/^/$as_me: WARNING:     /" >&2
5804     ;;
5805 esac
5806 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5807 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5808 if test "${ac_cv_header_linux_version_h+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   ac_cv_header_linux_version_h=$ac_header_preproc
5812 fi
5813 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5814 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5815
5816 fi
5817 if test $ac_cv_header_linux_version_h = yes; then
5818   msgformat=linux
5819 else
5820   msgformat=xopen
5821 fi
5822
5823
5824
5825                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5826       fi
5827             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5828          $srcdir/po2tbl.sed.in > po2tbl.sed
5829    fi
5830
5831             if test "$PACKAGE" = "gettext"; then
5832      GT_NO="#NO#"
5833      GT_YES=
5834    else
5835      GT_NO=
5836      GT_YES="#YES#"
5837    fi
5838
5839
5840
5841    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5842
5843
5844       l=
5845
5846
5847             if test -f $srcdir/po/POTFILES.in; then
5848       test -d po || mkdir po
5849       if test "x$srcdir" != "x."; then
5850          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5851             posrcprefix="$srcdir/"
5852          else
5853             posrcprefix="../$srcdir/"
5854          fi
5855       else
5856          posrcprefix="../"
5857       fi
5858       rm -f po/POTFILES
5859       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5860          < $srcdir/po/POTFILES.in > po/POTFILES
5861    fi
5862
5863
5864 localedir='${datadir}/locale'
5865
5866
5867 if test "x$POSUB" != x; then
5868
5869     echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5870 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5871   # Look for .po and .gmo files in the source directory.
5872   CATALOGS=
5873   XLINGUAS=
5874   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5875     # If there aren't any .gmo files the shell will give us the
5876     # literal string "../path/to/srcdir/po/*.gmo" which has to be
5877     # weeded out.
5878     case "$cat" in *\**)
5879       continue;;
5880     esac
5881     # The quadruple backslash is collapsed to a double backslash
5882     # by the backticks, then collapsed again by the double quotes,
5883     # leaving us with one backslash in the sed expression (right
5884     # before the dot that mustn't act as a wildcard).
5885     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5886     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5887     # The user is allowed to set LINGUAS to a list of languages to
5888     # install catalogs for.  If it's empty that means "all of them."
5889     if test "x$LINGUAS" = x; then
5890       CATALOGS="$CATALOGS $cat"
5891       XLINGUAS="$XLINGUAS $lang"
5892     else
5893       case "$LINGUAS" in *$lang*)
5894         CATALOGS="$CATALOGS $cat"
5895         XLINGUAS="$XLINGUAS $lang"
5896         ;;
5897       esac
5898     fi
5899   done
5900   LINGUAS="$XLINGUAS"
5901   echo "$as_me:$LINENO: result: $LINGUAS" >&5
5902 echo "${ECHO_T}$LINGUAS" >&6
5903
5904    CONFIG_ALL="$CONFIG_ALL all-po"
5905    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5906    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5907    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5908 fi
5909
5910 PACKAGE=gdb
5911
5912 cat >>confdefs.h <<_ACEOF
5913 #define PACKAGE "$PACKAGE"
5914 _ACEOF
5915
5916
5917
5918 debugdir=${libdir}/debug
5919
5920
5921 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5922 if test "${with_separate_debug_dir+set}" = set; then
5923   withval="$with_separate_debug_dir"
5924   debugdir="${withval}"
5925 fi;
5926
5927
5928   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5929   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5930   ac_define_dir=`eval echo $debugdir`
5931   ac_define_dir=`eval echo $ac_define_dir`
5932
5933 cat >>confdefs.h <<_ACEOF
5934 #define DEBUGDIR "$ac_define_dir"
5935 _ACEOF
5936
5937
5938 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5939
5940
5941
5942 subdirs="$subdirs doc testsuite"
5943
5944
5945 . $srcdir/configure.host
5946
5947 . $srcdir/configure.tgt
5948
5949 # Fetch the default architecture and default target vector from BFD.
5950 targ=$target; . $srcdir/../bfd/config.bfd
5951
5952 # We only want the first architecture, so strip off the others if
5953 # there is more than one.
5954 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5955
5956 if test "x$targ_archs" != x; then
5957
5958 cat >>confdefs.h <<_ACEOF
5959 #define DEFAULT_BFD_ARCH $targ_archs
5960 _ACEOF
5961
5962 fi
5963 if test "x$targ_defvec" != x; then
5964
5965 cat >>confdefs.h <<_ACEOF
5966 #define DEFAULT_BFD_VEC $targ_defvec
5967 _ACEOF
5968
5969 fi
5970
5971 test "$program_prefix" != NONE &&
5972   program_transform_name="s,^,$program_prefix,;$program_transform_name"
5973 # Use a double $ so make ignores it.
5974 test "$program_suffix" != NONE &&
5975   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5976 # Double any \ or $.  echo might interpret backslashes.
5977 # By default was `s,x,x', remove it if useless.
5978 cat <<\_ACEOF >conftest.sed
5979 s/[\\$]/&&/g;s/;s,x,x,$//
5980 _ACEOF
5981 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5982 rm conftest.sed
5983
5984
5985 # The CLI cannot be disabled yet, but may be in the future.
5986
5987 # Enable CLI.
5988 # Check whether --enable-gdbcli or --disable-gdbcli was given.
5989 if test "${enable_gdbcli+set}" = set; then
5990   enableval="$enable_gdbcli"
5991   case $enableval in
5992     yes)
5993       ;;
5994     no)
5995       { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5996 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5997    { (exit 1); exit 1; }; } ;;
5998     *)
5999       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6000 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6001    { (exit 1); exit 1; }; } ;;
6002   esac
6003 else
6004   enable_gdbcli=yes
6005 fi;
6006 if test x"$enable_gdbcli" = xyes; then
6007   if test -d $srcdir/cli; then
6008     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6009     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6010     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6011     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6012   fi
6013 fi
6014
6015 # Enable MI.
6016 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6017 if test "${enable_gdbmi+set}" = set; then
6018   enableval="$enable_gdbmi"
6019   case $enableval in
6020     yes | no)
6021       ;;
6022     *)
6023       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6024 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6025    { (exit 1); exit 1; }; } ;;
6026   esac
6027 else
6028   enable_gdbmi=yes
6029 fi;
6030 if test x"$enable_gdbmi" = xyes; then
6031   if test -d $srcdir/mi; then
6032     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6033     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6034     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6035     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6036   fi
6037 fi
6038
6039 # Enable TUI.
6040 # Check whether --enable-tui or --disable-tui was given.
6041 if test "${enable_tui+set}" = set; then
6042   enableval="$enable_tui"
6043   case $enableval in
6044     yes | no)
6045       ;;
6046     *)
6047       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6048 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6049    { (exit 1); exit 1; }; } ;;
6050   esac
6051 else
6052   enable_tui=yes
6053 fi;
6054
6055 # Enable gdbtk.
6056 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6057 if test "${enable_gdbtk+set}" = set; then
6058   enableval="$enable_gdbtk"
6059   case $enableval in
6060     yes | no)
6061       ;;
6062     *)
6063       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6064 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6065    { (exit 1); exit 1; }; } ;;
6066   esac
6067 else
6068   if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
6069     enable_gdbtk=yes
6070   else
6071     enable_gdbtk=no
6072   fi
6073 fi;
6074 # We unconditionally disable gdbtk tests on selected platforms.
6075 case $host_os in
6076   go32* | windows*)
6077     { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6078 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6079     enable_gdbtk=no ;;
6080 esac
6081
6082 # Libunwind support.
6083
6084 # Check whether --with-libunwind or --without-libunwind was given.
6085 if test "${with_libunwind+set}" = set; then
6086   withval="$with_libunwind"
6087   case "${withval}" in
6088   yes)  enable_libunwind=yes ;;
6089   no)   enable_libunwind=no ;;
6090   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6091 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6092    { (exit 1); exit 1; }; } ;;
6093 esac
6094 else
6095
6096
6097 for ac_header in libunwind.h
6098 do
6099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6101   echo "$as_me:$LINENO: checking for $ac_header" >&5
6102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 fi
6106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6108 else
6109   # Is the header compilable?
6110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h.  */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h.  */
6118 $ac_includes_default
6119 #include <$ac_header>
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123   (eval $ac_compile) 2>conftest.er1
6124   ac_status=$?
6125   grep -v '^ *+' conftest.er1 >conftest.err
6126   rm -f conftest.er1
6127   cat conftest.err >&5
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); } &&
6130          { ac_try='test -z "$ac_c_werror_flag"
6131                          || test ! -s conftest.err'
6132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133   (eval $ac_try) 2>&5
6134   ac_status=$?
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); }; } &&
6137          { ac_try='test -s conftest.$ac_objext'
6138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139   (eval $ac_try) 2>&5
6140   ac_status=$?
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); }; }; then
6143   ac_header_compiler=yes
6144 else
6145   echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6147
6148 ac_header_compiler=no
6149 fi
6150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6152 echo "${ECHO_T}$ac_header_compiler" >&6
6153
6154 # Is the header present?
6155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h.  */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h.  */
6163 #include <$ac_header>
6164 _ACEOF
6165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6167   ac_status=$?
6168   grep -v '^ *+' conftest.er1 >conftest.err
6169   rm -f conftest.er1
6170   cat conftest.err >&5
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); } >/dev/null; then
6173   if test -s conftest.err; then
6174     ac_cpp_err=$ac_c_preproc_warn_flag
6175     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6176   else
6177     ac_cpp_err=
6178   fi
6179 else
6180   ac_cpp_err=yes
6181 fi
6182 if test -z "$ac_cpp_err"; then
6183   ac_header_preproc=yes
6184 else
6185   echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6187
6188   ac_header_preproc=no
6189 fi
6190 rm -f conftest.err conftest.$ac_ext
6191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6192 echo "${ECHO_T}$ac_header_preproc" >&6
6193
6194 # So?  What about this header?
6195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6196   yes:no: )
6197     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6201     ac_header_preproc=yes
6202     ;;
6203   no:yes:* )
6204     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6206     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6207 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6208     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6210     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6211 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6214     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6216     (
6217       cat <<\_ASBOX
6218 ## ------------------------------------------ ##
6219 ## Report this to the AC_PACKAGE_NAME lists.  ##
6220 ## ------------------------------------------ ##
6221 _ASBOX
6222     ) |
6223       sed "s/^/$as_me: WARNING:     /" >&2
6224     ;;
6225 esac
6226 echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   eval "$as_ac_Header=\$ac_header_preproc"
6232 fi
6233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6235
6236 fi
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238   cat >>confdefs.h <<_ACEOF
6239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6240 _ACEOF
6241
6242 fi
6243
6244 done
6245
6246
6247 for ac_header in libunwind-ia64.h
6248 do
6249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6251   echo "$as_me:$LINENO: checking for $ac_header" >&5
6252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 fi
6256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6258 else
6259   # Is the header compilable?
6260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6262 cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h.  */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h.  */
6268 $ac_includes_default
6269 #include <$ac_header>
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273   (eval $ac_compile) 2>conftest.er1
6274   ac_status=$?
6275   grep -v '^ *+' conftest.er1 >conftest.err
6276   rm -f conftest.er1
6277   cat conftest.err >&5
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); } &&
6280          { ac_try='test -z "$ac_c_werror_flag"
6281                          || test ! -s conftest.err'
6282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283   (eval $ac_try) 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); }; } &&
6287          { ac_try='test -s conftest.$ac_objext'
6288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289   (eval $ac_try) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); }; }; then
6293   ac_header_compiler=yes
6294 else
6295   echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6297
6298 ac_header_compiler=no
6299 fi
6300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6302 echo "${ECHO_T}$ac_header_compiler" >&6
6303
6304 # Is the header present?
6305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h.  */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h.  */
6313 #include <$ac_header>
6314 _ACEOF
6315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6316   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6317   ac_status=$?
6318   grep -v '^ *+' conftest.er1 >conftest.err
6319   rm -f conftest.er1
6320   cat conftest.err >&5
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); } >/dev/null; then
6323   if test -s conftest.err; then
6324     ac_cpp_err=$ac_c_preproc_warn_flag
6325     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6326   else
6327     ac_cpp_err=
6328   fi
6329 else
6330   ac_cpp_err=yes
6331 fi
6332 if test -z "$ac_cpp_err"; then
6333   ac_header_preproc=yes
6334 else
6335   echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6337
6338   ac_header_preproc=no
6339 fi
6340 rm -f conftest.err conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6342 echo "${ECHO_T}$ac_header_preproc" >&6
6343
6344 # So?  What about this header?
6345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6346   yes:no: )
6347     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6351     ac_header_preproc=yes
6352     ;;
6353   no:yes:* )
6354     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6356     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6357 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6358     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6360     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6361 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6364     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6366     (
6367       cat <<\_ASBOX
6368 ## ------------------------------------------ ##
6369 ## Report this to the AC_PACKAGE_NAME lists.  ##
6370 ## ------------------------------------------ ##
6371 _ASBOX
6372     ) |
6373       sed "s/^/$as_me: WARNING:     /" >&2
6374     ;;
6375 esac
6376 echo "$as_me:$LINENO: checking for $ac_header" >&5
6377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379   echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381   eval "$as_ac_Header=\$ac_header_preproc"
6382 fi
6383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6385
6386 fi
6387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388   cat >>confdefs.h <<_ACEOF
6389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390 _ACEOF
6391
6392 fi
6393
6394 done
6395
6396   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6397     enable_libunwind=yes;
6398   fi
6399
6400 fi;
6401
6402 if test x"$enable_libunwind" = xyes; then
6403
6404 for ac_header in libunwind.h
6405 do
6406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408   echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411   echo $ECHO_N "(cached) $ECHO_C" >&6
6412 fi
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6415 else
6416   # Is the header compilable?
6417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h.  */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h.  */
6425 $ac_includes_default
6426 #include <$ac_header>
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430   (eval $ac_compile) 2>conftest.er1
6431   ac_status=$?
6432   grep -v '^ *+' conftest.er1 >conftest.err
6433   rm -f conftest.er1
6434   cat conftest.err >&5
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } &&
6437          { ac_try='test -z "$ac_c_werror_flag"
6438                          || test ! -s conftest.err'
6439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440   (eval $ac_try) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); }; } &&
6444          { ac_try='test -s conftest.$ac_objext'
6445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446   (eval $ac_try) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; }; then
6450   ac_header_compiler=yes
6451 else
6452   echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 ac_header_compiler=no
6456 fi
6457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6460
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464 cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h.  */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h.  */
6470 #include <$ac_header>
6471 _ACEOF
6472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6474   ac_status=$?
6475   grep -v '^ *+' conftest.er1 >conftest.err
6476   rm -f conftest.er1
6477   cat conftest.err >&5
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); } >/dev/null; then
6480   if test -s conftest.err; then
6481     ac_cpp_err=$ac_c_preproc_warn_flag
6482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6483   else
6484     ac_cpp_err=
6485   fi
6486 else
6487   ac_cpp_err=yes
6488 fi
6489 if test -z "$ac_cpp_err"; then
6490   ac_header_preproc=yes
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495   ac_header_preproc=no
6496 fi
6497 rm -f conftest.err conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6500
6501 # So?  What about this header?
6502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6503   yes:no: )
6504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6508     ac_header_preproc=yes
6509     ;;
6510   no:yes:* )
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6523     (
6524       cat <<\_ASBOX
6525 ## ------------------------------------------ ##
6526 ## Report this to the AC_PACKAGE_NAME lists.  ##
6527 ## ------------------------------------------ ##
6528 _ASBOX
6529     ) |
6530       sed "s/^/$as_me: WARNING:     /" >&2
6531     ;;
6532 esac
6533 echo "$as_me:$LINENO: checking for $ac_header" >&5
6534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536   echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538   eval "$as_ac_Header=\$ac_header_preproc"
6539 fi
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542
6543 fi
6544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545   cat >>confdefs.h <<_ACEOF
6546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547 _ACEOF
6548
6549 fi
6550
6551 done
6552
6553
6554 for ac_header in libunwind-ia64.h
6555 do
6556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6558   echo "$as_me:$LINENO: checking for $ac_header" >&5
6559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 fi
6563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6565 else
6566   # Is the header compilable?
6567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h.  */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h.  */
6575 $ac_includes_default
6576 #include <$ac_header>
6577 _ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580   (eval $ac_compile) 2>conftest.er1
6581   ac_status=$?
6582   grep -v '^ *+' conftest.er1 >conftest.err
6583   rm -f conftest.er1
6584   cat conftest.err >&5
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } &&
6587          { ac_try='test -z "$ac_c_werror_flag"
6588                          || test ! -s conftest.err'
6589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590   (eval $ac_try) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; } &&
6594          { ac_try='test -s conftest.$ac_objext'
6595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596   (eval $ac_try) 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); }; }; then
6600   ac_header_compiler=yes
6601 else
6602   echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605 ac_header_compiler=no
6606 fi
6607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6609 echo "${ECHO_T}$ac_header_compiler" >&6
6610
6611 # Is the header present?
6612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6614 cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h.  */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h.  */
6620 #include <$ac_header>
6621 _ACEOF
6622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6624   ac_status=$?
6625   grep -v '^ *+' conftest.er1 >conftest.err
6626   rm -f conftest.er1
6627   cat conftest.err >&5
6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629   (exit $ac_status); } >/dev/null; then
6630   if test -s conftest.err; then
6631     ac_cpp_err=$ac_c_preproc_warn_flag
6632     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6633   else
6634     ac_cpp_err=
6635   fi
6636 else
6637   ac_cpp_err=yes
6638 fi
6639 if test -z "$ac_cpp_err"; then
6640   ac_header_preproc=yes
6641 else
6642   echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645   ac_header_preproc=no
6646 fi
6647 rm -f conftest.err conftest.$ac_ext
6648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6649 echo "${ECHO_T}$ac_header_preproc" >&6
6650
6651 # So?  What about this header?
6652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6653   yes:no: )
6654     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6658     ac_header_preproc=yes
6659     ;;
6660   no:yes:* )
6661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6663     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6664 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6665     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6667     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6668 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6671     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6673     (
6674       cat <<\_ASBOX
6675 ## ------------------------------------------ ##
6676 ## Report this to the AC_PACKAGE_NAME lists.  ##
6677 ## ------------------------------------------ ##
6678 _ASBOX
6679     ) |
6680       sed "s/^/$as_me: WARNING:     /" >&2
6681     ;;
6682 esac
6683 echo "$as_me:$LINENO: checking for $ac_header" >&5
6684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   eval "$as_ac_Header=\$ac_header_preproc"
6689 fi
6690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6692
6693 fi
6694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6695   cat >>confdefs.h <<_ACEOF
6696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697 _ACEOF
6698
6699 fi
6700
6701 done
6702
6703   cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_LIBUNWIND 1
6705 _ACEOF
6706
6707   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6708   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6709   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6710 fi
6711
6712 # Profiling support.
6713 # Check whether --enable-profiling or --disable-profiling was given.
6714 if test "${enable_profiling+set}" = set; then
6715   enableval="$enable_profiling"
6716   case $enableval in
6717     yes | no)
6718       ;;
6719     *)
6720       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6721 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6722    { (exit 1); exit 1; }; } ;;
6723   esac
6724 else
6725   enable_profiling=no
6726 fi;
6727
6728
6729
6730 for ac_func in monstartup _mcleanup
6731 do
6732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6733 echo "$as_me:$LINENO: checking for $ac_func" >&5
6734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6735 if eval "test \"\${$as_ac_var+set}\" = set"; then
6736   echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738   cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h.  */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h.  */
6744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6746 #define $ac_func innocuous_$ac_func
6747
6748 /* System header to define __stub macros and hopefully few prototypes,
6749     which can conflict with char $ac_func (); below.
6750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6751     <limits.h> exists even on freestanding compilers.  */
6752
6753 #ifdef __STDC__
6754 # include <limits.h>
6755 #else
6756 # include <assert.h>
6757 #endif
6758
6759 #undef $ac_func
6760
6761 /* Override any gcc2 internal prototype to avoid an error.  */
6762 #ifdef __cplusplus
6763 extern "C"
6764 {
6765 #endif
6766 /* We use char because int might match the return type of a gcc2
6767    builtin and then its argument prototype would still apply.  */
6768 char $ac_func ();
6769 /* The GNU C library defines this for functions which it implements
6770     to always fail with ENOSYS.  Some functions are actually named
6771     something starting with __ and the normal name is an alias.  */
6772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6773 choke me
6774 #else
6775 char (*f) () = $ac_func;
6776 #endif
6777 #ifdef __cplusplus
6778 }
6779 #endif
6780
6781 int
6782 main ()
6783 {
6784 return f != $ac_func;
6785   ;
6786   return 0;
6787 }
6788 _ACEOF
6789 rm -f conftest.$ac_objext conftest$ac_exeext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791   (eval $ac_link) 2>conftest.er1
6792   ac_status=$?
6793   grep -v '^ *+' conftest.er1 >conftest.err
6794   rm -f conftest.er1
6795   cat conftest.err >&5
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); } &&
6798          { ac_try='test -z "$ac_c_werror_flag"
6799                          || test ! -s conftest.err'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; } &&
6805          { ac_try='test -s conftest$ac_exeext'
6806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807   (eval $ac_try) 2>&5
6808   ac_status=$?
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); }; }; then
6811   eval "$as_ac_var=yes"
6812 else
6813   echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6815
6816 eval "$as_ac_var=no"
6817 fi
6818 rm -f conftest.err conftest.$ac_objext \
6819       conftest$ac_exeext conftest.$ac_ext
6820 fi
6821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6823 if test `eval echo '${'$as_ac_var'}'` = yes; then
6824   cat >>confdefs.h <<_ACEOF
6825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6826 _ACEOF
6827
6828 fi
6829 done
6830
6831 echo "$as_me:$LINENO: checking for _etext" >&5
6832 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6833 if test "${ac_cv_var__etext+set}" = set; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h.  */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h.  */
6842 #include <stdlib.h>
6843 extern char _etext;
6844
6845 int
6846 main ()
6847 {
6848 free (&_etext);
6849   ;
6850   return 0;
6851 }
6852 _ACEOF
6853 rm -f conftest.$ac_objext conftest$ac_exeext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6855   (eval $ac_link) 2>conftest.er1
6856   ac_status=$?
6857   grep -v '^ *+' conftest.er1 >conftest.err
6858   rm -f conftest.er1
6859   cat conftest.err >&5
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); } &&
6862          { ac_try='test -z "$ac_c_werror_flag"
6863                          || test ! -s conftest.err'
6864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865   (eval $ac_try) 2>&5
6866   ac_status=$?
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); }; } &&
6869          { ac_try='test -s conftest$ac_exeext'
6870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871   (eval $ac_try) 2>&5
6872   ac_status=$?
6873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874   (exit $ac_status); }; }; then
6875   ac_cv_var__etext=yes
6876 else
6877   echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880 ac_cv_var__etext=no
6881 fi
6882 rm -f conftest.err conftest.$ac_objext \
6883       conftest$ac_exeext conftest.$ac_ext
6884 fi
6885 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6886 echo "${ECHO_T}$ac_cv_var__etext" >&6
6887 if test $ac_cv_var__etext = yes; then
6888
6889 cat >>confdefs.h <<\_ACEOF
6890 #define HAVE__ETEXT 1
6891 _ACEOF
6892
6893 fi
6894 if test "$enable_profiling" = yes ; then
6895   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6896     { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6897 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6898    { (exit 1); exit 1; }; }
6899   fi
6900   PROFILE_CFLAGS=-pg
6901   OLD_CFLAGS="$CFLAGS"
6902   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6903
6904   echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6905 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6906 if test "${ac_cv_cc_supports_pg+set}" = set; then
6907   echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909   cat >conftest.$ac_ext <<_ACEOF
6910 /* confdefs.h.  */
6911 _ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h.  */
6915
6916 int
6917 main ()
6918 {
6919 int x;
6920   ;
6921   return 0;
6922 }
6923 _ACEOF
6924 rm -f conftest.$ac_objext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926   (eval $ac_compile) 2>conftest.er1
6927   ac_status=$?
6928   grep -v '^ *+' conftest.er1 >conftest.err
6929   rm -f conftest.er1
6930   cat conftest.err >&5
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); } &&
6933          { ac_try='test -z "$ac_c_werror_flag"
6934                          || test ! -s conftest.err'
6935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936   (eval $ac_try) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); }; } &&
6940          { ac_try='test -s conftest.$ac_objext'
6941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942   (eval $ac_try) 2>&5
6943   ac_status=$?
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); }; }; then
6946   ac_cv_cc_supports_pg=yes
6947 else
6948   echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951 ac_cv_cc_supports_pg=no
6952 fi
6953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6954 fi
6955 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6956 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6957
6958   if test $ac_cv_cc_supports_pg = no; then
6959     { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6960 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6961    { (exit 1); exit 1; }; }
6962   fi
6963
6964   CFLAGS="$OLD_CFLAGS"
6965 fi
6966
6967 # --------------------- #
6968 # Checks for programs.  #
6969 # --------------------- #
6970
6971 for ac_prog in gawk mawk nawk awk
6972 do
6973   # Extract the first word of "$ac_prog", so it can be a program name with args.
6974 set dummy $ac_prog; ac_word=$2
6975 echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6977 if test "${ac_cv_prog_AWK+set}" = set; then
6978   echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980   if test -n "$AWK"; then
6981   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988   for ac_exec_ext in '' $ac_executable_extensions; do
6989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990     ac_cv_prog_AWK="$ac_prog"
6991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995 done
6996
6997 fi
6998 fi
6999 AWK=$ac_cv_prog_AWK
7000 if test -n "$AWK"; then
7001   echo "$as_me:$LINENO: result: $AWK" >&5
7002 echo "${ECHO_T}$AWK" >&6
7003 else
7004   echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6
7006 fi
7007
7008   test -n "$AWK" && break
7009 done
7010
7011 # Find a good install program.  We prefer a C program (faster),
7012 # so one script is as good as another.  But avoid the broken or
7013 # incompatible versions:
7014 # SysV /etc/install, /usr/sbin/install
7015 # SunOS /usr/etc/install
7016 # IRIX /sbin/install
7017 # AIX /bin/install
7018 # AmigaOS /C/install, which installs bootblocks on floppy discs
7019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7022 # OS/2's system install, which has a completely different semantic
7023 # ./install, which can be erroneously created by make from ./install.sh.
7024 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7025 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7026 if test -z "$INSTALL"; then
7027 if test "${ac_cv_path_install+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033   IFS=$as_save_IFS
7034   test -z "$as_dir" && as_dir=.
7035   # Account for people who put trailing slashes in PATH elements.
7036 case $as_dir/ in
7037   ./ | .// | /cC/* | \
7038   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7039   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7040   /usr/ucb/* ) ;;
7041   *)
7042     # OSF1 and SCO ODT 3.0 have their own names for install.
7043     # Don't use installbsd from OSF since it installs stuff as root
7044     # by default.
7045     for ac_prog in ginstall scoinst install; do
7046       for ac_exec_ext in '' $ac_executable_extensions; do
7047         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7048           if test $ac_prog = install &&
7049             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7050             # AIX install.  It has an incompatible calling convention.
7051             :
7052           elif test $ac_prog = install &&
7053             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7054             # program-specific install script used by HP pwplus--don't use.
7055             :
7056           else
7057             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7058             break 3
7059           fi
7060         fi
7061       done
7062     done
7063     ;;
7064 esac
7065 done
7066
7067
7068 fi
7069   if test "${ac_cv_path_install+set}" = set; then
7070     INSTALL=$ac_cv_path_install
7071   else
7072     # As a last resort, use the slow shell script.  We don't cache a
7073     # path for INSTALL within a source directory, because that will
7074     # break other packages using the cache if that directory is
7075     # removed, or if the path is relative.
7076     INSTALL=$ac_install_sh
7077   fi
7078 fi
7079 echo "$as_me:$LINENO: result: $INSTALL" >&5
7080 echo "${ECHO_T}$INSTALL" >&6
7081
7082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7083 # It thinks the first close brace ends the variable substitution.
7084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7085
7086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7087
7088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7089
7090 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7091 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7092 LN_S=$as_ln_s
7093 if test "$LN_S" = "ln -s"; then
7094   echo "$as_me:$LINENO: result: yes" >&5
7095 echo "${ECHO_T}yes" >&6
7096 else
7097   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7098 echo "${ECHO_T}no, using $LN_S" >&6
7099 fi
7100
7101 if test -n "$ac_tool_prefix"; then
7102   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7104 echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7106 if test "${ac_cv_prog_RANLIB+set}" = set; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   if test -n "$RANLIB"; then
7110   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115   IFS=$as_save_IFS
7116   test -z "$as_dir" && as_dir=.
7117   for ac_exec_ext in '' $ac_executable_extensions; do
7118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121     break 2
7122   fi
7123 done
7124 done
7125
7126 fi
7127 fi
7128 RANLIB=$ac_cv_prog_RANLIB
7129 if test -n "$RANLIB"; then
7130   echo "$as_me:$LINENO: result: $RANLIB" >&5
7131 echo "${ECHO_T}$RANLIB" >&6
7132 else
7133   echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6
7135 fi
7136
7137 fi
7138 if test -z "$ac_cv_prog_RANLIB"; then
7139   ac_ct_RANLIB=$RANLIB
7140   # Extract the first word of "ranlib", so it can be a program name with args.
7141 set dummy ranlib; ac_word=$2
7142 echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7144 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7145   echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147   if test -n "$ac_ct_RANLIB"; then
7148   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153   IFS=$as_save_IFS
7154   test -z "$as_dir" && as_dir=.
7155   for ac_exec_ext in '' $ac_executable_extensions; do
7156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157     ac_cv_prog_ac_ct_RANLIB="ranlib"
7158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159     break 2
7160   fi
7161 done
7162 done
7163
7164   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7165 fi
7166 fi
7167 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7168 if test -n "$ac_ct_RANLIB"; then
7169   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7170 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7171 else
7172   echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6
7174 fi
7175
7176   RANLIB=$ac_ct_RANLIB
7177 else
7178   RANLIB="$ac_cv_prog_RANLIB"
7179 fi
7180
7181 for ac_prog in 'bison -y' byacc
7182 do
7183   # Extract the first word of "$ac_prog", so it can be a program name with args.
7184 set dummy $ac_prog; ac_word=$2
7185 echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187 if test "${ac_cv_prog_YACC+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   if test -n "$YACC"; then
7191   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198   for ac_exec_ext in '' $ac_executable_extensions; do
7199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200     ac_cv_prog_YACC="$ac_prog"
7201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205 done
7206
7207 fi
7208 fi
7209 YACC=$ac_cv_prog_YACC
7210 if test -n "$YACC"; then
7211   echo "$as_me:$LINENO: result: $YACC" >&5
7212 echo "${ECHO_T}$YACC" >&6
7213 else
7214   echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6
7216 fi
7217
7218   test -n "$YACC" && break
7219 done
7220 test -n "$YACC" || YACC="yacc"
7221
7222
7223 if test -n "$ac_tool_prefix"; then
7224   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7225 set dummy ${ac_tool_prefix}ar; ac_word=$2
7226 echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228 if test "${ac_cv_prog_AR+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   if test -n "$AR"; then
7232   ac_cv_prog_AR="$AR" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239   for ac_exec_ext in '' $ac_executable_extensions; do
7240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241     ac_cv_prog_AR="${ac_tool_prefix}ar"
7242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246 done
7247
7248 fi
7249 fi
7250 AR=$ac_cv_prog_AR
7251 if test -n "$AR"; then
7252   echo "$as_me:$LINENO: result: $AR" >&5
7253 echo "${ECHO_T}$AR" >&6
7254 else
7255   echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6
7257 fi
7258
7259 fi
7260 if test -z "$ac_cv_prog_AR"; then
7261   ac_ct_AR=$AR
7262   # Extract the first word of "ar", so it can be a program name with args.
7263 set dummy ar; ac_word=$2
7264 echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7266 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   if test -n "$ac_ct_AR"; then
7270   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277   for ac_exec_ext in '' $ac_executable_extensions; do
7278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279     ac_cv_prog_ac_ct_AR="ar"
7280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284 done
7285
7286 fi
7287 fi
7288 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7289 if test -n "$ac_ct_AR"; then
7290   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7291 echo "${ECHO_T}$ac_ct_AR" >&6
7292 else
7293   echo "$as_me:$LINENO: result: no" >&5
7294 echo "${ECHO_T}no" >&6
7295 fi
7296
7297   AR=$ac_ct_AR
7298 else
7299   AR="$ac_cv_prog_AR"
7300 fi
7301
7302 if test -n "$ac_tool_prefix"; then
7303   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7304 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7305 echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7307 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   if test -n "$DLLTOOL"; then
7311   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326
7327 fi
7328 fi
7329 DLLTOOL=$ac_cv_prog_DLLTOOL
7330 if test -n "$DLLTOOL"; then
7331   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7332 echo "${ECHO_T}$DLLTOOL" >&6
7333 else
7334   echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6
7336 fi
7337
7338 fi
7339 if test -z "$ac_cv_prog_DLLTOOL"; then
7340   ac_ct_DLLTOOL=$DLLTOOL
7341   # Extract the first word of "dlltool", so it can be a program name with args.
7342 set dummy dlltool; ac_word=$2
7343 echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7345 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   if test -n "$ac_ct_DLLTOOL"; then
7349   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356   for ac_exec_ext in '' $ac_executable_extensions; do
7357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363 done
7364
7365 fi
7366 fi
7367 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7368 if test -n "$ac_ct_DLLTOOL"; then
7369   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7370 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7371 else
7372   echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6
7374 fi
7375
7376   DLLTOOL=$ac_ct_DLLTOOL
7377 else
7378   DLLTOOL="$ac_cv_prog_DLLTOOL"
7379 fi
7380
7381 if test -n "$ac_tool_prefix"; then
7382   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7383 set dummy ${ac_tool_prefix}windres; ac_word=$2
7384 echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386 if test "${ac_cv_prog_WINDRES+set}" = set; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389   if test -n "$WINDRES"; then
7390   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397   for ac_exec_ext in '' $ac_executable_extensions; do
7398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404 done
7405
7406 fi
7407 fi
7408 WINDRES=$ac_cv_prog_WINDRES
7409 if test -n "$WINDRES"; then
7410   echo "$as_me:$LINENO: result: $WINDRES" >&5
7411 echo "${ECHO_T}$WINDRES" >&6
7412 else
7413   echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7415 fi
7416
7417 fi
7418 if test -z "$ac_cv_prog_WINDRES"; then
7419   ac_ct_WINDRES=$WINDRES
7420   # Extract the first word of "windres", so it can be a program name with args.
7421 set dummy windres; ac_word=$2
7422 echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   if test -n "$ac_ct_WINDRES"; then
7428   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433   IFS=$as_save_IFS
7434   test -z "$as_dir" && as_dir=.
7435   for ac_exec_ext in '' $ac_executable_extensions; do
7436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437     ac_cv_prog_ac_ct_WINDRES="windres"
7438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439     break 2
7440   fi
7441 done
7442 done
7443
7444 fi
7445 fi
7446 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7447 if test -n "$ac_ct_WINDRES"; then
7448   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7449 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7450 else
7451   echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6
7453 fi
7454
7455   WINDRES=$ac_ct_WINDRES
7456 else
7457   WINDRES="$ac_cv_prog_WINDRES"
7458 fi
7459
7460
7461 # Needed for GNU/Hurd.
7462 if test -n "$ac_tool_prefix"; then
7463   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7464 set dummy ${ac_tool_prefix}mig; ac_word=$2
7465 echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7467 if test "${ac_cv_prog_MIG+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   if test -n "$MIG"; then
7471   ac_cv_prog_MIG="$MIG" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476   IFS=$as_save_IFS
7477   test -z "$as_dir" && as_dir=.
7478   for ac_exec_ext in '' $ac_executable_extensions; do
7479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7480     ac_cv_prog_MIG="${ac_tool_prefix}mig"
7481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482     break 2
7483   fi
7484 done
7485 done
7486
7487 fi
7488 fi
7489 MIG=$ac_cv_prog_MIG
7490 if test -n "$MIG"; then
7491   echo "$as_me:$LINENO: result: $MIG" >&5
7492 echo "${ECHO_T}$MIG" >&6
7493 else
7494   echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496 fi
7497
7498 fi
7499 if test -z "$ac_cv_prog_MIG"; then
7500   ac_ct_MIG=$MIG
7501   # Extract the first word of "mig", so it can be a program name with args.
7502 set dummy mig; ac_word=$2
7503 echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7505 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   if test -n "$ac_ct_MIG"; then
7509   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516   for ac_exec_ext in '' $ac_executable_extensions; do
7517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518     ac_cv_prog_ac_ct_MIG="mig"
7519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523 done
7524
7525 fi
7526 fi
7527 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7528 if test -n "$ac_ct_MIG"; then
7529   echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7530 echo "${ECHO_T}$ac_ct_MIG" >&6
7531 else
7532   echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6
7534 fi
7535
7536   MIG=$ac_ct_MIG
7537 else
7538   MIG="$ac_cv_prog_MIG"
7539 fi
7540
7541
7542 # ---------------------- #
7543 # Checks for libraries.  #
7544 # ---------------------- #
7545
7546 # We might need to link with -lm; most simulators need it.
7547
7548 echo "$as_me:$LINENO: checking for main in -lm" >&5
7549 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7550 if test "${ac_cv_lib_m_main+set}" = set; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553   ac_check_lib_save_LIBS=$LIBS
7554 LIBS="-lm  $LIBS"
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h.  */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h.  */
7561
7562
7563 int
7564 main ()
7565 {
7566 main ();
7567   ;
7568   return 0;
7569 }
7570 _ACEOF
7571 rm -f conftest.$ac_objext conftest$ac_exeext
7572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573   (eval $ac_link) 2>conftest.er1
7574   ac_status=$?
7575   grep -v '^ *+' conftest.er1 >conftest.err
7576   rm -f conftest.er1
7577   cat conftest.err >&5
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); } &&
7580          { ac_try='test -z "$ac_c_werror_flag"
7581                          || test ! -s conftest.err'
7582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583   (eval $ac_try) 2>&5
7584   ac_status=$?
7585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586   (exit $ac_status); }; } &&
7587          { ac_try='test -s conftest$ac_exeext'
7588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589   (eval $ac_try) 2>&5
7590   ac_status=$?
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); }; }; then
7593   ac_cv_lib_m_main=yes
7594 else
7595   echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7597
7598 ac_cv_lib_m_main=no
7599 fi
7600 rm -f conftest.err conftest.$ac_objext \
7601       conftest$ac_exeext conftest.$ac_ext
7602 LIBS=$ac_check_lib_save_LIBS
7603 fi
7604 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7605 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7606 if test $ac_cv_lib_m_main = yes; then
7607   cat >>confdefs.h <<_ACEOF
7608 #define HAVE_LIBM 1
7609 _ACEOF
7610
7611   LIBS="-lm $LIBS"
7612
7613 fi
7614
7615
7616 # We need to link with -lw to get `wctype' on Solaris before Solaris
7617 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
7618 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7619 # is known to have this problem).  Therefore we avoid libw if we can.
7620 echo "$as_me:$LINENO: checking for wctype" >&5
7621 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7622 if test "${ac_cv_func_wctype+set}" = set; then
7623   echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625   cat >conftest.$ac_ext <<_ACEOF
7626 /* confdefs.h.  */
7627 _ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h.  */
7631 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7633 #define wctype innocuous_wctype
7634
7635 /* System header to define __stub macros and hopefully few prototypes,
7636     which can conflict with char wctype (); below.
7637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7638     <limits.h> exists even on freestanding compilers.  */
7639
7640 #ifdef __STDC__
7641 # include <limits.h>
7642 #else
7643 # include <assert.h>
7644 #endif
7645
7646 #undef wctype
7647
7648 /* Override any gcc2 internal prototype to avoid an error.  */
7649 #ifdef __cplusplus
7650 extern "C"
7651 {
7652 #endif
7653 /* We use char because int might match the return type of a gcc2
7654    builtin and then its argument prototype would still apply.  */
7655 char wctype ();
7656 /* The GNU C library defines this for functions which it implements
7657     to always fail with ENOSYS.  Some functions are actually named
7658     something starting with __ and the normal name is an alias.  */
7659 #if defined (__stub_wctype) || defined (__stub___wctype)
7660 choke me
7661 #else
7662 char (*f) () = wctype;
7663 #endif
7664 #ifdef __cplusplus
7665 }
7666 #endif
7667
7668 int
7669 main ()
7670 {
7671 return f != wctype;
7672   ;
7673   return 0;
7674 }
7675 _ACEOF
7676 rm -f conftest.$ac_objext conftest$ac_exeext
7677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7678   (eval $ac_link) 2>conftest.er1
7679   ac_status=$?
7680   grep -v '^ *+' conftest.er1 >conftest.err
7681   rm -f conftest.er1
7682   cat conftest.err >&5
7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684   (exit $ac_status); } &&
7685          { ac_try='test -z "$ac_c_werror_flag"
7686                          || test ! -s conftest.err'
7687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688   (eval $ac_try) 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); }; } &&
7692          { ac_try='test -s conftest$ac_exeext'
7693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694   (eval $ac_try) 2>&5
7695   ac_status=$?
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); }; }; then
7698   ac_cv_func_wctype=yes
7699 else
7700   echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7702
7703 ac_cv_func_wctype=no
7704 fi
7705 rm -f conftest.err conftest.$ac_objext \
7706       conftest$ac_exeext conftest.$ac_ext
7707 fi
7708 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7709 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7710 if test $ac_cv_func_wctype = yes; then
7711   :
7712 else
7713
7714 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7715 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7716 if test "${ac_cv_lib_w_wctype+set}" = set; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719   ac_check_lib_save_LIBS=$LIBS
7720 LIBS="-lw  $LIBS"
7721 cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h.  */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h.  */
7727
7728 /* Override any gcc2 internal prototype to avoid an error.  */
7729 #ifdef __cplusplus
7730 extern "C"
7731 #endif
7732 /* We use char because int might match the return type of a gcc2
7733    builtin and then its argument prototype would still apply.  */
7734 char wctype ();
7735 int
7736 main ()
7737 {
7738 wctype ();
7739   ;
7740   return 0;
7741 }
7742 _ACEOF
7743 rm -f conftest.$ac_objext conftest$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745   (eval $ac_link) 2>conftest.er1
7746   ac_status=$?
7747   grep -v '^ *+' conftest.er1 >conftest.err
7748   rm -f conftest.er1
7749   cat conftest.err >&5
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } &&
7752          { ac_try='test -z "$ac_c_werror_flag"
7753                          || test ! -s conftest.err'
7754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755   (eval $ac_try) 2>&5
7756   ac_status=$?
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); }; } &&
7759          { ac_try='test -s conftest$ac_exeext'
7760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761   (eval $ac_try) 2>&5
7762   ac_status=$?
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); }; }; then
7765   ac_cv_lib_w_wctype=yes
7766 else
7767   echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7769
7770 ac_cv_lib_w_wctype=no
7771 fi
7772 rm -f conftest.err conftest.$ac_objext \
7773       conftest$ac_exeext conftest.$ac_ext
7774 LIBS=$ac_check_lib_save_LIBS
7775 fi
7776 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7777 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7778 if test $ac_cv_lib_w_wctype = yes; then
7779   cat >>confdefs.h <<_ACEOF
7780 #define HAVE_LIBW 1
7781 _ACEOF
7782
7783   LIBS="-lw $LIBS"
7784
7785 fi
7786
7787 fi
7788
7789
7790 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7791 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7792 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7793 if test "${ac_cv_search_gethostbyname+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   ac_func_search_save_LIBS=$LIBS
7797 ac_cv_search_gethostbyname=no
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h.  */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h.  */
7804
7805 /* Override any gcc2 internal prototype to avoid an error.  */
7806 #ifdef __cplusplus
7807 extern "C"
7808 #endif
7809 /* We use char because int might match the return type of a gcc2
7810    builtin and then its argument prototype would still apply.  */
7811 char gethostbyname ();
7812 int
7813 main ()
7814 {
7815 gethostbyname ();
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822   (eval $ac_link) 2>conftest.er1
7823   ac_status=$?
7824   grep -v '^ *+' conftest.er1 >conftest.err
7825   rm -f conftest.er1
7826   cat conftest.err >&5
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } &&
7829          { ac_try='test -z "$ac_c_werror_flag"
7830                          || test ! -s conftest.err'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; } &&
7836          { ac_try='test -s conftest$ac_exeext'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; }; then
7842   ac_cv_search_gethostbyname="none required"
7843 else
7844   echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7846
7847 fi
7848 rm -f conftest.err conftest.$ac_objext \
7849       conftest$ac_exeext conftest.$ac_ext
7850 if test "$ac_cv_search_gethostbyname" = no; then
7851   for ac_lib in nsl; do
7852     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7853     cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h.  */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h.  */
7859
7860 /* Override any gcc2 internal prototype to avoid an error.  */
7861 #ifdef __cplusplus
7862 extern "C"
7863 #endif
7864 /* We use char because int might match the return type of a gcc2
7865    builtin and then its argument prototype would still apply.  */
7866 char gethostbyname ();
7867 int
7868 main ()
7869 {
7870 gethostbyname ();
7871   ;
7872   return 0;
7873 }
7874 _ACEOF
7875 rm -f conftest.$ac_objext conftest$ac_exeext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7877   (eval $ac_link) 2>conftest.er1
7878   ac_status=$?
7879   grep -v '^ *+' conftest.er1 >conftest.err
7880   rm -f conftest.er1
7881   cat conftest.err >&5
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); } &&
7884          { ac_try='test -z "$ac_c_werror_flag"
7885                          || test ! -s conftest.err'
7886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887   (eval $ac_try) 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); }; } &&
7891          { ac_try='test -s conftest$ac_exeext'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; }; then
7897   ac_cv_search_gethostbyname="-l$ac_lib"
7898 break
7899 else
7900   echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7902
7903 fi
7904 rm -f conftest.err conftest.$ac_objext \
7905       conftest$ac_exeext conftest.$ac_ext
7906   done
7907 fi
7908 LIBS=$ac_func_search_save_LIBS
7909 fi
7910 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7911 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7912 if test "$ac_cv_search_gethostbyname" != no; then
7913   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7914
7915 fi
7916
7917
7918 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7919 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7920 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7921 if test "${ac_cv_search_socketpair+set}" = set; then
7922   echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924   ac_func_search_save_LIBS=$LIBS
7925 ac_cv_search_socketpair=no
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h.  */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h.  */
7932
7933 /* Override any gcc2 internal prototype to avoid an error.  */
7934 #ifdef __cplusplus
7935 extern "C"
7936 #endif
7937 /* We use char because int might match the return type of a gcc2
7938    builtin and then its argument prototype would still apply.  */
7939 char socketpair ();
7940 int
7941 main ()
7942 {
7943 socketpair ();
7944   ;
7945   return 0;
7946 }
7947 _ACEOF
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950   (eval $ac_link) 2>conftest.er1
7951   ac_status=$?
7952   grep -v '^ *+' conftest.er1 >conftest.err
7953   rm -f conftest.er1
7954   cat conftest.err >&5
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); } &&
7957          { ac_try='test -z "$ac_c_werror_flag"
7958                          || test ! -s conftest.err'
7959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960   (eval $ac_try) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); }; } &&
7964          { ac_try='test -s conftest$ac_exeext'
7965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966   (eval $ac_try) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   ac_cv_search_socketpair="none required"
7971 else
7972   echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 fi
7976 rm -f conftest.err conftest.$ac_objext \
7977       conftest$ac_exeext conftest.$ac_ext
7978 if test "$ac_cv_search_socketpair" = no; then
7979   for ac_lib in socket; do
7980     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7981     cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h.  */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h.  */
7987
7988 /* Override any gcc2 internal prototype to avoid an error.  */
7989 #ifdef __cplusplus
7990 extern "C"
7991 #endif
7992 /* We use char because int might match the return type of a gcc2
7993    builtin and then its argument prototype would still apply.  */
7994 char socketpair ();
7995 int
7996 main ()
7997 {
7998 socketpair ();
7999   ;
8000   return 0;
8001 }
8002 _ACEOF
8003 rm -f conftest.$ac_objext conftest$ac_exeext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005   (eval $ac_link) 2>conftest.er1
8006   ac_status=$?
8007   grep -v '^ *+' conftest.er1 >conftest.err
8008   rm -f conftest.er1
8009   cat conftest.err >&5
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); } &&
8012          { ac_try='test -z "$ac_c_werror_flag"
8013                          || test ! -s conftest.err'
8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015   (eval $ac_try) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }; } &&
8019          { ac_try='test -s conftest$ac_exeext'
8020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021   (eval $ac_try) 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); }; }; then
8025   ac_cv_search_socketpair="-l$ac_lib"
8026 break
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031 fi
8032 rm -f conftest.err conftest.$ac_objext \
8033       conftest$ac_exeext conftest.$ac_ext
8034   done
8035 fi
8036 LIBS=$ac_func_search_save_LIBS
8037 fi
8038 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8039 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8040 if test "$ac_cv_search_socketpair" != no; then
8041   test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8042
8043 fi
8044
8045
8046 # For the TUI, we need enhanced curses functionality.
8047 #
8048 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8049 # curses library because the latter might not provide all the
8050 # functionality we need.  However, this leads to problems on systems
8051 # where the linker searches /usr/local/lib, but the compiler doesn't
8052 # search /usr/local/include, if ncurses is installed in /usr/local.  A
8053 # default installation of ncurses on alpha*-dec-osf* will lead to such
8054 # a situation.
8055 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8056 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8057 if test "${ac_cv_search_waddstr+set}" = set; then
8058   echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060   ac_func_search_save_LIBS=$LIBS
8061 ac_cv_search_waddstr=no
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h.  */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h.  */
8068
8069 /* Override any gcc2 internal prototype to avoid an error.  */
8070 #ifdef __cplusplus
8071 extern "C"
8072 #endif
8073 /* We use char because int might match the return type of a gcc2
8074    builtin and then its argument prototype would still apply.  */
8075 char waddstr ();
8076 int
8077 main ()
8078 {
8079 waddstr ();
8080   ;
8081   return 0;
8082 }
8083 _ACEOF
8084 rm -f conftest.$ac_objext conftest$ac_exeext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8086   (eval $ac_link) 2>conftest.er1
8087   ac_status=$?
8088   grep -v '^ *+' conftest.er1 >conftest.err
8089   rm -f conftest.er1
8090   cat conftest.err >&5
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); } &&
8093          { ac_try='test -z "$ac_c_werror_flag"
8094                          || test ! -s conftest.err'
8095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096   (eval $ac_try) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); }; } &&
8100          { ac_try='test -s conftest$ac_exeext'
8101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102   (eval $ac_try) 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); }; }; then
8106   ac_cv_search_waddstr="none required"
8107 else
8108   echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8110
8111 fi
8112 rm -f conftest.err conftest.$ac_objext \
8113       conftest$ac_exeext conftest.$ac_ext
8114 if test "$ac_cv_search_waddstr" = no; then
8115   for ac_lib in ncurses cursesX curses; do
8116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8117     cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h.  */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h.  */
8123
8124 /* Override any gcc2 internal prototype to avoid an error.  */
8125 #ifdef __cplusplus
8126 extern "C"
8127 #endif
8128 /* We use char because int might match the return type of a gcc2
8129    builtin and then its argument prototype would still apply.  */
8130 char waddstr ();
8131 int
8132 main ()
8133 {
8134 waddstr ();
8135   ;
8136   return 0;
8137 }
8138 _ACEOF
8139 rm -f conftest.$ac_objext conftest$ac_exeext
8140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141   (eval $ac_link) 2>conftest.er1
8142   ac_status=$?
8143   grep -v '^ *+' conftest.er1 >conftest.err
8144   rm -f conftest.er1
8145   cat conftest.err >&5
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); } &&
8148          { ac_try='test -z "$ac_c_werror_flag"
8149                          || test ! -s conftest.err'
8150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151   (eval $ac_try) 2>&5
8152   ac_status=$?
8153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154   (exit $ac_status); }; } &&
8155          { ac_try='test -s conftest$ac_exeext'
8156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157   (eval $ac_try) 2>&5
8158   ac_status=$?
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); }; }; then
8161   ac_cv_search_waddstr="-l$ac_lib"
8162 break
8163 else
8164   echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8166
8167 fi
8168 rm -f conftest.err conftest.$ac_objext \
8169       conftest$ac_exeext conftest.$ac_ext
8170   done
8171 fi
8172 LIBS=$ac_func_search_save_LIBS
8173 fi
8174 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8175 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8176 if test "$ac_cv_search_waddstr" != no; then
8177   test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8178
8179 fi
8180
8181
8182 # Since GDB uses Readline, we need termcap functionality.  In many
8183 # cases this will be provided by the curses library, but some systems
8184 # have a seperate termcap library, or no curses library at all.
8185
8186 case $host_os in
8187   cygwin*)
8188     if test -d $srcdir/libtermcap; then
8189       LIBS="../libtermcap/libtermcap.a $LIBS"
8190       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8191     fi ;;
8192   go32* | *djgpp*)
8193     ac_cv_search_tgetent="none required"
8194     ;;
8195 esac
8196
8197 # These are the libraries checked by Readline.
8198 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8199 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8200 if test "${ac_cv_search_tgetent+set}" = set; then
8201   echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203   ac_func_search_save_LIBS=$LIBS
8204 ac_cv_search_tgetent=no
8205 cat >conftest.$ac_ext <<_ACEOF
8206 /* confdefs.h.  */
8207 _ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h.  */
8211
8212 /* Override any gcc2 internal prototype to avoid an error.  */
8213 #ifdef __cplusplus
8214 extern "C"
8215 #endif
8216 /* We use char because int might match the return type of a gcc2
8217    builtin and then its argument prototype would still apply.  */
8218 char tgetent ();
8219 int
8220 main ()
8221 {
8222 tgetent ();
8223   ;
8224   return 0;
8225 }
8226 _ACEOF
8227 rm -f conftest.$ac_objext conftest$ac_exeext
8228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229   (eval $ac_link) 2>conftest.er1
8230   ac_status=$?
8231   grep -v '^ *+' conftest.er1 >conftest.err
8232   rm -f conftest.er1
8233   cat conftest.err >&5
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); } &&
8236          { ac_try='test -z "$ac_c_werror_flag"
8237                          || test ! -s conftest.err'
8238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239   (eval $ac_try) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); }; } &&
8243          { ac_try='test -s conftest$ac_exeext'
8244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245   (eval $ac_try) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); }; }; then
8249   ac_cv_search_tgetent="none required"
8250 else
8251   echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 fi
8255 rm -f conftest.err conftest.$ac_objext \
8256       conftest$ac_exeext conftest.$ac_ext
8257 if test "$ac_cv_search_tgetent" = no; then
8258   for ac_lib in termcap tinfo curses ncurses; do
8259     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8260     cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266
8267 /* Override any gcc2 internal prototype to avoid an error.  */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 /* We use char because int might match the return type of a gcc2
8272    builtin and then its argument prototype would still apply.  */
8273 char tgetent ();
8274 int
8275 main ()
8276 {
8277 tgetent ();
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284   (eval $ac_link) 2>conftest.er1
8285   ac_status=$?
8286   grep -v '^ *+' conftest.er1 >conftest.err
8287   rm -f conftest.er1
8288   cat conftest.err >&5
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); } &&
8291          { ac_try='test -z "$ac_c_werror_flag"
8292                          || test ! -s conftest.err'
8293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294   (eval $ac_try) 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); }; } &&
8298          { ac_try='test -s conftest$ac_exeext'
8299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304   ac_cv_search_tgetent="-l$ac_lib"
8305 break
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 fi
8311 rm -f conftest.err conftest.$ac_objext \
8312       conftest$ac_exeext conftest.$ac_ext
8313   done
8314 fi
8315 LIBS=$ac_func_search_save_LIBS
8316 fi
8317 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8318 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8319 if test "$ac_cv_search_tgetent" != no; then
8320   test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8321
8322 fi
8323
8324
8325 if test "$ac_cv_search_tgetent" = no; then
8326   { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8327 echo "$as_me: error: no termcap library found" >&2;}
8328    { (exit 1); exit 1; }; }
8329 fi
8330
8331 # ------------------------- #
8332 # Checks for header files.  #
8333 # ------------------------- #
8334
8335
8336
8337
8338
8339
8340 ac_header_dirent=no
8341 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8342   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8343 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8344 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h.  */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h.  */
8354 #include <sys/types.h>
8355 #include <$ac_hdr>
8356
8357 int
8358 main ()
8359 {
8360 if ((DIR *) 0)
8361 return 0;
8362   ;
8363   return 0;
8364 }
8365 _ACEOF
8366 rm -f conftest.$ac_objext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8368   (eval $ac_compile) 2>conftest.er1
8369   ac_status=$?
8370   grep -v '^ *+' conftest.er1 >conftest.err
8371   rm -f conftest.er1
8372   cat conftest.err >&5
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); } &&
8375          { ac_try='test -z "$ac_c_werror_flag"
8376                          || test ! -s conftest.err'
8377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378   (eval $ac_try) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; } &&
8382          { ac_try='test -s conftest.$ac_objext'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; }; then
8388   eval "$as_ac_Header=yes"
8389 else
8390   echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 eval "$as_ac_Header=no"
8394 fi
8395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8396 fi
8397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8400   cat >>confdefs.h <<_ACEOF
8401 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8402 _ACEOF
8403
8404 ac_header_dirent=$ac_hdr; break
8405 fi
8406
8407 done
8408 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8409 if test $ac_header_dirent = dirent.h; then
8410   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8411 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8412 if test "${ac_cv_search_opendir+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   ac_func_search_save_LIBS=$LIBS
8416 ac_cv_search_opendir=no
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423
8424 /* Override any gcc2 internal prototype to avoid an error.  */
8425 #ifdef __cplusplus
8426 extern "C"
8427 #endif
8428 /* We use char because int might match the return type of a gcc2
8429    builtin and then its argument prototype would still apply.  */
8430 char opendir ();
8431 int
8432 main ()
8433 {
8434 opendir ();
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441   (eval $ac_link) 2>conftest.er1
8442   ac_status=$?
8443   grep -v '^ *+' conftest.er1 >conftest.err
8444   rm -f conftest.er1
8445   cat conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -z "$ac_c_werror_flag"
8449                          || test ! -s conftest.err'
8450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451   (eval $ac_try) 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest$ac_exeext'
8456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457   (eval $ac_try) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; }; then
8461   ac_cv_search_opendir="none required"
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466 fi
8467 rm -f conftest.err conftest.$ac_objext \
8468       conftest$ac_exeext conftest.$ac_ext
8469 if test "$ac_cv_search_opendir" = no; then
8470   for ac_lib in dir; do
8471     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8472     cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478
8479 /* Override any gcc2 internal prototype to avoid an error.  */
8480 #ifdef __cplusplus
8481 extern "C"
8482 #endif
8483 /* We use char because int might match the return type of a gcc2
8484    builtin and then its argument prototype would still apply.  */
8485 char opendir ();
8486 int
8487 main ()
8488 {
8489 opendir ();
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496   (eval $ac_link) 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
8500   cat conftest.err >&5
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } &&
8503          { ac_try='test -z "$ac_c_werror_flag"
8504                          || test ! -s conftest.err'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; } &&
8510          { ac_try='test -s conftest$ac_exeext'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; }; then
8516   ac_cv_search_opendir="-l$ac_lib"
8517 break
8518 else
8519   echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522 fi
8523 rm -f conftest.err conftest.$ac_objext \
8524       conftest$ac_exeext conftest.$ac_ext
8525   done
8526 fi
8527 LIBS=$ac_func_search_save_LIBS
8528 fi
8529 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8530 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8531 if test "$ac_cv_search_opendir" != no; then
8532   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8533
8534 fi
8535
8536 else
8537   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8538 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8539 if test "${ac_cv_search_opendir+set}" = set; then
8540   echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542   ac_func_search_save_LIBS=$LIBS
8543 ac_cv_search_opendir=no
8544 cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h.  */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h.  */
8550
8551 /* Override any gcc2 internal prototype to avoid an error.  */
8552 #ifdef __cplusplus
8553 extern "C"
8554 #endif
8555 /* We use char because int might match the return type of a gcc2
8556    builtin and then its argument prototype would still apply.  */
8557 char opendir ();
8558 int
8559 main ()
8560 {
8561 opendir ();
8562   ;
8563   return 0;
8564 }
8565 _ACEOF
8566 rm -f conftest.$ac_objext conftest$ac_exeext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568   (eval $ac_link) 2>conftest.er1
8569   ac_status=$?
8570   grep -v '^ *+' conftest.er1 >conftest.err
8571   rm -f conftest.er1
8572   cat conftest.err >&5
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } &&
8575          { ac_try='test -z "$ac_c_werror_flag"
8576                          || test ! -s conftest.err'
8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; } &&
8582          { ac_try='test -s conftest$ac_exeext'
8583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584   (eval $ac_try) 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; }; then
8588   ac_cv_search_opendir="none required"
8589 else
8590   echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 fi
8594 rm -f conftest.err conftest.$ac_objext \
8595       conftest$ac_exeext conftest.$ac_ext
8596 if test "$ac_cv_search_opendir" = no; then
8597   for ac_lib in x; do
8598     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8599     cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605
8606 /* Override any gcc2 internal prototype to avoid an error.  */
8607 #ifdef __cplusplus
8608 extern "C"
8609 #endif
8610 /* We use char because int might match the return type of a gcc2
8611    builtin and then its argument prototype would still apply.  */
8612 char opendir ();
8613 int
8614 main ()
8615 {
8616 opendir ();
8617   ;
8618   return 0;
8619 }
8620 _ACEOF
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623   (eval $ac_link) 2>conftest.er1
8624   ac_status=$?
8625   grep -v '^ *+' conftest.er1 >conftest.err
8626   rm -f conftest.er1
8627   cat conftest.err >&5
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } &&
8630          { ac_try='test -z "$ac_c_werror_flag"
8631                          || test ! -s conftest.err'
8632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633   (eval $ac_try) 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; } &&
8637          { ac_try='test -s conftest$ac_exeext'
8638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639   (eval $ac_try) 2>&5
8640   ac_status=$?
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); }; }; then
8643   ac_cv_search_opendir="-l$ac_lib"
8644 break
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649 fi
8650 rm -f conftest.err conftest.$ac_objext \
8651       conftest$ac_exeext conftest.$ac_ext
8652   done
8653 fi
8654 LIBS=$ac_func_search_save_LIBS
8655 fi
8656 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8657 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8658 if test "$ac_cv_search_opendir" != no; then
8659   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8660
8661 fi
8662
8663 fi
8664
8665 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8666 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8667 if test "${ac_cv_header_stat_broken+set}" = set; then
8668   echo $ECHO_N "(cached) $ECHO_C" >&6
8669 else
8670   cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676 #include <sys/types.h>
8677 #include <sys/stat.h>
8678
8679 #if defined(S_ISBLK) && defined(S_IFDIR)
8680 # if S_ISBLK (S_IFDIR)
8681 You lose.
8682 # endif
8683 #endif
8684
8685 #if defined(S_ISBLK) && defined(S_IFCHR)
8686 # if S_ISBLK (S_IFCHR)
8687 You lose.
8688 # endif
8689 #endif
8690
8691 #if defined(S_ISLNK) && defined(S_IFREG)
8692 # if S_ISLNK (S_IFREG)
8693 You lose.
8694 # endif
8695 #endif
8696
8697 #if defined(S_ISSOCK) && defined(S_IFREG)
8698 # if S_ISSOCK (S_IFREG)
8699 You lose.
8700 # endif
8701 #endif
8702
8703 _ACEOF
8704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8705   $EGREP "You lose" >/dev/null 2>&1; then
8706   ac_cv_header_stat_broken=yes
8707 else
8708   ac_cv_header_stat_broken=no
8709 fi
8710 rm -f conftest*
8711
8712 fi
8713 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8714 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8715 if test $ac_cv_header_stat_broken = yes; then
8716
8717 cat >>confdefs.h <<\_ACEOF
8718 #define STAT_MACROS_BROKEN 1
8719 _ACEOF
8720
8721 fi
8722
8723 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8724 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8725 if test "${ac_cv_header_stdc+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734 #include <stdlib.h>
8735 #include <stdarg.h>
8736 #include <string.h>
8737 #include <float.h>
8738
8739 int
8740 main ()
8741 {
8742
8743   ;
8744   return 0;
8745 }
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749   (eval $ac_compile) 2>conftest.er1
8750   ac_status=$?
8751   grep -v '^ *+' conftest.er1 >conftest.err
8752   rm -f conftest.er1
8753   cat conftest.err >&5
8754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755   (exit $ac_status); } &&
8756          { ac_try='test -z "$ac_c_werror_flag"
8757                          || test ! -s conftest.err'
8758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759   (eval $ac_try) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; } &&
8763          { ac_try='test -s conftest.$ac_objext'
8764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765   (eval $ac_try) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); }; }; then
8769   ac_cv_header_stdc=yes
8770 else
8771   echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 ac_cv_header_stdc=no
8775 fi
8776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8777
8778 if test $ac_cv_header_stdc = yes; then
8779   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8780   cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 #include <string.h>
8787
8788 _ACEOF
8789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8790   $EGREP "memchr" >/dev/null 2>&1; then
8791   :
8792 else
8793   ac_cv_header_stdc=no
8794 fi
8795 rm -f conftest*
8796
8797 fi
8798
8799 if test $ac_cv_header_stdc = yes; then
8800   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8801   cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807 #include <stdlib.h>
8808
8809 _ACEOF
8810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8811   $EGREP "free" >/dev/null 2>&1; then
8812   :
8813 else
8814   ac_cv_header_stdc=no
8815 fi
8816 rm -f conftest*
8817
8818 fi
8819
8820 if test $ac_cv_header_stdc = yes; then
8821   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8822   if test "$cross_compiling" = yes; then
8823   :
8824 else
8825   cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h.  */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h.  */
8831 #include <ctype.h>
8832 #if ((' ' & 0x0FF) == 0x020)
8833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8835 #else
8836 # define ISLOWER(c) \
8837                    (('a' <= (c) && (c) <= 'i') \
8838                      || ('j' <= (c) && (c) <= 'r') \
8839                      || ('s' <= (c) && (c) <= 'z'))
8840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8841 #endif
8842
8843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8844 int
8845 main ()
8846 {
8847   int i;
8848   for (i = 0; i < 256; i++)
8849     if (XOR (islower (i), ISLOWER (i))
8850         || toupper (i) != TOUPPER (i))
8851       exit(2);
8852   exit (0);
8853 }
8854 _ACEOF
8855 rm -f conftest$ac_exeext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8857   (eval $ac_link) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862   (eval $ac_try) 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; }; then
8866   :
8867 else
8868   echo "$as_me: program exited with status $ac_status" >&5
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8871
8872 ( exit $ac_status )
8873 ac_cv_header_stdc=no
8874 fi
8875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8876 fi
8877 fi
8878 fi
8879 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8880 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8881 if test $ac_cv_header_stdc = yes; then
8882
8883 cat >>confdefs.h <<\_ACEOF
8884 #define STDC_HEADERS 1
8885 _ACEOF
8886
8887 fi
8888
8889
8890 for ac_header in nlist.h
8891 do
8892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8894   echo "$as_me:$LINENO: checking for $ac_header" >&5
8895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8897   echo $ECHO_N "(cached) $ECHO_C" >&6
8898 fi
8899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8901 else
8902   # Is the header compilable?
8903 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8905 cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911 $ac_includes_default
8912 #include <$ac_header>
8913 _ACEOF
8914 rm -f conftest.$ac_objext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8916   (eval $ac_compile) 2>conftest.er1
8917   ac_status=$?
8918   grep -v '^ *+' conftest.er1 >conftest.err
8919   rm -f conftest.er1
8920   cat conftest.err >&5
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } &&
8923          { ac_try='test -z "$ac_c_werror_flag"
8924                          || test ! -s conftest.err'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; } &&
8930          { ac_try='test -s conftest.$ac_objext'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936   ac_header_compiler=yes
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941 ac_header_compiler=no
8942 fi
8943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8945 echo "${ECHO_T}$ac_header_compiler" >&6
8946
8947 # Is the header present?
8948 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h.  */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h.  */
8956 #include <$ac_header>
8957 _ACEOF
8958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8959   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8960   ac_status=$?
8961   grep -v '^ *+' conftest.er1 >conftest.err
8962   rm -f conftest.er1
8963   cat conftest.err >&5
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } >/dev/null; then
8966   if test -s conftest.err; then
8967     ac_cpp_err=$ac_c_preproc_warn_flag
8968     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8969   else
8970     ac_cpp_err=
8971   fi
8972 else
8973   ac_cpp_err=yes
8974 fi
8975 if test -z "$ac_cpp_err"; then
8976   ac_header_preproc=yes
8977 else
8978   echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981   ac_header_preproc=no
8982 fi
8983 rm -f conftest.err conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8985 echo "${ECHO_T}$ac_header_preproc" >&6
8986
8987 # So?  What about this header?
8988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8989   yes:no: )
8990     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8994     ac_header_preproc=yes
8995     ;;
8996   no:yes:* )
8997     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8999     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9000 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9001     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9003     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9004 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9007     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9009     (
9010       cat <<\_ASBOX
9011 ## ------------------------------------------ ##
9012 ## Report this to the AC_PACKAGE_NAME lists.  ##
9013 ## ------------------------------------------ ##
9014 _ASBOX
9015     ) |
9016       sed "s/^/$as_me: WARNING:     /" >&2
9017     ;;
9018 esac
9019 echo "$as_me:$LINENO: checking for $ac_header" >&5
9020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024   eval "$as_ac_Header=\$ac_header_preproc"
9025 fi
9026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9028
9029 fi
9030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9031   cat >>confdefs.h <<_ACEOF
9032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9033 _ACEOF
9034
9035 fi
9036
9037 done
9038
9039
9040 for ac_header in link.h
9041 do
9042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9043 echo "$as_me:$LINENO: checking for $ac_header" >&5
9044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048   cat >conftest.$ac_ext <<_ACEOF
9049 /* confdefs.h.  */
9050 _ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h.  */
9054 #if HAVE_SYS_TYPES_H
9055 # include <sys/types.h>
9056 #endif
9057 #if HAVE_NLIST_H
9058 # include <nlist.h>
9059 #endif
9060
9061
9062 #include <$ac_header>
9063 _ACEOF
9064 rm -f conftest.$ac_objext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066   (eval $ac_compile) 2>conftest.er1
9067   ac_status=$?
9068   grep -v '^ *+' conftest.er1 >conftest.err
9069   rm -f conftest.er1
9070   cat conftest.err >&5
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); } &&
9073          { ac_try='test -z "$ac_c_werror_flag"
9074                          || test ! -s conftest.err'
9075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076   (eval $ac_try) 2>&5
9077   ac_status=$?
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); }; } &&
9080          { ac_try='test -s conftest.$ac_objext'
9081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082   (eval $ac_try) 2>&5
9083   ac_status=$?
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); }; }; then
9086   eval "$as_ac_Header=yes"
9087 else
9088   echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9090
9091 eval "$as_ac_Header=no"
9092 fi
9093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9094 fi
9095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9098   cat >>confdefs.h <<_ACEOF
9099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9100 _ACEOF
9101
9102 fi
9103
9104 done
9105
9106
9107 for ac_header in machine/reg.h
9108 do
9109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9111   echo "$as_me:$LINENO: checking for $ac_header" >&5
9112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 fi
9116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9118 else
9119   # Is the header compilable?
9120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h.  */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h.  */
9128 $ac_includes_default
9129 #include <$ac_header>
9130 _ACEOF
9131 rm -f conftest.$ac_objext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133   (eval $ac_compile) 2>conftest.er1
9134   ac_status=$?
9135   grep -v '^ *+' conftest.er1 >conftest.err
9136   rm -f conftest.er1
9137   cat conftest.err >&5
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); } &&
9140          { ac_try='test -z "$ac_c_werror_flag"
9141                          || test ! -s conftest.err'
9142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143   (eval $ac_try) 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); }; } &&
9147          { ac_try='test -s conftest.$ac_objext'
9148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149   (eval $ac_try) 2>&5
9150   ac_status=$?
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); }; }; then
9153   ac_header_compiler=yes
9154 else
9155   echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9157
9158 ac_header_compiler=no
9159 fi
9160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9162 echo "${ECHO_T}$ac_header_compiler" >&6
9163
9164 # Is the header present?
9165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9167 cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h.  */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h.  */
9173 #include <$ac_header>
9174 _ACEOF
9175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9176   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9177   ac_status=$?
9178   grep -v '^ *+' conftest.er1 >conftest.err
9179   rm -f conftest.er1
9180   cat conftest.err >&5
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); } >/dev/null; then
9183   if test -s conftest.err; then
9184     ac_cpp_err=$ac_c_preproc_warn_flag
9185     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9186   else
9187     ac_cpp_err=
9188   fi
9189 else
9190   ac_cpp_err=yes
9191 fi
9192 if test -z "$ac_cpp_err"; then
9193   ac_header_preproc=yes
9194 else
9195   echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9197
9198   ac_header_preproc=no
9199 fi
9200 rm -f conftest.err conftest.$ac_ext
9201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9202 echo "${ECHO_T}$ac_header_preproc" >&6
9203
9204 # So?  What about this header?
9205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9206   yes:no: )
9207     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9211     ac_header_preproc=yes
9212     ;;
9213   no:yes:* )
9214     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9216     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9217 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9218     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9220     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9221 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9224     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9226     (
9227       cat <<\_ASBOX
9228 ## ------------------------------------------ ##
9229 ## Report this to the AC_PACKAGE_NAME lists.  ##
9230 ## ------------------------------------------ ##
9231 _ASBOX
9232     ) |
9233       sed "s/^/$as_me: WARNING:     /" >&2
9234     ;;
9235 esac
9236 echo "$as_me:$LINENO: checking for $ac_header" >&5
9237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9239   echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241   eval "$as_ac_Header=\$ac_header_preproc"
9242 fi
9243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9245
9246 fi
9247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9248   cat >>confdefs.h <<_ACEOF
9249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9250 _ACEOF
9251
9252 fi
9253
9254 done
9255
9256
9257
9258 for ac_header in poll.h sys/poll.h
9259 do
9260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9262   echo "$as_me:$LINENO: checking for $ac_header" >&5
9263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 fi
9267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9269 else
9270   # Is the header compilable?
9271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h.  */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h.  */
9279 $ac_includes_default
9280 #include <$ac_header>
9281 _ACEOF
9282 rm -f conftest.$ac_objext
9283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284   (eval $ac_compile) 2>conftest.er1
9285   ac_status=$?
9286   grep -v '^ *+' conftest.er1 >conftest.err
9287   rm -f conftest.er1
9288   cat conftest.err >&5
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } &&
9291          { ac_try='test -z "$ac_c_werror_flag"
9292                          || test ! -s conftest.err'
9293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294   (eval $ac_try) 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); }; } &&
9298          { ac_try='test -s conftest.$ac_objext'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304   ac_header_compiler=yes
9305 else
9306   echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309 ac_header_compiler=no
9310 fi
9311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9313 echo "${ECHO_T}$ac_header_compiler" >&6
9314
9315 # Is the header present?
9316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9318 cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h.  */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h.  */
9324 #include <$ac_header>
9325 _ACEOF
9326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9328   ac_status=$?
9329   grep -v '^ *+' conftest.er1 >conftest.err
9330   rm -f conftest.er1
9331   cat conftest.err >&5
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); } >/dev/null; then
9334   if test -s conftest.err; then
9335     ac_cpp_err=$ac_c_preproc_warn_flag
9336     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9337   else
9338     ac_cpp_err=
9339   fi
9340 else
9341   ac_cpp_err=yes
9342 fi
9343 if test -z "$ac_cpp_err"; then
9344   ac_header_preproc=yes
9345 else
9346   echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349   ac_header_preproc=no
9350 fi
9351 rm -f conftest.err conftest.$ac_ext
9352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9353 echo "${ECHO_T}$ac_header_preproc" >&6
9354
9355 # So?  What about this header?
9356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9357   yes:no: )
9358     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9362     ac_header_preproc=yes
9363     ;;
9364   no:yes:* )
9365     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9367     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9368 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9369     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9371     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9372 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9375     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9377     (
9378       cat <<\_ASBOX
9379 ## ------------------------------------------ ##
9380 ## Report this to the AC_PACKAGE_NAME lists.  ##
9381 ## ------------------------------------------ ##
9382 _ASBOX
9383     ) |
9384       sed "s/^/$as_me: WARNING:     /" >&2
9385     ;;
9386 esac
9387 echo "$as_me:$LINENO: checking for $ac_header" >&5
9388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9390   echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392   eval "$as_ac_Header=\$ac_header_preproc"
9393 fi
9394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9396
9397 fi
9398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9399   cat >>confdefs.h <<_ACEOF
9400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9401 _ACEOF
9402
9403 fi
9404
9405 done
9406
9407
9408
9409
9410 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9411 do
9412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9414   echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 fi
9419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9421 else
9422   # Is the header compilable?
9423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h.  */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h.  */
9431 $ac_includes_default
9432 #include <$ac_header>
9433 _ACEOF
9434 rm -f conftest.$ac_objext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436   (eval $ac_compile) 2>conftest.er1
9437   ac_status=$?
9438   grep -v '^ *+' conftest.er1 >conftest.err
9439   rm -f conftest.er1
9440   cat conftest.err >&5
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); } &&
9443          { ac_try='test -z "$ac_c_werror_flag"
9444                          || test ! -s conftest.err'
9445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446   (eval $ac_try) 2>&5
9447   ac_status=$?
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); }; } &&
9450          { ac_try='test -s conftest.$ac_objext'
9451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452   (eval $ac_try) 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); }; }; then
9456   ac_header_compiler=yes
9457 else
9458   echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 ac_header_compiler=no
9462 fi
9463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9465 echo "${ECHO_T}$ac_header_compiler" >&6
9466
9467 # Is the header present?
9468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h.  */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h.  */
9476 #include <$ac_header>
9477 _ACEOF
9478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9480   ac_status=$?
9481   grep -v '^ *+' conftest.er1 >conftest.err
9482   rm -f conftest.er1
9483   cat conftest.err >&5
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); } >/dev/null; then
9486   if test -s conftest.err; then
9487     ac_cpp_err=$ac_c_preproc_warn_flag
9488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9489   else
9490     ac_cpp_err=
9491   fi
9492 else
9493   ac_cpp_err=yes
9494 fi
9495 if test -z "$ac_cpp_err"; then
9496   ac_header_preproc=yes
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501   ac_header_preproc=no
9502 fi
9503 rm -f conftest.err conftest.$ac_ext
9504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9505 echo "${ECHO_T}$ac_header_preproc" >&6
9506
9507 # So?  What about this header?
9508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9509   yes:no: )
9510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9514     ac_header_preproc=yes
9515     ;;
9516   no:yes:* )
9517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9529     (
9530       cat <<\_ASBOX
9531 ## ------------------------------------------ ##
9532 ## Report this to the AC_PACKAGE_NAME lists.  ##
9533 ## ------------------------------------------ ##
9534 _ASBOX
9535     ) |
9536       sed "s/^/$as_me: WARNING:     /" >&2
9537     ;;
9538 esac
9539 echo "$as_me:$LINENO: checking for $ac_header" >&5
9540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544   eval "$as_ac_Header=\$ac_header_preproc"
9545 fi
9546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9548
9549 fi
9550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9551   cat >>confdefs.h <<_ACEOF
9552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9553 _ACEOF
9554
9555 fi
9556
9557 done
9558
9559
9560 for ac_header in stddef.h
9561 do
9562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9564   echo "$as_me:$LINENO: checking for $ac_header" >&5
9565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 fi
9569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9571 else
9572   # Is the header compilable?
9573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 $ac_includes_default
9582 #include <$ac_header>
9583 _ACEOF
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586   (eval $ac_compile) 2>conftest.er1
9587   ac_status=$?
9588   grep -v '^ *+' conftest.er1 >conftest.err
9589   rm -f conftest.er1
9590   cat conftest.err >&5
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } &&
9593          { ac_try='test -z "$ac_c_werror_flag"
9594                          || test ! -s conftest.err'
9595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596   (eval $ac_try) 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); }; } &&
9600          { ac_try='test -s conftest.$ac_objext'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; }; then
9606   ac_header_compiler=yes
9607 else
9608   echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 ac_header_compiler=no
9612 fi
9613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9615 echo "${ECHO_T}$ac_header_compiler" >&6
9616
9617 # Is the header present?
9618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9620 cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h.  */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h.  */
9626 #include <$ac_header>
9627 _ACEOF
9628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9630   ac_status=$?
9631   grep -v '^ *+' conftest.er1 >conftest.err
9632   rm -f conftest.er1
9633   cat conftest.err >&5
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } >/dev/null; then
9636   if test -s conftest.err; then
9637     ac_cpp_err=$ac_c_preproc_warn_flag
9638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9639   else
9640     ac_cpp_err=
9641   fi
9642 else
9643   ac_cpp_err=yes
9644 fi
9645 if test -z "$ac_cpp_err"; then
9646   ac_header_preproc=yes
9647 else
9648   echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651   ac_header_preproc=no
9652 fi
9653 rm -f conftest.err conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9655 echo "${ECHO_T}$ac_header_preproc" >&6
9656
9657 # So?  What about this header?
9658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9659   yes:no: )
9660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9664     ac_header_preproc=yes
9665     ;;
9666   no:yes:* )
9667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9679     (
9680       cat <<\_ASBOX
9681 ## ------------------------------------------ ##
9682 ## Report this to the AC_PACKAGE_NAME lists.  ##
9683 ## ------------------------------------------ ##
9684 _ASBOX
9685     ) |
9686       sed "s/^/$as_me: WARNING:     /" >&2
9687     ;;
9688 esac
9689 echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694   eval "$as_ac_Header=\$ac_header_preproc"
9695 fi
9696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9698
9699 fi
9700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9701   cat >>confdefs.h <<_ACEOF
9702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9703 _ACEOF
9704
9705 fi
9706
9707 done
9708
9709
9710 for ac_header in stdlib.h
9711 do
9712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714   echo "$as_me:$LINENO: checking for $ac_header" >&5
9715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717   echo $ECHO_N "(cached) $ECHO_C" >&6
9718 fi
9719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9721 else
9722   # Is the header compilable?
9723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731 $ac_includes_default
9732 #include <$ac_header>
9733 _ACEOF
9734 rm -f conftest.$ac_objext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9736   (eval $ac_compile) 2>conftest.er1
9737   ac_status=$?
9738   grep -v '^ *+' conftest.er1 >conftest.err
9739   rm -f conftest.er1
9740   cat conftest.err >&5
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); } &&
9743          { ac_try='test -z "$ac_c_werror_flag"
9744                          || test ! -s conftest.err'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; } &&
9750          { ac_try='test -s conftest.$ac_objext'
9751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752   (eval $ac_try) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; }; then
9756   ac_header_compiler=yes
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761 ac_header_compiler=no
9762 fi
9763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9765 echo "${ECHO_T}$ac_header_compiler" >&6
9766
9767 # Is the header present?
9768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h.  */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h.  */
9776 #include <$ac_header>
9777 _ACEOF
9778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9780   ac_status=$?
9781   grep -v '^ *+' conftest.er1 >conftest.err
9782   rm -f conftest.er1
9783   cat conftest.err >&5
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } >/dev/null; then
9786   if test -s conftest.err; then
9787     ac_cpp_err=$ac_c_preproc_warn_flag
9788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9789   else
9790     ac_cpp_err=
9791   fi
9792 else
9793   ac_cpp_err=yes
9794 fi
9795 if test -z "$ac_cpp_err"; then
9796   ac_header_preproc=yes
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801   ac_header_preproc=no
9802 fi
9803 rm -f conftest.err conftest.$ac_ext
9804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9805 echo "${ECHO_T}$ac_header_preproc" >&6
9806
9807 # So?  What about this header?
9808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9809   yes:no: )
9810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9814     ac_header_preproc=yes
9815     ;;
9816   no:yes:* )
9817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9829     (
9830       cat <<\_ASBOX
9831 ## ------------------------------------------ ##
9832 ## Report this to the AC_PACKAGE_NAME lists.  ##
9833 ## ------------------------------------------ ##
9834 _ASBOX
9835     ) |
9836       sed "s/^/$as_me: WARNING:     /" >&2
9837     ;;
9838 esac
9839 echo "$as_me:$LINENO: checking for $ac_header" >&5
9840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9842   echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844   eval "$as_ac_Header=\$ac_header_preproc"
9845 fi
9846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9848
9849 fi
9850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9851   cat >>confdefs.h <<_ACEOF
9852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9853 _ACEOF
9854
9855 fi
9856
9857 done
9858
9859
9860 for ac_header in stdint.h
9861 do
9862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9864   echo "$as_me:$LINENO: checking for $ac_header" >&5
9865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 fi
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9871 else
9872   # Is the header compilable?
9873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h.  */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h.  */
9881 $ac_includes_default
9882 #include <$ac_header>
9883 _ACEOF
9884 rm -f conftest.$ac_objext
9885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886   (eval $ac_compile) 2>conftest.er1
9887   ac_status=$?
9888   grep -v '^ *+' conftest.er1 >conftest.err
9889   rm -f conftest.er1
9890   cat conftest.err >&5
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); } &&
9893          { ac_try='test -z "$ac_c_werror_flag"
9894                          || test ! -s conftest.err'
9895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896   (eval $ac_try) 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); }; } &&
9900          { ac_try='test -s conftest.$ac_objext'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; }; then
9906   ac_header_compiler=yes
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 ac_header_compiler=no
9912 fi
9913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9915 echo "${ECHO_T}$ac_header_compiler" >&6
9916
9917 # Is the header present?
9918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9920 cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h.  */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h.  */
9926 #include <$ac_header>
9927 _ACEOF
9928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9929   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9930   ac_status=$?
9931   grep -v '^ *+' conftest.er1 >conftest.err
9932   rm -f conftest.er1
9933   cat conftest.err >&5
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); } >/dev/null; then
9936   if test -s conftest.err; then
9937     ac_cpp_err=$ac_c_preproc_warn_flag
9938     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9939   else
9940     ac_cpp_err=
9941   fi
9942 else
9943   ac_cpp_err=yes
9944 fi
9945 if test -z "$ac_cpp_err"; then
9946   ac_header_preproc=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951   ac_header_preproc=no
9952 fi
9953 rm -f conftest.err conftest.$ac_ext
9954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9955 echo "${ECHO_T}$ac_header_preproc" >&6
9956
9957 # So?  What about this header?
9958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9959   yes:no: )
9960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9964     ac_header_preproc=yes
9965     ;;
9966   no:yes:* )
9967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9969     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9970 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9971     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9973     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9974 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9977     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9979     (
9980       cat <<\_ASBOX
9981 ## ------------------------------------------ ##
9982 ## Report this to the AC_PACKAGE_NAME lists.  ##
9983 ## ------------------------------------------ ##
9984 _ASBOX
9985     ) |
9986       sed "s/^/$as_me: WARNING:     /" >&2
9987     ;;
9988 esac
9989 echo "$as_me:$LINENO: checking for $ac_header" >&5
9990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   eval "$as_ac_Header=\$ac_header_preproc"
9995 fi
9996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9998
9999 fi
10000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10001   cat >>confdefs.h <<_ACEOF
10002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10003 _ACEOF
10004
10005 fi
10006
10007 done
10008
10009
10010
10011
10012 for ac_header in string.h memory.h strings.h
10013 do
10014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10016   echo "$as_me:$LINENO: checking for $ac_header" >&5
10017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10019   echo $ECHO_N "(cached) $ECHO_C" >&6
10020 fi
10021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10023 else
10024   # Is the header compilable?
10025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033 $ac_includes_default
10034 #include <$ac_header>
10035 _ACEOF
10036 rm -f conftest.$ac_objext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10038   (eval $ac_compile) 2>conftest.er1
10039   ac_status=$?
10040   grep -v '^ *+' conftest.er1 >conftest.err
10041   rm -f conftest.er1
10042   cat conftest.err >&5
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); } &&
10045          { ac_try='test -z "$ac_c_werror_flag"
10046                          || test ! -s conftest.err'
10047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048   (eval $ac_try) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; } &&
10052          { ac_try='test -s conftest.$ac_objext'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; }; then
10058   ac_header_compiler=yes
10059 else
10060   echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063 ac_header_compiler=no
10064 fi
10065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10067 echo "${ECHO_T}$ac_header_compiler" >&6
10068
10069 # Is the header present?
10070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h.  */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h.  */
10078 #include <$ac_header>
10079 _ACEOF
10080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10082   ac_status=$?
10083   grep -v '^ *+' conftest.er1 >conftest.err
10084   rm -f conftest.er1
10085   cat conftest.err >&5
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); } >/dev/null; then
10088   if test -s conftest.err; then
10089     ac_cpp_err=$ac_c_preproc_warn_flag
10090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10091   else
10092     ac_cpp_err=
10093   fi
10094 else
10095   ac_cpp_err=yes
10096 fi
10097 if test -z "$ac_cpp_err"; then
10098   ac_header_preproc=yes
10099 else
10100   echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10102
10103   ac_header_preproc=no
10104 fi
10105 rm -f conftest.err conftest.$ac_ext
10106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10107 echo "${ECHO_T}$ac_header_preproc" >&6
10108
10109 # So?  What about this header?
10110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10111   yes:no: )
10112     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10116     ac_header_preproc=yes
10117     ;;
10118   no:yes:* )
10119     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10121     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10122 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10123     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10125     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10126 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10129     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10131     (
10132       cat <<\_ASBOX
10133 ## ------------------------------------------ ##
10134 ## Report this to the AC_PACKAGE_NAME lists.  ##
10135 ## ------------------------------------------ ##
10136 _ASBOX
10137     ) |
10138       sed "s/^/$as_me: WARNING:     /" >&2
10139     ;;
10140 esac
10141 echo "$as_me:$LINENO: checking for $ac_header" >&5
10142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   eval "$as_ac_Header=\$ac_header_preproc"
10147 fi
10148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10150
10151 fi
10152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10153   cat >>confdefs.h <<_ACEOF
10154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10155 _ACEOF
10156
10157 fi
10158
10159 done
10160
10161
10162 for ac_header in sys/fault.h
10163 do
10164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10166   echo "$as_me:$LINENO: checking for $ac_header" >&5
10167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10169   echo $ECHO_N "(cached) $ECHO_C" >&6
10170 fi
10171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10173 else
10174   # Is the header compilable?
10175 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h.  */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h.  */
10183 $ac_includes_default
10184 #include <$ac_header>
10185 _ACEOF
10186 rm -f conftest.$ac_objext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188   (eval $ac_compile) 2>conftest.er1
10189   ac_status=$?
10190   grep -v '^ *+' conftest.er1 >conftest.err
10191   rm -f conftest.er1
10192   cat conftest.err >&5
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } &&
10195          { ac_try='test -z "$ac_c_werror_flag"
10196                          || test ! -s conftest.err'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; } &&
10202          { ac_try='test -s conftest.$ac_objext'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }; then
10208   ac_header_compiler=yes
10209 else
10210   echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213 ac_header_compiler=no
10214 fi
10215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10217 echo "${ECHO_T}$ac_header_compiler" >&6
10218
10219 # Is the header present?
10220 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10222 cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h.  */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h.  */
10228 #include <$ac_header>
10229 _ACEOF
10230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10232   ac_status=$?
10233   grep -v '^ *+' conftest.er1 >conftest.err
10234   rm -f conftest.er1
10235   cat conftest.err >&5
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } >/dev/null; then
10238   if test -s conftest.err; then
10239     ac_cpp_err=$ac_c_preproc_warn_flag
10240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10241   else
10242     ac_cpp_err=
10243   fi
10244 else
10245   ac_cpp_err=yes
10246 fi
10247 if test -z "$ac_cpp_err"; then
10248   ac_header_preproc=yes
10249 else
10250   echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10252
10253   ac_header_preproc=no
10254 fi
10255 rm -f conftest.err conftest.$ac_ext
10256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10257 echo "${ECHO_T}$ac_header_preproc" >&6
10258
10259 # So?  What about this header?
10260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10261   yes:no: )
10262     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10266     ac_header_preproc=yes
10267     ;;
10268   no:yes:* )
10269     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10271     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10272 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10273     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10275     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10276 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10279     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10281     (
10282       cat <<\_ASBOX
10283 ## ------------------------------------------ ##
10284 ## Report this to the AC_PACKAGE_NAME lists.  ##
10285 ## ------------------------------------------ ##
10286 _ASBOX
10287     ) |
10288       sed "s/^/$as_me: WARNING:     /" >&2
10289     ;;
10290 esac
10291 echo "$as_me:$LINENO: checking for $ac_header" >&5
10292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296   eval "$as_ac_Header=\$ac_header_preproc"
10297 fi
10298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10300
10301 fi
10302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10303   cat >>confdefs.h <<_ACEOF
10304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10305 _ACEOF
10306
10307 fi
10308
10309 done
10310
10311
10312 for ac_header in sys/file.h
10313 do
10314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10316   echo "$as_me:$LINENO: checking for $ac_header" >&5
10317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10319   echo $ECHO_N "(cached) $ECHO_C" >&6
10320 fi
10321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10323 else
10324   # Is the header compilable?
10325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10327 cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h.  */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h.  */
10333 $ac_includes_default
10334 #include <$ac_header>
10335 _ACEOF
10336 rm -f conftest.$ac_objext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338   (eval $ac_compile) 2>conftest.er1
10339   ac_status=$?
10340   grep -v '^ *+' conftest.er1 >conftest.err
10341   rm -f conftest.er1
10342   cat conftest.err >&5
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); } &&
10345          { ac_try='test -z "$ac_c_werror_flag"
10346                          || test ! -s conftest.err'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; } &&
10352          { ac_try='test -s conftest.$ac_objext'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; }; then
10358   ac_header_compiler=yes
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_header_compiler=no
10364 fi
10365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10367 echo "${ECHO_T}$ac_header_compiler" >&6
10368
10369 # Is the header present?
10370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h.  */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h.  */
10378 #include <$ac_header>
10379 _ACEOF
10380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10382   ac_status=$?
10383   grep -v '^ *+' conftest.er1 >conftest.err
10384   rm -f conftest.er1
10385   cat conftest.err >&5
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } >/dev/null; then
10388   if test -s conftest.err; then
10389     ac_cpp_err=$ac_c_preproc_warn_flag
10390     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10391   else
10392     ac_cpp_err=
10393   fi
10394 else
10395   ac_cpp_err=yes
10396 fi
10397 if test -z "$ac_cpp_err"; then
10398   ac_header_preproc=yes
10399 else
10400   echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10402
10403   ac_header_preproc=no
10404 fi
10405 rm -f conftest.err conftest.$ac_ext
10406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10407 echo "${ECHO_T}$ac_header_preproc" >&6
10408
10409 # So?  What about this header?
10410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10411   yes:no: )
10412     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10416     ac_header_preproc=yes
10417     ;;
10418   no:yes:* )
10419     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10421     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10422 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10423     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10425     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10426 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10429     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10431     (
10432       cat <<\_ASBOX
10433 ## ------------------------------------------ ##
10434 ## Report this to the AC_PACKAGE_NAME lists.  ##
10435 ## ------------------------------------------ ##
10436 _ASBOX
10437     ) |
10438       sed "s/^/$as_me: WARNING:     /" >&2
10439     ;;
10440 esac
10441 echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10444   echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446   eval "$as_ac_Header=\$ac_header_preproc"
10447 fi
10448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10450
10451 fi
10452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10453   cat >>confdefs.h <<_ACEOF
10454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10455 _ACEOF
10456
10457 fi
10458
10459 done
10460
10461
10462 for ac_header in sys/filio.h
10463 do
10464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10466   echo "$as_me:$LINENO: checking for $ac_header" >&5
10467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10469   echo $ECHO_N "(cached) $ECHO_C" >&6
10470 fi
10471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10473 else
10474   # Is the header compilable?
10475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10477 cat >conftest.$ac_ext <<_ACEOF
10478 /* confdefs.h.  */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h.  */
10483 $ac_includes_default
10484 #include <$ac_header>
10485 _ACEOF
10486 rm -f conftest.$ac_objext
10487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10488   (eval $ac_compile) 2>conftest.er1
10489   ac_status=$?
10490   grep -v '^ *+' conftest.er1 >conftest.err
10491   rm -f conftest.er1
10492   cat conftest.err >&5
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); } &&
10495          { ac_try='test -z "$ac_c_werror_flag"
10496                          || test ! -s conftest.err'
10497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498   (eval $ac_try) 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); }; } &&
10502          { ac_try='test -s conftest.$ac_objext'
10503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504   (eval $ac_try) 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); }; }; then
10508   ac_header_compiler=yes
10509 else
10510   echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10512
10513 ac_header_compiler=no
10514 fi
10515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10517 echo "${ECHO_T}$ac_header_compiler" >&6
10518
10519 # Is the header present?
10520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10522 cat >conftest.$ac_ext <<_ACEOF
10523 /* confdefs.h.  */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h.  */
10528 #include <$ac_header>
10529 _ACEOF
10530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10532   ac_status=$?
10533   grep -v '^ *+' conftest.er1 >conftest.err
10534   rm -f conftest.er1
10535   cat conftest.err >&5
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   (exit $ac_status); } >/dev/null; then
10538   if test -s conftest.err; then
10539     ac_cpp_err=$ac_c_preproc_warn_flag
10540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10541   else
10542     ac_cpp_err=
10543   fi
10544 else
10545   ac_cpp_err=yes
10546 fi
10547 if test -z "$ac_cpp_err"; then
10548   ac_header_preproc=yes
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553   ac_header_preproc=no
10554 fi
10555 rm -f conftest.err conftest.$ac_ext
10556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10557 echo "${ECHO_T}$ac_header_preproc" >&6
10558
10559 # So?  What about this header?
10560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10561   yes:no: )
10562     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10566     ac_header_preproc=yes
10567     ;;
10568   no:yes:* )
10569     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10571     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10572 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10573     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10575     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10576 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10579     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10581     (
10582       cat <<\_ASBOX
10583 ## ------------------------------------------ ##
10584 ## Report this to the AC_PACKAGE_NAME lists.  ##
10585 ## ------------------------------------------ ##
10586 _ASBOX
10587     ) |
10588       sed "s/^/$as_me: WARNING:     /" >&2
10589     ;;
10590 esac
10591 echo "$as_me:$LINENO: checking for $ac_header" >&5
10592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10594   echo $ECHO_N "(cached) $ECHO_C" >&6
10595 else
10596   eval "$as_ac_Header=\$ac_header_preproc"
10597 fi
10598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10600
10601 fi
10602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10603   cat >>confdefs.h <<_ACEOF
10604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10605 _ACEOF
10606
10607 fi
10608
10609 done
10610
10611
10612 for ac_header in sys/ioctl.h
10613 do
10614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10616   echo "$as_me:$LINENO: checking for $ac_header" >&5
10617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10619   echo $ECHO_N "(cached) $ECHO_C" >&6
10620 fi
10621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10623 else
10624   # Is the header compilable?
10625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10627 cat >conftest.$ac_ext <<_ACEOF
10628 /* confdefs.h.  */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h.  */
10633 $ac_includes_default
10634 #include <$ac_header>
10635 _ACEOF
10636 rm -f conftest.$ac_objext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10638   (eval $ac_compile) 2>conftest.er1
10639   ac_status=$?
10640   grep -v '^ *+' conftest.er1 >conftest.err
10641   rm -f conftest.er1
10642   cat conftest.err >&5
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); } &&
10645          { ac_try='test -z "$ac_c_werror_flag"
10646                          || test ! -s conftest.err'
10647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648   (eval $ac_try) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; } &&
10652          { ac_try='test -s conftest.$ac_objext'
10653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654   (eval $ac_try) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; }; then
10658   ac_header_compiler=yes
10659 else
10660   echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 ac_header_compiler=no
10664 fi
10665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10667 echo "${ECHO_T}$ac_header_compiler" >&6
10668
10669 # Is the header present?
10670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h.  */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h.  */
10678 #include <$ac_header>
10679 _ACEOF
10680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10681   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10682   ac_status=$?
10683   grep -v '^ *+' conftest.er1 >conftest.err
10684   rm -f conftest.er1
10685   cat conftest.err >&5
10686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687   (exit $ac_status); } >/dev/null; then
10688   if test -s conftest.err; then
10689     ac_cpp_err=$ac_c_preproc_warn_flag
10690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10691   else
10692     ac_cpp_err=
10693   fi
10694 else
10695   ac_cpp_err=yes
10696 fi
10697 if test -z "$ac_cpp_err"; then
10698   ac_header_preproc=yes
10699 else
10700   echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10702
10703   ac_header_preproc=no
10704 fi
10705 rm -f conftest.err conftest.$ac_ext
10706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10707 echo "${ECHO_T}$ac_header_preproc" >&6
10708
10709 # So?  What about this header?
10710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10711   yes:no: )
10712     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10716     ac_header_preproc=yes
10717     ;;
10718   no:yes:* )
10719     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10721     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10722 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10723     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10725     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10726 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10729     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10731     (
10732       cat <<\_ASBOX
10733 ## ------------------------------------------ ##
10734 ## Report this to the AC_PACKAGE_NAME lists.  ##
10735 ## ------------------------------------------ ##
10736 _ASBOX
10737     ) |
10738       sed "s/^/$as_me: WARNING:     /" >&2
10739     ;;
10740 esac
10741 echo "$as_me:$LINENO: checking for $ac_header" >&5
10742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746   eval "$as_ac_Header=\$ac_header_preproc"
10747 fi
10748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10750
10751 fi
10752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10753   cat >>confdefs.h <<_ACEOF
10754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10755 _ACEOF
10756
10757 fi
10758
10759 done
10760
10761
10762 for ac_header in sys/param.h
10763 do
10764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10766   echo "$as_me:$LINENO: checking for $ac_header" >&5
10767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10769   echo $ECHO_N "(cached) $ECHO_C" >&6
10770 fi
10771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10773 else
10774   # Is the header compilable?
10775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h.  */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h.  */
10783 $ac_includes_default
10784 #include <$ac_header>
10785 _ACEOF
10786 rm -f conftest.$ac_objext
10787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10788   (eval $ac_compile) 2>conftest.er1
10789   ac_status=$?
10790   grep -v '^ *+' conftest.er1 >conftest.err
10791   rm -f conftest.er1
10792   cat conftest.err >&5
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } &&
10795          { ac_try='test -z "$ac_c_werror_flag"
10796                          || test ! -s conftest.err'
10797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798   (eval $ac_try) 2>&5
10799   ac_status=$?
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); }; } &&
10802          { ac_try='test -s conftest.$ac_objext'
10803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804   (eval $ac_try) 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   ac_header_compiler=yes
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813 ac_header_compiler=no
10814 fi
10815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10817 echo "${ECHO_T}$ac_header_compiler" >&6
10818
10819 # Is the header present?
10820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10822 cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h.  */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h.  */
10828 #include <$ac_header>
10829 _ACEOF
10830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10832   ac_status=$?
10833   grep -v '^ *+' conftest.er1 >conftest.err
10834   rm -f conftest.er1
10835   cat conftest.err >&5
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } >/dev/null; then
10838   if test -s conftest.err; then
10839     ac_cpp_err=$ac_c_preproc_warn_flag
10840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10841   else
10842     ac_cpp_err=
10843   fi
10844 else
10845   ac_cpp_err=yes
10846 fi
10847 if test -z "$ac_cpp_err"; then
10848   ac_header_preproc=yes
10849 else
10850   echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853   ac_header_preproc=no
10854 fi
10855 rm -f conftest.err conftest.$ac_ext
10856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10857 echo "${ECHO_T}$ac_header_preproc" >&6
10858
10859 # So?  What about this header?
10860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10861   yes:no: )
10862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10866     ac_header_preproc=yes
10867     ;;
10868   no:yes:* )
10869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10881     (
10882       cat <<\_ASBOX
10883 ## ------------------------------------------ ##
10884 ## Report this to the AC_PACKAGE_NAME lists.  ##
10885 ## ------------------------------------------ ##
10886 _ASBOX
10887     ) |
10888       sed "s/^/$as_me: WARNING:     /" >&2
10889     ;;
10890 esac
10891 echo "$as_me:$LINENO: checking for $ac_header" >&5
10892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10894   echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896   eval "$as_ac_Header=\$ac_header_preproc"
10897 fi
10898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10900
10901 fi
10902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10903   cat >>confdefs.h <<_ACEOF
10904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10905 _ACEOF
10906
10907 fi
10908
10909 done
10910
10911
10912 for ac_header in sys/proc.h
10913 do
10914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10915 echo "$as_me:$LINENO: checking for $ac_header" >&5
10916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10918   echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920   cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h.  */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h.  */
10926 #if HAVE_SYS_PARAM_H
10927 # include <sys/param.h>
10928 #endif
10929
10930
10931 #include <$ac_header>
10932 _ACEOF
10933 rm -f conftest.$ac_objext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10935   (eval $ac_compile) 2>conftest.er1
10936   ac_status=$?
10937   grep -v '^ *+' conftest.er1 >conftest.err
10938   rm -f conftest.er1
10939   cat conftest.err >&5
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); } &&
10942          { ac_try='test -z "$ac_c_werror_flag"
10943                          || test ! -s conftest.err'
10944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945   (eval $ac_try) 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); }; } &&
10949          { ac_try='test -s conftest.$ac_objext'
10950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951   (eval $ac_try) 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }; }; then
10955   eval "$as_ac_Header=yes"
10956 else
10957   echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10959
10960 eval "$as_ac_Header=no"
10961 fi
10962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10963 fi
10964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10967   cat >>confdefs.h <<_ACEOF
10968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10969 _ACEOF
10970
10971 fi
10972
10973 done
10974
10975
10976 for ac_header in sys/procfs.h
10977 do
10978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10980   echo "$as_me:$LINENO: checking for $ac_header" >&5
10981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10983   echo $ECHO_N "(cached) $ECHO_C" >&6
10984 fi
10985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10987 else
10988   # Is the header compilable?
10989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997 $ac_includes_default
10998 #include <$ac_header>
10999 _ACEOF
11000 rm -f conftest.$ac_objext
11001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11002   (eval $ac_compile) 2>conftest.er1
11003   ac_status=$?
11004   grep -v '^ *+' conftest.er1 >conftest.err
11005   rm -f conftest.er1
11006   cat conftest.err >&5
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); } &&
11009          { ac_try='test -z "$ac_c_werror_flag"
11010                          || test ! -s conftest.err'
11011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012   (eval $ac_try) 2>&5
11013   ac_status=$?
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); }; } &&
11016          { ac_try='test -s conftest.$ac_objext'
11017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018   (eval $ac_try) 2>&5
11019   ac_status=$?
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); }; }; then
11022   ac_header_compiler=yes
11023 else
11024   echo "$as_me: failed program was:" >&5
11025 sed 's/^/| /' conftest.$ac_ext >&5
11026
11027 ac_header_compiler=no
11028 fi
11029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11031 echo "${ECHO_T}$ac_header_compiler" >&6
11032
11033 # Is the header present?
11034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h.  */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h.  */
11042 #include <$ac_header>
11043 _ACEOF
11044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11046   ac_status=$?
11047   grep -v '^ *+' conftest.er1 >conftest.err
11048   rm -f conftest.er1
11049   cat conftest.err >&5
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } >/dev/null; then
11052   if test -s conftest.err; then
11053     ac_cpp_err=$ac_c_preproc_warn_flag
11054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11055   else
11056     ac_cpp_err=
11057   fi
11058 else
11059   ac_cpp_err=yes
11060 fi
11061 if test -z "$ac_cpp_err"; then
11062   ac_header_preproc=yes
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067   ac_header_preproc=no
11068 fi
11069 rm -f conftest.err conftest.$ac_ext
11070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11071 echo "${ECHO_T}$ac_header_preproc" >&6
11072
11073 # So?  What about this header?
11074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11075   yes:no: )
11076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11080     ac_header_preproc=yes
11081     ;;
11082   no:yes:* )
11083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11095     (
11096       cat <<\_ASBOX
11097 ## ------------------------------------------ ##
11098 ## Report this to the AC_PACKAGE_NAME lists.  ##
11099 ## ------------------------------------------ ##
11100 _ASBOX
11101     ) |
11102       sed "s/^/$as_me: WARNING:     /" >&2
11103     ;;
11104 esac
11105 echo "$as_me:$LINENO: checking for $ac_header" >&5
11106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11108   echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110   eval "$as_ac_Header=\$ac_header_preproc"
11111 fi
11112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11114
11115 fi
11116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11117   cat >>confdefs.h <<_ACEOF
11118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11119 _ACEOF
11120
11121 fi
11122
11123 done
11124
11125
11126
11127 for ac_header in sys/ptrace.h ptrace.h
11128 do
11129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11131   echo "$as_me:$LINENO: checking for $ac_header" >&5
11132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 fi
11136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11138 else
11139   # Is the header compilable?
11140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11142 cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h.  */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h.  */
11148 $ac_includes_default
11149 #include <$ac_header>
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153   (eval $ac_compile) 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } &&
11160          { ac_try='test -z "$ac_c_werror_flag"
11161                          || test ! -s conftest.err'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; } &&
11167          { ac_try='test -s conftest.$ac_objext'
11168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169   (eval $ac_try) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; }; then
11173   ac_header_compiler=yes
11174 else
11175   echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ac_header_compiler=no
11179 fi
11180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11182 echo "${ECHO_T}$ac_header_compiler" >&6
11183
11184 # Is the header present?
11185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h.  */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h.  */
11193 #include <$ac_header>
11194 _ACEOF
11195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11196   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11197   ac_status=$?
11198   grep -v '^ *+' conftest.er1 >conftest.err
11199   rm -f conftest.er1
11200   cat conftest.err >&5
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } >/dev/null; then
11203   if test -s conftest.err; then
11204     ac_cpp_err=$ac_c_preproc_warn_flag
11205     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11206   else
11207     ac_cpp_err=
11208   fi
11209 else
11210   ac_cpp_err=yes
11211 fi
11212 if test -z "$ac_cpp_err"; then
11213   ac_header_preproc=yes
11214 else
11215   echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11217
11218   ac_header_preproc=no
11219 fi
11220 rm -f conftest.err conftest.$ac_ext
11221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11222 echo "${ECHO_T}$ac_header_preproc" >&6
11223
11224 # So?  What about this header?
11225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11226   yes:no: )
11227     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11231     ac_header_preproc=yes
11232     ;;
11233   no:yes:* )
11234     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11236     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11237 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11238     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11240     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11241 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11244     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11246     (
11247       cat <<\_ASBOX
11248 ## ------------------------------------------ ##
11249 ## Report this to the AC_PACKAGE_NAME lists.  ##
11250 ## ------------------------------------------ ##
11251 _ASBOX
11252     ) |
11253       sed "s/^/$as_me: WARNING:     /" >&2
11254     ;;
11255 esac
11256 echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11259   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261   eval "$as_ac_Header=\$ac_header_preproc"
11262 fi
11263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11265
11266 fi
11267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11268   cat >>confdefs.h <<_ACEOF
11269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11270 _ACEOF
11271
11272 fi
11273
11274 done
11275
11276
11277
11278 for ac_header in sys/reg.h sys/debugreg.h
11279 do
11280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11282   echo "$as_me:$LINENO: checking for $ac_header" >&5
11283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11285   echo $ECHO_N "(cached) $ECHO_C" >&6
11286 fi
11287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11289 else
11290   # Is the header compilable?
11291 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h.  */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h.  */
11299 $ac_includes_default
11300 #include <$ac_header>
11301 _ACEOF
11302 rm -f conftest.$ac_objext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304   (eval $ac_compile) 2>conftest.er1
11305   ac_status=$?
11306   grep -v '^ *+' conftest.er1 >conftest.err
11307   rm -f conftest.er1
11308   cat conftest.err >&5
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); } &&
11311          { ac_try='test -z "$ac_c_werror_flag"
11312                          || test ! -s conftest.err'
11313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314   (eval $ac_try) 2>&5
11315   ac_status=$?
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); }; } &&
11318          { ac_try='test -s conftest.$ac_objext'
11319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320   (eval $ac_try) 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; }; then
11324   ac_header_compiler=yes
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329 ac_header_compiler=no
11330 fi
11331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11333 echo "${ECHO_T}$ac_header_compiler" >&6
11334
11335 # Is the header present?
11336 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11338 cat >conftest.$ac_ext <<_ACEOF
11339 /* confdefs.h.  */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h.  */
11344 #include <$ac_header>
11345 _ACEOF
11346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11347   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11348   ac_status=$?
11349   grep -v '^ *+' conftest.er1 >conftest.err
11350   rm -f conftest.er1
11351   cat conftest.err >&5
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); } >/dev/null; then
11354   if test -s conftest.err; then
11355     ac_cpp_err=$ac_c_preproc_warn_flag
11356     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11357   else
11358     ac_cpp_err=
11359   fi
11360 else
11361   ac_cpp_err=yes
11362 fi
11363 if test -z "$ac_cpp_err"; then
11364   ac_header_preproc=yes
11365 else
11366   echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11368
11369   ac_header_preproc=no
11370 fi
11371 rm -f conftest.err conftest.$ac_ext
11372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11373 echo "${ECHO_T}$ac_header_preproc" >&6
11374
11375 # So?  What about this header?
11376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11377   yes:no: )
11378     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11382     ac_header_preproc=yes
11383     ;;
11384   no:yes:* )
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11387     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11388 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11389     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11391     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11392 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11395     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11397     (
11398       cat <<\_ASBOX
11399 ## ------------------------------------------ ##
11400 ## Report this to the AC_PACKAGE_NAME lists.  ##
11401 ## ------------------------------------------ ##
11402 _ASBOX
11403     ) |
11404       sed "s/^/$as_me: WARNING:     /" >&2
11405     ;;
11406 esac
11407 echo "$as_me:$LINENO: checking for $ac_header" >&5
11408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11410   echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412   eval "$as_ac_Header=\$ac_header_preproc"
11413 fi
11414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11416
11417 fi
11418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11419   cat >>confdefs.h <<_ACEOF
11420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11421 _ACEOF
11422
11423 fi
11424
11425 done
11426
11427
11428 for ac_header in sys/select.h
11429 do
11430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11432   echo "$as_me:$LINENO: checking for $ac_header" >&5
11433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435   echo $ECHO_N "(cached) $ECHO_C" >&6
11436 fi
11437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11439 else
11440   # Is the header compilable?
11441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11443 cat >conftest.$ac_ext <<_ACEOF
11444 /* confdefs.h.  */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h.  */
11449 $ac_includes_default
11450 #include <$ac_header>
11451 _ACEOF
11452 rm -f conftest.$ac_objext
11453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11454   (eval $ac_compile) 2>conftest.er1
11455   ac_status=$?
11456   grep -v '^ *+' conftest.er1 >conftest.err
11457   rm -f conftest.er1
11458   cat conftest.err >&5
11459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460   (exit $ac_status); } &&
11461          { ac_try='test -z "$ac_c_werror_flag"
11462                          || test ! -s conftest.err'
11463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464   (eval $ac_try) 2>&5
11465   ac_status=$?
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); }; } &&
11468          { ac_try='test -s conftest.$ac_objext'
11469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470   (eval $ac_try) 2>&5
11471   ac_status=$?
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); }; }; then
11474   ac_header_compiler=yes
11475 else
11476   echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11478
11479 ac_header_compiler=no
11480 fi
11481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11483 echo "${ECHO_T}$ac_header_compiler" >&6
11484
11485 # Is the header present?
11486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h.  */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h.  */
11494 #include <$ac_header>
11495 _ACEOF
11496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11498   ac_status=$?
11499   grep -v '^ *+' conftest.er1 >conftest.err
11500   rm -f conftest.er1
11501   cat conftest.err >&5
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); } >/dev/null; then
11504   if test -s conftest.err; then
11505     ac_cpp_err=$ac_c_preproc_warn_flag
11506     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11507   else
11508     ac_cpp_err=
11509   fi
11510 else
11511   ac_cpp_err=yes
11512 fi
11513 if test -z "$ac_cpp_err"; then
11514   ac_header_preproc=yes
11515 else
11516   echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519   ac_header_preproc=no
11520 fi
11521 rm -f conftest.err conftest.$ac_ext
11522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11523 echo "${ECHO_T}$ac_header_preproc" >&6
11524
11525 # So?  What about this header?
11526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11527   yes:no: )
11528     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11532     ac_header_preproc=yes
11533     ;;
11534   no:yes:* )
11535     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11537     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11538 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11539     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11541     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11542 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11545     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11547     (
11548       cat <<\_ASBOX
11549 ## ------------------------------------------ ##
11550 ## Report this to the AC_PACKAGE_NAME lists.  ##
11551 ## ------------------------------------------ ##
11552 _ASBOX
11553     ) |
11554       sed "s/^/$as_me: WARNING:     /" >&2
11555     ;;
11556 esac
11557 echo "$as_me:$LINENO: checking for $ac_header" >&5
11558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11560   echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562   eval "$as_ac_Header=\$ac_header_preproc"
11563 fi
11564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11566
11567 fi
11568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11569   cat >>confdefs.h <<_ACEOF
11570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11571 _ACEOF
11572
11573 fi
11574
11575 done
11576
11577
11578 for ac_header in sys/syscall.h
11579 do
11580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11582   echo "$as_me:$LINENO: checking for $ac_header" >&5
11583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 fi
11587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11589 else
11590   # Is the header compilable?
11591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11593 cat >conftest.$ac_ext <<_ACEOF
11594 /* confdefs.h.  */
11595 _ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h.  */
11599 $ac_includes_default
11600 #include <$ac_header>
11601 _ACEOF
11602 rm -f conftest.$ac_objext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11604   (eval $ac_compile) 2>conftest.er1
11605   ac_status=$?
11606   grep -v '^ *+' conftest.er1 >conftest.err
11607   rm -f conftest.er1
11608   cat conftest.err >&5
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } &&
11611          { ac_try='test -z "$ac_c_werror_flag"
11612                          || test ! -s conftest.err'
11613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614   (eval $ac_try) 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; } &&
11618          { ac_try='test -s conftest.$ac_objext'
11619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620   (eval $ac_try) 2>&5
11621   ac_status=$?
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); }; }; then
11624   ac_header_compiler=yes
11625 else
11626   echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11628
11629 ac_header_compiler=no
11630 fi
11631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633 echo "${ECHO_T}$ac_header_compiler" >&6
11634
11635 # Is the header present?
11636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644 #include <$ac_header>
11645 _ACEOF
11646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11648   ac_status=$?
11649   grep -v '^ *+' conftest.er1 >conftest.err
11650   rm -f conftest.er1
11651   cat conftest.err >&5
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); } >/dev/null; then
11654   if test -s conftest.err; then
11655     ac_cpp_err=$ac_c_preproc_warn_flag
11656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11657   else
11658     ac_cpp_err=
11659   fi
11660 else
11661   ac_cpp_err=yes
11662 fi
11663 if test -z "$ac_cpp_err"; then
11664   ac_header_preproc=yes
11665 else
11666   echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11668
11669   ac_header_preproc=no
11670 fi
11671 rm -f conftest.err conftest.$ac_ext
11672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11673 echo "${ECHO_T}$ac_header_preproc" >&6
11674
11675 # So?  What about this header?
11676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11677   yes:no: )
11678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11682     ac_header_preproc=yes
11683     ;;
11684   no:yes:* )
11685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11697     (
11698       cat <<\_ASBOX
11699 ## ------------------------------------------ ##
11700 ## Report this to the AC_PACKAGE_NAME lists.  ##
11701 ## ------------------------------------------ ##
11702 _ASBOX
11703     ) |
11704       sed "s/^/$as_me: WARNING:     /" >&2
11705     ;;
11706 esac
11707 echo "$as_me:$LINENO: checking for $ac_header" >&5
11708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11710   echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712   eval "$as_ac_Header=\$ac_header_preproc"
11713 fi
11714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11716
11717 fi
11718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11719   cat >>confdefs.h <<_ACEOF
11720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11721 _ACEOF
11722
11723 fi
11724
11725 done
11726
11727
11728 for ac_header in sys/types.h
11729 do
11730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11732   echo "$as_me:$LINENO: checking for $ac_header" >&5
11733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11735   echo $ECHO_N "(cached) $ECHO_C" >&6
11736 fi
11737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11739 else
11740   # Is the header compilable?
11741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749 $ac_includes_default
11750 #include <$ac_header>
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754   (eval $ac_compile) 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -z "$ac_c_werror_flag"
11762                          || test ! -s conftest.err'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; } &&
11768          { ac_try='test -s conftest.$ac_objext'
11769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770   (eval $ac_try) 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); }; }; then
11774   ac_header_compiler=yes
11775 else
11776   echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11778
11779 ac_header_compiler=no
11780 fi
11781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11783 echo "${ECHO_T}$ac_header_compiler" >&6
11784
11785 # Is the header present?
11786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11788 cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h.  */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h.  */
11794 #include <$ac_header>
11795 _ACEOF
11796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } >/dev/null; then
11804   if test -s conftest.err; then
11805     ac_cpp_err=$ac_c_preproc_warn_flag
11806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11807   else
11808     ac_cpp_err=
11809   fi
11810 else
11811   ac_cpp_err=yes
11812 fi
11813 if test -z "$ac_cpp_err"; then
11814   ac_header_preproc=yes
11815 else
11816   echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11818
11819   ac_header_preproc=no
11820 fi
11821 rm -f conftest.err conftest.$ac_ext
11822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11823 echo "${ECHO_T}$ac_header_preproc" >&6
11824
11825 # So?  What about this header?
11826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11827   yes:no: )
11828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11832     ac_header_preproc=yes
11833     ;;
11834   no:yes:* )
11835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11847     (
11848       cat <<\_ASBOX
11849 ## ------------------------------------------ ##
11850 ## Report this to the AC_PACKAGE_NAME lists.  ##
11851 ## ------------------------------------------ ##
11852 _ASBOX
11853     ) |
11854       sed "s/^/$as_me: WARNING:     /" >&2
11855     ;;
11856 esac
11857 echo "$as_me:$LINENO: checking for $ac_header" >&5
11858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11860   echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862   eval "$as_ac_Header=\$ac_header_preproc"
11863 fi
11864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11866
11867 fi
11868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11869   cat >>confdefs.h <<_ACEOF
11870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11871 _ACEOF
11872
11873 fi
11874
11875 done
11876
11877
11878 for ac_header in sys/user.h
11879 do
11880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11881 echo "$as_me:$LINENO: checking for $ac_header" >&5
11882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886   cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892 #if HAVE_SYS_PARAM_H
11893 # include <sys/param.h>
11894 #endif
11895
11896
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"
11909                          || test ! -s conftest.err'
11910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911   (eval $ac_try) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; } &&
11915          { ac_try='test -s conftest.$ac_objext'
11916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917   (eval $ac_try) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; }; then
11921   eval "$as_ac_Header=yes"
11922 else
11923   echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11925
11926 eval "$as_ac_Header=no"
11927 fi
11928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11929 fi
11930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11933   cat >>confdefs.h <<_ACEOF
11934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11935 _ACEOF
11936
11937 fi
11938
11939 done
11940
11941
11942
11943 for ac_header in sys/wait.h wait.h
11944 do
11945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11947   echo "$as_me:$LINENO: checking for $ac_header" >&5
11948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11950   echo $ECHO_N "(cached) $ECHO_C" >&6
11951 fi
11952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11954 else
11955   # Is the header compilable?
11956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h.  */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h.  */
11964 $ac_includes_default
11965 #include <$ac_header>
11966 _ACEOF
11967 rm -f conftest.$ac_objext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11969   (eval $ac_compile) 2>conftest.er1
11970   ac_status=$?
11971   grep -v '^ *+' conftest.er1 >conftest.err
11972   rm -f conftest.er1
11973   cat conftest.err >&5
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); } &&
11976          { ac_try='test -z "$ac_c_werror_flag"
11977                          || test ! -s conftest.err'
11978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979   (eval $ac_try) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; } &&
11983          { ac_try='test -s conftest.$ac_objext'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989   ac_header_compiler=yes
11990 else
11991   echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 ac_header_compiler=no
11995 fi
11996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11998 echo "${ECHO_T}$ac_header_compiler" >&6
11999
12000 # Is the header present?
12001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h.  */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h.  */
12009 #include <$ac_header>
12010 _ACEOF
12011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12013   ac_status=$?
12014   grep -v '^ *+' conftest.er1 >conftest.err
12015   rm -f conftest.er1
12016   cat conftest.err >&5
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); } >/dev/null; then
12019   if test -s conftest.err; then
12020     ac_cpp_err=$ac_c_preproc_warn_flag
12021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12022   else
12023     ac_cpp_err=
12024   fi
12025 else
12026   ac_cpp_err=yes
12027 fi
12028 if test -z "$ac_cpp_err"; then
12029   ac_header_preproc=yes
12030 else
12031   echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034   ac_header_preproc=no
12035 fi
12036 rm -f conftest.err conftest.$ac_ext
12037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12038 echo "${ECHO_T}$ac_header_preproc" >&6
12039
12040 # So?  What about this header?
12041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12042   yes:no: )
12043     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12047     ac_header_preproc=yes
12048     ;;
12049   no:yes:* )
12050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12052     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12053 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12054     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12056     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12057 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12060     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12062     (
12063       cat <<\_ASBOX
12064 ## ------------------------------------------ ##
12065 ## Report this to the AC_PACKAGE_NAME lists.  ##
12066 ## ------------------------------------------ ##
12067 _ASBOX
12068     ) |
12069       sed "s/^/$as_me: WARNING:     /" >&2
12070     ;;
12071 esac
12072 echo "$as_me:$LINENO: checking for $ac_header" >&5
12073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12075   echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077   eval "$as_ac_Header=\$ac_header_preproc"
12078 fi
12079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12081
12082 fi
12083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12084   cat >>confdefs.h <<_ACEOF
12085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12086 _ACEOF
12087
12088 fi
12089
12090 done
12091
12092
12093
12094
12095 for ac_header in termios.h termio.h sgtty.h
12096 do
12097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12099   echo "$as_me:$LINENO: checking for $ac_header" >&5
12100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 fi
12104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12106 else
12107   # Is the header compilable?
12108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12110 cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h.  */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h.  */
12116 $ac_includes_default
12117 #include <$ac_header>
12118 _ACEOF
12119 rm -f conftest.$ac_objext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12121   (eval $ac_compile) 2>conftest.er1
12122   ac_status=$?
12123   grep -v '^ *+' conftest.er1 >conftest.err
12124   rm -f conftest.er1
12125   cat conftest.err >&5
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); } &&
12128          { ac_try='test -z "$ac_c_werror_flag"
12129                          || test ! -s conftest.err'
12130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131   (eval $ac_try) 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }; } &&
12135          { ac_try='test -s conftest.$ac_objext'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; }; then
12141   ac_header_compiler=yes
12142 else
12143   echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 ac_header_compiler=no
12147 fi
12148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12150 echo "${ECHO_T}$ac_header_compiler" >&6
12151
12152 # Is the header present?
12153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h.  */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h.  */
12161 #include <$ac_header>
12162 _ACEOF
12163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12164   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12165   ac_status=$?
12166   grep -v '^ *+' conftest.er1 >conftest.err
12167   rm -f conftest.er1
12168   cat conftest.err >&5
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); } >/dev/null; then
12171   if test -s conftest.err; then
12172     ac_cpp_err=$ac_c_preproc_warn_flag
12173     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12174   else
12175     ac_cpp_err=
12176   fi
12177 else
12178   ac_cpp_err=yes
12179 fi
12180 if test -z "$ac_cpp_err"; then
12181   ac_header_preproc=yes
12182 else
12183   echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186   ac_header_preproc=no
12187 fi
12188 rm -f conftest.err conftest.$ac_ext
12189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12190 echo "${ECHO_T}$ac_header_preproc" >&6
12191
12192 # So?  What about this header?
12193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12194   yes:no: )
12195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12199     ac_header_preproc=yes
12200     ;;
12201   no:yes:* )
12202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12214     (
12215       cat <<\_ASBOX
12216 ## ------------------------------------------ ##
12217 ## Report this to the AC_PACKAGE_NAME lists.  ##
12218 ## ------------------------------------------ ##
12219 _ASBOX
12220     ) |
12221       sed "s/^/$as_me: WARNING:     /" >&2
12222     ;;
12223 esac
12224 echo "$as_me:$LINENO: checking for $ac_header" >&5
12225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12227   echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229   eval "$as_ac_Header=\$ac_header_preproc"
12230 fi
12231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12233
12234 fi
12235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12236   cat >>confdefs.h <<_ACEOF
12237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12238 _ACEOF
12239
12240 fi
12241
12242 done
12243
12244
12245 for ac_header in unistd.h
12246 do
12247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12249   echo "$as_me:$LINENO: checking for $ac_header" >&5
12250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12252   echo $ECHO_N "(cached) $ECHO_C" >&6
12253 fi
12254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12256 else
12257   # Is the header compilable?
12258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h.  */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h.  */
12266 $ac_includes_default
12267 #include <$ac_header>
12268 _ACEOF
12269 rm -f conftest.$ac_objext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12271   (eval $ac_compile) 2>conftest.er1
12272   ac_status=$?
12273   grep -v '^ *+' conftest.er1 >conftest.err
12274   rm -f conftest.er1
12275   cat conftest.err >&5
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } &&
12278          { ac_try='test -z "$ac_c_werror_flag"
12279                          || test ! -s conftest.err'
12280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281   (eval $ac_try) 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); }; } &&
12285          { ac_try='test -s conftest.$ac_objext'
12286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287   (eval $ac_try) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; }; then
12291   ac_header_compiler=yes
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296 ac_header_compiler=no
12297 fi
12298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12300 echo "${ECHO_T}$ac_header_compiler" >&6
12301
12302 # Is the header present?
12303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h.  */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h.  */
12311 #include <$ac_header>
12312 _ACEOF
12313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12315   ac_status=$?
12316   grep -v '^ *+' conftest.er1 >conftest.err
12317   rm -f conftest.er1
12318   cat conftest.err >&5
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); } >/dev/null; then
12321   if test -s conftest.err; then
12322     ac_cpp_err=$ac_c_preproc_warn_flag
12323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12324   else
12325     ac_cpp_err=
12326   fi
12327 else
12328   ac_cpp_err=yes
12329 fi
12330 if test -z "$ac_cpp_err"; then
12331   ac_header_preproc=yes
12332 else
12333   echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336   ac_header_preproc=no
12337 fi
12338 rm -f conftest.err conftest.$ac_ext
12339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12340 echo "${ECHO_T}$ac_header_preproc" >&6
12341
12342 # So?  What about this header?
12343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12344   yes:no: )
12345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12349     ac_header_preproc=yes
12350     ;;
12351   no:yes:* )
12352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12354     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12355 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12356     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12358     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12359 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12362     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12364     (
12365       cat <<\_ASBOX
12366 ## ------------------------------------------ ##
12367 ## Report this to the AC_PACKAGE_NAME lists.  ##
12368 ## ------------------------------------------ ##
12369 _ASBOX
12370     ) |
12371       sed "s/^/$as_me: WARNING:     /" >&2
12372     ;;
12373 esac
12374 echo "$as_me:$LINENO: checking for $ac_header" >&5
12375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12377   echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379   eval "$as_ac_Header=\$ac_header_preproc"
12380 fi
12381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12383
12384 fi
12385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12386   cat >>confdefs.h <<_ACEOF
12387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12388 _ACEOF
12389
12390 fi
12391
12392 done
12393
12394
12395 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12396 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12397 # think that we don't have <curses.h> if we're using GCC.
12398 case $host_os in
12399   solaris2.[789])
12400     if test "$GCC" = yes; then
12401
12402 cat >>confdefs.h <<\_ACEOF
12403 #define _MSE_INT_H 1
12404 _ACEOF
12405
12406     fi ;;
12407 esac
12408
12409
12410
12411
12412 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12413 do
12414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12416   echo "$as_me:$LINENO: checking for $ac_header" >&5
12417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12419   echo $ECHO_N "(cached) $ECHO_C" >&6
12420 fi
12421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12423 else
12424   # Is the header compilable?
12425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12427 cat >conftest.$ac_ext <<_ACEOF
12428 /* confdefs.h.  */
12429 _ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h.  */
12433 $ac_includes_default
12434 #include <$ac_header>
12435 _ACEOF
12436 rm -f conftest.$ac_objext
12437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12438   (eval $ac_compile) 2>conftest.er1
12439   ac_status=$?
12440   grep -v '^ *+' conftest.er1 >conftest.err
12441   rm -f conftest.er1
12442   cat conftest.err >&5
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); } &&
12445          { ac_try='test -z "$ac_c_werror_flag"
12446                          || test ! -s conftest.err'
12447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448   (eval $ac_try) 2>&5
12449   ac_status=$?
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); }; } &&
12452          { ac_try='test -s conftest.$ac_objext'
12453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454   (eval $ac_try) 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; }; then
12458   ac_header_compiler=yes
12459 else
12460   echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12462
12463 ac_header_compiler=no
12464 fi
12465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12467 echo "${ECHO_T}$ac_header_compiler" >&6
12468
12469 # Is the header present?
12470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h.  */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h.  */
12478 #include <$ac_header>
12479 _ACEOF
12480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12482   ac_status=$?
12483   grep -v '^ *+' conftest.er1 >conftest.err
12484   rm -f conftest.er1
12485   cat conftest.err >&5
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); } >/dev/null; then
12488   if test -s conftest.err; then
12489     ac_cpp_err=$ac_c_preproc_warn_flag
12490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12491   else
12492     ac_cpp_err=
12493   fi
12494 else
12495   ac_cpp_err=yes
12496 fi
12497 if test -z "$ac_cpp_err"; then
12498   ac_header_preproc=yes
12499 else
12500   echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12502
12503   ac_header_preproc=no
12504 fi
12505 rm -f conftest.err conftest.$ac_ext
12506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12507 echo "${ECHO_T}$ac_header_preproc" >&6
12508
12509 # So?  What about this header?
12510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12511   yes:no: )
12512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12516     ac_header_preproc=yes
12517     ;;
12518   no:yes:* )
12519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12531     (
12532       cat <<\_ASBOX
12533 ## ------------------------------------------ ##
12534 ## Report this to the AC_PACKAGE_NAME lists.  ##
12535 ## ------------------------------------------ ##
12536 _ASBOX
12537     ) |
12538       sed "s/^/$as_me: WARNING:     /" >&2
12539     ;;
12540 esac
12541 echo "$as_me:$LINENO: checking for $ac_header" >&5
12542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12544   echo $ECHO_N "(cached) $ECHO_C" >&6
12545 else
12546   eval "$as_ac_Header=\$ac_header_preproc"
12547 fi
12548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12550
12551 fi
12552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12553   cat >>confdefs.h <<_ACEOF
12554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12555 _ACEOF
12556
12557 fi
12558
12559 done
12560
12561
12562 for ac_header in ncurses/term.h
12563 do
12564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12566   echo "$as_me:$LINENO: checking for $ac_header" >&5
12567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12569   echo $ECHO_N "(cached) $ECHO_C" >&6
12570 fi
12571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12573 else
12574   # Is the header compilable?
12575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583 $ac_includes_default
12584 #include <$ac_header>
12585 _ACEOF
12586 rm -f conftest.$ac_objext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588   (eval $ac_compile) 2>conftest.er1
12589   ac_status=$?
12590   grep -v '^ *+' conftest.er1 >conftest.err
12591   rm -f conftest.er1
12592   cat conftest.err >&5
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); } &&
12595          { ac_try='test -z "$ac_c_werror_flag"
12596                          || test ! -s conftest.err'
12597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598   (eval $ac_try) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; } &&
12602          { ac_try='test -s conftest.$ac_objext'
12603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604   (eval $ac_try) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; }; then
12608   ac_header_compiler=yes
12609 else
12610   echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613 ac_header_compiler=no
12614 fi
12615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12617 echo "${ECHO_T}$ac_header_compiler" >&6
12618
12619 # Is the header present?
12620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628 #include <$ac_header>
12629 _ACEOF
12630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12632   ac_status=$?
12633   grep -v '^ *+' conftest.er1 >conftest.err
12634   rm -f conftest.er1
12635   cat conftest.err >&5
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); } >/dev/null; then
12638   if test -s conftest.err; then
12639     ac_cpp_err=$ac_c_preproc_warn_flag
12640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12641   else
12642     ac_cpp_err=
12643   fi
12644 else
12645   ac_cpp_err=yes
12646 fi
12647 if test -z "$ac_cpp_err"; then
12648   ac_header_preproc=yes
12649 else
12650   echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12652
12653   ac_header_preproc=no
12654 fi
12655 rm -f conftest.err conftest.$ac_ext
12656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12657 echo "${ECHO_T}$ac_header_preproc" >&6
12658
12659 # So?  What about this header?
12660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12661   yes:no: )
12662     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12666     ac_header_preproc=yes
12667     ;;
12668   no:yes:* )
12669     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12671     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12672 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12673     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12675     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12676 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12679     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12681     (
12682       cat <<\_ASBOX
12683 ## ------------------------------------------ ##
12684 ## Report this to the AC_PACKAGE_NAME lists.  ##
12685 ## ------------------------------------------ ##
12686 _ASBOX
12687     ) |
12688       sed "s/^/$as_me: WARNING:     /" >&2
12689     ;;
12690 esac
12691 echo "$as_me:$LINENO: checking for $ac_header" >&5
12692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12694   echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696   eval "$as_ac_Header=\$ac_header_preproc"
12697 fi
12698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12700
12701 fi
12702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12703   cat >>confdefs.h <<_ACEOF
12704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12705 _ACEOF
12706
12707 fi
12708
12709 done
12710
12711
12712 for ac_header in term.h
12713 do
12714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12715 echo "$as_me:$LINENO: checking for $ac_header" >&5
12716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12718   echo $ECHO_N "(cached) $ECHO_C" >&6
12719 else
12720   cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h.  */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h.  */
12726 #if HAVE_CURSES_H
12727 # include <curses.h>
12728 #endif
12729
12730
12731 #include <$ac_header>
12732 _ACEOF
12733 rm -f conftest.$ac_objext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735   (eval $ac_compile) 2>conftest.er1
12736   ac_status=$?
12737   grep -v '^ *+' conftest.er1 >conftest.err
12738   rm -f conftest.er1
12739   cat conftest.err >&5
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); } &&
12742          { ac_try='test -z "$ac_c_werror_flag"
12743                          || test ! -s conftest.err'
12744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745   (eval $ac_try) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; } &&
12749          { ac_try='test -s conftest.$ac_objext'
12750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751   (eval $ac_try) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; }; then
12755   eval "$as_ac_Header=yes"
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 eval "$as_ac_Header=no"
12761 fi
12762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12763 fi
12764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12767   cat >>confdefs.h <<_ACEOF
12768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12769 _ACEOF
12770
12771 fi
12772
12773 done
12774
12775
12776 # FIXME: kettenis/20030102: In most cases we include these
12777 # unconditionally, so what's the point in checking these?
12778
12779
12780 for ac_header in ctype.h time.h
12781 do
12782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12784   echo "$as_me:$LINENO: checking for $ac_header" >&5
12785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12787   echo $ECHO_N "(cached) $ECHO_C" >&6
12788 fi
12789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12791 else
12792   # Is the header compilable?
12793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801 $ac_includes_default
12802 #include <$ac_header>
12803 _ACEOF
12804 rm -f conftest.$ac_objext
12805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12806   (eval $ac_compile) 2>conftest.er1
12807   ac_status=$?
12808   grep -v '^ *+' conftest.er1 >conftest.err
12809   rm -f conftest.er1
12810   cat conftest.err >&5
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); } &&
12813          { ac_try='test -z "$ac_c_werror_flag"
12814                          || test ! -s conftest.err'
12815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816   (eval $ac_try) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); }; } &&
12820          { ac_try='test -s conftest.$ac_objext'
12821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822   (eval $ac_try) 2>&5
12823   ac_status=$?
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); }; }; then
12826   ac_header_compiler=yes
12827 else
12828   echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12830
12831 ac_header_compiler=no
12832 fi
12833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12835 echo "${ECHO_T}$ac_header_compiler" >&6
12836
12837 # Is the header present?
12838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12840 cat >conftest.$ac_ext <<_ACEOF
12841 /* confdefs.h.  */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h.  */
12846 #include <$ac_header>
12847 _ACEOF
12848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12850   ac_status=$?
12851   grep -v '^ *+' conftest.er1 >conftest.err
12852   rm -f conftest.er1
12853   cat conftest.err >&5
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); } >/dev/null; then
12856   if test -s conftest.err; then
12857     ac_cpp_err=$ac_c_preproc_warn_flag
12858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12859   else
12860     ac_cpp_err=
12861   fi
12862 else
12863   ac_cpp_err=yes
12864 fi
12865 if test -z "$ac_cpp_err"; then
12866   ac_header_preproc=yes
12867 else
12868   echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871   ac_header_preproc=no
12872 fi
12873 rm -f conftest.err conftest.$ac_ext
12874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12875 echo "${ECHO_T}$ac_header_preproc" >&6
12876
12877 # So?  What about this header?
12878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12879   yes:no: )
12880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12884     ac_header_preproc=yes
12885     ;;
12886   no:yes:* )
12887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12899     (
12900       cat <<\_ASBOX
12901 ## ------------------------------------------ ##
12902 ## Report this to the AC_PACKAGE_NAME lists.  ##
12903 ## ------------------------------------------ ##
12904 _ASBOX
12905     ) |
12906       sed "s/^/$as_me: WARNING:     /" >&2
12907     ;;
12908 esac
12909 echo "$as_me:$LINENO: checking for $ac_header" >&5
12910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12912   echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914   eval "$as_ac_Header=\$ac_header_preproc"
12915 fi
12916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12918
12919 fi
12920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12921   cat >>confdefs.h <<_ACEOF
12922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12923 _ACEOF
12924
12925 fi
12926
12927 done
12928
12929
12930 # ------------------------- #
12931 # Checks for declarations.  #
12932 # ------------------------- #
12933
12934 echo "$as_me:$LINENO: checking whether free is declared" >&5
12935 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12936 if test "${ac_cv_have_decl_free+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h.  */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h.  */
12945 $ac_includes_default
12946 int
12947 main ()
12948 {
12949 #ifndef free
12950   char *p = (char *) free;
12951 #endif
12952
12953   ;
12954   return 0;
12955 }
12956 _ACEOF
12957 rm -f conftest.$ac_objext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959   (eval $ac_compile) 2>conftest.er1
12960   ac_status=$?
12961   grep -v '^ *+' conftest.er1 >conftest.err
12962   rm -f conftest.er1
12963   cat conftest.err >&5
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); } &&
12966          { ac_try='test -z "$ac_c_werror_flag"
12967                          || test ! -s conftest.err'
12968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969   (eval $ac_try) 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); }; } &&
12973          { ac_try='test -s conftest.$ac_objext'
12974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975   (eval $ac_try) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); }; }; then
12979   ac_cv_have_decl_free=yes
12980 else
12981   echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12983
12984 ac_cv_have_decl_free=no
12985 fi
12986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12987 fi
12988 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12989 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12990 if test $ac_cv_have_decl_free = yes; then
12991
12992 cat >>confdefs.h <<_ACEOF
12993 #define HAVE_DECL_FREE 1
12994 _ACEOF
12995
12996
12997 else
12998   cat >>confdefs.h <<_ACEOF
12999 #define HAVE_DECL_FREE 0
13000 _ACEOF
13001
13002
13003 fi
13004 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13005 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13006 if test "${ac_cv_have_decl_malloc+set}" = set; then
13007   echo $ECHO_N "(cached) $ECHO_C" >&6
13008 else
13009   cat >conftest.$ac_ext <<_ACEOF
13010 /* confdefs.h.  */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h.  */
13015 $ac_includes_default
13016 int
13017 main ()
13018 {
13019 #ifndef malloc
13020   char *p = (char *) malloc;
13021 #endif
13022
13023   ;
13024   return 0;
13025 }
13026 _ACEOF
13027 rm -f conftest.$ac_objext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13029   (eval $ac_compile) 2>conftest.er1
13030   ac_status=$?
13031   grep -v '^ *+' conftest.er1 >conftest.err
13032   rm -f conftest.er1
13033   cat conftest.err >&5
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); } &&
13036          { ac_try='test -z "$ac_c_werror_flag"
13037                          || test ! -s conftest.err'
13038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039   (eval $ac_try) 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); }; } &&
13043          { ac_try='test -s conftest.$ac_objext'
13044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045   (eval $ac_try) 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); }; }; then
13049   ac_cv_have_decl_malloc=yes
13050 else
13051   echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054 ac_cv_have_decl_malloc=no
13055 fi
13056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13057 fi
13058 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13059 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13060 if test $ac_cv_have_decl_malloc = yes; then
13061
13062 cat >>confdefs.h <<_ACEOF
13063 #define HAVE_DECL_MALLOC 1
13064 _ACEOF
13065
13066
13067 else
13068   cat >>confdefs.h <<_ACEOF
13069 #define HAVE_DECL_MALLOC 0
13070 _ACEOF
13071
13072
13073 fi
13074 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13075 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13076 if test "${ac_cv_have_decl_realloc+set}" = set; then
13077   echo $ECHO_N "(cached) $ECHO_C" >&6
13078 else
13079   cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h.  */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h.  */
13085 $ac_includes_default
13086 int
13087 main ()
13088 {
13089 #ifndef realloc
13090   char *p = (char *) realloc;
13091 #endif
13092
13093   ;
13094   return 0;
13095 }
13096 _ACEOF
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099   (eval $ac_compile) 2>conftest.er1
13100   ac_status=$?
13101   grep -v '^ *+' conftest.er1 >conftest.err
13102   rm -f conftest.er1
13103   cat conftest.err >&5
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); } &&
13106          { ac_try='test -z "$ac_c_werror_flag"
13107                          || test ! -s conftest.err'
13108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109   (eval $ac_try) 2>&5
13110   ac_status=$?
13111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); }; } &&
13113          { ac_try='test -s conftest.$ac_objext'
13114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115   (eval $ac_try) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; }; then
13119   ac_cv_have_decl_realloc=yes
13120 else
13121   echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124 ac_cv_have_decl_realloc=no
13125 fi
13126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13127 fi
13128 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13129 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13130 if test $ac_cv_have_decl_realloc = yes; then
13131
13132 cat >>confdefs.h <<_ACEOF
13133 #define HAVE_DECL_REALLOC 1
13134 _ACEOF
13135
13136
13137 else
13138   cat >>confdefs.h <<_ACEOF
13139 #define HAVE_DECL_REALLOC 0
13140 _ACEOF
13141
13142
13143 fi
13144
13145
13146 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13147 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13148 if test "${ac_cv_have_decl_strerror+set}" = set; then
13149   echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151   cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h.  */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h.  */
13157 $ac_includes_default
13158 int
13159 main ()
13160 {
13161 #ifndef strerror
13162   char *p = (char *) strerror;
13163 #endif
13164
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 rm -f conftest.$ac_objext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13171   (eval $ac_compile) 2>conftest.er1
13172   ac_status=$?
13173   grep -v '^ *+' conftest.er1 >conftest.err
13174   rm -f conftest.er1
13175   cat conftest.err >&5
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); } &&
13178          { ac_try='test -z "$ac_c_werror_flag"
13179                          || test ! -s conftest.err'
13180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181   (eval $ac_try) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; } &&
13185          { ac_try='test -s conftest.$ac_objext'
13186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187   (eval $ac_try) 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; }; then
13191   ac_cv_have_decl_strerror=yes
13192 else
13193   echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196 ac_cv_have_decl_strerror=no
13197 fi
13198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13199 fi
13200 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13201 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13202 if test $ac_cv_have_decl_strerror = yes; then
13203
13204 cat >>confdefs.h <<_ACEOF
13205 #define HAVE_DECL_STRERROR 1
13206 _ACEOF
13207
13208
13209 else
13210   cat >>confdefs.h <<_ACEOF
13211 #define HAVE_DECL_STRERROR 0
13212 _ACEOF
13213
13214
13215 fi
13216 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13217 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13218 if test "${ac_cv_have_decl_strstr+set}" = set; then
13219   echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221   cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h.  */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h.  */
13227 $ac_includes_default
13228 int
13229 main ()
13230 {
13231 #ifndef strstr
13232   char *p = (char *) strstr;
13233 #endif
13234
13235   ;
13236   return 0;
13237 }
13238 _ACEOF
13239 rm -f conftest.$ac_objext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13241   (eval $ac_compile) 2>conftest.er1
13242   ac_status=$?
13243   grep -v '^ *+' conftest.er1 >conftest.err
13244   rm -f conftest.er1
13245   cat conftest.err >&5
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } &&
13248          { ac_try='test -z "$ac_c_werror_flag"
13249                          || test ! -s conftest.err'
13250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251   (eval $ac_try) 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; } &&
13255          { ac_try='test -s conftest.$ac_objext'
13256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257   (eval $ac_try) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); }; }; then
13261   ac_cv_have_decl_strstr=yes
13262 else
13263   echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266 ac_cv_have_decl_strstr=no
13267 fi
13268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13269 fi
13270 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13271 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13272 if test $ac_cv_have_decl_strstr = yes; then
13273
13274 cat >>confdefs.h <<_ACEOF
13275 #define HAVE_DECL_STRSTR 1
13276 _ACEOF
13277
13278
13279 else
13280   cat >>confdefs.h <<_ACEOF
13281 #define HAVE_DECL_STRSTR 0
13282 _ACEOF
13283
13284
13285 fi
13286
13287
13288 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13289 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13290 if test "${ac_cv_have_decl_getopt+set}" = set; then
13291   echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293   cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h.  */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h.  */
13299 $ac_includes_default
13300 int
13301 main ()
13302 {
13303 #ifndef getopt
13304   char *p = (char *) getopt;
13305 #endif
13306
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 rm -f conftest.$ac_objext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313   (eval $ac_compile) 2>conftest.er1
13314   ac_status=$?
13315   grep -v '^ *+' conftest.er1 >conftest.err
13316   rm -f conftest.er1
13317   cat conftest.err >&5
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); } &&
13320          { ac_try='test -z "$ac_c_werror_flag"
13321                          || test ! -s conftest.err'
13322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323   (eval $ac_try) 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; } &&
13327          { ac_try='test -s conftest.$ac_objext'
13328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329   (eval $ac_try) 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); }; }; then
13333   ac_cv_have_decl_getopt=yes
13334 else
13335   echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13337
13338 ac_cv_have_decl_getopt=no
13339 fi
13340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13341 fi
13342 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13343 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13344 if test $ac_cv_have_decl_getopt = yes; then
13345
13346 cat >>confdefs.h <<_ACEOF
13347 #define HAVE_DECL_GETOPT 1
13348 _ACEOF
13349
13350
13351 else
13352   cat >>confdefs.h <<_ACEOF
13353 #define HAVE_DECL_GETOPT 0
13354 _ACEOF
13355
13356
13357 fi
13358 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13359 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13360 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h.  */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h.  */
13369 $ac_includes_default
13370 int
13371 main ()
13372 {
13373 #ifndef snprintf
13374   char *p = (char *) snprintf;
13375 #endif
13376
13377   ;
13378   return 0;
13379 }
13380 _ACEOF
13381 rm -f conftest.$ac_objext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13383   (eval $ac_compile) 2>conftest.er1
13384   ac_status=$?
13385   grep -v '^ *+' conftest.er1 >conftest.err
13386   rm -f conftest.er1
13387   cat conftest.err >&5
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); } &&
13390          { ac_try='test -z "$ac_c_werror_flag"
13391                          || test ! -s conftest.err'
13392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393   (eval $ac_try) 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; } &&
13397          { ac_try='test -s conftest.$ac_objext'
13398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399   (eval $ac_try) 2>&5
13400   ac_status=$?
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); }; }; then
13403   ac_cv_have_decl_snprintf=yes
13404 else
13405   echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13407
13408 ac_cv_have_decl_snprintf=no
13409 fi
13410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13411 fi
13412 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13413 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13414 if test $ac_cv_have_decl_snprintf = yes; then
13415
13416 cat >>confdefs.h <<_ACEOF
13417 #define HAVE_DECL_SNPRINTF 1
13418 _ACEOF
13419
13420
13421 else
13422   cat >>confdefs.h <<_ACEOF
13423 #define HAVE_DECL_SNPRINTF 0
13424 _ACEOF
13425
13426
13427 fi
13428 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13429 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13430 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13431   echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433   cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h.  */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h.  */
13439 $ac_includes_default
13440 int
13441 main ()
13442 {
13443 #ifndef vsnprintf
13444   char *p = (char *) vsnprintf;
13445 #endif
13446
13447   ;
13448   return 0;
13449 }
13450 _ACEOF
13451 rm -f conftest.$ac_objext
13452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13453   (eval $ac_compile) 2>conftest.er1
13454   ac_status=$?
13455   grep -v '^ *+' conftest.er1 >conftest.err
13456   rm -f conftest.er1
13457   cat conftest.err >&5
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); } &&
13460          { ac_try='test -z "$ac_c_werror_flag"
13461                          || test ! -s conftest.err'
13462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463   (eval $ac_try) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); }; } &&
13467          { ac_try='test -s conftest.$ac_objext'
13468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469   (eval $ac_try) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; }; then
13473   ac_cv_have_decl_vsnprintf=yes
13474 else
13475   echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478 ac_cv_have_decl_vsnprintf=no
13479 fi
13480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13481 fi
13482 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13483 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13484 if test $ac_cv_have_decl_vsnprintf = yes; then
13485
13486 cat >>confdefs.h <<_ACEOF
13487 #define HAVE_DECL_VSNPRINTF 1
13488 _ACEOF
13489
13490
13491 else
13492   cat >>confdefs.h <<_ACEOF
13493 #define HAVE_DECL_VSNPRINTF 0
13494 _ACEOF
13495
13496
13497 fi
13498
13499
13500
13501 # ----------------------- #
13502 # Checks for structures.  #
13503 # ----------------------- #
13504
13505 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13506 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13507 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13508   echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510   cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h.  */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h.  */
13516 $ac_includes_default
13517 int
13518 main ()
13519 {
13520 static struct stat ac_aggr;
13521 if (ac_aggr.st_blocks)
13522 return 0;
13523   ;
13524   return 0;
13525 }
13526 _ACEOF
13527 rm -f conftest.$ac_objext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529   (eval $ac_compile) 2>conftest.er1
13530   ac_status=$?
13531   grep -v '^ *+' conftest.er1 >conftest.err
13532   rm -f conftest.er1
13533   cat conftest.err >&5
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); } &&
13536          { ac_try='test -z "$ac_c_werror_flag"
13537                          || test ! -s conftest.err'
13538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539   (eval $ac_try) 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); }; } &&
13543          { ac_try='test -s conftest.$ac_objext'
13544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545   (eval $ac_try) 2>&5
13546   ac_status=$?
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); }; }; then
13549   ac_cv_member_struct_stat_st_blocks=yes
13550 else
13551   echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13553
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560 $ac_includes_default
13561 int
13562 main ()
13563 {
13564 static struct stat ac_aggr;
13565 if (sizeof ac_aggr.st_blocks)
13566 return 0;
13567   ;
13568   return 0;
13569 }
13570 _ACEOF
13571 rm -f conftest.$ac_objext
13572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13573   (eval $ac_compile) 2>conftest.er1
13574   ac_status=$?
13575   grep -v '^ *+' conftest.er1 >conftest.err
13576   rm -f conftest.er1
13577   cat conftest.err >&5
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } &&
13580          { ac_try='test -z "$ac_c_werror_flag"
13581                          || test ! -s conftest.err'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; } &&
13587          { ac_try='test -s conftest.$ac_objext'
13588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589   (eval $ac_try) 2>&5
13590   ac_status=$?
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); }; }; then
13593   ac_cv_member_struct_stat_st_blocks=yes
13594 else
13595   echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13597
13598 ac_cv_member_struct_stat_st_blocks=no
13599 fi
13600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13601 fi
13602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13603 fi
13604 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13605 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13606 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13607
13608 cat >>confdefs.h <<_ACEOF
13609 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13610 _ACEOF
13611
13612
13613 fi
13614
13615 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13616 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13617 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13618   echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620   cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h.  */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h.  */
13626 $ac_includes_default
13627 int
13628 main ()
13629 {
13630 static struct stat ac_aggr;
13631 if (ac_aggr.st_blksize)
13632 return 0;
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13639   (eval $ac_compile) 2>conftest.er1
13640   ac_status=$?
13641   grep -v '^ *+' conftest.er1 >conftest.err
13642   rm -f conftest.er1
13643   cat conftest.err >&5
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); } &&
13646          { ac_try='test -z "$ac_c_werror_flag"
13647                          || test ! -s conftest.err'
13648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649   (eval $ac_try) 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); }; } &&
13653          { ac_try='test -s conftest.$ac_objext'
13654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655   (eval $ac_try) 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); }; }; then
13659   ac_cv_member_struct_stat_st_blksize=yes
13660 else
13661   echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13663
13664 cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h.  */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h.  */
13670 $ac_includes_default
13671 int
13672 main ()
13673 {
13674 static struct stat ac_aggr;
13675 if (sizeof ac_aggr.st_blksize)
13676 return 0;
13677   ;
13678   return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest.$ac_objext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683   (eval $ac_compile) 2>conftest.er1
13684   ac_status=$?
13685   grep -v '^ *+' conftest.er1 >conftest.err
13686   rm -f conftest.er1
13687   cat conftest.err >&5
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } &&
13690          { ac_try='test -z "$ac_c_werror_flag"
13691                          || test ! -s conftest.err'
13692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693   (eval $ac_try) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }; } &&
13697          { ac_try='test -s conftest.$ac_objext'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; }; then
13703   ac_cv_member_struct_stat_st_blksize=yes
13704 else
13705   echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 ac_cv_member_struct_stat_st_blksize=no
13709 fi
13710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 fi
13712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13713 fi
13714 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13715 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13716 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13717
13718 cat >>confdefs.h <<_ACEOF
13719 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13720 _ACEOF
13721
13722
13723 fi
13724
13725
13726 # ------------------ #
13727 # Checks for types.  #
13728 # ------------------ #
13729
13730 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13731 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13732 if test "${ac_cv_type_signal+set}" = set; then
13733   echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735   cat >conftest.$ac_ext <<_ACEOF
13736 /* confdefs.h.  */
13737 _ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h.  */
13741 #include <sys/types.h>
13742 #include <signal.h>
13743 #ifdef signal
13744 # undef signal
13745 #endif
13746 #ifdef __cplusplus
13747 extern "C" void (*signal (int, void (*)(int)))(int);
13748 #else
13749 void (*signal ()) ();
13750 #endif
13751
13752 int
13753 main ()
13754 {
13755 int i;
13756   ;
13757   return 0;
13758 }
13759 _ACEOF
13760 rm -f conftest.$ac_objext
13761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13762   (eval $ac_compile) 2>conftest.er1
13763   ac_status=$?
13764   grep -v '^ *+' conftest.er1 >conftest.err
13765   rm -f conftest.er1
13766   cat conftest.err >&5
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); } &&
13769          { ac_try='test -z "$ac_c_werror_flag"
13770                          || test ! -s conftest.err'
13771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772   (eval $ac_try) 2>&5
13773   ac_status=$?
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); }; } &&
13776          { ac_try='test -s conftest.$ac_objext'
13777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778   (eval $ac_try) 2>&5
13779   ac_status=$?
13780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781   (exit $ac_status); }; }; then
13782   ac_cv_type_signal=void
13783 else
13784   echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13786
13787 ac_cv_type_signal=int
13788 fi
13789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13790 fi
13791 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13792 echo "${ECHO_T}$ac_cv_type_signal" >&6
13793
13794 cat >>confdefs.h <<_ACEOF
13795 #define RETSIGTYPE $ac_cv_type_signal
13796 _ACEOF
13797
13798
13799
13800 # ------------------------------------- #
13801 # Checks for compiler characteristics.  #
13802 # ------------------------------------- #
13803
13804 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13805 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13806 if test "${ac_cv_c_const+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809   cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815
13816 int
13817 main ()
13818 {
13819 /* FIXME: Include the comments suggested by Paul. */
13820 #ifndef __cplusplus
13821   /* Ultrix mips cc rejects this.  */
13822   typedef int charset[2];
13823   const charset x;
13824   /* SunOS 4.1.1 cc rejects this.  */
13825   char const *const *ccp;
13826   char **p;
13827   /* NEC SVR4.0.2 mips cc rejects this.  */
13828   struct point {int x, y;};
13829   static struct point const zero = {0,0};
13830   /* AIX XL C 1.02.0.0 rejects this.
13831      It does not let you subtract one const X* pointer from another in
13832      an arm of an if-expression whose if-part is not a constant
13833      expression */
13834   const char *g = "string";
13835   ccp = &g + (g ? g-g : 0);
13836   /* HPUX 7.0 cc rejects these. */
13837   ++ccp;
13838   p = (char**) ccp;
13839   ccp = (char const *const *) p;
13840   { /* SCO 3.2v4 cc rejects this.  */
13841     char *t;
13842     char const *s = 0 ? (char *) 0 : (char const *) 0;
13843
13844     *t++ = 0;
13845   }
13846   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13847     int x[] = {25, 17};
13848     const int *foo = &x[0];
13849     ++foo;
13850   }
13851   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13852     typedef const int *iptr;
13853     iptr p = 0;
13854     ++p;
13855   }
13856   { /* AIX XL C 1.02.0.0 rejects this saying
13857        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13858     struct s { int j; const int *ap[3]; };
13859     struct s *b; b->j = 5;
13860   }
13861   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13862     const int foo = 10;
13863   }
13864 #endif
13865
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 rm -f conftest.$ac_objext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872   (eval $ac_compile) 2>conftest.er1
13873   ac_status=$?
13874   grep -v '^ *+' conftest.er1 >conftest.err
13875   rm -f conftest.er1
13876   cat conftest.err >&5
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } &&
13879          { ac_try='test -z "$ac_c_werror_flag"
13880                          || test ! -s conftest.err'
13881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882   (eval $ac_try) 2>&5
13883   ac_status=$?
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); }; } &&
13886          { ac_try='test -s conftest.$ac_objext'
13887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888   (eval $ac_try) 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; }; then
13892   ac_cv_c_const=yes
13893 else
13894   echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897 ac_cv_c_const=no
13898 fi
13899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13900 fi
13901 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13902 echo "${ECHO_T}$ac_cv_c_const" >&6
13903 if test $ac_cv_c_const = no; then
13904
13905 cat >>confdefs.h <<\_ACEOF
13906 #define const
13907 _ACEOF
13908
13909 fi
13910
13911 echo "$as_me:$LINENO: checking for inline" >&5
13912 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13913 if test "${ac_cv_c_inline+set}" = set; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916   ac_cv_c_inline=no
13917 for ac_kw in inline __inline__ __inline; do
13918   cat >conftest.$ac_ext <<_ACEOF
13919 /* confdefs.h.  */
13920 _ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h.  */
13924 #ifndef __cplusplus
13925 typedef int foo_t;
13926 static $ac_kw foo_t static_foo () {return 0; }
13927 $ac_kw foo_t foo () {return 0; }
13928 #endif
13929
13930 _ACEOF
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933   (eval $ac_compile) 2>conftest.er1
13934   ac_status=$?
13935   grep -v '^ *+' conftest.er1 >conftest.err
13936   rm -f conftest.er1
13937   cat conftest.err >&5
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } &&
13940          { ac_try='test -z "$ac_c_werror_flag"
13941                          || test ! -s conftest.err'
13942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943   (eval $ac_try) 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; } &&
13947          { ac_try='test -s conftest.$ac_objext'
13948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949   (eval $ac_try) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; }; then
13953   ac_cv_c_inline=$ac_kw; break
13954 else
13955   echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958 fi
13959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13960 done
13961
13962 fi
13963 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13964 echo "${ECHO_T}$ac_cv_c_inline" >&6
13965
13966
13967 case $ac_cv_c_inline in
13968   inline | yes) ;;
13969   *)
13970     case $ac_cv_c_inline in
13971       no) ac_val=;;
13972       *) ac_val=$ac_cv_c_inline;;
13973     esac
13974     cat >>confdefs.h <<_ACEOF
13975 #ifndef __cplusplus
13976 #define inline $ac_val
13977 #endif
13978 _ACEOF
13979     ;;
13980 esac
13981
13982
13983 # ------------------------------ #
13984 # Checks for library functions.  #
13985 # ------------------------------ #
13986
13987 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13988 # for constant arguments.  Useless!
13989 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13990 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13991 if test "${ac_cv_working_alloca_h+set}" = set; then
13992   echo $ECHO_N "(cached) $ECHO_C" >&6
13993 else
13994   cat >conftest.$ac_ext <<_ACEOF
13995 /* confdefs.h.  */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h.  */
14000 #include <alloca.h>
14001 int
14002 main ()
14003 {
14004 char *p = (char *) alloca (2 * sizeof (int));
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 rm -f conftest.$ac_objext conftest$ac_exeext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011   (eval $ac_link) 2>conftest.er1
14012   ac_status=$?
14013   grep -v '^ *+' conftest.er1 >conftest.err
14014   rm -f conftest.er1
14015   cat conftest.err >&5
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); } &&
14018          { ac_try='test -z "$ac_c_werror_flag"
14019                          || test ! -s conftest.err'
14020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021   (eval $ac_try) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; } &&
14025          { ac_try='test -s conftest$ac_exeext'
14026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027   (eval $ac_try) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; }; then
14031   ac_cv_working_alloca_h=yes
14032 else
14033   echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036 ac_cv_working_alloca_h=no
14037 fi
14038 rm -f conftest.err conftest.$ac_objext \
14039       conftest$ac_exeext conftest.$ac_ext
14040 fi
14041 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14042 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14043 if test $ac_cv_working_alloca_h = yes; then
14044
14045 cat >>confdefs.h <<\_ACEOF
14046 #define HAVE_ALLOCA_H 1
14047 _ACEOF
14048
14049 fi
14050
14051 echo "$as_me:$LINENO: checking for alloca" >&5
14052 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14053 if test "${ac_cv_func_alloca_works+set}" = set; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   cat >conftest.$ac_ext <<_ACEOF
14057 /* confdefs.h.  */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h.  */
14062 #ifdef __GNUC__
14063 # define alloca __builtin_alloca
14064 #else
14065 # ifdef _MSC_VER
14066 #  include <malloc.h>
14067 #  define alloca _alloca
14068 # else
14069 #  if HAVE_ALLOCA_H
14070 #   include <alloca.h>
14071 #  else
14072 #   ifdef _AIX
14073  #pragma alloca
14074 #   else
14075 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14076 char *alloca ();
14077 #    endif
14078 #   endif
14079 #  endif
14080 # endif
14081 #endif
14082
14083 int
14084 main ()
14085 {
14086 char *p = (char *) alloca (1);
14087   ;
14088   return 0;
14089 }
14090 _ACEOF
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093   (eval $ac_link) 2>conftest.er1
14094   ac_status=$?
14095   grep -v '^ *+' conftest.er1 >conftest.err
14096   rm -f conftest.er1
14097   cat conftest.err >&5
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); } &&
14100          { ac_try='test -z "$ac_c_werror_flag"
14101                          || test ! -s conftest.err'
14102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103   (eval $ac_try) 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; } &&
14107          { ac_try='test -s conftest$ac_exeext'
14108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109   (eval $ac_try) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; }; then
14113   ac_cv_func_alloca_works=yes
14114 else
14115   echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118 ac_cv_func_alloca_works=no
14119 fi
14120 rm -f conftest.err conftest.$ac_objext \
14121       conftest$ac_exeext conftest.$ac_ext
14122 fi
14123 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14124 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14125
14126 if test $ac_cv_func_alloca_works = yes; then
14127
14128 cat >>confdefs.h <<\_ACEOF
14129 #define HAVE_ALLOCA 1
14130 _ACEOF
14131
14132 else
14133   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14134 # that cause trouble.  Some versions do not even contain alloca or
14135 # contain a buggy version.  If you still want to use their alloca,
14136 # use ar to extract alloca.o from them instead of compiling alloca.c.
14137
14138 ALLOCA=alloca.$ac_objext
14139
14140 cat >>confdefs.h <<\_ACEOF
14141 #define C_ALLOCA 1
14142 _ACEOF
14143
14144
14145 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14146 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14147 if test "${ac_cv_os_cray+set}" = set; then
14148   echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150   cat >conftest.$ac_ext <<_ACEOF
14151 /* confdefs.h.  */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h.  */
14156 #if defined(CRAY) && ! defined(CRAY2)
14157 webecray
14158 #else
14159 wenotbecray
14160 #endif
14161
14162 _ACEOF
14163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14164   $EGREP "webecray" >/dev/null 2>&1; then
14165   ac_cv_os_cray=yes
14166 else
14167   ac_cv_os_cray=no
14168 fi
14169 rm -f conftest*
14170
14171 fi
14172 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14173 echo "${ECHO_T}$ac_cv_os_cray" >&6
14174 if test $ac_cv_os_cray = yes; then
14175   for ac_func in _getb67 GETB67 getb67; do
14176     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14177 echo "$as_me:$LINENO: checking for $ac_func" >&5
14178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14179 if eval "test \"\${$as_ac_var+set}\" = set"; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h.  */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h.  */
14188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14190 #define $ac_func innocuous_$ac_func
14191
14192 /* System header to define __stub macros and hopefully few prototypes,
14193     which can conflict with char $ac_func (); below.
14194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14195     <limits.h> exists even on freestanding compilers.  */
14196
14197 #ifdef __STDC__
14198 # include <limits.h>
14199 #else
14200 # include <assert.h>
14201 #endif
14202
14203 #undef $ac_func
14204
14205 /* Override any gcc2 internal prototype to avoid an error.  */
14206 #ifdef __cplusplus
14207 extern "C"
14208 {
14209 #endif
14210 /* We use char because int might match the return type of a gcc2
14211    builtin and then its argument prototype would still apply.  */
14212 char $ac_func ();
14213 /* The GNU C library defines this for functions which it implements
14214     to always fail with ENOSYS.  Some functions are actually named
14215     something starting with __ and the normal name is an alias.  */
14216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14217 choke me
14218 #else
14219 char (*f) () = $ac_func;
14220 #endif
14221 #ifdef __cplusplus
14222 }
14223 #endif
14224
14225 int
14226 main ()
14227 {
14228 return f != $ac_func;
14229   ;
14230   return 0;
14231 }
14232 _ACEOF
14233 rm -f conftest.$ac_objext conftest$ac_exeext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14235   (eval $ac_link) 2>conftest.er1
14236   ac_status=$?
14237   grep -v '^ *+' conftest.er1 >conftest.err
14238   rm -f conftest.er1
14239   cat conftest.err >&5
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); } &&
14242          { ac_try='test -z "$ac_c_werror_flag"
14243                          || test ! -s conftest.err'
14244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245   (eval $ac_try) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; } &&
14249          { ac_try='test -s conftest$ac_exeext'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; }; then
14255   eval "$as_ac_var=yes"
14256 else
14257   echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260 eval "$as_ac_var=no"
14261 fi
14262 rm -f conftest.err conftest.$ac_objext \
14263       conftest$ac_exeext conftest.$ac_ext
14264 fi
14265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14267 if test `eval echo '${'$as_ac_var'}'` = yes; then
14268
14269 cat >>confdefs.h <<_ACEOF
14270 #define CRAY_STACKSEG_END $ac_func
14271 _ACEOF
14272
14273     break
14274 fi
14275
14276   done
14277 fi
14278
14279 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14280 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14281 if test "${ac_cv_c_stack_direction+set}" = set; then
14282   echo $ECHO_N "(cached) $ECHO_C" >&6
14283 else
14284   if test "$cross_compiling" = yes; then
14285   ac_cv_c_stack_direction=0
14286 else
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 int
14294 find_stack_direction ()
14295 {
14296   static char *addr = 0;
14297   auto char dummy;
14298   if (addr == 0)
14299     {
14300       addr = &dummy;
14301       return find_stack_direction ();
14302     }
14303   else
14304     return (&dummy > addr) ? 1 : -1;
14305 }
14306
14307 int
14308 main ()
14309 {
14310   exit (find_stack_direction () < 0);
14311 }
14312 _ACEOF
14313 rm -f conftest$ac_exeext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14315   (eval $ac_link) 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_cv_c_stack_direction=1
14325 else
14326   echo "$as_me: program exited with status $ac_status" >&5
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 ( exit $ac_status )
14331 ac_cv_c_stack_direction=-1
14332 fi
14333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 fi
14336 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14337 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14338
14339 cat >>confdefs.h <<_ACEOF
14340 #define STACK_DIRECTION $ac_cv_c_stack_direction
14341 _ACEOF
14342
14343
14344 fi
14345
14346
14347
14348 for ac_header in stdlib.h unistd.h
14349 do
14350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14352   echo "$as_me:$LINENO: checking for $ac_header" >&5
14353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14355   echo $ECHO_N "(cached) $ECHO_C" >&6
14356 fi
14357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14359 else
14360   # Is the header compilable?
14361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369 $ac_includes_default
14370 #include <$ac_header>
14371 _ACEOF
14372 rm -f conftest.$ac_objext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374   (eval $ac_compile) 2>conftest.er1
14375   ac_status=$?
14376   grep -v '^ *+' conftest.er1 >conftest.err
14377   rm -f conftest.er1
14378   cat conftest.err >&5
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); } &&
14381          { ac_try='test -z "$ac_c_werror_flag"
14382                          || test ! -s conftest.err'
14383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384   (eval $ac_try) 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); }; } &&
14388          { ac_try='test -s conftest.$ac_objext'
14389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390   (eval $ac_try) 2>&5
14391   ac_status=$?
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); }; }; then
14394   ac_header_compiler=yes
14395 else
14396   echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14398
14399 ac_header_compiler=no
14400 fi
14401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14403 echo "${ECHO_T}$ac_header_compiler" >&6
14404
14405 # Is the header present?
14406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h.  */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h.  */
14414 #include <$ac_header>
14415 _ACEOF
14416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14418   ac_status=$?
14419   grep -v '^ *+' conftest.er1 >conftest.err
14420   rm -f conftest.er1
14421   cat conftest.err >&5
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); } >/dev/null; then
14424   if test -s conftest.err; then
14425     ac_cpp_err=$ac_c_preproc_warn_flag
14426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14427   else
14428     ac_cpp_err=
14429   fi
14430 else
14431   ac_cpp_err=yes
14432 fi
14433 if test -z "$ac_cpp_err"; then
14434   ac_header_preproc=yes
14435 else
14436   echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439   ac_header_preproc=no
14440 fi
14441 rm -f conftest.err conftest.$ac_ext
14442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14443 echo "${ECHO_T}$ac_header_preproc" >&6
14444
14445 # So?  What about this header?
14446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14447   yes:no: )
14448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14452     ac_header_preproc=yes
14453     ;;
14454   no:yes:* )
14455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14467     (
14468       cat <<\_ASBOX
14469 ## ------------------------------------------ ##
14470 ## Report this to the AC_PACKAGE_NAME lists.  ##
14471 ## ------------------------------------------ ##
14472 _ASBOX
14473     ) |
14474       sed "s/^/$as_me: WARNING:     /" >&2
14475     ;;
14476 esac
14477 echo "$as_me:$LINENO: checking for $ac_header" >&5
14478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14480   echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14482   eval "$as_ac_Header=\$ac_header_preproc"
14483 fi
14484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14486
14487 fi
14488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14489   cat >>confdefs.h <<_ACEOF
14490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14491 _ACEOF
14492
14493 fi
14494
14495 done
14496
14497
14498 for ac_func in getpagesize
14499 do
14500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14501 echo "$as_me:$LINENO: checking for $ac_func" >&5
14502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14503 if eval "test \"\${$as_ac_var+set}\" = set"; then
14504   echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506   cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h.  */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h.  */
14512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14514 #define $ac_func innocuous_$ac_func
14515
14516 /* System header to define __stub macros and hopefully few prototypes,
14517     which can conflict with char $ac_func (); below.
14518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14519     <limits.h> exists even on freestanding compilers.  */
14520
14521 #ifdef __STDC__
14522 # include <limits.h>
14523 #else
14524 # include <assert.h>
14525 #endif
14526
14527 #undef $ac_func
14528
14529 /* Override any gcc2 internal prototype to avoid an error.  */
14530 #ifdef __cplusplus
14531 extern "C"
14532 {
14533 #endif
14534 /* We use char because int might match the return type of a gcc2
14535    builtin and then its argument prototype would still apply.  */
14536 char $ac_func ();
14537 /* The GNU C library defines this for functions which it implements
14538     to always fail with ENOSYS.  Some functions are actually named
14539     something starting with __ and the normal name is an alias.  */
14540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14541 choke me
14542 #else
14543 char (*f) () = $ac_func;
14544 #endif
14545 #ifdef __cplusplus
14546 }
14547 #endif
14548
14549 int
14550 main ()
14551 {
14552 return f != $ac_func;
14553   ;
14554   return 0;
14555 }
14556 _ACEOF
14557 rm -f conftest.$ac_objext conftest$ac_exeext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14559   (eval $ac_link) 2>conftest.er1
14560   ac_status=$?
14561   grep -v '^ *+' conftest.er1 >conftest.err
14562   rm -f conftest.er1
14563   cat conftest.err >&5
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); } &&
14566          { ac_try='test -z "$ac_c_werror_flag"
14567                          || test ! -s conftest.err'
14568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569   (eval $ac_try) 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; } &&
14573          { ac_try='test -s conftest$ac_exeext'
14574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575   (eval $ac_try) 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); }; }; then
14579   eval "$as_ac_var=yes"
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 eval "$as_ac_var=no"
14585 fi
14586 rm -f conftest.err conftest.$ac_objext \
14587       conftest$ac_exeext conftest.$ac_ext
14588 fi
14589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14591 if test `eval echo '${'$as_ac_var'}'` = yes; then
14592   cat >>confdefs.h <<_ACEOF
14593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14594 _ACEOF
14595
14596 fi
14597 done
14598
14599 echo "$as_me:$LINENO: checking for working mmap" >&5
14600 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14601 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14602   echo $ECHO_N "(cached) $ECHO_C" >&6
14603 else
14604   if test "$cross_compiling" = yes; then
14605   ac_cv_func_mmap_fixed_mapped=no
14606 else
14607   cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h.  */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h.  */
14613 $ac_includes_default
14614 /* malloc might have been renamed as rpl_malloc. */
14615 #undef malloc
14616
14617 /* Thanks to Mike Haertel and Jim Avera for this test.
14618    Here is a matrix of mmap possibilities:
14619         mmap private not fixed
14620         mmap private fixed at somewhere currently unmapped
14621         mmap private fixed at somewhere already mapped
14622         mmap shared not fixed
14623         mmap shared fixed at somewhere currently unmapped
14624         mmap shared fixed at somewhere already mapped
14625    For private mappings, we should verify that changes cannot be read()
14626    back from the file, nor mmap's back from the file at a different
14627    address.  (There have been systems where private was not correctly
14628    implemented like the infamous i386 svr4.0, and systems where the
14629    VM page cache was not coherent with the file system buffer cache
14630    like early versions of FreeBSD and possibly contemporary NetBSD.)
14631    For shared mappings, we should conversely verify that changes get
14632    propagated back to all the places they're supposed to be.
14633
14634    Grep wants private fixed already mapped.
14635    The main things grep needs to know about mmap are:
14636    * does it exist and is it safe to write into the mmap'd area
14637    * how to use it (BSD variants)  */
14638
14639 #include <fcntl.h>
14640 #include <sys/mman.h>
14641
14642 #if !STDC_HEADERS && !HAVE_STDLIB_H
14643 char *malloc ();
14644 #endif
14645
14646 /* This mess was copied from the GNU getpagesize.h.  */
14647 #if !HAVE_GETPAGESIZE
14648 /* Assume that all systems that can run configure have sys/param.h.  */
14649 # if !HAVE_SYS_PARAM_H
14650 #  define HAVE_SYS_PARAM_H 1
14651 # endif
14652
14653 # ifdef _SC_PAGESIZE
14654 #  define getpagesize() sysconf(_SC_PAGESIZE)
14655 # else /* no _SC_PAGESIZE */
14656 #  if HAVE_SYS_PARAM_H
14657 #   include <sys/param.h>
14658 #   ifdef EXEC_PAGESIZE
14659 #    define getpagesize() EXEC_PAGESIZE
14660 #   else /* no EXEC_PAGESIZE */
14661 #    ifdef NBPG
14662 #     define getpagesize() NBPG * CLSIZE
14663 #     ifndef CLSIZE
14664 #      define CLSIZE 1
14665 #     endif /* no CLSIZE */
14666 #    else /* no NBPG */
14667 #     ifdef NBPC
14668 #      define getpagesize() NBPC
14669 #     else /* no NBPC */
14670 #      ifdef PAGESIZE
14671 #       define getpagesize() PAGESIZE
14672 #      endif /* PAGESIZE */
14673 #     endif /* no NBPC */
14674 #    endif /* no NBPG */
14675 #   endif /* no EXEC_PAGESIZE */
14676 #  else /* no HAVE_SYS_PARAM_H */
14677 #   define getpagesize() 8192   /* punt totally */
14678 #  endif /* no HAVE_SYS_PARAM_H */
14679 # endif /* no _SC_PAGESIZE */
14680
14681 #endif /* no HAVE_GETPAGESIZE */
14682
14683 int
14684 main ()
14685 {
14686   char *data, *data2, *data3;
14687   int i, pagesize;
14688   int fd;
14689
14690   pagesize = getpagesize ();
14691
14692   /* First, make a file with some known garbage in it. */
14693   data = (char *) malloc (pagesize);
14694   if (!data)
14695     exit (1);
14696   for (i = 0; i < pagesize; ++i)
14697     *(data + i) = rand ();
14698   umask (0);
14699   fd = creat ("conftest.mmap", 0600);
14700   if (fd < 0)
14701     exit (1);
14702   if (write (fd, data, pagesize) != pagesize)
14703     exit (1);
14704   close (fd);
14705
14706   /* Next, try to mmap the file at a fixed address which already has
14707      something else allocated at it.  If we can, also make sure that
14708      we see the same garbage.  */
14709   fd = open ("conftest.mmap", O_RDWR);
14710   if (fd < 0)
14711     exit (1);
14712   data2 = (char *) malloc (2 * pagesize);
14713   if (!data2)
14714     exit (1);
14715   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14716   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14717                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14718     exit (1);
14719   for (i = 0; i < pagesize; ++i)
14720     if (*(data + i) != *(data2 + i))
14721       exit (1);
14722
14723   /* Finally, make sure that changes to the mapped area do not
14724      percolate back to the file as seen by read().  (This is a bug on
14725      some variants of i386 svr4.0.)  */
14726   for (i = 0; i < pagesize; ++i)
14727     *(data2 + i) = *(data2 + i) + 1;
14728   data3 = (char *) malloc (pagesize);
14729   if (!data3)
14730     exit (1);
14731   if (read (fd, data3, pagesize) != pagesize)
14732     exit (1);
14733   for (i = 0; i < pagesize; ++i)
14734     if (*(data + i) != *(data3 + i))
14735       exit (1);
14736   close (fd);
14737   exit (0);
14738 }
14739 _ACEOF
14740 rm -f conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742   (eval $ac_link) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747   (eval $ac_try) 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); }; }; then
14751   ac_cv_func_mmap_fixed_mapped=yes
14752 else
14753   echo "$as_me: program exited with status $ac_status" >&5
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 ( exit $ac_status )
14758 ac_cv_func_mmap_fixed_mapped=no
14759 fi
14760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14761 fi
14762 fi
14763 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14764 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14765 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14766
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_MMAP 1
14769 _ACEOF
14770
14771 fi
14772 rm -f conftest.mmap
14773
14774 echo "$as_me:$LINENO: checking for pid_t" >&5
14775 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14776 if test "${ac_cv_type_pid_t+set}" = set; then
14777   echo $ECHO_N "(cached) $ECHO_C" >&6
14778 else
14779   cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h.  */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h.  */
14785 $ac_includes_default
14786 int
14787 main ()
14788 {
14789 if ((pid_t *) 0)
14790   return 0;
14791 if (sizeof (pid_t))
14792   return 0;
14793   ;
14794   return 0;
14795 }
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799   (eval $ac_compile) 2>conftest.er1
14800   ac_status=$?
14801   grep -v '^ *+' conftest.er1 >conftest.err
14802   rm -f conftest.er1
14803   cat conftest.err >&5
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); } &&
14806          { ac_try='test -z "$ac_c_werror_flag"
14807                          || test ! -s conftest.err'
14808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809   (eval $ac_try) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); }; } &&
14813          { ac_try='test -s conftest.$ac_objext'
14814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815   (eval $ac_try) 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); }; }; then
14819   ac_cv_type_pid_t=yes
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824 ac_cv_type_pid_t=no
14825 fi
14826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14827 fi
14828 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14829 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14830 if test $ac_cv_type_pid_t = yes; then
14831   :
14832 else
14833
14834 cat >>confdefs.h <<_ACEOF
14835 #define pid_t int
14836 _ACEOF
14837
14838 fi
14839
14840
14841
14842 for ac_header in unistd.h vfork.h
14843 do
14844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14846   echo "$as_me:$LINENO: checking for $ac_header" >&5
14847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14849   echo $ECHO_N "(cached) $ECHO_C" >&6
14850 fi
14851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14853 else
14854   # Is the header compilable?
14855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863 $ac_includes_default
14864 #include <$ac_header>
14865 _ACEOF
14866 rm -f conftest.$ac_objext
14867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14868   (eval $ac_compile) 2>conftest.er1
14869   ac_status=$?
14870   grep -v '^ *+' conftest.er1 >conftest.err
14871   rm -f conftest.er1
14872   cat conftest.err >&5
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); } &&
14875          { ac_try='test -z "$ac_c_werror_flag"
14876                          || test ! -s conftest.err'
14877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878   (eval $ac_try) 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); }; } &&
14882          { ac_try='test -s conftest.$ac_objext'
14883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884   (eval $ac_try) 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; }; then
14888   ac_header_compiler=yes
14889 else
14890   echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 ac_header_compiler=no
14894 fi
14895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14897 echo "${ECHO_T}$ac_header_compiler" >&6
14898
14899 # Is the header present?
14900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14902 cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h.  */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h.  */
14908 #include <$ac_header>
14909 _ACEOF
14910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14912   ac_status=$?
14913   grep -v '^ *+' conftest.er1 >conftest.err
14914   rm -f conftest.er1
14915   cat conftest.err >&5
14916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917   (exit $ac_status); } >/dev/null; then
14918   if test -s conftest.err; then
14919     ac_cpp_err=$ac_c_preproc_warn_flag
14920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14921   else
14922     ac_cpp_err=
14923   fi
14924 else
14925   ac_cpp_err=yes
14926 fi
14927 if test -z "$ac_cpp_err"; then
14928   ac_header_preproc=yes
14929 else
14930   echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14932
14933   ac_header_preproc=no
14934 fi
14935 rm -f conftest.err conftest.$ac_ext
14936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14937 echo "${ECHO_T}$ac_header_preproc" >&6
14938
14939 # So?  What about this header?
14940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14941   yes:no: )
14942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14946     ac_header_preproc=yes
14947     ;;
14948   no:yes:* )
14949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14951     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14952 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14953     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14955     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14956 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14959     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14961     (
14962       cat <<\_ASBOX
14963 ## ------------------------------------------ ##
14964 ## Report this to the AC_PACKAGE_NAME lists.  ##
14965 ## ------------------------------------------ ##
14966 _ASBOX
14967     ) |
14968       sed "s/^/$as_me: WARNING:     /" >&2
14969     ;;
14970 esac
14971 echo "$as_me:$LINENO: checking for $ac_header" >&5
14972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14974   echo $ECHO_N "(cached) $ECHO_C" >&6
14975 else
14976   eval "$as_ac_Header=\$ac_header_preproc"
14977 fi
14978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14980
14981 fi
14982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14983   cat >>confdefs.h <<_ACEOF
14984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14985 _ACEOF
14986
14987 fi
14988
14989 done
14990
14991
14992
14993 for ac_func in fork vfork
14994 do
14995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14996 echo "$as_me:$LINENO: checking for $ac_func" >&5
14997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14998 if eval "test \"\${$as_ac_var+set}\" = set"; then
14999   echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001   cat >conftest.$ac_ext <<_ACEOF
15002 /* confdefs.h.  */
15003 _ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h.  */
15007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15009 #define $ac_func innocuous_$ac_func
15010
15011 /* System header to define __stub macros and hopefully few prototypes,
15012     which can conflict with char $ac_func (); below.
15013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15014     <limits.h> exists even on freestanding compilers.  */
15015
15016 #ifdef __STDC__
15017 # include <limits.h>
15018 #else
15019 # include <assert.h>
15020 #endif
15021
15022 #undef $ac_func
15023
15024 /* Override any gcc2 internal prototype to avoid an error.  */
15025 #ifdef __cplusplus
15026 extern "C"
15027 {
15028 #endif
15029 /* We use char because int might match the return type of a gcc2
15030    builtin and then its argument prototype would still apply.  */
15031 char $ac_func ();
15032 /* The GNU C library defines this for functions which it implements
15033     to always fail with ENOSYS.  Some functions are actually named
15034     something starting with __ and the normal name is an alias.  */
15035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15036 choke me
15037 #else
15038 char (*f) () = $ac_func;
15039 #endif
15040 #ifdef __cplusplus
15041 }
15042 #endif
15043
15044 int
15045 main ()
15046 {
15047 return f != $ac_func;
15048   ;
15049   return 0;
15050 }
15051 _ACEOF
15052 rm -f conftest.$ac_objext conftest$ac_exeext
15053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15054   (eval $ac_link) 2>conftest.er1
15055   ac_status=$?
15056   grep -v '^ *+' conftest.er1 >conftest.err
15057   rm -f conftest.er1
15058   cat conftest.err >&5
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } &&
15061          { ac_try='test -z "$ac_c_werror_flag"
15062                          || test ! -s conftest.err'
15063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064   (eval $ac_try) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; } &&
15068          { ac_try='test -s conftest$ac_exeext'
15069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070   (eval $ac_try) 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); }; }; then
15074   eval "$as_ac_var=yes"
15075 else
15076   echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15078
15079 eval "$as_ac_var=no"
15080 fi
15081 rm -f conftest.err conftest.$ac_objext \
15082       conftest$ac_exeext conftest.$ac_ext
15083 fi
15084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15086 if test `eval echo '${'$as_ac_var'}'` = yes; then
15087   cat >>confdefs.h <<_ACEOF
15088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15089 _ACEOF
15090
15091 fi
15092 done
15093
15094 if test "x$ac_cv_func_fork" = xyes; then
15095   echo "$as_me:$LINENO: checking for working fork" >&5
15096 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15097 if test "${ac_cv_func_fork_works+set}" = set; then
15098   echo $ECHO_N "(cached) $ECHO_C" >&6
15099 else
15100   if test "$cross_compiling" = yes; then
15101   ac_cv_func_fork_works=cross
15102 else
15103   cat >conftest.$ac_ext <<_ACEOF
15104 /* By Ruediger Kuhlmann. */
15105       #include <sys/types.h>
15106       #if HAVE_UNISTD_H
15107       # include <unistd.h>
15108       #endif
15109       /* Some systems only have a dummy stub for fork() */
15110       int main ()
15111       {
15112         if (fork() < 0)
15113           exit (1);
15114         exit (0);
15115       }
15116 _ACEOF
15117 rm -f conftest$ac_exeext
15118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15119   (eval $ac_link) 2>&5
15120   ac_status=$?
15121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124   (eval $ac_try) 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); }; }; then
15128   ac_cv_func_fork_works=yes
15129 else
15130   echo "$as_me: program exited with status $ac_status" >&5
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134 ( exit $ac_status )
15135 ac_cv_func_fork_works=no
15136 fi
15137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15138 fi
15139 fi
15140 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15141 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15142
15143 else
15144   ac_cv_func_fork_works=$ac_cv_func_fork
15145 fi
15146 if test "x$ac_cv_func_fork_works" = xcross; then
15147   case $host in
15148     *-*-amigaos* | *-*-msdosdjgpp*)
15149       # Override, as these systems have only a dummy fork() stub
15150       ac_cv_func_fork_works=no
15151       ;;
15152     *)
15153       ac_cv_func_fork_works=yes
15154       ;;
15155   esac
15156   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15157 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15158 fi
15159 ac_cv_func_vfork_works=$ac_cv_func_vfork
15160 if test "x$ac_cv_func_vfork" = xyes; then
15161   echo "$as_me:$LINENO: checking for working vfork" >&5
15162 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15163 if test "${ac_cv_func_vfork_works+set}" = set; then
15164   echo $ECHO_N "(cached) $ECHO_C" >&6
15165 else
15166   if test "$cross_compiling" = yes; then
15167   ac_cv_func_vfork_works=cross
15168 else
15169   cat >conftest.$ac_ext <<_ACEOF
15170 /* confdefs.h.  */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h.  */
15175 /* Thanks to Paul Eggert for this test.  */
15176 #include <stdio.h>
15177 #include <stdlib.h>
15178 #include <sys/types.h>
15179 #include <sys/stat.h>
15180 #include <sys/wait.h>
15181 #if HAVE_UNISTD_H
15182 # include <unistd.h>
15183 #endif
15184 #if HAVE_VFORK_H
15185 # include <vfork.h>
15186 #endif
15187 /* On some sparc systems, changes by the child to local and incoming
15188    argument registers are propagated back to the parent.  The compiler
15189    is told about this with #include <vfork.h>, but some compilers
15190    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15191    static variable whose address is put into a register that is
15192    clobbered by the vfork.  */
15193 static void
15194 #ifdef __cplusplus
15195 sparc_address_test (int arg)
15196 # else
15197 sparc_address_test (arg) int arg;
15198 #endif
15199 {
15200   static pid_t child;
15201   if (!child) {
15202     child = vfork ();
15203     if (child < 0) {
15204       perror ("vfork");
15205       _exit(2);
15206     }
15207     if (!child) {
15208       arg = getpid();
15209       write(-1, "", 0);
15210       _exit (arg);
15211     }
15212   }
15213 }
15214
15215 int
15216 main ()
15217 {
15218   pid_t parent = getpid ();
15219   pid_t child;
15220
15221   sparc_address_test (0);
15222
15223   child = vfork ();
15224
15225   if (child == 0) {
15226     /* Here is another test for sparc vfork register problems.  This
15227        test uses lots of local variables, at least as many local
15228        variables as main has allocated so far including compiler
15229        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15230        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15231        reuse the register of parent for one of the local variables,
15232        since it will think that parent can't possibly be used any more
15233        in this routine.  Assigning to the local variable will thus
15234        munge parent in the parent process.  */
15235     pid_t
15236       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15237       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15238     /* Convince the compiler that p..p7 are live; otherwise, it might
15239        use the same hardware register for all 8 local variables.  */
15240     if (p != p1 || p != p2 || p != p3 || p != p4
15241         || p != p5 || p != p6 || p != p7)
15242       _exit(1);
15243
15244     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15245        from child file descriptors.  If the child closes a descriptor
15246        before it execs or exits, this munges the parent's descriptor
15247        as well.  Test for this by closing stdout in the child.  */
15248     _exit(close(fileno(stdout)) != 0);
15249   } else {
15250     int status;
15251     struct stat st;
15252
15253     while (wait(&status) != child)
15254       ;
15255     exit(
15256          /* Was there some problem with vforking?  */
15257          child < 0
15258
15259          /* Did the child fail?  (This shouldn't happen.)  */
15260          || status
15261
15262          /* Did the vfork/compiler bug occur?  */
15263          || parent != getpid()
15264
15265          /* Did the file descriptor bug occur?  */
15266          || fstat(fileno(stdout), &st) != 0
15267          );
15268   }
15269 }
15270 _ACEOF
15271 rm -f conftest$ac_exeext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273   (eval $ac_link) 2>&5
15274   ac_status=$?
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278   (eval $ac_try) 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); }; }; then
15282   ac_cv_func_vfork_works=yes
15283 else
15284   echo "$as_me: program exited with status $ac_status" >&5
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15287
15288 ( exit $ac_status )
15289 ac_cv_func_vfork_works=no
15290 fi
15291 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15292 fi
15293 fi
15294 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15295 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15296
15297 fi;
15298 if test "x$ac_cv_func_fork_works" = xcross; then
15299   ac_cv_func_vfork_works=$ac_cv_func_vfork
15300   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15301 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15302 fi
15303
15304 if test "x$ac_cv_func_vfork_works" = xyes; then
15305
15306 cat >>confdefs.h <<\_ACEOF
15307 #define HAVE_WORKING_VFORK 1
15308 _ACEOF
15309
15310 else
15311
15312 cat >>confdefs.h <<\_ACEOF
15313 #define vfork fork
15314 _ACEOF
15315
15316 fi
15317 if test "x$ac_cv_func_fork_works" = xyes; then
15318
15319 cat >>confdefs.h <<\_ACEOF
15320 #define HAVE_WORKING_FORK 1
15321 _ACEOF
15322
15323 fi
15324
15325
15326
15327 for ac_func in canonicalize_file_name realpath
15328 do
15329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15330 echo "$as_me:$LINENO: checking for $ac_func" >&5
15331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15332 if eval "test \"\${$as_ac_var+set}\" = set"; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335   cat >conftest.$ac_ext <<_ACEOF
15336 /* confdefs.h.  */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h.  */
15341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15343 #define $ac_func innocuous_$ac_func
15344
15345 /* System header to define __stub macros and hopefully few prototypes,
15346     which can conflict with char $ac_func (); below.
15347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15348     <limits.h> exists even on freestanding compilers.  */
15349
15350 #ifdef __STDC__
15351 # include <limits.h>
15352 #else
15353 # include <assert.h>
15354 #endif
15355
15356 #undef $ac_func
15357
15358 /* Override any gcc2 internal prototype to avoid an error.  */
15359 #ifdef __cplusplus
15360 extern "C"
15361 {
15362 #endif
15363 /* We use char because int might match the return type of a gcc2
15364    builtin and then its argument prototype would still apply.  */
15365 char $ac_func ();
15366 /* The GNU C library defines this for functions which it implements
15367     to always fail with ENOSYS.  Some functions are actually named
15368     something starting with __ and the normal name is an alias.  */
15369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15370 choke me
15371 #else
15372 char (*f) () = $ac_func;
15373 #endif
15374 #ifdef __cplusplus
15375 }
15376 #endif
15377
15378 int
15379 main ()
15380 {
15381 return f != $ac_func;
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 rm -f conftest.$ac_objext conftest$ac_exeext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388   (eval $ac_link) 2>conftest.er1
15389   ac_status=$?
15390   grep -v '^ *+' conftest.er1 >conftest.err
15391   rm -f conftest.er1
15392   cat conftest.err >&5
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); } &&
15395          { ac_try='test -z "$ac_c_werror_flag"
15396                          || test ! -s conftest.err'
15397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398   (eval $ac_try) 2>&5
15399   ac_status=$?
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); }; } &&
15402          { ac_try='test -s conftest$ac_exeext'
15403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404   (eval $ac_try) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; }; then
15408   eval "$as_ac_var=yes"
15409 else
15410   echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15412
15413 eval "$as_ac_var=no"
15414 fi
15415 rm -f conftest.err conftest.$ac_objext \
15416       conftest$ac_exeext conftest.$ac_ext
15417 fi
15418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15420 if test `eval echo '${'$as_ac_var'}'` = yes; then
15421   cat >>confdefs.h <<_ACEOF
15422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15423 _ACEOF
15424
15425 fi
15426 done
15427
15428
15429
15430 for ac_func in getuid getgid
15431 do
15432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15433 echo "$as_me:$LINENO: checking for $ac_func" >&5
15434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15435 if eval "test \"\${$as_ac_var+set}\" = set"; then
15436   echo $ECHO_N "(cached) $ECHO_C" >&6
15437 else
15438   cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h.  */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h.  */
15444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15446 #define $ac_func innocuous_$ac_func
15447
15448 /* System header to define __stub macros and hopefully few prototypes,
15449     which can conflict with char $ac_func (); below.
15450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15451     <limits.h> exists even on freestanding compilers.  */
15452
15453 #ifdef __STDC__
15454 # include <limits.h>
15455 #else
15456 # include <assert.h>
15457 #endif
15458
15459 #undef $ac_func
15460
15461 /* Override any gcc2 internal prototype to avoid an error.  */
15462 #ifdef __cplusplus
15463 extern "C"
15464 {
15465 #endif
15466 /* We use char because int might match the return type of a gcc2
15467    builtin and then its argument prototype would still apply.  */
15468 char $ac_func ();
15469 /* The GNU C library defines this for functions which it implements
15470     to always fail with ENOSYS.  Some functions are actually named
15471     something starting with __ and the normal name is an alias.  */
15472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15473 choke me
15474 #else
15475 char (*f) () = $ac_func;
15476 #endif
15477 #ifdef __cplusplus
15478 }
15479 #endif
15480
15481 int
15482 main ()
15483 {
15484 return f != $ac_func;
15485   ;
15486   return 0;
15487 }
15488 _ACEOF
15489 rm -f conftest.$ac_objext conftest$ac_exeext
15490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15491   (eval $ac_link) 2>conftest.er1
15492   ac_status=$?
15493   grep -v '^ *+' conftest.er1 >conftest.err
15494   rm -f conftest.er1
15495   cat conftest.err >&5
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); } &&
15498          { ac_try='test -z "$ac_c_werror_flag"
15499                          || test ! -s conftest.err'
15500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501   (eval $ac_try) 2>&5
15502   ac_status=$?
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); }; } &&
15505          { ac_try='test -s conftest$ac_exeext'
15506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507   (eval $ac_try) 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); }; }; then
15511   eval "$as_ac_var=yes"
15512 else
15513   echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15515
15516 eval "$as_ac_var=no"
15517 fi
15518 rm -f conftest.err conftest.$ac_objext \
15519       conftest$ac_exeext conftest.$ac_ext
15520 fi
15521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15523 if test `eval echo '${'$as_ac_var'}'` = yes; then
15524   cat >>confdefs.h <<_ACEOF
15525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15526 _ACEOF
15527
15528 fi
15529 done
15530
15531
15532 for ac_func in poll
15533 do
15534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15535 echo "$as_me:$LINENO: checking for $ac_func" >&5
15536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15537 if eval "test \"\${$as_ac_var+set}\" = set"; then
15538   echo $ECHO_N "(cached) $ECHO_C" >&6
15539 else
15540   cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h.  */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h.  */
15546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15548 #define $ac_func innocuous_$ac_func
15549
15550 /* System header to define __stub macros and hopefully few prototypes,
15551     which can conflict with char $ac_func (); below.
15552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15553     <limits.h> exists even on freestanding compilers.  */
15554
15555 #ifdef __STDC__
15556 # include <limits.h>
15557 #else
15558 # include <assert.h>
15559 #endif
15560
15561 #undef $ac_func
15562
15563 /* Override any gcc2 internal prototype to avoid an error.  */
15564 #ifdef __cplusplus
15565 extern "C"
15566 {
15567 #endif
15568 /* We use char because int might match the return type of a gcc2
15569    builtin and then its argument prototype would still apply.  */
15570 char $ac_func ();
15571 /* The GNU C library defines this for functions which it implements
15572     to always fail with ENOSYS.  Some functions are actually named
15573     something starting with __ and the normal name is an alias.  */
15574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15575 choke me
15576 #else
15577 char (*f) () = $ac_func;
15578 #endif
15579 #ifdef __cplusplus
15580 }
15581 #endif
15582
15583 int
15584 main ()
15585 {
15586 return f != $ac_func;
15587   ;
15588   return 0;
15589 }
15590 _ACEOF
15591 rm -f conftest.$ac_objext conftest$ac_exeext
15592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15593   (eval $ac_link) 2>conftest.er1
15594   ac_status=$?
15595   grep -v '^ *+' conftest.er1 >conftest.err
15596   rm -f conftest.er1
15597   cat conftest.err >&5
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } &&
15600          { ac_try='test -z "$ac_c_werror_flag"
15601                          || test ! -s conftest.err'
15602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603   (eval $ac_try) 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); }; } &&
15607          { ac_try='test -s conftest$ac_exeext'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }; then
15613   eval "$as_ac_var=yes"
15614 else
15615   echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 eval "$as_ac_var=no"
15619 fi
15620 rm -f conftest.err conftest.$ac_objext \
15621       conftest$ac_exeext conftest.$ac_ext
15622 fi
15623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15625 if test `eval echo '${'$as_ac_var'}'` = yes; then
15626   cat >>confdefs.h <<_ACEOF
15627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15628 _ACEOF
15629
15630 fi
15631 done
15632
15633
15634 for ac_func in pread64
15635 do
15636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15637 echo "$as_me:$LINENO: checking for $ac_func" >&5
15638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15639 if eval "test \"\${$as_ac_var+set}\" = set"; then
15640   echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642   cat >conftest.$ac_ext <<_ACEOF
15643 /* confdefs.h.  */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h.  */
15648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15650 #define $ac_func innocuous_$ac_func
15651
15652 /* System header to define __stub macros and hopefully few prototypes,
15653     which can conflict with char $ac_func (); below.
15654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15655     <limits.h> exists even on freestanding compilers.  */
15656
15657 #ifdef __STDC__
15658 # include <limits.h>
15659 #else
15660 # include <assert.h>
15661 #endif
15662
15663 #undef $ac_func
15664
15665 /* Override any gcc2 internal prototype to avoid an error.  */
15666 #ifdef __cplusplus
15667 extern "C"
15668 {
15669 #endif
15670 /* We use char because int might match the return type of a gcc2
15671    builtin and then its argument prototype would still apply.  */
15672 char $ac_func ();
15673 /* The GNU C library defines this for functions which it implements
15674     to always fail with ENOSYS.  Some functions are actually named
15675     something starting with __ and the normal name is an alias.  */
15676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15677 choke me
15678 #else
15679 char (*f) () = $ac_func;
15680 #endif
15681 #ifdef __cplusplus
15682 }
15683 #endif
15684
15685 int
15686 main ()
15687 {
15688 return f != $ac_func;
15689   ;
15690   return 0;
15691 }
15692 _ACEOF
15693 rm -f conftest.$ac_objext conftest$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695   (eval $ac_link) 2>conftest.er1
15696   ac_status=$?
15697   grep -v '^ *+' conftest.er1 >conftest.err
15698   rm -f conftest.er1
15699   cat conftest.err >&5
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); } &&
15702          { ac_try='test -z "$ac_c_werror_flag"
15703                          || test ! -s conftest.err'
15704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705   (eval $ac_try) 2>&5
15706   ac_status=$?
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); }; } &&
15709          { ac_try='test -s conftest$ac_exeext'
15710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711   (eval $ac_try) 2>&5
15712   ac_status=$?
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); }; }; then
15715   eval "$as_ac_var=yes"
15716 else
15717   echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15719
15720 eval "$as_ac_var=no"
15721 fi
15722 rm -f conftest.err conftest.$ac_objext \
15723       conftest$ac_exeext conftest.$ac_ext
15724 fi
15725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15727 if test `eval echo '${'$as_ac_var'}'` = yes; then
15728   cat >>confdefs.h <<_ACEOF
15729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15730 _ACEOF
15731
15732 fi
15733 done
15734
15735
15736 for ac_func in sbrk
15737 do
15738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15739 echo "$as_me:$LINENO: checking for $ac_func" >&5
15740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15741 if eval "test \"\${$as_ac_var+set}\" = set"; then
15742   echo $ECHO_N "(cached) $ECHO_C" >&6
15743 else
15744   cat >conftest.$ac_ext <<_ACEOF
15745 /* confdefs.h.  */
15746 _ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h.  */
15750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15752 #define $ac_func innocuous_$ac_func
15753
15754 /* System header to define __stub macros and hopefully few prototypes,
15755     which can conflict with char $ac_func (); below.
15756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15757     <limits.h> exists even on freestanding compilers.  */
15758
15759 #ifdef __STDC__
15760 # include <limits.h>
15761 #else
15762 # include <assert.h>
15763 #endif
15764
15765 #undef $ac_func
15766
15767 /* Override any gcc2 internal prototype to avoid an error.  */
15768 #ifdef __cplusplus
15769 extern "C"
15770 {
15771 #endif
15772 /* We use char because int might match the return type of a gcc2
15773    builtin and then its argument prototype would still apply.  */
15774 char $ac_func ();
15775 /* The GNU C library defines this for functions which it implements
15776     to always fail with ENOSYS.  Some functions are actually named
15777     something starting with __ and the normal name is an alias.  */
15778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15779 choke me
15780 #else
15781 char (*f) () = $ac_func;
15782 #endif
15783 #ifdef __cplusplus
15784 }
15785 #endif
15786
15787 int
15788 main ()
15789 {
15790 return f != $ac_func;
15791   ;
15792   return 0;
15793 }
15794 _ACEOF
15795 rm -f conftest.$ac_objext conftest$ac_exeext
15796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15797   (eval $ac_link) 2>conftest.er1
15798   ac_status=$?
15799   grep -v '^ *+' conftest.er1 >conftest.err
15800   rm -f conftest.er1
15801   cat conftest.err >&5
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); } &&
15804          { ac_try='test -z "$ac_c_werror_flag"
15805                          || test ! -s conftest.err'
15806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807   (eval $ac_try) 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); }; } &&
15811          { ac_try='test -s conftest$ac_exeext'
15812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813   (eval $ac_try) 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); }; }; then
15817   eval "$as_ac_var=yes"
15818 else
15819   echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15821
15822 eval "$as_ac_var=no"
15823 fi
15824 rm -f conftest.err conftest.$ac_objext \
15825       conftest$ac_exeext conftest.$ac_ext
15826 fi
15827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15829 if test `eval echo '${'$as_ac_var'}'` = yes; then
15830   cat >>confdefs.h <<_ACEOF
15831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15832 _ACEOF
15833
15834 fi
15835 done
15836
15837
15838
15839 for ac_func in setpgid setpgrp
15840 do
15841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15842 echo "$as_me:$LINENO: checking for $ac_func" >&5
15843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15844 if eval "test \"\${$as_ac_var+set}\" = set"; then
15845   echo $ECHO_N "(cached) $ECHO_C" >&6
15846 else
15847   cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h.  */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h.  */
15853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15855 #define $ac_func innocuous_$ac_func
15856
15857 /* System header to define __stub macros and hopefully few prototypes,
15858     which can conflict with char $ac_func (); below.
15859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15860     <limits.h> exists even on freestanding compilers.  */
15861
15862 #ifdef __STDC__
15863 # include <limits.h>
15864 #else
15865 # include <assert.h>
15866 #endif
15867
15868 #undef $ac_func
15869
15870 /* Override any gcc2 internal prototype to avoid an error.  */
15871 #ifdef __cplusplus
15872 extern "C"
15873 {
15874 #endif
15875 /* We use char because int might match the return type of a gcc2
15876    builtin and then its argument prototype would still apply.  */
15877 char $ac_func ();
15878 /* The GNU C library defines this for functions which it implements
15879     to always fail with ENOSYS.  Some functions are actually named
15880     something starting with __ and the normal name is an alias.  */
15881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15882 choke me
15883 #else
15884 char (*f) () = $ac_func;
15885 #endif
15886 #ifdef __cplusplus
15887 }
15888 #endif
15889
15890 int
15891 main ()
15892 {
15893 return f != $ac_func;
15894   ;
15895   return 0;
15896 }
15897 _ACEOF
15898 rm -f conftest.$ac_objext conftest$ac_exeext
15899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15900   (eval $ac_link) 2>conftest.er1
15901   ac_status=$?
15902   grep -v '^ *+' conftest.er1 >conftest.err
15903   rm -f conftest.er1
15904   cat conftest.err >&5
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); } &&
15907          { ac_try='test -z "$ac_c_werror_flag"
15908                          || test ! -s conftest.err'
15909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910   (eval $ac_try) 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); }; } &&
15914          { ac_try='test -s conftest$ac_exeext'
15915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916   (eval $ac_try) 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); }; }; then
15920   eval "$as_ac_var=yes"
15921 else
15922   echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15924
15925 eval "$as_ac_var=no"
15926 fi
15927 rm -f conftest.err conftest.$ac_objext \
15928       conftest$ac_exeext conftest.$ac_ext
15929 fi
15930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15932 if test `eval echo '${'$as_ac_var'}'` = yes; then
15933   cat >>confdefs.h <<_ACEOF
15934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15935 _ACEOF
15936
15937 fi
15938 done
15939
15940
15941
15942
15943 for ac_func in sigaction sigprocmask sigsetmask
15944 do
15945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15946 echo "$as_me:$LINENO: checking for $ac_func" >&5
15947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15948 if eval "test \"\${$as_ac_var+set}\" = set"; then
15949   echo $ECHO_N "(cached) $ECHO_C" >&6
15950 else
15951   cat >conftest.$ac_ext <<_ACEOF
15952 /* confdefs.h.  */
15953 _ACEOF
15954 cat confdefs.h >>conftest.$ac_ext
15955 cat >>conftest.$ac_ext <<_ACEOF
15956 /* end confdefs.h.  */
15957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15959 #define $ac_func innocuous_$ac_func
15960
15961 /* System header to define __stub macros and hopefully few prototypes,
15962     which can conflict with char $ac_func (); below.
15963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15964     <limits.h> exists even on freestanding compilers.  */
15965
15966 #ifdef __STDC__
15967 # include <limits.h>
15968 #else
15969 # include <assert.h>
15970 #endif
15971
15972 #undef $ac_func
15973
15974 /* Override any gcc2 internal prototype to avoid an error.  */
15975 #ifdef __cplusplus
15976 extern "C"
15977 {
15978 #endif
15979 /* We use char because int might match the return type of a gcc2
15980    builtin and then its argument prototype would still apply.  */
15981 char $ac_func ();
15982 /* The GNU C library defines this for functions which it implements
15983     to always fail with ENOSYS.  Some functions are actually named
15984     something starting with __ and the normal name is an alias.  */
15985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15986 choke me
15987 #else
15988 char (*f) () = $ac_func;
15989 #endif
15990 #ifdef __cplusplus
15991 }
15992 #endif
15993
15994 int
15995 main ()
15996 {
15997 return f != $ac_func;
15998   ;
15999   return 0;
16000 }
16001 _ACEOF
16002 rm -f conftest.$ac_objext conftest$ac_exeext
16003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16004   (eval $ac_link) 2>conftest.er1
16005   ac_status=$?
16006   grep -v '^ *+' conftest.er1 >conftest.err
16007   rm -f conftest.er1
16008   cat conftest.err >&5
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); } &&
16011          { ac_try='test -z "$ac_c_werror_flag"
16012                          || test ! -s conftest.err'
16013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014   (eval $ac_try) 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; } &&
16018          { ac_try='test -s conftest$ac_exeext'
16019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020   (eval $ac_try) 2>&5
16021   ac_status=$?
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); }; }; then
16024   eval "$as_ac_var=yes"
16025 else
16026   echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16028
16029 eval "$as_ac_var=no"
16030 fi
16031 rm -f conftest.err conftest.$ac_objext \
16032       conftest$ac_exeext conftest.$ac_ext
16033 fi
16034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16036 if test `eval echo '${'$as_ac_var'}'` = yes; then
16037   cat >>confdefs.h <<_ACEOF
16038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16039 _ACEOF
16040
16041 fi
16042 done
16043
16044
16045 for ac_func in socketpair
16046 do
16047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16048 echo "$as_me:$LINENO: checking for $ac_func" >&5
16049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16050 if eval "test \"\${$as_ac_var+set}\" = set"; then
16051   echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053   cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h.  */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h.  */
16059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16061 #define $ac_func innocuous_$ac_func
16062
16063 /* System header to define __stub macros and hopefully few prototypes,
16064     which can conflict with char $ac_func (); below.
16065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16066     <limits.h> exists even on freestanding compilers.  */
16067
16068 #ifdef __STDC__
16069 # include <limits.h>
16070 #else
16071 # include <assert.h>
16072 #endif
16073
16074 #undef $ac_func
16075
16076 /* Override any gcc2 internal prototype to avoid an error.  */
16077 #ifdef __cplusplus
16078 extern "C"
16079 {
16080 #endif
16081 /* We use char because int might match the return type of a gcc2
16082    builtin and then its argument prototype would still apply.  */
16083 char $ac_func ();
16084 /* The GNU C library defines this for functions which it implements
16085     to always fail with ENOSYS.  Some functions are actually named
16086     something starting with __ and the normal name is an alias.  */
16087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16088 choke me
16089 #else
16090 char (*f) () = $ac_func;
16091 #endif
16092 #ifdef __cplusplus
16093 }
16094 #endif
16095
16096 int
16097 main ()
16098 {
16099 return f != $ac_func;
16100   ;
16101   return 0;
16102 }
16103 _ACEOF
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106   (eval $ac_link) 2>conftest.er1
16107   ac_status=$?
16108   grep -v '^ *+' conftest.er1 >conftest.err
16109   rm -f conftest.er1
16110   cat conftest.err >&5
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); } &&
16113          { ac_try='test -z "$ac_c_werror_flag"
16114                          || test ! -s conftest.err'
16115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116   (eval $ac_try) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; } &&
16120          { ac_try='test -s conftest$ac_exeext'
16121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122   (eval $ac_try) 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); }; }; then
16126   eval "$as_ac_var=yes"
16127 else
16128   echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131 eval "$as_ac_var=no"
16132 fi
16133 rm -f conftest.err conftest.$ac_objext \
16134       conftest$ac_exeext conftest.$ac_ext
16135 fi
16136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16138 if test `eval echo '${'$as_ac_var'}'` = yes; then
16139   cat >>confdefs.h <<_ACEOF
16140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16141 _ACEOF
16142
16143 fi
16144 done
16145
16146
16147 for ac_func in syscall
16148 do
16149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16150 echo "$as_me:$LINENO: checking for $ac_func" >&5
16151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16152 if eval "test \"\${$as_ac_var+set}\" = set"; then
16153   echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155   cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h.  */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h.  */
16161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16163 #define $ac_func innocuous_$ac_func
16164
16165 /* System header to define __stub macros and hopefully few prototypes,
16166     which can conflict with char $ac_func (); below.
16167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16168     <limits.h> exists even on freestanding compilers.  */
16169
16170 #ifdef __STDC__
16171 # include <limits.h>
16172 #else
16173 # include <assert.h>
16174 #endif
16175
16176 #undef $ac_func
16177
16178 /* Override any gcc2 internal prototype to avoid an error.  */
16179 #ifdef __cplusplus
16180 extern "C"
16181 {
16182 #endif
16183 /* We use char because int might match the return type of a gcc2
16184    builtin and then its argument prototype would still apply.  */
16185 char $ac_func ();
16186 /* The GNU C library defines this for functions which it implements
16187     to always fail with ENOSYS.  Some functions are actually named
16188     something starting with __ and the normal name is an alias.  */
16189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16190 choke me
16191 #else
16192 char (*f) () = $ac_func;
16193 #endif
16194 #ifdef __cplusplus
16195 }
16196 #endif
16197
16198 int
16199 main ()
16200 {
16201 return f != $ac_func;
16202   ;
16203   return 0;
16204 }
16205 _ACEOF
16206 rm -f conftest.$ac_objext conftest$ac_exeext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16208   (eval $ac_link) 2>conftest.er1
16209   ac_status=$?
16210   grep -v '^ *+' conftest.er1 >conftest.err
16211   rm -f conftest.er1
16212   cat conftest.err >&5
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); } &&
16215          { ac_try='test -z "$ac_c_werror_flag"
16216                          || test ! -s conftest.err'
16217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218   (eval $ac_try) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; } &&
16222          { ac_try='test -s conftest$ac_exeext'
16223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224   (eval $ac_try) 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; }; then
16228   eval "$as_ac_var=yes"
16229 else
16230   echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16232
16233 eval "$as_ac_var=no"
16234 fi
16235 rm -f conftest.err conftest.$ac_objext \
16236       conftest$ac_exeext conftest.$ac_ext
16237 fi
16238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16240 if test `eval echo '${'$as_ac_var'}'` = yes; then
16241   cat >>confdefs.h <<_ACEOF
16242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16243 _ACEOF
16244
16245 fi
16246 done
16247
16248
16249 for ac_func in ttrace
16250 do
16251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16252 echo "$as_me:$LINENO: checking for $ac_func" >&5
16253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16254 if eval "test \"\${$as_ac_var+set}\" = set"; then
16255   echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257   cat >conftest.$ac_ext <<_ACEOF
16258 /* confdefs.h.  */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h.  */
16263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16265 #define $ac_func innocuous_$ac_func
16266
16267 /* System header to define __stub macros and hopefully few prototypes,
16268     which can conflict with char $ac_func (); below.
16269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16270     <limits.h> exists even on freestanding compilers.  */
16271
16272 #ifdef __STDC__
16273 # include <limits.h>
16274 #else
16275 # include <assert.h>
16276 #endif
16277
16278 #undef $ac_func
16279
16280 /* Override any gcc2 internal prototype to avoid an error.  */
16281 #ifdef __cplusplus
16282 extern "C"
16283 {
16284 #endif
16285 /* We use char because int might match the return type of a gcc2
16286    builtin and then its argument prototype would still apply.  */
16287 char $ac_func ();
16288 /* The GNU C library defines this for functions which it implements
16289     to always fail with ENOSYS.  Some functions are actually named
16290     something starting with __ and the normal name is an alias.  */
16291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16292 choke me
16293 #else
16294 char (*f) () = $ac_func;
16295 #endif
16296 #ifdef __cplusplus
16297 }
16298 #endif
16299
16300 int
16301 main ()
16302 {
16303 return f != $ac_func;
16304   ;
16305   return 0;
16306 }
16307 _ACEOF
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16310   (eval $ac_link) 2>conftest.er1
16311   ac_status=$?
16312   grep -v '^ *+' conftest.er1 >conftest.err
16313   rm -f conftest.er1
16314   cat conftest.err >&5
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); } &&
16317          { ac_try='test -z "$ac_c_werror_flag"
16318                          || test ! -s conftest.err'
16319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320   (eval $ac_try) 2>&5
16321   ac_status=$?
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); }; } &&
16324          { ac_try='test -s conftest$ac_exeext'
16325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326   (eval $ac_try) 2>&5
16327   ac_status=$?
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); }; }; then
16330   eval "$as_ac_var=yes"
16331 else
16332   echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 eval "$as_ac_var=no"
16336 fi
16337 rm -f conftest.err conftest.$ac_objext \
16338       conftest$ac_exeext conftest.$ac_ext
16339 fi
16340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16342 if test `eval echo '${'$as_ac_var'}'` = yes; then
16343   cat >>confdefs.h <<_ACEOF
16344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16345 _ACEOF
16346
16347 fi
16348 done
16349
16350
16351 for ac_func in wborder
16352 do
16353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16354 echo "$as_me:$LINENO: checking for $ac_func" >&5
16355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16356 if eval "test \"\${$as_ac_var+set}\" = set"; then
16357   echo $ECHO_N "(cached) $ECHO_C" >&6
16358 else
16359   cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16367 #define $ac_func innocuous_$ac_func
16368
16369 /* System header to define __stub macros and hopefully few prototypes,
16370     which can conflict with char $ac_func (); below.
16371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16372     <limits.h> exists even on freestanding compilers.  */
16373
16374 #ifdef __STDC__
16375 # include <limits.h>
16376 #else
16377 # include <assert.h>
16378 #endif
16379
16380 #undef $ac_func
16381
16382 /* Override any gcc2 internal prototype to avoid an error.  */
16383 #ifdef __cplusplus
16384 extern "C"
16385 {
16386 #endif
16387 /* We use char because int might match the return type of a gcc2
16388    builtin and then its argument prototype would still apply.  */
16389 char $ac_func ();
16390 /* The GNU C library defines this for functions which it implements
16391     to always fail with ENOSYS.  Some functions are actually named
16392     something starting with __ and the normal name is an alias.  */
16393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16394 choke me
16395 #else
16396 char (*f) () = $ac_func;
16397 #endif
16398 #ifdef __cplusplus
16399 }
16400 #endif
16401
16402 int
16403 main ()
16404 {
16405 return f != $ac_func;
16406   ;
16407   return 0;
16408 }
16409 _ACEOF
16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16412   (eval $ac_link) 2>conftest.er1
16413   ac_status=$?
16414   grep -v '^ *+' conftest.er1 >conftest.err
16415   rm -f conftest.er1
16416   cat conftest.err >&5
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); } &&
16419          { ac_try='test -z "$ac_c_werror_flag"
16420                          || test ! -s conftest.err'
16421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422   (eval $ac_try) 2>&5
16423   ac_status=$?
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); }; } &&
16426          { ac_try='test -s conftest$ac_exeext'
16427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428   (eval $ac_try) 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; }; then
16432   eval "$as_ac_var=yes"
16433 else
16434   echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16436
16437 eval "$as_ac_var=no"
16438 fi
16439 rm -f conftest.err conftest.$ac_objext \
16440       conftest$ac_exeext conftest.$ac_ext
16441 fi
16442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16444 if test `eval echo '${'$as_ac_var'}'` = yes; then
16445   cat >>confdefs.h <<_ACEOF
16446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16447 _ACEOF
16448
16449 fi
16450 done
16451
16452
16453 # Check the return and argument types of ptrace.  No canned test for
16454 # this, so roll our own.
16455 gdb_ptrace_headers='
16456 #if HAVE_SYS_TYPES_H
16457 # include <sys/types.h>
16458 #endif
16459 #if HAVE_SYS_PTRACE_H
16460 # include <sys/ptrace.h>
16461 #endif
16462 #if HAVE_UNISTD_H
16463 # include <unistd.h>
16464 #endif
16465 '
16466 # There is no point in checking if we don't have a prototype.
16467 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16468 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16469 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16470   echo $ECHO_N "(cached) $ECHO_C" >&6
16471 else
16472   cat >conftest.$ac_ext <<_ACEOF
16473 /* confdefs.h.  */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h.  */
16478 $gdb_ptrace_headers
16479
16480 int
16481 main ()
16482 {
16483 #ifndef ptrace
16484   char *p = (char *) ptrace;
16485 #endif
16486
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 rm -f conftest.$ac_objext
16492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16493   (eval $ac_compile) 2>conftest.er1
16494   ac_status=$?
16495   grep -v '^ *+' conftest.er1 >conftest.err
16496   rm -f conftest.er1
16497   cat conftest.err >&5
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); } &&
16500          { ac_try='test -z "$ac_c_werror_flag"
16501                          || test ! -s conftest.err'
16502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503   (eval $ac_try) 2>&5
16504   ac_status=$?
16505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506   (exit $ac_status); }; } &&
16507          { ac_try='test -s conftest.$ac_objext'
16508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509   (eval $ac_try) 2>&5
16510   ac_status=$?
16511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); }; }; then
16513   ac_cv_have_decl_ptrace=yes
16514 else
16515   echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16517
16518 ac_cv_have_decl_ptrace=no
16519 fi
16520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16521 fi
16522 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16523 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16524 if test $ac_cv_have_decl_ptrace = yes; then
16525
16526 cat >>confdefs.h <<_ACEOF
16527 #define HAVE_DECL_PTRACE 1
16528 _ACEOF
16529
16530
16531 else
16532   cat >>confdefs.h <<_ACEOF
16533 #define HAVE_DECL_PTRACE 0
16534 _ACEOF
16535
16536
16537   : ${gdb_cv_func_ptrace_ret='int'}
16538   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16539
16540 fi
16541
16542
16543 # Check return type.
16544 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16545 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16546 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16547   echo $ECHO_N "(cached) $ECHO_C" >&6
16548 else
16549   cat >conftest.$ac_ext <<_ACEOF
16550 /* confdefs.h.  */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h.  */
16555 $gdb_ptrace_headers
16556 int
16557 main ()
16558 {
16559 extern int ptrace ();
16560   ;
16561   return 0;
16562 }
16563 _ACEOF
16564 rm -f conftest.$ac_objext
16565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16566   (eval $ac_compile) 2>conftest.er1
16567   ac_status=$?
16568   grep -v '^ *+' conftest.er1 >conftest.err
16569   rm -f conftest.er1
16570   cat conftest.err >&5
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); } &&
16573          { ac_try='test -z "$ac_c_werror_flag"
16574                          || test ! -s conftest.err'
16575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576   (eval $ac_try) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; } &&
16580          { ac_try='test -s conftest.$ac_objext'
16581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582   (eval $ac_try) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; }; then
16586   gdb_cv_func_ptrace_ret='int'
16587 else
16588   echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 gdb_cv_func_ptrace_ret='long'
16592 fi
16593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16594 fi
16595 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16596 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16597
16598 cat >>confdefs.h <<_ACEOF
16599 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16600 _ACEOF
16601
16602 # Check argument types.
16603 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16604 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16605 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16606   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608
16609 for gdb_arg1 in 'int' 'long'; do
16610  for gdb_arg2 in 'pid_t' 'int' 'long'; do
16611   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16612    for gdb_arg4 in 'int' 'long'; do
16613      cat >conftest.$ac_ext <<_ACEOF
16614 /* confdefs.h.  */
16615 _ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h.  */
16619 $gdb_ptrace_headers
16620 int
16621 main ()
16622 {
16623
16624 extern $gdb_cv_func_ptrace_ret
16625   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16626
16627   ;
16628   return 0;
16629 }
16630 _ACEOF
16631 rm -f conftest.$ac_objext
16632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16633   (eval $ac_compile) 2>conftest.er1
16634   ac_status=$?
16635   grep -v '^ *+' conftest.er1 >conftest.err
16636   rm -f conftest.er1
16637   cat conftest.err >&5
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); } &&
16640          { ac_try='test -z "$ac_c_werror_flag"
16641                          || test ! -s conftest.err'
16642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643   (eval $ac_try) 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); }; } &&
16647          { ac_try='test -s conftest.$ac_objext'
16648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649   (eval $ac_try) 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; }; then
16653   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16654     break 4;
16655 else
16656   echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16658
16659 fi
16660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16661     for gdb_arg5 in 'int *' 'int' 'long'; do
16662      cat >conftest.$ac_ext <<_ACEOF
16663 /* confdefs.h.  */
16664 _ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h.  */
16668 $gdb_ptrace_headers
16669 int
16670 main ()
16671 {
16672
16673 extern $gdb_cv_func_ptrace_ret
16674   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16675
16676   ;
16677   return 0;
16678 }
16679 _ACEOF
16680 rm -f conftest.$ac_objext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16682   (eval $ac_compile) 2>conftest.er1
16683   ac_status=$?
16684   grep -v '^ *+' conftest.er1 >conftest.err
16685   rm -f conftest.er1
16686   cat conftest.err >&5
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); } &&
16689          { ac_try='test -z "$ac_c_werror_flag"
16690                          || test ! -s conftest.err'
16691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692   (eval $ac_try) 2>&5
16693   ac_status=$?
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); }; } &&
16696          { ac_try='test -s conftest.$ac_objext'
16697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698   (eval $ac_try) 2>&5
16699   ac_status=$?
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); }; }; then
16702
16703 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16704     break 5;
16705 else
16706   echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709 fi
16710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16711     done
16712    done
16713   done
16714  done
16715 done
16716 # Provide a safe default value.
16717 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16718
16719 fi
16720 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16721 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16722 ac_save_IFS=$IFS; IFS=','
16723 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16724 IFS=$ac_save_IFS
16725 shift
16726
16727 cat >>confdefs.h <<_ACEOF
16728 #define PTRACE_TYPE_ARG3 $3
16729 _ACEOF
16730
16731 if test -n "$5"; then
16732
16733 cat >>confdefs.h <<_ACEOF
16734 #define PTRACE_TYPE_ARG5 $5
16735 _ACEOF
16736
16737 fi
16738
16739 if test "$cross_compiling" = no; then
16740   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16741 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16742 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16743   echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745   if test "$cross_compiling" = yes; then
16746   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16747 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16748    { (exit 1); exit 1; }; }
16749 else
16750   cat >conftest.$ac_ext <<_ACEOF
16751 /* confdefs.h.  */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h.  */
16756 #if HAVE_UNISTD_H
16757 # include <unistd.h>
16758 #endif
16759
16760 int
16761 main ()
16762 {
16763 /* If this system has a BSD-style setpgrp which takes arguments,
16764   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16765   exit successfully. */
16766   exit (setpgrp (1,1) == -1 ? 0 : 1);
16767   ;
16768   return 0;
16769 }
16770 _ACEOF
16771 rm -f conftest$ac_exeext
16772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16773   (eval $ac_link) 2>&5
16774   ac_status=$?
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778   (eval $ac_try) 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; }; then
16782   ac_cv_func_setpgrp_void=no
16783 else
16784   echo "$as_me: program exited with status $ac_status" >&5
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16787
16788 ( exit $ac_status )
16789 ac_cv_func_setpgrp_void=yes
16790 fi
16791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16792 fi
16793 fi
16794 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16795 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16796 if test $ac_cv_func_setpgrp_void = yes; then
16797
16798 cat >>confdefs.h <<\_ACEOF
16799 #define SETPGRP_VOID 1
16800 _ACEOF
16801
16802 fi
16803
16804 else
16805   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16806 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16807 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16808   echo $ECHO_N "(cached) $ECHO_C" >&6
16809 else
16810   cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h.  */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h.  */
16816
16817 #include <unistd.h>
16818
16819 int
16820 main ()
16821 {
16822
16823   if (setpgrp(1,1) == -1)
16824     exit (0);
16825   else
16826     exit (1);
16827
16828   ;
16829   return 0;
16830 }
16831 _ACEOF
16832 rm -f conftest.$ac_objext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16834   (eval $ac_compile) 2>conftest.er1
16835   ac_status=$?
16836   grep -v '^ *+' conftest.er1 >conftest.err
16837   rm -f conftest.er1
16838   cat conftest.err >&5
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); } &&
16841          { ac_try='test -z "$ac_c_werror_flag"
16842                          || test ! -s conftest.err'
16843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844   (eval $ac_try) 2>&5
16845   ac_status=$?
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); }; } &&
16848          { ac_try='test -s conftest.$ac_objext'
16849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850   (eval $ac_try) 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); }; }; then
16854   ac_cv_func_setpgrp_void=no
16855 else
16856   echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16858
16859 ac_cv_func_setpgrp_void=yes
16860 fi
16861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16862 fi
16863 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16864 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16865 if test $ac_cv_func_setpgrp_void = yes; then
16866   cat >>confdefs.h <<\_ACEOF
16867 #define SETPGRP_VOID 1
16868 _ACEOF
16869
16870 fi
16871 fi
16872
16873 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
16874 # since sigsetjmp might only be defined as a macro.
16875 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16876 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16877 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16878   echo $ECHO_N "(cached) $ECHO_C" >&6
16879 else
16880   cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h.  */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h.  */
16886
16887 #include <setjmp.h>
16888
16889 int
16890 main ()
16891 {
16892 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16893   ;
16894   return 0;
16895 }
16896 _ACEOF
16897 rm -f conftest.$ac_objext
16898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16899   (eval $ac_compile) 2>conftest.er1
16900   ac_status=$?
16901   grep -v '^ *+' conftest.er1 >conftest.err
16902   rm -f conftest.er1
16903   cat conftest.err >&5
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } &&
16906          { ac_try='test -z "$ac_c_werror_flag"
16907                          || test ! -s conftest.err'
16908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909   (eval $ac_try) 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; } &&
16913          { ac_try='test -s conftest.$ac_objext'
16914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915   (eval $ac_try) 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); }; }; then
16919   gdb_cv_func_sigsetjmp=yes
16920 else
16921   echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16923
16924 gdb_cv_func_sigsetjmp=no
16925 fi
16926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16927 fi
16928 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16929 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16930 if test $gdb_cv_func_sigsetjmp = yes; then
16931
16932 cat >>confdefs.h <<\_ACEOF
16933 #define HAVE_SIGSETJMP 1
16934 _ACEOF
16935
16936 fi
16937
16938 # Assume we'll default to using the included libiberty regex.
16939 gdb_use_included_regex=yes
16940
16941 # However, if the system regex is GNU regex, then default to *not*
16942 # using the included regex.
16943 echo "$as_me:$LINENO: checking for GNU regex" >&5
16944 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16945 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h.  */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h.  */
16954 #include <gnu-versions.h>
16955 int
16956 main ()
16957 {
16958 #define REGEX_INTERFACE_VERSION 1
16959 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16960 # error "Version mismatch"
16961 #endif
16962   ;
16963   return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16968   (eval $ac_compile) 2>conftest.er1
16969   ac_status=$?
16970   grep -v '^ *+' conftest.er1 >conftest.err
16971   rm -f conftest.er1
16972   cat conftest.err >&5
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); } &&
16975          { ac_try='test -z "$ac_c_werror_flag"
16976                          || test ! -s conftest.err'
16977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978   (eval $ac_try) 2>&5
16979   ac_status=$?
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); }; } &&
16982          { ac_try='test -s conftest.$ac_objext'
16983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984   (eval $ac_try) 2>&5
16985   ac_status=$?
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); }; }; then
16988   gdb_cv_have_gnu_regex=yes
16989 else
16990   echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16992
16993 gdb_cv_have_gnu_regex=no
16994 fi
16995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16996 fi
16997 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16998 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16999 if test $gdb_cv_have_gnu_regex = yes; then
17000   gdb_use_included_regex=no
17001 fi
17002
17003
17004 # Check whether --with-included-regex or --without-included-regex was given.
17005 if test "${with_included_regex+set}" = set; then
17006   withval="$with_included_regex"
17007   gdb_with_regex=$withval
17008 else
17009   gdb_with_regex=$gdb_use_included_regex
17010 fi;
17011 if test "$gdb_with_regex" = yes; then
17012
17013 cat >>confdefs.h <<\_ACEOF
17014 #define USE_INCLUDED_REGEX 1
17015 _ACEOF
17016
17017 fi
17018
17019 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17020 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17021 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17022 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
17023   echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025   cat >conftest.$ac_ext <<_ACEOF
17026 /* confdefs.h.  */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h.  */
17031 #include <sys/param.h>
17032 #include <sys/proc.h>
17033
17034
17035 int
17036 main ()
17037 {
17038 static struct thread ac_aggr;
17039 if (ac_aggr.td_pcb)
17040 return 0;
17041   ;
17042   return 0;
17043 }
17044 _ACEOF
17045 rm -f conftest.$ac_objext
17046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17047   (eval $ac_compile) 2>conftest.er1
17048   ac_status=$?
17049   grep -v '^ *+' conftest.er1 >conftest.err
17050   rm -f conftest.er1
17051   cat conftest.err >&5
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); } &&
17054          { ac_try='test -z "$ac_c_werror_flag"
17055                          || test ! -s conftest.err'
17056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057   (eval $ac_try) 2>&5
17058   ac_status=$?
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); }; } &&
17061          { ac_try='test -s conftest.$ac_objext'
17062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063   (eval $ac_try) 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); }; }; then
17067   ac_cv_member_struct_thread_td_pcb=yes
17068 else
17069   echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17071
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h.  */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h.  */
17078 #include <sys/param.h>
17079 #include <sys/proc.h>
17080
17081
17082 int
17083 main ()
17084 {
17085 static struct thread ac_aggr;
17086 if (sizeof ac_aggr.td_pcb)
17087 return 0;
17088   ;
17089   return 0;
17090 }
17091 _ACEOF
17092 rm -f conftest.$ac_objext
17093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17094   (eval $ac_compile) 2>conftest.er1
17095   ac_status=$?
17096   grep -v '^ *+' conftest.er1 >conftest.err
17097   rm -f conftest.er1
17098   cat conftest.err >&5
17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100   (exit $ac_status); } &&
17101          { ac_try='test -z "$ac_c_werror_flag"
17102                          || test ! -s conftest.err'
17103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104   (eval $ac_try) 2>&5
17105   ac_status=$?
17106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107   (exit $ac_status); }; } &&
17108          { ac_try='test -s conftest.$ac_objext'
17109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110   (eval $ac_try) 2>&5
17111   ac_status=$?
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); }; }; then
17114   ac_cv_member_struct_thread_td_pcb=yes
17115 else
17116   echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17118
17119 ac_cv_member_struct_thread_td_pcb=no
17120 fi
17121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17122 fi
17123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17124 fi
17125 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17126 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17127 if test $ac_cv_member_struct_thread_td_pcb = yes; then
17128
17129 cat >>confdefs.h <<_ACEOF
17130 #define HAVE_STRUCT_THREAD_TD_PCB 1
17131 _ACEOF
17132
17133
17134 fi
17135
17136
17137 # See if <sys/lwp.h> defines `struct lwp`.
17138 echo "$as_me:$LINENO: checking for struct lwp" >&5
17139 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17140 if test "${gdb_cv_struct_lwp+set}" = set; then
17141   echo $ECHO_N "(cached) $ECHO_C" >&6
17142 else
17143   cat >conftest.$ac_ext <<_ACEOF
17144 /* confdefs.h.  */
17145 _ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h.  */
17149 #include <sys/param.h>
17150 #include <sys/lwp.h>
17151 int
17152 main ()
17153 {
17154 struct lwp l;
17155   ;
17156   return 0;
17157 }
17158 _ACEOF
17159 rm -f conftest.$ac_objext
17160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17161   (eval $ac_compile) 2>conftest.er1
17162   ac_status=$?
17163   grep -v '^ *+' conftest.er1 >conftest.err
17164   rm -f conftest.er1
17165   cat conftest.err >&5
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); } &&
17168          { ac_try='test -z "$ac_c_werror_flag"
17169                          || test ! -s conftest.err'
17170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171   (eval $ac_try) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; } &&
17175          { ac_try='test -s conftest.$ac_objext'
17176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177   (eval $ac_try) 2>&5
17178   ac_status=$?
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); }; }; then
17181   gdb_cv_struct_lwp=yes
17182 else
17183   echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186 gdb_cv_struct_lwp=no
17187 fi
17188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17189 fi
17190 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17191 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17192 if test $gdb_cv_struct_lwp = yes; then
17193
17194 cat >>confdefs.h <<\_ACEOF
17195 #define HAVE_STRUCT_LWP 1
17196 _ACEOF
17197
17198 fi
17199
17200 # See if <machine/reg.h> degines `struct reg'.
17201 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17202 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17203 if test "${gdb_cv_struct_reg+set}" = set; then
17204   echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206   cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h.  */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h.  */
17212 #include <sys/types.h>
17213 #include <machine/reg.h>
17214 int
17215 main ()
17216 {
17217 struct reg r;
17218   ;
17219   return 0;
17220 }
17221 _ACEOF
17222 rm -f conftest.$ac_objext
17223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17224   (eval $ac_compile) 2>conftest.er1
17225   ac_status=$?
17226   grep -v '^ *+' conftest.er1 >conftest.err
17227   rm -f conftest.er1
17228   cat conftest.err >&5
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); } &&
17231          { ac_try='test -z "$ac_c_werror_flag"
17232                          || test ! -s conftest.err'
17233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234   (eval $ac_try) 2>&5
17235   ac_status=$?
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); }; } &&
17238          { ac_try='test -s conftest.$ac_objext'
17239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240   (eval $ac_try) 2>&5
17241   ac_status=$?
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); }; }; then
17244   gdb_cv_struct_reg=yes
17245 else
17246   echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249 gdb_cv_struct_reg=no
17250 fi
17251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17252 fi
17253 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17254 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17255 if test $gdb_cv_struct_reg = yes; then
17256
17257 cat >>confdefs.h <<\_ACEOF
17258 #define HAVE_STRUCT_REG 1
17259 _ACEOF
17260
17261 fi
17262
17263 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17264 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
17265 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17266 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17267 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
17268   echo $ECHO_N "(cached) $ECHO_C" >&6
17269 else
17270   cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h.  */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h.  */
17276 #include <machine/reg.h>
17277
17278 int
17279 main ()
17280 {
17281 static struct reg ac_aggr;
17282 if (ac_aggr.r_fs)
17283 return 0;
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 rm -f conftest.$ac_objext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17290   (eval $ac_compile) 2>conftest.er1
17291   ac_status=$?
17292   grep -v '^ *+' conftest.er1 >conftest.err
17293   rm -f conftest.er1
17294   cat conftest.err >&5
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } &&
17297          { ac_try='test -z "$ac_c_werror_flag"
17298                          || test ! -s conftest.err'
17299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300   (eval $ac_try) 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; } &&
17304          { ac_try='test -s conftest.$ac_objext'
17305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306   (eval $ac_try) 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; }; then
17310   ac_cv_member_struct_reg_r_fs=yes
17311 else
17312   echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315 cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h.  */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h.  */
17321 #include <machine/reg.h>
17322
17323 int
17324 main ()
17325 {
17326 static struct reg ac_aggr;
17327 if (sizeof ac_aggr.r_fs)
17328 return 0;
17329   ;
17330   return 0;
17331 }
17332 _ACEOF
17333 rm -f conftest.$ac_objext
17334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17335   (eval $ac_compile) 2>conftest.er1
17336   ac_status=$?
17337   grep -v '^ *+' conftest.er1 >conftest.err
17338   rm -f conftest.er1
17339   cat conftest.err >&5
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); } &&
17342          { ac_try='test -z "$ac_c_werror_flag"
17343                          || test ! -s conftest.err'
17344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345   (eval $ac_try) 2>&5
17346   ac_status=$?
17347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); }; } &&
17349          { ac_try='test -s conftest.$ac_objext'
17350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351   (eval $ac_try) 2>&5
17352   ac_status=$?
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); }; }; then
17355   ac_cv_member_struct_reg_r_fs=yes
17356 else
17357   echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17359
17360 ac_cv_member_struct_reg_r_fs=no
17361 fi
17362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17363 fi
17364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17365 fi
17366 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17367 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17368 if test $ac_cv_member_struct_reg_r_fs = yes; then
17369
17370 cat >>confdefs.h <<_ACEOF
17371 #define HAVE_STRUCT_REG_R_FS 1
17372 _ACEOF
17373
17374
17375 fi
17376 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17377 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17378 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17379   echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381   cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387 #include <machine/reg.h>
17388
17389 int
17390 main ()
17391 {
17392 static struct reg ac_aggr;
17393 if (ac_aggr.r_gs)
17394 return 0;
17395   ;
17396   return 0;
17397 }
17398 _ACEOF
17399 rm -f conftest.$ac_objext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17401   (eval $ac_compile) 2>conftest.er1
17402   ac_status=$?
17403   grep -v '^ *+' conftest.er1 >conftest.err
17404   rm -f conftest.er1
17405   cat conftest.err >&5
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); } &&
17408          { ac_try='test -z "$ac_c_werror_flag"
17409                          || test ! -s conftest.err'
17410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411   (eval $ac_try) 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; } &&
17415          { ac_try='test -s conftest.$ac_objext'
17416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417   (eval $ac_try) 2>&5
17418   ac_status=$?
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); }; }; then
17421   ac_cv_member_struct_reg_r_gs=yes
17422 else
17423   echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17425
17426 cat >conftest.$ac_ext <<_ACEOF
17427 /* confdefs.h.  */
17428 _ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h.  */
17432 #include <machine/reg.h>
17433
17434 int
17435 main ()
17436 {
17437 static struct reg ac_aggr;
17438 if (sizeof ac_aggr.r_gs)
17439 return 0;
17440   ;
17441   return 0;
17442 }
17443 _ACEOF
17444 rm -f conftest.$ac_objext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17446   (eval $ac_compile) 2>conftest.er1
17447   ac_status=$?
17448   grep -v '^ *+' conftest.er1 >conftest.err
17449   rm -f conftest.er1
17450   cat conftest.err >&5
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); } &&
17453          { ac_try='test -z "$ac_c_werror_flag"
17454                          || test ! -s conftest.err'
17455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456   (eval $ac_try) 2>&5
17457   ac_status=$?
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }; } &&
17460          { ac_try='test -s conftest.$ac_objext'
17461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462   (eval $ac_try) 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); }; }; then
17466   ac_cv_member_struct_reg_r_gs=yes
17467 else
17468   echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17470
17471 ac_cv_member_struct_reg_r_gs=no
17472 fi
17473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17474 fi
17475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17476 fi
17477 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17478 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17479 if test $ac_cv_member_struct_reg_r_gs = yes; then
17480
17481 cat >>confdefs.h <<_ACEOF
17482 #define HAVE_STRUCT_REG_R_GS 1
17483 _ACEOF
17484
17485
17486 fi
17487
17488
17489 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17490 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17491 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17492 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17493   echo $ECHO_N "(cached) $ECHO_C" >&6
17494 else
17495   cat >conftest.$ac_ext <<_ACEOF
17496 /* confdefs.h.  */
17497 _ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h.  */
17501 #include <sys/ptrace.h>
17502 int
17503 main ()
17504 {
17505 PTRACE_GETREGS;
17506   ;
17507   return 0;
17508 }
17509 _ACEOF
17510 rm -f conftest.$ac_objext
17511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17512   (eval $ac_compile) 2>conftest.er1
17513   ac_status=$?
17514   grep -v '^ *+' conftest.er1 >conftest.err
17515   rm -f conftest.er1
17516   cat conftest.err >&5
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); } &&
17519          { ac_try='test -z "$ac_c_werror_flag"
17520                          || test ! -s conftest.err'
17521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522   (eval $ac_try) 2>&5
17523   ac_status=$?
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); }; } &&
17526          { ac_try='test -s conftest.$ac_objext'
17527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528   (eval $ac_try) 2>&5
17529   ac_status=$?
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); }; }; then
17532   gdb_cv_have_ptrace_getregs=yes
17533 else
17534   echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17536
17537 gdb_cv_have_ptrace_getregs=no
17538 fi
17539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17540 fi
17541
17542 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17543 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17544 if test $gdb_cv_have_ptrace_getregs = yes; then
17545   cat >>confdefs.h <<\_ACEOF
17546 #define HAVE_PTRACE_GETREGS 1
17547 _ACEOF
17548
17549 fi
17550
17551 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17552 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17553 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17554 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17555   echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557   cat >conftest.$ac_ext <<_ACEOF
17558 /* confdefs.h.  */
17559 _ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h.  */
17563 #include <sys/ptrace.h>
17564 int
17565 main ()
17566 {
17567 PTRACE_GETFPXREGS;
17568   ;
17569   return 0;
17570 }
17571 _ACEOF
17572 rm -f conftest.$ac_objext
17573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17574   (eval $ac_compile) 2>conftest.er1
17575   ac_status=$?
17576   grep -v '^ *+' conftest.er1 >conftest.err
17577   rm -f conftest.er1
17578   cat conftest.err >&5
17579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580   (exit $ac_status); } &&
17581          { ac_try='test -z "$ac_c_werror_flag"
17582                          || test ! -s conftest.err'
17583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584   (eval $ac_try) 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); }; } &&
17588          { ac_try='test -s conftest.$ac_objext'
17589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590   (eval $ac_try) 2>&5
17591   ac_status=$?
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); }; }; then
17594   gdb_cv_have_ptrace_getfpxregs=yes
17595 else
17596   echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17598
17599 gdb_cv_have_ptrace_getfpxregs=no
17600 fi
17601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17602 fi
17603
17604 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17605 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17606 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17607   cat >>confdefs.h <<\_ACEOF
17608 #define HAVE_PTRACE_GETFPXREGS 1
17609 _ACEOF
17610
17611 fi
17612
17613 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17614 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17615 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17616 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17617   echo $ECHO_N "(cached) $ECHO_C" >&6
17618 else
17619   cat >conftest.$ac_ext <<_ACEOF
17620 /* confdefs.h.  */
17621 _ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h.  */
17625 #include <sys/types.h>
17626 #include <sys/ptrace.h>
17627 int
17628 main ()
17629 {
17630 PT_GETDBREGS;
17631   ;
17632   return 0;
17633 }
17634 _ACEOF
17635 rm -f conftest.$ac_objext
17636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17637   (eval $ac_compile) 2>conftest.er1
17638   ac_status=$?
17639   grep -v '^ *+' conftest.er1 >conftest.err
17640   rm -f conftest.er1
17641   cat conftest.err >&5
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); } &&
17644          { ac_try='test -z "$ac_c_werror_flag"
17645                          || test ! -s conftest.err'
17646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647   (eval $ac_try) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; } &&
17651          { ac_try='test -s conftest.$ac_objext'
17652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653   (eval $ac_try) 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; }; then
17657   gdb_cv_have_pt_getdbregs=yes
17658 else
17659   echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662 gdb_cv_have_pt_getdbregs=no
17663 fi
17664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17665 fi
17666
17667 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17668 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17669 if test $gdb_cv_have_pt_getdbregs = yes; then
17670   cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_PT_GETDBREGS 1
17672 _ACEOF
17673
17674 fi
17675
17676 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17677 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17678 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17679 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682   cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 #include <sys/types.h>
17689 #include <sys/ptrace.h>
17690 int
17691 main ()
17692 {
17693 PT_GETXMMREGS;
17694   ;
17695   return 0;
17696 }
17697 _ACEOF
17698 rm -f conftest.$ac_objext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17700   (eval $ac_compile) 2>conftest.er1
17701   ac_status=$?
17702   grep -v '^ *+' conftest.er1 >conftest.err
17703   rm -f conftest.er1
17704   cat conftest.err >&5
17705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706   (exit $ac_status); } &&
17707          { ac_try='test -z "$ac_c_werror_flag"
17708                          || test ! -s conftest.err'
17709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710   (eval $ac_try) 2>&5
17711   ac_status=$?
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); }; } &&
17714          { ac_try='test -s conftest.$ac_objext'
17715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716   (eval $ac_try) 2>&5
17717   ac_status=$?
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); }; }; then
17720   gdb_cv_have_pt_getxmmregs=yes
17721 else
17722   echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 gdb_cv_have_pt_getxmmregs=no
17726 fi
17727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17728 fi
17729
17730 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17731 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17732 if test $gdb_cv_have_pt_getxmmregs = yes; then
17733   cat >>confdefs.h <<\_ACEOF
17734 #define HAVE_PT_GETXMMREGS 1
17735 _ACEOF
17736
17737 fi
17738
17739 # See if stdint.h provides the uintptr_t type.
17740 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
17741 echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
17742 echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
17743 if test "${gdb_cv_have_uintptr_t+set}" = set; then
17744   echo $ECHO_N "(cached) $ECHO_C" >&6
17745 else
17746   cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h.  */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h.  */
17752 #include <stdint.h>
17753 int
17754 main ()
17755 {
17756 uintptr_t foo = 0;
17757   ;
17758   return 0;
17759 }
17760 _ACEOF
17761 rm -f conftest.$ac_objext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17763   (eval $ac_compile) 2>conftest.er1
17764   ac_status=$?
17765   grep -v '^ *+' conftest.er1 >conftest.err
17766   rm -f conftest.er1
17767   cat conftest.err >&5
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } &&
17770          { ac_try='test -z "$ac_c_werror_flag"
17771                          || test ! -s conftest.err'
17772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773   (eval $ac_try) 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; } &&
17777          { ac_try='test -s conftest.$ac_objext'
17778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779   (eval $ac_try) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; }; then
17783   gdb_cv_have_uintptr_t=yes
17784 else
17785   echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 gdb_cv_have_uintptr_t=no
17789 fi
17790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17791 fi
17792 echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
17793 echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
17794 if test $gdb_cv_have_uintptr_t = yes; then
17795
17796 cat >>confdefs.h <<\_ACEOF
17797 #define HAVE_UINTPTR_T 1
17798 _ACEOF
17799
17800 fi
17801
17802 # If we are configured native on GNU/Linux, work around problems with
17803 # sys/procfs.h
17804 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17805
17806 if test "${target}" = "${host}"; then
17807   case "${host}" in
17808   i[3456]86-*-linux*)
17809         cat >>confdefs.h <<\_ACEOF
17810 #define START_INFERIOR_TRAPS_EXPECTED 2
17811 _ACEOF
17812
17813         cat >>confdefs.h <<\_ACEOF
17814 #define sys_quotactl 1
17815 _ACEOF
17816
17817         ;;
17818   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17819       cat >>confdefs.h <<\_ACEOF
17820 #define NEW_PROC_API 1
17821 _ACEOF
17822
17823       ;;
17824   *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17825       cat >>confdefs.h <<\_ACEOF
17826 #define NEW_PROC_API 1
17827 _ACEOF
17828
17829       ;;
17830   mips-sgi-irix5*)
17831       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17832       cat >>confdefs.h <<\_ACEOF
17833 #define _KMEMUSER 1
17834 _ACEOF
17835
17836       ;;
17837   esac
17838 fi
17839
17840 if test "$ac_cv_header_sys_procfs_h" = yes; then
17841   echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17842 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17843  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17844   echo $ECHO_N "(cached) $ECHO_C" >&6
17845 else
17846   cat >conftest.$ac_ext <<_ACEOF
17847 /* confdefs.h.  */
17848 _ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h.  */
17852
17853 #define _SYSCALL32
17854 #include <sys/procfs.h>
17855 int
17856 main ()
17857 {
17858 pstatus_t avar
17859   ;
17860   return 0;
17861 }
17862 _ACEOF
17863 rm -f conftest.$ac_objext
17864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17865   (eval $ac_compile) 2>conftest.er1
17866   ac_status=$?
17867   grep -v '^ *+' conftest.er1 >conftest.err
17868   rm -f conftest.er1
17869   cat conftest.err >&5
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); } &&
17872          { ac_try='test -z "$ac_c_werror_flag"
17873                          || test ! -s conftest.err'
17874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875   (eval $ac_try) 2>&5
17876   ac_status=$?
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); }; } &&
17879          { ac_try='test -s conftest.$ac_objext'
17880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881   (eval $ac_try) 2>&5
17882   ac_status=$?
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); }; }; then
17885   bfd_cv_have_sys_procfs_type_pstatus_t=yes
17886 else
17887   echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17889
17890 bfd_cv_have_sys_procfs_type_pstatus_t=no
17891
17892 fi
17893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17894 fi
17895
17896  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17897
17898 cat >>confdefs.h <<\_ACEOF
17899 #define HAVE_PSTATUS_T 1
17900 _ACEOF
17901
17902  fi
17903  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17904 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17905
17906   echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17907 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17908  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17909   echo $ECHO_N "(cached) $ECHO_C" >&6
17910 else
17911   cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h.  */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h.  */
17917
17918 #define _SYSCALL32
17919 #include <sys/procfs.h>
17920 int
17921 main ()
17922 {
17923 prrun_t avar
17924   ;
17925   return 0;
17926 }
17927 _ACEOF
17928 rm -f conftest.$ac_objext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17930   (eval $ac_compile) 2>conftest.er1
17931   ac_status=$?
17932   grep -v '^ *+' conftest.er1 >conftest.err
17933   rm -f conftest.er1
17934   cat conftest.err >&5
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); } &&
17937          { ac_try='test -z "$ac_c_werror_flag"
17938                          || test ! -s conftest.err'
17939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940   (eval $ac_try) 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; } &&
17944          { ac_try='test -s conftest.$ac_objext'
17945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946   (eval $ac_try) 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; }; then
17950   bfd_cv_have_sys_procfs_type_prrun_t=yes
17951 else
17952   echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17954
17955 bfd_cv_have_sys_procfs_type_prrun_t=no
17956
17957 fi
17958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17959 fi
17960
17961  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17962
17963 cat >>confdefs.h <<\_ACEOF
17964 #define HAVE_PRRUN_T 1
17965 _ACEOF
17966
17967  fi
17968  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17969 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17970
17971   echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17972 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17973  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17974   echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976   cat >conftest.$ac_ext <<_ACEOF
17977 /* confdefs.h.  */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h.  */
17982
17983 #define _SYSCALL32
17984 #include <sys/procfs.h>
17985 int
17986 main ()
17987 {
17988 gregset_t avar
17989   ;
17990   return 0;
17991 }
17992 _ACEOF
17993 rm -f conftest.$ac_objext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17995   (eval $ac_compile) 2>conftest.er1
17996   ac_status=$?
17997   grep -v '^ *+' conftest.er1 >conftest.err
17998   rm -f conftest.er1
17999   cat conftest.err >&5
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } &&
18002          { ac_try='test -z "$ac_c_werror_flag"
18003                          || test ! -s conftest.err'
18004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005   (eval $ac_try) 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; } &&
18009          { ac_try='test -s conftest.$ac_objext'
18010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011   (eval $ac_try) 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; }; then
18015   bfd_cv_have_sys_procfs_type_gregset_t=yes
18016 else
18017   echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18019
18020 bfd_cv_have_sys_procfs_type_gregset_t=no
18021
18022 fi
18023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18024 fi
18025
18026  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
18027
18028 cat >>confdefs.h <<\_ACEOF
18029 #define HAVE_GREGSET_T 1
18030 _ACEOF
18031
18032  fi
18033  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18034 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
18035
18036   echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18037 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
18038  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18039   echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041   cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047
18048 #define _SYSCALL32
18049 #include <sys/procfs.h>
18050 int
18051 main ()
18052 {
18053 fpregset_t avar
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 rm -f conftest.$ac_objext
18059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18060   (eval $ac_compile) 2>conftest.er1
18061   ac_status=$?
18062   grep -v '^ *+' conftest.er1 >conftest.err
18063   rm -f conftest.er1
18064   cat conftest.err >&5
18065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066   (exit $ac_status); } &&
18067          { ac_try='test -z "$ac_c_werror_flag"
18068                          || test ! -s conftest.err'
18069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070   (eval $ac_try) 2>&5
18071   ac_status=$?
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); }; } &&
18074          { ac_try='test -s conftest.$ac_objext'
18075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076   (eval $ac_try) 2>&5
18077   ac_status=$?
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); }; }; then
18080   bfd_cv_have_sys_procfs_type_fpregset_t=yes
18081 else
18082   echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18084
18085 bfd_cv_have_sys_procfs_type_fpregset_t=no
18086
18087 fi
18088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18089 fi
18090
18091  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
18092
18093 cat >>confdefs.h <<\_ACEOF
18094 #define HAVE_FPREGSET_T 1
18095 _ACEOF
18096
18097  fi
18098  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18099 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
18100
18101   echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18102 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18103  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18104   echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106   cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h.  */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h.  */
18112
18113 #define _SYSCALL32
18114 #include <sys/procfs.h>
18115 int
18116 main ()
18117 {
18118 prgregset_t avar
18119   ;
18120   return 0;
18121 }
18122 _ACEOF
18123 rm -f conftest.$ac_objext
18124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18125   (eval $ac_compile) 2>conftest.er1
18126   ac_status=$?
18127   grep -v '^ *+' conftest.er1 >conftest.err
18128   rm -f conftest.er1
18129   cat conftest.err >&5
18130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131   (exit $ac_status); } &&
18132          { ac_try='test -z "$ac_c_werror_flag"
18133                          || test ! -s conftest.err'
18134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135   (eval $ac_try) 2>&5
18136   ac_status=$?
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); }; } &&
18139          { ac_try='test -s conftest.$ac_objext'
18140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141   (eval $ac_try) 2>&5
18142   ac_status=$?
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); }; }; then
18145   bfd_cv_have_sys_procfs_type_prgregset_t=yes
18146 else
18147   echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18149
18150 bfd_cv_have_sys_procfs_type_prgregset_t=no
18151
18152 fi
18153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18154 fi
18155
18156  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
18157
18158 cat >>confdefs.h <<\_ACEOF
18159 #define HAVE_PRGREGSET_T 1
18160 _ACEOF
18161
18162  fi
18163  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18164 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
18165
18166   echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18167 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18168  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18169   echo $ECHO_N "(cached) $ECHO_C" >&6
18170 else
18171   cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h.  */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h.  */
18177
18178 #define _SYSCALL32
18179 #include <sys/procfs.h>
18180 int
18181 main ()
18182 {
18183 prfpregset_t avar
18184   ;
18185   return 0;
18186 }
18187 _ACEOF
18188 rm -f conftest.$ac_objext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18190   (eval $ac_compile) 2>conftest.er1
18191   ac_status=$?
18192   grep -v '^ *+' conftest.er1 >conftest.err
18193   rm -f conftest.er1
18194   cat conftest.err >&5
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); } &&
18197          { ac_try='test -z "$ac_c_werror_flag"
18198                          || test ! -s conftest.err'
18199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200   (eval $ac_try) 2>&5
18201   ac_status=$?
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); }; } &&
18204          { ac_try='test -s conftest.$ac_objext'
18205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206   (eval $ac_try) 2>&5
18207   ac_status=$?
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); }; }; then
18210   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
18211 else
18212   echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215 bfd_cv_have_sys_procfs_type_prfpregset_t=no
18216
18217 fi
18218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18219 fi
18220
18221  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18222
18223 cat >>confdefs.h <<\_ACEOF
18224 #define HAVE_PRFPREGSET_T 1
18225 _ACEOF
18226
18227  fi
18228  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18229 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
18230
18231   echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18232 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18233  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18234   echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236   cat >conftest.$ac_ext <<_ACEOF
18237 /* confdefs.h.  */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h.  */
18242
18243 #define _SYSCALL32
18244 #include <sys/procfs.h>
18245 int
18246 main ()
18247 {
18248 prgregset32_t avar
18249   ;
18250   return 0;
18251 }
18252 _ACEOF
18253 rm -f conftest.$ac_objext
18254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18255   (eval $ac_compile) 2>conftest.er1
18256   ac_status=$?
18257   grep -v '^ *+' conftest.er1 >conftest.err
18258   rm -f conftest.er1
18259   cat conftest.err >&5
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); } &&
18262          { ac_try='test -z "$ac_c_werror_flag"
18263                          || test ! -s conftest.err'
18264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265   (eval $ac_try) 2>&5
18266   ac_status=$?
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); }; } &&
18269          { ac_try='test -s conftest.$ac_objext'
18270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271   (eval $ac_try) 2>&5
18272   ac_status=$?
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); }; }; then
18275   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
18276 else
18277   echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18279
18280 bfd_cv_have_sys_procfs_type_prgregset32_t=no
18281
18282 fi
18283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18284 fi
18285
18286  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18287
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE_PRGREGSET32_T 1
18290 _ACEOF
18291
18292  fi
18293  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18294 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18295
18296   echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18297 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18298  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18299   echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301   cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h.  */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h.  */
18307
18308 #define _SYSCALL32
18309 #include <sys/procfs.h>
18310 int
18311 main ()
18312 {
18313 prfpregset32_t avar
18314   ;
18315   return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18320   (eval $ac_compile) 2>conftest.er1
18321   ac_status=$?
18322   grep -v '^ *+' conftest.er1 >conftest.err
18323   rm -f conftest.er1
18324   cat conftest.err >&5
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); } &&
18327          { ac_try='test -z "$ac_c_werror_flag"
18328                          || test ! -s conftest.err'
18329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330   (eval $ac_try) 2>&5
18331   ac_status=$?
18332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333   (exit $ac_status); }; } &&
18334          { ac_try='test -s conftest.$ac_objext'
18335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336   (eval $ac_try) 2>&5
18337   ac_status=$?
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); }; }; then
18340   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18341 else
18342   echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18344
18345 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18346
18347 fi
18348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18349 fi
18350
18351  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18352
18353 cat >>confdefs.h <<\_ACEOF
18354 #define HAVE_PRFPREGSET32_T 1
18355 _ACEOF
18356
18357  fi
18358  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18359 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18360
18361   echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18362 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18363  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18364   echo $ECHO_N "(cached) $ECHO_C" >&6
18365 else
18366   cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h.  */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h.  */
18372
18373 #define _SYSCALL32
18374 #include <sys/procfs.h>
18375 int
18376 main ()
18377 {
18378 lwpid_t avar
18379   ;
18380   return 0;
18381 }
18382 _ACEOF
18383 rm -f conftest.$ac_objext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18385   (eval $ac_compile) 2>conftest.er1
18386   ac_status=$?
18387   grep -v '^ *+' conftest.er1 >conftest.err
18388   rm -f conftest.er1
18389   cat conftest.err >&5
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); } &&
18392          { ac_try='test -z "$ac_c_werror_flag"
18393                          || test ! -s conftest.err'
18394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395   (eval $ac_try) 2>&5
18396   ac_status=$?
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); }; } &&
18399          { ac_try='test -s conftest.$ac_objext'
18400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401   (eval $ac_try) 2>&5
18402   ac_status=$?
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); }; }; then
18405   bfd_cv_have_sys_procfs_type_lwpid_t=yes
18406 else
18407   echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410 bfd_cv_have_sys_procfs_type_lwpid_t=no
18411
18412 fi
18413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18414 fi
18415
18416  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18417
18418 cat >>confdefs.h <<\_ACEOF
18419 #define HAVE_LWPID_T 1
18420 _ACEOF
18421
18422  fi
18423  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18424 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18425
18426   echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18427 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18428  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18429   echo $ECHO_N "(cached) $ECHO_C" >&6
18430 else
18431   cat >conftest.$ac_ext <<_ACEOF
18432 /* confdefs.h.  */
18433 _ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h.  */
18437
18438 #define _SYSCALL32
18439 #include <sys/procfs.h>
18440 int
18441 main ()
18442 {
18443 psaddr_t avar
18444   ;
18445   return 0;
18446 }
18447 _ACEOF
18448 rm -f conftest.$ac_objext
18449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18450   (eval $ac_compile) 2>conftest.er1
18451   ac_status=$?
18452   grep -v '^ *+' conftest.er1 >conftest.err
18453   rm -f conftest.er1
18454   cat conftest.err >&5
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); } &&
18457          { ac_try='test -z "$ac_c_werror_flag"
18458                          || test ! -s conftest.err'
18459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460   (eval $ac_try) 2>&5
18461   ac_status=$?
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); }; } &&
18464          { ac_try='test -s conftest.$ac_objext'
18465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466   (eval $ac_try) 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); }; }; then
18470   bfd_cv_have_sys_procfs_type_psaddr_t=yes
18471 else
18472   echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18474
18475 bfd_cv_have_sys_procfs_type_psaddr_t=no
18476
18477 fi
18478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18479 fi
18480
18481  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18482
18483 cat >>confdefs.h <<\_ACEOF
18484 #define HAVE_PSADDR_T 1
18485 _ACEOF
18486
18487  fi
18488  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18489 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18490
18491   echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18492 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18493  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18494   echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496   cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h.  */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h.  */
18502
18503 #define _SYSCALL32
18504 #include <sys/procfs.h>
18505 int
18506 main ()
18507 {
18508 prsysent_t avar
18509   ;
18510   return 0;
18511 }
18512 _ACEOF
18513 rm -f conftest.$ac_objext
18514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18515   (eval $ac_compile) 2>conftest.er1
18516   ac_status=$?
18517   grep -v '^ *+' conftest.er1 >conftest.err
18518   rm -f conftest.er1
18519   cat conftest.err >&5
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); } &&
18522          { ac_try='test -z "$ac_c_werror_flag"
18523                          || test ! -s conftest.err'
18524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525   (eval $ac_try) 2>&5
18526   ac_status=$?
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); }; } &&
18529          { ac_try='test -s conftest.$ac_objext'
18530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531   (eval $ac_try) 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); }; }; then
18535   bfd_cv_have_sys_procfs_type_prsysent_t=yes
18536 else
18537   echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18539
18540 bfd_cv_have_sys_procfs_type_prsysent_t=no
18541
18542 fi
18543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18544 fi
18545
18546  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18547
18548 cat >>confdefs.h <<\_ACEOF
18549 #define HAVE_PRSYSENT_T 1
18550 _ACEOF
18551
18552  fi
18553  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18554 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18555
18556   echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18557 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18558  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18559   echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561   cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h.  */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h.  */
18567
18568 #define _SYSCALL32
18569 #include <sys/procfs.h>
18570 int
18571 main ()
18572 {
18573 pr_sigset_t avar
18574   ;
18575   return 0;
18576 }
18577 _ACEOF
18578 rm -f conftest.$ac_objext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580   (eval $ac_compile) 2>conftest.er1
18581   ac_status=$?
18582   grep -v '^ *+' conftest.er1 >conftest.err
18583   rm -f conftest.er1
18584   cat conftest.err >&5
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); } &&
18587          { ac_try='test -z "$ac_c_werror_flag"
18588                          || test ! -s conftest.err'
18589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590   (eval $ac_try) 2>&5
18591   ac_status=$?
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); }; } &&
18594          { ac_try='test -s conftest.$ac_objext'
18595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596   (eval $ac_try) 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); }; }; then
18600   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18601 else
18602   echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18604
18605 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18606
18607 fi
18608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18609 fi
18610
18611  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18612
18613 cat >>confdefs.h <<\_ACEOF
18614 #define HAVE_PR_SIGSET_T 1
18615 _ACEOF
18616
18617  fi
18618  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18619 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18620
18621   echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18622 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18623  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632
18633 #define _SYSCALL32
18634 #include <sys/procfs.h>
18635 int
18636 main ()
18637 {
18638 pr_sigaction64_t avar
18639   ;
18640   return 0;
18641 }
18642 _ACEOF
18643 rm -f conftest.$ac_objext
18644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18645   (eval $ac_compile) 2>conftest.er1
18646   ac_status=$?
18647   grep -v '^ *+' conftest.er1 >conftest.err
18648   rm -f conftest.er1
18649   cat conftest.err >&5
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); } &&
18652          { ac_try='test -z "$ac_c_werror_flag"
18653                          || test ! -s conftest.err'
18654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655   (eval $ac_try) 2>&5
18656   ac_status=$?
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); }; } &&
18659          { ac_try='test -s conftest.$ac_objext'
18660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661   (eval $ac_try) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; }; then
18665   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18671
18672 fi
18673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18674 fi
18675
18676  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18677
18678 cat >>confdefs.h <<\_ACEOF
18679 #define HAVE_PR_SIGACTION64_T 1
18680 _ACEOF
18681
18682  fi
18683  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18684 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18685
18686   echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18687 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18688  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18689   echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18691   cat >conftest.$ac_ext <<_ACEOF
18692 /* confdefs.h.  */
18693 _ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h.  */
18697
18698 #define _SYSCALL32
18699 #include <sys/procfs.h>
18700 int
18701 main ()
18702 {
18703 pr_siginfo64_t avar
18704   ;
18705   return 0;
18706 }
18707 _ACEOF
18708 rm -f conftest.$ac_objext
18709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18710   (eval $ac_compile) 2>conftest.er1
18711   ac_status=$?
18712   grep -v '^ *+' conftest.er1 >conftest.err
18713   rm -f conftest.er1
18714   cat conftest.err >&5
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); } &&
18717          { ac_try='test -z "$ac_c_werror_flag"
18718                          || test ! -s conftest.err'
18719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720   (eval $ac_try) 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; } &&
18724          { ac_try='test -s conftest.$ac_objext'
18725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726   (eval $ac_try) 2>&5
18727   ac_status=$?
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); }; }; then
18730   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18731 else
18732   echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18734
18735 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18736
18737 fi
18738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18739 fi
18740
18741  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18742
18743 cat >>confdefs.h <<\_ACEOF
18744 #define HAVE_PR_SIGINFO64_T 1
18745 _ACEOF
18746
18747  fi
18748  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18749 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18750
18751
18752
18753
18754
18755   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18756     echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18757 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18758     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18759   echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761   if test "$cross_compiling" = yes; then
18762   gdb_cv_prfpregset_t_broken=yes
18763 else
18764   cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h.  */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h.  */
18770 #include <sys/procfs.h>
18771        int main ()
18772        {
18773          if (sizeof (prfpregset_t) == sizeof (void *))
18774            return 1;
18775          return 0;
18776        }
18777 _ACEOF
18778 rm -f conftest$ac_exeext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18780   (eval $ac_link) 2>&5
18781   ac_status=$?
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785   (eval $ac_try) 2>&5
18786   ac_status=$?
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); }; }; then
18789   gdb_cv_prfpregset_t_broken=no
18790 else
18791   echo "$as_me: program exited with status $ac_status" >&5
18792 echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18794
18795 ( exit $ac_status )
18796 gdb_cv_prfpregset_t_broken=yes
18797 fi
18798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18799 fi
18800 fi
18801
18802     echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18803 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18804     if test $gdb_cv_prfpregset_t_broken = yes; then
18805       cat >>confdefs.h <<\_ACEOF
18806 #define PRFPREGSET_T_BROKEN 1
18807 _ACEOF
18808
18809     fi
18810   fi
18811
18812
18813   echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18814 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18815   if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818   cat >conftest.$ac_ext <<_ACEOF
18819 /* confdefs.h.  */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h.  */
18824 #include <unistd.h>
18825 #include <sys/types.h>
18826 #include <sys/procfs.h>
18827
18828 int
18829 main ()
18830 {
18831
18832     int dummy;;
18833     dummy = ioctl(0, PIOCSET, &dummy);
18834
18835   ;
18836   return 0;
18837 }
18838 _ACEOF
18839 rm -f conftest.$ac_objext
18840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18841   (eval $ac_compile) 2>conftest.er1
18842   ac_status=$?
18843   grep -v '^ *+' conftest.er1 >conftest.err
18844   rm -f conftest.er1
18845   cat conftest.err >&5
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); } &&
18848          { ac_try='test -z "$ac_c_werror_flag"
18849                          || test ! -s conftest.err'
18850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851   (eval $ac_try) 2>&5
18852   ac_status=$?
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); }; } &&
18855          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18861   gdb_cv_have_procfs_piocset=yes
18862 else
18863   echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18865
18866 gdb_cv_have_procfs_piocset=no
18867 fi
18868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18869 fi
18870
18871   echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18872 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18873   if test $gdb_cv_have_procfs_piocset = yes; then
18874     cat >>confdefs.h <<\_ACEOF
18875 #define HAVE_PROCFS_PIOCSET 1
18876 _ACEOF
18877
18878   fi
18879 fi
18880
18881 if test ${host} = ${target} ; then
18882
18883   echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18884 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18885   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18886   echo $ECHO_N "(cached) $ECHO_C" >&6
18887 else
18888   cat >conftest.$ac_ext <<_ACEOF
18889 /* confdefs.h.  */
18890 _ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h.  */
18894 #include <link.h>
18895 int
18896 main ()
18897 {
18898 struct link_map lm; (void) lm.l_addr;
18899   ;
18900   return 0;
18901 }
18902 _ACEOF
18903 rm -f conftest.$ac_objext
18904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18905   (eval $ac_compile) 2>conftest.er1
18906   ac_status=$?
18907   grep -v '^ *+' conftest.er1 >conftest.err
18908   rm -f conftest.er1
18909   cat conftest.err >&5
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); } &&
18912          { ac_try='test -z "$ac_c_werror_flag"
18913                          || test ! -s conftest.err'
18914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915   (eval $ac_try) 2>&5
18916   ac_status=$?
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); }; } &&
18919          { ac_try='test -s conftest.$ac_objext'
18920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921   (eval $ac_try) 2>&5
18922   ac_status=$?
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); }; }; then
18925   gdb_cv_have_struct_link_map_with_l_members=yes
18926 else
18927   echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.$ac_ext >&5
18929
18930 gdb_cv_have_struct_link_map_with_l_members=no
18931 fi
18932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18933 fi
18934
18935   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18936 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18937   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18938     cat >>confdefs.h <<\_ACEOF
18939 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18940 _ACEOF
18941
18942   fi
18943
18944
18945   echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18946 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18947   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h.  */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h.  */
18956 #include <sys/types.h>
18957 #include <link.h>
18958 int
18959 main ()
18960 {
18961 struct link_map lm; (void) lm.lm_addr;
18962   ;
18963   return 0;
18964 }
18965 _ACEOF
18966 rm -f conftest.$ac_objext
18967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18968   (eval $ac_compile) 2>conftest.er1
18969   ac_status=$?
18970   grep -v '^ *+' conftest.er1 >conftest.err
18971   rm -f conftest.er1
18972   cat conftest.err >&5
18973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974   (exit $ac_status); } &&
18975          { ac_try='test -z "$ac_c_werror_flag"
18976                          || test ! -s conftest.err'
18977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978   (eval $ac_try) 2>&5
18979   ac_status=$?
18980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); }; } &&
18982          { ac_try='test -s conftest.$ac_objext'
18983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984   (eval $ac_try) 2>&5
18985   ac_status=$?
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); }; }; then
18988   gdb_cv_have_struct_link_map_with_lm_members=yes
18989 else
18990   echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18992
18993 gdb_cv_have_struct_link_map_with_lm_members=no
18994 fi
18995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18996 fi
18997
18998   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18999 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
19000   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
19001     cat >>confdefs.h <<\_ACEOF
19002 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
19003 _ACEOF
19004
19005   fi
19006
19007
19008   echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19009 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
19010   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19011   echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013   cat >conftest.$ac_ext <<_ACEOF
19014 /* confdefs.h.  */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h.  */
19019 #include <sys/types.h>
19020 #ifdef HAVE_NLIST_H
19021 #include <nlist.h>
19022 #endif
19023 #include <link.h>
19024 int
19025 main ()
19026 {
19027 struct so_map lm; (void) lm.som_addr;
19028   ;
19029   return 0;
19030 }
19031 _ACEOF
19032 rm -f conftest.$ac_objext
19033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19034   (eval $ac_compile) 2>conftest.er1
19035   ac_status=$?
19036   grep -v '^ *+' conftest.er1 >conftest.err
19037   rm -f conftest.er1
19038   cat conftest.err >&5
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); } &&
19041          { ac_try='test -z "$ac_c_werror_flag"
19042                          || test ! -s conftest.err'
19043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044   (eval $ac_try) 2>&5
19045   ac_status=$?
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); }; } &&
19048          { ac_try='test -s conftest.$ac_objext'
19049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050   (eval $ac_try) 2>&5
19051   ac_status=$?
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); }; }; then
19054   gdb_cv_have_struct_so_map_with_som_members=yes
19055 else
19056   echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19058
19059 gdb_cv_have_struct_so_map_with_som_members=no
19060 fi
19061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19062 fi
19063
19064   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19065 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
19066   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
19067     cat >>confdefs.h <<\_ACEOF
19068 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
19069 _ACEOF
19070
19071   fi
19072
19073
19074   echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19075 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19076   if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079   cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085 #define _SYSCALL32
19086 #include <sys/link.h>
19087 int
19088 main ()
19089 {
19090 struct link_map32 l;
19091   ;
19092   return 0;
19093 }
19094 _ACEOF
19095 rm -f conftest.$ac_objext
19096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19097   (eval $ac_compile) 2>conftest.er1
19098   ac_status=$?
19099   grep -v '^ *+' conftest.er1 >conftest.err
19100   rm -f conftest.er1
19101   cat conftest.err >&5
19102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103   (exit $ac_status); } &&
19104          { ac_try='test -z "$ac_c_werror_flag"
19105                          || test ! -s conftest.err'
19106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107   (eval $ac_try) 2>&5
19108   ac_status=$?
19109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110   (exit $ac_status); }; } &&
19111          { ac_try='test -s conftest.$ac_objext'
19112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113   (eval $ac_try) 2>&5
19114   ac_status=$?
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); }; }; then
19117   gdb_cv_have_struct_link_map32=yes
19118 else
19119   echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19121
19122 gdb_cv_have_struct_link_map32=no
19123 fi
19124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19125 fi
19126
19127   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19128 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
19129   if test $gdb_cv_have_struct_link_map32 = yes; then
19130     cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_STRUCT_LINK_MAP32 1
19132 _ACEOF
19133
19134     cat >>confdefs.h <<\_ACEOF
19135 #define _SYSCALL32 1
19136 _ACEOF
19137
19138   fi
19139 fi
19140
19141 # Check if the compiler supports the `long long' type.
19142
19143 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19144 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19145 if test "${gdb_cv_c_long_long+set}" = set; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h.  */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h.  */
19154 extern long long foo;
19155 int
19156 main ()
19157 {
19158 switch (foo & 2) { case 0: return 1; }
19159   ;
19160   return 0;
19161 }
19162 _ACEOF
19163 rm -f conftest.$ac_objext
19164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19165   (eval $ac_compile) 2>conftest.er1
19166   ac_status=$?
19167   grep -v '^ *+' conftest.er1 >conftest.err
19168   rm -f conftest.er1
19169   cat conftest.err >&5
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); } &&
19172          { ac_try='test -z "$ac_c_werror_flag"
19173                          || test ! -s conftest.err'
19174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175   (eval $ac_try) 2>&5
19176   ac_status=$?
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); }; } &&
19179          { ac_try='test -s conftest.$ac_objext'
19180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181   (eval $ac_try) 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); }; }; then
19185   gdb_cv_c_long_long=yes
19186 else
19187   echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19189
19190 gdb_cv_c_long_long=no
19191 fi
19192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19193 fi
19194 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19195 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
19196 if test $gdb_cv_c_long_long = yes; then
19197
19198 cat >>confdefs.h <<\_ACEOF
19199 #define CC_HAS_LONG_LONG 1
19200 _ACEOF
19201
19202 fi
19203
19204 # Check if the compiler and runtime support printing long longs.
19205
19206 echo "$as_me:$LINENO: checking for long long support in printf" >&5
19207 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19208 if test "${gdb_cv_printf_has_long_long+set}" = set; then
19209   echo $ECHO_N "(cached) $ECHO_C" >&6
19210 else
19211   if test "$cross_compiling" = yes; then
19212   gdb_cv_printf_has_long_long=no
19213 else
19214   cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220 $ac_includes_default
19221 int
19222 main ()
19223 {
19224 char buf[32];
19225   long long l = 0;
19226   l = (l << 16) + 0x0123;
19227   l = (l << 16) + 0x4567;
19228   l = (l << 16) + 0x89ab;
19229   l = (l << 16) + 0xcdef;
19230   sprintf (buf, "0x%016llx", l);
19231   return (strcmp ("0x0123456789abcdef", buf));
19232   ;
19233   return 0;
19234 }
19235 _ACEOF
19236 rm -f conftest$ac_exeext
19237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19238   (eval $ac_link) 2>&5
19239   ac_status=$?
19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243   (eval $ac_try) 2>&5
19244   ac_status=$?
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); }; }; then
19247   gdb_cv_printf_has_long_long=yes
19248 else
19249   echo "$as_me: program exited with status $ac_status" >&5
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19252
19253 ( exit $ac_status )
19254 gdb_cv_printf_has_long_long=no
19255 fi
19256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19257 fi
19258 fi
19259 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19260 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
19261 if test $gdb_cv_printf_has_long_long = yes; then
19262
19263 cat >>confdefs.h <<\_ACEOF
19264 #define PRINTF_HAS_LONG_LONG 1
19265 _ACEOF
19266
19267 fi
19268
19269 # Check if the compiler supports the `long double' type.  We can't use
19270 # AC_C_LONG_DOUBLE because that one does additional checks on the
19271 # constants defined in <float.h> that fail on some systems,
19272 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
19273
19274 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19275 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
19276 if test "${gdb_cv_c_long_double+set}" = set; then
19277   echo $ECHO_N "(cached) $ECHO_C" >&6
19278 else
19279   cat >conftest.$ac_ext <<_ACEOF
19280 /* confdefs.h.  */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h.  */
19285 long double foo;
19286 _ACEOF
19287 rm -f conftest.$ac_objext
19288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19289   (eval $ac_compile) 2>conftest.er1
19290   ac_status=$?
19291   grep -v '^ *+' conftest.er1 >conftest.err
19292   rm -f conftest.er1
19293   cat conftest.err >&5
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); } &&
19296          { ac_try='test -z "$ac_c_werror_flag"
19297                          || test ! -s conftest.err'
19298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299   (eval $ac_try) 2>&5
19300   ac_status=$?
19301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302   (exit $ac_status); }; } &&
19303          { ac_try='test -s conftest.$ac_objext'
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_c_long_double=yes
19310 else
19311   echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19313
19314 gdb_cv_c_long_double=no
19315 fi
19316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19317 fi
19318 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19319 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19320 if test $gdb_cv_c_long_double = yes; then
19321
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE_LONG_DOUBLE 1
19324 _ACEOF
19325
19326 fi
19327
19328 # Check if the compiler and runtime support printing long doubles.
19329
19330 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19331 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19332 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   if test "$cross_compiling" = yes; then
19336   gdb_cv_printf_has_long_double=no
19337 else
19338   cat >conftest.$ac_ext <<_ACEOF
19339 /* confdefs.h.  */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h.  */
19344 $ac_includes_default
19345 int
19346 main ()
19347 {
19348 char buf[16];
19349   long double f = 3.141592653;
19350   sprintf (buf, "%Lg", f);
19351   return (strncmp ("3.14159", buf, 7));
19352   ;
19353   return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest$ac_exeext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358   (eval $ac_link) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363   (eval $ac_try) 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); }; }; then
19367   gdb_cv_printf_has_long_double=yes
19368 else
19369   echo "$as_me: program exited with status $ac_status" >&5
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373 ( exit $ac_status )
19374 gdb_cv_printf_has_long_double=no
19375 fi
19376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19377 fi
19378 fi
19379 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19380 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19381 if test $gdb_cv_printf_has_long_double = yes; then
19382
19383 cat >>confdefs.h <<\_ACEOF
19384 #define PRINTF_HAS_LONG_DOUBLE 1
19385 _ACEOF
19386
19387 fi
19388
19389 # Check if the compiler and runtime support scanning long doubles.
19390
19391 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19392 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19393 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19394   echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396   if test "$cross_compiling" = yes; then
19397   gdb_cv_scanf_has_long_double=no
19398 else
19399   cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h.  */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h.  */
19405 #include <stdio.h>
19406 int
19407 main ()
19408 {
19409 char *buf = "3.141592653";
19410   long double f = 0;
19411   sscanf (buf, "%Lg", &f);
19412   return !(f > 3.14159 && f < 3.14160);
19413   ;
19414   return 0;
19415 }
19416 _ACEOF
19417 rm -f conftest$ac_exeext
19418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19419   (eval $ac_link) 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424   (eval $ac_try) 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; }; then
19428   gdb_cv_scanf_has_long_double=yes
19429 else
19430   echo "$as_me: program exited with status $ac_status" >&5
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 ( exit $ac_status )
19435 gdb_cv_scanf_has_long_double=no
19436 fi
19437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19438 fi
19439 fi
19440 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19441 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19442 if test $gdb_cv_scanf_has_long_double = yes; then
19443
19444 cat >>confdefs.h <<\_ACEOF
19445 #define SCANF_HAS_LONG_DOUBLE 1
19446 _ACEOF
19447
19448 fi
19449
19450 case ${host_os} in
19451 aix*)
19452   echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19453 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19454 if test "${gdb_cv_bigtoc+set}" = set; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457
19458     SAVE_LDFLAGS=$LDFLAGS
19459
19460     case $GCC in
19461     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19462     *) gdb_cv_bigtoc=-bbigtoc ;;
19463     esac
19464
19465     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19466     cat >conftest.$ac_ext <<_ACEOF
19467 /* confdefs.h.  */
19468 _ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h.  */
19472
19473 int
19474 main ()
19475 {
19476 int i;
19477   ;
19478   return 0;
19479 }
19480 _ACEOF
19481 rm -f conftest.$ac_objext conftest$ac_exeext
19482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19483   (eval $ac_link) 2>conftest.er1
19484   ac_status=$?
19485   grep -v '^ *+' conftest.er1 >conftest.err
19486   rm -f conftest.er1
19487   cat conftest.err >&5
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } &&
19490          { ac_try='test -z "$ac_c_werror_flag"
19491                          || test ! -s conftest.err'
19492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493   (eval $ac_try) 2>&5
19494   ac_status=$?
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); }; } &&
19497          { ac_try='test -s conftest$ac_exeext'
19498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499   (eval $ac_try) 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); }; }; then
19503   :
19504 else
19505   echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508 gdb_cv_bigtoc=
19509 fi
19510 rm -f conftest.err conftest.$ac_objext \
19511       conftest$ac_exeext conftest.$ac_ext
19512     LDFLAGS="${SAVE_LDFLAGS}"
19513
19514 fi
19515 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19516 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19517   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19518   ;;
19519 esac
19520
19521
19522
19523 if test ${build} = ${host} -a ${host} = ${target} ; then
19524    case ${host_os} in
19525    hpux*)
19526       echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19527 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19528       if test -f /usr/include/dce/cma_config.h ; then
19529          if test "$GCC" = "yes" ; then
19530             echo "$as_me:$LINENO: result: yes" >&5
19531 echo "${ECHO_T}yes" >&6
19532             cat >>confdefs.h <<\_ACEOF
19533 #define HAVE_HPUX_THREAD_SUPPORT 1
19534 _ACEOF
19535
19536             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19537             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19538          else
19539             echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19540 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19541          fi
19542       else
19543          echo "$as_me:$LINENO: result: no" >&5
19544 echo "${ECHO_T}no" >&6
19545       fi
19546       ;;
19547    solaris*)
19548       # See if thread_db library is around for Solaris thread debugging.
19549       # Note that we must explicitly test for version 1 of the library
19550       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19551       # the same API.
19552       echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19553 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19554       if test -f /usr/lib/libthread_db.so.1 ; then
19555          echo "$as_me:$LINENO: result: yes" >&5
19556 echo "${ECHO_T}yes" >&6
19557          cat >>confdefs.h <<\_ACEOF
19558 #define HAVE_THREAD_DB_LIB 1
19559 _ACEOF
19560
19561          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19562          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19563
19564 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19565 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19566 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19567   echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569   ac_check_lib_save_LIBS=$LIBS
19570 LIBS="-ldl  $LIBS"
19571 cat >conftest.$ac_ext <<_ACEOF
19572 /* confdefs.h.  */
19573 _ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h.  */
19577
19578 /* Override any gcc2 internal prototype to avoid an error.  */
19579 #ifdef __cplusplus
19580 extern "C"
19581 #endif
19582 /* We use char because int might match the return type of a gcc2
19583    builtin and then its argument prototype would still apply.  */
19584 char dlopen ();
19585 int
19586 main ()
19587 {
19588 dlopen ();
19589   ;
19590   return 0;
19591 }
19592 _ACEOF
19593 rm -f conftest.$ac_objext conftest$ac_exeext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19595   (eval $ac_link) 2>conftest.er1
19596   ac_status=$?
19597   grep -v '^ *+' conftest.er1 >conftest.err
19598   rm -f conftest.er1
19599   cat conftest.err >&5
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } &&
19602          { ac_try='test -z "$ac_c_werror_flag"
19603                          || test ! -s conftest.err'
19604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605   (eval $ac_try) 2>&5
19606   ac_status=$?
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); }; } &&
19609          { ac_try='test -s conftest$ac_exeext'
19610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611   (eval $ac_try) 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; }; then
19615   ac_cv_lib_dl_dlopen=yes
19616 else
19617   echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19619
19620 ac_cv_lib_dl_dlopen=no
19621 fi
19622 rm -f conftest.err conftest.$ac_objext \
19623       conftest$ac_exeext conftest.$ac_ext
19624 LIBS=$ac_check_lib_save_LIBS
19625 fi
19626 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19627 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19628 if test $ac_cv_lib_dl_dlopen = yes; then
19629   cat >>confdefs.h <<_ACEOF
19630 #define HAVE_LIBDL 1
19631 _ACEOF
19632
19633   LIBS="-ldl $LIBS"
19634
19635 fi
19636
19637          if test "$GCC" = "yes" ; then
19638             # The GNU linker requires the -export-dynamic option to make
19639             # all symbols visible in the dynamic symbol table.
19640             hold_ldflags=$LDFLAGS
19641             echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19642 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19643             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19644             cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650
19651 int
19652 main ()
19653 {
19654 int i;
19655   ;
19656   return 0;
19657 }
19658 _ACEOF
19659 rm -f conftest.$ac_objext conftest$ac_exeext
19660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19661   (eval $ac_link) 2>conftest.er1
19662   ac_status=$?
19663   grep -v '^ *+' conftest.er1 >conftest.err
19664   rm -f conftest.er1
19665   cat conftest.err >&5
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); } &&
19668          { ac_try='test -z "$ac_c_werror_flag"
19669                          || test ! -s conftest.err'
19670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671   (eval $ac_try) 2>&5
19672   ac_status=$?
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); }; } &&
19675          { ac_try='test -s conftest$ac_exeext'
19676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677   (eval $ac_try) 2>&5
19678   ac_status=$?
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); }; }; then
19681   found=yes
19682 else
19683   echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19685
19686 found=no
19687 fi
19688 rm -f conftest.err conftest.$ac_objext \
19689       conftest$ac_exeext conftest.$ac_ext
19690             LDFLAGS=$hold_ldflags
19691             echo "$as_me:$LINENO: result: $found" >&5
19692 echo "${ECHO_T}$found" >&6
19693             if test $found = yes; then
19694                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19695             fi
19696          fi
19697          # Sun randomly tweaked the prototypes in <proc_service.h>
19698          # at one point.
19699          echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19700 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19701          if test "${gdb_cv_proc_service_is_old+set}" = set; then
19702   echo $ECHO_N "(cached) $ECHO_C" >&6
19703 else
19704
19705             cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h.  */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h.  */
19711
19712                 #include <proc_service.h>
19713                 ps_err_e ps_pdwrite
19714                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
19715
19716 int
19717 main ()
19718 {
19719
19720   ;
19721   return 0;
19722 }
19723 _ACEOF
19724 rm -f conftest.$ac_objext
19725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19726   (eval $ac_compile) 2>conftest.er1
19727   ac_status=$?
19728   grep -v '^ *+' conftest.er1 >conftest.err
19729   rm -f conftest.er1
19730   cat conftest.err >&5
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); } &&
19733          { ac_try='test -z "$ac_c_werror_flag"
19734                          || test ! -s conftest.err'
19735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736   (eval $ac_try) 2>&5
19737   ac_status=$?
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); }; } &&
19740          { ac_try='test -s conftest.$ac_objext'
19741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742   (eval $ac_try) 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; }; then
19746   gdb_cv_proc_service_is_old=no
19747 else
19748   echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751 gdb_cv_proc_service_is_old=yes
19752 fi
19753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19754
19755 fi
19756
19757          echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19758 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19759          if test $gdb_cv_proc_service_is_old = yes; then
19760             cat >>confdefs.h <<\_ACEOF
19761 #define PROC_SERVICE_IS_OLD 1
19762 _ACEOF
19763
19764          fi
19765       else
19766          echo "$as_me:$LINENO: result: no" >&5
19767 echo "${ECHO_T}no" >&6
19768       fi
19769       ;;
19770    aix*)
19771       echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19772 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19773       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19774   echo $ECHO_N "(cached) $ECHO_C" >&6
19775 else
19776   cat >conftest.$ac_ext <<_ACEOF
19777 /* confdefs.h.  */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h.  */
19782 #include <sys/pthdebug.h>
19783 int
19784 main ()
19785 {
19786 #ifndef PTHDB_VERSION_3
19787                                     #error
19788                                     #endif
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext
19794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19795   (eval $ac_compile) 2>conftest.er1
19796   ac_status=$?
19797   grep -v '^ *+' conftest.er1 >conftest.err
19798   rm -f conftest.er1
19799   cat conftest.err >&5
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } &&
19802          { ac_try='test -z "$ac_c_werror_flag"
19803                          || test ! -s conftest.err'
19804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805   (eval $ac_try) 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); }; } &&
19809          { ac_try='test -s conftest.$ac_objext'
19810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811   (eval $ac_try) 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; }; then
19815   gdb_cv_have_aix_thread_debug=yes
19816 else
19817   echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 gdb_cv_have_aix_thread_debug=no
19821 fi
19822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19823 fi
19824
19825       echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19826 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19827       if test $gdb_cv_have_aix_thread_debug = yes; then
19828          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19829          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19830          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19831       fi
19832       ;;
19833    esac
19834
19835 fi
19836
19837 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19838    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19839 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19840 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19841   echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843   cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h.  */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h.  */
19849 #include <thread_db.h>
19850 int
19851 main ()
19852 {
19853 int i = TD_NOTALLOC;
19854   ;
19855   return 0;
19856 }
19857 _ACEOF
19858 rm -f conftest.$ac_objext
19859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19860   (eval $ac_compile) 2>conftest.er1
19861   ac_status=$?
19862   grep -v '^ *+' conftest.er1 >conftest.err
19863   rm -f conftest.er1
19864   cat conftest.err >&5
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); } &&
19867          { ac_try='test -z "$ac_c_werror_flag"
19868                          || test ! -s conftest.err'
19869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870   (eval $ac_try) 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; } &&
19874          { ac_try='test -s conftest.$ac_objext'
19875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876   (eval $ac_try) 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); }; }; then
19880   gdb_cv_thread_db_h_has_td_notalloc=yes
19881 else
19882   echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885 gdb_cv_thread_db_h_has_td_notalloc=no
19886
19887 fi
19888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19889
19890 fi
19891 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19892 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19893 fi
19894 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19895
19896 cat >>confdefs.h <<\_ACEOF
19897 #define THREAD_DB_HAS_TD_NOTALLOC 1
19898 _ACEOF
19899
19900 fi
19901
19902 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19903    echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19904 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19905 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19906   echo $ECHO_N "(cached) $ECHO_C" >&6
19907 else
19908   cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914 #include <sys/syscall.h>
19915 int
19916 main ()
19917 {
19918 int i = __NR_tkill;
19919   ;
19920   return 0;
19921 }
19922 _ACEOF
19923 rm -f conftest.$ac_objext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925   (eval $ac_compile) 2>conftest.er1
19926   ac_status=$?
19927   grep -v '^ *+' conftest.er1 >conftest.err
19928   rm -f conftest.er1
19929   cat conftest.err >&5
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); } &&
19932          { ac_try='test -z "$ac_c_werror_flag"
19933                          || test ! -s conftest.err'
19934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935   (eval $ac_try) 2>&5
19936   ac_status=$?
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); }; } &&
19939          { ac_try='test -s conftest.$ac_objext'
19940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941   (eval $ac_try) 2>&5
19942   ac_status=$?
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); }; }; then
19945   gdb_cv_sys_syscall_h_has_tkill=yes
19946 else
19947   echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19949
19950 gdb_cv_sys_syscall_h_has_tkill=no
19951
19952 fi
19953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19954
19955 fi
19956 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19957 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19958 fi
19959 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19960
19961 cat >>confdefs.h <<\_ACEOF
19962 #define HAVE_TKILL_SYSCALL 1
19963 _ACEOF
19964
19965 fi
19966
19967
19968
19969 # Check whether --with-sysroot or --without-sysroot was given.
19970 if test "${with_sysroot+set}" = set; then
19971   withval="$with_sysroot"
19972
19973  case ${with_sysroot} in
19974  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19975  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19976  esac
19977
19978  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19979
19980  if test "x$exec_prefix" = xNONE; then
19981   if test "x$prefix" = xNONE; then
19982    test_prefix=/usr/local
19983   else
19984    test_prefix=$prefix
19985   fi
19986  else
19987   test_prefix=$exec_prefix
19988  fi
19989  case ${TARGET_SYSTEM_ROOT} in
19990  "${test_prefix}"|"${test_prefix}/"*|\
19991  '${exec_prefix}'|'${exec_prefix}/'*)
19992    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19993    TARGET_SYSTEM_ROOT_DEFINE="$t"
19994    ;;
19995  esac
19996
19997 else
19998
19999  TARGET_SYSTEM_ROOT=
20000  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
20001
20002 fi;
20003
20004
20005
20006 # NOTE: Don't add -Wall or -Wunused, they both include
20007 # -Wunused-parameter which reports bogus warnings.
20008 # NOTE: If you add to this list, remember to update
20009 # gdb/doc/gdbint.texinfo.
20010 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
20011 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
20012 -Wunused-label -Wunused-function"
20013
20014 # GCC supports -Wuninitialized only with -O or -On, n != 0.
20015 if test x${CFLAGS+set} = xset; then
20016   case "${CFLAGS}" in
20017     *"-O0"* ) ;;
20018     *"-O"* )
20019       build_warnings="${build_warnings} -Wuninitialized"
20020     ;;
20021   esac
20022 else
20023   build_warnings="${build_warnings} -Wuninitialized"
20024 fi
20025
20026 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
20027 # -Wunused-function -Wunused-variable -Wunused-value
20028 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
20029 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
20030 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
20031 # -Woverloaded-virtual -Winline -Werror"
20032 # Check whether --enable-build-warnings or --disable-build-warnings was given.
20033 if test "${enable_build_warnings+set}" = set; then
20034   enableval="$enable_build_warnings"
20035   case "${enableval}" in
20036   yes)  ;;
20037   no)   build_warnings="-w";;
20038   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
20039         build_warnings="${build_warnings} ${t}";;
20040   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
20041         build_warnings="${t} ${build_warnings}";;
20042   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20043 esac
20044 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20045   echo "Setting compiler warning flags = $build_warnings" 6>&1
20046 fi
20047 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20048 if test "${enable_gdb_build_warnings+set}" = set; then
20049   enableval="$enable_gdb_build_warnings"
20050   case "${enableval}" in
20051   yes)  ;;
20052   no)   build_warnings="-w";;
20053   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
20054         build_warnings="${build_warnings} ${t}";;
20055   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
20056         build_warnings="${t} ${build_warnings}";;
20057   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20058 esac
20059 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20060   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20061 fi
20062 fi; WARN_CFLAGS=""
20063 WERROR_CFLAGS=""
20064 if test "x${build_warnings}" != x -a "x$GCC" = xyes
20065 then
20066     echo "$as_me:$LINENO: checking compiler warning flags" >&5
20067 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20068     # Separate out the -Werror flag as some files just cannot be
20069     # compiled with it enabled.
20070     for w in ${build_warnings}; do
20071         case $w in
20072         -Werr*) WERROR_CFLAGS=-Werror ;;
20073         *) # Check that GCC accepts it
20074             saved_CFLAGS="$CFLAGS"
20075             CFLAGS="$CFLAGS $w"
20076             cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h.  */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h.  */
20082
20083 int
20084 main ()
20085 {
20086
20087   ;
20088   return 0;
20089 }
20090 _ACEOF
20091 rm -f conftest.$ac_objext
20092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20093   (eval $ac_compile) 2>conftest.er1
20094   ac_status=$?
20095   grep -v '^ *+' conftest.er1 >conftest.err
20096   rm -f conftest.er1
20097   cat conftest.err >&5
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); } &&
20100          { ac_try='test -z "$ac_c_werror_flag"
20101                          || test ! -s conftest.err'
20102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103   (eval $ac_try) 2>&5
20104   ac_status=$?
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); }; } &&
20107          { ac_try='test -s conftest.$ac_objext'
20108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109   (eval $ac_try) 2>&5
20110   ac_status=$?
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); }; }; then
20113   WARN_CFLAGS="${WARN_CFLAGS} $w"
20114 else
20115   echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20117
20118 fi
20119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20120             CFLAGS="$saved_CFLAGS"
20121         esac
20122     done
20123     echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20124 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
20125 fi
20126
20127
20128
20129 # In the Cygwin environment, we need some additional flags.
20130 echo "$as_me:$LINENO: checking for cygwin" >&5
20131 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20132 if test "${gdb_cv_os_cygwin+set}" = set; then
20133   echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135   cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141
20142 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20143 lose
20144 #endif
20145 _ACEOF
20146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20147   $EGREP "lose" >/dev/null 2>&1; then
20148   gdb_cv_os_cygwin=yes
20149 else
20150   gdb_cv_os_cygwin=no
20151 fi
20152 rm -f conftest*
20153
20154 fi
20155 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20156 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20157
20158
20159 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20160 case ${host} in
20161   *go32* ) SER_HARDWIRE=ser-go32.o ;;
20162   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20163   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o" ;;
20164 esac
20165
20166
20167 # libreadline needs libuser32.a in a cygwin environment
20168 WIN32LIBS=
20169 if test x$gdb_cv_os_cygwin = xyes; then
20170     WIN32LIBS="-luser32"
20171     case "${target}" in
20172         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20173         ;;
20174     esac
20175 fi
20176
20177 # The ser-tcp.c module requires sockets.
20178 case ${host} in
20179   *mingw32*)
20180
20181 cat >>confdefs.h <<\_ACEOF
20182 #define USE_WIN32API 1
20183 _ACEOF
20184
20185     WIN32LIBS="$WIN32LIBS -lws2_32"
20186     ;;
20187 esac
20188
20189
20190 LIBGUI="../libgui/src/libgui.a"
20191 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20192
20193
20194
20195 WIN32LDAPP=
20196
20197
20198
20199 case "${host}" in
20200 *-*-cygwin*)
20201     configdir="win"
20202     ;;
20203 *)
20204     configdir="unix"
20205     ;;
20206 esac
20207
20208 GDBTKLIBS=
20209 if test "${enable_gdbtk}" = "yes"; then
20210
20211     # Gdbtk must have an absolute path to srcdir in order to run
20212     # properly when not installed.
20213     here=`pwd`
20214     cd ${srcdir}
20215     GDBTK_SRC_DIR=`pwd`
20216     cd $here
20217
20218
20219 #
20220 # Ok, lets find the tcl configuration
20221 # First, look for one uninstalled.
20222 # the alternative search directory is invoked by --with-tclconfig
20223 #
20224
20225 if test x"${no_tcl}" = x ; then
20226   # we reset no_tcl in case something fails here
20227   no_tcl=true
20228
20229 # Check whether --with-tclconfig or --without-tclconfig was given.
20230 if test "${with_tclconfig+set}" = set; then
20231   withval="$with_tclconfig"
20232   with_tclconfig=${withval}
20233 fi;
20234   echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20235 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20236   if test "${ac_cv_c_tclconfig+set}" = set; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239
20240
20241   # First check to see if --with-tclconfig was specified.
20242   if test x"${with_tclconfig}" != x ; then
20243     if test -f "${with_tclconfig}/tclConfig.sh" ; then
20244       ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20245     else
20246       { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20247 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20248    { (exit 1); exit 1; }; }
20249     fi
20250   fi
20251
20252   # then check for a private Tcl installation
20253   if test x"${ac_cv_c_tclconfig}" = x ; then
20254     for i in \
20255                 ../tcl \
20256                 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20257                 ../../tcl \
20258                 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20259                 ../../../tcl \
20260                 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20261       if test -f "$i/${configdir}/tclConfig.sh" ; then
20262         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20263         break
20264       fi
20265     done
20266   fi
20267   # check in a few common install locations
20268   if test x"${ac_cv_c_tclconfig}" = x ; then
20269     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20270       if test -f "$i/tclConfig.sh" ; then
20271         ac_cv_c_tclconfig=`(cd $i; pwd)`
20272         break
20273       fi
20274     done
20275   fi
20276   # check in a few other private locations
20277   if test x"${ac_cv_c_tclconfig}" = x ; then
20278     for i in \
20279                 ${srcdir}/../tcl \
20280                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20281       if test -f "$i/${configdir}/tclConfig.sh" ; then
20282         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20283         break
20284       fi
20285     done
20286   fi
20287
20288 fi
20289
20290   if test x"${ac_cv_c_tclconfig}" = x ; then
20291     TCLCONFIG="# no Tcl configs found"
20292     { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20293 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20294   else
20295     no_tcl=
20296     TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
20297     echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20298 echo "${ECHO_T}found $TCLCONFIG" >&6
20299   fi
20300 fi
20301
20302     if test -z "${no_tcl}"; then
20303
20304     . $TCLCONFIG
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332 #
20333 # Ok, lets find the tk configuration
20334 # First, look for one uninstalled.
20335 # the alternative search directory is invoked by --with-tkconfig
20336 #
20337
20338 if test x"${no_tk}" = x ; then
20339   # we reset no_tk in case something fails here
20340   no_tk=true
20341
20342 # Check whether --with-tkconfig or --without-tkconfig was given.
20343 if test "${with_tkconfig+set}" = set; then
20344   withval="$with_tkconfig"
20345   with_tkconfig=${withval}
20346 fi;
20347   echo "$as_me:$LINENO: checking for Tk configuration" >&5
20348 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20349   if test "${ac_cv_c_tkconfig+set}" = set; then
20350   echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352
20353
20354   # First check to see if --with-tkconfig was specified.
20355   if test x"${with_tkconfig}" != x ; then
20356     if test -f "${with_tkconfig}/tkConfig.sh" ; then
20357       ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20358     else
20359       { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20360 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20361    { (exit 1); exit 1; }; }
20362     fi
20363   fi
20364
20365   # then check for a private Tk library
20366   if test x"${ac_cv_c_tkconfig}" = x ; then
20367     for i in \
20368                 ../tk \
20369                 `ls -dr ../tk[4-9]* 2>/dev/null` \
20370                 ../../tk \
20371                 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20372                 ../../../tk \
20373                 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20374       if test -f "$i/${configdir}/tkConfig.sh" ; then
20375         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20376         break
20377       fi
20378     done
20379   fi
20380   # check in a few common install locations
20381   if test x"${ac_cv_c_tkconfig}" = x ; then
20382     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20383       if test -f "$i/tkConfig.sh" ; then
20384         ac_cv_c_tkconfig=`(cd $i; pwd)`
20385         break
20386       fi
20387     done
20388   fi
20389   # check in a few other private locations
20390   if test x"${ac_cv_c_tkconfig}" = x ; then
20391     for i in \
20392                 ${srcdir}/../tk \
20393                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20394       if test -f "$i/${configdir}/tkConfig.sh" ; then
20395         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20396         break
20397       fi
20398     done
20399   fi
20400
20401 fi
20402
20403   if test x"${ac_cv_c_tkconfig}" = x ; then
20404     TKCONFIG="# no Tk configs found"
20405     { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20406 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20407   else
20408     no_tk=
20409     TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20410     echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20411 echo "${ECHO_T}found $TKCONFIG" >&6
20412   fi
20413 fi
20414
20415
20416
20417         # now look for Tcl library stuff
20418
20419         tcldir="../tcl/${configdir}/"
20420
20421         TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20422
20423         # If $no_tk is nonempty, then we can't do Tk, and there is no
20424         # point to doing Tcl.
20425         if test -z "${no_tk}"; then
20426
20427     if test -f "$TKCONFIG" ; then
20428       . $TKCONFIG
20429     fi
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444 #
20445 # Ok, lets find the tcl source trees so we can use the headers
20446 # Warning: transition of version 9 to 10 will break this algorithm
20447 # because 10 sorts before 9. We also look for just tcl. We have to
20448 # be careful that we don't match stuff like tclX by accident.
20449 # the alternative search directory is involked by --with-tclinclude
20450 #
20451
20452 no_tcl=true
20453 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20454 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20455
20456 # Check whether --with-tclinclude or --without-tclinclude was given.
20457 if test "${with_tclinclude+set}" = set; then
20458   withval="$with_tclinclude"
20459   with_tclinclude=${withval}
20460 fi;
20461 if test "${ac_cv_c_tclh+set}" = set; then
20462   echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464
20465 # first check to see if --with-tclinclude was specified
20466 if test x"${with_tclinclude}" != x ; then
20467   if test -f ${with_tclinclude}/tclInt.h ; then
20468     ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20469   elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20470     ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20471   else
20472     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20473 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20474    { (exit 1); exit 1; }; }
20475   fi
20476 fi
20477
20478 # next check if it came with Tcl configuration file
20479 if test x"${ac_cv_c_tclconfig}" = x ; then
20480   if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20481     ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20482   fi
20483 fi
20484
20485 # next check in private source directory
20486 #
20487 # since ls returns lowest version numbers first, reverse its output
20488 if test x"${ac_cv_c_tclh}" = x ; then
20489   for i in \
20490                 ${srcdir}/../tcl \
20491                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20492                 ${srcdir}/../../tcl \
20493                 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20494                 ${srcdir}/../../../tcl \
20495                 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20496     if test -f $i/generic/tclInt.h ; then
20497       ac_cv_c_tclh=`(cd $i/generic; pwd)`
20498       break
20499     fi
20500   done
20501 fi
20502 # finally check in a few common install locations
20503 #
20504 # since ls returns lowest version numbers first, reverse its output
20505 if test x"${ac_cv_c_tclh}" = x ; then
20506   for i in \
20507                 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20508                 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20509                 /usr/local/src/tcl \
20510                 /usr/local/lib/tcl \
20511                 ${prefix}/include ; do
20512     if test -f $i/generic/tclInt.h ; then
20513       ac_cv_c_tclh=`(cd $i/generic; pwd)`
20514       break
20515     fi
20516   done
20517 fi
20518 # see if one is installed
20519 if test x"${ac_cv_c_tclh}" = x ; then
20520    if test "${ac_cv_header_tclInt_h+set}" = set; then
20521   echo "$as_me:$LINENO: checking for tclInt.h" >&5
20522 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20523 if test "${ac_cv_header_tclInt_h+set}" = set; then
20524   echo $ECHO_N "(cached) $ECHO_C" >&6
20525 fi
20526 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20527 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20528 else
20529   # Is the header compilable?
20530 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20531 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h.  */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h.  */
20538 $ac_includes_default
20539 #include <tclInt.h>
20540 _ACEOF
20541 rm -f conftest.$ac_objext
20542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20543   (eval $ac_compile) 2>conftest.er1
20544   ac_status=$?
20545   grep -v '^ *+' conftest.er1 >conftest.err
20546   rm -f conftest.er1
20547   cat conftest.err >&5
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); } &&
20550          { ac_try='test -z "$ac_c_werror_flag"
20551                          || test ! -s conftest.err'
20552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553   (eval $ac_try) 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); }; } &&
20557          { ac_try='test -s conftest.$ac_objext'
20558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559   (eval $ac_try) 2>&5
20560   ac_status=$?
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); }; }; then
20563   ac_header_compiler=yes
20564 else
20565   echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20567
20568 ac_header_compiler=no
20569 fi
20570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20572 echo "${ECHO_T}$ac_header_compiler" >&6
20573
20574 # Is the header present?
20575 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20576 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h.  */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h.  */
20583 #include <tclInt.h>
20584 _ACEOF
20585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20587   ac_status=$?
20588   grep -v '^ *+' conftest.er1 >conftest.err
20589   rm -f conftest.er1
20590   cat conftest.err >&5
20591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592   (exit $ac_status); } >/dev/null; then
20593   if test -s conftest.err; then
20594     ac_cpp_err=$ac_c_preproc_warn_flag
20595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20596   else
20597     ac_cpp_err=
20598   fi
20599 else
20600   ac_cpp_err=yes
20601 fi
20602 if test -z "$ac_cpp_err"; then
20603   ac_header_preproc=yes
20604 else
20605   echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608   ac_header_preproc=no
20609 fi
20610 rm -f conftest.err conftest.$ac_ext
20611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20612 echo "${ECHO_T}$ac_header_preproc" >&6
20613
20614 # So?  What about this header?
20615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20616   yes:no: )
20617     { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20618 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20619     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20620 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20621     ac_header_preproc=yes
20622     ;;
20623   no:yes:* )
20624     { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20625 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20626     { echo "$as_me:$LINENO: WARNING: tclInt.h:     check for missing prerequisite headers?" >&5
20627 echo "$as_me: WARNING: tclInt.h:     check for missing prerequisite headers?" >&2;}
20628     { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20629 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20630     { echo "$as_me:$LINENO: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&5
20631 echo "$as_me: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20632     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20633 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20634     { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20635 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20636     (
20637       cat <<\_ASBOX
20638 ## ------------------------------------------ ##
20639 ## Report this to the AC_PACKAGE_NAME lists.  ##
20640 ## ------------------------------------------ ##
20641 _ASBOX
20642     ) |
20643       sed "s/^/$as_me: WARNING:     /" >&2
20644     ;;
20645 esac
20646 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20647 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20648 if test "${ac_cv_header_tclInt_h+set}" = set; then
20649   echo $ECHO_N "(cached) $ECHO_C" >&6
20650 else
20651   ac_cv_header_tclInt_h=$ac_header_preproc
20652 fi
20653 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20654 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20655
20656 fi
20657 if test $ac_cv_header_tclInt_h = yes; then
20658   ac_cv_c_tclh=installed
20659 else
20660   ac_cv_c_tclh=""
20661 fi
20662
20663
20664 fi
20665
20666 fi
20667
20668 if test x"${ac_cv_c_tclh}" = x ; then
20669   TCLHDIR="# no Tcl private headers found"
20670   { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20671 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20672    { (exit 1); exit 1; }; }
20673 fi
20674 if test x"${ac_cv_c_tclh}" != x ; then
20675   no_tcl=""
20676   if test x"${ac_cv_c_tclh}" = x"installed" ; then
20677     echo "$as_me:$LINENO: result: is installed" >&5
20678 echo "${ECHO_T}is installed" >&6
20679     TCLHDIR=""
20680   else
20681     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20682 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20683     # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20684     TCLHDIR="-I${ac_cv_c_tclh}"
20685   fi
20686 fi
20687
20688
20689
20690
20691 #
20692 # Ok, lets find the tk source trees so we can use the headers
20693 # If the directory (presumably symlink) named "tk" exists, use that one
20694 # in preference to any others.  Same logic is used when choosing library
20695 # and again with Tcl. The search order is the best place to look first, then in
20696 # decreasing significance. The loop breaks if the trigger file is found.
20697 # Note the gross little conversion here of srcdir by cd'ing to the found
20698 # directory. This converts the path from a relative to an absolute, so
20699 # recursive cache variables for the path will work right. We check all
20700 # the possible paths in one loop rather than many seperate loops to speed
20701 # things up.
20702 # the alternative search directory is involked by --with-tkinclude
20703 #
20704 no_tk=true
20705 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20706 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20707
20708 # Check whether --with-tkinclude or --without-tkinclude was given.
20709 if test "${with_tkinclude+set}" = set; then
20710   withval="$with_tkinclude"
20711   with_tkinclude=${withval}
20712 fi;
20713 if test "${ac_cv_c_tkh+set}" = set; then
20714   echo $ECHO_N "(cached) $ECHO_C" >&6
20715 else
20716
20717 # first check to see if --with-tkinclude was specified
20718 if test x"${with_tkinclude}" != x ; then
20719   if test -f ${with_tkinclude}/tk.h ; then
20720     ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20721   elif test -f ${with_tkinclude}/generic/tk.h ; then
20722     ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20723   else
20724     { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20725 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20726    { (exit 1); exit 1; }; }
20727   fi
20728 fi
20729
20730 # next check if it came with Tk configuration file
20731 if test x"${ac_cv_c_tkconfig}" = x ; then
20732   if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20733     ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20734   fi
20735 fi
20736
20737 # next check in private source directory
20738 #
20739 # since ls returns lowest version numbers first, reverse its output
20740 if test x"${ac_cv_c_tkh}" = x ; then
20741   for i in \
20742                 ${srcdir}/../tk \
20743                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20744                 ${srcdir}/../../tk \
20745                 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20746                 ${srcdir}/../../../tk \
20747                 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20748     if test -f $i/generic/tk.h ; then
20749       ac_cv_c_tkh=`(cd $i/generic; pwd)`
20750       break
20751     fi
20752   done
20753 fi
20754 # finally check in a few common install locations
20755 #
20756 # since ls returns lowest version numbers first, reverse its output
20757 if test x"${ac_cv_c_tkh}" = x ; then
20758   for i in \
20759                 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20760                 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20761                 /usr/local/src/tk \
20762                 /usr/local/lib/tk \
20763                 ${prefix}/include ; do
20764     if test -f $i/generic/tk.h ; then
20765       ac_cv_c_tkh=`(cd $i/generic; pwd)`
20766       break
20767     fi
20768   done
20769 fi
20770 # see if one is installed
20771 if test x"${ac_cv_c_tkh}" = x ; then
20772    if test "${ac_cv_header_tk_h+set}" = set; then
20773   echo "$as_me:$LINENO: checking for tk.h" >&5
20774 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20775 if test "${ac_cv_header_tk_h+set}" = set; then
20776   echo $ECHO_N "(cached) $ECHO_C" >&6
20777 fi
20778 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20779 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20780 else
20781   # Is the header compilable?
20782 echo "$as_me:$LINENO: checking tk.h usability" >&5
20783 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20784 cat >conftest.$ac_ext <<_ACEOF
20785 /* confdefs.h.  */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h.  */
20790 $ac_includes_default
20791 #include <tk.h>
20792 _ACEOF
20793 rm -f conftest.$ac_objext
20794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20795   (eval $ac_compile) 2>conftest.er1
20796   ac_status=$?
20797   grep -v '^ *+' conftest.er1 >conftest.err
20798   rm -f conftest.er1
20799   cat conftest.err >&5
20800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801   (exit $ac_status); } &&
20802          { ac_try='test -z "$ac_c_werror_flag"
20803                          || test ! -s conftest.err'
20804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805   (eval $ac_try) 2>&5
20806   ac_status=$?
20807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808   (exit $ac_status); }; } &&
20809          { ac_try='test -s conftest.$ac_objext'
20810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811   (eval $ac_try) 2>&5
20812   ac_status=$?
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); }; }; then
20815   ac_header_compiler=yes
20816 else
20817   echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20819
20820 ac_header_compiler=no
20821 fi
20822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20824 echo "${ECHO_T}$ac_header_compiler" >&6
20825
20826 # Is the header present?
20827 echo "$as_me:$LINENO: checking tk.h presence" >&5
20828 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20829 cat >conftest.$ac_ext <<_ACEOF
20830 /* confdefs.h.  */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h.  */
20835 #include <tk.h>
20836 _ACEOF
20837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20839   ac_status=$?
20840   grep -v '^ *+' conftest.er1 >conftest.err
20841   rm -f conftest.er1
20842   cat conftest.err >&5
20843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844   (exit $ac_status); } >/dev/null; then
20845   if test -s conftest.err; then
20846     ac_cpp_err=$ac_c_preproc_warn_flag
20847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20848   else
20849     ac_cpp_err=
20850   fi
20851 else
20852   ac_cpp_err=yes
20853 fi
20854 if test -z "$ac_cpp_err"; then
20855   ac_header_preproc=yes
20856 else
20857   echo "$as_me: failed program was:" >&5
20858 sed 's/^/| /' conftest.$ac_ext >&5
20859
20860   ac_header_preproc=no
20861 fi
20862 rm -f conftest.err conftest.$ac_ext
20863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20864 echo "${ECHO_T}$ac_header_preproc" >&6
20865
20866 # So?  What about this header?
20867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20868   yes:no: )
20869     { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20870 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20871     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20872 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20873     ac_header_preproc=yes
20874     ;;
20875   no:yes:* )
20876     { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20877 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20878     { echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
20879 echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
20880     { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20881 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20882     { echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
20883 echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20884     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20885 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20886     { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20887 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20888     (
20889       cat <<\_ASBOX
20890 ## ------------------------------------------ ##
20891 ## Report this to the AC_PACKAGE_NAME lists.  ##
20892 ## ------------------------------------------ ##
20893 _ASBOX
20894     ) |
20895       sed "s/^/$as_me: WARNING:     /" >&2
20896     ;;
20897 esac
20898 echo "$as_me:$LINENO: checking for tk.h" >&5
20899 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20900 if test "${ac_cv_header_tk_h+set}" = set; then
20901   echo $ECHO_N "(cached) $ECHO_C" >&6
20902 else
20903   ac_cv_header_tk_h=$ac_header_preproc
20904 fi
20905 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20906 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20907
20908 fi
20909 if test $ac_cv_header_tk_h = yes; then
20910   ac_cv_c_tkh=installed
20911 else
20912   ac_cv_c_tkh=""
20913 fi
20914
20915
20916 fi
20917
20918 fi
20919
20920 if test x"${ac_cv_c_tkh}" != x ; then
20921   no_tk=""
20922   if test x"${ac_cv_c_tkh}" = x"installed" ; then
20923     echo "$as_me:$LINENO: result: is installed" >&5
20924 echo "${ECHO_T}is installed" >&6
20925     TKHDIR=""
20926   else
20927     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20928 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20929     # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20930     TKHDIR="-I${ac_cv_c_tkh}"
20931   fi
20932 else
20933   TKHDIR="# no Tk directory found"
20934   { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20935 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20936   no_tk=true
20937 fi
20938
20939
20940
20941
20942 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20943 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20944 if test x"${ac_cv_c_itclh}" = x ; then
20945   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20946     if test -f $i/generic/itcl.h ; then
20947       ac_cv_c_itclh=`(cd $i/generic; pwd)`
20948       break
20949     fi
20950   done
20951 fi
20952 if test x"${ac_cv_c_itclh}" = x ; then
20953   ITCLHDIR="# no Itcl private headers found"
20954   { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20955 echo "$as_me: error: Can't find Itcl private headers" >&2;}
20956    { (exit 1); exit 1; }; }
20957 fi
20958 if test x"${ac_cv_c_itclh}" != x ; then
20959      ITCLHDIR="-I${ac_cv_c_itclh}"
20960 fi
20961 # should always be here
20962 #     ITCLLIB="../itcl/itcl/unix/libitcl.a"
20963
20964 #AC_SUBST(ITCLLIB)
20965
20966
20967 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20968 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20969 if test x"${ac_cv_c_itkh}" = x ; then
20970   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20971     if test -f $i/generic/itk.h ; then
20972       ac_cv_c_itkh=`(cd $i/generic; pwd)`
20973       break
20974     fi
20975   done
20976 fi
20977 if test x"${ac_cv_c_itkh}" = x ; then
20978   ITKHDIR="# no Itk private headers found"
20979   { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20980 echo "$as_me: error: Can't find Itk private headers" >&2;}
20981    { (exit 1); exit 1; }; }
20982 fi
20983 if test x"${ac_cv_c_itkh}" != x ; then
20984      ITKHDIR="-I${ac_cv_c_itkh}"
20985 fi
20986 # should always be here
20987 #     ITKLIB="../itcl/itk/unix/libitk.a"
20988
20989 #AC_SUBST(ITKLIB)
20990
20991
20992
20993            # now look for Tk library stuff
20994
20995            tkdir="../tk/${configdir}/"
20996
20997            TK_DEPS="${tkdir}${TK_LIB_FILE}"
20998
20999            # now look for Itcl library stuff
21000
21001
21002 #
21003 # Ok, lets find the itcl configuration
21004 # First, look for one uninstalled.
21005 # the alternative search directory is invoked by --with-itclconfig
21006 #
21007
21008 if test x"${no_itcl}" = x ; then
21009   # we reset no_itcl in case something fails here
21010   no_itcl=true
21011
21012 # Check whether --with-itclconfig or --without-itclconfig was given.
21013 if test "${with_itclconfig+set}" = set; then
21014   withval="$with_itclconfig"
21015   with_itclconfig=${withval}
21016 fi;
21017   echo "$as_me:$LINENO: checking for Itcl configuration" >&5
21018 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
21019   if test "${ac_cv_c_itclconfig+set}" = set; then
21020   echo $ECHO_N "(cached) $ECHO_C" >&6
21021 else
21022
21023
21024   # First check to see if --with-itclconfig was specified.
21025   if test x"${with_itclconfig}" != x ; then
21026     if test -f "${with_itclconfig}/itclConfig.sh" ; then
21027       ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
21028     else
21029       { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
21030 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
21031    { (exit 1); exit 1; }; }
21032     fi
21033   fi
21034
21035   # then check for a private Itcl library
21036   if test x"${ac_cv_c_itclconfig}" = x ; then
21037     for i in \
21038                 ../itcl/itcl \
21039                 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
21040                 ../../itcl \
21041                 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
21042                 ../../../itcl \
21043                 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
21044       if test -f "$i/itclConfig.sh" ; then
21045         ac_cv_c_itclconfig=`(cd $i; pwd)`
21046         break
21047       fi
21048     done
21049   fi
21050   # check in a few common install locations
21051   if test x"${ac_cv_c_itclconfig}" = x ; then
21052     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21053       if test -f "$i/itclConfig.sh" ; then
21054         ac_cv_c_itclconfig=`(cd $i; pwd)`
21055         break
21056       fi
21057     done
21058   fi
21059   # check in a few other private locations
21060   if test x"${ac_cv_c_itclconfig}" = x ; then
21061     for i in \
21062                 ${srcdir}/../itcl/itcl \
21063                 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21064       if test -f "$i/itclConfig.sh" ; then
21065         ac_cv_c_itclconfig=`(cd $i; pwd)`
21066         break
21067       fi
21068     done
21069   fi
21070
21071 fi
21072
21073   if test x"${ac_cv_c_itclconfig}" = x ; then
21074     ITCLCONFIG="# no Itcl configs found"
21075     { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21076 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
21077   else
21078     no_itcl=
21079     ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
21080     echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21081 echo "${ECHO_T}found $ITCLCONFIG" >&6
21082   fi
21083 fi
21084
21085            if test -z "${no_itcl}"; then
21086
21087     if test -f "$ITCLCONFIG" ; then
21088       . $ITCLCONFIG
21089     fi
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102              ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
21103              ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
21104            fi
21105
21106
21107            # now look for Itk library stuff
21108
21109 #
21110 # Ok, lets find the itk configuration
21111 # First, look for one uninstalled.
21112 # the alternative search directory is invoked by --with-itkconfig
21113 #
21114
21115 if test x"${no_itk}" = x ; then
21116   # we reset no_itk in case something fails here
21117   no_itk=true
21118
21119 # Check whether --with-itkconfig or --without-itkconfig was given.
21120 if test "${with_itkconfig+set}" = set; then
21121   withval="$with_itkconfig"
21122   with_itkconfig=${withval}
21123 fi;
21124   echo "$as_me:$LINENO: checking for Itk configuration" >&5
21125 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21126   if test "${ac_cv_c_itkconfig+set}" = set; then
21127   echo $ECHO_N "(cached) $ECHO_C" >&6
21128 else
21129
21130
21131   # First check to see if --with-itkconfig was specified.
21132   if test x"${with_itkconfig}" != x ; then
21133     if test -f "${with_itkconfig}/itkConfig.sh" ; then
21134       ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21135     else
21136       { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21137 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21138    { (exit 1); exit 1; }; }
21139     fi
21140   fi
21141
21142   # then check for a private Itk library
21143   if test x"${ac_cv_c_itkconfig}" = x ; then
21144     for i in \
21145                 ../itcl/itk \
21146                 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21147                 ../../itk \
21148                 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21149                 ../../../itk \
21150                 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21151       if test -f "$i/itkConfig.sh" ; then
21152         ac_cv_c_itkconfig=`(cd $i; pwd)`
21153         break
21154       fi
21155     done
21156   fi
21157   # check in a few common install locations
21158   if test x"${ac_cv_c_itkconfig}" = x ; then
21159     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21160       if test -f "$i/itkConfig.sh" ; then
21161         ac_cv_c_itkconfig=`(cd $i; pwd)`
21162         break
21163       fi
21164     done
21165   fi
21166   # check in a few other private locations
21167   if test x"${ac_cv_c_itkconfig}" = x ; then
21168     for i in \
21169                 ${srcdir}/../itcl/itk \
21170                 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21171       if test -f "$i/itkConfig.sh" ; then
21172         ac_cv_c_itkconfig=`(cd $i; pwd)`
21173         break
21174       fi
21175     done
21176   fi
21177
21178 fi
21179
21180   if test x"${ac_cv_c_itkconfig}" = x ; then
21181     ITKCONFIG="# no Itk configs found"
21182     { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21183 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
21184   else
21185     no_itk=
21186     ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
21187     echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21188 echo "${ECHO_T}found $ITKCONFIG" >&6
21189   fi
21190 fi
21191
21192
21193            if test -z "${no_itcl}"; then
21194
21195     if test -f "$ITKCONFIG" ; then
21196       . $ITKCONFIG
21197     fi
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210              ITKLIB="${ITK_BUILD_LIB_SPEC}"
21211              ITK_DEPS="${ITK_LIB_FULL_PATH}"
21212            fi
21213
21214            ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
21215
21216            # Include some libraries that Tcl and Tk want.
21217            TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
21218            # Yes, the ordering seems wrong here.  But it isn't.
21219            # TK_LIBS is the list of libraries that need to be linked
21220            # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
21221            # were in LIBS then any link tests after this point would
21222            # try to include things like `$(LIBGUI)', which wouldn't work.
21223            GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
21224
21225            CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21226            CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21227            CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
21228            CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21229            CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21230            CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21231            CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
21232
21233            if test x$gdb_cv_os_cygwin = xyes; then
21234               WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21235               WIN32LDAPP="-Wl,--subsystem,console"
21236               CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21237            fi
21238         fi
21239     fi
21240
21241
21242
21243 subdirs="$subdirs gdbtk"
21244
21245 fi
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260 echo "$as_me:$LINENO: checking for X" >&5
21261 echo $ECHO_N "checking for X... $ECHO_C" >&6
21262
21263
21264 # Check whether --with-x or --without-x was given.
21265 if test "${with_x+set}" = set; then
21266   withval="$with_x"
21267
21268 fi;
21269 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21270 if test "x$with_x" = xno; then
21271   # The user explicitly disabled X.
21272   have_x=disabled
21273 else
21274   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21275     # Both variables are already set.
21276     have_x=yes
21277   else
21278     if test "${ac_cv_have_x+set}" = set; then
21279   echo $ECHO_N "(cached) $ECHO_C" >&6
21280 else
21281   # One or both of the vars are not set, and there is no cached value.
21282 ac_x_includes=no ac_x_libraries=no
21283 rm -fr conftest.dir
21284 if mkdir conftest.dir; then
21285   cd conftest.dir
21286   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21287   cat >Imakefile <<'_ACEOF'
21288 acfindx:
21289         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21290 _ACEOF
21291   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21292     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21293     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21294     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21295     for ac_extension in a so sl; do
21296       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21297          test -f $ac_im_libdir/libX11.$ac_extension; then
21298         ac_im_usrlibdir=$ac_im_libdir; break
21299       fi
21300     done
21301     # Screen out bogus values from the imake configuration.  They are
21302     # bogus both because they are the default anyway, and because
21303     # using them would break gcc on systems where it needs fixed includes.
21304     case $ac_im_incroot in
21305         /usr/include) ;;
21306         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21307     esac
21308     case $ac_im_usrlibdir in
21309         /usr/lib | /lib) ;;
21310         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21311     esac
21312   fi
21313   cd ..
21314   rm -fr conftest.dir
21315 fi
21316
21317 # Standard set of common directories for X headers.
21318 # Check X11 before X11Rn because it is often a symlink to the current release.
21319 ac_x_header_dirs='
21320 /usr/X11/include
21321 /usr/X11R6/include
21322 /usr/X11R5/include
21323 /usr/X11R4/include
21324
21325 /usr/include/X11
21326 /usr/include/X11R6
21327 /usr/include/X11R5
21328 /usr/include/X11R4
21329
21330 /usr/local/X11/include
21331 /usr/local/X11R6/include
21332 /usr/local/X11R5/include
21333 /usr/local/X11R4/include
21334
21335 /usr/local/include/X11
21336 /usr/local/include/X11R6
21337 /usr/local/include/X11R5
21338 /usr/local/include/X11R4
21339
21340 /usr/X386/include
21341 /usr/x386/include
21342 /usr/XFree86/include/X11
21343
21344 /usr/include
21345 /usr/local/include
21346 /usr/unsupported/include
21347 /usr/athena/include
21348 /usr/local/x11r5/include
21349 /usr/lpp/Xamples/include
21350
21351 /usr/openwin/include
21352 /usr/openwin/share/include'
21353
21354 if test "$ac_x_includes" = no; then
21355   # Guess where to find include files, by looking for Intrinsic.h.
21356   # First, try using that file with no special directory specified.
21357   cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h.  */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h.  */
21363 #include <X11/Intrinsic.h>
21364 _ACEOF
21365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21367   ac_status=$?
21368   grep -v '^ *+' conftest.er1 >conftest.err
21369   rm -f conftest.er1
21370   cat conftest.err >&5
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } >/dev/null; then
21373   if test -s conftest.err; then
21374     ac_cpp_err=$ac_c_preproc_warn_flag
21375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21376   else
21377     ac_cpp_err=
21378   fi
21379 else
21380   ac_cpp_err=yes
21381 fi
21382 if test -z "$ac_cpp_err"; then
21383   # We can compile using X headers with no special include directory.
21384 ac_x_includes=
21385 else
21386   echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21388
21389   for ac_dir in $ac_x_header_dirs; do
21390   if test -r "$ac_dir/X11/Intrinsic.h"; then
21391     ac_x_includes=$ac_dir
21392     break
21393   fi
21394 done
21395 fi
21396 rm -f conftest.err conftest.$ac_ext
21397 fi # $ac_x_includes = no
21398
21399 if test "$ac_x_libraries" = no; then
21400   # Check for the libraries.
21401   # See if we find them without any special options.
21402   # Don't add to $LIBS permanently.
21403   ac_save_LIBS=$LIBS
21404   LIBS="-lXt $LIBS"
21405   cat >conftest.$ac_ext <<_ACEOF
21406 /* confdefs.h.  */
21407 _ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h.  */
21411 #include <X11/Intrinsic.h>
21412 int
21413 main ()
21414 {
21415 XtMalloc (0)
21416   ;
21417   return 0;
21418 }
21419 _ACEOF
21420 rm -f conftest.$ac_objext conftest$ac_exeext
21421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21422   (eval $ac_link) 2>conftest.er1
21423   ac_status=$?
21424   grep -v '^ *+' conftest.er1 >conftest.err
21425   rm -f conftest.er1
21426   cat conftest.err >&5
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } &&
21429          { ac_try='test -z "$ac_c_werror_flag"
21430                          || test ! -s conftest.err'
21431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432   (eval $ac_try) 2>&5
21433   ac_status=$?
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); }; } &&
21436          { ac_try='test -s conftest$ac_exeext'
21437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438   (eval $ac_try) 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); }; }; then
21442   LIBS=$ac_save_LIBS
21443 # We can link X programs with no special library path.
21444 ac_x_libraries=
21445 else
21446   echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21448
21449 LIBS=$ac_save_LIBS
21450 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21451 do
21452   # Don't even attempt the hair of trying to link an X program!
21453   for ac_extension in a so sl; do
21454     if test -r $ac_dir/libXt.$ac_extension; then
21455       ac_x_libraries=$ac_dir
21456       break 2
21457     fi
21458   done
21459 done
21460 fi
21461 rm -f conftest.err conftest.$ac_objext \
21462       conftest$ac_exeext conftest.$ac_ext
21463 fi # $ac_x_libraries = no
21464
21465 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21466   # Didn't find X anywhere.  Cache the known absence of X.
21467   ac_cv_have_x="have_x=no"
21468 else
21469   # Record where we found X for the cache.
21470   ac_cv_have_x="have_x=yes \
21471                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21472 fi
21473 fi
21474
21475   fi
21476   eval "$ac_cv_have_x"
21477 fi # $with_x != no
21478
21479 if test "$have_x" != yes; then
21480   echo "$as_me:$LINENO: result: $have_x" >&5
21481 echo "${ECHO_T}$have_x" >&6
21482   no_x=yes
21483 else
21484   # If each of the values was on the command line, it overrides each guess.
21485   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21486   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21487   # Update the cache value to reflect the command line values.
21488   ac_cv_have_x="have_x=yes \
21489                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21490   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21491 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21492 fi
21493
21494
21495 # Check whether we should enable the TUI, but only do so if we really
21496 # can.
21497 if test x"$enable_tui" = xyes; then
21498   if test -d $srcdir/tui; then
21499     if test "$ac_cv_search_waddstr" != no; then
21500       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21501       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21502       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21503       CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21504       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21505       CONFIG_ALL="${CONFIG_ALL} all-tui"
21506       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21507       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21508       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21509     else
21510       { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21511 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21512     fi
21513   fi
21514 fi
21515
21516 # Unlike the sim directory, whether a simulator is linked is controlled by
21517 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21518 # This code just checks for a few cases where we'd like to ignore those
21519 # definitions, even when they're present in the '.mt' file.  These cases
21520 # are when --disable-sim is specified, or if the simulator directory is
21521 # not part of the source tree.
21522 #
21523 # Check whether --enable-sim or --disable-sim was given.
21524 if test "${enable_sim+set}" = set; then
21525   enableval="$enable_sim"
21526   echo "enable_sim = $enable_sim";
21527  echo "enableval = ${enableval}";
21528  case "${enableval}" in
21529   yes) ignore_sim=false ;;
21530   no)  ignore_sim=true ;;
21531   *)   ignore_sim=false ;;
21532  esac
21533 else
21534   ignore_sim=false
21535 fi;
21536
21537 if test ! -d "${srcdir}/../sim"; then
21538   ignore_sim=true
21539 fi
21540
21541 if test "${ignore_sim}" = "true"; then
21542     IGNORE_SIM="SIM="
21543     IGNORE_SIM_OBS="SIM_OBS="
21544 else
21545     IGNORE_SIM=""
21546     IGNORE_SIM_OBS=""
21547     cat >>confdefs.h <<\_ACEOF
21548 #define WITH_SIM 1
21549 _ACEOF
21550
21551 fi
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566 # List of host floatformats.
21567
21568 cat >>confdefs.h <<_ACEOF
21569 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21570 _ACEOF
21571
21572
21573 cat >>confdefs.h <<_ACEOF
21574 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21575 _ACEOF
21576
21577
21578 cat >>confdefs.h <<_ACEOF
21579 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21580 _ACEOF
21581
21582
21583 # target_subdir is used by the testsuite to find the target libraries.
21584 target_subdir=
21585 if test "${host}" != "${target}"; then
21586     target_subdir="${target_alias}/"
21587 fi
21588
21589
21590 frags=
21591 if test "${target}" = "${host}"; then
21592   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21593   if test ! -f ${host_makefile_frag}; then
21594     { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21595 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21596    { (exit 1); exit 1; }; }
21597   fi
21598   frags="$frags $host_makefile_frag"
21599 else
21600   host_makefile_frag=/dev/null
21601 fi
21602
21603 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21604 if test ! -f ${target_makefile_frag}; then
21605   { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21606 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21607    { (exit 1); exit 1; }; }
21608 fi
21609 frags="$frags $target_makefile_frag"
21610
21611
21612
21613
21614
21615 hostfile=`sed -n '
21616 s/XM_FILE[      ]*=[    ]*\([^  ]*\)/\1/p
21617 ' ${host_makefile_frag}`
21618
21619 targetfile=`sed -n '
21620 s/DEPRECATED_TM_FILE[   ]*=[    ]*\([^  ]*\)/\1/p
21621 ' ${target_makefile_frag}`
21622
21623 if test "${target}" = "${host}"; then
21624 # We pick this up from the host configuration file (.mh) because we
21625 # do not have a native configuration Makefile fragment.
21626 nativefile=`sed -n '
21627 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
21628 ' ${host_makefile_frag}`
21629 fi
21630
21631
21632 if test x"${gdb_osabi}" != x ; then
21633
21634 cat >>confdefs.h <<_ACEOF
21635 #define GDB_OSABI_DEFAULT $gdb_osabi
21636 _ACEOF
21637
21638 fi
21639
21640 # Enable multi-ice-gdb-server.
21641 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21642 if test "${enable_multi_ice+set}" = set; then
21643   enableval="$enable_multi_ice"
21644   case $enableval in
21645     yes | no)
21646       ;;
21647     *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21648 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21649    { (exit 1); exit 1; }; } ;;
21650   esac
21651 fi;
21652 if test "x$enable_multi_ice" = xyes; then
21653
21654
21655 subdirs="$subdirs multi-ice"
21656
21657 fi
21658
21659 # We only build gdbserver automatically if host and target are the same.
21660 if test "x$target" = "x$host"; then
21661   echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21662 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21663   if test "x$build_gdbserver" = xyes; then
21664     echo "$as_me:$LINENO: result: yes" >&5
21665 echo "${ECHO_T}yes" >&6
21666
21667
21668 subdirs="$subdirs gdbserver"
21669
21670   else
21671     echo "$as_me:$LINENO: result: no" >&5
21672 echo "${ECHO_T}no" >&6
21673   fi
21674 fi
21675
21676 # We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21677 if test "x$build_rdi_share" = xyes; then
21678
21679
21680 subdirs="$subdirs rdi-share"
21681
21682 fi
21683
21684 # We configure the nlm subdirectory on netware targets, as instructed
21685 # by configure.tgt.
21686 if test "x$build_nlm" = xyes; then
21687
21688
21689 subdirs="$subdirs nlm"
21690
21691 fi
21692
21693 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21694 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21695 # to an empty version.
21696
21697 files=
21698 links=
21699
21700 rm -f xm.h
21701 xm_h=""
21702 if test "${hostfile}" != ""; then
21703     xm_h=xm.h
21704     case "${hostfile}" in
21705       xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21706       * ) GDB_XM_FILE="${hostfile}"
21707     esac
21708     files="${files} ${GDB_XM_FILE}"
21709     links="${links} xm.h"
21710     cat >>confdefs.h <<_ACEOF
21711 #define GDB_XM_FILE "${GDB_XM_FILE}"
21712 _ACEOF
21713
21714 fi
21715
21716
21717 rm -f tm.h
21718 tm_h=""
21719 if test "${targetfile}" != ""; then
21720     tm_h=tm.h
21721     case "${targetfile}" in
21722       tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21723       * ) GDB_TM_FILE="${targetfile}"
21724     esac
21725     files="${files} ${GDB_TM_FILE}"
21726     links="${links} tm.h"
21727     cat >>confdefs.h <<_ACEOF
21728 #define GDB_TM_FILE "${GDB_TM_FILE}"
21729 _ACEOF
21730
21731 fi
21732
21733
21734 rm -f nm.h
21735 nm_h=""
21736 if test "${nativefile}" != ""; then
21737     nm_h=nm.h
21738     case "${nativefile}" in
21739       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21740       * ) GDB_NM_FILE="${nativefile}"
21741     esac
21742     files="${files} ${GDB_NM_FILE}"
21743     links="${links} nm.h"
21744     cat >>confdefs.h <<_ACEOF
21745 #define GDB_NM_FILE "${GDB_NM_FILE}"
21746 _ACEOF
21747
21748 fi
21749
21750
21751 ac_sources="$files"
21752 ac_dests="$links"
21753 while test -n "$ac_sources"; do
21754   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21755   set $ac_sources; ac_source=$1; shift; ac_sources=$*
21756   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21757 done
21758           ac_config_links="$ac_config_links $ac_config_links_1"
21759
21760
21761
21762
21763
21764
21765 cat >>confdefs.h <<\_ACEOF
21766 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21767 _ACEOF
21768
21769
21770
21771
21772
21773 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21774 if test "${with_libiconv_prefix+set}" = set; then
21775   withval="$with_libiconv_prefix"
21776
21777     for dir in `echo "$withval" | tr : ' '`; do
21778       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21779       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21780     done
21781
21782 fi;
21783
21784   echo "$as_me:$LINENO: checking for iconv" >&5
21785 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21786 if test "${am_cv_func_iconv+set}" = set; then
21787   echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789
21790     am_cv_func_iconv="no, consider installing GNU libiconv"
21791     am_cv_lib_iconv=no
21792     cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h.  */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h.  */
21798 #include <stdlib.h>
21799 #include <iconv.h>
21800 int
21801 main ()
21802 {
21803 iconv_t cd = iconv_open("","");
21804        iconv(cd,NULL,NULL,NULL,NULL);
21805        iconv_close(cd);
21806   ;
21807   return 0;
21808 }
21809 _ACEOF
21810 rm -f conftest.$ac_objext conftest$ac_exeext
21811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21812   (eval $ac_link) 2>conftest.er1
21813   ac_status=$?
21814   grep -v '^ *+' conftest.er1 >conftest.err
21815   rm -f conftest.er1
21816   cat conftest.err >&5
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); } &&
21819          { ac_try='test -z "$ac_c_werror_flag"
21820                          || test ! -s conftest.err'
21821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822   (eval $ac_try) 2>&5
21823   ac_status=$?
21824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825   (exit $ac_status); }; } &&
21826          { ac_try='test -s conftest$ac_exeext'
21827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828   (eval $ac_try) 2>&5
21829   ac_status=$?
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); }; }; then
21832   am_cv_func_iconv=yes
21833 else
21834   echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21836
21837 fi
21838 rm -f conftest.err conftest.$ac_objext \
21839       conftest$ac_exeext conftest.$ac_ext
21840     if test "$am_cv_func_iconv" != yes; then
21841       am_save_LIBS="$LIBS"
21842       LIBS="$LIBS -liconv"
21843       cat >conftest.$ac_ext <<_ACEOF
21844 /* confdefs.h.  */
21845 _ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h.  */
21849 #include <stdlib.h>
21850 #include <iconv.h>
21851 int
21852 main ()
21853 {
21854 iconv_t cd = iconv_open("","");
21855          iconv(cd,NULL,NULL,NULL,NULL);
21856          iconv_close(cd);
21857   ;
21858   return 0;
21859 }
21860 _ACEOF
21861 rm -f conftest.$ac_objext conftest$ac_exeext
21862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21863   (eval $ac_link) 2>conftest.er1
21864   ac_status=$?
21865   grep -v '^ *+' conftest.er1 >conftest.err
21866   rm -f conftest.er1
21867   cat conftest.err >&5
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); } &&
21870          { ac_try='test -z "$ac_c_werror_flag"
21871                          || test ! -s conftest.err'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; } &&
21877          { ac_try='test -s conftest$ac_exeext'
21878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879   (eval $ac_try) 2>&5
21880   ac_status=$?
21881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882   (exit $ac_status); }; }; then
21883   am_cv_lib_iconv=yes
21884         am_cv_func_iconv=yes
21885 else
21886   echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21888
21889 fi
21890 rm -f conftest.err conftest.$ac_objext \
21891       conftest$ac_exeext conftest.$ac_ext
21892       LIBS="$am_save_LIBS"
21893     fi
21894
21895 fi
21896 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21897 echo "${ECHO_T}$am_cv_func_iconv" >&6
21898   if test "$am_cv_func_iconv" = yes; then
21899
21900 cat >>confdefs.h <<\_ACEOF
21901 #define HAVE_ICONV 1
21902 _ACEOF
21903
21904     echo "$as_me:$LINENO: checking for iconv declaration" >&5
21905 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21906     if test "${am_cv_proto_iconv+set}" = set; then
21907   echo $ECHO_N "(cached) $ECHO_C" >&6
21908 else
21909
21910       cat >conftest.$ac_ext <<_ACEOF
21911 /* confdefs.h.  */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h.  */
21916
21917 #include <stdlib.h>
21918 #include <iconv.h>
21919 extern
21920 #ifdef __cplusplus
21921 "C"
21922 #endif
21923 #if defined(__STDC__) || defined(__cplusplus)
21924 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21925 #else
21926 size_t iconv();
21927 #endif
21928
21929 int
21930 main ()
21931 {
21932
21933   ;
21934   return 0;
21935 }
21936 _ACEOF
21937 rm -f conftest.$ac_objext
21938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21939   (eval $ac_compile) 2>conftest.er1
21940   ac_status=$?
21941   grep -v '^ *+' conftest.er1 >conftest.err
21942   rm -f conftest.er1
21943   cat conftest.err >&5
21944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945   (exit $ac_status); } &&
21946          { ac_try='test -z "$ac_c_werror_flag"
21947                          || test ! -s conftest.err'
21948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949   (eval $ac_try) 2>&5
21950   ac_status=$?
21951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952   (exit $ac_status); }; } &&
21953          { ac_try='test -s conftest.$ac_objext'
21954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21955   (eval $ac_try) 2>&5
21956   ac_status=$?
21957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958   (exit $ac_status); }; }; then
21959   am_cv_proto_iconv_arg1=""
21960 else
21961   echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21963
21964 am_cv_proto_iconv_arg1="const"
21965 fi
21966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21967       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);"
21968 fi
21969
21970     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21971     echo "$as_me:$LINENO: result: ${ac_t:-
21972          }$am_cv_proto_iconv" >&5
21973 echo "${ECHO_T}${ac_t:-
21974          }$am_cv_proto_iconv" >&6
21975
21976 cat >>confdefs.h <<_ACEOF
21977 #define ICONV_CONST $am_cv_proto_iconv_arg1
21978 _ACEOF
21979
21980   fi
21981   LIBICONV=
21982   if test "$am_cv_lib_iconv" = yes; then
21983     LIBICONV="-liconv"
21984   fi
21985
21986
21987
21988                     ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21989           ac_config_commands="$ac_config_commands default"
21990 cat >confcache <<\_ACEOF
21991 # This file is a shell script that caches the results of configure
21992 # tests run on this system so they can be shared between configure
21993 # scripts and configure runs, see configure's option --config-cache.
21994 # It is not useful on other systems.  If it contains results you don't
21995 # want to keep, you may remove or edit it.
21996 #
21997 # config.status only pays attention to the cache file if you give it
21998 # the --recheck option to rerun configure.
21999 #
22000 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22001 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22002 # following values.
22003
22004 _ACEOF
22005
22006 # The following way of writing the cache mishandles newlines in values,
22007 # but we know of no workaround that is simple, portable, and efficient.
22008 # So, don't put newlines in cache variables' values.
22009 # Ultrix sh set writes to stderr and can't be redirected directly,
22010 # and sets the high bit in the cache file unless we assign to the vars.
22011 {
22012   (set) 2>&1 |
22013     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22014     *ac_space=\ *)
22015       # `set' does not quote correctly, so add quotes (double-quote
22016       # substitution turns \\\\ into \\, and sed turns \\ into \).
22017       sed -n \
22018         "s/'/'\\\\''/g;
22019           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22020       ;;
22021     *)
22022       # `set' quotes correctly as required by POSIX, so do not add quotes.
22023       sed -n \
22024         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22025       ;;
22026     esac;
22027 } |
22028   sed '
22029      t clear
22030      : clear
22031      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22032      t end
22033      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22034      : end' >>confcache
22035 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22036   if test -w $cache_file; then
22037     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22038     cat confcache >$cache_file
22039   else
22040     echo "not updating unwritable cache $cache_file"
22041   fi
22042 fi
22043 rm -f confcache
22044
22045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22046 # Let make expand exec_prefix.
22047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22048
22049 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22050 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22051 # trailing colons and then remove the whole line if VPATH becomes empty
22052 # (actually we leave an empty line to preserve line numbers).
22053 if test "x$srcdir" = x.; then
22054   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22055 s/:*\$(srcdir):*/:/;
22056 s/:*\${srcdir}:*/:/;
22057 s/:*@srcdir@:*/:/;
22058 s/^\([^=]*=[     ]*\):*/\1/;
22059 s/:*$//;
22060 s/^[^=]*=[       ]*$//;
22061 }'
22062 fi
22063
22064 DEFS=-DHAVE_CONFIG_H
22065
22066 ac_libobjs=
22067 ac_ltlibobjs=
22068 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22069   # 1. Remove the extension, and $U if already installed.
22070   ac_i=`echo "$ac_i" |
22071          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22072   # 2. Add them.
22073   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22074   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22075 done
22076 LIBOBJS=$ac_libobjs
22077
22078 LTLIBOBJS=$ac_ltlibobjs
22079
22080
22081 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22082   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22083 Usually this means the macro was only invoked conditionally." >&5
22084 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22085 Usually this means the macro was only invoked conditionally." >&2;}
22086    { (exit 1); exit 1; }; }
22087 fi
22088
22089 : ${CONFIG_STATUS=./config.status}
22090 ac_clean_files_save=$ac_clean_files
22091 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22092 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22093 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22094 cat >$CONFIG_STATUS <<_ACEOF
22095 #! $SHELL
22096 # Generated by $as_me.
22097 # Run this file to recreate the current configuration.
22098 # Compiler output produced by configure, useful for debugging
22099 # configure, is in config.log if it exists.
22100
22101 debug=false
22102 ac_cs_recheck=false
22103 ac_cs_silent=false
22104 SHELL=\${CONFIG_SHELL-$SHELL}
22105 _ACEOF
22106
22107 cat >>$CONFIG_STATUS <<\_ACEOF
22108 ## --------------------- ##
22109 ## M4sh Initialization.  ##
22110 ## --------------------- ##
22111
22112 # Be Bourne compatible
22113 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22114   emulate sh
22115   NULLCMD=:
22116   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22117   # is contrary to our usage.  Disable this feature.
22118   alias -g '${1+"$@"}'='"$@"'
22119 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22120   set -o posix
22121 fi
22122 DUALCASE=1; export DUALCASE # for MKS sh
22123
22124 # Support unset when possible.
22125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22126   as_unset=unset
22127 else
22128   as_unset=false
22129 fi
22130
22131
22132 # Work around bugs in pre-3.0 UWIN ksh.
22133 $as_unset ENV MAIL MAILPATH
22134 PS1='$ '
22135 PS2='> '
22136 PS4='+ '
22137
22138 # NLS nuisances.
22139 for as_var in \
22140   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22141   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22142   LC_TELEPHONE LC_TIME
22143 do
22144   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22145     eval $as_var=C; export $as_var
22146   else
22147     $as_unset $as_var
22148   fi
22149 done
22150
22151 # Required to use basename.
22152 if expr a : '\(a\)' >/dev/null 2>&1; then
22153   as_expr=expr
22154 else
22155   as_expr=false
22156 fi
22157
22158 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22159   as_basename=basename
22160 else
22161   as_basename=false
22162 fi
22163
22164
22165 # Name of the executable.
22166 as_me=`$as_basename "$0" ||
22167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22168          X"$0" : 'X\(//\)$' \| \
22169          X"$0" : 'X\(/\)$' \| \
22170          .     : '\(.\)' 2>/dev/null ||
22171 echo X/"$0" |
22172     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22173           /^X\/\(\/\/\)$/{ s//\1/; q; }
22174           /^X\/\(\/\).*/{ s//\1/; q; }
22175           s/.*/./; q'`
22176
22177
22178 # PATH needs CR, and LINENO needs CR and PATH.
22179 # Avoid depending upon Character Ranges.
22180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22183 as_cr_digits='0123456789'
22184 as_cr_alnum=$as_cr_Letters$as_cr_digits
22185
22186 # The user is always right.
22187 if test "${PATH_SEPARATOR+set}" != set; then
22188   echo "#! /bin/sh" >conf$$.sh
22189   echo  "exit 0"   >>conf$$.sh
22190   chmod +x conf$$.sh
22191   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22192     PATH_SEPARATOR=';'
22193   else
22194     PATH_SEPARATOR=:
22195   fi
22196   rm -f conf$$.sh
22197 fi
22198
22199
22200   as_lineno_1=$LINENO
22201   as_lineno_2=$LINENO
22202   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22203   test "x$as_lineno_1" != "x$as_lineno_2" &&
22204   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22205   # Find who we are.  Look in the path if we contain no path at all
22206   # relative or not.
22207   case $0 in
22208     *[\\/]* ) as_myself=$0 ;;
22209     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22210 for as_dir in $PATH
22211 do
22212   IFS=$as_save_IFS
22213   test -z "$as_dir" && as_dir=.
22214   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22215 done
22216
22217        ;;
22218   esac
22219   # We did not find ourselves, most probably we were run as `sh COMMAND'
22220   # in which case we are not to be found in the path.
22221   if test "x$as_myself" = x; then
22222     as_myself=$0
22223   fi
22224   if test ! -f "$as_myself"; then
22225     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22226 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22227    { (exit 1); exit 1; }; }
22228   fi
22229   case $CONFIG_SHELL in
22230   '')
22231     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22232 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22233 do
22234   IFS=$as_save_IFS
22235   test -z "$as_dir" && as_dir=.
22236   for as_base in sh bash ksh sh5; do
22237          case $as_dir in
22238          /*)
22239            if ("$as_dir/$as_base" -c '
22240   as_lineno_1=$LINENO
22241   as_lineno_2=$LINENO
22242   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22243   test "x$as_lineno_1" != "x$as_lineno_2" &&
22244   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22245              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22246              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22247              CONFIG_SHELL=$as_dir/$as_base
22248              export CONFIG_SHELL
22249              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22250            fi;;
22251          esac
22252        done
22253 done
22254 ;;
22255   esac
22256
22257   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22258   # uniformly replaced by the line number.  The first 'sed' inserts a
22259   # line-number line before each line; the second 'sed' does the real
22260   # work.  The second script uses 'N' to pair each line-number line
22261   # with the numbered line, and appends trailing '-' during
22262   # substitution so that $LINENO is not a special case at line end.
22263   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22264   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22265   sed '=' <$as_myself |
22266     sed '
22267       N
22268       s,$,-,
22269       : loop
22270       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22271       t loop
22272       s,-$,,
22273       s,^['$as_cr_digits']*\n,,
22274     ' >$as_me.lineno &&
22275   chmod +x $as_me.lineno ||
22276     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22277 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22278    { (exit 1); exit 1; }; }
22279
22280   # Don't try to exec as it changes $[0], causing all sort of problems
22281   # (the dirname of $[0] is not the place where we might find the
22282   # original and so on.  Autoconf is especially sensible to this).
22283   . ./$as_me.lineno
22284   # Exit status is that of the last command.
22285   exit
22286 }
22287
22288
22289 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22290   *c*,-n*) ECHO_N= ECHO_C='
22291 ' ECHO_T='      ' ;;
22292   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22293   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22294 esac
22295
22296 if expr a : '\(a\)' >/dev/null 2>&1; then
22297   as_expr=expr
22298 else
22299   as_expr=false
22300 fi
22301
22302 rm -f conf$$ conf$$.exe conf$$.file
22303 echo >conf$$.file
22304 if ln -s conf$$.file conf$$ 2>/dev/null; then
22305   # We could just check for DJGPP; but this test a) works b) is more generic
22306   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22307   if test -f conf$$.exe; then
22308     # Don't use ln at all; we don't have any links
22309     as_ln_s='cp -p'
22310   else
22311     as_ln_s='ln -s'
22312   fi
22313 elif ln conf$$.file conf$$ 2>/dev/null; then
22314   as_ln_s=ln
22315 else
22316   as_ln_s='cp -p'
22317 fi
22318 rm -f conf$$ conf$$.exe conf$$.file
22319
22320 if mkdir -p . 2>/dev/null; then
22321   as_mkdir_p=:
22322 else
22323   test -d ./-p && rmdir ./-p
22324   as_mkdir_p=false
22325 fi
22326
22327 as_executable_p="test -f"
22328
22329 # Sed expression to map a string onto a valid CPP name.
22330 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22331
22332 # Sed expression to map a string onto a valid variable name.
22333 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22334
22335
22336 # IFS
22337 # We need space, tab and new line, in precisely that order.
22338 as_nl='
22339 '
22340 IFS="   $as_nl"
22341
22342 # CDPATH.
22343 $as_unset CDPATH
22344
22345 exec 6>&1
22346
22347 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22348 # report actual input values of CONFIG_FILES etc. instead of their
22349 # values after options handling.  Logging --version etc. is OK.
22350 exec 5>>config.log
22351 {
22352   echo
22353   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22354 ## Running $as_me. ##
22355 _ASBOX
22356 } >&5
22357 cat >&5 <<_CSEOF
22358
22359 This file was extended by $as_me, which was
22360 generated by GNU Autoconf 2.59.  Invocation command line was
22361
22362   CONFIG_FILES    = $CONFIG_FILES
22363   CONFIG_HEADERS  = $CONFIG_HEADERS
22364   CONFIG_LINKS    = $CONFIG_LINKS
22365   CONFIG_COMMANDS = $CONFIG_COMMANDS
22366   $ $0 $@
22367
22368 _CSEOF
22369 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22370 echo >&5
22371 _ACEOF
22372
22373 # Files that config.status was made for.
22374 if test -n "$ac_config_files"; then
22375   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22376 fi
22377
22378 if test -n "$ac_config_headers"; then
22379   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22380 fi
22381
22382 if test -n "$ac_config_links"; then
22383   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22384 fi
22385
22386 if test -n "$ac_config_commands"; then
22387   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22388 fi
22389
22390 cat >>$CONFIG_STATUS <<\_ACEOF
22391
22392 ac_cs_usage="\
22393 \`$as_me' instantiates files from templates according to the
22394 current configuration.
22395
22396 Usage: $0 [OPTIONS] [FILE]...
22397
22398   -h, --help       print this help, then exit
22399   -V, --version    print version number, then exit
22400   -q, --quiet      do not print progress messages
22401   -d, --debug      don't remove temporary files
22402       --recheck    update $as_me by reconfiguring in the same conditions
22403   --file=FILE[:TEMPLATE]
22404                    instantiate the configuration file FILE
22405   --header=FILE[:TEMPLATE]
22406                    instantiate the configuration header FILE
22407
22408 Configuration files:
22409 $config_files
22410
22411 Configuration headers:
22412 $config_headers
22413
22414 Configuration links:
22415 $config_links
22416
22417 Configuration commands:
22418 $config_commands
22419
22420 Report bugs to <bug-autoconf@gnu.org>."
22421 _ACEOF
22422
22423 cat >>$CONFIG_STATUS <<_ACEOF
22424 ac_cs_version="\\
22425 config.status
22426 configured by $0, generated by GNU Autoconf 2.59,
22427   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22428
22429 Copyright (C) 2003 Free Software Foundation, Inc.
22430 This config.status script is free software; the Free Software Foundation
22431 gives unlimited permission to copy, distribute and modify it."
22432 srcdir=$srcdir
22433 INSTALL="$INSTALL"
22434 _ACEOF
22435
22436 cat >>$CONFIG_STATUS <<\_ACEOF
22437 # If no file are specified by the user, then we need to provide default
22438 # value.  By we need to know if files were specified by the user.
22439 ac_need_defaults=:
22440 while test $# != 0
22441 do
22442   case $1 in
22443   --*=*)
22444     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22445     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22446     ac_shift=:
22447     ;;
22448   -*)
22449     ac_option=$1
22450     ac_optarg=$2
22451     ac_shift=shift
22452     ;;
22453   *) # This is not an option, so the user has probably given explicit
22454      # arguments.
22455      ac_option=$1
22456      ac_need_defaults=false;;
22457   esac
22458
22459   case $ac_option in
22460   # Handling of the options.
22461 _ACEOF
22462 cat >>$CONFIG_STATUS <<\_ACEOF
22463   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22464     ac_cs_recheck=: ;;
22465   --version | --vers* | -V )
22466     echo "$ac_cs_version"; exit 0 ;;
22467   --he | --h)
22468     # Conflict between --help and --header
22469     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22470 Try \`$0 --help' for more information." >&5
22471 echo "$as_me: error: ambiguous option: $1
22472 Try \`$0 --help' for more information." >&2;}
22473    { (exit 1); exit 1; }; };;
22474   --help | --hel | -h )
22475     echo "$ac_cs_usage"; exit 0 ;;
22476   --debug | --d* | -d )
22477     debug=: ;;
22478   --file | --fil | --fi | --f )
22479     $ac_shift
22480     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22481     ac_need_defaults=false;;
22482   --header | --heade | --head | --hea )
22483     $ac_shift
22484     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22485     ac_need_defaults=false;;
22486   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22487   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22488     ac_cs_silent=: ;;
22489
22490   # This is an error.
22491   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22492 Try \`$0 --help' for more information." >&5
22493 echo "$as_me: error: unrecognized option: $1
22494 Try \`$0 --help' for more information." >&2;}
22495    { (exit 1); exit 1; }; } ;;
22496
22497   *) ac_config_targets="$ac_config_targets $1" ;;
22498
22499   esac
22500   shift
22501 done
22502
22503 ac_configure_extra_args=
22504
22505 if $ac_cs_silent; then
22506   exec 6>/dev/null
22507   ac_configure_extra_args="$ac_configure_extra_args --silent"
22508 fi
22509
22510 _ACEOF
22511 cat >>$CONFIG_STATUS <<_ACEOF
22512 if \$ac_cs_recheck; then
22513   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22514   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22515 fi
22516
22517 _ACEOF
22518
22519 cat >>$CONFIG_STATUS <<_ACEOF
22520 #
22521 # INIT-COMMANDS section.
22522 #
22523
22524
22525 gdb_host_cpu=$gdb_host_cpu
22526 gdb_target_cpu=$gdb_target_cpu
22527 nativefile=$nativefile
22528
22529
22530 _ACEOF
22531
22532
22533
22534 cat >>$CONFIG_STATUS <<\_ACEOF
22535 for ac_config_target in $ac_config_targets
22536 do
22537   case "$ac_config_target" in
22538   # Handling of arguments.
22539   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22540   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22541   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22542   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22543   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22544   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22545 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22546    { (exit 1); exit 1; }; };;
22547   esac
22548 done
22549
22550 # If the user did not use the arguments to specify the items to instantiate,
22551 # then the envvar interface is used.  Set only those that are not.
22552 # We use the long form for the default assignment because of an extremely
22553 # bizarre bug on SunOS 4.1.3.
22554 if $ac_need_defaults; then
22555   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22556   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22557   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22558   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22559 fi
22560
22561 # Have a temporary directory for convenience.  Make it in the build tree
22562 # simply because there is no reason to put it here, and in addition,
22563 # creating and moving files from /tmp can sometimes cause problems.
22564 # Create a temporary directory, and hook for its removal unless debugging.
22565 $debug ||
22566 {
22567   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22568   trap '{ (exit 1); exit 1; }' 1 2 13 15
22569 }
22570
22571 # Create a (secure) tmp directory for tmp files.
22572
22573 {
22574   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22575   test -n "$tmp" && test -d "$tmp"
22576 }  ||
22577 {
22578   tmp=./confstat$$-$RANDOM
22579   (umask 077 && mkdir $tmp)
22580 } ||
22581 {
22582    echo "$me: cannot create a temporary directory in ." >&2
22583    { (exit 1); exit 1; }
22584 }
22585
22586 _ACEOF
22587
22588 cat >>$CONFIG_STATUS <<_ACEOF
22589
22590 #
22591 # CONFIG_FILES section.
22592 #
22593
22594 # No need to generate the scripts if there are no CONFIG_FILES.
22595 # This happens for instance when ./config.status config.h
22596 if test -n "\$CONFIG_FILES"; then
22597   # Protect against being on the right side of a sed subst in config.status.
22598   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22599    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22600 s,@SHELL@,$SHELL,;t t
22601 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22602 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22603 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22604 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22605 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22606 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22607 s,@exec_prefix@,$exec_prefix,;t t
22608 s,@prefix@,$prefix,;t t
22609 s,@program_transform_name@,$program_transform_name,;t t
22610 s,@bindir@,$bindir,;t t
22611 s,@sbindir@,$sbindir,;t t
22612 s,@libexecdir@,$libexecdir,;t t
22613 s,@datadir@,$datadir,;t t
22614 s,@sysconfdir@,$sysconfdir,;t t
22615 s,@sharedstatedir@,$sharedstatedir,;t t
22616 s,@localstatedir@,$localstatedir,;t t
22617 s,@libdir@,$libdir,;t t
22618 s,@includedir@,$includedir,;t t
22619 s,@oldincludedir@,$oldincludedir,;t t
22620 s,@infodir@,$infodir,;t t
22621 s,@mandir@,$mandir,;t t
22622 s,@build_alias@,$build_alias,;t t
22623 s,@host_alias@,$host_alias,;t t
22624 s,@target_alias@,$target_alias,;t t
22625 s,@DEFS@,$DEFS,;t t
22626 s,@ECHO_C@,$ECHO_C,;t t
22627 s,@ECHO_N@,$ECHO_N,;t t
22628 s,@ECHO_T@,$ECHO_T,;t t
22629 s,@LIBS@,$LIBS,;t t
22630 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22631 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22632 s,@MAINT@,$MAINT,;t t
22633 s,@CC@,$CC,;t t
22634 s,@CFLAGS@,$CFLAGS,;t t
22635 s,@LDFLAGS@,$LDFLAGS,;t t
22636 s,@CPPFLAGS@,$CPPFLAGS,;t t
22637 s,@ac_ct_CC@,$ac_ct_CC,;t t
22638 s,@EXEEXT@,$EXEEXT,;t t
22639 s,@OBJEXT@,$OBJEXT,;t t
22640 s,@CPP@,$CPP,;t t
22641 s,@EGREP@,$EGREP,;t t
22642 s,@build@,$build,;t t
22643 s,@build_cpu@,$build_cpu,;t t
22644 s,@build_vendor@,$build_vendor,;t t
22645 s,@build_os@,$build_os,;t t
22646 s,@host@,$host,;t t
22647 s,@host_cpu@,$host_cpu,;t t
22648 s,@host_vendor@,$host_vendor,;t t
22649 s,@host_os@,$host_os,;t t
22650 s,@target@,$target,;t t
22651 s,@target_cpu@,$target_cpu,;t t
22652 s,@target_vendor@,$target_vendor,;t t
22653 s,@target_os@,$target_os,;t t
22654 s,@SET_MAKE@,$SET_MAKE,;t t
22655 s,@RANLIB@,$RANLIB,;t t
22656 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22657 s,@ALLOCA@,$ALLOCA,;t t
22658 s,@USE_NLS@,$USE_NLS,;t t
22659 s,@MSGFMT@,$MSGFMT,;t t
22660 s,@GMSGFMT@,$GMSGFMT,;t t
22661 s,@XGETTEXT@,$XGETTEXT,;t t
22662 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22663 s,@CATALOGS@,$CATALOGS,;t t
22664 s,@CATOBJEXT@,$CATOBJEXT,;t t
22665 s,@DATADIRNAME@,$DATADIRNAME,;t t
22666 s,@GMOFILES@,$GMOFILES,;t t
22667 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22668 s,@INTLDEPS@,$INTLDEPS,;t t
22669 s,@INTLLIBS@,$INTLLIBS,;t t
22670 s,@INTLOBJS@,$INTLOBJS,;t t
22671 s,@POFILES@,$POFILES,;t t
22672 s,@POSUB@,$POSUB,;t t
22673 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22674 s,@GT_NO@,$GT_NO,;t t
22675 s,@GT_YES@,$GT_YES,;t t
22676 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22677 s,@l@,$l,;t t
22678 s,@localedir@,$localedir,;t t
22679 s,@PACKAGE@,$PACKAGE,;t t
22680 s,@subdirs@,$subdirs,;t t
22681 s,@AWK@,$AWK,;t t
22682 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22683 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22684 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22685 s,@LN_S@,$LN_S,;t t
22686 s,@YACC@,$YACC,;t t
22687 s,@AR@,$AR,;t t
22688 s,@ac_ct_AR@,$ac_ct_AR,;t t
22689 s,@DLLTOOL@,$DLLTOOL,;t t
22690 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22691 s,@WINDRES@,$WINDRES,;t t
22692 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22693 s,@MIG@,$MIG,;t t
22694 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22695 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22696 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22697 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22698 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22699 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22700 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22701 s,@WIN32LIBS@,$WIN32LIBS,;t t
22702 s,@LIBGUI@,$LIBGUI,;t t
22703 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22704 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22705 s,@TCL_VERSION@,$TCL_VERSION,;t t
22706 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22707 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22708 s,@TCL_CC@,$TCL_CC,;t t
22709 s,@TCL_DEFS@,$TCL_DEFS,;t t
22710 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22711 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22712 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22713 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22714 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22715 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22716 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22717 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22718 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22719 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22720 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22721 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22722 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22723 s,@TK_VERSION@,$TK_VERSION,;t t
22724 s,@TK_DEFS@,$TK_DEFS,;t t
22725 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22726 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22727 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22728 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22729 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22730 s,@TCLHDIR@,$TCLHDIR,;t t
22731 s,@TKHDIR@,$TKHDIR,;t t
22732 s,@ITCLHDIR@,$ITCLHDIR,;t t
22733 s,@ITKHDIR@,$ITKHDIR,;t t
22734 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22735 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22736 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22737 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22738 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22739 s,@ITK_VERSION@,$ITK_VERSION,;t t
22740 s,@ITK_DEFS@,$ITK_DEFS,;t t
22741 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22742 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22743 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22744 s,@X_CFLAGS@,$X_CFLAGS,;t t
22745 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22746 s,@X_LIBS@,$X_LIBS,;t t
22747 s,@TCL_DEPS@,$TCL_DEPS,;t t
22748 s,@TK_DEPS@,$TK_DEPS,;t t
22749 s,@ITCLLIB@,$ITCLLIB,;t t
22750 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22751 s,@ITKLIB@,$ITKLIB,;t t
22752 s,@ITK_DEPS@,$ITK_DEPS,;t t
22753 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22754 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22755 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22756 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22757 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22758 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22759 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22760 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22761 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22762 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22763 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22764 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22765 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22766 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22767 s,@target_subdir@,$target_subdir,;t t
22768 s,@frags@,$frags,;t t
22769 s,@xm_h@,$xm_h,;t t
22770 s,@tm_h@,$tm_h,;t t
22771 s,@nm_h@,$nm_h,;t t
22772 s,@LIBICONV@,$LIBICONV,;t t
22773 s,@LIBOBJS@,$LIBOBJS,;t t
22774 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22775 /@host_makefile_frag@/r $host_makefile_frag
22776 s,@host_makefile_frag@,,;t t
22777 /@target_makefile_frag@/r $target_makefile_frag
22778 s,@target_makefile_frag@,,;t t
22779 CEOF
22780
22781 _ACEOF
22782
22783   cat >>$CONFIG_STATUS <<\_ACEOF
22784   # Split the substitutions into bite-sized pieces for seds with
22785   # small command number limits, like on Digital OSF/1 and HP-UX.
22786   ac_max_sed_lines=48
22787   ac_sed_frag=1 # Number of current file.
22788   ac_beg=1 # First line for current file.
22789   ac_end=$ac_max_sed_lines # Line after last line for current file.
22790   ac_more_lines=:
22791   ac_sed_cmds=
22792   while $ac_more_lines; do
22793     if test $ac_beg -gt 1; then
22794       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22795     else
22796       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22797     fi
22798     if test ! -s $tmp/subs.frag; then
22799       ac_more_lines=false
22800     else
22801       # The purpose of the label and of the branching condition is to
22802       # speed up the sed processing (if there are no `@' at all, there
22803       # is no need to browse any of the substitutions).
22804       # These are the two extra sed commands mentioned above.
22805       (echo ':t
22806   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22807       if test -z "$ac_sed_cmds"; then
22808         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22809       else
22810         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22811       fi
22812       ac_sed_frag=`expr $ac_sed_frag + 1`
22813       ac_beg=$ac_end
22814       ac_end=`expr $ac_end + $ac_max_sed_lines`
22815     fi
22816   done
22817   if test -z "$ac_sed_cmds"; then
22818     ac_sed_cmds=cat
22819   fi
22820 fi # test -n "$CONFIG_FILES"
22821
22822 _ACEOF
22823 cat >>$CONFIG_STATUS <<\_ACEOF
22824 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22825   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22826   case $ac_file in
22827   - | *:- | *:-:* ) # input from stdin
22828         cat >$tmp/stdin
22829         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22830         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22831   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22832         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22833   * )   ac_file_in=$ac_file.in ;;
22834   esac
22835
22836   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22837   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22839          X"$ac_file" : 'X\(//\)[^/]' \| \
22840          X"$ac_file" : 'X\(//\)$' \| \
22841          X"$ac_file" : 'X\(/\)' \| \
22842          .     : '\(.\)' 2>/dev/null ||
22843 echo X"$ac_file" |
22844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22846           /^X\(\/\/\)$/{ s//\1/; q; }
22847           /^X\(\/\).*/{ s//\1/; q; }
22848           s/.*/./; q'`
22849   { if $as_mkdir_p; then
22850     mkdir -p "$ac_dir"
22851   else
22852     as_dir="$ac_dir"
22853     as_dirs=
22854     while test ! -d "$as_dir"; do
22855       as_dirs="$as_dir $as_dirs"
22856       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22858          X"$as_dir" : 'X\(//\)[^/]' \| \
22859          X"$as_dir" : 'X\(//\)$' \| \
22860          X"$as_dir" : 'X\(/\)' \| \
22861          .     : '\(.\)' 2>/dev/null ||
22862 echo X"$as_dir" |
22863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22864           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22865           /^X\(\/\/\)$/{ s//\1/; q; }
22866           /^X\(\/\).*/{ s//\1/; q; }
22867           s/.*/./; q'`
22868     done
22869     test ! -n "$as_dirs" || mkdir $as_dirs
22870   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22871 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22872    { (exit 1); exit 1; }; }; }
22873
22874   ac_builddir=.
22875
22876 if test "$ac_dir" != .; then
22877   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22878   # A "../" for each directory in $ac_dir_suffix.
22879   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22880 else
22881   ac_dir_suffix= ac_top_builddir=
22882 fi
22883
22884 case $srcdir in
22885   .)  # No --srcdir option.  We are building in place.
22886     ac_srcdir=.
22887     if test -z "$ac_top_builddir"; then
22888        ac_top_srcdir=.
22889     else
22890        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22891     fi ;;
22892   [\\/]* | ?:[\\/]* )  # Absolute path.
22893     ac_srcdir=$srcdir$ac_dir_suffix;
22894     ac_top_srcdir=$srcdir ;;
22895   *) # Relative path.
22896     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22897     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22898 esac
22899
22900 # Do not use `cd foo && pwd` to compute absolute paths, because
22901 # the directories may not exist.
22902 case `pwd` in
22903 .) ac_abs_builddir="$ac_dir";;
22904 *)
22905   case "$ac_dir" in
22906   .) ac_abs_builddir=`pwd`;;
22907   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22908   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22909   esac;;
22910 esac
22911 case $ac_abs_builddir in
22912 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22913 *)
22914   case ${ac_top_builddir}. in
22915   .) ac_abs_top_builddir=$ac_abs_builddir;;
22916   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22917   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22918   esac;;
22919 esac
22920 case $ac_abs_builddir in
22921 .) ac_abs_srcdir=$ac_srcdir;;
22922 *)
22923   case $ac_srcdir in
22924   .) ac_abs_srcdir=$ac_abs_builddir;;
22925   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22926   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22927   esac;;
22928 esac
22929 case $ac_abs_builddir in
22930 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22931 *)
22932   case $ac_top_srcdir in
22933   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22934   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22935   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22936   esac;;
22937 esac
22938
22939
22940   case $INSTALL in
22941   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22942   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22943   esac
22944
22945   if test x"$ac_file" != x-; then
22946     { echo "$as_me:$LINENO: creating $ac_file" >&5
22947 echo "$as_me: creating $ac_file" >&6;}
22948     rm -f "$ac_file"
22949   fi
22950   # Let's still pretend it is `configure' which instantiates (i.e., don't
22951   # use $as_me), people would be surprised to read:
22952   #    /* config.h.  Generated by config.status.  */
22953   if test x"$ac_file" = x-; then
22954     configure_input=
22955   else
22956     configure_input="$ac_file.  "
22957   fi
22958   configure_input=$configure_input"Generated from `echo $ac_file_in |
22959                                      sed 's,.*/,,'` by configure."
22960
22961   # First look for the input files in the build tree, otherwise in the
22962   # src tree.
22963   ac_file_inputs=`IFS=:
22964     for f in $ac_file_in; do
22965       case $f in
22966       -) echo $tmp/stdin ;;
22967       [\\/$]*)
22968          # Absolute (can't be DOS-style, as IFS=:)
22969          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22970 echo "$as_me: error: cannot find input file: $f" >&2;}
22971    { (exit 1); exit 1; }; }
22972          echo "$f";;
22973       *) # Relative
22974          if test -f "$f"; then
22975            # Build tree
22976            echo "$f"
22977          elif test -f "$srcdir/$f"; then
22978            # Source tree
22979            echo "$srcdir/$f"
22980          else
22981            # /dev/null tree
22982            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22983 echo "$as_me: error: cannot find input file: $f" >&2;}
22984    { (exit 1); exit 1; }; }
22985          fi;;
22986       esac
22987     done` || { (exit 1); exit 1; }
22988 _ACEOF
22989 cat >>$CONFIG_STATUS <<_ACEOF
22990   sed "$ac_vpsub
22991 $extrasub
22992 _ACEOF
22993 cat >>$CONFIG_STATUS <<\_ACEOF
22994 :t
22995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22996 s,@configure_input@,$configure_input,;t t
22997 s,@srcdir@,$ac_srcdir,;t t
22998 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22999 s,@top_srcdir@,$ac_top_srcdir,;t t
23000 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23001 s,@builddir@,$ac_builddir,;t t
23002 s,@abs_builddir@,$ac_abs_builddir,;t t
23003 s,@top_builddir@,$ac_top_builddir,;t t
23004 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23005 s,@INSTALL@,$ac_INSTALL,;t t
23006 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23007   rm -f $tmp/stdin
23008   if test x"$ac_file" != x-; then
23009     mv $tmp/out $ac_file
23010   else
23011     cat $tmp/out
23012     rm -f $tmp/out
23013   fi
23014
23015 done
23016 _ACEOF
23017 cat >>$CONFIG_STATUS <<\_ACEOF
23018
23019 #
23020 # CONFIG_HEADER section.
23021 #
23022
23023 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23024 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23025 #
23026 # ac_d sets the value in "#define NAME VALUE" lines.
23027 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23028 ac_dB='[         ].*$,\1#\2'
23029 ac_dC=' '
23030 ac_dD=',;t'
23031 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23032 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23033 ac_uB='$,\1#\2define\3'
23034 ac_uC=' '
23035 ac_uD=',;t'
23036
23037 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23038   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23039   case $ac_file in
23040   - | *:- | *:-:* ) # input from stdin
23041         cat >$tmp/stdin
23042         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23043         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23044   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23045         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23046   * )   ac_file_in=$ac_file.in ;;
23047   esac
23048
23049   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23050 echo "$as_me: creating $ac_file" >&6;}
23051
23052   # First look for the input files in the build tree, otherwise in the
23053   # src tree.
23054   ac_file_inputs=`IFS=:
23055     for f in $ac_file_in; do
23056       case $f in
23057       -) echo $tmp/stdin ;;
23058       [\\/$]*)
23059          # Absolute (can't be DOS-style, as IFS=:)
23060          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23061 echo "$as_me: error: cannot find input file: $f" >&2;}
23062    { (exit 1); exit 1; }; }
23063          # Do quote $f, to prevent DOS paths from being IFS'd.
23064          echo "$f";;
23065       *) # Relative
23066          if test -f "$f"; then
23067            # Build tree
23068            echo "$f"
23069          elif test -f "$srcdir/$f"; then
23070            # Source tree
23071            echo "$srcdir/$f"
23072          else
23073            # /dev/null tree
23074            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23075 echo "$as_me: error: cannot find input file: $f" >&2;}
23076    { (exit 1); exit 1; }; }
23077          fi;;
23078       esac
23079     done` || { (exit 1); exit 1; }
23080   # Remove the trailing spaces.
23081   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23082
23083 _ACEOF
23084
23085 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23086 # `conftest.undefs', that substitutes the proper values into
23087 # config.h.in to produce config.h.  The first handles `#define'
23088 # templates, and the second `#undef' templates.
23089 # And first: Protect against being on the right side of a sed subst in
23090 # config.status.  Protect against being in an unquoted here document
23091 # in config.status.
23092 rm -f conftest.defines conftest.undefs
23093 # Using a here document instead of a string reduces the quoting nightmare.
23094 # Putting comments in sed scripts is not portable.
23095 #
23096 # `end' is used to avoid that the second main sed command (meant for
23097 # 0-ary CPP macros) applies to n-ary macro definitions.
23098 # See the Autoconf documentation for `clear'.
23099 cat >confdef2sed.sed <<\_ACEOF
23100 s/[\\&,]/\\&/g
23101 s,[\\$`],\\&,g
23102 t clear
23103 : clear
23104 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23105 t end
23106 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23107 : end
23108 _ACEOF
23109 # If some macros were called several times there might be several times
23110 # the same #defines, which is useless.  Nevertheless, we may not want to
23111 # sort them, since we want the *last* AC-DEFINE to be honored.
23112 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23113 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23114 rm -f confdef2sed.sed
23115
23116 # This sed command replaces #undef with comments.  This is necessary, for
23117 # example, in the case of _POSIX_SOURCE, which is predefined and required
23118 # on some systems where configure will not decide to define it.
23119 cat >>conftest.undefs <<\_ACEOF
23120 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23121 _ACEOF
23122
23123 # Break up conftest.defines because some shells have a limit on the size
23124 # of here documents, and old seds have small limits too (100 cmds).
23125 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23126 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23127 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23128 echo '  :' >>$CONFIG_STATUS
23129 rm -f conftest.tail
23130 while grep . conftest.defines >/dev/null
23131 do
23132   # Write a limited-size here document to $tmp/defines.sed.
23133   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23134   # Speed up: don't consider the non `#define' lines.
23135   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23136   # Work around the forget-to-reset-the-flag bug.
23137   echo 't clr' >>$CONFIG_STATUS
23138   echo ': clr' >>$CONFIG_STATUS
23139   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23140   echo 'CEOF
23141   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23142   rm -f $tmp/in
23143   mv $tmp/out $tmp/in
23144 ' >>$CONFIG_STATUS
23145   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23146   rm -f conftest.defines
23147   mv conftest.tail conftest.defines
23148 done
23149 rm -f conftest.defines
23150 echo '  fi # grep' >>$CONFIG_STATUS
23151 echo >>$CONFIG_STATUS
23152
23153 # Break up conftest.undefs because some shells have a limit on the size
23154 # of here documents, and old seds have small limits too (100 cmds).
23155 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23156 rm -f conftest.tail
23157 while grep . conftest.undefs >/dev/null
23158 do
23159   # Write a limited-size here document to $tmp/undefs.sed.
23160   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23161   # Speed up: don't consider the non `#undef'
23162   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23163   # Work around the forget-to-reset-the-flag bug.
23164   echo 't clr' >>$CONFIG_STATUS
23165   echo ': clr' >>$CONFIG_STATUS
23166   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23167   echo 'CEOF
23168   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23169   rm -f $tmp/in
23170   mv $tmp/out $tmp/in
23171 ' >>$CONFIG_STATUS
23172   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23173   rm -f conftest.undefs
23174   mv conftest.tail conftest.undefs
23175 done
23176 rm -f conftest.undefs
23177
23178 cat >>$CONFIG_STATUS <<\_ACEOF
23179   # Let's still pretend it is `configure' which instantiates (i.e., don't
23180   # use $as_me), people would be surprised to read:
23181   #    /* config.h.  Generated by config.status.  */
23182   if test x"$ac_file" = x-; then
23183     echo "/* Generated by configure.  */" >$tmp/config.h
23184   else
23185     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23186   fi
23187   cat $tmp/in >>$tmp/config.h
23188   rm -f $tmp/in
23189   if test x"$ac_file" != x-; then
23190     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23191       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23192 echo "$as_me: $ac_file is unchanged" >&6;}
23193     else
23194       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23196          X"$ac_file" : 'X\(//\)[^/]' \| \
23197          X"$ac_file" : 'X\(//\)$' \| \
23198          X"$ac_file" : 'X\(/\)' \| \
23199          .     : '\(.\)' 2>/dev/null ||
23200 echo X"$ac_file" |
23201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23202           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23203           /^X\(\/\/\)$/{ s//\1/; q; }
23204           /^X\(\/\).*/{ s//\1/; q; }
23205           s/.*/./; q'`
23206       { if $as_mkdir_p; then
23207     mkdir -p "$ac_dir"
23208   else
23209     as_dir="$ac_dir"
23210     as_dirs=
23211     while test ! -d "$as_dir"; do
23212       as_dirs="$as_dir $as_dirs"
23213       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23215          X"$as_dir" : 'X\(//\)[^/]' \| \
23216          X"$as_dir" : 'X\(//\)$' \| \
23217          X"$as_dir" : 'X\(/\)' \| \
23218          .     : '\(.\)' 2>/dev/null ||
23219 echo X"$as_dir" |
23220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23221           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23222           /^X\(\/\/\)$/{ s//\1/; q; }
23223           /^X\(\/\).*/{ s//\1/; q; }
23224           s/.*/./; q'`
23225     done
23226     test ! -n "$as_dirs" || mkdir $as_dirs
23227   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23228 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23229    { (exit 1); exit 1; }; }; }
23230
23231       rm -f $ac_file
23232       mv $tmp/config.h $ac_file
23233     fi
23234   else
23235     cat $tmp/config.h
23236     rm -f $tmp/config.h
23237   fi
23238 done
23239 _ACEOF
23240 cat >>$CONFIG_STATUS <<\_ACEOF
23241
23242 #
23243 # CONFIG_LINKS section.
23244 #
23245
23246 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23247   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23248   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23249
23250   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23251 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23252
23253   if test ! -r $srcdir/$ac_source; then
23254     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23255 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23256    { (exit 1); exit 1; }; }
23257   fi
23258   rm -f $ac_dest
23259
23260   # Make relative symlinks.
23261   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23262 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23263          X"$ac_dest" : 'X\(//\)[^/]' \| \
23264          X"$ac_dest" : 'X\(//\)$' \| \
23265          X"$ac_dest" : 'X\(/\)' \| \
23266          .     : '\(.\)' 2>/dev/null ||
23267 echo X"$ac_dest" |
23268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23269           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23270           /^X\(\/\/\)$/{ s//\1/; q; }
23271           /^X\(\/\).*/{ s//\1/; q; }
23272           s/.*/./; q'`
23273   { if $as_mkdir_p; then
23274     mkdir -p "$ac_dest_dir"
23275   else
23276     as_dir="$ac_dest_dir"
23277     as_dirs=
23278     while test ! -d "$as_dir"; do
23279       as_dirs="$as_dir $as_dirs"
23280       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23282          X"$as_dir" : 'X\(//\)[^/]' \| \
23283          X"$as_dir" : 'X\(//\)$' \| \
23284          X"$as_dir" : 'X\(/\)' \| \
23285          .     : '\(.\)' 2>/dev/null ||
23286 echo X"$as_dir" |
23287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23288           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23289           /^X\(\/\/\)$/{ s//\1/; q; }
23290           /^X\(\/\).*/{ s//\1/; q; }
23291           s/.*/./; q'`
23292     done
23293     test ! -n "$as_dirs" || mkdir $as_dirs
23294   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23295 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23296    { (exit 1); exit 1; }; }; }
23297
23298   ac_builddir=.
23299
23300 if test "$ac_dest_dir" != .; then
23301   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23302   # A "../" for each directory in $ac_dir_suffix.
23303   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23304 else
23305   ac_dir_suffix= ac_top_builddir=
23306 fi
23307
23308 case $srcdir in
23309   .)  # No --srcdir option.  We are building in place.
23310     ac_srcdir=.
23311     if test -z "$ac_top_builddir"; then
23312        ac_top_srcdir=.
23313     else
23314        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23315     fi ;;
23316   [\\/]* | ?:[\\/]* )  # Absolute path.
23317     ac_srcdir=$srcdir$ac_dir_suffix;
23318     ac_top_srcdir=$srcdir ;;
23319   *) # Relative path.
23320     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23321     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23322 esac
23323
23324 # Do not use `cd foo && pwd` to compute absolute paths, because
23325 # the directories may not exist.
23326 case `pwd` in
23327 .) ac_abs_builddir="$ac_dest_dir";;
23328 *)
23329   case "$ac_dest_dir" in
23330   .) ac_abs_builddir=`pwd`;;
23331   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23332   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23333   esac;;
23334 esac
23335 case $ac_abs_builddir in
23336 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23337 *)
23338   case ${ac_top_builddir}. in
23339   .) ac_abs_top_builddir=$ac_abs_builddir;;
23340   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23341   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23342   esac;;
23343 esac
23344 case $ac_abs_builddir in
23345 .) ac_abs_srcdir=$ac_srcdir;;
23346 *)
23347   case $ac_srcdir in
23348   .) ac_abs_srcdir=$ac_abs_builddir;;
23349   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23350   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23351   esac;;
23352 esac
23353 case $ac_abs_builddir in
23354 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23355 *)
23356   case $ac_top_srcdir in
23357   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23358   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23359   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23360   esac;;
23361 esac
23362
23363
23364   case $srcdir in
23365   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23366       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23367   esac
23368
23369   # Try a symlink, then a hard link, then a copy.
23370   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23371     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23372     cp -p $srcdir/$ac_source $ac_dest ||
23373     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23374 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23375    { (exit 1); exit 1; }; }
23376 done
23377 _ACEOF
23378 cat >>$CONFIG_STATUS <<\_ACEOF
23379
23380 #
23381 # CONFIG_COMMANDS section.
23382 #
23383 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23384   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23385   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23386   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23387 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23388          X"$ac_dest" : 'X\(//\)[^/]' \| \
23389          X"$ac_dest" : 'X\(//\)$' \| \
23390          X"$ac_dest" : 'X\(/\)' \| \
23391          .     : '\(.\)' 2>/dev/null ||
23392 echo X"$ac_dest" |
23393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23394           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23395           /^X\(\/\/\)$/{ s//\1/; q; }
23396           /^X\(\/\).*/{ s//\1/; q; }
23397           s/.*/./; q'`
23398   { if $as_mkdir_p; then
23399     mkdir -p "$ac_dir"
23400   else
23401     as_dir="$ac_dir"
23402     as_dirs=
23403     while test ! -d "$as_dir"; do
23404       as_dirs="$as_dir $as_dirs"
23405       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23407          X"$as_dir" : 'X\(//\)[^/]' \| \
23408          X"$as_dir" : 'X\(//\)$' \| \
23409          X"$as_dir" : 'X\(/\)' \| \
23410          .     : '\(.\)' 2>/dev/null ||
23411 echo X"$as_dir" |
23412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23413           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23414           /^X\(\/\/\)$/{ s//\1/; q; }
23415           /^X\(\/\).*/{ s//\1/; q; }
23416           s/.*/./; q'`
23417     done
23418     test ! -n "$as_dirs" || mkdir $as_dirs
23419   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23421    { (exit 1); exit 1; }; }; }
23422
23423   ac_builddir=.
23424
23425 if test "$ac_dir" != .; then
23426   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23427   # A "../" for each directory in $ac_dir_suffix.
23428   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23429 else
23430   ac_dir_suffix= ac_top_builddir=
23431 fi
23432
23433 case $srcdir in
23434   .)  # No --srcdir option.  We are building in place.
23435     ac_srcdir=.
23436     if test -z "$ac_top_builddir"; then
23437        ac_top_srcdir=.
23438     else
23439        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23440     fi ;;
23441   [\\/]* | ?:[\\/]* )  # Absolute path.
23442     ac_srcdir=$srcdir$ac_dir_suffix;
23443     ac_top_srcdir=$srcdir ;;
23444   *) # Relative path.
23445     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23446     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23447 esac
23448
23449 # Do not use `cd foo && pwd` to compute absolute paths, because
23450 # the directories may not exist.
23451 case `pwd` in
23452 .) ac_abs_builddir="$ac_dir";;
23453 *)
23454   case "$ac_dir" in
23455   .) ac_abs_builddir=`pwd`;;
23456   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23457   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23458   esac;;
23459 esac
23460 case $ac_abs_builddir in
23461 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23462 *)
23463   case ${ac_top_builddir}. in
23464   .) ac_abs_top_builddir=$ac_abs_builddir;;
23465   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23466   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23467   esac;;
23468 esac
23469 case $ac_abs_builddir in
23470 .) ac_abs_srcdir=$ac_srcdir;;
23471 *)
23472   case $ac_srcdir in
23473   .) ac_abs_srcdir=$ac_abs_builddir;;
23474   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23475   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23476   esac;;
23477 esac
23478 case $ac_abs_builddir in
23479 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23480 *)
23481   case $ac_top_srcdir in
23482   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23483   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23484   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23485   esac;;
23486 esac
23487
23488
23489   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23490 echo "$as_me: executing $ac_dest commands" >&6;}
23491   case $ac_dest in
23492     default )
23493
23494 sed -e '/^DEPRECATED_TM_FILE[   ]*=/s,^DEPRECATED_TM_FILE[      ]*=[    ]*,&config/'"${gdb_target_cpu}"'/,
23495 /^XM_FILE[      ]*=/s,^XM_FILE[         ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,
23496 /^NAT_FILE[     ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23497 mv -f Makefile.tmp Makefile
23498
23499
23500 case x$CONFIG_HEADERS in
23501 xconfig.h:config.in)
23502 echo > stamp-h ;;
23503 esac
23504  ;;
23505   esac
23506 done
23507 _ACEOF
23508
23509 cat >>$CONFIG_STATUS <<\_ACEOF
23510
23511 { (exit 0); exit 0; }
23512 _ACEOF
23513 chmod +x $CONFIG_STATUS
23514 ac_clean_files=$ac_clean_files_save
23515
23516
23517 # configure is writing to config.log, and then calls config.status.
23518 # config.status does its own redirection, appending to config.log.
23519 # Unfortunately, on DOS this fails, as config.log is still kept open
23520 # by configure, so config.status won't be able to write to it; its
23521 # output is simply discarded.  So we exec the FD to /dev/null,
23522 # effectively closing config.log, so it can be properly (re)opened and
23523 # appended to by config.status.  When coming back to configure, we
23524 # need to make the FD available again.
23525 if test "$no_create" != yes; then
23526   ac_cs_success=:
23527   ac_config_status_args=
23528   test "$silent" = yes &&
23529     ac_config_status_args="$ac_config_status_args --quiet"
23530   exec 5>/dev/null
23531   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23532   exec 5>>config.log
23533   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23534   # would make configure fail if this is the last instruction.
23535   $ac_cs_success || { (exit 1); exit 1; }
23536 fi
23537
23538 #
23539 # CONFIG_SUBDIRS section.
23540 #
23541 if test "$no_recursion" != yes; then
23542
23543   # Remove --cache-file and --srcdir arguments so they do not pile up.
23544   ac_sub_configure_args=
23545   ac_prev=
23546   for ac_arg in $ac_configure_args; do
23547     if test -n "$ac_prev"; then
23548       ac_prev=
23549       continue
23550     fi
23551     case $ac_arg in
23552     -cache-file | --cache-file | --cache-fil | --cache-fi \
23553     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23554       ac_prev=cache_file ;;
23555     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23556     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23557     | --c=*)
23558       ;;
23559     --config-cache | -C)
23560       ;;
23561     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23562       ac_prev=srcdir ;;
23563     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23564       ;;
23565     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23566       ac_prev=prefix ;;
23567     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23568       ;;
23569     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23570     esac
23571   done
23572
23573   # Always prepend --prefix to ensure using the same prefix
23574   # in subdir configurations.
23575   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23576
23577   ac_popdir=`pwd`
23578   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23579
23580     # Do not complain, so a configure script can configure whichever
23581     # parts of a large source tree are present.
23582     test -d $srcdir/$ac_dir || continue
23583
23584     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23585 echo "$as_me: configuring in $ac_dir" >&6;}
23586     { if $as_mkdir_p; then
23587     mkdir -p "$ac_dir"
23588   else
23589     as_dir="$ac_dir"
23590     as_dirs=
23591     while test ! -d "$as_dir"; do
23592       as_dirs="$as_dir $as_dirs"
23593       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23595          X"$as_dir" : 'X\(//\)[^/]' \| \
23596          X"$as_dir" : 'X\(//\)$' \| \
23597          X"$as_dir" : 'X\(/\)' \| \
23598          .     : '\(.\)' 2>/dev/null ||
23599 echo X"$as_dir" |
23600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23601           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23602           /^X\(\/\/\)$/{ s//\1/; q; }
23603           /^X\(\/\).*/{ s//\1/; q; }
23604           s/.*/./; q'`
23605     done
23606     test ! -n "$as_dirs" || mkdir $as_dirs
23607   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23608 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23609    { (exit 1); exit 1; }; }; }
23610
23611     ac_builddir=.
23612
23613 if test "$ac_dir" != .; then
23614   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23615   # A "../" for each directory in $ac_dir_suffix.
23616   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23617 else
23618   ac_dir_suffix= ac_top_builddir=
23619 fi
23620
23621 case $srcdir in
23622   .)  # No --srcdir option.  We are building in place.
23623     ac_srcdir=.
23624     if test -z "$ac_top_builddir"; then
23625        ac_top_srcdir=.
23626     else
23627        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23628     fi ;;
23629   [\\/]* | ?:[\\/]* )  # Absolute path.
23630     ac_srcdir=$srcdir$ac_dir_suffix;
23631     ac_top_srcdir=$srcdir ;;
23632   *) # Relative path.
23633     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23634     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23635 esac
23636
23637 # Do not use `cd foo && pwd` to compute absolute paths, because
23638 # the directories may not exist.
23639 case `pwd` in
23640 .) ac_abs_builddir="$ac_dir";;
23641 *)
23642   case "$ac_dir" in
23643   .) ac_abs_builddir=`pwd`;;
23644   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23645   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23646   esac;;
23647 esac
23648 case $ac_abs_builddir in
23649 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23650 *)
23651   case ${ac_top_builddir}. in
23652   .) ac_abs_top_builddir=$ac_abs_builddir;;
23653   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23654   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23655   esac;;
23656 esac
23657 case $ac_abs_builddir in
23658 .) ac_abs_srcdir=$ac_srcdir;;
23659 *)
23660   case $ac_srcdir in
23661   .) ac_abs_srcdir=$ac_abs_builddir;;
23662   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23663   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23664   esac;;
23665 esac
23666 case $ac_abs_builddir in
23667 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23668 *)
23669   case $ac_top_srcdir in
23670   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23671   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23672   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23673   esac;;
23674 esac
23675
23676
23677     cd $ac_dir
23678
23679     # Check for guested configure; otherwise get Cygnus style configure.
23680     if test -f $ac_srcdir/configure.gnu; then
23681       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23682     elif test -f $ac_srcdir/configure; then
23683       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23684     elif test -f $ac_srcdir/configure.in; then
23685       ac_sub_configure=$ac_configure
23686     else
23687       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23688 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23689       ac_sub_configure=
23690     fi
23691
23692     # The recursion is here.
23693     if test -n "$ac_sub_configure"; then
23694       # Make the cache file name correct relative to the subdirectory.
23695       case $cache_file in
23696       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23697       *) # Relative path.
23698         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23699       esac
23700
23701       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23702 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23703       # The eval makes quoting arguments work.
23704       eval $ac_sub_configure $ac_sub_configure_args \
23705            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23706         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23707 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23708    { (exit 1); exit 1; }; }
23709     fi
23710
23711     cd $ac_popdir
23712   done
23713 fi
23714
23715
23716 exit 0