Initial python support.
[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 gl_header_list=
313 ac_subdirs_all="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all="$ac_subdirs_all gdbtk"
315 ac_subdirs_all="$ac_subdirs_all multi-ice"
316 ac_subdirs_all="$ac_subdirs_all gdbserver"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT PYTHON_CFLAGS ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files='host_makefile_frag'
319 ac_pwd=`pwd`
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-dependency-tracking  speeds up one-time build
866   --enable-dependency-tracking   do not reject slow dependency extractors
867   --enable-targets        alternative target configurations
868   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
869   --disable-gdbcli        disable command-line interface (CLI)
870   --disable-gdbmi         disable machine-interface (MI)
871   --enable-tui            enable full-screen terminal user interface (TUI)
872   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
873   --enable-profiling      enable profiling of GDB
874   --disable-rpath         do not hardcode runtime library paths
875   --enable-werror    treat compile warnings as errors
876   --enable-build-warnings Enable build-time compiler warnings if gcc is used
877   --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
878   --enable-sim            Link gdb with simulator
879   --enable-multi-ice      build the multi-ice-gdb-server
880
881 Optional Packages:
882   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
883   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
884   --with-separate-debug-dir=path   Look for global separate debug info in this path LIBDIR/debug
885   --with-libunwind            Use libunwind frame unwinding support
886   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
887   --with-bugurl=URL       Direct users to URL to report a bug
888   --with-system-readline  use installed readline library
889   --with-expat            include expat support (auto/yes/no)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
892   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
893   --with-python           include python support (auto/yes/no/<path>)
894   --without-included-regex don't use included regex; this is the default
895                           on systems with version 2 of the GNU C library
896                           (use with caution on other system)
897   --with-sysroot=DIR Search for usr/lib et al within DIR.
898   --with-tcl              directory containing tcl configuration (tclConfig.sh)
899   --with-tk               directory containing tk configuration (tkConfig.sh)
900   --with-x                use the X Window System
901   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
902
903 Some influential environment variables:
904   CC          C compiler command
905   CFLAGS      C compiler flags
906   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
907               nonstandard directory <lib dir>
908   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
909               headers in a nonstandard directory <include dir>
910   CPP         C preprocessor
911
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
914
915 _ACEOF
916 fi
917
918 if test "$ac_init_help" = "recursive"; then
919   # If there are subdirs, report their specific --help.
920   ac_popdir=`pwd`
921   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922     test -d $ac_dir || continue
923     ac_builddir=.
924
925 if test "$ac_dir" != .; then
926   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927   # A "../" for each directory in $ac_dir_suffix.
928   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 else
930   ac_dir_suffix= ac_top_builddir=
931 fi
932
933 case $srcdir in
934   .)  # No --srcdir option.  We are building in place.
935     ac_srcdir=.
936     if test -z "$ac_top_builddir"; then
937        ac_top_srcdir=.
938     else
939        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940     fi ;;
941   [\\/]* | ?:[\\/]* )  # Absolute path.
942     ac_srcdir=$srcdir$ac_dir_suffix;
943     ac_top_srcdir=$srcdir ;;
944   *) # Relative path.
945     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946     ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 esac
948
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
951 case `pwd` in
952 .) ac_abs_builddir="$ac_dir";;
953 *)
954   case "$ac_dir" in
955   .) ac_abs_builddir=`pwd`;;
956   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957   *) ac_abs_builddir=`pwd`/"$ac_dir";;
958   esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *)
963   case ${ac_top_builddir}. in
964   .) ac_abs_top_builddir=$ac_abs_builddir;;
965   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967   esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
971 *)
972   case $ac_srcdir in
973   .) ac_abs_srcdir=$ac_abs_builddir;;
974   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976   esac;;
977 esac
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *)
981   case $ac_top_srcdir in
982   .) ac_abs_top_srcdir=$ac_abs_builddir;;
983   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985   esac;;
986 esac
987
988     cd $ac_dir
989     # Check for guested configure; otherwise get Cygnus style configure.
990     if test -f $ac_srcdir/configure.gnu; then
991       echo
992       $SHELL $ac_srcdir/configure.gnu  --help=recursive
993     elif test -f $ac_srcdir/configure; then
994       echo
995       $SHELL $ac_srcdir/configure  --help=recursive
996     elif test -f $ac_srcdir/configure.ac ||
997            test -f $ac_srcdir/configure.in; then
998       echo
999       $ac_configure --help
1000     else
1001       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002     fi
1003     cd $ac_popdir
1004   done
1005 fi
1006
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1009   cat <<\_ACEOF
1010
1011 Copyright (C) 2003 Free Software Foundation, Inc.
1012 This configure script is free software; the Free Software Foundation
1013 gives unlimited permission to copy, distribute and modify it.
1014 _ACEOF
1015   exit 0
1016 fi
1017 exec 5>config.log
1018 cat >&5 <<_ACEOF
1019 This file contains any messages produced by compilers while
1020 running configure, to aid debugging if configure makes a mistake.
1021
1022 It was created by $as_me, which was
1023 generated by GNU Autoconf 2.59.  Invocation command line was
1024
1025   $ $0 $@
1026
1027 _ACEOF
1028 {
1029 cat <<_ASUNAME
1030 ## --------- ##
1031 ## Platform. ##
1032 ## --------- ##
1033
1034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039
1040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1042
1043 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1044 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1047 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1048 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1049 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1050
1051 _ASUNAME
1052
1053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054 for as_dir in $PATH
1055 do
1056   IFS=$as_save_IFS
1057   test -z "$as_dir" && as_dir=.
1058   echo "PATH: $as_dir"
1059 done
1060
1061 } >&5
1062
1063 cat >&5 <<_ACEOF
1064
1065
1066 ## ----------- ##
1067 ## Core tests. ##
1068 ## ----------- ##
1069
1070 _ACEOF
1071
1072
1073 # Keep a trace of the command line.
1074 # Strip out --no-create and --no-recursion so they do not pile up.
1075 # Strip out --silent because we don't want to record it for future runs.
1076 # Also quote any args containing shell meta-characters.
1077 # Make two passes to allow for proper duplicate-argument suppression.
1078 ac_configure_args=
1079 ac_configure_args0=
1080 ac_configure_args1=
1081 ac_sep=
1082 ac_must_keep_next=false
1083 for ac_pass in 1 2
1084 do
1085   for ac_arg
1086   do
1087     case $ac_arg in
1088     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090     | -silent | --silent | --silen | --sile | --sil)
1091       continue ;;
1092     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094     esac
1095     case $ac_pass in
1096     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097     2)
1098       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099       if test $ac_must_keep_next = true; then
1100         ac_must_keep_next=false # Got value, back to normal.
1101       else
1102         case $ac_arg in
1103           *=* | --config-cache | -C | -disable-* | --disable-* \
1104           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106           | -with-* | --with-* | -without-* | --without-* | --x)
1107             case "$ac_configure_args0 " in
1108               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109             esac
1110             ;;
1111           -* ) ac_must_keep_next=true ;;
1112         esac
1113       fi
1114       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115       # Get rid of the leading space.
1116       ac_sep=" "
1117       ;;
1118     esac
1119   done
1120 done
1121 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123
1124 # When interrupted or exit'd, cleanup temporary files, and complete
1125 # config.log.  We remove comments because anyway the quotes in there
1126 # would cause problems or look ugly.
1127 # WARNING: Be sure not to use single quotes in there, as some shells,
1128 # such as our DU 5.0 friend, will then `close' the trap.
1129 trap 'exit_status=$?
1130   # Save into config.log some information that might help in debugging.
1131   {
1132     echo
1133
1134     cat <<\_ASBOX
1135 ## ---------------- ##
1136 ## Cache variables. ##
1137 ## ---------------- ##
1138 _ASBOX
1139     echo
1140     # The following way of writing the cache mishandles newlines in values,
1141 {
1142   (set) 2>&1 |
1143     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144     *ac_space=\ *)
1145       sed -n \
1146         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148       ;;
1149     *)
1150       sed -n \
1151         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1152       ;;
1153     esac;
1154 }
1155     echo
1156
1157     cat <<\_ASBOX
1158 ## ----------------- ##
1159 ## Output variables. ##
1160 ## ----------------- ##
1161 _ASBOX
1162     echo
1163     for ac_var in $ac_subst_vars
1164     do
1165       eval ac_val=$`echo $ac_var`
1166       echo "$ac_var='"'"'$ac_val'"'"'"
1167     done | sort
1168     echo
1169
1170     if test -n "$ac_subst_files"; then
1171       cat <<\_ASBOX
1172 ## ------------- ##
1173 ## Output files. ##
1174 ## ------------- ##
1175 _ASBOX
1176       echo
1177       for ac_var in $ac_subst_files
1178       do
1179         eval ac_val=$`echo $ac_var`
1180         echo "$ac_var='"'"'$ac_val'"'"'"
1181       done | sort
1182       echo
1183     fi
1184
1185     if test -s confdefs.h; then
1186       cat <<\_ASBOX
1187 ## ----------- ##
1188 ## confdefs.h. ##
1189 ## ----------- ##
1190 _ASBOX
1191       echo
1192       sed "/^$/d" confdefs.h | sort
1193       echo
1194     fi
1195     test "$ac_signal" != 0 &&
1196       echo "$as_me: caught signal $ac_signal"
1197     echo "$as_me: exit $exit_status"
1198   } >&5
1199   rm -f core *.core &&
1200   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1201     exit $exit_status
1202      ' 0
1203 for ac_signal in 1 2 13 15; do
1204   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205 done
1206 ac_signal=0
1207
1208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209 rm -rf conftest* confdefs.h
1210 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211 echo >confdefs.h
1212
1213 # Predefined preprocessor variables.
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_NAME "$PACKAGE_NAME"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_STRING "$PACKAGE_STRING"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237 _ACEOF
1238
1239
1240 # Let the site file select an alternate cache file if it wants to.
1241 # Prefer explicitly selected file to automatically selected ones.
1242 if test -z "$CONFIG_SITE"; then
1243   if test "x$prefix" != xNONE; then
1244     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245   else
1246     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247   fi
1248 fi
1249 for ac_site_file in $CONFIG_SITE; do
1250   if test -r "$ac_site_file"; then
1251     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252 echo "$as_me: loading site script $ac_site_file" >&6;}
1253     sed 's/^/| /' "$ac_site_file" >&5
1254     . "$ac_site_file"
1255   fi
1256 done
1257
1258 if test -r "$cache_file"; then
1259   # Some versions of bash will fail to source /dev/null (special
1260   # files actually), so we avoid doing that.
1261   if test -f "$cache_file"; then
1262     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263 echo "$as_me: loading cache $cache_file" >&6;}
1264     case $cache_file in
1265       [\\/]* | ?:[\\/]* ) . $cache_file;;
1266       *)                      . ./$cache_file;;
1267     esac
1268   fi
1269 else
1270   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271 echo "$as_me: creating cache $cache_file" >&6;}
1272   >$cache_file
1273 fi
1274
1275 # Check that the precious variables saved in the cache have kept the same
1276 # value.
1277 ac_cache_corrupted=false
1278 for ac_var in `(set) 2>&1 |
1279                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281   eval ac_new_set=\$ac_env_${ac_var}_set
1282   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283   eval ac_new_val="\$ac_env_${ac_var}_value"
1284   case $ac_old_set,$ac_new_set in
1285     set,)
1286       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288       ac_cache_corrupted=: ;;
1289     ,set)
1290       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292       ac_cache_corrupted=: ;;
1293     ,);;
1294     *)
1295       if test "x$ac_old_val" != "x$ac_new_val"; then
1296         # differences in whitespace do not lead to failure.
1297         ac_old_val_w=`echo x $ac_old_val`
1298         ac_new_val_w=`echo x $ac_new_val`
1299         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1300           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302           ac_cache_corrupted=:
1303         else
1304           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1305 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1306           eval $ac_var=\$ac_old_val
1307         fi
1308         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1309 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1310         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1311 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1312       fi;;
1313   esac
1314   # Pass precious variables to config.status.
1315   if test "$ac_new_set" = set; then
1316     case $ac_new_val in
1317     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319     *) ac_arg=$ac_var=$ac_new_val ;;
1320     esac
1321     case " $ac_configure_args " in
1322       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1323       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324     esac
1325   fi
1326 done
1327 if $ac_cache_corrupted; then
1328   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1329 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1330   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334    { (exit 1); exit 1; }; }
1335 fi
1336
1337 ac_ext=c
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342
1343
1344 gl_header_list="$gl_header_list stdint.h"
1345 gl_header_list="$gl_header_list wchar.h"
1346 gl_header_list="$gl_header_list string.h"
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367           ac_config_headers="$ac_config_headers config.h:config.in"
1368
1369 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1370 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1371     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1372 if test "${enable_maintainer_mode+set}" = set; then
1373   enableval="$enable_maintainer_mode"
1374   USE_MAINTAINER_MODE=$enableval
1375 else
1376   USE_MAINTAINER_MODE=no
1377 fi;
1378   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1379 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1380
1381
1382 if test $USE_MAINTAINER_MODE = yes; then
1383   MAINTAINER_MODE_TRUE=
1384   MAINTAINER_MODE_FALSE='#'
1385 else
1386   MAINTAINER_MODE_TRUE='#'
1387   MAINTAINER_MODE_FALSE=
1388 fi
1389
1390   MAINT=$MAINTAINER_MODE_TRUE
1391
1392
1393
1394 ac_ext=c
1395 ac_cpp='$CPP $CPPFLAGS'
1396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399 if test -n "$ac_tool_prefix"; then
1400   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1402 echo "$as_me:$LINENO: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_CC+set}" = set; then
1405   echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407   if test -n "$CC"; then
1408   ac_cv_prog_CC="$CC" # Let the user override the test.
1409 else
1410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411 for as_dir in $PATH
1412 do
1413   IFS=$as_save_IFS
1414   test -z "$as_dir" && as_dir=.
1415   for ac_exec_ext in '' $ac_executable_extensions; do
1416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1417     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1419     break 2
1420   fi
1421 done
1422 done
1423
1424 fi
1425 fi
1426 CC=$ac_cv_prog_CC
1427 if test -n "$CC"; then
1428   echo "$as_me:$LINENO: result: $CC" >&5
1429 echo "${ECHO_T}$CC" >&6
1430 else
1431   echo "$as_me:$LINENO: result: no" >&5
1432 echo "${ECHO_T}no" >&6
1433 fi
1434
1435 fi
1436 if test -z "$ac_cv_prog_CC"; then
1437   ac_ct_CC=$CC
1438   # Extract the first word of "gcc", so it can be a program name with args.
1439 set dummy gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1443   echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445   if test -n "$ac_ct_CC"; then
1446   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451   IFS=$as_save_IFS
1452   test -z "$as_dir" && as_dir=.
1453   for ac_exec_ext in '' $ac_executable_extensions; do
1454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455     ac_cv_prog_ac_ct_CC="gcc"
1456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457     break 2
1458   fi
1459 done
1460 done
1461
1462 fi
1463 fi
1464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465 if test -n "$ac_ct_CC"; then
1466   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1467 echo "${ECHO_T}$ac_ct_CC" >&6
1468 else
1469   echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1471 fi
1472
1473   CC=$ac_ct_CC
1474 else
1475   CC="$ac_cv_prog_CC"
1476 fi
1477
1478 if test -z "$CC"; then
1479   if test -n "$ac_tool_prefix"; then
1480   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1481 set dummy ${ac_tool_prefix}cc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_CC+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   if test -n "$CC"; then
1488   ac_cv_prog_CC="$CC" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1492 do
1493   IFS=$as_save_IFS
1494   test -z "$as_dir" && as_dir=.
1495   for ac_exec_ext in '' $ac_executable_extensions; do
1496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497     ac_cv_prog_CC="${ac_tool_prefix}cc"
1498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499     break 2
1500   fi
1501 done
1502 done
1503
1504 fi
1505 fi
1506 CC=$ac_cv_prog_CC
1507 if test -n "$CC"; then
1508   echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1510 else
1511   echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 fi
1514
1515 fi
1516 if test -z "$ac_cv_prog_CC"; then
1517   ac_ct_CC=$CC
1518   # Extract the first word of "cc", so it can be a program name with args.
1519 set dummy cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523   echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525   if test -n "$ac_ct_CC"; then
1526   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531   IFS=$as_save_IFS
1532   test -z "$as_dir" && as_dir=.
1533   for ac_exec_ext in '' $ac_executable_extensions; do
1534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535     ac_cv_prog_ac_ct_CC="cc"
1536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537     break 2
1538   fi
1539 done
1540 done
1541
1542 fi
1543 fi
1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545 if test -n "$ac_ct_CC"; then
1546   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547 echo "${ECHO_T}$ac_ct_CC" >&6
1548 else
1549   echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553   CC=$ac_ct_CC
1554 else
1555   CC="$ac_cv_prog_CC"
1556 fi
1557
1558 fi
1559 if test -z "$CC"; then
1560   # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_CC+set}" = set; then
1565   echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567   if test -n "$CC"; then
1568   ac_cv_prog_CC="$CC" # Let the user override the test.
1569 else
1570   ac_prog_rejected=no
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 for as_dir in $PATH
1573 do
1574   IFS=$as_save_IFS
1575   test -z "$as_dir" && as_dir=.
1576   for ac_exec_ext in '' $ac_executable_extensions; do
1577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1579        ac_prog_rejected=yes
1580        continue
1581      fi
1582     ac_cv_prog_CC="cc"
1583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584     break 2
1585   fi
1586 done
1587 done
1588
1589 if test $ac_prog_rejected = yes; then
1590   # We found a bogon in the path, so make sure we never use it.
1591   set dummy $ac_cv_prog_CC
1592   shift
1593   if test $# != 0; then
1594     # We chose a different compiler from the bogus one.
1595     # However, it has the same basename, so the bogon will be chosen
1596     # first if we set CC to just the basename; use the full file name.
1597     shift
1598     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1599   fi
1600 fi
1601 fi
1602 fi
1603 CC=$ac_cv_prog_CC
1604 if test -n "$CC"; then
1605   echo "$as_me:$LINENO: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1607 else
1608   echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1610 fi
1611
1612 fi
1613 if test -z "$CC"; then
1614   if test -n "$ac_tool_prefix"; then
1615   for ac_prog in cl
1616   do
1617     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622   echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624   if test -n "$CC"; then
1625   ac_cv_prog_CC="$CC" # Let the user override the test.
1626 else
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630   IFS=$as_save_IFS
1631   test -z "$as_dir" && as_dir=.
1632   for ac_exec_ext in '' $ac_executable_extensions; do
1633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636     break 2
1637   fi
1638 done
1639 done
1640
1641 fi
1642 fi
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645   echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648   echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1650 fi
1651
1652     test -n "$CC" && break
1653   done
1654 fi
1655 if test -z "$CC"; then
1656   ac_ct_CC=$CC
1657   for ac_prog in cl
1658 do
1659   # Extract the first word of "$ac_prog", so it can be a program name with args.
1660 set dummy $ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664   echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666   if test -n "$ac_ct_CC"; then
1667   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672   IFS=$as_save_IFS
1673   test -z "$as_dir" && as_dir=.
1674   for ac_exec_ext in '' $ac_executable_extensions; do
1675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676     ac_cv_prog_ac_ct_CC="$ac_prog"
1677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678     break 2
1679   fi
1680 done
1681 done
1682
1683 fi
1684 fi
1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1689 else
1690   echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1692 fi
1693
1694   test -n "$ac_ct_CC" && break
1695 done
1696
1697   CC=$ac_ct_CC
1698 fi
1699
1700 fi
1701
1702
1703 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1704 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1705 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1706 See \`config.log' for more details." >&5
1707 echo "$as_me: error: no acceptable C compiler found in \$PATH
1708 See \`config.log' for more details." >&2;}
1709    { (exit 1); exit 1; }; }; }
1710
1711 # Provide some information about the compiler.
1712 echo "$as_me:$LINENO:" \
1713      "checking for C compiler version" >&5
1714 ac_compiler=`set X $ac_compile; echo $2`
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716   (eval $ac_compiler --version </dev/null >&5) 2>&5
1717   ac_status=$?
1718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719   (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721   (eval $ac_compiler -v </dev/null >&5) 2>&5
1722   ac_status=$?
1723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724   (exit $ac_status); }
1725 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726   (eval $ac_compiler -V </dev/null >&5) 2>&5
1727   ac_status=$?
1728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729   (exit $ac_status); }
1730
1731 cat >conftest.$ac_ext <<_ACEOF
1732 /* confdefs.h.  */
1733 _ACEOF
1734 cat confdefs.h >>conftest.$ac_ext
1735 cat >>conftest.$ac_ext <<_ACEOF
1736 /* end confdefs.h.  */
1737
1738 int
1739 main ()
1740 {
1741
1742   ;
1743   return 0;
1744 }
1745 _ACEOF
1746 ac_clean_files_save=$ac_clean_files
1747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1748 # Try to create an executable without -o first, disregard a.out.
1749 # It will help us diagnose broken compilers, and finding out an intuition
1750 # of exeext.
1751 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1754 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755   (eval $ac_link_default) 2>&5
1756   ac_status=$?
1757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758   (exit $ac_status); }; then
1759   # Find the output, starting from the most likely.  This scheme is
1760 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1761 # resort.
1762
1763 # Be careful to initialize this variable, since it used to be cached.
1764 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1765 ac_cv_exeext=
1766 # b.out is created by i960 compilers.
1767 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1768 do
1769   test -f "$ac_file" || continue
1770   case $ac_file in
1771     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1772         ;;
1773     conftest.$ac_ext )
1774         # This is the source file.
1775         ;;
1776     [ab].out )
1777         # We found the default executable, but exeext='' is most
1778         # certainly right.
1779         break;;
1780     *.* )
1781         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782         # FIXME: I believe we export ac_cv_exeext for Libtool,
1783         # but it would be cool to find out if it's true.  Does anybody
1784         # maintain Libtool? --akim.
1785         export ac_cv_exeext
1786         break;;
1787     * )
1788         break;;
1789   esac
1790 done
1791 else
1792   echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1796 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: C compiler cannot create executables
1800 See \`config.log' for more details." >&2;}
1801    { (exit 77); exit 77; }; }; }
1802 fi
1803
1804 ac_exeext=$ac_cv_exeext
1805 echo "$as_me:$LINENO: result: $ac_file" >&5
1806 echo "${ECHO_T}$ac_file" >&6
1807
1808 # Check the compiler produces executables we can run.  If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1811 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1812 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1813 # If not cross compiling, check that we can run a simple program.
1814 if test "$cross_compiling" != yes; then
1815   if { ac_try='./$ac_file'
1816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1817   (eval $ac_try) 2>&5
1818   ac_status=$?
1819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820   (exit $ac_status); }; }; then
1821     cross_compiling=no
1822   else
1823     if test "$cross_compiling" = maybe; then
1824         cross_compiling=yes
1825     else
1826         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1829 If you meant to cross compile, use \`--host'.
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&2;}
1834    { (exit 1); exit 1; }; }; }
1835     fi
1836   fi
1837 fi
1838 echo "$as_me:$LINENO: result: yes" >&5
1839 echo "${ECHO_T}yes" >&6
1840
1841 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1842 ac_clean_files=$ac_clean_files_save
1843 # Check the compiler produces executables we can run.  If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1847 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1848 echo "${ECHO_T}$cross_compiling" >&6
1849
1850 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1853   (eval $ac_link) 2>&5
1854   ac_status=$?
1855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856   (exit $ac_status); }; then
1857   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1858 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1859 # work properly (i.e., refer to `conftest.exe'), while it won't with
1860 # `rm'.
1861 for ac_file in conftest.exe conftest conftest.*; do
1862   test -f "$ac_file" || continue
1863   case $ac_file in
1864     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1865     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1866           export ac_cv_exeext
1867           break;;
1868     * ) break;;
1869   esac
1870 done
1871 else
1872   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1873 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1875 See \`config.log' for more details." >&5
1876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1877 See \`config.log' for more details." >&2;}
1878    { (exit 1); exit 1; }; }; }
1879 fi
1880
1881 rm -f conftest$ac_cv_exeext
1882 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1883 echo "${ECHO_T}$ac_cv_exeext" >&6
1884
1885 rm -f conftest.$ac_ext
1886 EXEEXT=$ac_cv_exeext
1887 ac_exeext=$EXEEXT
1888 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1889 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1890 if test "${ac_cv_objext+set}" = set; then
1891   echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893   cat >conftest.$ac_ext <<_ACEOF
1894 /* confdefs.h.  */
1895 _ACEOF
1896 cat confdefs.h >>conftest.$ac_ext
1897 cat >>conftest.$ac_ext <<_ACEOF
1898 /* end confdefs.h.  */
1899
1900 int
1901 main ()
1902 {
1903
1904   ;
1905   return 0;
1906 }
1907 _ACEOF
1908 rm -f conftest.o conftest.obj
1909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910   (eval $ac_compile) 2>&5
1911   ac_status=$?
1912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913   (exit $ac_status); }; then
1914   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1915   case $ac_file in
1916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1917     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1918        break;;
1919   esac
1920 done
1921 else
1922   echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1926 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1927 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1928 See \`config.log' for more details." >&5
1929 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1930 See \`config.log' for more details." >&2;}
1931    { (exit 1); exit 1; }; }; }
1932 fi
1933
1934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1935 fi
1936 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1937 echo "${ECHO_T}$ac_cv_objext" >&6
1938 OBJEXT=$ac_cv_objext
1939 ac_objext=$OBJEXT
1940 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1943   echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945   cat >conftest.$ac_ext <<_ACEOF
1946 /* confdefs.h.  */
1947 _ACEOF
1948 cat confdefs.h >>conftest.$ac_ext
1949 cat >>conftest.$ac_ext <<_ACEOF
1950 /* end confdefs.h.  */
1951
1952 int
1953 main ()
1954 {
1955 #ifndef __GNUC__
1956        choke me
1957 #endif
1958
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 rm -f conftest.$ac_objext
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965   (eval $ac_compile) 2>conftest.er1
1966   ac_status=$?
1967   grep -v '^ *+' conftest.er1 >conftest.err
1968   rm -f conftest.er1
1969   cat conftest.err >&5
1970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971   (exit $ac_status); } &&
1972          { ac_try='test -z "$ac_c_werror_flag"
1973                          || test ! -s conftest.err'
1974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975   (eval $ac_try) 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); }; } &&
1979          { ac_try='test -s conftest.$ac_objext'
1980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981   (eval $ac_try) 2>&5
1982   ac_status=$?
1983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984   (exit $ac_status); }; }; then
1985   ac_compiler_gnu=yes
1986 else
1987   echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_compiler_gnu=no
1991 fi
1992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1994
1995 fi
1996 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1998 GCC=`test $ac_compiler_gnu = yes && echo yes`
1999 ac_test_CFLAGS=${CFLAGS+set}
2000 ac_save_CFLAGS=$CFLAGS
2001 CFLAGS="-g"
2002 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2004 if test "${ac_cv_prog_cc_g+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   cat >conftest.$ac_ext <<_ACEOF
2008 /* confdefs.h.  */
2009 _ACEOF
2010 cat confdefs.h >>conftest.$ac_ext
2011 cat >>conftest.$ac_ext <<_ACEOF
2012 /* end confdefs.h.  */
2013
2014 int
2015 main ()
2016 {
2017
2018   ;
2019   return 0;
2020 }
2021 _ACEOF
2022 rm -f conftest.$ac_objext
2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024   (eval $ac_compile) 2>conftest.er1
2025   ac_status=$?
2026   grep -v '^ *+' conftest.er1 >conftest.err
2027   rm -f conftest.er1
2028   cat conftest.err >&5
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); } &&
2031          { ac_try='test -z "$ac_c_werror_flag"
2032                          || test ! -s conftest.err'
2033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034   (eval $ac_try) 2>&5
2035   ac_status=$?
2036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037   (exit $ac_status); }; } &&
2038          { ac_try='test -s conftest.$ac_objext'
2039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040   (eval $ac_try) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }; }; then
2044   ac_cv_prog_cc_g=yes
2045 else
2046   echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_cv_prog_cc_g=no
2050 fi
2051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2055 if test "$ac_test_CFLAGS" = set; then
2056   CFLAGS=$ac_save_CFLAGS
2057 elif test $ac_cv_prog_cc_g = yes; then
2058   if test "$GCC" = yes; then
2059     CFLAGS="-g -O2"
2060   else
2061     CFLAGS="-g"
2062   fi
2063 else
2064   if test "$GCC" = yes; then
2065     CFLAGS="-O2"
2066   else
2067     CFLAGS=
2068   fi
2069 fi
2070 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2071 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   ac_cv_prog_cc_stdc=no
2076 ac_save_CC=$CC
2077 cat >conftest.$ac_ext <<_ACEOF
2078 /* confdefs.h.  */
2079 _ACEOF
2080 cat confdefs.h >>conftest.$ac_ext
2081 cat >>conftest.$ac_ext <<_ACEOF
2082 /* end confdefs.h.  */
2083 #include <stdarg.h>
2084 #include <stdio.h>
2085 #include <sys/types.h>
2086 #include <sys/stat.h>
2087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2088 struct buf { int x; };
2089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2090 static char *e (p, i)
2091      char **p;
2092      int i;
2093 {
2094   return p[i];
2095 }
2096 static char *f (char * (*g) (char **, int), char **p, ...)
2097 {
2098   char *s;
2099   va_list v;
2100   va_start (v,p);
2101   s = g (p, va_arg (v,int));
2102   va_end (v);
2103   return s;
2104 }
2105
2106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2107    function prototypes and stuff, but not '\xHH' hex character constants.
2108    These don't provoke an error unfortunately, instead are silently treated
2109    as 'x'.  The following induces an error, until -std1 is added to get
2110    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2111    array size at least.  It's necessary to write '\x00'==0 to get something
2112    that's true only with -std1.  */
2113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2114
2115 int test (int i, double x);
2116 struct s1 {int (*f) (int a);};
2117 struct s2 {int (*f) (double a);};
2118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2119 int argc;
2120 char **argv;
2121 int
2122 main ()
2123 {
2124 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 # Don't try gcc -ansi; that turns off useful extensions and
2130 # breaks some systems' header files.
2131 # AIX                   -qlanglvl=ansi
2132 # Ultrix and OSF/1      -std1
2133 # HP-UX 10.20 and later -Ae
2134 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2135 # SVR4                  -Xc -D__EXTENSIONS__
2136 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2137 do
2138   CC="$ac_save_CC $ac_arg"
2139   rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141   (eval $ac_compile) 2>conftest.er1
2142   ac_status=$?
2143   grep -v '^ *+' conftest.er1 >conftest.err
2144   rm -f conftest.er1
2145   cat conftest.err >&5
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); } &&
2148          { ac_try='test -z "$ac_c_werror_flag"
2149                          || test ! -s conftest.err'
2150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151   (eval $ac_try) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; } &&
2155          { ac_try='test -s conftest.$ac_objext'
2156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157   (eval $ac_try) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; }; then
2161   ac_cv_prog_cc_stdc=$ac_arg
2162 break
2163 else
2164   echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 fi
2168 rm -f conftest.err conftest.$ac_objext
2169 done
2170 rm -f conftest.$ac_ext conftest.$ac_objext
2171 CC=$ac_save_CC
2172
2173 fi
2174
2175 case "x$ac_cv_prog_cc_stdc" in
2176   x|xno)
2177     echo "$as_me:$LINENO: result: none needed" >&5
2178 echo "${ECHO_T}none needed" >&6 ;;
2179   *)
2180     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2181 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182     CC="$CC $ac_cv_prog_cc_stdc" ;;
2183 esac
2184
2185 # Some people use a C++ compiler to compile C.  Since we use `exit',
2186 # in C++ we need to declare it.  In case someone uses the same compiler
2187 # for both compiling C and C++ we need to have the C++ compiler decide
2188 # the declaration of exit, since it's the most demanding environment.
2189 cat >conftest.$ac_ext <<_ACEOF
2190 #ifndef __cplusplus
2191   choke me
2192 #endif
2193 _ACEOF
2194 rm -f conftest.$ac_objext
2195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196   (eval $ac_compile) 2>conftest.er1
2197   ac_status=$?
2198   grep -v '^ *+' conftest.er1 >conftest.err
2199   rm -f conftest.er1
2200   cat conftest.err >&5
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); } &&
2203          { ac_try='test -z "$ac_c_werror_flag"
2204                          || test ! -s conftest.err'
2205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206   (eval $ac_try) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; } &&
2210          { ac_try='test -s conftest.$ac_objext'
2211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212   (eval $ac_try) 2>&5
2213   ac_status=$?
2214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215   (exit $ac_status); }; }; then
2216   for ac_declaration in \
2217    '' \
2218    'extern "C" void std::exit (int) throw (); using std::exit;' \
2219    'extern "C" void std::exit (int); using std::exit;' \
2220    'extern "C" void exit (int) throw ();' \
2221    'extern "C" void exit (int);' \
2222    'void exit (int);'
2223 do
2224   cat >conftest.$ac_ext <<_ACEOF
2225 /* confdefs.h.  */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h.  */
2230 $ac_declaration
2231 #include <stdlib.h>
2232 int
2233 main ()
2234 {
2235 exit (42);
2236   ;
2237   return 0;
2238 }
2239 _ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242   (eval $ac_compile) 2>conftest.er1
2243   ac_status=$?
2244   grep -v '^ *+' conftest.er1 >conftest.err
2245   rm -f conftest.er1
2246   cat conftest.err >&5
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); } &&
2249          { ac_try='test -z "$ac_c_werror_flag"
2250                          || test ! -s conftest.err'
2251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252   (eval $ac_try) 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; } &&
2256          { ac_try='test -s conftest.$ac_objext'
2257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258   (eval $ac_try) 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }; }; then
2262   :
2263 else
2264   echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 continue
2268 fi
2269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270   cat >conftest.$ac_ext <<_ACEOF
2271 /* confdefs.h.  */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h.  */
2276 $ac_declaration
2277 int
2278 main ()
2279 {
2280 exit (42);
2281   ;
2282   return 0;
2283 }
2284 _ACEOF
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287   (eval $ac_compile) 2>conftest.er1
2288   ac_status=$?
2289   grep -v '^ *+' conftest.er1 >conftest.err
2290   rm -f conftest.er1
2291   cat conftest.err >&5
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); } &&
2294          { ac_try='test -z "$ac_c_werror_flag"
2295                          || test ! -s conftest.err'
2296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297   (eval $ac_try) 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }; } &&
2301          { ac_try='test -s conftest.$ac_objext'
2302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303   (eval $ac_try) 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); }; }; then
2307   break
2308 else
2309   echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2311
2312 fi
2313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2314 done
2315 rm -f conftest*
2316 if test -n "$ac_declaration"; then
2317   echo '#ifdef __cplusplus' >>confdefs.h
2318   echo $ac_declaration      >>confdefs.h
2319   echo '#endif'             >>confdefs.h
2320 fi
2321
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 fi
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335 cat >>confdefs.h <<\_ACEOF
2336 #define _GNU_SOURCE 1
2337 _ACEOF
2338
2339
2340
2341 ac_ext=c
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2347 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2348 # On Suns, sometimes $CPP names a directory.
2349 if test -n "$CPP" && test -d "$CPP"; then
2350   CPP=
2351 fi
2352 if test -z "$CPP"; then
2353   if test "${ac_cv_prog_CPP+set}" = set; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356       # Double quotes because CPP needs to be expanded
2357     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2358     do
2359       ac_preproc_ok=false
2360 for ac_c_preproc_warn_flag in '' yes
2361 do
2362   # Use a header file that comes with gcc, so configuring glibc
2363   # with a fresh cross-compiler works.
2364   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365   # <limits.h> exists even on freestanding compilers.
2366   # On the NeXT, cc -E runs the code through the compiler's parser,
2367   # not just through cpp. "Syntax error" is here to catch this case.
2368   cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374 #ifdef __STDC__
2375 # include <limits.h>
2376 #else
2377 # include <assert.h>
2378 #endif
2379                      Syntax error
2380 _ACEOF
2381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383   ac_status=$?
2384   grep -v '^ *+' conftest.er1 >conftest.err
2385   rm -f conftest.er1
2386   cat conftest.err >&5
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); } >/dev/null; then
2389   if test -s conftest.err; then
2390     ac_cpp_err=$ac_c_preproc_warn_flag
2391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392   else
2393     ac_cpp_err=
2394   fi
2395 else
2396   ac_cpp_err=yes
2397 fi
2398 if test -z "$ac_cpp_err"; then
2399   :
2400 else
2401   echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404   # Broken: fails on valid input.
2405 continue
2406 fi
2407 rm -f conftest.err conftest.$ac_ext
2408
2409   # OK, works on sane cases.  Now check whether non-existent headers
2410   # can be detected and how.
2411   cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h.  */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h.  */
2417 #include <ac_nonexistent.h>
2418 _ACEOF
2419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421   ac_status=$?
2422   grep -v '^ *+' conftest.er1 >conftest.err
2423   rm -f conftest.er1
2424   cat conftest.err >&5
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); } >/dev/null; then
2427   if test -s conftest.err; then
2428     ac_cpp_err=$ac_c_preproc_warn_flag
2429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2430   else
2431     ac_cpp_err=
2432   fi
2433 else
2434   ac_cpp_err=yes
2435 fi
2436 if test -z "$ac_cpp_err"; then
2437   # Broken: success on invalid input.
2438 continue
2439 else
2440   echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443   # Passes both tests.
2444 ac_preproc_ok=:
2445 break
2446 fi
2447 rm -f conftest.err conftest.$ac_ext
2448
2449 done
2450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451 rm -f conftest.err conftest.$ac_ext
2452 if $ac_preproc_ok; then
2453   break
2454 fi
2455
2456     done
2457     ac_cv_prog_CPP=$CPP
2458
2459 fi
2460   CPP=$ac_cv_prog_CPP
2461 else
2462   ac_cv_prog_CPP=$CPP
2463 fi
2464 echo "$as_me:$LINENO: result: $CPP" >&5
2465 echo "${ECHO_T}$CPP" >&6
2466 ac_preproc_ok=false
2467 for ac_c_preproc_warn_flag in '' yes
2468 do
2469   # Use a header file that comes with gcc, so configuring glibc
2470   # with a fresh cross-compiler works.
2471   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472   # <limits.h> exists even on freestanding compilers.
2473   # On the NeXT, cc -E runs the code through the compiler's parser,
2474   # not just through cpp. "Syntax error" is here to catch this case.
2475   cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481 #ifdef __STDC__
2482 # include <limits.h>
2483 #else
2484 # include <assert.h>
2485 #endif
2486                      Syntax error
2487 _ACEOF
2488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490   ac_status=$?
2491   grep -v '^ *+' conftest.er1 >conftest.err
2492   rm -f conftest.er1
2493   cat conftest.err >&5
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); } >/dev/null; then
2496   if test -s conftest.err; then
2497     ac_cpp_err=$ac_c_preproc_warn_flag
2498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2499   else
2500     ac_cpp_err=
2501   fi
2502 else
2503   ac_cpp_err=yes
2504 fi
2505 if test -z "$ac_cpp_err"; then
2506   :
2507 else
2508   echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511   # Broken: fails on valid input.
2512 continue
2513 fi
2514 rm -f conftest.err conftest.$ac_ext
2515
2516   # OK, works on sane cases.  Now check whether non-existent headers
2517   # can be detected and how.
2518   cat >conftest.$ac_ext <<_ACEOF
2519 /* confdefs.h.  */
2520 _ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h.  */
2524 #include <ac_nonexistent.h>
2525 _ACEOF
2526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528   ac_status=$?
2529   grep -v '^ *+' conftest.er1 >conftest.err
2530   rm -f conftest.er1
2531   cat conftest.err >&5
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); } >/dev/null; then
2534   if test -s conftest.err; then
2535     ac_cpp_err=$ac_c_preproc_warn_flag
2536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2537   else
2538     ac_cpp_err=
2539   fi
2540 else
2541   ac_cpp_err=yes
2542 fi
2543 if test -z "$ac_cpp_err"; then
2544   # Broken: success on invalid input.
2545 continue
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550   # Passes both tests.
2551 ac_preproc_ok=:
2552 break
2553 fi
2554 rm -f conftest.err conftest.$ac_ext
2555
2556 done
2557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558 rm -f conftest.err conftest.$ac_ext
2559 if $ac_preproc_ok; then
2560   :
2561 else
2562   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2567 See \`config.log' for more details." >&2;}
2568    { (exit 1); exit 1; }; }; }
2569 fi
2570
2571 ac_ext=c
2572 ac_cpp='$CPP $CPPFLAGS'
2573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576
2577
2578 echo "$as_me:$LINENO: checking for egrep" >&5
2579 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2580 if test "${ac_cv_prog_egrep+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2584     then ac_cv_prog_egrep='grep -E'
2585     else ac_cv_prog_egrep='egrep'
2586     fi
2587 fi
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2589 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2590  EGREP=$ac_cv_prog_egrep
2591
2592
2593
2594 echo "$as_me:$LINENO: checking for AIX" >&5
2595 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h.  */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h.  */
2602 #ifdef _AIX
2603   yes
2604 #endif
2605
2606 _ACEOF
2607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2608   $EGREP "yes" >/dev/null 2>&1; then
2609   echo "$as_me:$LINENO: result: yes" >&5
2610 echo "${ECHO_T}yes" >&6
2611 cat >>confdefs.h <<\_ACEOF
2612 #define _ALL_SOURCE 1
2613 _ACEOF
2614
2615 else
2616   echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2618 fi
2619 rm -f conftest*
2620
2621
2622 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2623 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2624 if test "${ac_cv_search_strerror+set}" = set; then
2625   echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627   ac_func_search_save_LIBS=$LIBS
2628 ac_cv_search_strerror=no
2629 cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635
2636 /* Override any gcc2 internal prototype to avoid an error.  */
2637 #ifdef __cplusplus
2638 extern "C"
2639 #endif
2640 /* We use char because int might match the return type of a gcc2
2641    builtin and then its argument prototype would still apply.  */
2642 char strerror ();
2643 int
2644 main ()
2645 {
2646 strerror ();
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext conftest$ac_exeext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653   (eval $ac_link) 2>conftest.er1
2654   ac_status=$?
2655   grep -v '^ *+' conftest.er1 >conftest.err
2656   rm -f conftest.er1
2657   cat conftest.err >&5
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); } &&
2660          { ac_try='test -z "$ac_c_werror_flag"
2661                          || test ! -s conftest.err'
2662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663   (eval $ac_try) 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }; } &&
2667          { ac_try='test -s conftest$ac_exeext'
2668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669   (eval $ac_try) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }; }; then
2673   ac_cv_search_strerror="none required"
2674 else
2675   echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678 fi
2679 rm -f conftest.err conftest.$ac_objext \
2680       conftest$ac_exeext conftest.$ac_ext
2681 if test "$ac_cv_search_strerror" = no; then
2682   for ac_lib in cposix; do
2683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2684     cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h.  */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h.  */
2690
2691 /* Override any gcc2 internal prototype to avoid an error.  */
2692 #ifdef __cplusplus
2693 extern "C"
2694 #endif
2695 /* We use char because int might match the return type of a gcc2
2696    builtin and then its argument prototype would still apply.  */
2697 char strerror ();
2698 int
2699 main ()
2700 {
2701 strerror ();
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext conftest$ac_exeext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708   (eval $ac_link) 2>conftest.er1
2709   ac_status=$?
2710   grep -v '^ *+' conftest.er1 >conftest.err
2711   rm -f conftest.er1
2712   cat conftest.err >&5
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          { ac_try='test -z "$ac_c_werror_flag"
2716                          || test ! -s conftest.err'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; } &&
2722          { ac_try='test -s conftest$ac_exeext'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   ac_cv_search_strerror="-l$ac_lib"
2729 break
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734 fi
2735 rm -f conftest.err conftest.$ac_objext \
2736       conftest$ac_exeext conftest.$ac_ext
2737   done
2738 fi
2739 LIBS=$ac_func_search_save_LIBS
2740 fi
2741 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2742 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2743 if test "$ac_cv_search_strerror" != no; then
2744   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2745
2746 fi
2747
2748 if test -n "$ac_tool_prefix"; then
2749   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2750 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2751 echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753 if test "${ac_cv_prog_RANLIB+set}" = set; then
2754   echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756   if test -n "$RANLIB"; then
2757   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762   IFS=$as_save_IFS
2763   test -z "$as_dir" && as_dir=.
2764   for ac_exec_ext in '' $ac_executable_extensions; do
2765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768     break 2
2769   fi
2770 done
2771 done
2772
2773 fi
2774 fi
2775 RANLIB=$ac_cv_prog_RANLIB
2776 if test -n "$RANLIB"; then
2777   echo "$as_me:$LINENO: result: $RANLIB" >&5
2778 echo "${ECHO_T}$RANLIB" >&6
2779 else
2780   echo "$as_me:$LINENO: result: no" >&5
2781 echo "${ECHO_T}no" >&6
2782 fi
2783
2784 fi
2785 if test -z "$ac_cv_prog_RANLIB"; then
2786   ac_ct_RANLIB=$RANLIB
2787   # Extract the first word of "ranlib", so it can be a program name with args.
2788 set dummy ranlib; ac_word=$2
2789 echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2792   echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794   if test -n "$ac_ct_RANLIB"; then
2795   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800   IFS=$as_save_IFS
2801   test -z "$as_dir" && as_dir=.
2802   for ac_exec_ext in '' $ac_executable_extensions; do
2803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804     ac_cv_prog_ac_ct_RANLIB="ranlib"
2805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806     break 2
2807   fi
2808 done
2809 done
2810
2811   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2812 fi
2813 fi
2814 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2815 if test -n "$ac_ct_RANLIB"; then
2816   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2817 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2818 else
2819   echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2821 fi
2822
2823   RANLIB=$ac_ct_RANLIB
2824 else
2825   RANLIB="$ac_cv_prog_RANLIB"
2826 fi
2827
2828 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2830 if test "${ac_cv_header_stdc+set}" = set; then
2831   echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833   cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h.  */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h.  */
2839 #include <stdlib.h>
2840 #include <stdarg.h>
2841 #include <string.h>
2842 #include <float.h>
2843
2844 int
2845 main ()
2846 {
2847
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854   (eval $ac_compile) 2>conftest.er1
2855   ac_status=$?
2856   grep -v '^ *+' conftest.er1 >conftest.err
2857   rm -f conftest.er1
2858   cat conftest.err >&5
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861          { ac_try='test -z "$ac_c_werror_flag"
2862                          || test ! -s conftest.err'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; } &&
2868          { ac_try='test -s conftest.$ac_objext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   ac_cv_header_stdc=yes
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 ac_cv_header_stdc=no
2880 fi
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882
2883 if test $ac_cv_header_stdc = yes; then
2884   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885   cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891 #include <string.h>
2892
2893 _ACEOF
2894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2895   $EGREP "memchr" >/dev/null 2>&1; then
2896   :
2897 else
2898   ac_cv_header_stdc=no
2899 fi
2900 rm -f conftest*
2901
2902 fi
2903
2904 if test $ac_cv_header_stdc = yes; then
2905   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2906   cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h.  */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h.  */
2912 #include <stdlib.h>
2913
2914 _ACEOF
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916   $EGREP "free" >/dev/null 2>&1; then
2917   :
2918 else
2919   ac_cv_header_stdc=no
2920 fi
2921 rm -f conftest*
2922
2923 fi
2924
2925 if test $ac_cv_header_stdc = yes; then
2926   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2927   if test "$cross_compiling" = yes; then
2928   :
2929 else
2930   cat >conftest.$ac_ext <<_ACEOF
2931 /* confdefs.h.  */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h.  */
2936 #include <ctype.h>
2937 #if ((' ' & 0x0FF) == 0x020)
2938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2940 #else
2941 # define ISLOWER(c) \
2942                    (('a' <= (c) && (c) <= 'i') \
2943                      || ('j' <= (c) && (c) <= 'r') \
2944                      || ('s' <= (c) && (c) <= 'z'))
2945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2946 #endif
2947
2948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2949 int
2950 main ()
2951 {
2952   int i;
2953   for (i = 0; i < 256; i++)
2954     if (XOR (islower (i), ISLOWER (i))
2955         || toupper (i) != TOUPPER (i))
2956       exit(2);
2957   exit (0);
2958 }
2959 _ACEOF
2960 rm -f conftest$ac_exeext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962   (eval $ac_link) 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967   (eval $ac_try) 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; }; then
2971   :
2972 else
2973   echo "$as_me: program exited with status $ac_status" >&5
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 ( exit $ac_status )
2978 ac_cv_header_stdc=no
2979 fi
2980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2981 fi
2982 fi
2983 fi
2984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2986 if test $ac_cv_header_stdc = yes; then
2987
2988 cat >>confdefs.h <<\_ACEOF
2989 #define STDC_HEADERS 1
2990 _ACEOF
2991
2992 fi
2993
2994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3005                   inttypes.h stdint.h unistd.h
3006 do
3007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3008 echo "$as_me:$LINENO: checking for $ac_header" >&5
3009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013   cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h.  */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h.  */
3019 $ac_includes_default
3020
3021 #include <$ac_header>
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3025   (eval $ac_compile) 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } &&
3032          { ac_try='test -z "$ac_c_werror_flag"
3033                          || test ! -s conftest.err'
3034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035   (eval $ac_try) 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; } &&
3039          { ac_try='test -s conftest.$ac_objext'
3040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041   (eval $ac_try) 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; }; then
3045   eval "$as_ac_Header=yes"
3046 else
3047   echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 eval "$as_ac_Header=no"
3051 fi
3052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3053 fi
3054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3057   cat >>confdefs.h <<_ACEOF
3058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3059 _ACEOF
3060
3061 fi
3062
3063 done
3064
3065
3066
3067   if test "${ac_cv_header_minix_config_h+set}" = set; then
3068   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3069 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 fi
3073 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3074 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3075 else
3076   # Is the header compilable?
3077 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3078 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085 $ac_includes_default
3086 #include <minix/config.h>
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090   (eval $ac_compile) 2>conftest.er1
3091   ac_status=$?
3092   grep -v '^ *+' conftest.er1 >conftest.err
3093   rm -f conftest.er1
3094   cat conftest.err >&5
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); } &&
3097          { ac_try='test -z "$ac_c_werror_flag"
3098                          || test ! -s conftest.err'
3099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100   (eval $ac_try) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; } &&
3104          { ac_try='test -s conftest.$ac_objext'
3105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106   (eval $ac_try) 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; }; then
3110   ac_header_compiler=yes
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 ac_header_compiler=no
3116 fi
3117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3119 echo "${ECHO_T}$ac_header_compiler" >&6
3120
3121 # Is the header present?
3122 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3123 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130 #include <minix/config.h>
3131 _ACEOF
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134   ac_status=$?
3135   grep -v '^ *+' conftest.er1 >conftest.err
3136   rm -f conftest.er1
3137   cat conftest.err >&5
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } >/dev/null; then
3140   if test -s conftest.err; then
3141     ac_cpp_err=$ac_c_preproc_warn_flag
3142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3143   else
3144     ac_cpp_err=
3145   fi
3146 else
3147   ac_cpp_err=yes
3148 fi
3149 if test -z "$ac_cpp_err"; then
3150   ac_header_preproc=yes
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155   ac_header_preproc=no
3156 fi
3157 rm -f conftest.err conftest.$ac_ext
3158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3159 echo "${ECHO_T}$ac_header_preproc" >&6
3160
3161 # So?  What about this header?
3162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3163   yes:no: )
3164     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3165 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3166     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3167 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3168     ac_header_preproc=yes
3169     ;;
3170   no:yes:* )
3171     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3172 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3173     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3174 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3175     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3176 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3177     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3178 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3179     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3180 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3181     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3182 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3183     (
3184       cat <<\_ASBOX
3185 ## ------------------------------------------ ##
3186 ## Report this to the AC_PACKAGE_NAME lists.  ##
3187 ## ------------------------------------------ ##
3188 _ASBOX
3189     ) |
3190       sed "s/^/$as_me: WARNING:     /" >&2
3191     ;;
3192 esac
3193 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3194 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3195 if test "${ac_cv_header_minix_config_h+set}" = set; then
3196   echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198   ac_cv_header_minix_config_h=$ac_header_preproc
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3201 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3202
3203 fi
3204 if test $ac_cv_header_minix_config_h = yes; then
3205   MINIX=yes
3206 else
3207   MINIX=
3208 fi
3209
3210
3211   if test "$MINIX" = yes; then
3212
3213 cat >>confdefs.h <<\_ACEOF
3214 #define _POSIX_SOURCE 1
3215 _ACEOF
3216
3217
3218 cat >>confdefs.h <<\_ACEOF
3219 #define _POSIX_1_SOURCE 2
3220 _ACEOF
3221
3222
3223 cat >>confdefs.h <<\_ACEOF
3224 #define _MINIX 1
3225 _ACEOF
3226
3227   fi
3228
3229
3230
3231   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3232 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3233 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3234   echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236   cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h.  */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h.  */
3242
3243 #         define __EXTENSIONS__ 1
3244           $ac_includes_default
3245 int
3246 main ()
3247 {
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255   (eval $ac_compile) 2>conftest.er1
3256   ac_status=$?
3257   grep -v '^ *+' conftest.er1 >conftest.err
3258   rm -f conftest.er1
3259   cat conftest.err >&5
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); } &&
3262          { ac_try='test -z "$ac_c_werror_flag"
3263                          || test ! -s conftest.err'
3264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265   (eval $ac_try) 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }; } &&
3269          { ac_try='test -s conftest.$ac_objext'
3270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271   (eval $ac_try) 2>&5
3272   ac_status=$?
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); }; }; then
3275   ac_cv_safe_to_define___extensions__=yes
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 ac_cv_safe_to_define___extensions__=no
3281 fi
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3285 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3286   test $ac_cv_safe_to_define___extensions__ = yes &&
3287     cat >>confdefs.h <<\_ACEOF
3288 #define __EXTENSIONS__ 1
3289 _ACEOF
3290
3291   cat >>confdefs.h <<\_ACEOF
3292 #define _ALL_SOURCE 1
3293 _ACEOF
3294
3295   cat >>confdefs.h <<\_ACEOF
3296 #define _GNU_SOURCE 1
3297 _ACEOF
3298
3299   cat >>confdefs.h <<\_ACEOF
3300 #define _POSIX_PTHREAD_SEMANTICS 1
3301 _ACEOF
3302
3303   cat >>confdefs.h <<\_ACEOF
3304 #define _TANDEM_SOURCE 1
3305 _ACEOF
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3317 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3318 if test "${am_cv_prog_cc_stdc+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   am_cv_prog_cc_stdc=no
3322 ac_save_CC="$CC"
3323 # Don't try gcc -ansi; that turns off useful extensions and
3324 # breaks some systems' header files.
3325 # AIX                   -qlanglvl=ansi
3326 # Ultrix and OSF/1      -std1
3327 # HP-UX 10.20 and later -Ae
3328 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3329 # SVR4                  -Xc -D__EXTENSIONS__
3330 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 do
3332   CC="$ac_save_CC $ac_arg"
3333   cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h.  */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h.  */
3339 #include <stdarg.h>
3340 #include <stdio.h>
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3347      char **p;
3348      int i;
3349 {
3350   return p[i];
3351 }
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3353 {
3354   char *s;
3355   va_list v;
3356   va_start (v,p);
3357   s = g (p, va_arg (v,int));
3358   va_end (v);
3359   return s;
3360 }
3361 int test (int i, double x);
3362 struct s1 {int (*f) (int a);};
3363 struct s2 {int (*f) (double a);};
3364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365 int argc;
3366 char **argv;
3367
3368 int
3369 main ()
3370 {
3371
3372 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380   (eval $ac_compile) 2>conftest.er1
3381   ac_status=$?
3382   grep -v '^ *+' conftest.er1 >conftest.err
3383   rm -f conftest.er1
3384   cat conftest.err >&5
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } &&
3387          { ac_try='test -z "$ac_c_werror_flag"
3388                          || test ! -s conftest.err'
3389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390   (eval $ac_try) 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }; } &&
3394          { ac_try='test -s conftest.$ac_objext'
3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396   (eval $ac_try) 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; }; then
3400   am_cv_prog_cc_stdc="$ac_arg"; break
3401 else
3402   echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 fi
3406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407 done
3408 CC="$ac_save_CC"
3409
3410 fi
3411
3412 if test -z "$am_cv_prog_cc_stdc"; then
3413   echo "$as_me:$LINENO: result: none needed" >&5
3414 echo "${ECHO_T}none needed" >&6
3415 else
3416   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3417 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3418 fi
3419 case "x$am_cv_prog_cc_stdc" in
3420   x|xno) ;;
3421   *) CC="$CC $am_cv_prog_cc_stdc" ;;
3422 esac
3423
3424
3425 ac_aux_dir=
3426 for ac_dir in .. $srcdir/..; do
3427   if test -f $ac_dir/install-sh; then
3428     ac_aux_dir=$ac_dir
3429     ac_install_sh="$ac_aux_dir/install-sh -c"
3430     break
3431   elif test -f $ac_dir/install.sh; then
3432     ac_aux_dir=$ac_dir
3433     ac_install_sh="$ac_aux_dir/install.sh -c"
3434     break
3435   elif test -f $ac_dir/shtool; then
3436     ac_aux_dir=$ac_dir
3437     ac_install_sh="$ac_aux_dir/shtool install -c"
3438     break
3439   fi
3440 done
3441 if test -z "$ac_aux_dir"; then
3442   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3443 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3444    { (exit 1); exit 1; }; }
3445 fi
3446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3448 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3449
3450 # Make sure we can run config.sub.
3451 $ac_config_sub sun4 >/dev/null 2>&1 ||
3452   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3454    { (exit 1); exit 1; }; }
3455
3456 echo "$as_me:$LINENO: checking build system type" >&5
3457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3458 if test "${ac_cv_build+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   ac_cv_build_alias=$build_alias
3462 test -z "$ac_cv_build_alias" &&
3463   ac_cv_build_alias=`$ac_config_guess`
3464 test -z "$ac_cv_build_alias" &&
3465   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3467    { (exit 1); exit 1; }; }
3468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3469   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3471    { (exit 1); exit 1; }; }
3472
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3475 echo "${ECHO_T}$ac_cv_build" >&6
3476 build=$ac_cv_build
3477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3480
3481
3482 echo "$as_me:$LINENO: checking host system type" >&5
3483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3484 if test "${ac_cv_host+set}" = set; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487   ac_cv_host_alias=$host_alias
3488 test -z "$ac_cv_host_alias" &&
3489   ac_cv_host_alias=$ac_cv_build_alias
3490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3491   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3493    { (exit 1); exit 1; }; }
3494
3495 fi
3496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3497 echo "${ECHO_T}$ac_cv_host" >&6
3498 host=$ac_cv_host
3499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3502
3503
3504 echo "$as_me:$LINENO: checking target system type" >&5
3505 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3506 if test "${ac_cv_target+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   ac_cv_target_alias=$target_alias
3510 test "x$ac_cv_target_alias" = "x" &&
3511   ac_cv_target_alias=$ac_cv_host_alias
3512 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3513   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3514 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3515    { (exit 1); exit 1; }; }
3516
3517 fi
3518 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3519 echo "${ECHO_T}$ac_cv_target" >&6
3520 target=$ac_cv_target
3521 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3522 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3523 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3524
3525
3526 # The aliases save the names the user supplied, while $host etc.
3527 # will get canonicalized.
3528 test -n "$target_alias" &&
3529   test "$program_prefix$program_suffix$program_transform_name" = \
3530     NONENONEs,x,x, &&
3531   program_prefix=${target_alias}-
3532
3533
3534 CONFIG_OBS=
3535 CONFIG_DEPS=
3536 CONFIG_SRCS=
3537 ENABLE_CFLAGS=
3538
3539 CONFIG_ALL=
3540 CONFIG_CLEAN=
3541 CONFIG_INSTALL=
3542 CONFIG_UNINSTALL=
3543
3544 # If we haven't got the data from the intl directory,
3545 # assume NLS is disabled.
3546 USE_NLS=no
3547 LIBINTL=
3548 LIBINTL_DEP=
3549 INCINTL=
3550 XGETTEXT=
3551 GMSGFMT=
3552 POSUB=
3553
3554 if test -f  ../intl/config.intl; then
3555   .  ../intl/config.intl
3556 fi
3557 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3558 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3559 if test x"$USE_NLS" != xyes; then
3560   echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3562 else
3563   echo "$as_me:$LINENO: result: yes" >&5
3564 echo "${ECHO_T}yes" >&6
3565
3566 cat >>confdefs.h <<\_ACEOF
3567 #define ENABLE_NLS 1
3568 _ACEOF
3569
3570
3571   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3572 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3573   # Look for .po and .gmo files in the source directory.
3574   CATALOGS=
3575   XLINGUAS=
3576   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3577     # If there aren't any .gmo files the shell will give us the
3578     # literal string "../path/to/srcdir/po/*.gmo" which has to be
3579     # weeded out.
3580     case "$cat" in *\**)
3581       continue;;
3582     esac
3583     # The quadruple backslash is collapsed to a double backslash
3584     # by the backticks, then collapsed again by the double quotes,
3585     # leaving us with one backslash in the sed expression (right
3586     # before the dot that mustn't act as a wildcard).
3587     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3588     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3589     # The user is allowed to set LINGUAS to a list of languages to
3590     # install catalogs for.  If it's empty that means "all of them."
3591     if test "x$LINGUAS" = x; then
3592       CATALOGS="$CATALOGS $cat"
3593       XLINGUAS="$XLINGUAS $lang"
3594     else
3595       case "$LINGUAS" in *$lang*)
3596         CATALOGS="$CATALOGS $cat"
3597         XLINGUAS="$XLINGUAS $lang"
3598         ;;
3599       esac
3600     fi
3601   done
3602   LINGUAS="$XLINGUAS"
3603   echo "$as_me:$LINENO: result: $LINGUAS" >&5
3604 echo "${ECHO_T}$LINGUAS" >&6
3605
3606
3607     DATADIRNAME=share
3608
3609   INSTOBJEXT=.mo
3610
3611   GENCAT=gencat
3612
3613   CATOBJEXT=.gmo
3614
3615 fi
3616
3617 localedir='${datadir}/locale'
3618
3619
3620 if test x"$USE_NLS" = xyes; then
3621    CONFIG_ALL="$CONFIG_ALL all-po"
3622    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3623    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3624    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3625 fi
3626
3627
3628   GNULIB_MEMMEM=0;
3629   GNULIB_MEMPCPY=0;
3630   GNULIB_MEMRCHR=0;
3631   GNULIB_STPCPY=0;
3632   GNULIB_STPNCPY=0;
3633   GNULIB_STRCHRNUL=0;
3634   GNULIB_STRDUP=0;
3635   GNULIB_STRNDUP=0;
3636   GNULIB_STRNLEN=0;
3637   GNULIB_STRPBRK=0;
3638   GNULIB_STRSEP=0;
3639   GNULIB_STRSTR=0;
3640   GNULIB_STRCASESTR=0;
3641   GNULIB_STRTOK_R=0;
3642   GNULIB_MBSLEN=0;
3643   GNULIB_MBSNLEN=0;
3644   GNULIB_MBSCHR=0;
3645   GNULIB_MBSRCHR=0;
3646   GNULIB_MBSSTR=0;
3647   GNULIB_MBSCASECMP=0;
3648   GNULIB_MBSNCASECMP=0;
3649   GNULIB_MBSPCASECMP=0;
3650   GNULIB_MBSCASESTR=0;
3651   GNULIB_MBSCSPN=0;
3652   GNULIB_MBSPBRK=0;
3653   GNULIB_MBSSPN=0;
3654   GNULIB_MBSSEP=0;
3655   GNULIB_MBSTOK_R=0;
3656   GNULIB_STRERROR=0;
3657   GNULIB_STRSIGNAL=0;
3658     HAVE_DECL_MEMMEM=1;
3659   HAVE_MEMPCPY=1;
3660   HAVE_DECL_MEMRCHR=1;
3661   HAVE_STPCPY=1;
3662   HAVE_STPNCPY=1;
3663   HAVE_STRCHRNUL=1;
3664   HAVE_DECL_STRDUP=1;
3665   HAVE_STRNDUP=1;
3666   HAVE_DECL_STRNDUP=1;
3667   HAVE_DECL_STRNLEN=1;
3668   HAVE_STRPBRK=1;
3669   HAVE_STRSEP=1;
3670   HAVE_STRCASESTR=1;
3671   HAVE_DECL_STRTOK_R=1;
3672   HAVE_DECL_STRERROR=1;
3673   HAVE_DECL_STRSIGNAL=1;
3674   REPLACE_STRERROR=0;
3675   REPLACE_STRSIGNAL=0;
3676   REPLACE_MEMMEM=0;
3677   REPLACE_STRCASESTR=0;
3678   REPLACE_STRSTR=0;
3679
3680
3681       echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3682 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3683 if test "${ac_cv_have_decl_memmem+set}" = set; then
3684   echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686   cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692 $ac_includes_default
3693 int
3694 main ()
3695 {
3696 #ifndef memmem
3697   char *p = (char *) memmem;
3698 #endif
3699
3700   ;
3701   return 0;
3702 }
3703 _ACEOF
3704 rm -f conftest.$ac_objext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706   (eval $ac_compile) 2>conftest.er1
3707   ac_status=$?
3708   grep -v '^ *+' conftest.er1 >conftest.err
3709   rm -f conftest.er1
3710   cat conftest.err >&5
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); } &&
3713          { ac_try='test -z "$ac_c_werror_flag"
3714                          || test ! -s conftest.err'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; } &&
3720          { ac_try='test -s conftest.$ac_objext'
3721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722   (eval $ac_try) 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; }; then
3726   ac_cv_have_decl_memmem=yes
3727 else
3728   echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 ac_cv_have_decl_memmem=no
3732 fi
3733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734 fi
3735 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3736 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3737 if test $ac_cv_have_decl_memmem = yes; then
3738
3739 cat >>confdefs.h <<_ACEOF
3740 #define HAVE_DECL_MEMMEM 1
3741 _ACEOF
3742
3743
3744 else
3745   cat >>confdefs.h <<_ACEOF
3746 #define HAVE_DECL_MEMMEM 0
3747 _ACEOF
3748
3749
3750 fi
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766 for ac_func in memmem
3767 do
3768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3769 echo "$as_me:$LINENO: checking for $ac_func" >&5
3770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3771 if eval "test \"\${$as_ac_var+set}\" = set"; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h.  */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h.  */
3780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3782 #define $ac_func innocuous_$ac_func
3783
3784 /* System header to define __stub macros and hopefully few prototypes,
3785     which can conflict with char $ac_func (); below.
3786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787     <limits.h> exists even on freestanding compilers.  */
3788
3789 #ifdef __STDC__
3790 # include <limits.h>
3791 #else
3792 # include <assert.h>
3793 #endif
3794
3795 #undef $ac_func
3796
3797 /* Override any gcc2 internal prototype to avoid an error.  */
3798 #ifdef __cplusplus
3799 extern "C"
3800 {
3801 #endif
3802 /* We use char because int might match the return type of a gcc2
3803    builtin and then its argument prototype would still apply.  */
3804 char $ac_func ();
3805 /* The GNU C library defines this for functions which it implements
3806     to always fail with ENOSYS.  Some functions are actually named
3807     something starting with __ and the normal name is an alias.  */
3808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3809 choke me
3810 #else
3811 char (*f) () = $ac_func;
3812 #endif
3813 #ifdef __cplusplus
3814 }
3815 #endif
3816
3817 int
3818 main ()
3819 {
3820 return f != $ac_func;
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 rm -f conftest.$ac_objext conftest$ac_exeext
3826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3827   (eval $ac_link) 2>conftest.er1
3828   ac_status=$?
3829   grep -v '^ *+' conftest.er1 >conftest.err
3830   rm -f conftest.er1
3831   cat conftest.err >&5
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); } &&
3834          { ac_try='test -z "$ac_c_werror_flag"
3835                          || test ! -s conftest.err'
3836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837   (eval $ac_try) 2>&5
3838   ac_status=$?
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); }; } &&
3841          { ac_try='test -s conftest$ac_exeext'
3842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843   (eval $ac_try) 2>&5
3844   ac_status=$?
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); }; }; then
3847   eval "$as_ac_var=yes"
3848 else
3849   echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 eval "$as_ac_var=no"
3853 fi
3854 rm -f conftest.err conftest.$ac_objext \
3855       conftest$ac_exeext conftest.$ac_ext
3856 fi
3857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3859 if test `eval echo '${'$as_ac_var'}'` = yes; then
3860   cat >>confdefs.h <<_ACEOF
3861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3862 _ACEOF
3863
3864 else
3865
3866     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3867
3868 fi
3869 done
3870
3871
3872
3873   :
3874
3875
3876
3877
3878
3879   if test $ac_cv_have_decl_memmem = no; then
3880     HAVE_DECL_MEMMEM=0
3881   fi
3882   :
3883
3884
3885   echo "$as_me:$LINENO: checking for long long int" >&5
3886 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3887 if test "${ac_cv_type_long_long_int+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   cat >conftest.$ac_ext <<_ACEOF
3891
3892   /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 /* For now, do not test the preprocessor; as of 2007 there are too many
3898          implementations with broken preprocessors.  Perhaps this can
3899          be revisited in 2012.  In the meantime, code should not expect
3900          #if to work with literals wider than 32 bits.  */
3901       /* Test literals.  */
3902       long long int ll = 9223372036854775807ll;
3903       long long int nll = -9223372036854775807LL;
3904       unsigned long long int ull = 18446744073709551615ULL;
3905       /* Test constant expressions.   */
3906       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3907                      ? 1 : -1)];
3908       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3909                      ? 1 : -1)];
3910       int i = 63;
3911 int
3912 main ()
3913 {
3914 /* Test availability of runtime routines for shift and division.  */
3915       long long int llmax = 9223372036854775807ll;
3916       unsigned long long int ullmax = 18446744073709551615ull;
3917       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3918               | (llmax / ll) | (llmax % ll)
3919               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3920               | (ullmax / ull) | (ullmax % ull));
3921   ;
3922   return 0;
3923 }
3924
3925 _ACEOF
3926 rm -f conftest.$ac_objext conftest$ac_exeext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928   (eval $ac_link) 2>conftest.er1
3929   ac_status=$?
3930   grep -v '^ *+' conftest.er1 >conftest.err
3931   rm -f conftest.er1
3932   cat conftest.err >&5
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } &&
3935          { ac_try='test -z "$ac_c_werror_flag"
3936                          || test ! -s conftest.err'
3937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938   (eval $ac_try) 2>&5
3939   ac_status=$?
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); }; } &&
3942          { ac_try='test -s conftest$ac_exeext'
3943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944   (eval $ac_try) 2>&5
3945   ac_status=$?
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); }; }; then
3948                         if test "$cross_compiling" = yes; then
3949   ac_cv_type_long_long_int=yes
3950 else
3951   cat >conftest.$ac_ext <<_ACEOF
3952 /* confdefs.h.  */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h.  */
3957 #include <limits.h>
3958                #ifndef LLONG_MAX
3959                # define HALF \
3960                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3961                # define LLONG_MAX (HALF - 1 + HALF)
3962                #endif
3963 int
3964 main ()
3965 {
3966 long long int n = 1;
3967                int i;
3968                for (i = 0; ; i++)
3969                  {
3970                    long long int m = n << i;
3971                    if (m >> i != n)
3972                      return 1;
3973                    if (LLONG_MAX / 2 < m)
3974                      break;
3975                  }
3976                return 0;
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 rm -f conftest$ac_exeext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983   (eval $ac_link) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988   (eval $ac_try) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; }; then
3992   ac_cv_type_long_long_int=yes
3993 else
3994   echo "$as_me: program exited with status $ac_status" >&5
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3997
3998 ( exit $ac_status )
3999 ac_cv_type_long_long_int=no
4000 fi
4001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4002 fi
4003 else
4004   echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007 ac_cv_type_long_long_int=no
4008 fi
4009 rm -f conftest.err conftest.$ac_objext \
4010       conftest$ac_exeext conftest.$ac_ext
4011 fi
4012 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4013 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4014   if test $ac_cv_type_long_long_int = yes; then
4015
4016 cat >>confdefs.h <<\_ACEOF
4017 #define HAVE_LONG_LONG_INT 1
4018 _ACEOF
4019
4020   fi
4021
4022
4023   echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4024 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4025 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   cat >conftest.$ac_ext <<_ACEOF
4029
4030   /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035 /* For now, do not test the preprocessor; as of 2007 there are too many
4036          implementations with broken preprocessors.  Perhaps this can
4037          be revisited in 2012.  In the meantime, code should not expect
4038          #if to work with literals wider than 32 bits.  */
4039       /* Test literals.  */
4040       long long int ll = 9223372036854775807ll;
4041       long long int nll = -9223372036854775807LL;
4042       unsigned long long int ull = 18446744073709551615ULL;
4043       /* Test constant expressions.   */
4044       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4045                      ? 1 : -1)];
4046       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4047                      ? 1 : -1)];
4048       int i = 63;
4049 int
4050 main ()
4051 {
4052 /* Test availability of runtime routines for shift and division.  */
4053       long long int llmax = 9223372036854775807ll;
4054       unsigned long long int ullmax = 18446744073709551615ull;
4055       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4056               | (llmax / ll) | (llmax % ll)
4057               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4058               | (ullmax / ull) | (ullmax % ull));
4059   ;
4060   return 0;
4061 }
4062
4063 _ACEOF
4064 rm -f conftest.$ac_objext conftest$ac_exeext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4066   (eval $ac_link) 2>conftest.er1
4067   ac_status=$?
4068   grep -v '^ *+' conftest.er1 >conftest.err
4069   rm -f conftest.er1
4070   cat conftest.err >&5
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); } &&
4073          { ac_try='test -z "$ac_c_werror_flag"
4074                          || test ! -s conftest.err'
4075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076   (eval $ac_try) 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); }; } &&
4080          { ac_try='test -s conftest$ac_exeext'
4081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082   (eval $ac_try) 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; }; then
4086   ac_cv_type_unsigned_long_long_int=yes
4087 else
4088   echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 ac_cv_type_unsigned_long_long_int=no
4092 fi
4093 rm -f conftest.err conftest.$ac_objext \
4094       conftest$ac_exeext conftest.$ac_ext
4095 fi
4096 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4097 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4098   if test $ac_cv_type_unsigned_long_long_int = yes; then
4099
4100 cat >>confdefs.h <<\_ACEOF
4101 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4102 _ACEOF
4103
4104   fi
4105
4106
4107
4108   echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4109 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4110 if test "${gl_cv_have_include_next+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   rm -rf conftestd1 conftestd2
4114      mkdir conftestd1 conftestd2
4115      cat <<EOF > conftestd1/conftest.h
4116 #define DEFINED_IN_CONFTESTD1
4117 #include_next <conftest.h>
4118 #ifdef DEFINED_IN_CONFTESTD2
4119 int foo;
4120 #else
4121 #error "include_next doesn't work"
4122 #endif
4123 EOF
4124      cat <<EOF > conftestd2/conftest.h
4125 #ifndef DEFINED_IN_CONFTESTD1
4126 #error "include_next test doesn't work"
4127 #endif
4128 #define DEFINED_IN_CONFTESTD2
4129 EOF
4130      save_CPPFLAGS="$CPPFLAGS"
4131      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4132      cat >conftest.$ac_ext <<_ACEOF
4133 #include <conftest.h>
4134 _ACEOF
4135 rm -f conftest.$ac_objext
4136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4137   (eval $ac_compile) 2>conftest.er1
4138   ac_status=$?
4139   grep -v '^ *+' conftest.er1 >conftest.err
4140   rm -f conftest.er1
4141   cat conftest.err >&5
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } &&
4144          { ac_try='test -z "$ac_c_werror_flag"
4145                          || test ! -s conftest.err'
4146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147   (eval $ac_try) 2>&5
4148   ac_status=$?
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); }; } &&
4151          { ac_try='test -s conftest.$ac_objext'
4152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153   (eval $ac_try) 2>&5
4154   ac_status=$?
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); }; }; then
4157   gl_cv_have_include_next=yes
4158 else
4159   echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 gl_cv_have_include_next=no
4163 fi
4164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4165      CPPFLAGS="$save_CPPFLAGS"
4166      rm -rf conftestd1 conftestd2
4167
4168 fi
4169 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4170 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4171   if test $gl_cv_have_include_next = yes; then
4172
4173
4174 cat >>confdefs.h <<\_ACEOF
4175 #define HAVE_INCLUDE_NEXT 1
4176 _ACEOF
4177
4178
4179     INCLUDE_NEXT=include_next
4180   else
4181     INCLUDE_NEXT=include
4182   fi
4183
4184
4185
4186
4187
4188
4189
4190 for ac_header in $gl_header_list
4191 do
4192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4194   echo "$as_me:$LINENO: checking for $ac_header" >&5
4195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4197   echo $ECHO_N "(cached) $ECHO_C" >&6
4198 fi
4199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4201 else
4202   # Is the header compilable?
4203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211 $ac_includes_default
4212 #include <$ac_header>
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216   (eval $ac_compile) 2>conftest.er1
4217   ac_status=$?
4218   grep -v '^ *+' conftest.er1 >conftest.err
4219   rm -f conftest.er1
4220   cat conftest.err >&5
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); } &&
4223          { ac_try='test -z "$ac_c_werror_flag"
4224                          || test ! -s conftest.err'
4225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226   (eval $ac_try) 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }; } &&
4230          { ac_try='test -s conftest.$ac_objext'
4231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232   (eval $ac_try) 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; }; then
4236   ac_header_compiler=yes
4237 else
4238   echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 ac_header_compiler=no
4242 fi
4243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4245 echo "${ECHO_T}$ac_header_compiler" >&6
4246
4247 # Is the header present?
4248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 #include <$ac_header>
4257 _ACEOF
4258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4260   ac_status=$?
4261   grep -v '^ *+' conftest.er1 >conftest.err
4262   rm -f conftest.er1
4263   cat conftest.err >&5
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); } >/dev/null; then
4266   if test -s conftest.err; then
4267     ac_cpp_err=$ac_c_preproc_warn_flag
4268     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4269   else
4270     ac_cpp_err=
4271   fi
4272 else
4273   ac_cpp_err=yes
4274 fi
4275 if test -z "$ac_cpp_err"; then
4276   ac_header_preproc=yes
4277 else
4278   echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281   ac_header_preproc=no
4282 fi
4283 rm -f conftest.err conftest.$ac_ext
4284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4285 echo "${ECHO_T}$ac_header_preproc" >&6
4286
4287 # So?  What about this header?
4288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4289   yes:no: )
4290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4294     ac_header_preproc=yes
4295     ;;
4296   no:yes:* )
4297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4309     (
4310       cat <<\_ASBOX
4311 ## ------------------------------------------ ##
4312 ## Report this to the AC_PACKAGE_NAME lists.  ##
4313 ## ------------------------------------------ ##
4314 _ASBOX
4315     ) |
4316       sed "s/^/$as_me: WARNING:     /" >&2
4317     ;;
4318 esac
4319 echo "$as_me:$LINENO: checking for $ac_header" >&5
4320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   eval "$as_ac_Header=\$ac_header_preproc"
4325 fi
4326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4328
4329 fi
4330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4331   cat >>confdefs.h <<_ACEOF
4332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4333 _ACEOF
4334
4335 fi
4336
4337 done
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4351 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4352 if test "${ac_cv_c_restrict+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   ac_cv_c_restrict=no
4356    # The order here caters to the fact that C++ does not require restrict.
4357    for ac_kw in __restrict __restrict__ _Restrict restrict; do
4358      cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h.  */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h.  */
4364 typedef int * int_ptr;
4365         int foo (int_ptr $ac_kw ip) {
4366         return ip[0];
4367        }
4368 int
4369 main ()
4370 {
4371 int s[1];
4372         int * $ac_kw t = s;
4373         t[0] = 0;
4374         return foo(t)
4375   ;
4376   return 0;
4377 }
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381   (eval $ac_compile) 2>conftest.er1
4382   ac_status=$?
4383   grep -v '^ *+' conftest.er1 >conftest.err
4384   rm -f conftest.er1
4385   cat conftest.err >&5
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); } &&
4388          { ac_try='test -z "$ac_c_werror_flag"
4389                          || test ! -s conftest.err'
4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391   (eval $ac_try) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; } &&
4395          { ac_try='test -s conftest.$ac_objext'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; }; then
4401   ac_cv_c_restrict=$ac_kw
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406 fi
4407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4408      test "$ac_cv_c_restrict" != no && break
4409    done
4410
4411 fi
4412 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4413 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4414
4415
4416  case $ac_cv_c_restrict in
4417    restrict) ;;
4418    no) cat >>confdefs.h <<\_ACEOF
4419 #define restrict
4420 _ACEOF
4421  ;;
4422    *)  cat >>confdefs.h <<_ACEOF
4423 #define restrict $ac_cv_c_restrict
4424 _ACEOF
4425  ;;
4426  esac
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440   :
4441
4442
4443
4444
4445
4446
4447
4448      if test $gl_cv_have_include_next = yes; then
4449        gl_cv_next_string_h='<'string.h'>'
4450      else
4451        echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4452 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4453 if test "${gl_cv_next_string_h+set}" = set; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456
4457           if test $ac_cv_header_string_h = yes; then
4458             cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h.  */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h.  */
4464 #include <string.h>
4465
4466 _ACEOF
4467                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4468                sed -n '\#/string.h#{
4469                  s#.*"\(.*/string.h\)".*#\1#
4470                  s#^/[^/]#//&#
4471                  p
4472                  q
4473                }'`'"'
4474           else
4475             gl_cv_next_string_h='<'string.h'>'
4476           fi
4477
4478 fi
4479 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4480 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4481      fi
4482      NEXT_STRING_H=$gl_cv_next_string_h
4483
4484
4485
4486
4487
4488   GNULIB_WCWIDTH=0;
4489     HAVE_DECL_WCWIDTH=1;
4490   REPLACE_WCWIDTH=0;
4491   WCHAR_H=
4492
4493
4494
4495
4496
4497 if false; then
4498   GL_COND_LIBTOOL_TRUE=
4499   GL_COND_LIBTOOL_FALSE='#'
4500 else
4501   GL_COND_LIBTOOL_TRUE='#'
4502   GL_COND_LIBTOOL_FALSE=
4503 fi
4504
4505   gl_cond_libtool=false
4506   gl_libdeps=
4507   gl_ltlibdeps=
4508
4509
4510
4511   gl_source_base='gnulib'
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521 for ac_func in memchr
4522 do
4523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4524 echo "$as_me:$LINENO: checking for $ac_func" >&5
4525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4526 if eval "test \"\${$as_ac_var+set}\" = set"; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4537 #define $ac_func innocuous_$ac_func
4538
4539 /* System header to define __stub macros and hopefully few prototypes,
4540     which can conflict with char $ac_func (); below.
4541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542     <limits.h> exists even on freestanding compilers.  */
4543
4544 #ifdef __STDC__
4545 # include <limits.h>
4546 #else
4547 # include <assert.h>
4548 #endif
4549
4550 #undef $ac_func
4551
4552 /* Override any gcc2 internal prototype to avoid an error.  */
4553 #ifdef __cplusplus
4554 extern "C"
4555 {
4556 #endif
4557 /* We use char because int might match the return type of a gcc2
4558    builtin and then its argument prototype would still apply.  */
4559 char $ac_func ();
4560 /* The GNU C library defines this for functions which it implements
4561     to always fail with ENOSYS.  Some functions are actually named
4562     something starting with __ and the normal name is an alias.  */
4563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4564 choke me
4565 #else
4566 char (*f) () = $ac_func;
4567 #endif
4568 #ifdef __cplusplus
4569 }
4570 #endif
4571
4572 int
4573 main ()
4574 {
4575 return f != $ac_func;
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext conftest$ac_exeext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582   (eval $ac_link) 2>conftest.er1
4583   ac_status=$?
4584   grep -v '^ *+' conftest.er1 >conftest.err
4585   rm -f conftest.er1
4586   cat conftest.err >&5
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); } &&
4589          { ac_try='test -z "$ac_c_werror_flag"
4590                          || test ! -s conftest.err'
4591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592   (eval $ac_try) 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }; } &&
4596          { ac_try='test -s conftest$ac_exeext'
4597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598   (eval $ac_try) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); }; }; then
4602   eval "$as_ac_var=yes"
4603 else
4604   echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 eval "$as_ac_var=no"
4608 fi
4609 rm -f conftest.err conftest.$ac_objext \
4610       conftest$ac_exeext conftest.$ac_ext
4611 fi
4612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4614 if test `eval echo '${'$as_ac_var'}'` = yes; then
4615   cat >>confdefs.h <<_ACEOF
4616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4617 _ACEOF
4618
4619 else
4620
4621     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4622
4623 fi
4624 done
4625
4626
4627   if test $ac_cv_func_memchr = no; then
4628
4629
4630 for ac_header in bp-sym.h
4631 do
4632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634   echo "$as_me:$LINENO: checking for $ac_header" >&5
4635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 fi
4639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4641 else
4642   # Is the header compilable?
4643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4645 cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h.  */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h.  */
4651 $ac_includes_default
4652 #include <$ac_header>
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656   (eval $ac_compile) 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -z "$ac_c_werror_flag"
4664                          || test ! -s conftest.err'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; } &&
4670          { ac_try='test -s conftest.$ac_objext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   ac_header_compiler=yes
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 ac_header_compiler=no
4682 fi
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4685 echo "${ECHO_T}$ac_header_compiler" >&6
4686
4687 # Is the header present?
4688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h.  */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h.  */
4696 #include <$ac_header>
4697 _ACEOF
4698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700   ac_status=$?
4701   grep -v '^ *+' conftest.er1 >conftest.err
4702   rm -f conftest.er1
4703   cat conftest.err >&5
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } >/dev/null; then
4706   if test -s conftest.err; then
4707     ac_cpp_err=$ac_c_preproc_warn_flag
4708     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4709   else
4710     ac_cpp_err=
4711   fi
4712 else
4713   ac_cpp_err=yes
4714 fi
4715 if test -z "$ac_cpp_err"; then
4716   ac_header_preproc=yes
4717 else
4718   echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4720
4721   ac_header_preproc=no
4722 fi
4723 rm -f conftest.err conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725 echo "${ECHO_T}$ac_header_preproc" >&6
4726
4727 # So?  What about this header?
4728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4729   yes:no: )
4730     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4734     ac_header_preproc=yes
4735     ;;
4736   no:yes:* )
4737     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4739     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4740 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4741     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4743     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4744 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4747     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4749     (
4750       cat <<\_ASBOX
4751 ## ------------------------------------------ ##
4752 ## Report this to the AC_PACKAGE_NAME lists.  ##
4753 ## ------------------------------------------ ##
4754 _ASBOX
4755     ) |
4756       sed "s/^/$as_me: WARNING:     /" >&2
4757     ;;
4758 esac
4759 echo "$as_me:$LINENO: checking for $ac_header" >&5
4760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   eval "$as_ac_Header=\$ac_header_preproc"
4765 fi
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768
4769 fi
4770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4771   cat >>confdefs.h <<_ACEOF
4772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4773 _ACEOF
4774
4775 fi
4776
4777 done
4778
4779
4780   fi
4781
4782
4783   echo "$as_me:$LINENO: checking for working memcmp" >&5
4784 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4785 if test "${ac_cv_func_memcmp_working+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   if test "$cross_compiling" = yes; then
4789   ac_cv_func_memcmp_working=no
4790 else
4791   cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797 $ac_includes_default
4798 int
4799 main ()
4800 {
4801
4802   /* Some versions of memcmp are not 8-bit clean.  */
4803   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4804   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4805     exit (1);
4806
4807   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4808      or more and with at least one buffer not starting on a 4-byte boundary.
4809      William Lewis provided this test program.   */
4810   {
4811     char foo[21];
4812     char bar[21];
4813     int i;
4814     for (i = 0; i < 4; i++)
4815       {
4816         char *a = foo + i;
4817         char *b = bar + i;
4818         strcpy (a, "--------01111111");
4819         strcpy (b, "--------10000000");
4820         if (memcmp (a, b, 16) >= 0)
4821           exit (1);
4822       }
4823     exit (0);
4824   }
4825
4826   ;
4827   return 0;
4828 }
4829 _ACEOF
4830 rm -f conftest$ac_exeext
4831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4832   (eval $ac_link) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837   (eval $ac_try) 2>&5
4838   ac_status=$?
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); }; }; then
4841   ac_cv_func_memcmp_working=yes
4842 else
4843   echo "$as_me: program exited with status $ac_status" >&5
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 ( exit $ac_status )
4848 ac_cv_func_memcmp_working=no
4849 fi
4850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 fi
4853 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4854 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4855 test $ac_cv_func_memcmp_working = no &&
4856
4857
4858
4859
4860
4861
4862   gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4863
4864
4865     if test $ac_cv_func_memcmp_working = no; then
4866
4867 cat >>confdefs.h <<\_ACEOF
4868 #define memcmp rpl_memcmp
4869 _ACEOF
4870
4871     :
4872   fi
4873
4874
4875
4876   if test $ac_cv_have_decl_memmem = yes; then
4877     echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4878 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4879 if test "${gl_cv_func_memmem_works+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   if test "$cross_compiling" = yes; then
4883                  gl_cv_func_memmem_works="guessing no"
4884 else
4885   cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h.  */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h.  */
4891
4892 #include <string.h> /* for memmem */
4893 #include <stdlib.h> /* for malloc */
4894 #include <unistd.h> /* for alarm */
4895
4896 int
4897 main ()
4898 {
4899 size_t m = 1000000;
4900     char *haystack = (char *) malloc (2 * m + 1);
4901     char *needle = (char *) malloc (m + 1);
4902     void *result = 0;
4903     /* Failure to compile this test due to missing alarm is okay,
4904        since all such platforms (mingw) also lack memmem.  */
4905     alarm (5);
4906     /* Check for quadratic performance.  */
4907     if (haystack && needle)
4908       {
4909         memset (haystack, 'A', 2 * m);
4910         haystack[2 * m] = 'B';
4911         memset (needle, 'A', m);
4912         needle[m] = 'B';
4913         result = memmem (haystack, 2 * m + 1, needle, m + 1);
4914       }
4915     /* Check for empty needle behavior.  */
4916     return !result || !memmem ("a", 1, 0, 0);
4917   ;
4918   return 0;
4919 }
4920 _ACEOF
4921 rm -f conftest$ac_exeext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4923   (eval $ac_link) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928   (eval $ac_try) 2>&5
4929   ac_status=$?
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); }; }; then
4932   gl_cv_func_memmem_works=yes
4933 else
4934   echo "$as_me: program exited with status $ac_status" >&5
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938 ( exit $ac_status )
4939 gl_cv_func_memmem_works=no
4940 fi
4941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4942 fi
4943 fi
4944 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4945 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4946     if test "$gl_cv_func_memmem_works" != yes; then
4947       REPLACE_MEMMEM=1
4948
4949
4950
4951
4952
4953
4954
4955   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4956
4957     fi
4958   fi
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972 for ac_func in memmem
4973 do
4974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4975 echo "$as_me:$LINENO: checking for $ac_func" >&5
4976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4977 if eval "test \"\${$as_ac_var+set}\" = set"; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980   cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h.  */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h.  */
4986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4988 #define $ac_func innocuous_$ac_func
4989
4990 /* System header to define __stub macros and hopefully few prototypes,
4991     which can conflict with char $ac_func (); below.
4992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993     <limits.h> exists even on freestanding compilers.  */
4994
4995 #ifdef __STDC__
4996 # include <limits.h>
4997 #else
4998 # include <assert.h>
4999 #endif
5000
5001 #undef $ac_func
5002
5003 /* Override any gcc2 internal prototype to avoid an error.  */
5004 #ifdef __cplusplus
5005 extern "C"
5006 {
5007 #endif
5008 /* We use char because int might match the return type of a gcc2
5009    builtin and then its argument prototype would still apply.  */
5010 char $ac_func ();
5011 /* The GNU C library defines this for functions which it implements
5012     to always fail with ENOSYS.  Some functions are actually named
5013     something starting with __ and the normal name is an alias.  */
5014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5015 choke me
5016 #else
5017 char (*f) () = $ac_func;
5018 #endif
5019 #ifdef __cplusplus
5020 }
5021 #endif
5022
5023 int
5024 main ()
5025 {
5026 return f != $ac_func;
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033   (eval $ac_link) 2>conftest.er1
5034   ac_status=$?
5035   grep -v '^ *+' conftest.er1 >conftest.err
5036   rm -f conftest.er1
5037   cat conftest.err >&5
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } &&
5040          { ac_try='test -z "$ac_c_werror_flag"
5041                          || test ! -s conftest.err'
5042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043   (eval $ac_try) 2>&5
5044   ac_status=$?
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); }; } &&
5047          { ac_try='test -s conftest$ac_exeext'
5048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049   (eval $ac_try) 2>&5
5050   ac_status=$?
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); }; }; then
5053   eval "$as_ac_var=yes"
5054 else
5055   echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5057
5058 eval "$as_ac_var=no"
5059 fi
5060 rm -f conftest.err conftest.$ac_objext \
5061       conftest$ac_exeext conftest.$ac_ext
5062 fi
5063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5065 if test `eval echo '${'$as_ac_var'}'` = yes; then
5066   cat >>confdefs.h <<_ACEOF
5067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5068 _ACEOF
5069
5070 else
5071
5072     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5073
5074 fi
5075 done
5076
5077
5078
5079   :
5080
5081
5082
5083
5084
5085   if test $ac_cv_have_decl_memmem = no; then
5086     HAVE_DECL_MEMMEM=0
5087   fi
5088   :
5089
5090
5091
5092   GNULIB_MEMMEM=1
5093
5094
5095
5096
5097   if test $ac_cv_type_long_long_int = yes; then
5098     HAVE_LONG_LONG_INT=1
5099   else
5100     HAVE_LONG_LONG_INT=0
5101   fi
5102
5103
5104   if test $ac_cv_type_unsigned_long_long_int = yes; then
5105     HAVE_UNSIGNED_LONG_LONG_INT=1
5106   else
5107     HAVE_UNSIGNED_LONG_LONG_INT=0
5108   fi
5109
5110
5111       if test $ac_cv_header_inttypes_h = yes; then
5112     HAVE_INTTYPES_H=1
5113   else
5114     HAVE_INTTYPES_H=0
5115   fi
5116
5117
5118       if test $ac_cv_header_sys_types_h = yes; then
5119     HAVE_SYS_TYPES_H=1
5120   else
5121     HAVE_SYS_TYPES_H=0
5122   fi
5123
5124
5125
5126
5127
5128   :
5129
5130
5131
5132
5133
5134
5135
5136      if test $gl_cv_have_include_next = yes; then
5137        gl_cv_next_stdint_h='<'stdint.h'>'
5138      else
5139        echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5140 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5141 if test "${gl_cv_next_stdint_h+set}" = set; then
5142   echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144
5145           if test $ac_cv_header_stdint_h = yes; then
5146             cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h.  */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h.  */
5152 #include <stdint.h>
5153
5154 _ACEOF
5155                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5156                sed -n '\#/stdint.h#{
5157                  s#.*"\(.*/stdint.h\)".*#\1#
5158                  s#^/[^/]#//&#
5159                  p
5160                  q
5161                }'`'"'
5162           else
5163             gl_cv_next_stdint_h='<'stdint.h'>'
5164           fi
5165
5166 fi
5167 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5168 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5169      fi
5170      NEXT_STDINT_H=$gl_cv_next_stdint_h
5171
5172
5173
5174   if test $ac_cv_header_stdint_h = yes; then
5175     HAVE_STDINT_H=1
5176   else
5177     HAVE_STDINT_H=0
5178   fi
5179
5180
5181     if test $ac_cv_header_stdint_h = yes; then
5182     echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5183 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5184 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5185   echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187   gl_cv_header_working_stdint_h=no
5188        cat >conftest.$ac_ext <<_ACEOF
5189
5190          /* confdefs.h.  */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h.  */
5195
5196 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5197 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5198 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5199 #include <stdint.h>
5200 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
5201 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5202 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5203 #endif
5204
5205
5206   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5207      included before <wchar.h>.  */
5208   #include <stddef.h>
5209   #include <signal.h>
5210   #if HAVE_WCHAR_H
5211   # include <stdio.h>
5212   # include <time.h>
5213   # include <wchar.h>
5214   #endif
5215
5216
5217 #ifdef INT8_MAX
5218 int8_t a1 = INT8_MAX;
5219 int8_t a1min = INT8_MIN;
5220 #endif
5221 #ifdef INT16_MAX
5222 int16_t a2 = INT16_MAX;
5223 int16_t a2min = INT16_MIN;
5224 #endif
5225 #ifdef INT32_MAX
5226 int32_t a3 = INT32_MAX;
5227 int32_t a3min = INT32_MIN;
5228 #endif
5229 #ifdef INT64_MAX
5230 int64_t a4 = INT64_MAX;
5231 int64_t a4min = INT64_MIN;
5232 #endif
5233 #ifdef UINT8_MAX
5234 uint8_t b1 = UINT8_MAX;
5235 #else
5236 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5237 #endif
5238 #ifdef UINT16_MAX
5239 uint16_t b2 = UINT16_MAX;
5240 #endif
5241 #ifdef UINT32_MAX
5242 uint32_t b3 = UINT32_MAX;
5243 #endif
5244 #ifdef UINT64_MAX
5245 uint64_t b4 = UINT64_MAX;
5246 #endif
5247 int_least8_t c1 = INT8_C (0x7f);
5248 int_least8_t c1max = INT_LEAST8_MAX;
5249 int_least8_t c1min = INT_LEAST8_MIN;
5250 int_least16_t c2 = INT16_C (0x7fff);
5251 int_least16_t c2max = INT_LEAST16_MAX;
5252 int_least16_t c2min = INT_LEAST16_MIN;
5253 int_least32_t c3 = INT32_C (0x7fffffff);
5254 int_least32_t c3max = INT_LEAST32_MAX;
5255 int_least32_t c3min = INT_LEAST32_MIN;
5256 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5257 int_least64_t c4max = INT_LEAST64_MAX;
5258 int_least64_t c4min = INT_LEAST64_MIN;
5259 uint_least8_t d1 = UINT8_C (0xff);
5260 uint_least8_t d1max = UINT_LEAST8_MAX;
5261 uint_least16_t d2 = UINT16_C (0xffff);
5262 uint_least16_t d2max = UINT_LEAST16_MAX;
5263 uint_least32_t d3 = UINT32_C (0xffffffff);
5264 uint_least32_t d3max = UINT_LEAST32_MAX;
5265 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5266 uint_least64_t d4max = UINT_LEAST64_MAX;
5267 int_fast8_t e1 = INT_FAST8_MAX;
5268 int_fast8_t e1min = INT_FAST8_MIN;
5269 int_fast16_t e2 = INT_FAST16_MAX;
5270 int_fast16_t e2min = INT_FAST16_MIN;
5271 int_fast32_t e3 = INT_FAST32_MAX;
5272 int_fast32_t e3min = INT_FAST32_MIN;
5273 int_fast64_t e4 = INT_FAST64_MAX;
5274 int_fast64_t e4min = INT_FAST64_MIN;
5275 uint_fast8_t f1 = UINT_FAST8_MAX;
5276 uint_fast16_t f2 = UINT_FAST16_MAX;
5277 uint_fast32_t f3 = UINT_FAST32_MAX;
5278 uint_fast64_t f4 = UINT_FAST64_MAX;
5279 #ifdef INTPTR_MAX
5280 intptr_t g = INTPTR_MAX;
5281 intptr_t gmin = INTPTR_MIN;
5282 #endif
5283 #ifdef UINTPTR_MAX
5284 uintptr_t h = UINTPTR_MAX;
5285 #endif
5286 intmax_t i = INTMAX_MAX;
5287 uintmax_t j = UINTMAX_MAX;
5288
5289 #include <limits.h> /* for CHAR_BIT */
5290 #define TYPE_MINIMUM(t) \
5291   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5292 #define TYPE_MAXIMUM(t) \
5293   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5294 struct s {
5295   int check_PTRDIFF:
5296       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5297       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5298       ? 1 : -1;
5299   /* Detect bug in FreeBSD 6.0 / ia64.  */
5300   int check_SIG_ATOMIC:
5301       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5302       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5303       ? 1 : -1;
5304   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5305   int check_WCHAR:
5306       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5307       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5308       ? 1 : -1;
5309   /* Detect bug in mingw.  */
5310   int check_WINT:
5311       WINT_MIN == TYPE_MINIMUM (wint_t)
5312       && WINT_MAX == TYPE_MAXIMUM (wint_t)
5313       ? 1 : -1;
5314
5315   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
5316   int check_UINT8_C:
5317         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5318   int check_UINT16_C:
5319         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5320
5321   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
5322 #ifdef UINT8_MAX
5323   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5324 #endif
5325 #ifdef UINT16_MAX
5326   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5327 #endif
5328 #ifdef UINT32_MAX
5329   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5330 #endif
5331 #ifdef UINT64_MAX
5332   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5333 #endif
5334   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5335   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5336   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5337   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5338   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5339   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5340   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5341   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5342   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5343   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5344   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5345 };
5346
5347 int
5348 main ()
5349 {
5350
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357   (eval $ac_compile) 2>conftest.er1
5358   ac_status=$?
5359   grep -v '^ *+' conftest.er1 >conftest.err
5360   rm -f conftest.er1
5361   cat conftest.err >&5
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); } &&
5364          { ac_try='test -z "$ac_c_werror_flag"
5365                          || test ! -s conftest.err'
5366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367   (eval $ac_try) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; } &&
5371          { ac_try='test -s conftest.$ac_objext'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; }; then
5377   gl_cv_header_working_stdint_h=yes
5378 else
5379   echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382 fi
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384 fi
5385 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5386 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5387   fi
5388   if test "$gl_cv_header_working_stdint_h" = yes; then
5389     STDINT_H=
5390   else
5391
5392
5393 for ac_header in sys/inttypes.h sys/bitypes.h
5394 do
5395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5397   echo "$as_me:$LINENO: checking for $ac_header" >&5
5398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 fi
5402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5404 else
5405   # Is the header compilable?
5406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414 $ac_includes_default
5415 #include <$ac_header>
5416 _ACEOF
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419   (eval $ac_compile) 2>conftest.er1
5420   ac_status=$?
5421   grep -v '^ *+' conftest.er1 >conftest.err
5422   rm -f conftest.er1
5423   cat conftest.err >&5
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); } &&
5426          { ac_try='test -z "$ac_c_werror_flag"
5427                          || test ! -s conftest.err'
5428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429   (eval $ac_try) 2>&5
5430   ac_status=$?
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); }; } &&
5433          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5439   ac_header_compiler=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444 ac_header_compiler=no
5445 fi
5446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5448 echo "${ECHO_T}$ac_header_compiler" >&6
5449
5450 # Is the header present?
5451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h.  */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h.  */
5459 #include <$ac_header>
5460 _ACEOF
5461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5463   ac_status=$?
5464   grep -v '^ *+' conftest.er1 >conftest.err
5465   rm -f conftest.er1
5466   cat conftest.err >&5
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } >/dev/null; then
5469   if test -s conftest.err; then
5470     ac_cpp_err=$ac_c_preproc_warn_flag
5471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5472   else
5473     ac_cpp_err=
5474   fi
5475 else
5476   ac_cpp_err=yes
5477 fi
5478 if test -z "$ac_cpp_err"; then
5479   ac_header_preproc=yes
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484   ac_header_preproc=no
5485 fi
5486 rm -f conftest.err conftest.$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5488 echo "${ECHO_T}$ac_header_preproc" >&6
5489
5490 # So?  What about this header?
5491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5492   yes:no: )
5493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5497     ac_header_preproc=yes
5498     ;;
5499   no:yes:* )
5500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5512     (
5513       cat <<\_ASBOX
5514 ## ------------------------------------------ ##
5515 ## Report this to the AC_PACKAGE_NAME lists.  ##
5516 ## ------------------------------------------ ##
5517 _ASBOX
5518     ) |
5519       sed "s/^/$as_me: WARNING:     /" >&2
5520     ;;
5521 esac
5522 echo "$as_me:$LINENO: checking for $ac_header" >&5
5523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5525   echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527   eval "$as_ac_Header=\$ac_header_preproc"
5528 fi
5529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5531
5532 fi
5533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534   cat >>confdefs.h <<_ACEOF
5535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536 _ACEOF
5537
5538 fi
5539
5540 done
5541
5542     if test $ac_cv_header_sys_inttypes_h = yes; then
5543       HAVE_SYS_INTTYPES_H=1
5544     else
5545       HAVE_SYS_INTTYPES_H=0
5546     fi
5547
5548     if test $ac_cv_header_sys_bitypes_h = yes; then
5549       HAVE_SYS_BITYPES_H=1
5550     else
5551       HAVE_SYS_BITYPES_H=0
5552     fi
5553
5554
5555
5556   :
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5572     echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5573 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5574 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577   if test "$cross_compiling" = yes; then
5578   # Depending upon the size, compute the lo and hi bounds.
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h.  */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h.  */
5585
5586   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5587      included before <wchar.h>.  */
5588   #include <stddef.h>
5589   #include <signal.h>
5590   #if HAVE_WCHAR_H
5591   # include <stdio.h>
5592   # include <time.h>
5593   # include <wchar.h>
5594   #endif
5595
5596 #include <limits.h>
5597 int
5598 main ()
5599 {
5600 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5601 test_array [0] = 0
5602
5603   ;
5604   return 0;
5605 }
5606 _ACEOF
5607 rm -f conftest.$ac_objext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609   (eval $ac_compile) 2>conftest.er1
5610   ac_status=$?
5611   grep -v '^ *+' conftest.er1 >conftest.err
5612   rm -f conftest.er1
5613   cat conftest.err >&5
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); } &&
5616          { ac_try='test -z "$ac_c_werror_flag"
5617                          || test ! -s conftest.err'
5618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619   (eval $ac_try) 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); }; } &&
5623          { ac_try='test -s conftest.$ac_objext'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; }; then
5629   ac_lo=0 ac_mid=0
5630   while :; do
5631     cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h.  */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h.  */
5637
5638   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5639      included before <wchar.h>.  */
5640   #include <stddef.h>
5641   #include <signal.h>
5642   #if HAVE_WCHAR_H
5643   # include <stdio.h>
5644   # include <time.h>
5645   # include <wchar.h>
5646   #endif
5647
5648 #include <limits.h>
5649 int
5650 main ()
5651 {
5652 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5653 test_array [0] = 0
5654
5655   ;
5656   return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661   (eval $ac_compile) 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } &&
5668          { ac_try='test -z "$ac_c_werror_flag"
5669                          || test ! -s conftest.err'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; } &&
5675          { ac_try='test -s conftest.$ac_objext'
5676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677   (eval $ac_try) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }; }; then
5681   ac_hi=$ac_mid; break
5682 else
5683   echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686 ac_lo=`expr $ac_mid + 1`
5687                     if test $ac_lo -le $ac_mid; then
5688                       ac_lo= ac_hi=
5689                       break
5690                     fi
5691                     ac_mid=`expr 2 '*' $ac_mid + 1`
5692 fi
5693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5694   done
5695 else
5696   echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h.  */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h.  */
5705
5706   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5707      included before <wchar.h>.  */
5708   #include <stddef.h>
5709   #include <signal.h>
5710   #if HAVE_WCHAR_H
5711   # include <stdio.h>
5712   # include <time.h>
5713   # include <wchar.h>
5714   #endif
5715
5716 #include <limits.h>
5717 int
5718 main ()
5719 {
5720 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5721 test_array [0] = 0
5722
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729   (eval $ac_compile) 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } &&
5736          { ac_try='test -z "$ac_c_werror_flag"
5737                          || test ! -s conftest.err'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; } &&
5743          { ac_try='test -s conftest.$ac_objext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   ac_hi=-1 ac_mid=-1
5750   while :; do
5751     cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h.  */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h.  */
5757
5758   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5759      included before <wchar.h>.  */
5760   #include <stddef.h>
5761   #include <signal.h>
5762   #if HAVE_WCHAR_H
5763   # include <stdio.h>
5764   # include <time.h>
5765   # include <wchar.h>
5766   #endif
5767
5768 #include <limits.h>
5769 int
5770 main ()
5771 {
5772 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5773 test_array [0] = 0
5774
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781   (eval $ac_compile) 2>conftest.er1
5782   ac_status=$?
5783   grep -v '^ *+' conftest.er1 >conftest.err
5784   rm -f conftest.er1
5785   cat conftest.err >&5
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); } &&
5788          { ac_try='test -z "$ac_c_werror_flag"
5789                          || test ! -s conftest.err'
5790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791   (eval $ac_try) 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); }; } &&
5795          { ac_try='test -s conftest.$ac_objext'
5796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797   (eval $ac_try) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); }; }; then
5801   ac_lo=$ac_mid; break
5802 else
5803   echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 ac_hi=`expr '(' $ac_mid ')' - 1`
5807                        if test $ac_mid -le $ac_hi; then
5808                          ac_lo= ac_hi=
5809                          break
5810                        fi
5811                        ac_mid=`expr 2 '*' $ac_mid`
5812 fi
5813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5814   done
5815 else
5816   echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819 ac_lo= ac_hi=
5820 fi
5821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822 fi
5823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5824 # Binary search between lo and hi bounds.
5825 while test "x$ac_lo" != "x$ac_hi"; do
5826   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5827   cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h.  */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h.  */
5833
5834   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5835      included before <wchar.h>.  */
5836   #include <stddef.h>
5837   #include <signal.h>
5838   #if HAVE_WCHAR_H
5839   # include <stdio.h>
5840   # include <time.h>
5841   # include <wchar.h>
5842   #endif
5843
5844 #include <limits.h>
5845 int
5846 main ()
5847 {
5848 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5849 test_array [0] = 0
5850
5851   ;
5852   return 0;
5853 }
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857   (eval $ac_compile) 2>conftest.er1
5858   ac_status=$?
5859   grep -v '^ *+' conftest.er1 >conftest.err
5860   rm -f conftest.er1
5861   cat conftest.err >&5
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); } &&
5864          { ac_try='test -z "$ac_c_werror_flag"
5865                          || test ! -s conftest.err'
5866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867   (eval $ac_try) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }; } &&
5871          { ac_try='test -s conftest.$ac_objext'
5872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873   (eval $ac_try) 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }; }; then
5877   ac_hi=$ac_mid
5878 else
5879   echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 ac_lo=`expr '(' $ac_mid ')' + 1`
5883 fi
5884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885 done
5886 case $ac_lo in
5887 ?*) result=$ac_lo;;
5888 '') result=unknown ;;
5889 esac
5890 else
5891   if test "$cross_compiling" = yes; then
5892   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5893 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5894 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5895 See \`config.log' for more details." >&5
5896 echo "$as_me: error: cannot run test program while cross compiling
5897 See \`config.log' for more details." >&2;}
5898    { (exit 1); exit 1; }; }; }
5899 else
5900   cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906
5907   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5908      included before <wchar.h>.  */
5909   #include <stddef.h>
5910   #include <signal.h>
5911   #if HAVE_WCHAR_H
5912   # include <stdio.h>
5913   # include <time.h>
5914   # include <wchar.h>
5915   #endif
5916
5917 #include <limits.h>
5918 long longval () { return sizeof ($gltype) * CHAR_BIT; }
5919 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5920 #include <stdio.h>
5921 #include <stdlib.h>
5922 int
5923 main ()
5924 {
5925
5926   FILE *f = fopen ("conftest.val", "w");
5927   if (! f)
5928     exit (1);
5929   if ((sizeof ($gltype) * CHAR_BIT) < 0)
5930     {
5931       long i = longval ();
5932       if (i != (sizeof ($gltype) * CHAR_BIT))
5933         exit (1);
5934       fprintf (f, "%ld\n", i);
5935     }
5936   else
5937     {
5938       unsigned long i = ulongval ();
5939       if (i != (sizeof ($gltype) * CHAR_BIT))
5940         exit (1);
5941       fprintf (f, "%lu\n", i);
5942     }
5943   exit (ferror (f) || fclose (f) != 0);
5944
5945   ;
5946   return 0;
5947 }
5948 _ACEOF
5949 rm -f conftest$ac_exeext
5950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5951   (eval $ac_link) 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956   (eval $ac_try) 2>&5
5957   ac_status=$?
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); }; }; then
5960   result=`cat conftest.val`
5961 else
5962   echo "$as_me: program exited with status $ac_status" >&5
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 ( exit $ac_status )
5967 result=unknown
5968 fi
5969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5970 fi
5971 fi
5972 rm -f conftest.val
5973        eval gl_cv_bitsizeof_${gltype}=\$result
5974
5975 fi
5976 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5977 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5978     eval result=\$gl_cv_bitsizeof_${gltype}
5979     if test $result = unknown; then
5980                                                 result=0
5981     fi
5982     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5983     cat >>confdefs.h <<_ACEOF
5984 #define BITSIZEOF_${GLTYPE} $result
5985 _ACEOF
5986
5987     eval BITSIZEOF_${GLTYPE}=\$result
5988   done
5989
5990
5991
5992
5993
5994
5995
5996   for gltype in sig_atomic_t wchar_t wint_t ; do
5997     echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
5998 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
5999 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h.  */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h.  */
6008
6009   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6010      included before <wchar.h>.  */
6011   #include <stddef.h>
6012   #include <signal.h>
6013   #if HAVE_WCHAR_H
6014   # include <stdio.h>
6015   # include <time.h>
6016   # include <wchar.h>
6017   #endif
6018
6019             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6020 int
6021 main ()
6022 {
6023
6024   ;
6025   return 0;
6026 }
6027 _ACEOF
6028 rm -f conftest.$ac_objext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030   (eval $ac_compile) 2>conftest.er1
6031   ac_status=$?
6032   grep -v '^ *+' conftest.er1 >conftest.err
6033   rm -f conftest.er1
6034   cat conftest.err >&5
6035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); } &&
6037          { ac_try='test -z "$ac_c_werror_flag"
6038                          || test ! -s conftest.err'
6039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040   (eval $ac_try) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); }; } &&
6044          { ac_try='test -s conftest.$ac_objext'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050   result=yes
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 result=no
6056 fi
6057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6058        eval gl_cv_type_${gltype}_signed=\$result
6059
6060 fi
6061 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6062 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6063     eval result=\$gl_cv_type_${gltype}_signed
6064     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6065     if test "$result" = yes; then
6066       cat >>confdefs.h <<_ACEOF
6067 #define HAVE_SIGNED_${GLTYPE} 1
6068 _ACEOF
6069
6070       eval HAVE_SIGNED_${GLTYPE}=1
6071     else
6072       eval HAVE_SIGNED_${GLTYPE}=0
6073     fi
6074   done
6075
6076
6077   gl_cv_type_ptrdiff_t_signed=yes
6078   gl_cv_type_size_t_signed=no
6079
6080
6081
6082
6083
6084
6085
6086   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6087     echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6088 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6089 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   eval gl_cv_type_${gltype}_suffix=no
6093        eval result=\$gl_cv_type_${gltype}_signed
6094        if test "$result" = yes; then
6095          glsufu=
6096        else
6097          glsufu=u
6098        fi
6099        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6100          case $glsuf in
6101            '')  gltype1='int';;
6102            l)   gltype1='long int';;
6103            ll)  gltype1='long long int';;
6104            i64) gltype1='__int64';;
6105            u)   gltype1='unsigned int';;
6106            ul)  gltype1='unsigned long int';;
6107            ull) gltype1='unsigned long long int';;
6108            ui64)gltype1='unsigned __int64';;
6109          esac
6110          cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116
6117   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6118      included before <wchar.h>.  */
6119   #include <stddef.h>
6120   #include <signal.h>
6121   #if HAVE_WCHAR_H
6122   # include <stdio.h>
6123   # include <time.h>
6124   # include <wchar.h>
6125   #endif
6126
6127               extern $gltype foo;
6128               extern $gltype1 foo;
6129 int
6130 main ()
6131 {
6132
6133   ;
6134   return 0;
6135 }
6136 _ACEOF
6137 rm -f conftest.$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139   (eval $ac_compile) 2>conftest.er1
6140   ac_status=$?
6141   grep -v '^ *+' conftest.er1 >conftest.err
6142   rm -f conftest.er1
6143   cat conftest.err >&5
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); } &&
6146          { ac_try='test -z "$ac_c_werror_flag"
6147                          || test ! -s conftest.err'
6148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149   (eval $ac_try) 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; } &&
6153          { ac_try='test -s conftest.$ac_objext'
6154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155   (eval $ac_try) 2>&5
6156   ac_status=$?
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); }; }; then
6159   eval gl_cv_type_${gltype}_suffix=\$glsuf
6160 else
6161   echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6163
6164 fi
6165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6166          eval result=\$gl_cv_type_${gltype}_suffix
6167          test "$result" != no && break
6168        done
6169 fi
6170 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6171 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6172     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6173     eval result=\$gl_cv_type_${gltype}_suffix
6174     test "$result" = no && result=
6175     eval ${GLTYPE}_SUFFIX=\$result
6176     cat >>confdefs.h <<_ACEOF
6177 #define ${GLTYPE}_SUFFIX $result
6178 _ACEOF
6179
6180   done
6181
6182
6183
6184     STDINT_H=stdint.h
6185   fi
6186
6187
6188
6189
6190
6191
6192
6193   echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6194 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6195 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   cat >conftest.$ac_ext <<_ACEOF
6199 #include <wchar.h>
6200 wchar_t w;
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204   (eval $ac_compile) 2>conftest.er1
6205   ac_status=$?
6206   grep -v '^ *+' conftest.er1 >conftest.err
6207   rm -f conftest.er1
6208   cat conftest.err >&5
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); } &&
6211          { ac_try='test -z "$ac_c_werror_flag"
6212                          || test ! -s conftest.err'
6213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214   (eval $ac_try) 2>&5
6215   ac_status=$?
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); }; } &&
6218          { ac_try='test -s conftest.$ac_objext'
6219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220   (eval $ac_try) 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }; }; then
6224   gl_cv_header_wchar_h_standalone=yes
6225 else
6226   echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 gl_cv_header_wchar_h_standalone=no
6230 fi
6231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6232 fi
6233 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6234 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6235   if test $gl_cv_header_wchar_h_standalone != yes; then
6236     WCHAR_H=wchar.h
6237   fi
6238
6239
6240   :
6241
6242
6243
6244
6245
6246   if test $ac_cv_header_wchar_h = yes; then
6247     HAVE_WCHAR_H=1
6248   else
6249     HAVE_WCHAR_H=0
6250   fi
6251
6252
6253
6254
6255   :
6256
6257
6258
6259
6260
6261
6262
6263      if test $gl_cv_have_include_next = yes; then
6264        gl_cv_next_wchar_h='<'wchar.h'>'
6265      else
6266        echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6267 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6268 if test "${gl_cv_next_wchar_h+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271
6272           if test $ac_cv_header_wchar_h = yes; then
6273             cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h.  */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h.  */
6279 #include <wchar.h>
6280
6281 _ACEOF
6282                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283                sed -n '\#/wchar.h#{
6284                  s#.*"\(.*/wchar.h\)".*#\1#
6285                  s#^/[^/]#//&#
6286                  p
6287                  q
6288                }'`'"'
6289           else
6290             gl_cv_next_wchar_h='<'wchar.h'>'
6291           fi
6292
6293 fi
6294 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6295 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6296      fi
6297      NEXT_WCHAR_H=$gl_cv_next_wchar_h
6298
6299
6300
6301
6302
6303
6304
6305
6306   gltests_libdeps=
6307   gltests_ltlibdeps=
6308
6309
6310
6311   gl_source_base='tests'
6312
6313
6314
6315
6316   LIBGNU_LIBDEPS="$gl_libdeps"
6317
6318   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6319
6320
6321
6322 # For Makefile dependencies.
6323 GNULIB_STDINT_H=
6324 if test x"$STDINT_H" != x; then
6325   GNULIB_STDINT_H=gnulib/$STDINT_H
6326 fi
6327
6328
6329 PACKAGE=gdb
6330
6331 cat >>confdefs.h <<_ACEOF
6332 #define PACKAGE "$PACKAGE"
6333 _ACEOF
6334
6335
6336
6337 # GDB does not use automake, but gnulib does.  This line lets us
6338 # generate its Makefile.in.
6339 am__api_version="1.9"
6340 # Find a good install program.  We prefer a C program (faster),
6341 # so one script is as good as another.  But avoid the broken or
6342 # incompatible versions:
6343 # SysV /etc/install, /usr/sbin/install
6344 # SunOS /usr/etc/install
6345 # IRIX /sbin/install
6346 # AIX /bin/install
6347 # AmigaOS /C/install, which installs bootblocks on floppy discs
6348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6351 # OS/2's system install, which has a completely different semantic
6352 # ./install, which can be erroneously created by make from ./install.sh.
6353 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6354 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6355 if test -z "$INSTALL"; then
6356 if test "${ac_cv_path_install+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364   # Account for people who put trailing slashes in PATH elements.
6365 case $as_dir/ in
6366   ./ | .// | /cC/* | \
6367   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6368   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6369   /usr/ucb/* ) ;;
6370   *)
6371     # OSF1 and SCO ODT 3.0 have their own names for install.
6372     # Don't use installbsd from OSF since it installs stuff as root
6373     # by default.
6374     for ac_prog in ginstall scoinst install; do
6375       for ac_exec_ext in '' $ac_executable_extensions; do
6376         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6377           if test $ac_prog = install &&
6378             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6379             # AIX install.  It has an incompatible calling convention.
6380             :
6381           elif test $ac_prog = install &&
6382             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6383             # program-specific install script used by HP pwplus--don't use.
6384             :
6385           else
6386             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6387             break 3
6388           fi
6389         fi
6390       done
6391     done
6392     ;;
6393 esac
6394 done
6395
6396
6397 fi
6398   if test "${ac_cv_path_install+set}" = set; then
6399     INSTALL=$ac_cv_path_install
6400   else
6401     # As a last resort, use the slow shell script.  We don't cache a
6402     # path for INSTALL within a source directory, because that will
6403     # break other packages using the cache if that directory is
6404     # removed, or if the path is relative.
6405     INSTALL=$ac_install_sh
6406   fi
6407 fi
6408 echo "$as_me:$LINENO: result: $INSTALL" >&5
6409 echo "${ECHO_T}$INSTALL" >&6
6410
6411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6412 # It thinks the first close brace ends the variable substitution.
6413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6414
6415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6416
6417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6418
6419 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6420 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6421 # Just in case
6422 sleep 1
6423 echo timestamp > conftest.file
6424 # Do `set' in a subshell so we don't clobber the current shell's
6425 # arguments.  Must try -L first in case configure is actually a
6426 # symlink; some systems play weird games with the mod time of symlinks
6427 # (eg FreeBSD returns the mod time of the symlink's containing
6428 # directory).
6429 if (
6430    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6431    if test "$*" = "X"; then
6432       # -L didn't work.
6433       set X `ls -t $srcdir/configure conftest.file`
6434    fi
6435    rm -f conftest.file
6436    if test "$*" != "X $srcdir/configure conftest.file" \
6437       && test "$*" != "X conftest.file $srcdir/configure"; then
6438
6439       # If neither matched, then we have a broken ls.  This can happen
6440       # if, for instance, CONFIG_SHELL is bash and it inherits a
6441       # broken ls alias from the environment.  This has actually
6442       # happened.  Such a system could not be considered "sane".
6443       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
6444 alias in your environment" >&5
6445 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
6446 alias in your environment" >&2;}
6447    { (exit 1); exit 1; }; }
6448    fi
6449
6450    test "$2" = conftest.file
6451    )
6452 then
6453    # Ok.
6454    :
6455 else
6456    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6457 Check your system clock" >&5
6458 echo "$as_me: error: newly created file is older than distributed files!
6459 Check your system clock" >&2;}
6460    { (exit 1); exit 1; }; }
6461 fi
6462 echo "$as_me:$LINENO: result: yes" >&5
6463 echo "${ECHO_T}yes" >&6
6464 test "$program_prefix" != NONE &&
6465   program_transform_name="s,^,$program_prefix,;$program_transform_name"
6466 # Use a double $ so make ignores it.
6467 test "$program_suffix" != NONE &&
6468   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6469 # Double any \ or $.  echo might interpret backslashes.
6470 # By default was `s,x,x', remove it if useless.
6471 cat <<\_ACEOF >conftest.sed
6472 s/[\\$]/&&/g;s/;s,x,x,$//
6473 _ACEOF
6474 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6475 rm conftest.sed
6476
6477 # expand $ac_aux_dir to an absolute path
6478 am_aux_dir=`cd $ac_aux_dir && pwd`
6479
6480 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6481 # Use eval to expand $SHELL
6482 if eval "$MISSING --run true"; then
6483   am_missing_run="$MISSING --run "
6484 else
6485   am_missing_run=
6486   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6487 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6488 fi
6489
6490 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6491   # We used to keeping the `.' as first argument, in order to
6492   # allow $(mkdir_p) to be used without argument.  As in
6493   #   $(mkdir_p) $(somedir)
6494   # where $(somedir) is conditionally defined.  However this is wrong
6495   # for two reasons:
6496   #  1. if the package is installed by a user who cannot write `.'
6497   #     make install will fail,
6498   #  2. the above comment should most certainly read
6499   #     $(mkdir_p) $(DESTDIR)$(somedir)
6500   #     so it does not work when $(somedir) is undefined and
6501   #     $(DESTDIR) is not.
6502   #  To support the latter case, we have to write
6503   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6504   #  so the `.' trick is pointless.
6505   mkdir_p='mkdir -p --'
6506 else
6507   # On NextStep and OpenStep, the `mkdir' command does not
6508   # recognize any option.  It will interpret all options as
6509   # directories to create, and then abort because `.' already
6510   # exists.
6511   for d in ./-p ./--version;
6512   do
6513     test -d $d && rmdir $d
6514   done
6515   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6516   if test -f "$ac_aux_dir/mkinstalldirs"; then
6517     mkdir_p='$(mkinstalldirs)'
6518   else
6519     mkdir_p='$(install_sh) -d'
6520   fi
6521 fi
6522
6523 for ac_prog in gawk mawk nawk awk
6524 do
6525   # Extract the first word of "$ac_prog", so it can be a program name with args.
6526 set dummy $ac_prog; ac_word=$2
6527 echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6529 if test "${ac_cv_prog_AWK+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   if test -n "$AWK"; then
6533   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538   IFS=$as_save_IFS
6539   test -z "$as_dir" && as_dir=.
6540   for ac_exec_ext in '' $ac_executable_extensions; do
6541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542     ac_cv_prog_AWK="$ac_prog"
6543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544     break 2
6545   fi
6546 done
6547 done
6548
6549 fi
6550 fi
6551 AWK=$ac_cv_prog_AWK
6552 if test -n "$AWK"; then
6553   echo "$as_me:$LINENO: result: $AWK" >&5
6554 echo "${ECHO_T}$AWK" >&6
6555 else
6556   echo "$as_me:$LINENO: result: no" >&5
6557 echo "${ECHO_T}no" >&6
6558 fi
6559
6560   test -n "$AWK" && break
6561 done
6562
6563 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6564 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6565 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6566 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   cat >conftest.make <<\_ACEOF
6570 all:
6571         @echo 'ac_maketemp="$(MAKE)"'
6572 _ACEOF
6573 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6574 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6575 if test -n "$ac_maketemp"; then
6576   eval ac_cv_prog_make_${ac_make}_set=yes
6577 else
6578   eval ac_cv_prog_make_${ac_make}_set=no
6579 fi
6580 rm -f conftest.make
6581 fi
6582 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6583   echo "$as_me:$LINENO: result: yes" >&5
6584 echo "${ECHO_T}yes" >&6
6585   SET_MAKE=
6586 else
6587   echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
6589   SET_MAKE="MAKE=${MAKE-make}"
6590 fi
6591
6592 rm -rf .tst 2>/dev/null
6593 mkdir .tst 2>/dev/null
6594 if test -d .tst; then
6595   am__leading_dot=.
6596 else
6597   am__leading_dot=_
6598 fi
6599 rmdir .tst 2>/dev/null
6600
6601 DEPDIR="${am__leading_dot}deps"
6602
6603           ac_config_commands="$ac_config_commands depfiles"
6604
6605
6606 am_make=${MAKE-make}
6607 cat > confinc << 'END'
6608 am__doit:
6609         @echo done
6610 .PHONY: am__doit
6611 END
6612 # If we don't find an include directive, just comment out the code.
6613 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6614 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6615 am__include="#"
6616 am__quote=
6617 _am_result=none
6618 # First try GNU make style include.
6619 echo "include confinc" > confmf
6620 # We grep out `Entering directory' and `Leaving directory'
6621 # messages which can occur if `w' ends up in MAKEFLAGS.
6622 # In particular we don't look at `^make:' because GNU make might
6623 # be invoked under some other name (usually "gmake"), in which
6624 # case it prints its new name instead of `make'.
6625 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6626    am__include=include
6627    am__quote=
6628    _am_result=GNU
6629 fi
6630 # Now try BSD make style include.
6631 if test "$am__include" = "#"; then
6632    echo '.include "confinc"' > confmf
6633    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6634       am__include=.include
6635       am__quote="\""
6636       _am_result=BSD
6637    fi
6638 fi
6639
6640
6641 echo "$as_me:$LINENO: result: $_am_result" >&5
6642 echo "${ECHO_T}$_am_result" >&6
6643 rm -f confinc confmf
6644
6645 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6646 if test "${enable_dependency_tracking+set}" = set; then
6647   enableval="$enable_dependency_tracking"
6648
6649 fi;
6650 if test "x$enable_dependency_tracking" != xno; then
6651   am_depcomp="$ac_aux_dir/depcomp"
6652   AMDEPBACKSLASH='\'
6653 fi
6654
6655
6656 if test "x$enable_dependency_tracking" != xno; then
6657   AMDEP_TRUE=
6658   AMDEP_FALSE='#'
6659 else
6660   AMDEP_TRUE='#'
6661   AMDEP_FALSE=
6662 fi
6663
6664
6665
6666 # test to see if srcdir already configured
6667 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6668    test -f $srcdir/config.status; then
6669   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6670 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6671    { (exit 1); exit 1; }; }
6672 fi
6673
6674 # test whether we have cygpath
6675 if test -z "$CYGPATH_W"; then
6676   if (cygpath --version) >/dev/null 2>/dev/null; then
6677     CYGPATH_W='cygpath -w'
6678   else
6679     CYGPATH_W=echo
6680   fi
6681 fi
6682
6683
6684 # Define the identity of the package.
6685  PACKAGE=gdb
6686  VERSION=UNUSED-VERSION
6687
6688
6689 # Some tools Automake needs.
6690
6691 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6692
6693
6694 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6695
6696
6697 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6698
6699
6700 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6701
6702
6703 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6704
6705 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6706
6707 # Installed binaries are usually stripped using `strip' when the user
6708 # run `make install-strip'.  However `strip' might not be the right
6709 # tool to use in cross-compilation environments, therefore Automake
6710 # will honor the `STRIP' environment variable to overrule this program.
6711 if test "$cross_compiling" != no; then
6712   if test -n "$ac_tool_prefix"; then
6713   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6714 set dummy ${ac_tool_prefix}strip; ac_word=$2
6715 echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6717 if test "${ac_cv_prog_STRIP+set}" = set; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720   if test -n "$STRIP"; then
6721   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728   for ac_exec_ext in '' $ac_executable_extensions; do
6729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735 done
6736
6737 fi
6738 fi
6739 STRIP=$ac_cv_prog_STRIP
6740 if test -n "$STRIP"; then
6741   echo "$as_me:$LINENO: result: $STRIP" >&5
6742 echo "${ECHO_T}$STRIP" >&6
6743 else
6744   echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6
6746 fi
6747
6748 fi
6749 if test -z "$ac_cv_prog_STRIP"; then
6750   ac_ct_STRIP=$STRIP
6751   # Extract the first word of "strip", so it can be a program name with args.
6752 set dummy strip; ac_word=$2
6753 echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6755 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6756   echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758   if test -n "$ac_ct_STRIP"; then
6759   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764   IFS=$as_save_IFS
6765   test -z "$as_dir" && as_dir=.
6766   for ac_exec_ext in '' $ac_executable_extensions; do
6767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768     ac_cv_prog_ac_ct_STRIP="strip"
6769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770     break 2
6771   fi
6772 done
6773 done
6774
6775   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6776 fi
6777 fi
6778 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6779 if test -n "$ac_ct_STRIP"; then
6780   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6781 echo "${ECHO_T}$ac_ct_STRIP" >&6
6782 else
6783   echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6
6785 fi
6786
6787   STRIP=$ac_ct_STRIP
6788 else
6789   STRIP="$ac_cv_prog_STRIP"
6790 fi
6791
6792 fi
6793 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6794
6795 # We need awk for the "check" target.  The system "awk" is bad on
6796 # some platforms.
6797 # Always define AMTAR for backward compatibility.
6798
6799 AMTAR=${AMTAR-"${am_missing_run}tar"}
6800
6801 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6802
6803
6804
6805
6806 depcc="$CC"   am_compiler_list=
6807
6808 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6809 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6810 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6814   # We make a subdir and do the tests there.  Otherwise we can end up
6815   # making bogus files that we don't know about and never remove.  For
6816   # instance it was reported that on HP-UX the gcc test will end up
6817   # making a dummy file named `D' -- because `-MD' means `put the output
6818   # in D'.
6819   mkdir conftest.dir
6820   # Copy depcomp to subdir because otherwise we won't find it if we're
6821   # using a relative directory.
6822   cp "$am_depcomp" conftest.dir
6823   cd conftest.dir
6824   # We will build objects and dependencies in a subdirectory because
6825   # it helps to detect inapplicable dependency modes.  For instance
6826   # both Tru64's cc and ICC support -MD to output dependencies as a
6827   # side effect of compilation, but ICC will put the dependencies in
6828   # the current directory while Tru64 will put them in the object
6829   # directory.
6830   mkdir sub
6831
6832   am_cv_CC_dependencies_compiler_type=none
6833   if test "$am_compiler_list" = ""; then
6834      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6835   fi
6836   for depmode in $am_compiler_list; do
6837     # Setup a source with many dependencies, because some compilers
6838     # like to wrap large dependency lists on column 80 (with \), and
6839     # we should not choose a depcomp mode which is confused by this.
6840     #
6841     # We need to recreate these files for each test, as the compiler may
6842     # overwrite some of them when testing with obscure command lines.
6843     # This happens at least with the AIX C compiler.
6844     : > sub/conftest.c
6845     for i in 1 2 3 4 5 6; do
6846       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6847       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6848       # Solaris 8's {/usr,}/bin/sh.
6849       touch sub/conftst$i.h
6850     done
6851     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6852
6853     case $depmode in
6854     nosideeffect)
6855       # after this tag, mechanisms are not by side-effect, so they'll
6856       # only be used when explicitly requested
6857       if test "x$enable_dependency_tracking" = xyes; then
6858         continue
6859       else
6860         break
6861       fi
6862       ;;
6863     none) break ;;
6864     esac
6865     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6866     # mode.  It turns out that the SunPro C++ compiler does not properly
6867     # handle `-M -o', and we need to detect this.
6868     if depmode=$depmode \
6869        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6870        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6871        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6872          >/dev/null 2>conftest.err &&
6873        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6874        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6875        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6876       # icc doesn't choke on unknown options, it will just issue warnings
6877       # or remarks (even with -Werror).  So we grep stderr for any message
6878       # that says an option was ignored or not supported.
6879       # When given -MP, icc 7.0 and 7.1 complain thusly:
6880       #   icc: Command line warning: ignoring option '-M'; no argument required
6881       # The diagnosis changed in icc 8.0:
6882       #   icc: Command line remark: option '-MP' not supported
6883       if (grep 'ignoring option' conftest.err ||
6884           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6885         am_cv_CC_dependencies_compiler_type=$depmode
6886         break
6887       fi
6888     fi
6889   done
6890
6891   cd ..
6892   rm -rf conftest.dir
6893 else
6894   am_cv_CC_dependencies_compiler_type=none
6895 fi
6896
6897 fi
6898 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6899 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6901
6902
6903
6904 if
6905   test "x$enable_dependency_tracking" != xno \
6906   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6907   am__fastdepCC_TRUE=
6908   am__fastdepCC_FALSE='#'
6909 else
6910   am__fastdepCC_TRUE='#'
6911   am__fastdepCC_FALSE=
6912 fi
6913
6914
6915
6916
6917 debugdir=${libdir}/debug
6918
6919
6920 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6921 if test "${with_separate_debug_dir+set}" = set; then
6922   withval="$with_separate_debug_dir"
6923   debugdir="${withval}"
6924 fi;
6925
6926
6927   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6928   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6929   ac_define_dir=`eval echo $debugdir`
6930   ac_define_dir=`eval echo $ac_define_dir`
6931
6932 cat >>confdefs.h <<_ACEOF
6933 #define DEBUGDIR "$ac_define_dir"
6934 _ACEOF
6935
6936
6937 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6938
6939 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6940   if test "x$prefix" = xNONE; then
6941     test_prefix=/usr/local
6942   else
6943     test_prefix=$prefix
6944   fi
6945 else
6946   test_prefix=$exec_prefix
6947 fi
6948 case ${debugdir} in
6949 "${test_prefix}"|"${test_prefix}/"*|\
6950 '${exec_prefix}'|'${exec_prefix}/'*)
6951
6952 cat >>confdefs.h <<\_ACEOF
6953 #define DEBUGDIR_RELOCATABLE 1
6954 _ACEOF
6955
6956   ;;
6957 esac
6958
6959
6960
6961 subdirs="$subdirs doc testsuite"
6962
6963
6964 # Check whether to support alternative target configurations
6965 # Check whether --enable-targets or --disable-targets was given.
6966 if test "${enable_targets+set}" = set; then
6967   enableval="$enable_targets"
6968   case "${enableval}" in
6969   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6970 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6971    { (exit 1); exit 1; }; }
6972             ;;
6973   no)       enable_targets= ;;
6974   *)        enable_targets=$enableval ;;
6975 esac
6976 fi;
6977
6978 # Check whether to enable 64-bit support on 32-bit hosts
6979 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6980 if test "${enable_64_bit_bfd+set}" = set; then
6981   enableval="$enable_64_bit_bfd"
6982   case "${enableval}" in
6983   yes)  want64=true  ;;
6984   no)   want64=false ;;
6985   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6986 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6987    { (exit 1); exit 1; }; } ;;
6988 esac
6989 else
6990   want64=false
6991 fi;
6992 # Provide defaults for some variables set by the per-host and per-target
6993 # configuration.
6994 gdb_host_obs=posix-hdep.o
6995
6996 if test "${target}" = "${host}"; then
6997   gdb_native=yes
6998 else
6999   gdb_native=no
7000 fi
7001
7002 . $srcdir/configure.host
7003
7004 # Accumulate some settings from configure.tgt over all enabled targets
7005
7006 TARGET_OBS=
7007 all_targets=
7008
7009 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7010 do
7011   if test "$targ_alias" = "all"; then
7012     all_targets=true
7013   else
7014     # Canonicalize the secondary target names.
7015     result=`$ac_config_sub $targ_alias 2>/dev/null`
7016     if test -n "$result"; then
7017         targ=$result
7018     else
7019         targ=$targ_alias
7020     fi
7021
7022     . ${srcdir}/configure.tgt
7023
7024     # Target-specific object files
7025     for i in ${gdb_target_obs}; do
7026         case " $TARGET_OBS " in
7027         *" ${i} "*) ;;
7028         *)
7029           TARGET_OBS="$TARGET_OBS ${i}"
7030           ;;
7031         esac
7032     done
7033
7034     # Check whether this target needs 64-bit CORE_ADDR
7035     if test x${want64} = xfalse; then
7036       . ${srcdir}/../bfd/config.bfd
7037     fi
7038   fi
7039 done
7040
7041 if test x${all_targets} = xtrue; then
7042
7043   # We want all 64-bit targets if we either:
7044   #  - run on a 64-bit host  or
7045   #  - already require 64-bit support for some other target  or
7046   #  - the --enable-64-bit-bfd option was supplied
7047   # Otherwise we only support all 32-bit targets.
7048   #
7049   # NOTE: This test must be in sync with the corresponding
7050   #       tests in BFD!
7051
7052   if test x${want64} = xfalse; then
7053     echo "$as_me:$LINENO: checking for long" >&5
7054 echo $ECHO_N "checking for long... $ECHO_C" >&6
7055 if test "${ac_cv_type_long+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064 $ac_includes_default
7065 int
7066 main ()
7067 {
7068 if ((long *) 0)
7069   return 0;
7070 if (sizeof (long))
7071   return 0;
7072   ;
7073   return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078   (eval $ac_compile) 2>conftest.er1
7079   ac_status=$?
7080   grep -v '^ *+' conftest.er1 >conftest.err
7081   rm -f conftest.er1
7082   cat conftest.err >&5
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } &&
7085          { ac_try='test -z "$ac_c_werror_flag"
7086                          || test ! -s conftest.err'
7087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088   (eval $ac_try) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; } &&
7092          { ac_try='test -s conftest.$ac_objext'
7093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094   (eval $ac_try) 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; }; then
7098   ac_cv_type_long=yes
7099 else
7100   echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103 ac_cv_type_long=no
7104 fi
7105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7106 fi
7107 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7108 echo "${ECHO_T}$ac_cv_type_long" >&6
7109
7110 echo "$as_me:$LINENO: checking size of long" >&5
7111 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7112 if test "${ac_cv_sizeof_long+set}" = set; then
7113   echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115   if test "$ac_cv_type_long" = yes; then
7116   # The cast to unsigned long works around a bug in the HP C Compiler
7117   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7118   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7119   # This bug is HP SR number 8606223364.
7120   if test "$cross_compiling" = yes; then
7121   # Depending upon the size, compute the lo and hi bounds.
7122 cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h.  */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h.  */
7128 $ac_includes_default
7129 int
7130 main ()
7131 {
7132 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7133 test_array [0] = 0
7134
7135   ;
7136   return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141   (eval $ac_compile) 2>conftest.er1
7142   ac_status=$?
7143   grep -v '^ *+' conftest.er1 >conftest.err
7144   rm -f conftest.er1
7145   cat conftest.err >&5
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); } &&
7148          { ac_try='test -z "$ac_c_werror_flag"
7149                          || test ! -s conftest.err'
7150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151   (eval $ac_try) 2>&5
7152   ac_status=$?
7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); }; } &&
7155          { ac_try='test -s conftest.$ac_objext'
7156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157   (eval $ac_try) 2>&5
7158   ac_status=$?
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); }; }; then
7161   ac_lo=0 ac_mid=0
7162   while :; do
7163     cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h.  */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h.  */
7169 $ac_includes_default
7170 int
7171 main ()
7172 {
7173 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7174 test_array [0] = 0
7175
7176   ;
7177   return 0;
7178 }
7179 _ACEOF
7180 rm -f conftest.$ac_objext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182   (eval $ac_compile) 2>conftest.er1
7183   ac_status=$?
7184   grep -v '^ *+' conftest.er1 >conftest.err
7185   rm -f conftest.er1
7186   cat conftest.err >&5
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); } &&
7189          { ac_try='test -z "$ac_c_werror_flag"
7190                          || test ! -s conftest.err'
7191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192   (eval $ac_try) 2>&5
7193   ac_status=$?
7194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195   (exit $ac_status); }; } &&
7196          { ac_try='test -s conftest.$ac_objext'
7197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198   (eval $ac_try) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); }; }; then
7202   ac_hi=$ac_mid; break
7203 else
7204   echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7206
7207 ac_lo=`expr $ac_mid + 1`
7208                     if test $ac_lo -le $ac_mid; then
7209                       ac_lo= ac_hi=
7210                       break
7211                     fi
7212                     ac_mid=`expr 2 '*' $ac_mid + 1`
7213 fi
7214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7215   done
7216 else
7217   echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7219
7220 cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h.  */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h.  */
7226 $ac_includes_default
7227 int
7228 main ()
7229 {
7230 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7231 test_array [0] = 0
7232
7233   ;
7234   return 0;
7235 }
7236 _ACEOF
7237 rm -f conftest.$ac_objext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239   (eval $ac_compile) 2>conftest.er1
7240   ac_status=$?
7241   grep -v '^ *+' conftest.er1 >conftest.err
7242   rm -f conftest.er1
7243   cat conftest.err >&5
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } &&
7246          { ac_try='test -z "$ac_c_werror_flag"
7247                          || test ! -s conftest.err'
7248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249   (eval $ac_try) 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); }; } &&
7253          { ac_try='test -s conftest.$ac_objext'
7254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255   (eval $ac_try) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); }; }; then
7259   ac_hi=-1 ac_mid=-1
7260   while :; do
7261     cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h.  */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h.  */
7267 $ac_includes_default
7268 int
7269 main ()
7270 {
7271 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7272 test_array [0] = 0
7273
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest.$ac_objext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7280   (eval $ac_compile) 2>conftest.er1
7281   ac_status=$?
7282   grep -v '^ *+' conftest.er1 >conftest.err
7283   rm -f conftest.er1
7284   cat conftest.err >&5
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } &&
7287          { ac_try='test -z "$ac_c_werror_flag"
7288                          || test ! -s conftest.err'
7289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290   (eval $ac_try) 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; } &&
7294          { ac_try='test -s conftest.$ac_objext'
7295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296   (eval $ac_try) 2>&5
7297   ac_status=$?
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); }; }; then
7300   ac_lo=$ac_mid; break
7301 else
7302   echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7304
7305 ac_hi=`expr '(' $ac_mid ')' - 1`
7306                        if test $ac_mid -le $ac_hi; then
7307                          ac_lo= ac_hi=
7308                          break
7309                        fi
7310                        ac_mid=`expr 2 '*' $ac_mid`
7311 fi
7312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313   done
7314 else
7315   echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318 ac_lo= ac_hi=
7319 fi
7320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7321 fi
7322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7323 # Binary search between lo and hi bounds.
7324 while test "x$ac_lo" != "x$ac_hi"; do
7325   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7326   cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h.  */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h.  */
7332 $ac_includes_default
7333 int
7334 main ()
7335 {
7336 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7337 test_array [0] = 0
7338
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345   (eval $ac_compile) 2>conftest.er1
7346   ac_status=$?
7347   grep -v '^ *+' conftest.er1 >conftest.err
7348   rm -f conftest.er1
7349   cat conftest.err >&5
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); } &&
7352          { ac_try='test -z "$ac_c_werror_flag"
7353                          || test ! -s conftest.err'
7354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355   (eval $ac_try) 2>&5
7356   ac_status=$?
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); }; } &&
7359          { ac_try='test -s conftest.$ac_objext'
7360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361   (eval $ac_try) 2>&5
7362   ac_status=$?
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); }; }; then
7365   ac_hi=$ac_mid
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 ac_lo=`expr '(' $ac_mid ')' + 1`
7371 fi
7372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7373 done
7374 case $ac_lo in
7375 ?*) ac_cv_sizeof_long=$ac_lo;;
7376 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7377 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7378 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7379 See \`config.log' for more details." >&5
7380 echo "$as_me: error: cannot compute sizeof (long), 77
7381 See \`config.log' for more details." >&2;}
7382    { (exit 1); exit 1; }; }; } ;;
7383 esac
7384 else
7385   if test "$cross_compiling" = yes; then
7386   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7387 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7388 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7389 See \`config.log' for more details." >&5
7390 echo "$as_me: error: cannot run test program while cross compiling
7391 See \`config.log' for more details." >&2;}
7392    { (exit 1); exit 1; }; }; }
7393 else
7394   cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h.  */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h.  */
7400 $ac_includes_default
7401 long longval () { return (long) (sizeof (long)); }
7402 unsigned long ulongval () { return (long) (sizeof (long)); }
7403 #include <stdio.h>
7404 #include <stdlib.h>
7405 int
7406 main ()
7407 {
7408
7409   FILE *f = fopen ("conftest.val", "w");
7410   if (! f)
7411     exit (1);
7412   if (((long) (sizeof (long))) < 0)
7413     {
7414       long i = longval ();
7415       if (i != ((long) (sizeof (long))))
7416         exit (1);
7417       fprintf (f, "%ld\n", i);
7418     }
7419   else
7420     {
7421       unsigned long i = ulongval ();
7422       if (i != ((long) (sizeof (long))))
7423         exit (1);
7424       fprintf (f, "%lu\n", i);
7425     }
7426   exit (ferror (f) || fclose (f) != 0);
7427
7428   ;
7429   return 0;
7430 }
7431 _ACEOF
7432 rm -f conftest$ac_exeext
7433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7434   (eval $ac_link) 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439   (eval $ac_try) 2>&5
7440   ac_status=$?
7441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442   (exit $ac_status); }; }; then
7443   ac_cv_sizeof_long=`cat conftest.val`
7444 else
7445   echo "$as_me: program exited with status $ac_status" >&5
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7448
7449 ( exit $ac_status )
7450 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7451 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7453 See \`config.log' for more details." >&5
7454 echo "$as_me: error: cannot compute sizeof (long), 77
7455 See \`config.log' for more details." >&2;}
7456    { (exit 1); exit 1; }; }; }
7457 fi
7458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7459 fi
7460 fi
7461 rm -f conftest.val
7462 else
7463   ac_cv_sizeof_long=0
7464 fi
7465 fi
7466 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7467 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7468 cat >>confdefs.h <<_ACEOF
7469 #define SIZEOF_LONG $ac_cv_sizeof_long
7470 _ACEOF
7471
7472
7473     if test "x${ac_cv_sizeof_long}" = "x8"; then
7474       want64=true
7475     fi
7476   fi
7477   if test x${want64} = xtrue; then
7478     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7479   else
7480     TARGET_OBS='$(ALL_TARGET_OBS)'
7481   fi
7482 fi
7483
7484
7485
7486 # For other settings, only the main target counts.
7487 gdb_sim=
7488 gdb_osabi=
7489 build_gdbserver=
7490 targ=$target; . ${srcdir}/configure.tgt
7491
7492 # Fetch the default architecture and default target vector from BFD.
7493 targ=$target; . $srcdir/../bfd/config.bfd
7494
7495 # We only want the first architecture, so strip off the others if
7496 # there is more than one.
7497 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7498
7499 if test "x$targ_archs" != x; then
7500
7501 cat >>confdefs.h <<_ACEOF
7502 #define DEFAULT_BFD_ARCH $targ_archs
7503 _ACEOF
7504
7505 fi
7506 if test "x$targ_defvec" != x; then
7507
7508 cat >>confdefs.h <<_ACEOF
7509 #define DEFAULT_BFD_VEC $targ_defvec
7510 _ACEOF
7511
7512 fi
7513
7514 # The CLI cannot be disabled yet, but may be in the future.
7515
7516 # Enable CLI.
7517 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7518 if test "${enable_gdbcli+set}" = set; then
7519   enableval="$enable_gdbcli"
7520   case $enableval in
7521     yes)
7522       ;;
7523     no)
7524       { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7525 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7526    { (exit 1); exit 1; }; } ;;
7527     *)
7528       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7529 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7530    { (exit 1); exit 1; }; } ;;
7531   esac
7532 else
7533   enable_gdbcli=yes
7534 fi;
7535 if test x"$enable_gdbcli" = xyes; then
7536   if test -d $srcdir/cli; then
7537     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7538     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7539     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7540     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7541   fi
7542 fi
7543
7544 # Enable MI.
7545 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7546 if test "${enable_gdbmi+set}" = set; then
7547   enableval="$enable_gdbmi"
7548   case $enableval in
7549     yes | no)
7550       ;;
7551     *)
7552       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7553 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7554    { (exit 1); exit 1; }; } ;;
7555   esac
7556 else
7557   enable_gdbmi=yes
7558 fi;
7559 if test x"$enable_gdbmi" = xyes; then
7560   if test -d $srcdir/mi; then
7561     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7562     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7563     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7564     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7565   fi
7566 fi
7567
7568 # Enable TUI.
7569 # Check whether --enable-tui or --disable-tui was given.
7570 if test "${enable_tui+set}" = set; then
7571   enableval="$enable_tui"
7572   case $enableval in
7573     yes | no | auto)
7574       ;;
7575     *)
7576       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7577 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7578    { (exit 1); exit 1; }; } ;;
7579   esac
7580 else
7581   enable_tui=auto
7582 fi;
7583
7584 # Enable gdbtk.
7585 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7586 if test "${enable_gdbtk+set}" = set; then
7587   enableval="$enable_gdbtk"
7588   case $enableval in
7589     yes | no)
7590       ;;
7591     *)
7592       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7593 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7594    { (exit 1); exit 1; }; } ;;
7595   esac
7596 else
7597   if test -d $srcdir/gdbtk; then
7598     enable_gdbtk=yes
7599   else
7600     enable_gdbtk=no
7601   fi
7602 fi;
7603 # We unconditionally disable gdbtk tests on selected platforms.
7604 case $host_os in
7605   go32* | windows*)
7606     { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7607 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7608     enable_gdbtk=no ;;
7609 esac
7610
7611 # Libunwind support.
7612
7613 # Check whether --with-libunwind or --without-libunwind was given.
7614 if test "${with_libunwind+set}" = set; then
7615   withval="$with_libunwind"
7616   case "${withval}" in
7617   yes)  enable_libunwind=yes ;;
7618   no)   enable_libunwind=no ;;
7619   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7620 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7621    { (exit 1); exit 1; }; } ;;
7622 esac
7623 else
7624
7625
7626 for ac_header in libunwind.h
7627 do
7628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7630   echo "$as_me:$LINENO: checking for $ac_header" >&5
7631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 fi
7635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7637 else
7638   # Is the header compilable?
7639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7641 cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h.  */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h.  */
7647 $ac_includes_default
7648 #include <$ac_header>
7649 _ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652   (eval $ac_compile) 2>conftest.er1
7653   ac_status=$?
7654   grep -v '^ *+' conftest.er1 >conftest.err
7655   rm -f conftest.er1
7656   cat conftest.err >&5
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); } &&
7659          { ac_try='test -z "$ac_c_werror_flag"
7660                          || test ! -s conftest.err'
7661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662   (eval $ac_try) 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); }; } &&
7666          { ac_try='test -s conftest.$ac_objext'
7667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668   (eval $ac_try) 2>&5
7669   ac_status=$?
7670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671   (exit $ac_status); }; }; then
7672   ac_header_compiler=yes
7673 else
7674   echo "$as_me: failed program was:" >&5
7675 sed 's/^/| /' conftest.$ac_ext >&5
7676
7677 ac_header_compiler=no
7678 fi
7679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7681 echo "${ECHO_T}$ac_header_compiler" >&6
7682
7683 # Is the header present?
7684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h.  */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h.  */
7692 #include <$ac_header>
7693 _ACEOF
7694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7696   ac_status=$?
7697   grep -v '^ *+' conftest.er1 >conftest.err
7698   rm -f conftest.er1
7699   cat conftest.err >&5
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); } >/dev/null; then
7702   if test -s conftest.err; then
7703     ac_cpp_err=$ac_c_preproc_warn_flag
7704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7705   else
7706     ac_cpp_err=
7707   fi
7708 else
7709   ac_cpp_err=yes
7710 fi
7711 if test -z "$ac_cpp_err"; then
7712   ac_header_preproc=yes
7713 else
7714   echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717   ac_header_preproc=no
7718 fi
7719 rm -f conftest.err conftest.$ac_ext
7720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7721 echo "${ECHO_T}$ac_header_preproc" >&6
7722
7723 # So?  What about this header?
7724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7725   yes:no: )
7726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7730     ac_header_preproc=yes
7731     ;;
7732   no:yes:* )
7733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7735     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7736 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7737     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7739     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7740 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7743     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7745     (
7746       cat <<\_ASBOX
7747 ## ------------------------------------------ ##
7748 ## Report this to the AC_PACKAGE_NAME lists.  ##
7749 ## ------------------------------------------ ##
7750 _ASBOX
7751     ) |
7752       sed "s/^/$as_me: WARNING:     /" >&2
7753     ;;
7754 esac
7755 echo "$as_me:$LINENO: checking for $ac_header" >&5
7756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   eval "$as_ac_Header=\$ac_header_preproc"
7761 fi
7762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7764
7765 fi
7766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7767   cat >>confdefs.h <<_ACEOF
7768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7769 _ACEOF
7770
7771 fi
7772
7773 done
7774
7775
7776 for ac_header in libunwind-ia64.h
7777 do
7778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7780   echo "$as_me:$LINENO: checking for $ac_header" >&5
7781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7783   echo $ECHO_N "(cached) $ECHO_C" >&6
7784 fi
7785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7787 else
7788   # Is the header compilable?
7789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h.  */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h.  */
7797 $ac_includes_default
7798 #include <$ac_header>
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7802   (eval $ac_compile) 2>conftest.er1
7803   ac_status=$?
7804   grep -v '^ *+' conftest.er1 >conftest.err
7805   rm -f conftest.er1
7806   cat conftest.err >&5
7807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); } &&
7809          { ac_try='test -z "$ac_c_werror_flag"
7810                          || test ! -s conftest.err'
7811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812   (eval $ac_try) 2>&5
7813   ac_status=$?
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); }; } &&
7816          { ac_try='test -s conftest.$ac_objext'
7817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818   (eval $ac_try) 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; }; then
7822   ac_header_compiler=yes
7823 else
7824   echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7826
7827 ac_header_compiler=no
7828 fi
7829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7831 echo "${ECHO_T}$ac_header_compiler" >&6
7832
7833 # Is the header present?
7834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7836 cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h.  */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h.  */
7842 #include <$ac_header>
7843 _ACEOF
7844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7846   ac_status=$?
7847   grep -v '^ *+' conftest.er1 >conftest.err
7848   rm -f conftest.er1
7849   cat conftest.err >&5
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); } >/dev/null; then
7852   if test -s conftest.err; then
7853     ac_cpp_err=$ac_c_preproc_warn_flag
7854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7855   else
7856     ac_cpp_err=
7857   fi
7858 else
7859   ac_cpp_err=yes
7860 fi
7861 if test -z "$ac_cpp_err"; then
7862   ac_header_preproc=yes
7863 else
7864   echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867   ac_header_preproc=no
7868 fi
7869 rm -f conftest.err conftest.$ac_ext
7870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7871 echo "${ECHO_T}$ac_header_preproc" >&6
7872
7873 # So?  What about this header?
7874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7875   yes:no: )
7876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7880     ac_header_preproc=yes
7881     ;;
7882   no:yes:* )
7883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7895     (
7896       cat <<\_ASBOX
7897 ## ------------------------------------------ ##
7898 ## Report this to the AC_PACKAGE_NAME lists.  ##
7899 ## ------------------------------------------ ##
7900 _ASBOX
7901     ) |
7902       sed "s/^/$as_me: WARNING:     /" >&2
7903     ;;
7904 esac
7905 echo "$as_me:$LINENO: checking for $ac_header" >&5
7906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910   eval "$as_ac_Header=\$ac_header_preproc"
7911 fi
7912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7914
7915 fi
7916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7917   cat >>confdefs.h <<_ACEOF
7918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7919 _ACEOF
7920
7921 fi
7922
7923 done
7924
7925   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7926     enable_libunwind=yes;
7927   fi
7928
7929 fi;
7930
7931 if test x"$enable_libunwind" = xyes; then
7932
7933 for ac_header in libunwind.h
7934 do
7935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7937   echo "$as_me:$LINENO: checking for $ac_header" >&5
7938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 fi
7942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7944 else
7945   # Is the header compilable?
7946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h.  */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h.  */
7954 $ac_includes_default
7955 #include <$ac_header>
7956 _ACEOF
7957 rm -f conftest.$ac_objext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7959   (eval $ac_compile) 2>conftest.er1
7960   ac_status=$?
7961   grep -v '^ *+' conftest.er1 >conftest.err
7962   rm -f conftest.er1
7963   cat conftest.err >&5
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } &&
7966          { ac_try='test -z "$ac_c_werror_flag"
7967                          || test ! -s conftest.err'
7968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969   (eval $ac_try) 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); }; } &&
7973          { ac_try='test -s conftest.$ac_objext'
7974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975   (eval $ac_try) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; }; then
7979   ac_header_compiler=yes
7980 else
7981   echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7983
7984 ac_header_compiler=no
7985 fi
7986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7988 echo "${ECHO_T}$ac_header_compiler" >&6
7989
7990 # Is the header present?
7991 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999 #include <$ac_header>
8000 _ACEOF
8001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8002   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8003   ac_status=$?
8004   grep -v '^ *+' conftest.er1 >conftest.err
8005   rm -f conftest.er1
8006   cat conftest.err >&5
8007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   (exit $ac_status); } >/dev/null; then
8009   if test -s conftest.err; then
8010     ac_cpp_err=$ac_c_preproc_warn_flag
8011     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8012   else
8013     ac_cpp_err=
8014   fi
8015 else
8016   ac_cpp_err=yes
8017 fi
8018 if test -z "$ac_cpp_err"; then
8019   ac_header_preproc=yes
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024   ac_header_preproc=no
8025 fi
8026 rm -f conftest.err conftest.$ac_ext
8027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8028 echo "${ECHO_T}$ac_header_preproc" >&6
8029
8030 # So?  What about this header?
8031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8032   yes:no: )
8033     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8037     ac_header_preproc=yes
8038     ;;
8039   no:yes:* )
8040     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8042     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8043 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8044     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8046     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8047 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8050     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8052     (
8053       cat <<\_ASBOX
8054 ## ------------------------------------------ ##
8055 ## Report this to the AC_PACKAGE_NAME lists.  ##
8056 ## ------------------------------------------ ##
8057 _ASBOX
8058     ) |
8059       sed "s/^/$as_me: WARNING:     /" >&2
8060     ;;
8061 esac
8062 echo "$as_me:$LINENO: checking for $ac_header" >&5
8063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8065   echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067   eval "$as_ac_Header=\$ac_header_preproc"
8068 fi
8069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8071
8072 fi
8073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8074   cat >>confdefs.h <<_ACEOF
8075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8076 _ACEOF
8077
8078 fi
8079
8080 done
8081
8082
8083 for ac_header in libunwind-ia64.h
8084 do
8085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8087   echo "$as_me:$LINENO: checking for $ac_header" >&5
8088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 fi
8092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8094 else
8095   # Is the header compilable?
8096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8098 cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h.  */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h.  */
8104 $ac_includes_default
8105 #include <$ac_header>
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109   (eval $ac_compile) 2>conftest.er1
8110   ac_status=$?
8111   grep -v '^ *+' conftest.er1 >conftest.err
8112   rm -f conftest.er1
8113   cat conftest.err >&5
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); } &&
8116          { ac_try='test -z "$ac_c_werror_flag"
8117                          || test ! -s conftest.err'
8118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119   (eval $ac_try) 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); }; } &&
8123          { ac_try='test -s conftest.$ac_objext'
8124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125   (eval $ac_try) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; }; then
8129   ac_header_compiler=yes
8130 else
8131   echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134 ac_header_compiler=no
8135 fi
8136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8138 echo "${ECHO_T}$ac_header_compiler" >&6
8139
8140 # Is the header present?
8141 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149 #include <$ac_header>
8150 _ACEOF
8151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8152   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8153   ac_status=$?
8154   grep -v '^ *+' conftest.er1 >conftest.err
8155   rm -f conftest.er1
8156   cat conftest.err >&5
8157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158   (exit $ac_status); } >/dev/null; then
8159   if test -s conftest.err; then
8160     ac_cpp_err=$ac_c_preproc_warn_flag
8161     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8162   else
8163     ac_cpp_err=
8164   fi
8165 else
8166   ac_cpp_err=yes
8167 fi
8168 if test -z "$ac_cpp_err"; then
8169   ac_header_preproc=yes
8170 else
8171   echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8173
8174   ac_header_preproc=no
8175 fi
8176 rm -f conftest.err conftest.$ac_ext
8177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8178 echo "${ECHO_T}$ac_header_preproc" >&6
8179
8180 # So?  What about this header?
8181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8182   yes:no: )
8183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8187     ac_header_preproc=yes
8188     ;;
8189   no:yes:* )
8190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8193 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8194     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8196     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8197 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8200     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8202     (
8203       cat <<\_ASBOX
8204 ## ------------------------------------------ ##
8205 ## Report this to the AC_PACKAGE_NAME lists.  ##
8206 ## ------------------------------------------ ##
8207 _ASBOX
8208     ) |
8209       sed "s/^/$as_me: WARNING:     /" >&2
8210     ;;
8211 esac
8212 echo "$as_me:$LINENO: checking for $ac_header" >&5
8213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8215   echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217   eval "$as_ac_Header=\$ac_header_preproc"
8218 fi
8219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8221
8222 fi
8223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8224   cat >>confdefs.h <<_ACEOF
8225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8226 _ACEOF
8227
8228 fi
8229
8230 done
8231
8232
8233 cat >>confdefs.h <<\_ACEOF
8234 #define HAVE_LIBUNWIND 1
8235 _ACEOF
8236
8237   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8238   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8239   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8240 fi
8241
8242 # Profiling support.
8243 # Check whether --enable-profiling or --disable-profiling was given.
8244 if test "${enable_profiling+set}" = set; then
8245   enableval="$enable_profiling"
8246   case $enableval in
8247     yes | no)
8248       ;;
8249     *)
8250       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8251 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8252    { (exit 1); exit 1; }; } ;;
8253   esac
8254 else
8255   enable_profiling=no
8256 fi;
8257
8258
8259
8260 for ac_func in monstartup _mcleanup
8261 do
8262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8263 echo "$as_me:$LINENO: checking for $ac_func" >&5
8264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8265 if eval "test \"\${$as_ac_var+set}\" = set"; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h.  */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h.  */
8274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8276 #define $ac_func innocuous_$ac_func
8277
8278 /* System header to define __stub macros and hopefully few prototypes,
8279     which can conflict with char $ac_func (); below.
8280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8281     <limits.h> exists even on freestanding compilers.  */
8282
8283 #ifdef __STDC__
8284 # include <limits.h>
8285 #else
8286 # include <assert.h>
8287 #endif
8288
8289 #undef $ac_func
8290
8291 /* Override any gcc2 internal prototype to avoid an error.  */
8292 #ifdef __cplusplus
8293 extern "C"
8294 {
8295 #endif
8296 /* We use char because int might match the return type of a gcc2
8297    builtin and then its argument prototype would still apply.  */
8298 char $ac_func ();
8299 /* The GNU C library defines this for functions which it implements
8300     to always fail with ENOSYS.  Some functions are actually named
8301     something starting with __ and the normal name is an alias.  */
8302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8303 choke me
8304 #else
8305 char (*f) () = $ac_func;
8306 #endif
8307 #ifdef __cplusplus
8308 }
8309 #endif
8310
8311 int
8312 main ()
8313 {
8314 return f != $ac_func;
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext conftest$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321   (eval $ac_link) 2>conftest.er1
8322   ac_status=$?
8323   grep -v '^ *+' conftest.er1 >conftest.err
8324   rm -f conftest.er1
8325   cat conftest.err >&5
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); } &&
8328          { ac_try='test -z "$ac_c_werror_flag"
8329                          || test ! -s conftest.err'
8330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331   (eval $ac_try) 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); }; } &&
8335          { ac_try='test -s conftest$ac_exeext'
8336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337   (eval $ac_try) 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; }; then
8341   eval "$as_ac_var=yes"
8342 else
8343   echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 eval "$as_ac_var=no"
8347 fi
8348 rm -f conftest.err conftest.$ac_objext \
8349       conftest$ac_exeext conftest.$ac_ext
8350 fi
8351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8353 if test `eval echo '${'$as_ac_var'}'` = yes; then
8354   cat >>confdefs.h <<_ACEOF
8355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8356 _ACEOF
8357
8358 fi
8359 done
8360
8361 echo "$as_me:$LINENO: checking for _etext" >&5
8362 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8363 if test "${ac_cv_var__etext+set}" = set; then
8364   echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366   cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h.  */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h.  */
8372 #include <stdlib.h>
8373 extern char _etext;
8374
8375 int
8376 main ()
8377 {
8378 free (&_etext);
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385   (eval $ac_link) 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } &&
8392          { ac_try='test -z "$ac_c_werror_flag"
8393                          || test ! -s conftest.err'
8394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395   (eval $ac_try) 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; } &&
8399          { ac_try='test -s conftest$ac_exeext'
8400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401   (eval $ac_try) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; }; then
8405   ac_cv_var__etext=yes
8406 else
8407   echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8409
8410 ac_cv_var__etext=no
8411 fi
8412 rm -f conftest.err conftest.$ac_objext \
8413       conftest$ac_exeext conftest.$ac_ext
8414 fi
8415 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8416 echo "${ECHO_T}$ac_cv_var__etext" >&6
8417 if test $ac_cv_var__etext = yes; then
8418
8419 cat >>confdefs.h <<\_ACEOF
8420 #define HAVE__ETEXT 1
8421 _ACEOF
8422
8423 fi
8424 echo "$as_me:$LINENO: checking for etext" >&5
8425 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8426 if test "${ac_cv_var_etext+set}" = set; then
8427   echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429   cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h.  */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h.  */
8435 #include <stdlib.h>
8436 extern char etext;
8437
8438 int
8439 main ()
8440 {
8441 free (&etext);
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448   (eval $ac_link) 2>conftest.er1
8449   ac_status=$?
8450   grep -v '^ *+' conftest.er1 >conftest.err
8451   rm -f conftest.er1
8452   cat conftest.err >&5
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); } &&
8455          { ac_try='test -z "$ac_c_werror_flag"
8456                          || test ! -s conftest.err'
8457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458   (eval $ac_try) 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); }; } &&
8462          { ac_try='test -s conftest$ac_exeext'
8463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464   (eval $ac_try) 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }; }; then
8468   ac_cv_var_etext=yes
8469 else
8470   echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473 ac_cv_var_etext=no
8474 fi
8475 rm -f conftest.err conftest.$ac_objext \
8476       conftest$ac_exeext conftest.$ac_ext
8477 fi
8478 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8479 echo "${ECHO_T}$ac_cv_var_etext" >&6
8480 if test $ac_cv_var_etext = yes; then
8481
8482 cat >>confdefs.h <<\_ACEOF
8483 #define HAVE_ETEXT 1
8484 _ACEOF
8485
8486 fi
8487 if test "$enable_profiling" = yes ; then
8488   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8489     { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8490 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8491    { (exit 1); exit 1; }; }
8492   fi
8493   PROFILE_CFLAGS=-pg
8494   OLD_CFLAGS="$CFLAGS"
8495   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8496
8497   echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8498 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8499 if test "${ac_cv_cc_supports_pg+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h.  */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h.  */
8508
8509 int
8510 main ()
8511 {
8512 int x;
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519   (eval $ac_compile) 2>conftest.er1
8520   ac_status=$?
8521   grep -v '^ *+' conftest.er1 >conftest.err
8522   rm -f conftest.er1
8523   cat conftest.err >&5
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); } &&
8526          { ac_try='test -z "$ac_c_werror_flag"
8527                          || test ! -s conftest.err'
8528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529   (eval $ac_try) 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); }; } &&
8533          { ac_try='test -s conftest.$ac_objext'
8534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535   (eval $ac_try) 2>&5
8536   ac_status=$?
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); }; }; then
8539   ac_cv_cc_supports_pg=yes
8540 else
8541   echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8543
8544 ac_cv_cc_supports_pg=no
8545 fi
8546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8547 fi
8548 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8549 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8550
8551   if test $ac_cv_cc_supports_pg = no; then
8552     { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8553 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8554    { (exit 1); exit 1; }; }
8555   fi
8556
8557   CFLAGS="$OLD_CFLAGS"
8558 fi
8559
8560
8561
8562 # Check whether --with-pkgversion or --without-pkgversion was given.
8563 if test "${with_pkgversion+set}" = set; then
8564   withval="$with_pkgversion"
8565   case "$withval" in
8566       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8567 echo "$as_me: error: package version not specified" >&2;}
8568    { (exit 1); exit 1; }; } ;;
8569       no)  PKGVERSION= ;;
8570       *)   PKGVERSION="($withval) " ;;
8571      esac
8572 else
8573   PKGVERSION="(GDB) "
8574
8575 fi;
8576
8577
8578
8579
8580 # Check whether --with-bugurl or --without-bugurl was given.
8581 if test "${with_bugurl+set}" = set; then
8582   withval="$with_bugurl"
8583   case "$withval" in
8584       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8585 echo "$as_me: error: bug URL not specified" >&2;}
8586    { (exit 1); exit 1; }; } ;;
8587       no)  BUGURL=
8588            ;;
8589       *)   BUGURL="$withval"
8590            ;;
8591      esac
8592 else
8593   BUGURL="http://www.gnu.org/software/gdb/bugs/"
8594
8595 fi;
8596   case ${BUGURL} in
8597   "")
8598     REPORT_BUGS_TO=
8599     REPORT_BUGS_TEXI=
8600     ;;
8601   *)
8602     REPORT_BUGS_TO="<$BUGURL>"
8603     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8604     ;;
8605   esac;
8606
8607
8608
8609
8610 cat >>confdefs.h <<_ACEOF
8611 #define PKGVERSION "$PKGVERSION"
8612 _ACEOF
8613
8614
8615 cat >>confdefs.h <<_ACEOF
8616 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8617 _ACEOF
8618
8619
8620 # --------------------- #
8621 # Checks for programs.  #
8622 # --------------------- #
8623
8624 for ac_prog in gawk mawk nawk awk
8625 do
8626   # Extract the first word of "$ac_prog", so it can be a program name with args.
8627 set dummy $ac_prog; ac_word=$2
8628 echo "$as_me:$LINENO: checking for $ac_word" >&5
8629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8630 if test "${ac_cv_prog_AWK+set}" = set; then
8631   echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633   if test -n "$AWK"; then
8634   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8635 else
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8638 do
8639   IFS=$as_save_IFS
8640   test -z "$as_dir" && as_dir=.
8641   for ac_exec_ext in '' $ac_executable_extensions; do
8642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8643     ac_cv_prog_AWK="$ac_prog"
8644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8645     break 2
8646   fi
8647 done
8648 done
8649
8650 fi
8651 fi
8652 AWK=$ac_cv_prog_AWK
8653 if test -n "$AWK"; then
8654   echo "$as_me:$LINENO: result: $AWK" >&5
8655 echo "${ECHO_T}$AWK" >&6
8656 else
8657   echo "$as_me:$LINENO: result: no" >&5
8658 echo "${ECHO_T}no" >&6
8659 fi
8660
8661   test -n "$AWK" && break
8662 done
8663
8664 # Find a good install program.  We prefer a C program (faster),
8665 # so one script is as good as another.  But avoid the broken or
8666 # incompatible versions:
8667 # SysV /etc/install, /usr/sbin/install
8668 # SunOS /usr/etc/install
8669 # IRIX /sbin/install
8670 # AIX /bin/install
8671 # AmigaOS /C/install, which installs bootblocks on floppy discs
8672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8675 # OS/2's system install, which has a completely different semantic
8676 # ./install, which can be erroneously created by make from ./install.sh.
8677 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8678 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8679 if test -z "$INSTALL"; then
8680 if test "${ac_cv_path_install+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686   IFS=$as_save_IFS
8687   test -z "$as_dir" && as_dir=.
8688   # Account for people who put trailing slashes in PATH elements.
8689 case $as_dir/ in
8690   ./ | .// | /cC/* | \
8691   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8692   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8693   /usr/ucb/* ) ;;
8694   *)
8695     # OSF1 and SCO ODT 3.0 have their own names for install.
8696     # Don't use installbsd from OSF since it installs stuff as root
8697     # by default.
8698     for ac_prog in ginstall scoinst install; do
8699       for ac_exec_ext in '' $ac_executable_extensions; do
8700         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8701           if test $ac_prog = install &&
8702             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8703             # AIX install.  It has an incompatible calling convention.
8704             :
8705           elif test $ac_prog = install &&
8706             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8707             # program-specific install script used by HP pwplus--don't use.
8708             :
8709           else
8710             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8711             break 3
8712           fi
8713         fi
8714       done
8715     done
8716     ;;
8717 esac
8718 done
8719
8720
8721 fi
8722   if test "${ac_cv_path_install+set}" = set; then
8723     INSTALL=$ac_cv_path_install
8724   else
8725     # As a last resort, use the slow shell script.  We don't cache a
8726     # path for INSTALL within a source directory, because that will
8727     # break other packages using the cache if that directory is
8728     # removed, or if the path is relative.
8729     INSTALL=$ac_install_sh
8730   fi
8731 fi
8732 echo "$as_me:$LINENO: result: $INSTALL" >&5
8733 echo "${ECHO_T}$INSTALL" >&6
8734
8735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8736 # It thinks the first close brace ends the variable substitution.
8737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8738
8739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8740
8741 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8742
8743 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8744 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8745 LN_S=$as_ln_s
8746 if test "$LN_S" = "ln -s"; then
8747   echo "$as_me:$LINENO: result: yes" >&5
8748 echo "${ECHO_T}yes" >&6
8749 else
8750   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8751 echo "${ECHO_T}no, using $LN_S" >&6
8752 fi
8753
8754 if test -n "$ac_tool_prefix"; then
8755   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8756 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8757 echo "$as_me:$LINENO: checking for $ac_word" >&5
8758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8759 if test "${ac_cv_prog_RANLIB+set}" = set; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   if test -n "$RANLIB"; then
8763   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8764 else
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in $PATH
8767 do
8768   IFS=$as_save_IFS
8769   test -z "$as_dir" && as_dir=.
8770   for ac_exec_ext in '' $ac_executable_extensions; do
8771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8772     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8774     break 2
8775   fi
8776 done
8777 done
8778
8779 fi
8780 fi
8781 RANLIB=$ac_cv_prog_RANLIB
8782 if test -n "$RANLIB"; then
8783   echo "$as_me:$LINENO: result: $RANLIB" >&5
8784 echo "${ECHO_T}$RANLIB" >&6
8785 else
8786   echo "$as_me:$LINENO: result: no" >&5
8787 echo "${ECHO_T}no" >&6
8788 fi
8789
8790 fi
8791 if test -z "$ac_cv_prog_RANLIB"; then
8792   ac_ct_RANLIB=$RANLIB
8793   # Extract the first word of "ranlib", so it can be a program name with args.
8794 set dummy ranlib; ac_word=$2
8795 echo "$as_me:$LINENO: checking for $ac_word" >&5
8796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8797 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8798   echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800   if test -n "$ac_ct_RANLIB"; then
8801   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8802 else
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8805 do
8806   IFS=$as_save_IFS
8807   test -z "$as_dir" && as_dir=.
8808   for ac_exec_ext in '' $ac_executable_extensions; do
8809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8810     ac_cv_prog_ac_ct_RANLIB="ranlib"
8811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8812     break 2
8813   fi
8814 done
8815 done
8816
8817   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8818 fi
8819 fi
8820 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8821 if test -n "$ac_ct_RANLIB"; then
8822   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8823 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8824 else
8825   echo "$as_me:$LINENO: result: no" >&5
8826 echo "${ECHO_T}no" >&6
8827 fi
8828
8829   RANLIB=$ac_ct_RANLIB
8830 else
8831   RANLIB="$ac_cv_prog_RANLIB"
8832 fi
8833
8834 for ac_prog in 'bison -y' byacc
8835 do
8836   # Extract the first word of "$ac_prog", so it can be a program name with args.
8837 set dummy $ac_prog; ac_word=$2
8838 echo "$as_me:$LINENO: checking for $ac_word" >&5
8839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8840 if test "${ac_cv_prog_YACC+set}" = set; then
8841   echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843   if test -n "$YACC"; then
8844   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8845 else
8846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847 for as_dir in $PATH
8848 do
8849   IFS=$as_save_IFS
8850   test -z "$as_dir" && as_dir=.
8851   for ac_exec_ext in '' $ac_executable_extensions; do
8852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8853     ac_cv_prog_YACC="$ac_prog"
8854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8855     break 2
8856   fi
8857 done
8858 done
8859
8860 fi
8861 fi
8862 YACC=$ac_cv_prog_YACC
8863 if test -n "$YACC"; then
8864   echo "$as_me:$LINENO: result: $YACC" >&5
8865 echo "${ECHO_T}$YACC" >&6
8866 else
8867   echo "$as_me:$LINENO: result: no" >&5
8868 echo "${ECHO_T}no" >&6
8869 fi
8870
8871   test -n "$YACC" && break
8872 done
8873 test -n "$YACC" || YACC="yacc"
8874
8875
8876 if test -n "$ac_tool_prefix"; then
8877   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8878 set dummy ${ac_tool_prefix}ar; ac_word=$2
8879 echo "$as_me:$LINENO: checking for $ac_word" >&5
8880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8881 if test "${ac_cv_prog_AR+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884   if test -n "$AR"; then
8885   ac_cv_prog_AR="$AR" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8889 do
8890   IFS=$as_save_IFS
8891   test -z "$as_dir" && as_dir=.
8892   for ac_exec_ext in '' $ac_executable_extensions; do
8893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8894     ac_cv_prog_AR="${ac_tool_prefix}ar"
8895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8896     break 2
8897   fi
8898 done
8899 done
8900
8901 fi
8902 fi
8903 AR=$ac_cv_prog_AR
8904 if test -n "$AR"; then
8905   echo "$as_me:$LINENO: result: $AR" >&5
8906 echo "${ECHO_T}$AR" >&6
8907 else
8908   echo "$as_me:$LINENO: result: no" >&5
8909 echo "${ECHO_T}no" >&6
8910 fi
8911
8912 fi
8913 if test -z "$ac_cv_prog_AR"; then
8914   ac_ct_AR=$AR
8915   # Extract the first word of "ar", so it can be a program name with args.
8916 set dummy ar; ac_word=$2
8917 echo "$as_me:$LINENO: checking for $ac_word" >&5
8918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8919 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8920   echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922   if test -n "$ac_ct_AR"; then
8923   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8924 else
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 for as_dir in $PATH
8927 do
8928   IFS=$as_save_IFS
8929   test -z "$as_dir" && as_dir=.
8930   for ac_exec_ext in '' $ac_executable_extensions; do
8931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8932     ac_cv_prog_ac_ct_AR="ar"
8933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8934     break 2
8935   fi
8936 done
8937 done
8938
8939 fi
8940 fi
8941 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8942 if test -n "$ac_ct_AR"; then
8943   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8944 echo "${ECHO_T}$ac_ct_AR" >&6
8945 else
8946   echo "$as_me:$LINENO: result: no" >&5
8947 echo "${ECHO_T}no" >&6
8948 fi
8949
8950   AR=$ac_ct_AR
8951 else
8952   AR="$ac_cv_prog_AR"
8953 fi
8954
8955 if test -n "$ac_tool_prefix"; then
8956   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8957 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8958 echo "$as_me:$LINENO: checking for $ac_word" >&5
8959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8960 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8961   echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963   if test -n "$DLLTOOL"; then
8964   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8965 else
8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 for as_dir in $PATH
8968 do
8969   IFS=$as_save_IFS
8970   test -z "$as_dir" && as_dir=.
8971   for ac_exec_ext in '' $ac_executable_extensions; do
8972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8973     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8975     break 2
8976   fi
8977 done
8978 done
8979
8980 fi
8981 fi
8982 DLLTOOL=$ac_cv_prog_DLLTOOL
8983 if test -n "$DLLTOOL"; then
8984   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8985 echo "${ECHO_T}$DLLTOOL" >&6
8986 else
8987   echo "$as_me:$LINENO: result: no" >&5
8988 echo "${ECHO_T}no" >&6
8989 fi
8990
8991 fi
8992 if test -z "$ac_cv_prog_DLLTOOL"; then
8993   ac_ct_DLLTOOL=$DLLTOOL
8994   # Extract the first word of "dlltool", so it can be a program name with args.
8995 set dummy dlltool; ac_word=$2
8996 echo "$as_me:$LINENO: checking for $ac_word" >&5
8997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8998 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8999   echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001   if test -n "$ac_ct_DLLTOOL"; then
9002   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9006 do
9007   IFS=$as_save_IFS
9008   test -z "$as_dir" && as_dir=.
9009   for ac_exec_ext in '' $ac_executable_extensions; do
9010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9013     break 2
9014   fi
9015 done
9016 done
9017
9018 fi
9019 fi
9020 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9021 if test -n "$ac_ct_DLLTOOL"; then
9022   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9023 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9024 else
9025   echo "$as_me:$LINENO: result: no" >&5
9026 echo "${ECHO_T}no" >&6
9027 fi
9028
9029   DLLTOOL=$ac_ct_DLLTOOL
9030 else
9031   DLLTOOL="$ac_cv_prog_DLLTOOL"
9032 fi
9033
9034 if test -n "$ac_tool_prefix"; then
9035   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9036 set dummy ${ac_tool_prefix}windres; ac_word=$2
9037 echo "$as_me:$LINENO: checking for $ac_word" >&5
9038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9039 if test "${ac_cv_prog_WINDRES+set}" = set; then
9040   echo $ECHO_N "(cached) $ECHO_C" >&6
9041 else
9042   if test -n "$WINDRES"; then
9043   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9044 else
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9047 do
9048   IFS=$as_save_IFS
9049   test -z "$as_dir" && as_dir=.
9050   for ac_exec_ext in '' $ac_executable_extensions; do
9051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9052     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9054     break 2
9055   fi
9056 done
9057 done
9058
9059 fi
9060 fi
9061 WINDRES=$ac_cv_prog_WINDRES
9062 if test -n "$WINDRES"; then
9063   echo "$as_me:$LINENO: result: $WINDRES" >&5
9064 echo "${ECHO_T}$WINDRES" >&6
9065 else
9066   echo "$as_me:$LINENO: result: no" >&5
9067 echo "${ECHO_T}no" >&6
9068 fi
9069
9070 fi
9071 if test -z "$ac_cv_prog_WINDRES"; then
9072   ac_ct_WINDRES=$WINDRES
9073   # Extract the first word of "windres", so it can be a program name with args.
9074 set dummy windres; ac_word=$2
9075 echo "$as_me:$LINENO: checking for $ac_word" >&5
9076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9077 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9078   echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080   if test -n "$ac_ct_WINDRES"; then
9081   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9082 else
9083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084 for as_dir in $PATH
9085 do
9086   IFS=$as_save_IFS
9087   test -z "$as_dir" && as_dir=.
9088   for ac_exec_ext in '' $ac_executable_extensions; do
9089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9090     ac_cv_prog_ac_ct_WINDRES="windres"
9091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9092     break 2
9093   fi
9094 done
9095 done
9096
9097 fi
9098 fi
9099 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9100 if test -n "$ac_ct_WINDRES"; then
9101   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9102 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9103 else
9104   echo "$as_me:$LINENO: result: no" >&5
9105 echo "${ECHO_T}no" >&6
9106 fi
9107
9108   WINDRES=$ac_ct_WINDRES
9109 else
9110   WINDRES="$ac_cv_prog_WINDRES"
9111 fi
9112
9113
9114 # Needed for GNU/Hurd.
9115 if test -n "$ac_tool_prefix"; then
9116   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9117 set dummy ${ac_tool_prefix}mig; ac_word=$2
9118 echo "$as_me:$LINENO: checking for $ac_word" >&5
9119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9120 if test "${ac_cv_prog_MIG+set}" = set; then
9121   echo $ECHO_N "(cached) $ECHO_C" >&6
9122 else
9123   if test -n "$MIG"; then
9124   ac_cv_prog_MIG="$MIG" # Let the user override the test.
9125 else
9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 for as_dir in $PATH
9128 do
9129   IFS=$as_save_IFS
9130   test -z "$as_dir" && as_dir=.
9131   for ac_exec_ext in '' $ac_executable_extensions; do
9132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9133     ac_cv_prog_MIG="${ac_tool_prefix}mig"
9134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9135     break 2
9136   fi
9137 done
9138 done
9139
9140 fi
9141 fi
9142 MIG=$ac_cv_prog_MIG
9143 if test -n "$MIG"; then
9144   echo "$as_me:$LINENO: result: $MIG" >&5
9145 echo "${ECHO_T}$MIG" >&6
9146 else
9147   echo "$as_me:$LINENO: result: no" >&5
9148 echo "${ECHO_T}no" >&6
9149 fi
9150
9151 fi
9152 if test -z "$ac_cv_prog_MIG"; then
9153   ac_ct_MIG=$MIG
9154   # Extract the first word of "mig", so it can be a program name with args.
9155 set dummy mig; ac_word=$2
9156 echo "$as_me:$LINENO: checking for $ac_word" >&5
9157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9158 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9159   echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161   if test -n "$ac_ct_MIG"; then
9162   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9163 else
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9166 do
9167   IFS=$as_save_IFS
9168   test -z "$as_dir" && as_dir=.
9169   for ac_exec_ext in '' $ac_executable_extensions; do
9170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9171     ac_cv_prog_ac_ct_MIG="mig"
9172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9173     break 2
9174   fi
9175 done
9176 done
9177
9178 fi
9179 fi
9180 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9181 if test -n "$ac_ct_MIG"; then
9182   echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9183 echo "${ECHO_T}$ac_ct_MIG" >&6
9184 else
9185   echo "$as_me:$LINENO: result: no" >&5
9186 echo "${ECHO_T}no" >&6
9187 fi
9188
9189   MIG=$ac_ct_MIG
9190 else
9191   MIG="$ac_cv_prog_MIG"
9192 fi
9193
9194
9195 # ---------------------- #
9196 # Checks for libraries.  #
9197 # ---------------------- #
9198
9199 # We might need to link with -lm; most simulators need it.
9200
9201 echo "$as_me:$LINENO: checking for main in -lm" >&5
9202 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9203 if test "${ac_cv_lib_m_main+set}" = set; then
9204   echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206   ac_check_lib_save_LIBS=$LIBS
9207 LIBS="-lm  $LIBS"
9208 cat >conftest.$ac_ext <<_ACEOF
9209 /* confdefs.h.  */
9210 _ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h.  */
9214
9215
9216 int
9217 main ()
9218 {
9219 main ();
9220   ;
9221   return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226   (eval $ac_link) 2>conftest.er1
9227   ac_status=$?
9228   grep -v '^ *+' conftest.er1 >conftest.err
9229   rm -f conftest.er1
9230   cat conftest.err >&5
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); } &&
9233          { ac_try='test -z "$ac_c_werror_flag"
9234                          || test ! -s conftest.err'
9235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236   (eval $ac_try) 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); }; } &&
9240          { ac_try='test -s conftest$ac_exeext'
9241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242   (eval $ac_try) 2>&5
9243   ac_status=$?
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); }; }; then
9246   ac_cv_lib_m_main=yes
9247 else
9248   echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251 ac_cv_lib_m_main=no
9252 fi
9253 rm -f conftest.err conftest.$ac_objext \
9254       conftest$ac_exeext conftest.$ac_ext
9255 LIBS=$ac_check_lib_save_LIBS
9256 fi
9257 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9258 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9259 if test $ac_cv_lib_m_main = yes; then
9260   cat >>confdefs.h <<_ACEOF
9261 #define HAVE_LIBM 1
9262 _ACEOF
9263
9264   LIBS="-lm $LIBS"
9265
9266 fi
9267
9268
9269 # We need to link with -lw to get `wctype' on Solaris before Solaris
9270 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
9271 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9272 # is known to have this problem).  Therefore we avoid libw if we can.
9273 echo "$as_me:$LINENO: checking for wctype" >&5
9274 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9275 if test "${ac_cv_func_wctype+set}" = set; then
9276   echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278   cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9286 #define wctype innocuous_wctype
9287
9288 /* System header to define __stub macros and hopefully few prototypes,
9289     which can conflict with char wctype (); below.
9290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9291     <limits.h> exists even on freestanding compilers.  */
9292
9293 #ifdef __STDC__
9294 # include <limits.h>
9295 #else
9296 # include <assert.h>
9297 #endif
9298
9299 #undef wctype
9300
9301 /* Override any gcc2 internal prototype to avoid an error.  */
9302 #ifdef __cplusplus
9303 extern "C"
9304 {
9305 #endif
9306 /* We use char because int might match the return type of a gcc2
9307    builtin and then its argument prototype would still apply.  */
9308 char wctype ();
9309 /* The GNU C library defines this for functions which it implements
9310     to always fail with ENOSYS.  Some functions are actually named
9311     something starting with __ and the normal name is an alias.  */
9312 #if defined (__stub_wctype) || defined (__stub___wctype)
9313 choke me
9314 #else
9315 char (*f) () = wctype;
9316 #endif
9317 #ifdef __cplusplus
9318 }
9319 #endif
9320
9321 int
9322 main ()
9323 {
9324 return f != wctype;
9325   ;
9326   return 0;
9327 }
9328 _ACEOF
9329 rm -f conftest.$ac_objext conftest$ac_exeext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331   (eval $ac_link) 2>conftest.er1
9332   ac_status=$?
9333   grep -v '^ *+' conftest.er1 >conftest.err
9334   rm -f conftest.er1
9335   cat conftest.err >&5
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   (exit $ac_status); } &&
9338          { ac_try='test -z "$ac_c_werror_flag"
9339                          || test ! -s conftest.err'
9340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341   (eval $ac_try) 2>&5
9342   ac_status=$?
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); }; } &&
9345          { ac_try='test -s conftest$ac_exeext'
9346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347   (eval $ac_try) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); }; }; then
9351   ac_cv_func_wctype=yes
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356 ac_cv_func_wctype=no
9357 fi
9358 rm -f conftest.err conftest.$ac_objext \
9359       conftest$ac_exeext conftest.$ac_ext
9360 fi
9361 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9362 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9363 if test $ac_cv_func_wctype = yes; then
9364   :
9365 else
9366
9367 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9368 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9369 if test "${ac_cv_lib_w_wctype+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   ac_check_lib_save_LIBS=$LIBS
9373 LIBS="-lw  $LIBS"
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h.  */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h.  */
9380
9381 /* Override any gcc2 internal prototype to avoid an error.  */
9382 #ifdef __cplusplus
9383 extern "C"
9384 #endif
9385 /* We use char because int might match the return type of a gcc2
9386    builtin and then its argument prototype would still apply.  */
9387 char wctype ();
9388 int
9389 main ()
9390 {
9391 wctype ();
9392   ;
9393   return 0;
9394 }
9395 _ACEOF
9396 rm -f conftest.$ac_objext conftest$ac_exeext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9398   (eval $ac_link) 2>conftest.er1
9399   ac_status=$?
9400   grep -v '^ *+' conftest.er1 >conftest.err
9401   rm -f conftest.er1
9402   cat conftest.err >&5
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); } &&
9405          { ac_try='test -z "$ac_c_werror_flag"
9406                          || test ! -s conftest.err'
9407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408   (eval $ac_try) 2>&5
9409   ac_status=$?
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); }; } &&
9412          { ac_try='test -s conftest$ac_exeext'
9413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414   (eval $ac_try) 2>&5
9415   ac_status=$?
9416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); }; }; then
9418   ac_cv_lib_w_wctype=yes
9419 else
9420   echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9422
9423 ac_cv_lib_w_wctype=no
9424 fi
9425 rm -f conftest.err conftest.$ac_objext \
9426       conftest$ac_exeext conftest.$ac_ext
9427 LIBS=$ac_check_lib_save_LIBS
9428 fi
9429 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9430 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9431 if test $ac_cv_lib_w_wctype = yes; then
9432   cat >>confdefs.h <<_ACEOF
9433 #define HAVE_LIBW 1
9434 _ACEOF
9435
9436   LIBS="-lw $LIBS"
9437
9438 fi
9439
9440 fi
9441
9442
9443 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9444 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9445 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9446 if test "${ac_cv_search_gethostbyname+set}" = set; then
9447   echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449   ac_func_search_save_LIBS=$LIBS
9450 ac_cv_search_gethostbyname=no
9451 cat >conftest.$ac_ext <<_ACEOF
9452 /* confdefs.h.  */
9453 _ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h.  */
9457
9458 /* Override any gcc2 internal prototype to avoid an error.  */
9459 #ifdef __cplusplus
9460 extern "C"
9461 #endif
9462 /* We use char because int might match the return type of a gcc2
9463    builtin and then its argument prototype would still apply.  */
9464 char gethostbyname ();
9465 int
9466 main ()
9467 {
9468 gethostbyname ();
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 rm -f conftest.$ac_objext conftest$ac_exeext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475   (eval $ac_link) 2>conftest.er1
9476   ac_status=$?
9477   grep -v '^ *+' conftest.er1 >conftest.err
9478   rm -f conftest.er1
9479   cat conftest.err >&5
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); } &&
9482          { ac_try='test -z "$ac_c_werror_flag"
9483                          || test ! -s conftest.err'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; } &&
9489          { ac_try='test -s conftest$ac_exeext'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; }; then
9495   ac_cv_search_gethostbyname="none required"
9496 else
9497   echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9499
9500 fi
9501 rm -f conftest.err conftest.$ac_objext \
9502       conftest$ac_exeext conftest.$ac_ext
9503 if test "$ac_cv_search_gethostbyname" = no; then
9504   for ac_lib in nsl; do
9505     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9506     cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h.  */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h.  */
9512
9513 /* Override any gcc2 internal prototype to avoid an error.  */
9514 #ifdef __cplusplus
9515 extern "C"
9516 #endif
9517 /* We use char because int might match the return type of a gcc2
9518    builtin and then its argument prototype would still apply.  */
9519 char gethostbyname ();
9520 int
9521 main ()
9522 {
9523 gethostbyname ();
9524   ;
9525   return 0;
9526 }
9527 _ACEOF
9528 rm -f conftest.$ac_objext conftest$ac_exeext
9529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9530   (eval $ac_link) 2>conftest.er1
9531   ac_status=$?
9532   grep -v '^ *+' conftest.er1 >conftest.err
9533   rm -f conftest.er1
9534   cat conftest.err >&5
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } &&
9537          { ac_try='test -z "$ac_c_werror_flag"
9538                          || test ! -s conftest.err'
9539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540   (eval $ac_try) 2>&5
9541   ac_status=$?
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); }; } &&
9544          { ac_try='test -s conftest$ac_exeext'
9545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546   (eval $ac_try) 2>&5
9547   ac_status=$?
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); }; }; then
9550   ac_cv_search_gethostbyname="-l$ac_lib"
9551 break
9552 else
9553   echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9555
9556 fi
9557 rm -f conftest.err conftest.$ac_objext \
9558       conftest$ac_exeext conftest.$ac_ext
9559   done
9560 fi
9561 LIBS=$ac_func_search_save_LIBS
9562 fi
9563 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9564 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9565 if test "$ac_cv_search_gethostbyname" != no; then
9566   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9567
9568 fi
9569
9570
9571 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9572 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9573 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9574 if test "${ac_cv_search_socketpair+set}" = set; then
9575   echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577   ac_func_search_save_LIBS=$LIBS
9578 ac_cv_search_socketpair=no
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h.  */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h.  */
9585
9586 /* Override any gcc2 internal prototype to avoid an error.  */
9587 #ifdef __cplusplus
9588 extern "C"
9589 #endif
9590 /* We use char because int might match the return type of a gcc2
9591    builtin and then its argument prototype would still apply.  */
9592 char socketpair ();
9593 int
9594 main ()
9595 {
9596 socketpair ();
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603   (eval $ac_link) 2>conftest.er1
9604   ac_status=$?
9605   grep -v '^ *+' conftest.er1 >conftest.err
9606   rm -f conftest.er1
9607   cat conftest.err >&5
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); } &&
9610          { ac_try='test -z "$ac_c_werror_flag"
9611                          || test ! -s conftest.err'
9612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613   (eval $ac_try) 2>&5
9614   ac_status=$?
9615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616   (exit $ac_status); }; } &&
9617          { ac_try='test -s conftest$ac_exeext'
9618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619   (eval $ac_try) 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); }; }; then
9623   ac_cv_search_socketpair="none required"
9624 else
9625   echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9627
9628 fi
9629 rm -f conftest.err conftest.$ac_objext \
9630       conftest$ac_exeext conftest.$ac_ext
9631 if test "$ac_cv_search_socketpair" = no; then
9632   for ac_lib in socket; do
9633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9634     cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h.  */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h.  */
9640
9641 /* Override any gcc2 internal prototype to avoid an error.  */
9642 #ifdef __cplusplus
9643 extern "C"
9644 #endif
9645 /* We use char because int might match the return type of a gcc2
9646    builtin and then its argument prototype would still apply.  */
9647 char socketpair ();
9648 int
9649 main ()
9650 {
9651 socketpair ();
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658   (eval $ac_link) 2>conftest.er1
9659   ac_status=$?
9660   grep -v '^ *+' conftest.er1 >conftest.err
9661   rm -f conftest.er1
9662   cat conftest.err >&5
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); } &&
9665          { ac_try='test -z "$ac_c_werror_flag"
9666                          || test ! -s conftest.err'
9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668   (eval $ac_try) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; } &&
9672          { ac_try='test -s conftest$ac_exeext'
9673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674   (eval $ac_try) 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   ac_cv_search_socketpair="-l$ac_lib"
9679 break
9680 else
9681   echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684 fi
9685 rm -f conftest.err conftest.$ac_objext \
9686       conftest$ac_exeext conftest.$ac_ext
9687   done
9688 fi
9689 LIBS=$ac_func_search_save_LIBS
9690 fi
9691 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9692 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9693 if test "$ac_cv_search_socketpair" != no; then
9694   test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9695
9696 fi
9697
9698
9699 # Link in zlib if we can.  This allows us to read compressed debug sections.
9700 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9701 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9702 if test "${ac_cv_search_zlibVersion+set}" = set; then
9703   echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705   ac_func_search_save_LIBS=$LIBS
9706 ac_cv_search_zlibVersion=no
9707 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h.  */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h.  */
9713
9714 /* Override any gcc2 internal prototype to avoid an error.  */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 /* We use char because int might match the return type of a gcc2
9719    builtin and then its argument prototype would still apply.  */
9720 char zlibVersion ();
9721 int
9722 main ()
9723 {
9724 zlibVersion ();
9725   ;
9726   return 0;
9727 }
9728 _ACEOF
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731   (eval $ac_link) 2>conftest.er1
9732   ac_status=$?
9733   grep -v '^ *+' conftest.er1 >conftest.err
9734   rm -f conftest.er1
9735   cat conftest.err >&5
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); } &&
9738          { ac_try='test -z "$ac_c_werror_flag"
9739                          || test ! -s conftest.err'
9740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741   (eval $ac_try) 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; } &&
9745          { ac_try='test -s conftest$ac_exeext'
9746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747   (eval $ac_try) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; }; then
9751   ac_cv_search_zlibVersion="none required"
9752 else
9753   echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756 fi
9757 rm -f conftest.err conftest.$ac_objext \
9758       conftest$ac_exeext conftest.$ac_ext
9759 if test "$ac_cv_search_zlibVersion" = no; then
9760   for ac_lib in z; do
9761     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9762     cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h.  */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h.  */
9768
9769 /* Override any gcc2 internal prototype to avoid an error.  */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 /* We use char because int might match the return type of a gcc2
9774    builtin and then its argument prototype would still apply.  */
9775 char zlibVersion ();
9776 int
9777 main ()
9778 {
9779 zlibVersion ();
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786   (eval $ac_link) 2>conftest.er1
9787   ac_status=$?
9788   grep -v '^ *+' conftest.er1 >conftest.err
9789   rm -f conftest.er1
9790   cat conftest.err >&5
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } &&
9793          { ac_try='test -z "$ac_c_werror_flag"
9794                          || test ! -s conftest.err'
9795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796   (eval $ac_try) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }; } &&
9800          { ac_try='test -s conftest$ac_exeext'
9801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802   (eval $ac_try) 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; }; then
9806   ac_cv_search_zlibVersion="-l$ac_lib"
9807 break
9808 else
9809   echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812 fi
9813 rm -f conftest.err conftest.$ac_objext \
9814       conftest$ac_exeext conftest.$ac_ext
9815   done
9816 fi
9817 LIBS=$ac_func_search_save_LIBS
9818 fi
9819 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9820 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9821 if test "$ac_cv_search_zlibVersion" != no; then
9822   test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9823
9824 for ac_header in zlib.h
9825 do
9826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9828   echo "$as_me:$LINENO: checking for $ac_header" >&5
9829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831   echo $ECHO_N "(cached) $ECHO_C" >&6
9832 fi
9833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9835 else
9836   # Is the header compilable?
9837 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h.  */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h.  */
9845 $ac_includes_default
9846 #include <$ac_header>
9847 _ACEOF
9848 rm -f conftest.$ac_objext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9850   (eval $ac_compile) 2>conftest.er1
9851   ac_status=$?
9852   grep -v '^ *+' conftest.er1 >conftest.err
9853   rm -f conftest.er1
9854   cat conftest.err >&5
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } &&
9857          { ac_try='test -z "$ac_c_werror_flag"
9858                          || test ! -s conftest.err'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; } &&
9864          { ac_try='test -s conftest.$ac_objext'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   ac_header_compiler=yes
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875 ac_header_compiler=no
9876 fi
9877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9879 echo "${ECHO_T}$ac_header_compiler" >&6
9880
9881 # Is the header present?
9882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h.  */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h.  */
9890 #include <$ac_header>
9891 _ACEOF
9892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9893   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } >/dev/null; then
9900   if test -s conftest.err; then
9901     ac_cpp_err=$ac_c_preproc_warn_flag
9902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9903   else
9904     ac_cpp_err=
9905   fi
9906 else
9907   ac_cpp_err=yes
9908 fi
9909 if test -z "$ac_cpp_err"; then
9910   ac_header_preproc=yes
9911 else
9912   echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915   ac_header_preproc=no
9916 fi
9917 rm -f conftest.err conftest.$ac_ext
9918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9919 echo "${ECHO_T}$ac_header_preproc" >&6
9920
9921 # So?  What about this header?
9922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9923   yes:no: )
9924     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9928     ac_header_preproc=yes
9929     ;;
9930   no:yes:* )
9931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9933     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9934 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9935     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9937     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9938 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9941     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9943     (
9944       cat <<\_ASBOX
9945 ## ------------------------------------------ ##
9946 ## Report this to the AC_PACKAGE_NAME lists.  ##
9947 ## ------------------------------------------ ##
9948 _ASBOX
9949     ) |
9950       sed "s/^/$as_me: WARNING:     /" >&2
9951     ;;
9952 esac
9953 echo "$as_me:$LINENO: checking for $ac_header" >&5
9954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9956   echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9958   eval "$as_ac_Header=\$ac_header_preproc"
9959 fi
9960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9962
9963 fi
9964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9965   cat >>confdefs.h <<_ACEOF
9966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9967 _ACEOF
9968
9969 fi
9970
9971 done
9972
9973 fi
9974
9975
9976 # For the TUI, we need enhanced curses functionality.
9977 #
9978 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9979 # curses library because the latter might not provide all the
9980 # functionality we need.  However, this leads to problems on systems
9981 # where the linker searches /usr/local/lib, but the compiler doesn't
9982 # search /usr/local/include, if ncurses is installed in /usr/local.  A
9983 # default installation of ncurses on alpha*-dec-osf* will lead to such
9984 # a situation.
9985 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9986 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
9987 if test "${ac_cv_search_waddstr+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990   ac_func_search_save_LIBS=$LIBS
9991 ac_cv_search_waddstr=no
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998
9999 /* Override any gcc2 internal prototype to avoid an error.  */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 /* We use char because int might match the return type of a gcc2
10004    builtin and then its argument prototype would still apply.  */
10005 char waddstr ();
10006 int
10007 main ()
10008 {
10009 waddstr ();
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016   (eval $ac_link) 2>conftest.er1
10017   ac_status=$?
10018   grep -v '^ *+' conftest.er1 >conftest.err
10019   rm -f conftest.er1
10020   cat conftest.err >&5
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); } &&
10023          { ac_try='test -z "$ac_c_werror_flag"
10024                          || test ! -s conftest.err'
10025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026   (eval $ac_try) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; } &&
10030          { ac_try='test -s conftest$ac_exeext'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   ac_cv_search_waddstr="none required"
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 fi
10042 rm -f conftest.err conftest.$ac_objext \
10043       conftest$ac_exeext conftest.$ac_ext
10044 if test "$ac_cv_search_waddstr" = no; then
10045   for ac_lib in ncurses cursesX curses; do
10046     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10047     cat >conftest.$ac_ext <<_ACEOF
10048 /* confdefs.h.  */
10049 _ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h.  */
10053
10054 /* Override any gcc2 internal prototype to avoid an error.  */
10055 #ifdef __cplusplus
10056 extern "C"
10057 #endif
10058 /* We use char because int might match the return type of a gcc2
10059    builtin and then its argument prototype would still apply.  */
10060 char waddstr ();
10061 int
10062 main ()
10063 {
10064 waddstr ();
10065   ;
10066   return 0;
10067 }
10068 _ACEOF
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071   (eval $ac_link) 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } &&
10078          { ac_try='test -z "$ac_c_werror_flag"
10079                          || test ! -s conftest.err'
10080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081   (eval $ac_try) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; } &&
10085          { ac_try='test -s conftest$ac_exeext'
10086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087   (eval $ac_try) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; }; then
10091   ac_cv_search_waddstr="-l$ac_lib"
10092 break
10093 else
10094   echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10096
10097 fi
10098 rm -f conftest.err conftest.$ac_objext \
10099       conftest$ac_exeext conftest.$ac_ext
10100   done
10101 fi
10102 LIBS=$ac_func_search_save_LIBS
10103 fi
10104 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10105 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10106 if test "$ac_cv_search_waddstr" != no; then
10107   test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10108
10109 fi
10110
10111
10112 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10113 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10114 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10115 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10116   echo $ECHO_N "(cached) $ECHO_C" >&6
10117 else
10118   ac_func_search_save_LIBS=$LIBS
10119 ac_cv_search_dlgetmodinfo=no
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h.  */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h.  */
10126
10127 /* Override any gcc2 internal prototype to avoid an error.  */
10128 #ifdef __cplusplus
10129 extern "C"
10130 #endif
10131 /* We use char because int might match the return type of a gcc2
10132    builtin and then its argument prototype would still apply.  */
10133 char dlgetmodinfo ();
10134 int
10135 main ()
10136 {
10137 dlgetmodinfo ();
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144   (eval $ac_link) 2>conftest.er1
10145   ac_status=$?
10146   grep -v '^ *+' conftest.er1 >conftest.err
10147   rm -f conftest.er1
10148   cat conftest.err >&5
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } &&
10151          { ac_try='test -z "$ac_c_werror_flag"
10152                          || test ! -s conftest.err'
10153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154   (eval $ac_try) 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; } &&
10158          { ac_try='test -s conftest$ac_exeext'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; }; then
10164   ac_cv_search_dlgetmodinfo="none required"
10165 else
10166   echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169 fi
10170 rm -f conftest.err conftest.$ac_objext \
10171       conftest$ac_exeext conftest.$ac_ext
10172 if test "$ac_cv_search_dlgetmodinfo" = no; then
10173   for ac_lib in dl xpdl; do
10174     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10175     cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181
10182 /* Override any gcc2 internal prototype to avoid an error.  */
10183 #ifdef __cplusplus
10184 extern "C"
10185 #endif
10186 /* We use char because int might match the return type of a gcc2
10187    builtin and then its argument prototype would still apply.  */
10188 char dlgetmodinfo ();
10189 int
10190 main ()
10191 {
10192 dlgetmodinfo ();
10193   ;
10194   return 0;
10195 }
10196 _ACEOF
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10199   (eval $ac_link) 2>conftest.er1
10200   ac_status=$?
10201   grep -v '^ *+' conftest.er1 >conftest.err
10202   rm -f conftest.er1
10203   cat conftest.err >&5
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); } &&
10206          { ac_try='test -z "$ac_c_werror_flag"
10207                          || test ! -s conftest.err'
10208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209   (eval $ac_try) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; } &&
10213          { ac_try='test -s conftest$ac_exeext'
10214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215   (eval $ac_try) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; }; then
10219   ac_cv_search_dlgetmodinfo="-l$ac_lib"
10220 break
10221 else
10222   echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10224
10225 fi
10226 rm -f conftest.err conftest.$ac_objext \
10227       conftest$ac_exeext conftest.$ac_ext
10228   done
10229 fi
10230 LIBS=$ac_func_search_save_LIBS
10231 fi
10232 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10233 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10234 if test "$ac_cv_search_dlgetmodinfo" != no; then
10235   test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10236
10237 fi
10238
10239
10240 # Since GDB uses Readline, we need termcap functionality.  In many
10241 # cases this will be provided by the curses library, but some systems
10242 # have a seperate termcap library, or no curses library at all.
10243
10244 case $host_os in
10245   cygwin*)
10246     if test -d $srcdir/libtermcap; then
10247       LIBS="../libtermcap/libtermcap.a $LIBS"
10248       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10249     fi ;;
10250   go32* | *djgpp*)
10251     ac_cv_search_tgetent="none required"
10252     ;;
10253   *mingw32*)
10254     ac_cv_search_tgetent="none required"
10255     CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10256     ;;
10257 esac
10258
10259 # These are the libraries checked by Readline.
10260 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10261 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10262 if test "${ac_cv_search_tgetent+set}" = set; then
10263   echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265   ac_func_search_save_LIBS=$LIBS
10266 ac_cv_search_tgetent=no
10267 cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h.  */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h.  */
10273
10274 /* Override any gcc2 internal prototype to avoid an error.  */
10275 #ifdef __cplusplus
10276 extern "C"
10277 #endif
10278 /* We use char because int might match the return type of a gcc2
10279    builtin and then its argument prototype would still apply.  */
10280 char tgetent ();
10281 int
10282 main ()
10283 {
10284 tgetent ();
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10291   (eval $ac_link) 2>conftest.er1
10292   ac_status=$?
10293   grep -v '^ *+' conftest.er1 >conftest.err
10294   rm -f conftest.er1
10295   cat conftest.err >&5
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } &&
10298          { ac_try='test -z "$ac_c_werror_flag"
10299                          || test ! -s conftest.err'
10300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301   (eval $ac_try) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; } &&
10305          { ac_try='test -s conftest$ac_exeext'
10306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307   (eval $ac_try) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; }; then
10311   ac_cv_search_tgetent="none required"
10312 else
10313   echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10315
10316 fi
10317 rm -f conftest.err conftest.$ac_objext \
10318       conftest$ac_exeext conftest.$ac_ext
10319 if test "$ac_cv_search_tgetent" = no; then
10320   for ac_lib in termcap tinfo curses ncurses; do
10321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10322     cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h.  */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h.  */
10328
10329 /* Override any gcc2 internal prototype to avoid an error.  */
10330 #ifdef __cplusplus
10331 extern "C"
10332 #endif
10333 /* We use char because int might match the return type of a gcc2
10334    builtin and then its argument prototype would still apply.  */
10335 char tgetent ();
10336 int
10337 main ()
10338 {
10339 tgetent ();
10340   ;
10341   return 0;
10342 }
10343 _ACEOF
10344 rm -f conftest.$ac_objext conftest$ac_exeext
10345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346   (eval $ac_link) 2>conftest.er1
10347   ac_status=$?
10348   grep -v '^ *+' conftest.er1 >conftest.err
10349   rm -f conftest.er1
10350   cat conftest.err >&5
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); } &&
10353          { ac_try='test -z "$ac_c_werror_flag"
10354                          || test ! -s conftest.err'
10355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356   (eval $ac_try) 2>&5
10357   ac_status=$?
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); }; } &&
10360          { ac_try='test -s conftest$ac_exeext'
10361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362   (eval $ac_try) 2>&5
10363   ac_status=$?
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); }; }; then
10366   ac_cv_search_tgetent="-l$ac_lib"
10367 break
10368 else
10369   echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10371
10372 fi
10373 rm -f conftest.err conftest.$ac_objext \
10374       conftest$ac_exeext conftest.$ac_ext
10375   done
10376 fi
10377 LIBS=$ac_func_search_save_LIBS
10378 fi
10379 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10380 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10381 if test "$ac_cv_search_tgetent" != no; then
10382   test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10383
10384 fi
10385
10386
10387 if test "$ac_cv_search_tgetent" = no; then
10388   { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10389 echo "$as_me: error: no termcap library found" >&2;}
10390    { (exit 1); exit 1; }; }
10391 fi
10392
10393
10394 # Check whether --with-system-readline or --without-system-readline was given.
10395 if test "${with_system_readline+set}" = set; then
10396   withval="$with_system_readline"
10397
10398 fi;
10399
10400 if test "$with_system_readline" = yes; then
10401   READLINE=-lreadline
10402   READLINE_DEPS=
10403   READLINE_CFLAGS=
10404 else
10405   READLINE='$(READLINE_DIR)/libreadline.a'
10406   READLINE_DEPS='$(READLINE)'
10407   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10408 fi
10409
10410
10411
10412
10413
10414 # Check whether --with-expat or --without-expat was given.
10415 if test "${with_expat+set}" = set; then
10416   withval="$with_expat"
10417
10418 else
10419   with_expat=auto
10420 fi;
10421 echo "$as_me:$LINENO: checking whether to use expat" >&5
10422 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10423 echo "$as_me:$LINENO: result: $with_expat" >&5
10424 echo "${ECHO_T}$with_expat" >&6
10425
10426 if test "${with_expat}" = no; then
10427   { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10428 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10429   HAVE_LIBEXPAT=no
10430 else
10431
10432       if test "X$prefix" = "XNONE"; then
10433     acl_final_prefix="$ac_default_prefix"
10434   else
10435     acl_final_prefix="$prefix"
10436   fi
10437   if test "X$exec_prefix" = "XNONE"; then
10438     acl_final_exec_prefix='${prefix}'
10439   else
10440     acl_final_exec_prefix="$exec_prefix"
10441   fi
10442   acl_save_prefix="$prefix"
10443   prefix="$acl_final_prefix"
10444   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10445   prefix="$acl_save_prefix"
10446
10447
10448 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10449 if test "${with_gnu_ld+set}" = set; then
10450   withval="$with_gnu_ld"
10451   test "$withval" = no || with_gnu_ld=yes
10452 else
10453   with_gnu_ld=no
10454 fi;
10455 # Prepare PATH_SEPARATOR.
10456 # The user is always right.
10457 if test "${PATH_SEPARATOR+set}" != set; then
10458   echo "#! /bin/sh" >conf$$.sh
10459   echo  "exit 0"   >>conf$$.sh
10460   chmod +x conf$$.sh
10461   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10462     PATH_SEPARATOR=';'
10463   else
10464     PATH_SEPARATOR=:
10465   fi
10466   rm -f conf$$.sh
10467 fi
10468 ac_prog=ld
10469 if test "$GCC" = yes; then
10470   # Check if gcc -print-prog-name=ld gives a path.
10471   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10472 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10473   case $host in
10474   *-*-mingw*)
10475     # gcc leaves a trailing carriage return which upsets mingw
10476     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10477   *)
10478     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10479   esac
10480   case $ac_prog in
10481     # Accept absolute paths.
10482     [\\/]* | [A-Za-z]:[\\/]*)
10483       re_direlt='/[^/][^/]*/\.\./'
10484       # Canonicalize the path of ld
10485       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10486       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10487         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10488       done
10489       test -z "$LD" && LD="$ac_prog"
10490       ;;
10491   "")
10492     # If it fails, then pretend we aren't using GCC.
10493     ac_prog=ld
10494     ;;
10495   *)
10496     # If it is relative, then search for the first ld in PATH.
10497     with_gnu_ld=unknown
10498     ;;
10499   esac
10500 elif test "$with_gnu_ld" = yes; then
10501   echo "$as_me:$LINENO: checking for GNU ld" >&5
10502 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10503 else
10504   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10505 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10506 fi
10507 if test "${acl_cv_path_LD+set}" = set; then
10508   echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510   if test -z "$LD"; then
10511   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10512   for ac_dir in $PATH; do
10513     test -z "$ac_dir" && ac_dir=.
10514     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10515       acl_cv_path_LD="$ac_dir/$ac_prog"
10516       # Check to see if the program is GNU ld.  I'd rather use --version,
10517       # but apparently some GNU ld's only accept -v.
10518       # Break only if it was the GNU/non-GNU ld that we prefer.
10519       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10520         test "$with_gnu_ld" != no && break
10521       else
10522         test "$with_gnu_ld" != yes && break
10523       fi
10524     fi
10525   done
10526   IFS="$ac_save_ifs"
10527 else
10528   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10529 fi
10530 fi
10531
10532 LD="$acl_cv_path_LD"
10533 if test -n "$LD"; then
10534   echo "$as_me:$LINENO: result: $LD" >&5
10535 echo "${ECHO_T}$LD" >&6
10536 else
10537   echo "$as_me:$LINENO: result: no" >&5
10538 echo "${ECHO_T}no" >&6
10539 fi
10540 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10541 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10542    { (exit 1); exit 1; }; }
10543 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10544 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10545 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10546   echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10549 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10550   acl_cv_prog_gnu_ld=yes
10551 else
10552   acl_cv_prog_gnu_ld=no
10553 fi
10554 fi
10555 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10556 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10557 with_gnu_ld=$acl_cv_prog_gnu_ld
10558
10559
10560
10561                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10562 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10563 if test "${acl_cv_rpath+set}" = set; then
10564   echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566
10567     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10568     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10569     . ./conftest.sh
10570     rm -f ./conftest.sh
10571     acl_cv_rpath=done
10572
10573 fi
10574 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10575 echo "${ECHO_T}$acl_cv_rpath" >&6
10576   wl="$acl_cv_wl"
10577   libext="$acl_cv_libext"
10578   shlibext="$acl_cv_shlibext"
10579   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10580   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10581   hardcode_direct="$acl_cv_hardcode_direct"
10582   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10583     # Check whether --enable-rpath or --disable-rpath was given.
10584 if test "${enable_rpath+set}" = set; then
10585   enableval="$enable_rpath"
10586   :
10587 else
10588   enable_rpath=yes
10589 fi;
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599     use_additional=yes
10600
10601   acl_save_prefix="$prefix"
10602   prefix="$acl_final_prefix"
10603   acl_save_exec_prefix="$exec_prefix"
10604   exec_prefix="$acl_final_exec_prefix"
10605
10606     eval additional_includedir=\"$includedir\"
10607     eval additional_libdir=\"$libdir\"
10608
10609   exec_prefix="$acl_save_exec_prefix"
10610   prefix="$acl_save_prefix"
10611
10612
10613 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10614 if test "${with_libexpat_prefix+set}" = set; then
10615   withval="$with_libexpat_prefix"
10616
10617     if test "X$withval" = "Xno"; then
10618       use_additional=no
10619     else
10620       if test "X$withval" = "X"; then
10621
10622   acl_save_prefix="$prefix"
10623   prefix="$acl_final_prefix"
10624   acl_save_exec_prefix="$exec_prefix"
10625   exec_prefix="$acl_final_exec_prefix"
10626
10627           eval additional_includedir=\"$includedir\"
10628           eval additional_libdir=\"$libdir\"
10629
10630   exec_prefix="$acl_save_exec_prefix"
10631   prefix="$acl_save_prefix"
10632
10633       else
10634         additional_includedir="$withval/include"
10635         additional_libdir="$withval/lib"
10636       fi
10637     fi
10638
10639 fi;
10640       LIBEXPAT=
10641   LTLIBEXPAT=
10642   INCEXPAT=
10643   rpathdirs=
10644   ltrpathdirs=
10645   names_already_handled=
10646   names_next_round='expat '
10647   while test -n "$names_next_round"; do
10648     names_this_round="$names_next_round"
10649     names_next_round=
10650     for name in $names_this_round; do
10651       already_handled=
10652       for n in $names_already_handled; do
10653         if test "$n" = "$name"; then
10654           already_handled=yes
10655           break
10656         fi
10657       done
10658       if test -z "$already_handled"; then
10659         names_already_handled="$names_already_handled $name"
10660                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10661         eval value=\"\$HAVE_LIB$uppername\"
10662         if test -n "$value"; then
10663           if test "$value" = yes; then
10664             eval value=\"\$LIB$uppername\"
10665             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10666             eval value=\"\$LTLIB$uppername\"
10667             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10668           else
10669                                     :
10670           fi
10671         else
10672                               found_dir=
10673           found_la=
10674           found_so=
10675           found_a=
10676           if test $use_additional = yes; then
10677             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10678               found_dir="$additional_libdir"
10679               found_so="$additional_libdir/lib$name.$shlibext"
10680               if test -f "$additional_libdir/lib$name.la"; then
10681                 found_la="$additional_libdir/lib$name.la"
10682               fi
10683             else
10684               if test -f "$additional_libdir/lib$name.$libext"; then
10685                 found_dir="$additional_libdir"
10686                 found_a="$additional_libdir/lib$name.$libext"
10687                 if test -f "$additional_libdir/lib$name.la"; then
10688                   found_la="$additional_libdir/lib$name.la"
10689                 fi
10690               fi
10691             fi
10692           fi
10693           if test "X$found_dir" = "X"; then
10694             for x in $LDFLAGS $LTLIBEXPAT; do
10695
10696   acl_save_prefix="$prefix"
10697   prefix="$acl_final_prefix"
10698   acl_save_exec_prefix="$exec_prefix"
10699   exec_prefix="$acl_final_exec_prefix"
10700   eval x=\"$x\"
10701   exec_prefix="$acl_save_exec_prefix"
10702   prefix="$acl_save_prefix"
10703
10704               case "$x" in
10705                 -L*)
10706                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10707                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10708                     found_dir="$dir"
10709                     found_so="$dir/lib$name.$shlibext"
10710                     if test -f "$dir/lib$name.la"; then
10711                       found_la="$dir/lib$name.la"
10712                     fi
10713                   else
10714                     if test -f "$dir/lib$name.$libext"; then
10715                       found_dir="$dir"
10716                       found_a="$dir/lib$name.$libext"
10717                       if test -f "$dir/lib$name.la"; then
10718                         found_la="$dir/lib$name.la"
10719                       fi
10720                     fi
10721                   fi
10722                   ;;
10723               esac
10724               if test "X$found_dir" != "X"; then
10725                 break
10726               fi
10727             done
10728           fi
10729           if test "X$found_dir" != "X"; then
10730                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10731             if test "X$found_so" != "X"; then
10732                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10733                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10734               else
10735                                                                                 haveit=
10736                 for x in $ltrpathdirs; do
10737                   if test "X$x" = "X$found_dir"; then
10738                     haveit=yes
10739                     break
10740                   fi
10741                 done
10742                 if test -z "$haveit"; then
10743                   ltrpathdirs="$ltrpathdirs $found_dir"
10744                 fi
10745                                 if test "$hardcode_direct" = yes; then
10746                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10747                 else
10748                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10749                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10750                                                             haveit=
10751                     for x in $rpathdirs; do
10752                       if test "X$x" = "X$found_dir"; then
10753                         haveit=yes
10754                         break
10755                       fi
10756                     done
10757                     if test -z "$haveit"; then
10758                       rpathdirs="$rpathdirs $found_dir"
10759                     fi
10760                   else
10761                                                                                 haveit=
10762                     for x in $LDFLAGS $LIBEXPAT; do
10763
10764   acl_save_prefix="$prefix"
10765   prefix="$acl_final_prefix"
10766   acl_save_exec_prefix="$exec_prefix"
10767   exec_prefix="$acl_final_exec_prefix"
10768   eval x=\"$x\"
10769   exec_prefix="$acl_save_exec_prefix"
10770   prefix="$acl_save_prefix"
10771
10772                       if test "X$x" = "X-L$found_dir"; then
10773                         haveit=yes
10774                         break
10775                       fi
10776                     done
10777                     if test -z "$haveit"; then
10778                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10779                     fi
10780                     if test "$hardcode_minus_L" != no; then
10781                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10782                     else
10783                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10784                     fi
10785                   fi
10786                 fi
10787               fi
10788             else
10789               if test "X$found_a" != "X"; then
10790                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10791               else
10792                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10793               fi
10794             fi
10795                         additional_includedir=
10796             case "$found_dir" in
10797               */lib | */lib/)
10798                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10799                 additional_includedir="$basedir/include"
10800                 ;;
10801             esac
10802             if test "X$additional_includedir" != "X"; then
10803                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10804                 haveit=
10805                 if test "X$additional_includedir" = "X/usr/local/include"; then
10806                   if test -n "$GCC"; then
10807                     case $host_os in
10808                       linux*) haveit=yes;;
10809                     esac
10810                   fi
10811                 fi
10812                 if test -z "$haveit"; then
10813                   for x in $CPPFLAGS $INCEXPAT; do
10814
10815   acl_save_prefix="$prefix"
10816   prefix="$acl_final_prefix"
10817   acl_save_exec_prefix="$exec_prefix"
10818   exec_prefix="$acl_final_exec_prefix"
10819   eval x=\"$x\"
10820   exec_prefix="$acl_save_exec_prefix"
10821   prefix="$acl_save_prefix"
10822
10823                     if test "X$x" = "X-I$additional_includedir"; then
10824                       haveit=yes
10825                       break
10826                     fi
10827                   done
10828                   if test -z "$haveit"; then
10829                     if test -d "$additional_includedir"; then
10830                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10831                     fi
10832                   fi
10833                 fi
10834               fi
10835             fi
10836                         if test -n "$found_la"; then
10837                                                         save_libdir="$libdir"
10838               case "$found_la" in
10839                 */* | *\\*) . "$found_la" ;;
10840                 *) . "./$found_la" ;;
10841               esac
10842               libdir="$save_libdir"
10843                             for dep in $dependency_libs; do
10844                 case "$dep" in
10845                   -L*)
10846                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10847                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10848                       haveit=
10849                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10850                         if test -n "$GCC"; then
10851                           case $host_os in
10852                             linux*) haveit=yes;;
10853                           esac
10854                         fi
10855                       fi
10856                       if test -z "$haveit"; then
10857                         haveit=
10858                         for x in $LDFLAGS $LIBEXPAT; do
10859
10860   acl_save_prefix="$prefix"
10861   prefix="$acl_final_prefix"
10862   acl_save_exec_prefix="$exec_prefix"
10863   exec_prefix="$acl_final_exec_prefix"
10864   eval x=\"$x\"
10865   exec_prefix="$acl_save_exec_prefix"
10866   prefix="$acl_save_prefix"
10867
10868                           if test "X$x" = "X-L$additional_libdir"; then
10869                             haveit=yes
10870                             break
10871                           fi
10872                         done
10873                         if test -z "$haveit"; then
10874                           if test -d "$additional_libdir"; then
10875                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10876                           fi
10877                         fi
10878                         haveit=
10879                         for x in $LDFLAGS $LTLIBEXPAT; do
10880
10881   acl_save_prefix="$prefix"
10882   prefix="$acl_final_prefix"
10883   acl_save_exec_prefix="$exec_prefix"
10884   exec_prefix="$acl_final_exec_prefix"
10885   eval x=\"$x\"
10886   exec_prefix="$acl_save_exec_prefix"
10887   prefix="$acl_save_prefix"
10888
10889                           if test "X$x" = "X-L$additional_libdir"; then
10890                             haveit=yes
10891                             break
10892                           fi
10893                         done
10894                         if test -z "$haveit"; then
10895                           if test -d "$additional_libdir"; then
10896                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10897                           fi
10898                         fi
10899                       fi
10900                     fi
10901                     ;;
10902                   -R*)
10903                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10904                     if test "$enable_rpath" != no; then
10905                                                                   haveit=
10906                       for x in $rpathdirs; do
10907                         if test "X$x" = "X$dir"; then
10908                           haveit=yes
10909                           break
10910                         fi
10911                       done
10912                       if test -z "$haveit"; then
10913                         rpathdirs="$rpathdirs $dir"
10914                       fi
10915                                                                   haveit=
10916                       for x in $ltrpathdirs; do
10917                         if test "X$x" = "X$dir"; then
10918                           haveit=yes
10919                           break
10920                         fi
10921                       done
10922                       if test -z "$haveit"; then
10923                         ltrpathdirs="$ltrpathdirs $dir"
10924                       fi
10925                     fi
10926                     ;;
10927                   -l*)
10928                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10929                     ;;
10930                   *.la)
10931                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10932                     ;;
10933                   *)
10934                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10935                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10936                     ;;
10937                 esac
10938               done
10939             fi
10940           else
10941                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10942             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10943           fi
10944         fi
10945       fi
10946     done
10947   done
10948   if test "X$rpathdirs" != "X"; then
10949     if test -n "$hardcode_libdir_separator"; then
10950                         alldirs=
10951       for found_dir in $rpathdirs; do
10952         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10953       done
10954             acl_save_libdir="$libdir"
10955       libdir="$alldirs"
10956       eval flag=\"$hardcode_libdir_flag_spec\"
10957       libdir="$acl_save_libdir"
10958       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10959     else
10960             for found_dir in $rpathdirs; do
10961         acl_save_libdir="$libdir"
10962         libdir="$found_dir"
10963         eval flag=\"$hardcode_libdir_flag_spec\"
10964         libdir="$acl_save_libdir"
10965         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10966       done
10967     fi
10968   fi
10969   if test "X$ltrpathdirs" != "X"; then
10970             for found_dir in $ltrpathdirs; do
10971       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10972     done
10973   fi
10974
10975
10976         ac_save_CPPFLAGS="$CPPFLAGS"
10977
10978   for element in $INCEXPAT; do
10979     haveit=
10980     for x in $CPPFLAGS; do
10981
10982   acl_save_prefix="$prefix"
10983   prefix="$acl_final_prefix"
10984   acl_save_exec_prefix="$exec_prefix"
10985   exec_prefix="$acl_final_exec_prefix"
10986   eval x=\"$x\"
10987   exec_prefix="$acl_save_exec_prefix"
10988   prefix="$acl_save_prefix"
10989
10990       if test "X$x" = "X$element"; then
10991         haveit=yes
10992         break
10993       fi
10994     done
10995     if test -z "$haveit"; then
10996       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10997     fi
10998   done
10999
11000
11001   echo "$as_me:$LINENO: checking for libexpat" >&5
11002 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11003 if test "${ac_cv_libexpat+set}" = set; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006
11007     ac_save_LIBS="$LIBS"
11008     LIBS="$LIBS $LIBEXPAT"
11009     cat >conftest.$ac_ext <<_ACEOF
11010 /* confdefs.h.  */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h.  */
11015 #include "expat.h"
11016 int
11017 main ()
11018 {
11019 XML_Parser p = XML_ParserCreate (0);
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026   (eval $ac_link) 2>conftest.er1
11027   ac_status=$?
11028   grep -v '^ *+' conftest.er1 >conftest.err
11029   rm -f conftest.er1
11030   cat conftest.err >&5
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); } &&
11033          { ac_try='test -z "$ac_c_werror_flag"
11034                          || test ! -s conftest.err'
11035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036   (eval $ac_try) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; } &&
11040          { ac_try='test -s conftest$ac_exeext'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   ac_cv_libexpat=yes
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 ac_cv_libexpat=no
11052 fi
11053 rm -f conftest.err conftest.$ac_objext \
11054       conftest$ac_exeext conftest.$ac_ext
11055     LIBS="$ac_save_LIBS"
11056
11057 fi
11058 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11059 echo "${ECHO_T}$ac_cv_libexpat" >&6
11060   if test "$ac_cv_libexpat" = yes; then
11061     HAVE_LIBEXPAT=yes
11062
11063 cat >>confdefs.h <<\_ACEOF
11064 #define HAVE_LIBEXPAT 1
11065 _ACEOF
11066
11067     echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11068 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11069     echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11070 echo "${ECHO_T}$LIBEXPAT" >&6
11071   else
11072     HAVE_LIBEXPAT=no
11073             CPPFLAGS="$ac_save_CPPFLAGS"
11074     LIBEXPAT=
11075     LTLIBEXPAT=
11076   fi
11077
11078
11079
11080
11081
11082
11083   if test "$HAVE_LIBEXPAT" != yes; then
11084     if test "$with_expat" = yes; then
11085       { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11086 echo "$as_me: error: expat is missing or unusable" >&2;}
11087    { (exit 1); exit 1; }; }
11088     else
11089       { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11090 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11091     fi
11092   else
11093     save_LIBS=$LIBS
11094     LIBS="$LIBS $LIBEXPAT"
11095
11096 for ac_func in XML_StopParser
11097 do
11098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11099 echo "$as_me:$LINENO: checking for $ac_func" >&5
11100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11101 if eval "test \"\${$as_ac_var+set}\" = set"; then
11102   echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104   cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h.  */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h.  */
11110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11112 #define $ac_func innocuous_$ac_func
11113
11114 /* System header to define __stub macros and hopefully few prototypes,
11115     which can conflict with char $ac_func (); below.
11116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11117     <limits.h> exists even on freestanding compilers.  */
11118
11119 #ifdef __STDC__
11120 # include <limits.h>
11121 #else
11122 # include <assert.h>
11123 #endif
11124
11125 #undef $ac_func
11126
11127 /* Override any gcc2 internal prototype to avoid an error.  */
11128 #ifdef __cplusplus
11129 extern "C"
11130 {
11131 #endif
11132 /* We use char because int might match the return type of a gcc2
11133    builtin and then its argument prototype would still apply.  */
11134 char $ac_func ();
11135 /* The GNU C library defines this for functions which it implements
11136     to always fail with ENOSYS.  Some functions are actually named
11137     something starting with __ and the normal name is an alias.  */
11138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11139 choke me
11140 #else
11141 char (*f) () = $ac_func;
11142 #endif
11143 #ifdef __cplusplus
11144 }
11145 #endif
11146
11147 int
11148 main ()
11149 {
11150 return f != $ac_func;
11151   ;
11152   return 0;
11153 }
11154 _ACEOF
11155 rm -f conftest.$ac_objext conftest$ac_exeext
11156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11157   (eval $ac_link) 2>conftest.er1
11158   ac_status=$?
11159   grep -v '^ *+' conftest.er1 >conftest.err
11160   rm -f conftest.er1
11161   cat conftest.err >&5
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } &&
11164          { ac_try='test -z "$ac_c_werror_flag"
11165                          || test ! -s conftest.err'
11166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167   (eval $ac_try) 2>&5
11168   ac_status=$?
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); }; } &&
11171          { ac_try='test -s conftest$ac_exeext'
11172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173   (eval $ac_try) 2>&5
11174   ac_status=$?
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); }; }; then
11177   eval "$as_ac_var=yes"
11178 else
11179   echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11181
11182 eval "$as_ac_var=no"
11183 fi
11184 rm -f conftest.err conftest.$ac_objext \
11185       conftest$ac_exeext conftest.$ac_ext
11186 fi
11187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11189 if test `eval echo '${'$as_ac_var'}'` = yes; then
11190   cat >>confdefs.h <<_ACEOF
11191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11192 _ACEOF
11193
11194 fi
11195 done
11196
11197     LIBS=$save_LIBS
11198   fi
11199 fi
11200
11201
11202
11203
11204 # Check whether --with-python or --without-python was given.
11205 if test "${with_python+set}" = set; then
11206   withval="$with_python"
11207
11208 else
11209   with_python=auto
11210 fi;
11211 echo "$as_me:$LINENO: checking whether to use python" >&5
11212 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11213 echo "$as_me:$LINENO: result: $with_python" >&5
11214 echo "${ECHO_T}$with_python" >&6
11215
11216 if test "${with_python}" = no; then
11217   { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11218 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11219   have_libpython=no
11220 else
11221   case "${with_python}" in
11222   yes | auto)
11223     # Leave as empty, use defaults.
11224     python_includes=
11225     python_libs=
11226     ;;
11227   /*)
11228     python_includes="-I${with_python}/include"
11229     python_libs="-L${with_python}/lib"
11230     ;;
11231   *)
11232     { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11233 echo "$as_me: error: invalid value for --with-python" >&2;}
11234    { (exit 1); exit 1; }; }
11235     ;;
11236   esac
11237
11238   save_CPPFLAGS=$CPPFLAGS
11239   CPPFLAGS="$CPPFLAGS ${python_includes}"
11240   save_LIBS=$LIBS
11241   LIBS="$LIBS ${python_libs}"
11242   have_libpython=no
11243   if test "${have_libpython}" = no; then
11244
11245   version=python2.6
11246
11247
11248   HAVE_LIBPYTHON2_6=no
11249   echo "$as_me:$LINENO: checking for ${version}" >&5
11250 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11251   save_LIBS=$LIBS
11252   LIBS="$LIBS -l${version}"
11253   cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h.  */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h.  */
11259 #include "${version}/Python.h"
11260 int
11261 main ()
11262 {
11263 Py_Initialize ();
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270   (eval $ac_link) 2>conftest.er1
11271   ac_status=$?
11272   grep -v '^ *+' conftest.er1 >conftest.err
11273   rm -f conftest.er1
11274   cat conftest.err >&5
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); } &&
11277          { ac_try='test -z "$ac_c_werror_flag"
11278                          || test ! -s conftest.err'
11279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280   (eval $ac_try) 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; } &&
11284          { ac_try='test -s conftest$ac_exeext'
11285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286   (eval $ac_try) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; }; then
11290   HAVE_LIBPYTHON2_6=yes
11291                   have_libpython=yes
11292 else
11293   echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 LIBS=$save_LIBS
11297 fi
11298 rm -f conftest.err conftest.$ac_objext \
11299       conftest$ac_exeext conftest.$ac_ext
11300   echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11301 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11302
11303     if test "${HAVE_LIBPYTHON2_6}" = yes; then
11304
11305 cat >>confdefs.h <<\_ACEOF
11306 #define HAVE_LIBPYTHON2_6 1
11307 _ACEOF
11308
11309     fi
11310   fi
11311   if test ${have_libpython} = no; then
11312
11313   version=python2.5
11314
11315
11316   HAVE_LIBPYTHON2_5=no
11317   echo "$as_me:$LINENO: checking for ${version}" >&5
11318 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11319   save_LIBS=$LIBS
11320   LIBS="$LIBS -l${version}"
11321   cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327 #include "${version}/Python.h"
11328 int
11329 main ()
11330 {
11331 Py_Initialize ();
11332   ;
11333   return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338   (eval $ac_link) 2>conftest.er1
11339   ac_status=$?
11340   grep -v '^ *+' conftest.er1 >conftest.err
11341   rm -f conftest.er1
11342   cat conftest.err >&5
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); } &&
11345          { ac_try='test -z "$ac_c_werror_flag"
11346                          || test ! -s conftest.err'
11347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348   (eval $ac_try) 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); }; } &&
11352          { ac_try='test -s conftest$ac_exeext'
11353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354   (eval $ac_try) 2>&5
11355   ac_status=$?
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); }; }; then
11358   HAVE_LIBPYTHON2_5=yes
11359                   have_libpython=yes
11360 else
11361   echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364 LIBS=$save_LIBS
11365 fi
11366 rm -f conftest.err conftest.$ac_objext \
11367       conftest$ac_exeext conftest.$ac_ext
11368   echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11369 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11370
11371     if test "${HAVE_LIBPYTHON2_5}" = yes; then
11372
11373 cat >>confdefs.h <<\_ACEOF
11374 #define HAVE_LIBPYTHON2_5 1
11375 _ACEOF
11376
11377     fi
11378   fi
11379   if test ${have_libpython} = no; then
11380
11381   version=python2.4
11382
11383
11384   HAVE_LIBPYTHON2_4=no
11385   echo "$as_me:$LINENO: checking for ${version}" >&5
11386 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11387   save_LIBS=$LIBS
11388   LIBS="$LIBS -l${version}"
11389   cat >conftest.$ac_ext <<_ACEOF
11390 /* confdefs.h.  */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h.  */
11395 #include "${version}/Python.h"
11396 int
11397 main ()
11398 {
11399 Py_Initialize ();
11400   ;
11401   return 0;
11402 }
11403 _ACEOF
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406   (eval $ac_link) 2>conftest.er1
11407   ac_status=$?
11408   grep -v '^ *+' conftest.er1 >conftest.err
11409   rm -f conftest.er1
11410   cat conftest.err >&5
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); } &&
11413          { ac_try='test -z "$ac_c_werror_flag"
11414                          || test ! -s conftest.err'
11415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416   (eval $ac_try) 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; } &&
11420          { ac_try='test -s conftest$ac_exeext'
11421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422   (eval $ac_try) 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); }; }; then
11426   HAVE_LIBPYTHON2_4=yes
11427                   have_libpython=yes
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432 LIBS=$save_LIBS
11433 fi
11434 rm -f conftest.err conftest.$ac_objext \
11435       conftest$ac_exeext conftest.$ac_ext
11436   echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11437 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11438
11439     if test "${HAVE_LIBPYTHON2_4}" = yes; then
11440
11441 cat >>confdefs.h <<\_ACEOF
11442 #define HAVE_LIBPYTHON2_4 1
11443 _ACEOF
11444
11445     fi
11446   fi
11447   if test ${have_libpython} = no; then
11448     case "${with_python}" in
11449     yes)
11450       { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11451 echo "$as_me: error: python is missing or unusable" >&2;}
11452    { (exit 1); exit 1; }; }
11453       ;;
11454     auto)
11455       { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11456 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11457       ;;
11458     *)
11459       { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11460 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11461    { (exit 1); exit 1; }; }
11462       ;;
11463     esac
11464     CPPFLAGS=$save_CPPFLAGS
11465     LIBS=$save_LIBS
11466   fi
11467 fi
11468
11469 if test "${have_libpython}" = yes; then
11470
11471 cat >>confdefs.h <<\_ACEOF
11472 #define HAVE_PYTHON 1
11473 _ACEOF
11474
11475   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11476   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11477   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11478   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11479
11480   # Flags needed to compile Python code (taken from python-config --cflags).
11481   # We cannot call python-config directly because it will output whatever was
11482   # used when compiling the Python interpreter itself, including flags which
11483   # would make the python-related objects be compiled differently from the
11484   # rest of GDB (e.g., -O2 and -fPIC).
11485   if test "${GCC}" = yes; then
11486     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11487   fi
11488
11489   if test "x${tentative_python_cflags}" != x; then
11490     echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11491 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11492     for flag in ${tentative_python_cflags}; do
11493       # Check that the compiler accepts it
11494       saved_CFLAGS="$CFLAGS"
11495       CFLAGS="$CFLAGS $flag"
11496       cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h.  */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h.  */
11502
11503 int
11504 main ()
11505 {
11506
11507   ;
11508   return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513   (eval $ac_compile) 2>conftest.er1
11514   ac_status=$?
11515   grep -v '^ *+' conftest.er1 >conftest.err
11516   rm -f conftest.er1
11517   cat conftest.err >&5
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } &&
11520          { ac_try='test -z "$ac_c_werror_flag"
11521                          || test ! -s conftest.err'
11522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523   (eval $ac_try) 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; } &&
11527          { ac_try='test -s conftest.$ac_objext'
11528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529   (eval $ac_try) 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); }; }; then
11533   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11534 else
11535   echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538 fi
11539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11540       CFLAGS="$saved_CFLAGS"
11541     done
11542     echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11543 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11544   fi
11545 else
11546   # Even if Python support is not compiled in, we need to have this file
11547   # included in order to recognize the GDB command "python".
11548   CONFIG_OBS="$CONFIG_OBS python.o"
11549   CONFIG_SRCS="$CONFIG_SRCS python/python.c"
11550 fi
11551
11552
11553 # ------------------------- #
11554 # Checks for header files.  #
11555 # ------------------------- #
11556
11557
11558
11559
11560
11561
11562 ac_header_dirent=no
11563 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11564   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11565 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11566 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11568   echo $ECHO_N "(cached) $ECHO_C" >&6
11569 else
11570   cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h.  */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h.  */
11576 #include <sys/types.h>
11577 #include <$ac_hdr>
11578
11579 int
11580 main ()
11581 {
11582 if ((DIR *) 0)
11583 return 0;
11584   ;
11585   return 0;
11586 }
11587 _ACEOF
11588 rm -f conftest.$ac_objext
11589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11590   (eval $ac_compile) 2>conftest.er1
11591   ac_status=$?
11592   grep -v '^ *+' conftest.er1 >conftest.err
11593   rm -f conftest.er1
11594   cat conftest.err >&5
11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); } &&
11597          { ac_try='test -z "$ac_c_werror_flag"
11598                          || test ! -s conftest.err'
11599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600   (eval $ac_try) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; } &&
11604          { ac_try='test -s conftest.$ac_objext'
11605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606   (eval $ac_try) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); }; }; then
11610   eval "$as_ac_Header=yes"
11611 else
11612   echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615 eval "$as_ac_Header=no"
11616 fi
11617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11618 fi
11619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622   cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11624 _ACEOF
11625
11626 ac_header_dirent=$ac_hdr; break
11627 fi
11628
11629 done
11630 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11631 if test $ac_header_dirent = dirent.h; then
11632   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11633 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11634 if test "${ac_cv_search_opendir+set}" = set; then
11635   echo $ECHO_N "(cached) $ECHO_C" >&6
11636 else
11637   ac_func_search_save_LIBS=$LIBS
11638 ac_cv_search_opendir=no
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h.  */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h.  */
11645
11646 /* Override any gcc2 internal prototype to avoid an error.  */
11647 #ifdef __cplusplus
11648 extern "C"
11649 #endif
11650 /* We use char because int might match the return type of a gcc2
11651    builtin and then its argument prototype would still apply.  */
11652 char opendir ();
11653 int
11654 main ()
11655 {
11656 opendir ();
11657   ;
11658   return 0;
11659 }
11660 _ACEOF
11661 rm -f conftest.$ac_objext conftest$ac_exeext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663   (eval $ac_link) 2>conftest.er1
11664   ac_status=$?
11665   grep -v '^ *+' conftest.er1 >conftest.err
11666   rm -f conftest.er1
11667   cat conftest.err >&5
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); } &&
11670          { ac_try='test -z "$ac_c_werror_flag"
11671                          || test ! -s conftest.err'
11672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673   (eval $ac_try) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; } &&
11677          { ac_try='test -s conftest$ac_exeext'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; }; then
11683   ac_cv_search_opendir="none required"
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11687
11688 fi
11689 rm -f conftest.err conftest.$ac_objext \
11690       conftest$ac_exeext conftest.$ac_ext
11691 if test "$ac_cv_search_opendir" = no; then
11692   for ac_lib in dir; do
11693     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11694     cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h.  */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h.  */
11700
11701 /* Override any gcc2 internal prototype to avoid an error.  */
11702 #ifdef __cplusplus
11703 extern "C"
11704 #endif
11705 /* We use char because int might match the return type of a gcc2
11706    builtin and then its argument prototype would still apply.  */
11707 char opendir ();
11708 int
11709 main ()
11710 {
11711 opendir ();
11712   ;
11713   return 0;
11714 }
11715 _ACEOF
11716 rm -f conftest.$ac_objext conftest$ac_exeext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718   (eval $ac_link) 2>conftest.er1
11719   ac_status=$?
11720   grep -v '^ *+' conftest.er1 >conftest.err
11721   rm -f conftest.er1
11722   cat conftest.err >&5
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); } &&
11725          { ac_try='test -z "$ac_c_werror_flag"
11726                          || test ! -s conftest.err'
11727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728   (eval $ac_try) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; } &&
11732          { ac_try='test -s conftest$ac_exeext'
11733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734   (eval $ac_try) 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); }; }; then
11738   ac_cv_search_opendir="-l$ac_lib"
11739 break
11740 else
11741   echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11743
11744 fi
11745 rm -f conftest.err conftest.$ac_objext \
11746       conftest$ac_exeext conftest.$ac_ext
11747   done
11748 fi
11749 LIBS=$ac_func_search_save_LIBS
11750 fi
11751 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11752 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11753 if test "$ac_cv_search_opendir" != no; then
11754   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11755
11756 fi
11757
11758 else
11759   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11760 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11761 if test "${ac_cv_search_opendir+set}" = set; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764   ac_func_search_save_LIBS=$LIBS
11765 ac_cv_search_opendir=no
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h.  */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h.  */
11772
11773 /* Override any gcc2 internal prototype to avoid an error.  */
11774 #ifdef __cplusplus
11775 extern "C"
11776 #endif
11777 /* We use char because int might match the return type of a gcc2
11778    builtin and then its argument prototype would still apply.  */
11779 char opendir ();
11780 int
11781 main ()
11782 {
11783 opendir ();
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11790   (eval $ac_link) 2>conftest.er1
11791   ac_status=$?
11792   grep -v '^ *+' conftest.er1 >conftest.err
11793   rm -f conftest.er1
11794   cat conftest.err >&5
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); } &&
11797          { ac_try='test -z "$ac_c_werror_flag"
11798                          || test ! -s conftest.err'
11799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800   (eval $ac_try) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; } &&
11804          { ac_try='test -s conftest$ac_exeext'
11805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806   (eval $ac_try) 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); }; }; then
11810   ac_cv_search_opendir="none required"
11811 else
11812   echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11814
11815 fi
11816 rm -f conftest.err conftest.$ac_objext \
11817       conftest$ac_exeext conftest.$ac_ext
11818 if test "$ac_cv_search_opendir" = no; then
11819   for ac_lib in x; do
11820     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11821     cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827
11828 /* Override any gcc2 internal prototype to avoid an error.  */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 /* We use char because int might match the return type of a gcc2
11833    builtin and then its argument prototype would still apply.  */
11834 char opendir ();
11835 int
11836 main ()
11837 {
11838 opendir ();
11839   ;
11840   return 0;
11841 }
11842 _ACEOF
11843 rm -f conftest.$ac_objext conftest$ac_exeext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11845   (eval $ac_link) 2>conftest.er1
11846   ac_status=$?
11847   grep -v '^ *+' conftest.er1 >conftest.err
11848   rm -f conftest.er1
11849   cat conftest.err >&5
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } &&
11852          { ac_try='test -z "$ac_c_werror_flag"
11853                          || test ! -s conftest.err'
11854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855   (eval $ac_try) 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); }; } &&
11859          { ac_try='test -s conftest$ac_exeext'
11860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861   (eval $ac_try) 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }; }; then
11865   ac_cv_search_opendir="-l$ac_lib"
11866 break
11867 else
11868   echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871 fi
11872 rm -f conftest.err conftest.$ac_objext \
11873       conftest$ac_exeext conftest.$ac_ext
11874   done
11875 fi
11876 LIBS=$ac_func_search_save_LIBS
11877 fi
11878 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11879 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11880 if test "$ac_cv_search_opendir" != no; then
11881   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11882
11883 fi
11884
11885 fi
11886
11887 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11888 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11889 if test "${ac_cv_header_stat_broken+set}" = set; then
11890   echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892   cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898 #include <sys/types.h>
11899 #include <sys/stat.h>
11900
11901 #if defined(S_ISBLK) && defined(S_IFDIR)
11902 # if S_ISBLK (S_IFDIR)
11903 You lose.
11904 # endif
11905 #endif
11906
11907 #if defined(S_ISBLK) && defined(S_IFCHR)
11908 # if S_ISBLK (S_IFCHR)
11909 You lose.
11910 # endif
11911 #endif
11912
11913 #if defined(S_ISLNK) && defined(S_IFREG)
11914 # if S_ISLNK (S_IFREG)
11915 You lose.
11916 # endif
11917 #endif
11918
11919 #if defined(S_ISSOCK) && defined(S_IFREG)
11920 # if S_ISSOCK (S_IFREG)
11921 You lose.
11922 # endif
11923 #endif
11924
11925 _ACEOF
11926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11927   $EGREP "You lose" >/dev/null 2>&1; then
11928   ac_cv_header_stat_broken=yes
11929 else
11930   ac_cv_header_stat_broken=no
11931 fi
11932 rm -f conftest*
11933
11934 fi
11935 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11936 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11937 if test $ac_cv_header_stat_broken = yes; then
11938
11939 cat >>confdefs.h <<\_ACEOF
11940 #define STAT_MACROS_BROKEN 1
11941 _ACEOF
11942
11943 fi
11944
11945 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11946 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11947 if test "${ac_cv_header_stdc+set}" = set; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   cat >conftest.$ac_ext <<_ACEOF
11951 /* confdefs.h.  */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h.  */
11956 #include <stdlib.h>
11957 #include <stdarg.h>
11958 #include <string.h>
11959 #include <float.h>
11960
11961 int
11962 main ()
11963 {
11964
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971   (eval $ac_compile) 2>conftest.er1
11972   ac_status=$?
11973   grep -v '^ *+' conftest.er1 >conftest.err
11974   rm -f conftest.er1
11975   cat conftest.err >&5
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } &&
11978          { ac_try='test -z "$ac_c_werror_flag"
11979                          || test ! -s conftest.err'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest.$ac_objext'
11986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987   (eval $ac_try) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   ac_cv_header_stdc=yes
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 ac_cv_header_stdc=no
11997 fi
11998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11999
12000 if test $ac_cv_header_stdc = yes; then
12001   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12002   cat >conftest.$ac_ext <<_ACEOF
12003 /* confdefs.h.  */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h.  */
12008 #include <string.h>
12009
12010 _ACEOF
12011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12012   $EGREP "memchr" >/dev/null 2>&1; then
12013   :
12014 else
12015   ac_cv_header_stdc=no
12016 fi
12017 rm -f conftest*
12018
12019 fi
12020
12021 if test $ac_cv_header_stdc = yes; then
12022   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12023   cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h.  */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h.  */
12029 #include <stdlib.h>
12030
12031 _ACEOF
12032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12033   $EGREP "free" >/dev/null 2>&1; then
12034   :
12035 else
12036   ac_cv_header_stdc=no
12037 fi
12038 rm -f conftest*
12039
12040 fi
12041
12042 if test $ac_cv_header_stdc = yes; then
12043   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12044   if test "$cross_compiling" = yes; then
12045   :
12046 else
12047   cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h.  */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h.  */
12053 #include <ctype.h>
12054 #if ((' ' & 0x0FF) == 0x020)
12055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12057 #else
12058 # define ISLOWER(c) \
12059                    (('a' <= (c) && (c) <= 'i') \
12060                      || ('j' <= (c) && (c) <= 'r') \
12061                      || ('s' <= (c) && (c) <= 'z'))
12062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12063 #endif
12064
12065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12066 int
12067 main ()
12068 {
12069   int i;
12070   for (i = 0; i < 256; i++)
12071     if (XOR (islower (i), ISLOWER (i))
12072         || toupper (i) != TOUPPER (i))
12073       exit(2);
12074   exit (0);
12075 }
12076 _ACEOF
12077 rm -f conftest$ac_exeext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12079   (eval $ac_link) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084   (eval $ac_try) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; }; then
12088   :
12089 else
12090   echo "$as_me: program exited with status $ac_status" >&5
12091 echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094 ( exit $ac_status )
12095 ac_cv_header_stdc=no
12096 fi
12097 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12098 fi
12099 fi
12100 fi
12101 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12102 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12103 if test $ac_cv_header_stdc = yes; then
12104
12105 cat >>confdefs.h <<\_ACEOF
12106 #define STDC_HEADERS 1
12107 _ACEOF
12108
12109 fi
12110
12111
12112 for ac_header in nlist.h
12113 do
12114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12116   echo "$as_me:$LINENO: checking for $ac_header" >&5
12117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12119   echo $ECHO_N "(cached) $ECHO_C" >&6
12120 fi
12121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12123 else
12124   # Is the header compilable?
12125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h.  */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h.  */
12133 $ac_includes_default
12134 #include <$ac_header>
12135 _ACEOF
12136 rm -f conftest.$ac_objext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12138   (eval $ac_compile) 2>conftest.er1
12139   ac_status=$?
12140   grep -v '^ *+' conftest.er1 >conftest.err
12141   rm -f conftest.er1
12142   cat conftest.err >&5
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); } &&
12145          { ac_try='test -z "$ac_c_werror_flag"
12146                          || test ! -s conftest.err'
12147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148   (eval $ac_try) 2>&5
12149   ac_status=$?
12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); }; } &&
12152          { ac_try='test -s conftest.$ac_objext'
12153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154   (eval $ac_try) 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); }; }; then
12158   ac_header_compiler=yes
12159 else
12160   echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12162
12163 ac_header_compiler=no
12164 fi
12165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12167 echo "${ECHO_T}$ac_header_compiler" >&6
12168
12169 # Is the header present?
12170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h.  */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h.  */
12178 #include <$ac_header>
12179 _ACEOF
12180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12182   ac_status=$?
12183   grep -v '^ *+' conftest.er1 >conftest.err
12184   rm -f conftest.er1
12185   cat conftest.err >&5
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } >/dev/null; then
12188   if test -s conftest.err; then
12189     ac_cpp_err=$ac_c_preproc_warn_flag
12190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12191   else
12192     ac_cpp_err=
12193   fi
12194 else
12195   ac_cpp_err=yes
12196 fi
12197 if test -z "$ac_cpp_err"; then
12198   ac_header_preproc=yes
12199 else
12200   echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203   ac_header_preproc=no
12204 fi
12205 rm -f conftest.err conftest.$ac_ext
12206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12207 echo "${ECHO_T}$ac_header_preproc" >&6
12208
12209 # So?  What about this header?
12210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12211   yes:no: )
12212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12216     ac_header_preproc=yes
12217     ;;
12218   no:yes:* )
12219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12231     (
12232       cat <<\_ASBOX
12233 ## ------------------------------------------ ##
12234 ## Report this to the AC_PACKAGE_NAME lists.  ##
12235 ## ------------------------------------------ ##
12236 _ASBOX
12237     ) |
12238       sed "s/^/$as_me: WARNING:     /" >&2
12239     ;;
12240 esac
12241 echo "$as_me:$LINENO: checking for $ac_header" >&5
12242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246   eval "$as_ac_Header=\$ac_header_preproc"
12247 fi
12248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12250
12251 fi
12252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12253   cat >>confdefs.h <<_ACEOF
12254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12255 _ACEOF
12256
12257 fi
12258
12259 done
12260
12261
12262 for ac_header in link.h
12263 do
12264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12265 echo "$as_me:$LINENO: checking for $ac_header" >&5
12266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12268   echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270   cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276 #if HAVE_SYS_TYPES_H
12277 # include <sys/types.h>
12278 #endif
12279 #if HAVE_NLIST_H
12280 # include <nlist.h>
12281 #endif
12282
12283
12284 #include <$ac_header>
12285 _ACEOF
12286 rm -f conftest.$ac_objext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12288   (eval $ac_compile) 2>conftest.er1
12289   ac_status=$?
12290   grep -v '^ *+' conftest.er1 >conftest.err
12291   rm -f conftest.er1
12292   cat conftest.err >&5
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } &&
12295          { ac_try='test -z "$ac_c_werror_flag"
12296                          || test ! -s conftest.err'
12297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298   (eval $ac_try) 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; } &&
12302          { ac_try='test -s conftest.$ac_objext'
12303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304   (eval $ac_try) 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; }; then
12308   eval "$as_ac_Header=yes"
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313 eval "$as_ac_Header=no"
12314 fi
12315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12316 fi
12317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12320   cat >>confdefs.h <<_ACEOF
12321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12322 _ACEOF
12323
12324 fi
12325
12326 done
12327
12328
12329 for ac_header in machine/reg.h
12330 do
12331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12333   echo "$as_me:$LINENO: checking for $ac_header" >&5
12334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 fi
12338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12340 else
12341   # Is the header compilable?
12342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12344 cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h.  */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h.  */
12350 $ac_includes_default
12351 #include <$ac_header>
12352 _ACEOF
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355   (eval $ac_compile) 2>conftest.er1
12356   ac_status=$?
12357   grep -v '^ *+' conftest.er1 >conftest.err
12358   rm -f conftest.er1
12359   cat conftest.err >&5
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); } &&
12362          { ac_try='test -z "$ac_c_werror_flag"
12363                          || test ! -s conftest.err'
12364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365   (eval $ac_try) 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); }; } &&
12369          { ac_try='test -s conftest.$ac_objext'
12370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371   (eval $ac_try) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; }; then
12375   ac_header_compiler=yes
12376 else
12377   echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380 ac_header_compiler=no
12381 fi
12382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12384 echo "${ECHO_T}$ac_header_compiler" >&6
12385
12386 # Is the header present?
12387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395 #include <$ac_header>
12396 _ACEOF
12397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12399   ac_status=$?
12400   grep -v '^ *+' conftest.er1 >conftest.err
12401   rm -f conftest.er1
12402   cat conftest.err >&5
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); } >/dev/null; then
12405   if test -s conftest.err; then
12406     ac_cpp_err=$ac_c_preproc_warn_flag
12407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12408   else
12409     ac_cpp_err=
12410   fi
12411 else
12412   ac_cpp_err=yes
12413 fi
12414 if test -z "$ac_cpp_err"; then
12415   ac_header_preproc=yes
12416 else
12417   echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12419
12420   ac_header_preproc=no
12421 fi
12422 rm -f conftest.err conftest.$ac_ext
12423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12424 echo "${ECHO_T}$ac_header_preproc" >&6
12425
12426 # So?  What about this header?
12427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12428   yes:no: )
12429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12433     ac_header_preproc=yes
12434     ;;
12435   no:yes:* )
12436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12448     (
12449       cat <<\_ASBOX
12450 ## ------------------------------------------ ##
12451 ## Report this to the AC_PACKAGE_NAME lists.  ##
12452 ## ------------------------------------------ ##
12453 _ASBOX
12454     ) |
12455       sed "s/^/$as_me: WARNING:     /" >&2
12456     ;;
12457 esac
12458 echo "$as_me:$LINENO: checking for $ac_header" >&5
12459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12461   echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463   eval "$as_ac_Header=\$ac_header_preproc"
12464 fi
12465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12467
12468 fi
12469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12470   cat >>confdefs.h <<_ACEOF
12471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12472 _ACEOF
12473
12474 fi
12475
12476 done
12477
12478
12479
12480 for ac_header in poll.h sys/poll.h
12481 do
12482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12484   echo "$as_me:$LINENO: checking for $ac_header" >&5
12485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12487   echo $ECHO_N "(cached) $ECHO_C" >&6
12488 fi
12489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12491 else
12492   # Is the header compilable?
12493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12495 cat >conftest.$ac_ext <<_ACEOF
12496 /* confdefs.h.  */
12497 _ACEOF
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h.  */
12501 $ac_includes_default
12502 #include <$ac_header>
12503 _ACEOF
12504 rm -f conftest.$ac_objext
12505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12506   (eval $ac_compile) 2>conftest.er1
12507   ac_status=$?
12508   grep -v '^ *+' conftest.er1 >conftest.err
12509   rm -f conftest.er1
12510   cat conftest.err >&5
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); } &&
12513          { ac_try='test -z "$ac_c_werror_flag"
12514                          || test ! -s conftest.err'
12515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516   (eval $ac_try) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); }; } &&
12520          { ac_try='test -s conftest.$ac_objext'
12521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522   (eval $ac_try) 2>&5
12523   ac_status=$?
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); }; }; then
12526   ac_header_compiler=yes
12527 else
12528   echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 ac_header_compiler=no
12532 fi
12533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12535 echo "${ECHO_T}$ac_header_compiler" >&6
12536
12537 # Is the header present?
12538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h.  */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h.  */
12546 #include <$ac_header>
12547 _ACEOF
12548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12550   ac_status=$?
12551   grep -v '^ *+' conftest.er1 >conftest.err
12552   rm -f conftest.er1
12553   cat conftest.err >&5
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } >/dev/null; then
12556   if test -s conftest.err; then
12557     ac_cpp_err=$ac_c_preproc_warn_flag
12558     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12559   else
12560     ac_cpp_err=
12561   fi
12562 else
12563   ac_cpp_err=yes
12564 fi
12565 if test -z "$ac_cpp_err"; then
12566   ac_header_preproc=yes
12567 else
12568   echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571   ac_header_preproc=no
12572 fi
12573 rm -f conftest.err conftest.$ac_ext
12574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12575 echo "${ECHO_T}$ac_header_preproc" >&6
12576
12577 # So?  What about this header?
12578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12579   yes:no: )
12580     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12584     ac_header_preproc=yes
12585     ;;
12586   no:yes:* )
12587     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12589     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12590 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12591     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12593     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12594 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12597     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12599     (
12600       cat <<\_ASBOX
12601 ## ------------------------------------------ ##
12602 ## Report this to the AC_PACKAGE_NAME lists.  ##
12603 ## ------------------------------------------ ##
12604 _ASBOX
12605     ) |
12606       sed "s/^/$as_me: WARNING:     /" >&2
12607     ;;
12608 esac
12609 echo "$as_me:$LINENO: checking for $ac_header" >&5
12610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12612   echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614   eval "$as_ac_Header=\$ac_header_preproc"
12615 fi
12616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12618
12619 fi
12620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12621   cat >>confdefs.h <<_ACEOF
12622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12623 _ACEOF
12624
12625 fi
12626
12627 done
12628
12629
12630
12631
12632 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12633 do
12634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12636   echo "$as_me:$LINENO: checking for $ac_header" >&5
12637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12639   echo $ECHO_N "(cached) $ECHO_C" >&6
12640 fi
12641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12643 else
12644   # Is the header compilable?
12645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h.  */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h.  */
12653 $ac_includes_default
12654 #include <$ac_header>
12655 _ACEOF
12656 rm -f conftest.$ac_objext
12657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658   (eval $ac_compile) 2>conftest.er1
12659   ac_status=$?
12660   grep -v '^ *+' conftest.er1 >conftest.err
12661   rm -f conftest.er1
12662   cat conftest.err >&5
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); } &&
12665          { ac_try='test -z "$ac_c_werror_flag"
12666                          || test ! -s conftest.err'
12667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668   (eval $ac_try) 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); }; } &&
12672          { ac_try='test -s conftest.$ac_objext'
12673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674   (eval $ac_try) 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; }; then
12678   ac_header_compiler=yes
12679 else
12680   echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12682
12683 ac_header_compiler=no
12684 fi
12685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12687 echo "${ECHO_T}$ac_header_compiler" >&6
12688
12689 # Is the header present?
12690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h.  */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h.  */
12698 #include <$ac_header>
12699 _ACEOF
12700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12702   ac_status=$?
12703   grep -v '^ *+' conftest.er1 >conftest.err
12704   rm -f conftest.er1
12705   cat conftest.err >&5
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); } >/dev/null; then
12708   if test -s conftest.err; then
12709     ac_cpp_err=$ac_c_preproc_warn_flag
12710     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12711   else
12712     ac_cpp_err=
12713   fi
12714 else
12715   ac_cpp_err=yes
12716 fi
12717 if test -z "$ac_cpp_err"; then
12718   ac_header_preproc=yes
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723   ac_header_preproc=no
12724 fi
12725 rm -f conftest.err conftest.$ac_ext
12726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12727 echo "${ECHO_T}$ac_header_preproc" >&6
12728
12729 # So?  What about this header?
12730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12731   yes:no: )
12732     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12736     ac_header_preproc=yes
12737     ;;
12738   no:yes:* )
12739     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12741     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12742 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12743     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12745     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12746 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12749     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12751     (
12752       cat <<\_ASBOX
12753 ## ------------------------------------------ ##
12754 ## Report this to the AC_PACKAGE_NAME lists.  ##
12755 ## ------------------------------------------ ##
12756 _ASBOX
12757     ) |
12758       sed "s/^/$as_me: WARNING:     /" >&2
12759     ;;
12760 esac
12761 echo "$as_me:$LINENO: checking for $ac_header" >&5
12762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12764   echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766   eval "$as_ac_Header=\$ac_header_preproc"
12767 fi
12768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12770
12771 fi
12772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12773   cat >>confdefs.h <<_ACEOF
12774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12775 _ACEOF
12776
12777 fi
12778
12779 done
12780
12781
12782 for ac_header in signal.h
12783 do
12784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12786   echo "$as_me:$LINENO: checking for $ac_header" >&5
12787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12789   echo $ECHO_N "(cached) $ECHO_C" >&6
12790 fi
12791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12793 else
12794   # Is the header compilable?
12795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12797 cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h.  */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h.  */
12803 $ac_includes_default
12804 #include <$ac_header>
12805 _ACEOF
12806 rm -f conftest.$ac_objext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808   (eval $ac_compile) 2>conftest.er1
12809   ac_status=$?
12810   grep -v '^ *+' conftest.er1 >conftest.err
12811   rm -f conftest.er1
12812   cat conftest.err >&5
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); } &&
12815          { ac_try='test -z "$ac_c_werror_flag"
12816                          || test ! -s conftest.err'
12817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818   (eval $ac_try) 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; } &&
12822          { ac_try='test -s conftest.$ac_objext'
12823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824   (eval $ac_try) 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; }; then
12828   ac_header_compiler=yes
12829 else
12830   echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12832
12833 ac_header_compiler=no
12834 fi
12835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12837 echo "${ECHO_T}$ac_header_compiler" >&6
12838
12839 # Is the header present?
12840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h.  */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h.  */
12848 #include <$ac_header>
12849 _ACEOF
12850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12852   ac_status=$?
12853   grep -v '^ *+' conftest.er1 >conftest.err
12854   rm -f conftest.er1
12855   cat conftest.err >&5
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); } >/dev/null; then
12858   if test -s conftest.err; then
12859     ac_cpp_err=$ac_c_preproc_warn_flag
12860     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12861   else
12862     ac_cpp_err=
12863   fi
12864 else
12865   ac_cpp_err=yes
12866 fi
12867 if test -z "$ac_cpp_err"; then
12868   ac_header_preproc=yes
12869 else
12870   echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12872
12873   ac_header_preproc=no
12874 fi
12875 rm -f conftest.err conftest.$ac_ext
12876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12877 echo "${ECHO_T}$ac_header_preproc" >&6
12878
12879 # So?  What about this header?
12880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12881   yes:no: )
12882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12886     ac_header_preproc=yes
12887     ;;
12888   no:yes:* )
12889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12891     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12892 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12893     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12895     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12896 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12899     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12901     (
12902       cat <<\_ASBOX
12903 ## ------------------------------------------ ##
12904 ## Report this to the AC_PACKAGE_NAME lists.  ##
12905 ## ------------------------------------------ ##
12906 _ASBOX
12907     ) |
12908       sed "s/^/$as_me: WARNING:     /" >&2
12909     ;;
12910 esac
12911 echo "$as_me:$LINENO: checking for $ac_header" >&5
12912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12914   echo $ECHO_N "(cached) $ECHO_C" >&6
12915 else
12916   eval "$as_ac_Header=\$ac_header_preproc"
12917 fi
12918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12920
12921 fi
12922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12923   cat >>confdefs.h <<_ACEOF
12924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12925 _ACEOF
12926
12927 fi
12928
12929 done
12930
12931
12932 for ac_header in stddef.h
12933 do
12934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12936   echo "$as_me:$LINENO: checking for $ac_header" >&5
12937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12939   echo $ECHO_N "(cached) $ECHO_C" >&6
12940 fi
12941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12943 else
12944   # Is the header compilable?
12945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12947 cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h.  */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h.  */
12953 $ac_includes_default
12954 #include <$ac_header>
12955 _ACEOF
12956 rm -f conftest.$ac_objext
12957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12958   (eval $ac_compile) 2>conftest.er1
12959   ac_status=$?
12960   grep -v '^ *+' conftest.er1 >conftest.err
12961   rm -f conftest.er1
12962   cat conftest.err >&5
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); } &&
12965          { ac_try='test -z "$ac_c_werror_flag"
12966                          || test ! -s conftest.err'
12967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968   (eval $ac_try) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; } &&
12972          { ac_try='test -s conftest.$ac_objext'
12973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974   (eval $ac_try) 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); }; }; then
12978   ac_header_compiler=yes
12979 else
12980   echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12982
12983 ac_header_compiler=no
12984 fi
12985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12987 echo "${ECHO_T}$ac_header_compiler" >&6
12988
12989 # Is the header present?
12990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12992 cat >conftest.$ac_ext <<_ACEOF
12993 /* confdefs.h.  */
12994 _ACEOF
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h.  */
12998 #include <$ac_header>
12999 _ACEOF
13000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13002   ac_status=$?
13003   grep -v '^ *+' conftest.er1 >conftest.err
13004   rm -f conftest.er1
13005   cat conftest.err >&5
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); } >/dev/null; then
13008   if test -s conftest.err; then
13009     ac_cpp_err=$ac_c_preproc_warn_flag
13010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13011   else
13012     ac_cpp_err=
13013   fi
13014 else
13015   ac_cpp_err=yes
13016 fi
13017 if test -z "$ac_cpp_err"; then
13018   ac_header_preproc=yes
13019 else
13020   echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13022
13023   ac_header_preproc=no
13024 fi
13025 rm -f conftest.err conftest.$ac_ext
13026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13027 echo "${ECHO_T}$ac_header_preproc" >&6
13028
13029 # So?  What about this header?
13030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13031   yes:no: )
13032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13036     ac_header_preproc=yes
13037     ;;
13038   no:yes:* )
13039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13051     (
13052       cat <<\_ASBOX
13053 ## ------------------------------------------ ##
13054 ## Report this to the AC_PACKAGE_NAME lists.  ##
13055 ## ------------------------------------------ ##
13056 _ASBOX
13057     ) |
13058       sed "s/^/$as_me: WARNING:     /" >&2
13059     ;;
13060 esac
13061 echo "$as_me:$LINENO: checking for $ac_header" >&5
13062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13064   echo $ECHO_N "(cached) $ECHO_C" >&6
13065 else
13066   eval "$as_ac_Header=\$ac_header_preproc"
13067 fi
13068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13070
13071 fi
13072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13073   cat >>confdefs.h <<_ACEOF
13074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13075 _ACEOF
13076
13077 fi
13078
13079 done
13080
13081
13082 for ac_header in stdlib.h
13083 do
13084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13086   echo "$as_me:$LINENO: checking for $ac_header" >&5
13087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13089   echo $ECHO_N "(cached) $ECHO_C" >&6
13090 fi
13091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13093 else
13094   # Is the header compilable?
13095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13097 cat >conftest.$ac_ext <<_ACEOF
13098 /* confdefs.h.  */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h.  */
13103 $ac_includes_default
13104 #include <$ac_header>
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108   (eval $ac_compile) 2>conftest.er1
13109   ac_status=$?
13110   grep -v '^ *+' conftest.er1 >conftest.err
13111   rm -f conftest.er1
13112   cat conftest.err >&5
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); } &&
13115          { ac_try='test -z "$ac_c_werror_flag"
13116                          || test ! -s conftest.err'
13117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118   (eval $ac_try) 2>&5
13119   ac_status=$?
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); }; } &&
13122          { ac_try='test -s conftest.$ac_objext'
13123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124   (eval $ac_try) 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; }; then
13128   ac_header_compiler=yes
13129 else
13130   echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13132
13133 ac_header_compiler=no
13134 fi
13135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13137 echo "${ECHO_T}$ac_header_compiler" >&6
13138
13139 # Is the header present?
13140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13142 cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h.  */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h.  */
13148 #include <$ac_header>
13149 _ACEOF
13150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13151   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13152   ac_status=$?
13153   grep -v '^ *+' conftest.er1 >conftest.err
13154   rm -f conftest.er1
13155   cat conftest.err >&5
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); } >/dev/null; then
13158   if test -s conftest.err; then
13159     ac_cpp_err=$ac_c_preproc_warn_flag
13160     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13161   else
13162     ac_cpp_err=
13163   fi
13164 else
13165   ac_cpp_err=yes
13166 fi
13167 if test -z "$ac_cpp_err"; then
13168   ac_header_preproc=yes
13169 else
13170   echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173   ac_header_preproc=no
13174 fi
13175 rm -f conftest.err conftest.$ac_ext
13176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13177 echo "${ECHO_T}$ac_header_preproc" >&6
13178
13179 # So?  What about this header?
13180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13181   yes:no: )
13182     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13186     ac_header_preproc=yes
13187     ;;
13188   no:yes:* )
13189     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13191     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13192 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13193     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13195     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13196 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13199     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13201     (
13202       cat <<\_ASBOX
13203 ## ------------------------------------------ ##
13204 ## Report this to the AC_PACKAGE_NAME lists.  ##
13205 ## ------------------------------------------ ##
13206 _ASBOX
13207     ) |
13208       sed "s/^/$as_me: WARNING:     /" >&2
13209     ;;
13210 esac
13211 echo "$as_me:$LINENO: checking for $ac_header" >&5
13212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13214   echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216   eval "$as_ac_Header=\$ac_header_preproc"
13217 fi
13218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13220
13221 fi
13222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13223   cat >>confdefs.h <<_ACEOF
13224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13225 _ACEOF
13226
13227 fi
13228
13229 done
13230
13231
13232
13233
13234 for ac_header in string.h memory.h strings.h
13235 do
13236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13238   echo "$as_me:$LINENO: checking for $ac_header" >&5
13239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13241   echo $ECHO_N "(cached) $ECHO_C" >&6
13242 fi
13243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13245 else
13246   # Is the header compilable?
13247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13249 cat >conftest.$ac_ext <<_ACEOF
13250 /* confdefs.h.  */
13251 _ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h.  */
13255 $ac_includes_default
13256 #include <$ac_header>
13257 _ACEOF
13258 rm -f conftest.$ac_objext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260   (eval $ac_compile) 2>conftest.er1
13261   ac_status=$?
13262   grep -v '^ *+' conftest.er1 >conftest.err
13263   rm -f conftest.er1
13264   cat conftest.err >&5
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); } &&
13267          { ac_try='test -z "$ac_c_werror_flag"
13268                          || test ! -s conftest.err'
13269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270   (eval $ac_try) 2>&5
13271   ac_status=$?
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); }; } &&
13274          { ac_try='test -s conftest.$ac_objext'
13275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276   (eval $ac_try) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); }; }; then
13280   ac_header_compiler=yes
13281 else
13282   echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 ac_header_compiler=no
13286 fi
13287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13289 echo "${ECHO_T}$ac_header_compiler" >&6
13290
13291 # Is the header present?
13292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13294 cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300 #include <$ac_header>
13301 _ACEOF
13302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13304   ac_status=$?
13305   grep -v '^ *+' conftest.er1 >conftest.err
13306   rm -f conftest.er1
13307   cat conftest.err >&5
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); } >/dev/null; then
13310   if test -s conftest.err; then
13311     ac_cpp_err=$ac_c_preproc_warn_flag
13312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13313   else
13314     ac_cpp_err=
13315   fi
13316 else
13317   ac_cpp_err=yes
13318 fi
13319 if test -z "$ac_cpp_err"; then
13320   ac_header_preproc=yes
13321 else
13322   echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13324
13325   ac_header_preproc=no
13326 fi
13327 rm -f conftest.err conftest.$ac_ext
13328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13329 echo "${ECHO_T}$ac_header_preproc" >&6
13330
13331 # So?  What about this header?
13332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13333   yes:no: )
13334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13338     ac_header_preproc=yes
13339     ;;
13340   no:yes:* )
13341     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13343     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13344 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13345     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13347     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13348 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13351     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13353     (
13354       cat <<\_ASBOX
13355 ## ------------------------------------------ ##
13356 ## Report this to the AC_PACKAGE_NAME lists.  ##
13357 ## ------------------------------------------ ##
13358 _ASBOX
13359     ) |
13360       sed "s/^/$as_me: WARNING:     /" >&2
13361     ;;
13362 esac
13363 echo "$as_me:$LINENO: checking for $ac_header" >&5
13364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13366   echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368   eval "$as_ac_Header=\$ac_header_preproc"
13369 fi
13370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13372
13373 fi
13374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13375   cat >>confdefs.h <<_ACEOF
13376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13377 _ACEOF
13378
13379 fi
13380
13381 done
13382
13383
13384 for ac_header in sys/fault.h
13385 do
13386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13388   echo "$as_me:$LINENO: checking for $ac_header" >&5
13389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13391   echo $ECHO_N "(cached) $ECHO_C" >&6
13392 fi
13393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13395 else
13396   # Is the header compilable?
13397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13399 cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h.  */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h.  */
13405 $ac_includes_default
13406 #include <$ac_header>
13407 _ACEOF
13408 rm -f conftest.$ac_objext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13410   (eval $ac_compile) 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -z "$ac_c_werror_flag"
13418                          || test ! -s conftest.err'
13419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420   (eval $ac_try) 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; } &&
13424          { ac_try='test -s conftest.$ac_objext'
13425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426   (eval $ac_try) 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; }; then
13430   ac_header_compiler=yes
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 ac_header_compiler=no
13436 fi
13437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13439 echo "${ECHO_T}$ac_header_compiler" >&6
13440
13441 # Is the header present?
13442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13444 cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h.  */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h.  */
13450 #include <$ac_header>
13451 _ACEOF
13452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13453   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
13460   if test -s conftest.err; then
13461     ac_cpp_err=$ac_c_preproc_warn_flag
13462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13463   else
13464     ac_cpp_err=
13465   fi
13466 else
13467   ac_cpp_err=yes
13468 fi
13469 if test -z "$ac_cpp_err"; then
13470   ac_header_preproc=yes
13471 else
13472   echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13474
13475   ac_header_preproc=no
13476 fi
13477 rm -f conftest.err conftest.$ac_ext
13478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13479 echo "${ECHO_T}$ac_header_preproc" >&6
13480
13481 # So?  What about this header?
13482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13483   yes:no: )
13484     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13488     ac_header_preproc=yes
13489     ;;
13490   no:yes:* )
13491     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13493     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13494 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13495     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13497     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13498 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13501     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13503     (
13504       cat <<\_ASBOX
13505 ## ------------------------------------------ ##
13506 ## Report this to the AC_PACKAGE_NAME lists.  ##
13507 ## ------------------------------------------ ##
13508 _ASBOX
13509     ) |
13510       sed "s/^/$as_me: WARNING:     /" >&2
13511     ;;
13512 esac
13513 echo "$as_me:$LINENO: checking for $ac_header" >&5
13514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13516   echo $ECHO_N "(cached) $ECHO_C" >&6
13517 else
13518   eval "$as_ac_Header=\$ac_header_preproc"
13519 fi
13520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13522
13523 fi
13524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13525   cat >>confdefs.h <<_ACEOF
13526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13527 _ACEOF
13528
13529 fi
13530
13531 done
13532
13533
13534 for ac_header in sys/file.h
13535 do
13536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13538   echo "$as_me:$LINENO: checking for $ac_header" >&5
13539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13541   echo $ECHO_N "(cached) $ECHO_C" >&6
13542 fi
13543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13545 else
13546   # Is the header compilable?
13547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13549 cat >conftest.$ac_ext <<_ACEOF
13550 /* confdefs.h.  */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h.  */
13555 $ac_includes_default
13556 #include <$ac_header>
13557 _ACEOF
13558 rm -f conftest.$ac_objext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560   (eval $ac_compile) 2>conftest.er1
13561   ac_status=$?
13562   grep -v '^ *+' conftest.er1 >conftest.err
13563   rm -f conftest.er1
13564   cat conftest.err >&5
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); } &&
13567          { ac_try='test -z "$ac_c_werror_flag"
13568                          || test ! -s conftest.err'
13569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570   (eval $ac_try) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; } &&
13574          { ac_try='test -s conftest.$ac_objext'
13575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576   (eval $ac_try) 2>&5
13577   ac_status=$?
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); }; }; then
13580   ac_header_compiler=yes
13581 else
13582   echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13584
13585 ac_header_compiler=no
13586 fi
13587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589 echo "${ECHO_T}$ac_header_compiler" >&6
13590
13591 # Is the header present?
13592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13594 cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h.  */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h.  */
13600 #include <$ac_header>
13601 _ACEOF
13602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13604   ac_status=$?
13605   grep -v '^ *+' conftest.er1 >conftest.err
13606   rm -f conftest.er1
13607   cat conftest.err >&5
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } >/dev/null; then
13610   if test -s conftest.err; then
13611     ac_cpp_err=$ac_c_preproc_warn_flag
13612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13613   else
13614     ac_cpp_err=
13615   fi
13616 else
13617   ac_cpp_err=yes
13618 fi
13619 if test -z "$ac_cpp_err"; then
13620   ac_header_preproc=yes
13621 else
13622   echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13624
13625   ac_header_preproc=no
13626 fi
13627 rm -f conftest.err conftest.$ac_ext
13628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13629 echo "${ECHO_T}$ac_header_preproc" >&6
13630
13631 # So?  What about this header?
13632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13633   yes:no: )
13634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13638     ac_header_preproc=yes
13639     ;;
13640   no:yes:* )
13641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13653     (
13654       cat <<\_ASBOX
13655 ## ------------------------------------------ ##
13656 ## Report this to the AC_PACKAGE_NAME lists.  ##
13657 ## ------------------------------------------ ##
13658 _ASBOX
13659     ) |
13660       sed "s/^/$as_me: WARNING:     /" >&2
13661     ;;
13662 esac
13663 echo "$as_me:$LINENO: checking for $ac_header" >&5
13664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13666   echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668   eval "$as_ac_Header=\$ac_header_preproc"
13669 fi
13670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13672
13673 fi
13674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13675   cat >>confdefs.h <<_ACEOF
13676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13677 _ACEOF
13678
13679 fi
13680
13681 done
13682
13683
13684 for ac_header in sys/filio.h
13685 do
13686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13688   echo "$as_me:$LINENO: checking for $ac_header" >&5
13689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13691   echo $ECHO_N "(cached) $ECHO_C" >&6
13692 fi
13693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13695 else
13696   # Is the header compilable?
13697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705 $ac_includes_default
13706 #include <$ac_header>
13707 _ACEOF
13708 rm -f conftest.$ac_objext
13709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710   (eval $ac_compile) 2>conftest.er1
13711   ac_status=$?
13712   grep -v '^ *+' conftest.er1 >conftest.err
13713   rm -f conftest.er1
13714   cat conftest.err >&5
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); } &&
13717          { ac_try='test -z "$ac_c_werror_flag"
13718                          || test ! -s conftest.err'
13719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720   (eval $ac_try) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; } &&
13724          { ac_try='test -s conftest.$ac_objext'
13725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726   (eval $ac_try) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; }; then
13730   ac_header_compiler=yes
13731 else
13732   echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13734
13735 ac_header_compiler=no
13736 fi
13737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13739 echo "${ECHO_T}$ac_header_compiler" >&6
13740
13741 # Is the header present?
13742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13744 cat >conftest.$ac_ext <<_ACEOF
13745 /* confdefs.h.  */
13746 _ACEOF
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h.  */
13750 #include <$ac_header>
13751 _ACEOF
13752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13753   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13754   ac_status=$?
13755   grep -v '^ *+' conftest.er1 >conftest.err
13756   rm -f conftest.er1
13757   cat conftest.err >&5
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); } >/dev/null; then
13760   if test -s conftest.err; then
13761     ac_cpp_err=$ac_c_preproc_warn_flag
13762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13763   else
13764     ac_cpp_err=
13765   fi
13766 else
13767   ac_cpp_err=yes
13768 fi
13769 if test -z "$ac_cpp_err"; then
13770   ac_header_preproc=yes
13771 else
13772   echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13774
13775   ac_header_preproc=no
13776 fi
13777 rm -f conftest.err conftest.$ac_ext
13778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13779 echo "${ECHO_T}$ac_header_preproc" >&6
13780
13781 # So?  What about this header?
13782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13783   yes:no: )
13784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13788     ac_header_preproc=yes
13789     ;;
13790   no:yes:* )
13791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13803     (
13804       cat <<\_ASBOX
13805 ## ------------------------------------------ ##
13806 ## Report this to the AC_PACKAGE_NAME lists.  ##
13807 ## ------------------------------------------ ##
13808 _ASBOX
13809     ) |
13810       sed "s/^/$as_me: WARNING:     /" >&2
13811     ;;
13812 esac
13813 echo "$as_me:$LINENO: checking for $ac_header" >&5
13814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13816   echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818   eval "$as_ac_Header=\$ac_header_preproc"
13819 fi
13820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13822
13823 fi
13824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13825   cat >>confdefs.h <<_ACEOF
13826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13827 _ACEOF
13828
13829 fi
13830
13831 done
13832
13833
13834 for ac_header in sys/ioctl.h
13835 do
13836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13838   echo "$as_me:$LINENO: checking for $ac_header" >&5
13839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13841   echo $ECHO_N "(cached) $ECHO_C" >&6
13842 fi
13843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13845 else
13846   # Is the header compilable?
13847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13849 cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h.  */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h.  */
13855 $ac_includes_default
13856 #include <$ac_header>
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860   (eval $ac_compile) 2>conftest.er1
13861   ac_status=$?
13862   grep -v '^ *+' conftest.er1 >conftest.err
13863   rm -f conftest.er1
13864   cat conftest.err >&5
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } &&
13867          { ac_try='test -z "$ac_c_werror_flag"
13868                          || test ! -s conftest.err'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; } &&
13874          { ac_try='test -s conftest.$ac_objext'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880   ac_header_compiler=yes
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 ac_header_compiler=no
13886 fi
13887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13889 echo "${ECHO_T}$ac_header_compiler" >&6
13890
13891 # Is the header present?
13892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13894 cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h.  */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h.  */
13900 #include <$ac_header>
13901 _ACEOF
13902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13903   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13904   ac_status=$?
13905   grep -v '^ *+' conftest.er1 >conftest.err
13906   rm -f conftest.er1
13907   cat conftest.err >&5
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); } >/dev/null; then
13910   if test -s conftest.err; then
13911     ac_cpp_err=$ac_c_preproc_warn_flag
13912     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13913   else
13914     ac_cpp_err=
13915   fi
13916 else
13917   ac_cpp_err=yes
13918 fi
13919 if test -z "$ac_cpp_err"; then
13920   ac_header_preproc=yes
13921 else
13922   echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13924
13925   ac_header_preproc=no
13926 fi
13927 rm -f conftest.err conftest.$ac_ext
13928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13929 echo "${ECHO_T}$ac_header_preproc" >&6
13930
13931 # So?  What about this header?
13932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13933   yes:no: )
13934     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13938     ac_header_preproc=yes
13939     ;;
13940   no:yes:* )
13941     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13943     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13944 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13945     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13947     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13948 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13951     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13953     (
13954       cat <<\_ASBOX
13955 ## ------------------------------------------ ##
13956 ## Report this to the AC_PACKAGE_NAME lists.  ##
13957 ## ------------------------------------------ ##
13958 _ASBOX
13959     ) |
13960       sed "s/^/$as_me: WARNING:     /" >&2
13961     ;;
13962 esac
13963 echo "$as_me:$LINENO: checking for $ac_header" >&5
13964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13966   echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968   eval "$as_ac_Header=\$ac_header_preproc"
13969 fi
13970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13972
13973 fi
13974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13975   cat >>confdefs.h <<_ACEOF
13976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13977 _ACEOF
13978
13979 fi
13980
13981 done
13982
13983
13984 for ac_header in sys/param.h
13985 do
13986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13988   echo "$as_me:$LINENO: checking for $ac_header" >&5
13989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13991   echo $ECHO_N "(cached) $ECHO_C" >&6
13992 fi
13993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13995 else
13996   # Is the header compilable?
13997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13999 cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h.  */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h.  */
14005 $ac_includes_default
14006 #include <$ac_header>
14007 _ACEOF
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010   (eval $ac_compile) 2>conftest.er1
14011   ac_status=$?
14012   grep -v '^ *+' conftest.er1 >conftest.err
14013   rm -f conftest.er1
14014   cat conftest.err >&5
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); } &&
14017          { ac_try='test -z "$ac_c_werror_flag"
14018                          || test ! -s conftest.err'
14019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020   (eval $ac_try) 2>&5
14021   ac_status=$?
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); }; } &&
14024          { ac_try='test -s conftest.$ac_objext'
14025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026   (eval $ac_try) 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; }; then
14030   ac_header_compiler=yes
14031 else
14032   echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035 ac_header_compiler=no
14036 fi
14037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14039 echo "${ECHO_T}$ac_header_compiler" >&6
14040
14041 # Is the header present?
14042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050 #include <$ac_header>
14051 _ACEOF
14052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14054   ac_status=$?
14055   grep -v '^ *+' conftest.er1 >conftest.err
14056   rm -f conftest.er1
14057   cat conftest.err >&5
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); } >/dev/null; then
14060   if test -s conftest.err; then
14061     ac_cpp_err=$ac_c_preproc_warn_flag
14062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14063   else
14064     ac_cpp_err=
14065   fi
14066 else
14067   ac_cpp_err=yes
14068 fi
14069 if test -z "$ac_cpp_err"; then
14070   ac_header_preproc=yes
14071 else
14072   echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14074
14075   ac_header_preproc=no
14076 fi
14077 rm -f conftest.err conftest.$ac_ext
14078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14079 echo "${ECHO_T}$ac_header_preproc" >&6
14080
14081 # So?  What about this header?
14082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14083   yes:no: )
14084     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14088     ac_header_preproc=yes
14089     ;;
14090   no:yes:* )
14091     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14093     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14094 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14095     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14097     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14098 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14101     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14103     (
14104       cat <<\_ASBOX
14105 ## ------------------------------------------ ##
14106 ## Report this to the AC_PACKAGE_NAME lists.  ##
14107 ## ------------------------------------------ ##
14108 _ASBOX
14109     ) |
14110       sed "s/^/$as_me: WARNING:     /" >&2
14111     ;;
14112 esac
14113 echo "$as_me:$LINENO: checking for $ac_header" >&5
14114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14116   echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118   eval "$as_ac_Header=\$ac_header_preproc"
14119 fi
14120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14122
14123 fi
14124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14125   cat >>confdefs.h <<_ACEOF
14126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14127 _ACEOF
14128
14129 fi
14130
14131 done
14132
14133
14134 for ac_header in sys/resource.h
14135 do
14136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138   echo "$as_me:$LINENO: checking for $ac_header" >&5
14139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14141   echo $ECHO_N "(cached) $ECHO_C" >&6
14142 fi
14143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14145 else
14146   # Is the header compilable?
14147 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h.  */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h.  */
14155 $ac_includes_default
14156 #include <$ac_header>
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160   (eval $ac_compile) 2>conftest.er1
14161   ac_status=$?
14162   grep -v '^ *+' conftest.er1 >conftest.err
14163   rm -f conftest.er1
14164   cat conftest.err >&5
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); } &&
14167          { ac_try='test -z "$ac_c_werror_flag"
14168                          || test ! -s conftest.err'
14169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170   (eval $ac_try) 2>&5
14171   ac_status=$?
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); }; } &&
14174          { ac_try='test -s conftest.$ac_objext'
14175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176   (eval $ac_try) 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); }; }; then
14180   ac_header_compiler=yes
14181 else
14182   echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 ac_header_compiler=no
14186 fi
14187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14189 echo "${ECHO_T}$ac_header_compiler" >&6
14190
14191 # Is the header present?
14192 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14194 cat >conftest.$ac_ext <<_ACEOF
14195 /* confdefs.h.  */
14196 _ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h.  */
14200 #include <$ac_header>
14201 _ACEOF
14202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14203   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14204   ac_status=$?
14205   grep -v '^ *+' conftest.er1 >conftest.err
14206   rm -f conftest.er1
14207   cat conftest.err >&5
14208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209   (exit $ac_status); } >/dev/null; then
14210   if test -s conftest.err; then
14211     ac_cpp_err=$ac_c_preproc_warn_flag
14212     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14213   else
14214     ac_cpp_err=
14215   fi
14216 else
14217   ac_cpp_err=yes
14218 fi
14219 if test -z "$ac_cpp_err"; then
14220   ac_header_preproc=yes
14221 else
14222   echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14224
14225   ac_header_preproc=no
14226 fi
14227 rm -f conftest.err conftest.$ac_ext
14228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229 echo "${ECHO_T}$ac_header_preproc" >&6
14230
14231 # So?  What about this header?
14232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233   yes:no: )
14234     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14238     ac_header_preproc=yes
14239     ;;
14240   no:yes:* )
14241     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14243     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14244 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14245     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14247     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14248 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14251     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14253     (
14254       cat <<\_ASBOX
14255 ## ------------------------------------------ ##
14256 ## Report this to the AC_PACKAGE_NAME lists.  ##
14257 ## ------------------------------------------ ##
14258 _ASBOX
14259     ) |
14260       sed "s/^/$as_me: WARNING:     /" >&2
14261     ;;
14262 esac
14263 echo "$as_me:$LINENO: checking for $ac_header" >&5
14264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14266   echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268   eval "$as_ac_Header=\$ac_header_preproc"
14269 fi
14270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14272
14273 fi
14274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14275   cat >>confdefs.h <<_ACEOF
14276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14277 _ACEOF
14278
14279 fi
14280
14281 done
14282
14283
14284 for ac_header in sys/proc.h
14285 do
14286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14287 echo "$as_me:$LINENO: checking for $ac_header" >&5
14288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14290   echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292   cat >conftest.$ac_ext <<_ACEOF
14293 /* confdefs.h.  */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h.  */
14298 #if HAVE_SYS_PARAM_H
14299 # include <sys/param.h>
14300 #endif
14301
14302
14303 #include <$ac_header>
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307   (eval $ac_compile) 2>conftest.er1
14308   ac_status=$?
14309   grep -v '^ *+' conftest.er1 >conftest.err
14310   rm -f conftest.er1
14311   cat conftest.err >&5
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } &&
14314          { ac_try='test -z "$ac_c_werror_flag"
14315                          || test ! -s conftest.err'
14316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317   (eval $ac_try) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; } &&
14321          { ac_try='test -s conftest.$ac_objext'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; }; then
14327   eval "$as_ac_Header=yes"
14328 else
14329   echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 eval "$as_ac_Header=no"
14333 fi
14334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14335 fi
14336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14339   cat >>confdefs.h <<_ACEOF
14340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14341 _ACEOF
14342
14343 fi
14344
14345 done
14346
14347
14348 for ac_header in sys/procfs.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
14499 for ac_header in sys/ptrace.h ptrace.h
14500 do
14501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14503   echo "$as_me:$LINENO: checking for $ac_header" >&5
14504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 fi
14508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14510 else
14511   # Is the header compilable?
14512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h.  */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h.  */
14520 $ac_includes_default
14521 #include <$ac_header>
14522 _ACEOF
14523 rm -f conftest.$ac_objext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14525   (eval $ac_compile) 2>conftest.er1
14526   ac_status=$?
14527   grep -v '^ *+' conftest.er1 >conftest.err
14528   rm -f conftest.er1
14529   cat conftest.err >&5
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } &&
14532          { ac_try='test -z "$ac_c_werror_flag"
14533                          || test ! -s conftest.err'
14534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535   (eval $ac_try) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; } &&
14539          { ac_try='test -s conftest.$ac_objext'
14540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541   (eval $ac_try) 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); }; }; then
14545   ac_header_compiler=yes
14546 else
14547   echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550 ac_header_compiler=no
14551 fi
14552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14554 echo "${ECHO_T}$ac_header_compiler" >&6
14555
14556 # Is the header present?
14557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14559 cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h.  */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h.  */
14565 #include <$ac_header>
14566 _ACEOF
14567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14569   ac_status=$?
14570   grep -v '^ *+' conftest.er1 >conftest.err
14571   rm -f conftest.er1
14572   cat conftest.err >&5
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } >/dev/null; then
14575   if test -s conftest.err; then
14576     ac_cpp_err=$ac_c_preproc_warn_flag
14577     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14578   else
14579     ac_cpp_err=
14580   fi
14581 else
14582   ac_cpp_err=yes
14583 fi
14584 if test -z "$ac_cpp_err"; then
14585   ac_header_preproc=yes
14586 else
14587   echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590   ac_header_preproc=no
14591 fi
14592 rm -f conftest.err conftest.$ac_ext
14593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14594 echo "${ECHO_T}$ac_header_preproc" >&6
14595
14596 # So?  What about this header?
14597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14598   yes:no: )
14599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14603     ac_header_preproc=yes
14604     ;;
14605   no:yes:* )
14606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14618     (
14619       cat <<\_ASBOX
14620 ## ------------------------------------------ ##
14621 ## Report this to the AC_PACKAGE_NAME lists.  ##
14622 ## ------------------------------------------ ##
14623 _ASBOX
14624     ) |
14625       sed "s/^/$as_me: WARNING:     /" >&2
14626     ;;
14627 esac
14628 echo "$as_me:$LINENO: checking for $ac_header" >&5
14629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14631   echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633   eval "$as_ac_Header=\$ac_header_preproc"
14634 fi
14635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14637
14638 fi
14639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14640   cat >>confdefs.h <<_ACEOF
14641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14642 _ACEOF
14643
14644 fi
14645
14646 done
14647
14648
14649
14650 for ac_header in sys/reg.h sys/debugreg.h
14651 do
14652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14654   echo "$as_me:$LINENO: checking for $ac_header" >&5
14655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14657   echo $ECHO_N "(cached) $ECHO_C" >&6
14658 fi
14659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14661 else
14662   # Is the header compilable?
14663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14665 cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h.  */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h.  */
14671 $ac_includes_default
14672 #include <$ac_header>
14673 _ACEOF
14674 rm -f conftest.$ac_objext
14675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14676   (eval $ac_compile) 2>conftest.er1
14677   ac_status=$?
14678   grep -v '^ *+' conftest.er1 >conftest.err
14679   rm -f conftest.er1
14680   cat conftest.err >&5
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); } &&
14683          { ac_try='test -z "$ac_c_werror_flag"
14684                          || test ! -s conftest.err'
14685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686   (eval $ac_try) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); }; } &&
14690          { ac_try='test -s conftest.$ac_objext'
14691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692   (eval $ac_try) 2>&5
14693   ac_status=$?
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); }; }; then
14696   ac_header_compiler=yes
14697 else
14698   echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701 ac_header_compiler=no
14702 fi
14703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14705 echo "${ECHO_T}$ac_header_compiler" >&6
14706
14707 # Is the header present?
14708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14710 cat >conftest.$ac_ext <<_ACEOF
14711 /* confdefs.h.  */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h.  */
14716 #include <$ac_header>
14717 _ACEOF
14718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14720   ac_status=$?
14721   grep -v '^ *+' conftest.er1 >conftest.err
14722   rm -f conftest.er1
14723   cat conftest.err >&5
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); } >/dev/null; then
14726   if test -s conftest.err; then
14727     ac_cpp_err=$ac_c_preproc_warn_flag
14728     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14729   else
14730     ac_cpp_err=
14731   fi
14732 else
14733   ac_cpp_err=yes
14734 fi
14735 if test -z "$ac_cpp_err"; then
14736   ac_header_preproc=yes
14737 else
14738   echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14740
14741   ac_header_preproc=no
14742 fi
14743 rm -f conftest.err conftest.$ac_ext
14744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14745 echo "${ECHO_T}$ac_header_preproc" >&6
14746
14747 # So?  What about this header?
14748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14749   yes:no: )
14750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14754     ac_header_preproc=yes
14755     ;;
14756   no:yes:* )
14757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14769     (
14770       cat <<\_ASBOX
14771 ## ------------------------------------------ ##
14772 ## Report this to the AC_PACKAGE_NAME lists.  ##
14773 ## ------------------------------------------ ##
14774 _ASBOX
14775     ) |
14776       sed "s/^/$as_me: WARNING:     /" >&2
14777     ;;
14778 esac
14779 echo "$as_me:$LINENO: checking for $ac_header" >&5
14780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14782   echo $ECHO_N "(cached) $ECHO_C" >&6
14783 else
14784   eval "$as_ac_Header=\$ac_header_preproc"
14785 fi
14786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14788
14789 fi
14790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14791   cat >>confdefs.h <<_ACEOF
14792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14793 _ACEOF
14794
14795 fi
14796
14797 done
14798
14799
14800 for ac_header in sys/select.h
14801 do
14802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14804   echo "$as_me:$LINENO: checking for $ac_header" >&5
14805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14807   echo $ECHO_N "(cached) $ECHO_C" >&6
14808 fi
14809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14811 else
14812   # Is the header compilable?
14813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14815 cat >conftest.$ac_ext <<_ACEOF
14816 /* confdefs.h.  */
14817 _ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h.  */
14821 $ac_includes_default
14822 #include <$ac_header>
14823 _ACEOF
14824 rm -f conftest.$ac_objext
14825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826   (eval $ac_compile) 2>conftest.er1
14827   ac_status=$?
14828   grep -v '^ *+' conftest.er1 >conftest.err
14829   rm -f conftest.er1
14830   cat conftest.err >&5
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); } &&
14833          { ac_try='test -z "$ac_c_werror_flag"
14834                          || test ! -s conftest.err'
14835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836   (eval $ac_try) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); }; } &&
14840          { ac_try='test -s conftest.$ac_objext'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; }; then
14846   ac_header_compiler=yes
14847 else
14848   echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14850
14851 ac_header_compiler=no
14852 fi
14853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14855 echo "${ECHO_T}$ac_header_compiler" >&6
14856
14857 # Is the header present?
14858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14860 cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h.  */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h.  */
14866 #include <$ac_header>
14867 _ACEOF
14868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14870   ac_status=$?
14871   grep -v '^ *+' conftest.er1 >conftest.err
14872   rm -f conftest.er1
14873   cat conftest.err >&5
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); } >/dev/null; then
14876   if test -s conftest.err; then
14877     ac_cpp_err=$ac_c_preproc_warn_flag
14878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14879   else
14880     ac_cpp_err=
14881   fi
14882 else
14883   ac_cpp_err=yes
14884 fi
14885 if test -z "$ac_cpp_err"; then
14886   ac_header_preproc=yes
14887 else
14888   echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14890
14891   ac_header_preproc=no
14892 fi
14893 rm -f conftest.err conftest.$ac_ext
14894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14895 echo "${ECHO_T}$ac_header_preproc" >&6
14896
14897 # So?  What about this header?
14898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14899   yes:no: )
14900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14904     ac_header_preproc=yes
14905     ;;
14906   no:yes:* )
14907     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14909     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14910 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14911     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14913     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14914 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14917     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14919     (
14920       cat <<\_ASBOX
14921 ## ------------------------------------------ ##
14922 ## Report this to the AC_PACKAGE_NAME lists.  ##
14923 ## ------------------------------------------ ##
14924 _ASBOX
14925     ) |
14926       sed "s/^/$as_me: WARNING:     /" >&2
14927     ;;
14928 esac
14929 echo "$as_me:$LINENO: checking for $ac_header" >&5
14930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14932   echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934   eval "$as_ac_Header=\$ac_header_preproc"
14935 fi
14936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14938
14939 fi
14940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14941   cat >>confdefs.h <<_ACEOF
14942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14943 _ACEOF
14944
14945 fi
14946
14947 done
14948
14949
14950 for ac_header in sys/syscall.h
14951 do
14952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14954   echo "$as_me:$LINENO: checking for $ac_header" >&5
14955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14957   echo $ECHO_N "(cached) $ECHO_C" >&6
14958 fi
14959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14961 else
14962   # Is the header compilable?
14963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971 $ac_includes_default
14972 #include <$ac_header>
14973 _ACEOF
14974 rm -f conftest.$ac_objext
14975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14976   (eval $ac_compile) 2>conftest.er1
14977   ac_status=$?
14978   grep -v '^ *+' conftest.er1 >conftest.err
14979   rm -f conftest.er1
14980   cat conftest.err >&5
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); } &&
14983          { ac_try='test -z "$ac_c_werror_flag"
14984                          || test ! -s conftest.err'
14985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986   (eval $ac_try) 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); }; } &&
14990          { ac_try='test -s conftest.$ac_objext'
14991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992   (eval $ac_try) 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; }; then
14996   ac_header_compiler=yes
14997 else
14998   echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15000
15001 ac_header_compiler=no
15002 fi
15003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15005 echo "${ECHO_T}$ac_header_compiler" >&6
15006
15007 # Is the header present?
15008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h.  */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h.  */
15016 #include <$ac_header>
15017 _ACEOF
15018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15020   ac_status=$?
15021   grep -v '^ *+' conftest.er1 >conftest.err
15022   rm -f conftest.er1
15023   cat conftest.err >&5
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); } >/dev/null; then
15026   if test -s conftest.err; then
15027     ac_cpp_err=$ac_c_preproc_warn_flag
15028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15029   else
15030     ac_cpp_err=
15031   fi
15032 else
15033   ac_cpp_err=yes
15034 fi
15035 if test -z "$ac_cpp_err"; then
15036   ac_header_preproc=yes
15037 else
15038   echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15040
15041   ac_header_preproc=no
15042 fi
15043 rm -f conftest.err conftest.$ac_ext
15044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15045 echo "${ECHO_T}$ac_header_preproc" >&6
15046
15047 # So?  What about this header?
15048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15049   yes:no: )
15050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15054     ac_header_preproc=yes
15055     ;;
15056   no:yes:* )
15057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15069     (
15070       cat <<\_ASBOX
15071 ## ------------------------------------------ ##
15072 ## Report this to the AC_PACKAGE_NAME lists.  ##
15073 ## ------------------------------------------ ##
15074 _ASBOX
15075     ) |
15076       sed "s/^/$as_me: WARNING:     /" >&2
15077     ;;
15078 esac
15079 echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   eval "$as_ac_Header=\$ac_header_preproc"
15085 fi
15086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15088
15089 fi
15090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15091   cat >>confdefs.h <<_ACEOF
15092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15093 _ACEOF
15094
15095 fi
15096
15097 done
15098
15099
15100 for ac_header in sys/types.h
15101 do
15102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15104   echo "$as_me:$LINENO: checking for $ac_header" >&5
15105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15107   echo $ECHO_N "(cached) $ECHO_C" >&6
15108 fi
15109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15111 else
15112   # Is the header compilable?
15113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h.  */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h.  */
15121 $ac_includes_default
15122 #include <$ac_header>
15123 _ACEOF
15124 rm -f conftest.$ac_objext
15125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15126   (eval $ac_compile) 2>conftest.er1
15127   ac_status=$?
15128   grep -v '^ *+' conftest.er1 >conftest.err
15129   rm -f conftest.er1
15130   cat conftest.err >&5
15131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132   (exit $ac_status); } &&
15133          { ac_try='test -z "$ac_c_werror_flag"
15134                          || test ! -s conftest.err'
15135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136   (eval $ac_try) 2>&5
15137   ac_status=$?
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); }; } &&
15140          { ac_try='test -s conftest.$ac_objext'
15141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142   (eval $ac_try) 2>&5
15143   ac_status=$?
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); }; }; then
15146   ac_header_compiler=yes
15147 else
15148   echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15150
15151 ac_header_compiler=no
15152 fi
15153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15155 echo "${ECHO_T}$ac_header_compiler" >&6
15156
15157 # Is the header present?
15158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15160 cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h.  */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h.  */
15166 #include <$ac_header>
15167 _ACEOF
15168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15170   ac_status=$?
15171   grep -v '^ *+' conftest.er1 >conftest.err
15172   rm -f conftest.er1
15173   cat conftest.err >&5
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); } >/dev/null; then
15176   if test -s conftest.err; then
15177     ac_cpp_err=$ac_c_preproc_warn_flag
15178     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15179   else
15180     ac_cpp_err=
15181   fi
15182 else
15183   ac_cpp_err=yes
15184 fi
15185 if test -z "$ac_cpp_err"; then
15186   ac_header_preproc=yes
15187 else
15188   echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15190
15191   ac_header_preproc=no
15192 fi
15193 rm -f conftest.err conftest.$ac_ext
15194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15195 echo "${ECHO_T}$ac_header_preproc" >&6
15196
15197 # So?  What about this header?
15198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15199   yes:no: )
15200     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15204     ac_header_preproc=yes
15205     ;;
15206   no:yes:* )
15207     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15209     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15210 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15211     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15213     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15214 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15217     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15219     (
15220       cat <<\_ASBOX
15221 ## ------------------------------------------ ##
15222 ## Report this to the AC_PACKAGE_NAME lists.  ##
15223 ## ------------------------------------------ ##
15224 _ASBOX
15225     ) |
15226       sed "s/^/$as_me: WARNING:     /" >&2
15227     ;;
15228 esac
15229 echo "$as_me:$LINENO: checking for $ac_header" >&5
15230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15232   echo $ECHO_N "(cached) $ECHO_C" >&6
15233 else
15234   eval "$as_ac_Header=\$ac_header_preproc"
15235 fi
15236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15238
15239 fi
15240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15241   cat >>confdefs.h <<_ACEOF
15242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15243 _ACEOF
15244
15245 fi
15246
15247 done
15248
15249
15250 for ac_header in sys/user.h
15251 do
15252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15253 echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15256   echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15258   cat >conftest.$ac_ext <<_ACEOF
15259 /* confdefs.h.  */
15260 _ACEOF
15261 cat confdefs.h >>conftest.$ac_ext
15262 cat >>conftest.$ac_ext <<_ACEOF
15263 /* end confdefs.h.  */
15264 #if HAVE_SYS_PARAM_H
15265 # include <sys/param.h>
15266 #endif
15267
15268
15269 #include <$ac_header>
15270 _ACEOF
15271 rm -f conftest.$ac_objext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15273   (eval $ac_compile) 2>conftest.er1
15274   ac_status=$?
15275   grep -v '^ *+' conftest.er1 >conftest.err
15276   rm -f conftest.er1
15277   cat conftest.err >&5
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); } &&
15280          { ac_try='test -z "$ac_c_werror_flag"
15281                          || test ! -s conftest.err'
15282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283   (eval $ac_try) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; } &&
15287          { ac_try='test -s conftest.$ac_objext'
15288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289   (eval $ac_try) 2>&5
15290   ac_status=$?
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); }; }; then
15293   eval "$as_ac_Header=yes"
15294 else
15295   echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15297
15298 eval "$as_ac_Header=no"
15299 fi
15300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15301 fi
15302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15305   cat >>confdefs.h <<_ACEOF
15306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15307 _ACEOF
15308
15309 fi
15310
15311 done
15312
15313
15314
15315 for ac_header in sys/wait.h wait.h
15316 do
15317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15319   echo "$as_me:$LINENO: checking for $ac_header" >&5
15320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15322   echo $ECHO_N "(cached) $ECHO_C" >&6
15323 fi
15324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15326 else
15327   # Is the header compilable?
15328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15330 cat >conftest.$ac_ext <<_ACEOF
15331 /* confdefs.h.  */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h.  */
15336 $ac_includes_default
15337 #include <$ac_header>
15338 _ACEOF
15339 rm -f conftest.$ac_objext
15340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15341   (eval $ac_compile) 2>conftest.er1
15342   ac_status=$?
15343   grep -v '^ *+' conftest.er1 >conftest.err
15344   rm -f conftest.er1
15345   cat conftest.err >&5
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); } &&
15348          { ac_try='test -z "$ac_c_werror_flag"
15349                          || test ! -s conftest.err'
15350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351   (eval $ac_try) 2>&5
15352   ac_status=$?
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); }; } &&
15355          { ac_try='test -s conftest.$ac_objext'
15356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357   (eval $ac_try) 2>&5
15358   ac_status=$?
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); }; }; then
15361   ac_header_compiler=yes
15362 else
15363   echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366 ac_header_compiler=no
15367 fi
15368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15370 echo "${ECHO_T}$ac_header_compiler" >&6
15371
15372 # Is the header present?
15373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15375 cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381 #include <$ac_header>
15382 _ACEOF
15383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15385   ac_status=$?
15386   grep -v '^ *+' conftest.er1 >conftest.err
15387   rm -f conftest.er1
15388   cat conftest.err >&5
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); } >/dev/null; then
15391   if test -s conftest.err; then
15392     ac_cpp_err=$ac_c_preproc_warn_flag
15393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15394   else
15395     ac_cpp_err=
15396   fi
15397 else
15398   ac_cpp_err=yes
15399 fi
15400 if test -z "$ac_cpp_err"; then
15401   ac_header_preproc=yes
15402 else
15403   echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15405
15406   ac_header_preproc=no
15407 fi
15408 rm -f conftest.err conftest.$ac_ext
15409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15410 echo "${ECHO_T}$ac_header_preproc" >&6
15411
15412 # So?  What about this header?
15413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15414   yes:no: )
15415     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15419     ac_header_preproc=yes
15420     ;;
15421   no:yes:* )
15422     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15424     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15425 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15426     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15428     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15429 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15432     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15434     (
15435       cat <<\_ASBOX
15436 ## ------------------------------------------ ##
15437 ## Report this to the AC_PACKAGE_NAME lists.  ##
15438 ## ------------------------------------------ ##
15439 _ASBOX
15440     ) |
15441       sed "s/^/$as_me: WARNING:     /" >&2
15442     ;;
15443 esac
15444 echo "$as_me:$LINENO: checking for $ac_header" >&5
15445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15447   echo $ECHO_N "(cached) $ECHO_C" >&6
15448 else
15449   eval "$as_ac_Header=\$ac_header_preproc"
15450 fi
15451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15453
15454 fi
15455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15456   cat >>confdefs.h <<_ACEOF
15457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15458 _ACEOF
15459
15460 fi
15461
15462 done
15463
15464
15465
15466
15467 for ac_header in termios.h termio.h sgtty.h
15468 do
15469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15471   echo "$as_me:$LINENO: checking for $ac_header" >&5
15472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 fi
15476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15478 else
15479   # Is the header compilable?
15480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h.  */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h.  */
15488 $ac_includes_default
15489 #include <$ac_header>
15490 _ACEOF
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493   (eval $ac_compile) 2>conftest.er1
15494   ac_status=$?
15495   grep -v '^ *+' conftest.er1 >conftest.err
15496   rm -f conftest.er1
15497   cat conftest.err >&5
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); } &&
15500          { ac_try='test -z "$ac_c_werror_flag"
15501                          || test ! -s conftest.err'
15502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503   (eval $ac_try) 2>&5
15504   ac_status=$?
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); }; } &&
15507          { ac_try='test -s conftest.$ac_objext'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; }; then
15513   ac_header_compiler=yes
15514 else
15515   echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518 ac_header_compiler=no
15519 fi
15520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15522 echo "${ECHO_T}$ac_header_compiler" >&6
15523
15524 # Is the header present?
15525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15527 cat >conftest.$ac_ext <<_ACEOF
15528 /* confdefs.h.  */
15529 _ACEOF
15530 cat confdefs.h >>conftest.$ac_ext
15531 cat >>conftest.$ac_ext <<_ACEOF
15532 /* end confdefs.h.  */
15533 #include <$ac_header>
15534 _ACEOF
15535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15537   ac_status=$?
15538   grep -v '^ *+' conftest.er1 >conftest.err
15539   rm -f conftest.er1
15540   cat conftest.err >&5
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); } >/dev/null; then
15543   if test -s conftest.err; then
15544     ac_cpp_err=$ac_c_preproc_warn_flag
15545     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15546   else
15547     ac_cpp_err=
15548   fi
15549 else
15550   ac_cpp_err=yes
15551 fi
15552 if test -z "$ac_cpp_err"; then
15553   ac_header_preproc=yes
15554 else
15555   echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558   ac_header_preproc=no
15559 fi
15560 rm -f conftest.err conftest.$ac_ext
15561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15562 echo "${ECHO_T}$ac_header_preproc" >&6
15563
15564 # So?  What about this header?
15565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15566   yes:no: )
15567     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15571     ac_header_preproc=yes
15572     ;;
15573   no:yes:* )
15574     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15576     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15577 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15581 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15586     (
15587       cat <<\_ASBOX
15588 ## ------------------------------------------ ##
15589 ## Report this to the AC_PACKAGE_NAME lists.  ##
15590 ## ------------------------------------------ ##
15591 _ASBOX
15592     ) |
15593       sed "s/^/$as_me: WARNING:     /" >&2
15594     ;;
15595 esac
15596 echo "$as_me:$LINENO: checking for $ac_header" >&5
15597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15599   echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601   eval "$as_ac_Header=\$ac_header_preproc"
15602 fi
15603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15605
15606 fi
15607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15608   cat >>confdefs.h <<_ACEOF
15609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15610 _ACEOF
15611
15612 fi
15613
15614 done
15615
15616
15617 for ac_header in unistd.h
15618 do
15619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15621   echo "$as_me:$LINENO: checking for $ac_header" >&5
15622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15624   echo $ECHO_N "(cached) $ECHO_C" >&6
15625 fi
15626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15628 else
15629   # Is the header compilable?
15630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h.  */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h.  */
15638 $ac_includes_default
15639 #include <$ac_header>
15640 _ACEOF
15641 rm -f conftest.$ac_objext
15642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15643   (eval $ac_compile) 2>conftest.er1
15644   ac_status=$?
15645   grep -v '^ *+' conftest.er1 >conftest.err
15646   rm -f conftest.er1
15647   cat conftest.err >&5
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); } &&
15650          { ac_try='test -z "$ac_c_werror_flag"
15651                          || test ! -s conftest.err'
15652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653   (eval $ac_try) 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; } &&
15657          { ac_try='test -s conftest.$ac_objext'
15658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659   (eval $ac_try) 2>&5
15660   ac_status=$?
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); }; }; then
15663   ac_header_compiler=yes
15664 else
15665   echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15667
15668 ac_header_compiler=no
15669 fi
15670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15672 echo "${ECHO_T}$ac_header_compiler" >&6
15673
15674 # Is the header present?
15675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683 #include <$ac_header>
15684 _ACEOF
15685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15686   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15687   ac_status=$?
15688   grep -v '^ *+' conftest.er1 >conftest.err
15689   rm -f conftest.er1
15690   cat conftest.err >&5
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); } >/dev/null; then
15693   if test -s conftest.err; then
15694     ac_cpp_err=$ac_c_preproc_warn_flag
15695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15696   else
15697     ac_cpp_err=
15698   fi
15699 else
15700   ac_cpp_err=yes
15701 fi
15702 if test -z "$ac_cpp_err"; then
15703   ac_header_preproc=yes
15704 else
15705   echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708   ac_header_preproc=no
15709 fi
15710 rm -f conftest.err conftest.$ac_ext
15711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15712 echo "${ECHO_T}$ac_header_preproc" >&6
15713
15714 # So?  What about this header?
15715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15716   yes:no: )
15717     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15721     ac_header_preproc=yes
15722     ;;
15723   no:yes:* )
15724     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15726     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15727 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15728     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15730     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15731 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15734     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15736     (
15737       cat <<\_ASBOX
15738 ## ------------------------------------------ ##
15739 ## Report this to the AC_PACKAGE_NAME lists.  ##
15740 ## ------------------------------------------ ##
15741 _ASBOX
15742     ) |
15743       sed "s/^/$as_me: WARNING:     /" >&2
15744     ;;
15745 esac
15746 echo "$as_me:$LINENO: checking for $ac_header" >&5
15747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15749   echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751   eval "$as_ac_Header=\$ac_header_preproc"
15752 fi
15753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15755
15756 fi
15757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15758   cat >>confdefs.h <<_ACEOF
15759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15760 _ACEOF
15761
15762 fi
15763
15764 done
15765
15766
15767 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15768 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15769 # think that we don't have <curses.h> if we're using GCC.
15770 case $host_os in
15771   solaris2.[789])
15772     if test "$GCC" = yes; then
15773
15774 cat >>confdefs.h <<\_ACEOF
15775 #define _MSE_INT_H 1
15776 _ACEOF
15777
15778     fi ;;
15779 esac
15780
15781
15782
15783
15784 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
15785 do
15786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15788   echo "$as_me:$LINENO: checking for $ac_header" >&5
15789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15791   echo $ECHO_N "(cached) $ECHO_C" >&6
15792 fi
15793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15795 else
15796   # Is the header compilable?
15797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15799 cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h.  */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h.  */
15805 $ac_includes_default
15806 #include <$ac_header>
15807 _ACEOF
15808 rm -f conftest.$ac_objext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15810   (eval $ac_compile) 2>conftest.er1
15811   ac_status=$?
15812   grep -v '^ *+' conftest.er1 >conftest.err
15813   rm -f conftest.er1
15814   cat conftest.err >&5
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); } &&
15817          { ac_try='test -z "$ac_c_werror_flag"
15818                          || test ! -s conftest.err'
15819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820   (eval $ac_try) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; } &&
15824          { ac_try='test -s conftest.$ac_objext'
15825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826   (eval $ac_try) 2>&5
15827   ac_status=$?
15828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829   (exit $ac_status); }; }; then
15830   ac_header_compiler=yes
15831 else
15832   echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835 ac_header_compiler=no
15836 fi
15837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15839 echo "${ECHO_T}$ac_header_compiler" >&6
15840
15841 # Is the header present?
15842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h.  */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h.  */
15850 #include <$ac_header>
15851 _ACEOF
15852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15853   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15854   ac_status=$?
15855   grep -v '^ *+' conftest.er1 >conftest.err
15856   rm -f conftest.er1
15857   cat conftest.err >&5
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); } >/dev/null; then
15860   if test -s conftest.err; then
15861     ac_cpp_err=$ac_c_preproc_warn_flag
15862     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15863   else
15864     ac_cpp_err=
15865   fi
15866 else
15867   ac_cpp_err=yes
15868 fi
15869 if test -z "$ac_cpp_err"; then
15870   ac_header_preproc=yes
15871 else
15872   echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15874
15875   ac_header_preproc=no
15876 fi
15877 rm -f conftest.err conftest.$ac_ext
15878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15879 echo "${ECHO_T}$ac_header_preproc" >&6
15880
15881 # So?  What about this header?
15882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15883   yes:no: )
15884     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15888     ac_header_preproc=yes
15889     ;;
15890   no:yes:* )
15891     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15893     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15894 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15895     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15897     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15898 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15901     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15903     (
15904       cat <<\_ASBOX
15905 ## ------------------------------------------ ##
15906 ## Report this to the AC_PACKAGE_NAME lists.  ##
15907 ## ------------------------------------------ ##
15908 _ASBOX
15909     ) |
15910       sed "s/^/$as_me: WARNING:     /" >&2
15911     ;;
15912 esac
15913 echo "$as_me:$LINENO: checking for $ac_header" >&5
15914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15916   echo $ECHO_N "(cached) $ECHO_C" >&6
15917 else
15918   eval "$as_ac_Header=\$ac_header_preproc"
15919 fi
15920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15922
15923 fi
15924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15925   cat >>confdefs.h <<_ACEOF
15926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15927 _ACEOF
15928
15929 fi
15930
15931 done
15932
15933
15934 for ac_header in ncurses/term.h
15935 do
15936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15938   echo "$as_me:$LINENO: checking for $ac_header" >&5
15939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15941   echo $ECHO_N "(cached) $ECHO_C" >&6
15942 fi
15943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15945 else
15946   # Is the header compilable?
15947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15949 cat >conftest.$ac_ext <<_ACEOF
15950 /* confdefs.h.  */
15951 _ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h.  */
15955 $ac_includes_default
15956 #include <$ac_header>
15957 _ACEOF
15958 rm -f conftest.$ac_objext
15959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15960   (eval $ac_compile) 2>conftest.er1
15961   ac_status=$?
15962   grep -v '^ *+' conftest.er1 >conftest.err
15963   rm -f conftest.er1
15964   cat conftest.err >&5
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); } &&
15967          { ac_try='test -z "$ac_c_werror_flag"
15968                          || test ! -s conftest.err'
15969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970   (eval $ac_try) 2>&5
15971   ac_status=$?
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); }; } &&
15974          { ac_try='test -s conftest.$ac_objext'
15975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976   (eval $ac_try) 2>&5
15977   ac_status=$?
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); }; }; then
15980   ac_header_compiler=yes
15981 else
15982   echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985 ac_header_compiler=no
15986 fi
15987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15989 echo "${ECHO_T}$ac_header_compiler" >&6
15990
15991 # Is the header present?
15992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15994 cat >conftest.$ac_ext <<_ACEOF
15995 /* confdefs.h.  */
15996 _ACEOF
15997 cat confdefs.h >>conftest.$ac_ext
15998 cat >>conftest.$ac_ext <<_ACEOF
15999 /* end confdefs.h.  */
16000 #include <$ac_header>
16001 _ACEOF
16002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16004   ac_status=$?
16005   grep -v '^ *+' conftest.er1 >conftest.err
16006   rm -f conftest.er1
16007   cat conftest.err >&5
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } >/dev/null; then
16010   if test -s conftest.err; then
16011     ac_cpp_err=$ac_c_preproc_warn_flag
16012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16013   else
16014     ac_cpp_err=
16015   fi
16016 else
16017   ac_cpp_err=yes
16018 fi
16019 if test -z "$ac_cpp_err"; then
16020   ac_header_preproc=yes
16021 else
16022   echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16024
16025   ac_header_preproc=no
16026 fi
16027 rm -f conftest.err conftest.$ac_ext
16028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16029 echo "${ECHO_T}$ac_header_preproc" >&6
16030
16031 # So?  What about this header?
16032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16033   yes:no: )
16034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16038     ac_header_preproc=yes
16039     ;;
16040   no:yes:* )
16041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16053     (
16054       cat <<\_ASBOX
16055 ## ------------------------------------------ ##
16056 ## Report this to the AC_PACKAGE_NAME lists.  ##
16057 ## ------------------------------------------ ##
16058 _ASBOX
16059     ) |
16060       sed "s/^/$as_me: WARNING:     /" >&2
16061     ;;
16062 esac
16063 echo "$as_me:$LINENO: checking for $ac_header" >&5
16064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16066   echo $ECHO_N "(cached) $ECHO_C" >&6
16067 else
16068   eval "$as_ac_Header=\$ac_header_preproc"
16069 fi
16070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16072
16073 fi
16074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16075   cat >>confdefs.h <<_ACEOF
16076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16077 _ACEOF
16078
16079 fi
16080
16081 done
16082
16083
16084 for ac_header in term.h
16085 do
16086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16087 echo "$as_me:$LINENO: checking for $ac_header" >&5
16088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16090   echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092   cat >conftest.$ac_ext <<_ACEOF
16093 /* confdefs.h.  */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h.  */
16098 #if HAVE_CURSES_H
16099 # include <curses.h>
16100 #endif
16101
16102
16103 #include <$ac_header>
16104 _ACEOF
16105 rm -f conftest.$ac_objext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16107   (eval $ac_compile) 2>conftest.er1
16108   ac_status=$?
16109   grep -v '^ *+' conftest.er1 >conftest.err
16110   rm -f conftest.er1
16111   cat conftest.err >&5
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); } &&
16114          { ac_try='test -z "$ac_c_werror_flag"
16115                          || test ! -s conftest.err'
16116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117   (eval $ac_try) 2>&5
16118   ac_status=$?
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); }; } &&
16121          { ac_try='test -s conftest.$ac_objext'
16122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123   (eval $ac_try) 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; }; then
16127   eval "$as_ac_Header=yes"
16128 else
16129   echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132 eval "$as_ac_Header=no"
16133 fi
16134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16135 fi
16136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16139   cat >>confdefs.h <<_ACEOF
16140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16141 _ACEOF
16142
16143 fi
16144
16145 done
16146
16147
16148 # Check for HP/UX 64-bit shared library support
16149
16150 for ac_header in elf_hp.h
16151 do
16152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16154   echo "$as_me:$LINENO: checking for $ac_header" >&5
16155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16157   echo $ECHO_N "(cached) $ECHO_C" >&6
16158 fi
16159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16161 else
16162   # Is the header compilable?
16163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16165 cat >conftest.$ac_ext <<_ACEOF
16166 /* confdefs.h.  */
16167 _ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h.  */
16171 $ac_includes_default
16172 #include <$ac_header>
16173 _ACEOF
16174 rm -f conftest.$ac_objext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176   (eval $ac_compile) 2>conftest.er1
16177   ac_status=$?
16178   grep -v '^ *+' conftest.er1 >conftest.err
16179   rm -f conftest.er1
16180   cat conftest.err >&5
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); } &&
16183          { ac_try='test -z "$ac_c_werror_flag"
16184                          || test ! -s conftest.err'
16185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186   (eval $ac_try) 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); }; } &&
16190          { ac_try='test -s conftest.$ac_objext'
16191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192   (eval $ac_try) 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); }; }; then
16196   ac_header_compiler=yes
16197 else
16198   echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16200
16201 ac_header_compiler=no
16202 fi
16203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16205 echo "${ECHO_T}$ac_header_compiler" >&6
16206
16207 # Is the header present?
16208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16210 cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h.  */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h.  */
16216 #include <$ac_header>
16217 _ACEOF
16218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16220   ac_status=$?
16221   grep -v '^ *+' conftest.er1 >conftest.err
16222   rm -f conftest.er1
16223   cat conftest.err >&5
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); } >/dev/null; then
16226   if test -s conftest.err; then
16227     ac_cpp_err=$ac_c_preproc_warn_flag
16228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16229   else
16230     ac_cpp_err=
16231   fi
16232 else
16233   ac_cpp_err=yes
16234 fi
16235 if test -z "$ac_cpp_err"; then
16236   ac_header_preproc=yes
16237 else
16238   echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16240
16241   ac_header_preproc=no
16242 fi
16243 rm -f conftest.err conftest.$ac_ext
16244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16245 echo "${ECHO_T}$ac_header_preproc" >&6
16246
16247 # So?  What about this header?
16248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16249   yes:no: )
16250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16254     ac_header_preproc=yes
16255     ;;
16256   no:yes:* )
16257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16269     (
16270       cat <<\_ASBOX
16271 ## ------------------------------------------ ##
16272 ## Report this to the AC_PACKAGE_NAME lists.  ##
16273 ## ------------------------------------------ ##
16274 _ASBOX
16275     ) |
16276       sed "s/^/$as_me: WARNING:     /" >&2
16277     ;;
16278 esac
16279 echo "$as_me:$LINENO: checking for $ac_header" >&5
16280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16282   echo $ECHO_N "(cached) $ECHO_C" >&6
16283 else
16284   eval "$as_ac_Header=\$ac_header_preproc"
16285 fi
16286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16288
16289 fi
16290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16291   cat >>confdefs.h <<_ACEOF
16292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16293 _ACEOF
16294
16295 fi
16296
16297 done
16298
16299
16300 # FIXME: kettenis/20030102: In most cases we include these
16301 # unconditionally, so what's the point in checking these?
16302
16303
16304 for ac_header in ctype.h time.h
16305 do
16306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16308   echo "$as_me:$LINENO: checking for $ac_header" >&5
16309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16311   echo $ECHO_N "(cached) $ECHO_C" >&6
16312 fi
16313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16315 else
16316   # Is the header compilable?
16317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16319 cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h.  */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h.  */
16325 $ac_includes_default
16326 #include <$ac_header>
16327 _ACEOF
16328 rm -f conftest.$ac_objext
16329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16330   (eval $ac_compile) 2>conftest.er1
16331   ac_status=$?
16332   grep -v '^ *+' conftest.er1 >conftest.err
16333   rm -f conftest.er1
16334   cat conftest.err >&5
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); } &&
16337          { ac_try='test -z "$ac_c_werror_flag"
16338                          || test ! -s conftest.err'
16339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340   (eval $ac_try) 2>&5
16341   ac_status=$?
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); }; } &&
16344          { ac_try='test -s conftest.$ac_objext'
16345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346   (eval $ac_try) 2>&5
16347   ac_status=$?
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); }; }; then
16350   ac_header_compiler=yes
16351 else
16352   echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.$ac_ext >&5
16354
16355 ac_header_compiler=no
16356 fi
16357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16359 echo "${ECHO_T}$ac_header_compiler" >&6
16360
16361 # Is the header present?
16362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16364 cat >conftest.$ac_ext <<_ACEOF
16365 /* confdefs.h.  */
16366 _ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h.  */
16370 #include <$ac_header>
16371 _ACEOF
16372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16374   ac_status=$?
16375   grep -v '^ *+' conftest.er1 >conftest.err
16376   rm -f conftest.er1
16377   cat conftest.err >&5
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); } >/dev/null; then
16380   if test -s conftest.err; then
16381     ac_cpp_err=$ac_c_preproc_warn_flag
16382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16383   else
16384     ac_cpp_err=
16385   fi
16386 else
16387   ac_cpp_err=yes
16388 fi
16389 if test -z "$ac_cpp_err"; then
16390   ac_header_preproc=yes
16391 else
16392   echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16394
16395   ac_header_preproc=no
16396 fi
16397 rm -f conftest.err conftest.$ac_ext
16398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16399 echo "${ECHO_T}$ac_header_preproc" >&6
16400
16401 # So?  What about this header?
16402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16403   yes:no: )
16404     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16408     ac_header_preproc=yes
16409     ;;
16410   no:yes:* )
16411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16413     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16414 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16415     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16417     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16418 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16421     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16423     (
16424       cat <<\_ASBOX
16425 ## ------------------------------------------ ##
16426 ## Report this to the AC_PACKAGE_NAME lists.  ##
16427 ## ------------------------------------------ ##
16428 _ASBOX
16429     ) |
16430       sed "s/^/$as_me: WARNING:     /" >&2
16431     ;;
16432 esac
16433 echo "$as_me:$LINENO: checking for $ac_header" >&5
16434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16436   echo $ECHO_N "(cached) $ECHO_C" >&6
16437 else
16438   eval "$as_ac_Header=\$ac_header_preproc"
16439 fi
16440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16442
16443 fi
16444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16445   cat >>confdefs.h <<_ACEOF
16446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16447 _ACEOF
16448
16449 fi
16450
16451 done
16452
16453
16454 # ------------------------- #
16455 # Checks for declarations.  #
16456 # ------------------------- #
16457
16458 echo "$as_me:$LINENO: checking whether free is declared" >&5
16459 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16460 if test "${ac_cv_have_decl_free+set}" = set; then
16461   echo $ECHO_N "(cached) $ECHO_C" >&6
16462 else
16463   cat >conftest.$ac_ext <<_ACEOF
16464 /* confdefs.h.  */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h.  */
16469 $ac_includes_default
16470 int
16471 main ()
16472 {
16473 #ifndef free
16474   char *p = (char *) free;
16475 #endif
16476
16477   ;
16478   return 0;
16479 }
16480 _ACEOF
16481 rm -f conftest.$ac_objext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16483   (eval $ac_compile) 2>conftest.er1
16484   ac_status=$?
16485   grep -v '^ *+' conftest.er1 >conftest.err
16486   rm -f conftest.er1
16487   cat conftest.err >&5
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); } &&
16490          { ac_try='test -z "$ac_c_werror_flag"
16491                          || test ! -s conftest.err'
16492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493   (eval $ac_try) 2>&5
16494   ac_status=$?
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); }; } &&
16497          { ac_try='test -s conftest.$ac_objext'
16498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499   (eval $ac_try) 2>&5
16500   ac_status=$?
16501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502   (exit $ac_status); }; }; then
16503   ac_cv_have_decl_free=yes
16504 else
16505   echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16507
16508 ac_cv_have_decl_free=no
16509 fi
16510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16511 fi
16512 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16513 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16514 if test $ac_cv_have_decl_free = yes; then
16515
16516 cat >>confdefs.h <<_ACEOF
16517 #define HAVE_DECL_FREE 1
16518 _ACEOF
16519
16520
16521 else
16522   cat >>confdefs.h <<_ACEOF
16523 #define HAVE_DECL_FREE 0
16524 _ACEOF
16525
16526
16527 fi
16528 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16529 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16530 if test "${ac_cv_have_decl_malloc+set}" = set; then
16531   echo $ECHO_N "(cached) $ECHO_C" >&6
16532 else
16533   cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h.  */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h.  */
16539 $ac_includes_default
16540 int
16541 main ()
16542 {
16543 #ifndef malloc
16544   char *p = (char *) malloc;
16545 #endif
16546
16547   ;
16548   return 0;
16549 }
16550 _ACEOF
16551 rm -f conftest.$ac_objext
16552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16553   (eval $ac_compile) 2>conftest.er1
16554   ac_status=$?
16555   grep -v '^ *+' conftest.er1 >conftest.err
16556   rm -f conftest.er1
16557   cat conftest.err >&5
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } &&
16560          { ac_try='test -z "$ac_c_werror_flag"
16561                          || test ! -s conftest.err'
16562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563   (eval $ac_try) 2>&5
16564   ac_status=$?
16565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566   (exit $ac_status); }; } &&
16567          { ac_try='test -s conftest.$ac_objext'
16568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569   (eval $ac_try) 2>&5
16570   ac_status=$?
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); }; }; then
16573   ac_cv_have_decl_malloc=yes
16574 else
16575   echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16577
16578 ac_cv_have_decl_malloc=no
16579 fi
16580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16581 fi
16582 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16583 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16584 if test $ac_cv_have_decl_malloc = yes; then
16585
16586 cat >>confdefs.h <<_ACEOF
16587 #define HAVE_DECL_MALLOC 1
16588 _ACEOF
16589
16590
16591 else
16592   cat >>confdefs.h <<_ACEOF
16593 #define HAVE_DECL_MALLOC 0
16594 _ACEOF
16595
16596
16597 fi
16598 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16599 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16600 if test "${ac_cv_have_decl_realloc+set}" = set; then
16601   echo $ECHO_N "(cached) $ECHO_C" >&6
16602 else
16603   cat >conftest.$ac_ext <<_ACEOF
16604 /* confdefs.h.  */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h.  */
16609 $ac_includes_default
16610 int
16611 main ()
16612 {
16613 #ifndef realloc
16614   char *p = (char *) realloc;
16615 #endif
16616
16617   ;
16618   return 0;
16619 }
16620 _ACEOF
16621 rm -f conftest.$ac_objext
16622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16623   (eval $ac_compile) 2>conftest.er1
16624   ac_status=$?
16625   grep -v '^ *+' conftest.er1 >conftest.err
16626   rm -f conftest.er1
16627   cat conftest.err >&5
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); } &&
16630          { ac_try='test -z "$ac_c_werror_flag"
16631                          || test ! -s conftest.err'
16632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633   (eval $ac_try) 2>&5
16634   ac_status=$?
16635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636   (exit $ac_status); }; } &&
16637          { ac_try='test -s conftest.$ac_objext'
16638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639   (eval $ac_try) 2>&5
16640   ac_status=$?
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); }; }; then
16643   ac_cv_have_decl_realloc=yes
16644 else
16645   echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16647
16648 ac_cv_have_decl_realloc=no
16649 fi
16650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16651 fi
16652 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16653 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16654 if test $ac_cv_have_decl_realloc = yes; then
16655
16656 cat >>confdefs.h <<_ACEOF
16657 #define HAVE_DECL_REALLOC 1
16658 _ACEOF
16659
16660
16661 else
16662   cat >>confdefs.h <<_ACEOF
16663 #define HAVE_DECL_REALLOC 0
16664 _ACEOF
16665
16666
16667 fi
16668
16669
16670 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16671 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
16672 if test "${ac_cv_have_decl_strerror+set}" = set; then
16673   echo $ECHO_N "(cached) $ECHO_C" >&6
16674 else
16675   cat >conftest.$ac_ext <<_ACEOF
16676 /* confdefs.h.  */
16677 _ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h.  */
16681 $ac_includes_default
16682 int
16683 main ()
16684 {
16685 #ifndef strerror
16686   char *p = (char *) strerror;
16687 #endif
16688
16689   ;
16690   return 0;
16691 }
16692 _ACEOF
16693 rm -f conftest.$ac_objext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16695   (eval $ac_compile) 2>conftest.er1
16696   ac_status=$?
16697   grep -v '^ *+' conftest.er1 >conftest.err
16698   rm -f conftest.er1
16699   cat conftest.err >&5
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); } &&
16702          { ac_try='test -z "$ac_c_werror_flag"
16703                          || test ! -s conftest.err'
16704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705   (eval $ac_try) 2>&5
16706   ac_status=$?
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); }; } &&
16709          { ac_try='test -s conftest.$ac_objext'
16710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711   (eval $ac_try) 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; }; then
16715   ac_cv_have_decl_strerror=yes
16716 else
16717   echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16719
16720 ac_cv_have_decl_strerror=no
16721 fi
16722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16723 fi
16724 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16725 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
16726 if test $ac_cv_have_decl_strerror = yes; then
16727
16728 cat >>confdefs.h <<_ACEOF
16729 #define HAVE_DECL_STRERROR 1
16730 _ACEOF
16731
16732
16733 else
16734   cat >>confdefs.h <<_ACEOF
16735 #define HAVE_DECL_STRERROR 0
16736 _ACEOF
16737
16738
16739 fi
16740 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16741 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16742 if test "${ac_cv_have_decl_strstr+set}" = set; then
16743   echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745   cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h.  */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h.  */
16751 $ac_includes_default
16752 int
16753 main ()
16754 {
16755 #ifndef strstr
16756   char *p = (char *) strstr;
16757 #endif
16758
16759   ;
16760   return 0;
16761 }
16762 _ACEOF
16763 rm -f conftest.$ac_objext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16765   (eval $ac_compile) 2>conftest.er1
16766   ac_status=$?
16767   grep -v '^ *+' conftest.er1 >conftest.err
16768   rm -f conftest.er1
16769   cat conftest.err >&5
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -z "$ac_c_werror_flag"
16773                          || test ! -s conftest.err'
16774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775   (eval $ac_try) 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); }; } &&
16779          { ac_try='test -s conftest.$ac_objext'
16780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781   (eval $ac_try) 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }; }; then
16785   ac_cv_have_decl_strstr=yes
16786 else
16787   echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790 ac_cv_have_decl_strstr=no
16791 fi
16792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16793 fi
16794 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16795 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16796 if test $ac_cv_have_decl_strstr = yes; then
16797
16798 cat >>confdefs.h <<_ACEOF
16799 #define HAVE_DECL_STRSTR 1
16800 _ACEOF
16801
16802
16803 else
16804   cat >>confdefs.h <<_ACEOF
16805 #define HAVE_DECL_STRSTR 0
16806 _ACEOF
16807
16808
16809 fi
16810
16811
16812 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16813 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
16814 if test "${ac_cv_have_decl_getopt+set}" = set; then
16815   echo $ECHO_N "(cached) $ECHO_C" >&6
16816 else
16817   cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h.  */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h.  */
16823 $ac_includes_default
16824 int
16825 main ()
16826 {
16827 #ifndef getopt
16828   char *p = (char *) getopt;
16829 #endif
16830
16831   ;
16832   return 0;
16833 }
16834 _ACEOF
16835 rm -f conftest.$ac_objext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16837   (eval $ac_compile) 2>conftest.er1
16838   ac_status=$?
16839   grep -v '^ *+' conftest.er1 >conftest.err
16840   rm -f conftest.er1
16841   cat conftest.err >&5
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); } &&
16844          { ac_try='test -z "$ac_c_werror_flag"
16845                          || test ! -s conftest.err'
16846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847   (eval $ac_try) 2>&5
16848   ac_status=$?
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); }; } &&
16851          { ac_try='test -s conftest.$ac_objext'
16852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853   (eval $ac_try) 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); }; }; then
16857   ac_cv_have_decl_getopt=yes
16858 else
16859   echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16861
16862 ac_cv_have_decl_getopt=no
16863 fi
16864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16865 fi
16866 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16867 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
16868 if test $ac_cv_have_decl_getopt = yes; then
16869
16870 cat >>confdefs.h <<_ACEOF
16871 #define HAVE_DECL_GETOPT 1
16872 _ACEOF
16873
16874
16875 else
16876   cat >>confdefs.h <<_ACEOF
16877 #define HAVE_DECL_GETOPT 0
16878 _ACEOF
16879
16880
16881 fi
16882 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16883 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16884 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16885   echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887   cat >conftest.$ac_ext <<_ACEOF
16888 /* confdefs.h.  */
16889 _ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h.  */
16893 $ac_includes_default
16894 int
16895 main ()
16896 {
16897 #ifndef snprintf
16898   char *p = (char *) snprintf;
16899 #endif
16900
16901   ;
16902   return 0;
16903 }
16904 _ACEOF
16905 rm -f conftest.$ac_objext
16906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16907   (eval $ac_compile) 2>conftest.er1
16908   ac_status=$?
16909   grep -v '^ *+' conftest.er1 >conftest.err
16910   rm -f conftest.er1
16911   cat conftest.err >&5
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); } &&
16914          { ac_try='test -z "$ac_c_werror_flag"
16915                          || test ! -s conftest.err'
16916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917   (eval $ac_try) 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }; } &&
16921          { ac_try='test -s conftest.$ac_objext'
16922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923   (eval $ac_try) 2>&5
16924   ac_status=$?
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); }; }; then
16927   ac_cv_have_decl_snprintf=yes
16928 else
16929   echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16931
16932 ac_cv_have_decl_snprintf=no
16933 fi
16934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16935 fi
16936 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16937 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16938 if test $ac_cv_have_decl_snprintf = yes; then
16939
16940 cat >>confdefs.h <<_ACEOF
16941 #define HAVE_DECL_SNPRINTF 1
16942 _ACEOF
16943
16944
16945 else
16946   cat >>confdefs.h <<_ACEOF
16947 #define HAVE_DECL_SNPRINTF 0
16948 _ACEOF
16949
16950
16951 fi
16952 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16953 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16954 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16955   echo $ECHO_N "(cached) $ECHO_C" >&6
16956 else
16957   cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963 $ac_includes_default
16964 int
16965 main ()
16966 {
16967 #ifndef vsnprintf
16968   char *p = (char *) vsnprintf;
16969 #endif
16970
16971   ;
16972   return 0;
16973 }
16974 _ACEOF
16975 rm -f conftest.$ac_objext
16976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16977   (eval $ac_compile) 2>conftest.er1
16978   ac_status=$?
16979   grep -v '^ *+' conftest.er1 >conftest.err
16980   rm -f conftest.er1
16981   cat conftest.err >&5
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); } &&
16984          { ac_try='test -z "$ac_c_werror_flag"
16985                          || test ! -s conftest.err'
16986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987   (eval $ac_try) 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); }; } &&
16991          { ac_try='test -s conftest.$ac_objext'
16992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993   (eval $ac_try) 2>&5
16994   ac_status=$?
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); }; }; then
16997   ac_cv_have_decl_vsnprintf=yes
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002 ac_cv_have_decl_vsnprintf=no
17003 fi
17004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17005 fi
17006 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17007 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17008 if test $ac_cv_have_decl_vsnprintf = yes; then
17009
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_DECL_VSNPRINTF 1
17012 _ACEOF
17013
17014
17015 else
17016   cat >>confdefs.h <<_ACEOF
17017 #define HAVE_DECL_VSNPRINTF 0
17018 _ACEOF
17019
17020
17021 fi
17022
17023
17024
17025 # ----------------------- #
17026 # Checks for structures.  #
17027 # ----------------------- #
17028
17029 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17030 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17031 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17032   echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034   cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h.  */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h.  */
17040 $ac_includes_default
17041 int
17042 main ()
17043 {
17044 static struct stat ac_aggr;
17045 if (ac_aggr.st_blocks)
17046 return 0;
17047   ;
17048   return 0;
17049 }
17050 _ACEOF
17051 rm -f conftest.$ac_objext
17052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053   (eval $ac_compile) 2>conftest.er1
17054   ac_status=$?
17055   grep -v '^ *+' conftest.er1 >conftest.err
17056   rm -f conftest.er1
17057   cat conftest.err >&5
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); } &&
17060          { ac_try='test -z "$ac_c_werror_flag"
17061                          || test ! -s conftest.err'
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); }; } &&
17067          { ac_try='test -s conftest.$ac_objext'
17068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069   (eval $ac_try) 2>&5
17070   ac_status=$?
17071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); }; }; then
17073   ac_cv_member_struct_stat_st_blocks=yes
17074 else
17075   echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 cat >conftest.$ac_ext <<_ACEOF
17079 /* confdefs.h.  */
17080 _ACEOF
17081 cat confdefs.h >>conftest.$ac_ext
17082 cat >>conftest.$ac_ext <<_ACEOF
17083 /* end confdefs.h.  */
17084 $ac_includes_default
17085 int
17086 main ()
17087 {
17088 static struct stat ac_aggr;
17089 if (sizeof ac_aggr.st_blocks)
17090 return 0;
17091   ;
17092   return 0;
17093 }
17094 _ACEOF
17095 rm -f conftest.$ac_objext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17097   (eval $ac_compile) 2>conftest.er1
17098   ac_status=$?
17099   grep -v '^ *+' conftest.er1 >conftest.err
17100   rm -f conftest.er1
17101   cat conftest.err >&5
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); } &&
17104          { ac_try='test -z "$ac_c_werror_flag"
17105                          || test ! -s conftest.err'
17106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107   (eval $ac_try) 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; } &&
17111          { ac_try='test -s conftest.$ac_objext'
17112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113   (eval $ac_try) 2>&5
17114   ac_status=$?
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); }; }; then
17117   ac_cv_member_struct_stat_st_blocks=yes
17118 else
17119   echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 ac_cv_member_struct_stat_st_blocks=no
17123 fi
17124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17125 fi
17126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17127 fi
17128 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17129 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17130 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17131
17132 cat >>confdefs.h <<_ACEOF
17133 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17134 _ACEOF
17135
17136
17137 fi
17138
17139 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17140 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17141 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17142   echo $ECHO_N "(cached) $ECHO_C" >&6
17143 else
17144   cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150 $ac_includes_default
17151 int
17152 main ()
17153 {
17154 static struct stat ac_aggr;
17155 if (ac_aggr.st_blksize)
17156 return 0;
17157   ;
17158   return 0;
17159 }
17160 _ACEOF
17161 rm -f conftest.$ac_objext
17162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17163   (eval $ac_compile) 2>conftest.er1
17164   ac_status=$?
17165   grep -v '^ *+' conftest.er1 >conftest.err
17166   rm -f conftest.er1
17167   cat conftest.err >&5
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); } &&
17170          { ac_try='test -z "$ac_c_werror_flag"
17171                          || test ! -s conftest.err'
17172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173   (eval $ac_try) 2>&5
17174   ac_status=$?
17175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176   (exit $ac_status); }; } &&
17177          { ac_try='test -s conftest.$ac_objext'
17178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179   (eval $ac_try) 2>&5
17180   ac_status=$?
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); }; }; then
17183   ac_cv_member_struct_stat_st_blksize=yes
17184 else
17185   echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17187
17188 cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h.  */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h.  */
17194 $ac_includes_default
17195 int
17196 main ()
17197 {
17198 static struct stat ac_aggr;
17199 if (sizeof ac_aggr.st_blksize)
17200 return 0;
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 rm -f conftest.$ac_objext
17206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17207   (eval $ac_compile) 2>conftest.er1
17208   ac_status=$?
17209   grep -v '^ *+' conftest.er1 >conftest.err
17210   rm -f conftest.er1
17211   cat conftest.err >&5
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); } &&
17214          { ac_try='test -z "$ac_c_werror_flag"
17215                          || test ! -s conftest.err'
17216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217   (eval $ac_try) 2>&5
17218   ac_status=$?
17219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220   (exit $ac_status); }; } &&
17221          { ac_try='test -s conftest.$ac_objext'
17222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223   (eval $ac_try) 2>&5
17224   ac_status=$?
17225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226   (exit $ac_status); }; }; then
17227   ac_cv_member_struct_stat_st_blksize=yes
17228 else
17229   echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17231
17232 ac_cv_member_struct_stat_st_blksize=no
17233 fi
17234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17235 fi
17236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17237 fi
17238 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17239 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17240 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17241
17242 cat >>confdefs.h <<_ACEOF
17243 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17244 _ACEOF
17245
17246
17247 fi
17248
17249
17250 # ------------------ #
17251 # Checks for types.  #
17252 # ------------------ #
17253
17254 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17255 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17256 if test "${ac_cv_type_signal+set}" = set; then
17257   echo $ECHO_N "(cached) $ECHO_C" >&6
17258 else
17259   cat >conftest.$ac_ext <<_ACEOF
17260 /* confdefs.h.  */
17261 _ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h.  */
17265 #include <sys/types.h>
17266 #include <signal.h>
17267 #ifdef signal
17268 # undef signal
17269 #endif
17270 #ifdef __cplusplus
17271 extern "C" void (*signal (int, void (*)(int)))(int);
17272 #else
17273 void (*signal ()) ();
17274 #endif
17275
17276 int
17277 main ()
17278 {
17279 int i;
17280   ;
17281   return 0;
17282 }
17283 _ACEOF
17284 rm -f conftest.$ac_objext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17286   (eval $ac_compile) 2>conftest.er1
17287   ac_status=$?
17288   grep -v '^ *+' conftest.er1 >conftest.err
17289   rm -f conftest.er1
17290   cat conftest.err >&5
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); } &&
17293          { ac_try='test -z "$ac_c_werror_flag"
17294                          || test ! -s conftest.err'
17295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296   (eval $ac_try) 2>&5
17297   ac_status=$?
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); }; } &&
17300          { ac_try='test -s conftest.$ac_objext'
17301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302   (eval $ac_try) 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); }; }; then
17306   ac_cv_type_signal=void
17307 else
17308   echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17310
17311 ac_cv_type_signal=int
17312 fi
17313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17314 fi
17315 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17316 echo "${ECHO_T}$ac_cv_type_signal" >&6
17317
17318 cat >>confdefs.h <<_ACEOF
17319 #define RETSIGTYPE $ac_cv_type_signal
17320 _ACEOF
17321
17322
17323 echo "$as_me:$LINENO: checking for socklen_t" >&5
17324 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17325 if test "${ac_cv_type_socklen_t+set}" = set; then
17326   echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328   cat >conftest.$ac_ext <<_ACEOF
17329 /* confdefs.h.  */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h.  */
17334 #include <sys/types.h>
17335 #include <sys/socket.h>
17336
17337
17338 int
17339 main ()
17340 {
17341 if ((socklen_t *) 0)
17342   return 0;
17343 if (sizeof (socklen_t))
17344   return 0;
17345   ;
17346   return 0;
17347 }
17348 _ACEOF
17349 rm -f conftest.$ac_objext
17350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17351   (eval $ac_compile) 2>conftest.er1
17352   ac_status=$?
17353   grep -v '^ *+' conftest.er1 >conftest.err
17354   rm -f conftest.er1
17355   cat conftest.err >&5
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); } &&
17358          { ac_try='test -z "$ac_c_werror_flag"
17359                          || test ! -s conftest.err'
17360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361   (eval $ac_try) 2>&5
17362   ac_status=$?
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); }; } &&
17365          { ac_try='test -s conftest.$ac_objext'
17366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367   (eval $ac_try) 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; }; then
17371   ac_cv_type_socklen_t=yes
17372 else
17373   echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17375
17376 ac_cv_type_socklen_t=no
17377 fi
17378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17379 fi
17380 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17381 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17382 if test $ac_cv_type_socklen_t = yes; then
17383
17384 cat >>confdefs.h <<_ACEOF
17385 #define HAVE_SOCKLEN_T 1
17386 _ACEOF
17387
17388
17389 fi
17390
17391
17392 # ------------------------------------- #
17393 # Checks for compiler characteristics.  #
17394 # ------------------------------------- #
17395
17396 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17397 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17398 if test "${ac_cv_c_const+set}" = set; then
17399   echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401   cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17407
17408 int
17409 main ()
17410 {
17411 /* FIXME: Include the comments suggested by Paul. */
17412 #ifndef __cplusplus
17413   /* Ultrix mips cc rejects this.  */
17414   typedef int charset[2];
17415   const charset x;
17416   /* SunOS 4.1.1 cc rejects this.  */
17417   char const *const *ccp;
17418   char **p;
17419   /* NEC SVR4.0.2 mips cc rejects this.  */
17420   struct point {int x, y;};
17421   static struct point const zero = {0,0};
17422   /* AIX XL C 1.02.0.0 rejects this.
17423      It does not let you subtract one const X* pointer from another in
17424      an arm of an if-expression whose if-part is not a constant
17425      expression */
17426   const char *g = "string";
17427   ccp = &g + (g ? g-g : 0);
17428   /* HPUX 7.0 cc rejects these. */
17429   ++ccp;
17430   p = (char**) ccp;
17431   ccp = (char const *const *) p;
17432   { /* SCO 3.2v4 cc rejects this.  */
17433     char *t;
17434     char const *s = 0 ? (char *) 0 : (char const *) 0;
17435
17436     *t++ = 0;
17437   }
17438   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17439     int x[] = {25, 17};
17440     const int *foo = &x[0];
17441     ++foo;
17442   }
17443   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17444     typedef const int *iptr;
17445     iptr p = 0;
17446     ++p;
17447   }
17448   { /* AIX XL C 1.02.0.0 rejects this saying
17449        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17450     struct s { int j; const int *ap[3]; };
17451     struct s *b; b->j = 5;
17452   }
17453   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17454     const int foo = 10;
17455   }
17456 #endif
17457
17458   ;
17459   return 0;
17460 }
17461 _ACEOF
17462 rm -f conftest.$ac_objext
17463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17464   (eval $ac_compile) 2>conftest.er1
17465   ac_status=$?
17466   grep -v '^ *+' conftest.er1 >conftest.err
17467   rm -f conftest.er1
17468   cat conftest.err >&5
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); } &&
17471          { ac_try='test -z "$ac_c_werror_flag"
17472                          || test ! -s conftest.err'
17473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474   (eval $ac_try) 2>&5
17475   ac_status=$?
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); }; } &&
17478          { ac_try='test -s conftest.$ac_objext'
17479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480   (eval $ac_try) 2>&5
17481   ac_status=$?
17482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483   (exit $ac_status); }; }; then
17484   ac_cv_c_const=yes
17485 else
17486   echo "$as_me: failed program was:" >&5
17487 sed 's/^/| /' conftest.$ac_ext >&5
17488
17489 ac_cv_c_const=no
17490 fi
17491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17492 fi
17493 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17494 echo "${ECHO_T}$ac_cv_c_const" >&6
17495 if test $ac_cv_c_const = no; then
17496
17497 cat >>confdefs.h <<\_ACEOF
17498 #define const
17499 _ACEOF
17500
17501 fi
17502
17503 echo "$as_me:$LINENO: checking for inline" >&5
17504 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17505 if test "${ac_cv_c_inline+set}" = set; then
17506   echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508   ac_cv_c_inline=no
17509 for ac_kw in inline __inline__ __inline; do
17510   cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h.  */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h.  */
17516 #ifndef __cplusplus
17517 typedef int foo_t;
17518 static $ac_kw foo_t static_foo () {return 0; }
17519 $ac_kw foo_t foo () {return 0; }
17520 #endif
17521
17522 _ACEOF
17523 rm -f conftest.$ac_objext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525   (eval $ac_compile) 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } &&
17532          { ac_try='test -z "$ac_c_werror_flag"
17533                          || test ! -s conftest.err'
17534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535   (eval $ac_try) 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; } &&
17539          { ac_try='test -s conftest.$ac_objext'
17540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541   (eval $ac_try) 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; }; then
17545   ac_cv_c_inline=$ac_kw; break
17546 else
17547   echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550 fi
17551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17552 done
17553
17554 fi
17555 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17556 echo "${ECHO_T}$ac_cv_c_inline" >&6
17557
17558
17559 case $ac_cv_c_inline in
17560   inline | yes) ;;
17561   *)
17562     case $ac_cv_c_inline in
17563       no) ac_val=;;
17564       *) ac_val=$ac_cv_c_inline;;
17565     esac
17566     cat >>confdefs.h <<_ACEOF
17567 #ifndef __cplusplus
17568 #define inline $ac_val
17569 #endif
17570 _ACEOF
17571     ;;
17572 esac
17573
17574 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17575 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17576 if test "${ac_cv_c_bigendian+set}" = set; then
17577   echo $ECHO_N "(cached) $ECHO_C" >&6
17578 else
17579   # See if sys/param.h defines the BYTE_ORDER macro.
17580 cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h.  */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h.  */
17586 #include <sys/types.h>
17587 #include <sys/param.h>
17588
17589 int
17590 main ()
17591 {
17592 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17593  bogus endian macros
17594 #endif
17595
17596   ;
17597   return 0;
17598 }
17599 _ACEOF
17600 rm -f conftest.$ac_objext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17602   (eval $ac_compile) 2>conftest.er1
17603   ac_status=$?
17604   grep -v '^ *+' conftest.er1 >conftest.err
17605   rm -f conftest.er1
17606   cat conftest.err >&5
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); } &&
17609          { ac_try='test -z "$ac_c_werror_flag"
17610                          || test ! -s conftest.err'
17611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612   (eval $ac_try) 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; } &&
17616          { ac_try='test -s conftest.$ac_objext'
17617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618   (eval $ac_try) 2>&5
17619   ac_status=$?
17620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); }; }; then
17622   # It does; now see whether it defined to BIG_ENDIAN or not.
17623 cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h.  */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h.  */
17629 #include <sys/types.h>
17630 #include <sys/param.h>
17631
17632 int
17633 main ()
17634 {
17635 #if BYTE_ORDER != BIG_ENDIAN
17636  not big endian
17637 #endif
17638
17639   ;
17640   return 0;
17641 }
17642 _ACEOF
17643 rm -f conftest.$ac_objext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17645   (eval $ac_compile) 2>conftest.er1
17646   ac_status=$?
17647   grep -v '^ *+' conftest.er1 >conftest.err
17648   rm -f conftest.er1
17649   cat conftest.err >&5
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); } &&
17652          { ac_try='test -z "$ac_c_werror_flag"
17653                          || test ! -s conftest.err'
17654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655   (eval $ac_try) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); }; } &&
17659          { ac_try='test -s conftest.$ac_objext'
17660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661   (eval $ac_try) 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; }; then
17665   ac_cv_c_bigendian=yes
17666 else
17667   echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 ac_cv_c_bigendian=no
17671 fi
17672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17673 else
17674   echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17676
17677 # It does not; compile a test program.
17678 if test "$cross_compiling" = yes; then
17679   # try to guess the endianness by grepping values into an object file
17680   ac_cv_c_bigendian=unknown
17681   cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h.  */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h.  */
17687 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17688 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17689 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17690 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17691 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17692 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17693 int
17694 main ()
17695 {
17696  _ascii (); _ebcdic ();
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17703   (eval $ac_compile) 2>conftest.er1
17704   ac_status=$?
17705   grep -v '^ *+' conftest.er1 >conftest.err
17706   rm -f conftest.er1
17707   cat conftest.err >&5
17708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709   (exit $ac_status); } &&
17710          { ac_try='test -z "$ac_c_werror_flag"
17711                          || test ! -s conftest.err'
17712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713   (eval $ac_try) 2>&5
17714   ac_status=$?
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); }; } &&
17717          { ac_try='test -s conftest.$ac_objext'
17718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719   (eval $ac_try) 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }; }; then
17723   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17724   ac_cv_c_bigendian=yes
17725 fi
17726 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17727   if test "$ac_cv_c_bigendian" = unknown; then
17728     ac_cv_c_bigendian=no
17729   else
17730     # finding both strings is unlikely to happen, but who knows?
17731     ac_cv_c_bigendian=unknown
17732   fi
17733 fi
17734 else
17735   echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 fi
17739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17740 else
17741   cat >conftest.$ac_ext <<_ACEOF
17742 /* confdefs.h.  */
17743 _ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h.  */
17747 int
17748 main ()
17749 {
17750   /* Are we little or big endian?  From Harbison&Steele.  */
17751   union
17752   {
17753     long l;
17754     char c[sizeof (long)];
17755   } u;
17756   u.l = 1;
17757   exit (u.c[sizeof (long) - 1] == 1);
17758 }
17759 _ACEOF
17760 rm -f conftest$ac_exeext
17761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17762   (eval $ac_link) 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767   (eval $ac_try) 2>&5
17768   ac_status=$?
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); }; }; then
17771   ac_cv_c_bigendian=no
17772 else
17773   echo "$as_me: program exited with status $ac_status" >&5
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777 ( exit $ac_status )
17778 ac_cv_c_bigendian=yes
17779 fi
17780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17781 fi
17782 fi
17783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17784 fi
17785 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17786 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17787 case $ac_cv_c_bigendian in
17788   yes)
17789
17790 cat >>confdefs.h <<\_ACEOF
17791 #define WORDS_BIGENDIAN 1
17792 _ACEOF
17793  ;;
17794   no)
17795      ;;
17796   *)
17797     { { echo "$as_me:$LINENO: error: unknown endianness
17798 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17799 echo "$as_me: error: unknown endianness
17800 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17801    { (exit 1); exit 1; }; } ;;
17802 esac
17803
17804
17805 # ------------------------------ #
17806 # Checks for library functions.  #
17807 # ------------------------------ #
17808
17809 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17810 # for constant arguments.  Useless!
17811 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17812 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17813 if test "${ac_cv_working_alloca_h+set}" = set; then
17814   echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816   cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h.  */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h.  */
17822 #include <alloca.h>
17823 int
17824 main ()
17825 {
17826 char *p = (char *) alloca (2 * sizeof (int));
17827   ;
17828   return 0;
17829 }
17830 _ACEOF
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17833   (eval $ac_link) 2>conftest.er1
17834   ac_status=$?
17835   grep -v '^ *+' conftest.er1 >conftest.err
17836   rm -f conftest.er1
17837   cat conftest.err >&5
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); } &&
17840          { ac_try='test -z "$ac_c_werror_flag"
17841                          || test ! -s conftest.err'
17842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843   (eval $ac_try) 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }; } &&
17847          { ac_try='test -s conftest$ac_exeext'
17848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849   (eval $ac_try) 2>&5
17850   ac_status=$?
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); }; }; then
17853   ac_cv_working_alloca_h=yes
17854 else
17855   echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858 ac_cv_working_alloca_h=no
17859 fi
17860 rm -f conftest.err conftest.$ac_objext \
17861       conftest$ac_exeext conftest.$ac_ext
17862 fi
17863 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17864 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17865 if test $ac_cv_working_alloca_h = yes; then
17866
17867 cat >>confdefs.h <<\_ACEOF
17868 #define HAVE_ALLOCA_H 1
17869 _ACEOF
17870
17871 fi
17872
17873 echo "$as_me:$LINENO: checking for alloca" >&5
17874 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17875 if test "${ac_cv_func_alloca_works+set}" = set; then
17876   echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878   cat >conftest.$ac_ext <<_ACEOF
17879 /* confdefs.h.  */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h.  */
17884 #ifdef __GNUC__
17885 # define alloca __builtin_alloca
17886 #else
17887 # ifdef _MSC_VER
17888 #  include <malloc.h>
17889 #  define alloca _alloca
17890 # else
17891 #  if HAVE_ALLOCA_H
17892 #   include <alloca.h>
17893 #  else
17894 #   ifdef _AIX
17895  #pragma alloca
17896 #   else
17897 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17898 char *alloca ();
17899 #    endif
17900 #   endif
17901 #  endif
17902 # endif
17903 #endif
17904
17905 int
17906 main ()
17907 {
17908 char *p = (char *) alloca (1);
17909   ;
17910   return 0;
17911 }
17912 _ACEOF
17913 rm -f conftest.$ac_objext conftest$ac_exeext
17914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17915   (eval $ac_link) 2>conftest.er1
17916   ac_status=$?
17917   grep -v '^ *+' conftest.er1 >conftest.err
17918   rm -f conftest.er1
17919   cat conftest.err >&5
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } &&
17922          { ac_try='test -z "$ac_c_werror_flag"
17923                          || test ! -s conftest.err'
17924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925   (eval $ac_try) 2>&5
17926   ac_status=$?
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); }; } &&
17929          { ac_try='test -s conftest$ac_exeext'
17930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931   (eval $ac_try) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; }; then
17935   ac_cv_func_alloca_works=yes
17936 else
17937   echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 ac_cv_func_alloca_works=no
17941 fi
17942 rm -f conftest.err conftest.$ac_objext \
17943       conftest$ac_exeext conftest.$ac_ext
17944 fi
17945 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17946 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17947
17948 if test $ac_cv_func_alloca_works = yes; then
17949
17950 cat >>confdefs.h <<\_ACEOF
17951 #define HAVE_ALLOCA 1
17952 _ACEOF
17953
17954 else
17955   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17956 # that cause trouble.  Some versions do not even contain alloca or
17957 # contain a buggy version.  If you still want to use their alloca,
17958 # use ar to extract alloca.o from them instead of compiling alloca.c.
17959
17960 ALLOCA=alloca.$ac_objext
17961
17962 cat >>confdefs.h <<\_ACEOF
17963 #define C_ALLOCA 1
17964 _ACEOF
17965
17966
17967 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17968 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17969 if test "${ac_cv_os_cray+set}" = set; then
17970   echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17972   cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h.  */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h.  */
17978 #if defined(CRAY) && ! defined(CRAY2)
17979 webecray
17980 #else
17981 wenotbecray
17982 #endif
17983
17984 _ACEOF
17985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17986   $EGREP "webecray" >/dev/null 2>&1; then
17987   ac_cv_os_cray=yes
17988 else
17989   ac_cv_os_cray=no
17990 fi
17991 rm -f conftest*
17992
17993 fi
17994 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17995 echo "${ECHO_T}$ac_cv_os_cray" >&6
17996 if test $ac_cv_os_cray = yes; then
17997   for ac_func in _getb67 GETB67 getb67; do
17998     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17999 echo "$as_me:$LINENO: checking for $ac_func" >&5
18000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18001 if eval "test \"\${$as_ac_var+set}\" = set"; then
18002   echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004   cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h.  */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h.  */
18010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18012 #define $ac_func innocuous_$ac_func
18013
18014 /* System header to define __stub macros and hopefully few prototypes,
18015     which can conflict with char $ac_func (); below.
18016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18017     <limits.h> exists even on freestanding compilers.  */
18018
18019 #ifdef __STDC__
18020 # include <limits.h>
18021 #else
18022 # include <assert.h>
18023 #endif
18024
18025 #undef $ac_func
18026
18027 /* Override any gcc2 internal prototype to avoid an error.  */
18028 #ifdef __cplusplus
18029 extern "C"
18030 {
18031 #endif
18032 /* We use char because int might match the return type of a gcc2
18033    builtin and then its argument prototype would still apply.  */
18034 char $ac_func ();
18035 /* The GNU C library defines this for functions which it implements
18036     to always fail with ENOSYS.  Some functions are actually named
18037     something starting with __ and the normal name is an alias.  */
18038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18039 choke me
18040 #else
18041 char (*f) () = $ac_func;
18042 #endif
18043 #ifdef __cplusplus
18044 }
18045 #endif
18046
18047 int
18048 main ()
18049 {
18050 return f != $ac_func;
18051   ;
18052   return 0;
18053 }
18054 _ACEOF
18055 rm -f conftest.$ac_objext conftest$ac_exeext
18056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18057   (eval $ac_link) 2>conftest.er1
18058   ac_status=$?
18059   grep -v '^ *+' conftest.er1 >conftest.err
18060   rm -f conftest.er1
18061   cat conftest.err >&5
18062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063   (exit $ac_status); } &&
18064          { ac_try='test -z "$ac_c_werror_flag"
18065                          || test ! -s conftest.err'
18066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067   (eval $ac_try) 2>&5
18068   ac_status=$?
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); }; } &&
18071          { ac_try='test -s conftest$ac_exeext'
18072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073   (eval $ac_try) 2>&5
18074   ac_status=$?
18075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076   (exit $ac_status); }; }; then
18077   eval "$as_ac_var=yes"
18078 else
18079   echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.$ac_ext >&5
18081
18082 eval "$as_ac_var=no"
18083 fi
18084 rm -f conftest.err conftest.$ac_objext \
18085       conftest$ac_exeext conftest.$ac_ext
18086 fi
18087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18089 if test `eval echo '${'$as_ac_var'}'` = yes; then
18090
18091 cat >>confdefs.h <<_ACEOF
18092 #define CRAY_STACKSEG_END $ac_func
18093 _ACEOF
18094
18095     break
18096 fi
18097
18098   done
18099 fi
18100
18101 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18102 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18103 if test "${ac_cv_c_stack_direction+set}" = set; then
18104   echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106   if test "$cross_compiling" = yes; then
18107   ac_cv_c_stack_direction=0
18108 else
18109   cat >conftest.$ac_ext <<_ACEOF
18110 /* confdefs.h.  */
18111 _ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h.  */
18115 int
18116 find_stack_direction ()
18117 {
18118   static char *addr = 0;
18119   auto char dummy;
18120   if (addr == 0)
18121     {
18122       addr = &dummy;
18123       return find_stack_direction ();
18124     }
18125   else
18126     return (&dummy > addr) ? 1 : -1;
18127 }
18128
18129 int
18130 main ()
18131 {
18132   exit (find_stack_direction () < 0);
18133 }
18134 _ACEOF
18135 rm -f conftest$ac_exeext
18136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18137   (eval $ac_link) 2>&5
18138   ac_status=$?
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142   (eval $ac_try) 2>&5
18143   ac_status=$?
18144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145   (exit $ac_status); }; }; then
18146   ac_cv_c_stack_direction=1
18147 else
18148   echo "$as_me: program exited with status $ac_status" >&5
18149 echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18151
18152 ( exit $ac_status )
18153 ac_cv_c_stack_direction=-1
18154 fi
18155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18156 fi
18157 fi
18158 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18159 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18160
18161 cat >>confdefs.h <<_ACEOF
18162 #define STACK_DIRECTION $ac_cv_c_stack_direction
18163 _ACEOF
18164
18165
18166 fi
18167
18168
18169
18170 for ac_header in stdlib.h unistd.h
18171 do
18172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18174   echo "$as_me:$LINENO: checking for $ac_header" >&5
18175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18177   echo $ECHO_N "(cached) $ECHO_C" >&6
18178 fi
18179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18181 else
18182   # Is the header compilable?
18183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h.  */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h.  */
18191 $ac_includes_default
18192 #include <$ac_header>
18193 _ACEOF
18194 rm -f conftest.$ac_objext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196   (eval $ac_compile) 2>conftest.er1
18197   ac_status=$?
18198   grep -v '^ *+' conftest.er1 >conftest.err
18199   rm -f conftest.er1
18200   cat conftest.err >&5
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); } &&
18203          { ac_try='test -z "$ac_c_werror_flag"
18204                          || test ! -s conftest.err'
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); }; } &&
18210          { ac_try='test -s conftest.$ac_objext'
18211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212   (eval $ac_try) 2>&5
18213   ac_status=$?
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); }; }; then
18216   ac_header_compiler=yes
18217 else
18218   echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 ac_header_compiler=no
18222 fi
18223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18225 echo "${ECHO_T}$ac_header_compiler" >&6
18226
18227 # Is the header present?
18228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18230 cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h.  */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h.  */
18236 #include <$ac_header>
18237 _ACEOF
18238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18240   ac_status=$?
18241   grep -v '^ *+' conftest.er1 >conftest.err
18242   rm -f conftest.er1
18243   cat conftest.err >&5
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); } >/dev/null; then
18246   if test -s conftest.err; then
18247     ac_cpp_err=$ac_c_preproc_warn_flag
18248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18249   else
18250     ac_cpp_err=
18251   fi
18252 else
18253   ac_cpp_err=yes
18254 fi
18255 if test -z "$ac_cpp_err"; then
18256   ac_header_preproc=yes
18257 else
18258   echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261   ac_header_preproc=no
18262 fi
18263 rm -f conftest.err conftest.$ac_ext
18264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18265 echo "${ECHO_T}$ac_header_preproc" >&6
18266
18267 # So?  What about this header?
18268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18269   yes:no: )
18270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18274     ac_header_preproc=yes
18275     ;;
18276   no:yes:* )
18277     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18279     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18280 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18281     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18283     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18284 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18287     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18289     (
18290       cat <<\_ASBOX
18291 ## ------------------------------------------ ##
18292 ## Report this to the AC_PACKAGE_NAME lists.  ##
18293 ## ------------------------------------------ ##
18294 _ASBOX
18295     ) |
18296       sed "s/^/$as_me: WARNING:     /" >&2
18297     ;;
18298 esac
18299 echo "$as_me:$LINENO: checking for $ac_header" >&5
18300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18302   echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304   eval "$as_ac_Header=\$ac_header_preproc"
18305 fi
18306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18308
18309 fi
18310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18311   cat >>confdefs.h <<_ACEOF
18312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18313 _ACEOF
18314
18315 fi
18316
18317 done
18318
18319
18320 for ac_func in getpagesize
18321 do
18322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18323 echo "$as_me:$LINENO: checking for $ac_func" >&5
18324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18325 if eval "test \"\${$as_ac_var+set}\" = set"; then
18326   echo $ECHO_N "(cached) $ECHO_C" >&6
18327 else
18328   cat >conftest.$ac_ext <<_ACEOF
18329 /* confdefs.h.  */
18330 _ACEOF
18331 cat confdefs.h >>conftest.$ac_ext
18332 cat >>conftest.$ac_ext <<_ACEOF
18333 /* end confdefs.h.  */
18334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18336 #define $ac_func innocuous_$ac_func
18337
18338 /* System header to define __stub macros and hopefully few prototypes,
18339     which can conflict with char $ac_func (); below.
18340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18341     <limits.h> exists even on freestanding compilers.  */
18342
18343 #ifdef __STDC__
18344 # include <limits.h>
18345 #else
18346 # include <assert.h>
18347 #endif
18348
18349 #undef $ac_func
18350
18351 /* Override any gcc2 internal prototype to avoid an error.  */
18352 #ifdef __cplusplus
18353 extern "C"
18354 {
18355 #endif
18356 /* We use char because int might match the return type of a gcc2
18357    builtin and then its argument prototype would still apply.  */
18358 char $ac_func ();
18359 /* The GNU C library defines this for functions which it implements
18360     to always fail with ENOSYS.  Some functions are actually named
18361     something starting with __ and the normal name is an alias.  */
18362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18363 choke me
18364 #else
18365 char (*f) () = $ac_func;
18366 #endif
18367 #ifdef __cplusplus
18368 }
18369 #endif
18370
18371 int
18372 main ()
18373 {
18374 return f != $ac_func;
18375   ;
18376   return 0;
18377 }
18378 _ACEOF
18379 rm -f conftest.$ac_objext conftest$ac_exeext
18380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18381   (eval $ac_link) 2>conftest.er1
18382   ac_status=$?
18383   grep -v '^ *+' conftest.er1 >conftest.err
18384   rm -f conftest.er1
18385   cat conftest.err >&5
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); } &&
18388          { ac_try='test -z "$ac_c_werror_flag"
18389                          || test ! -s conftest.err'
18390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391   (eval $ac_try) 2>&5
18392   ac_status=$?
18393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394   (exit $ac_status); }; } &&
18395          { ac_try='test -s conftest$ac_exeext'
18396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397   (eval $ac_try) 2>&5
18398   ac_status=$?
18399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); }; }; then
18401   eval "$as_ac_var=yes"
18402 else
18403   echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18405
18406 eval "$as_ac_var=no"
18407 fi
18408 rm -f conftest.err conftest.$ac_objext \
18409       conftest$ac_exeext conftest.$ac_ext
18410 fi
18411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18413 if test `eval echo '${'$as_ac_var'}'` = yes; then
18414   cat >>confdefs.h <<_ACEOF
18415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18416 _ACEOF
18417
18418 fi
18419 done
18420
18421 echo "$as_me:$LINENO: checking for working mmap" >&5
18422 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18423 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18424   echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426   if test "$cross_compiling" = yes; then
18427   ac_cv_func_mmap_fixed_mapped=no
18428 else
18429   cat >conftest.$ac_ext <<_ACEOF
18430 /* confdefs.h.  */
18431 _ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h.  */
18435 $ac_includes_default
18436 /* malloc might have been renamed as rpl_malloc. */
18437 #undef malloc
18438
18439 /* Thanks to Mike Haertel and Jim Avera for this test.
18440    Here is a matrix of mmap possibilities:
18441         mmap private not fixed
18442         mmap private fixed at somewhere currently unmapped
18443         mmap private fixed at somewhere already mapped
18444         mmap shared not fixed
18445         mmap shared fixed at somewhere currently unmapped
18446         mmap shared fixed at somewhere already mapped
18447    For private mappings, we should verify that changes cannot be read()
18448    back from the file, nor mmap's back from the file at a different
18449    address.  (There have been systems where private was not correctly
18450    implemented like the infamous i386 svr4.0, and systems where the
18451    VM page cache was not coherent with the file system buffer cache
18452    like early versions of FreeBSD and possibly contemporary NetBSD.)
18453    For shared mappings, we should conversely verify that changes get
18454    propagated back to all the places they're supposed to be.
18455
18456    Grep wants private fixed already mapped.
18457    The main things grep needs to know about mmap are:
18458    * does it exist and is it safe to write into the mmap'd area
18459    * how to use it (BSD variants)  */
18460
18461 #include <fcntl.h>
18462 #include <sys/mman.h>
18463
18464 #if !STDC_HEADERS && !HAVE_STDLIB_H
18465 char *malloc ();
18466 #endif
18467
18468 /* This mess was copied from the GNU getpagesize.h.  */
18469 #if !HAVE_GETPAGESIZE
18470 /* Assume that all systems that can run configure have sys/param.h.  */
18471 # if !HAVE_SYS_PARAM_H
18472 #  define HAVE_SYS_PARAM_H 1
18473 # endif
18474
18475 # ifdef _SC_PAGESIZE
18476 #  define getpagesize() sysconf(_SC_PAGESIZE)
18477 # else /* no _SC_PAGESIZE */
18478 #  if HAVE_SYS_PARAM_H
18479 #   include <sys/param.h>
18480 #   ifdef EXEC_PAGESIZE
18481 #    define getpagesize() EXEC_PAGESIZE
18482 #   else /* no EXEC_PAGESIZE */
18483 #    ifdef NBPG
18484 #     define getpagesize() NBPG * CLSIZE
18485 #     ifndef CLSIZE
18486 #      define CLSIZE 1
18487 #     endif /* no CLSIZE */
18488 #    else /* no NBPG */
18489 #     ifdef NBPC
18490 #      define getpagesize() NBPC
18491 #     else /* no NBPC */
18492 #      ifdef PAGESIZE
18493 #       define getpagesize() PAGESIZE
18494 #      endif /* PAGESIZE */
18495 #     endif /* no NBPC */
18496 #    endif /* no NBPG */
18497 #   endif /* no EXEC_PAGESIZE */
18498 #  else /* no HAVE_SYS_PARAM_H */
18499 #   define getpagesize() 8192   /* punt totally */
18500 #  endif /* no HAVE_SYS_PARAM_H */
18501 # endif /* no _SC_PAGESIZE */
18502
18503 #endif /* no HAVE_GETPAGESIZE */
18504
18505 int
18506 main ()
18507 {
18508   char *data, *data2, *data3;
18509   int i, pagesize;
18510   int fd;
18511
18512   pagesize = getpagesize ();
18513
18514   /* First, make a file with some known garbage in it. */
18515   data = (char *) malloc (pagesize);
18516   if (!data)
18517     exit (1);
18518   for (i = 0; i < pagesize; ++i)
18519     *(data + i) = rand ();
18520   umask (0);
18521   fd = creat ("conftest.mmap", 0600);
18522   if (fd < 0)
18523     exit (1);
18524   if (write (fd, data, pagesize) != pagesize)
18525     exit (1);
18526   close (fd);
18527
18528   /* Next, try to mmap the file at a fixed address which already has
18529      something else allocated at it.  If we can, also make sure that
18530      we see the same garbage.  */
18531   fd = open ("conftest.mmap", O_RDWR);
18532   if (fd < 0)
18533     exit (1);
18534   data2 = (char *) malloc (2 * pagesize);
18535   if (!data2)
18536     exit (1);
18537   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
18538   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18539                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18540     exit (1);
18541   for (i = 0; i < pagesize; ++i)
18542     if (*(data + i) != *(data2 + i))
18543       exit (1);
18544
18545   /* Finally, make sure that changes to the mapped area do not
18546      percolate back to the file as seen by read().  (This is a bug on
18547      some variants of i386 svr4.0.)  */
18548   for (i = 0; i < pagesize; ++i)
18549     *(data2 + i) = *(data2 + i) + 1;
18550   data3 = (char *) malloc (pagesize);
18551   if (!data3)
18552     exit (1);
18553   if (read (fd, data3, pagesize) != pagesize)
18554     exit (1);
18555   for (i = 0; i < pagesize; ++i)
18556     if (*(data + i) != *(data3 + i))
18557       exit (1);
18558   close (fd);
18559   exit (0);
18560 }
18561 _ACEOF
18562 rm -f conftest$ac_exeext
18563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18564   (eval $ac_link) 2>&5
18565   ac_status=$?
18566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569   (eval $ac_try) 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); }; }; then
18573   ac_cv_func_mmap_fixed_mapped=yes
18574 else
18575   echo "$as_me: program exited with status $ac_status" >&5
18576 echo "$as_me: failed program was:" >&5
18577 sed 's/^/| /' conftest.$ac_ext >&5
18578
18579 ( exit $ac_status )
18580 ac_cv_func_mmap_fixed_mapped=no
18581 fi
18582 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18583 fi
18584 fi
18585 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18586 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
18587 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18588
18589 cat >>confdefs.h <<\_ACEOF
18590 #define HAVE_MMAP 1
18591 _ACEOF
18592
18593 fi
18594 rm -f conftest.mmap
18595
18596 echo "$as_me:$LINENO: checking for pid_t" >&5
18597 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18598 if test "${ac_cv_type_pid_t+set}" = set; then
18599   echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601   cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h.  */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h.  */
18607 $ac_includes_default
18608 int
18609 main ()
18610 {
18611 if ((pid_t *) 0)
18612   return 0;
18613 if (sizeof (pid_t))
18614   return 0;
18615   ;
18616   return 0;
18617 }
18618 _ACEOF
18619 rm -f conftest.$ac_objext
18620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18621   (eval $ac_compile) 2>conftest.er1
18622   ac_status=$?
18623   grep -v '^ *+' conftest.er1 >conftest.err
18624   rm -f conftest.er1
18625   cat conftest.err >&5
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); } &&
18628          { ac_try='test -z "$ac_c_werror_flag"
18629                          || test ! -s conftest.err'
18630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631   (eval $ac_try) 2>&5
18632   ac_status=$?
18633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634   (exit $ac_status); }; } &&
18635          { ac_try='test -s conftest.$ac_objext'
18636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637   (eval $ac_try) 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; }; then
18641   ac_cv_type_pid_t=yes
18642 else
18643   echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646 ac_cv_type_pid_t=no
18647 fi
18648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18649 fi
18650 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18651 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18652 if test $ac_cv_type_pid_t = yes; then
18653   :
18654 else
18655
18656 cat >>confdefs.h <<_ACEOF
18657 #define pid_t int
18658 _ACEOF
18659
18660 fi
18661
18662
18663
18664 for ac_header in unistd.h vfork.h
18665 do
18666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18668   echo "$as_me:$LINENO: checking for $ac_header" >&5
18669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18671   echo $ECHO_N "(cached) $ECHO_C" >&6
18672 fi
18673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18675 else
18676   # Is the header compilable?
18677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18679 cat >conftest.$ac_ext <<_ACEOF
18680 /* confdefs.h.  */
18681 _ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h.  */
18685 $ac_includes_default
18686 #include <$ac_header>
18687 _ACEOF
18688 rm -f conftest.$ac_objext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18690   (eval $ac_compile) 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } &&
18697          { ac_try='test -z "$ac_c_werror_flag"
18698                          || test ! -s conftest.err'
18699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700   (eval $ac_try) 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); }; } &&
18704          { ac_try='test -s conftest.$ac_objext'
18705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706   (eval $ac_try) 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); }; }; then
18710   ac_header_compiler=yes
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715 ac_header_compiler=no
18716 fi
18717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18719 echo "${ECHO_T}$ac_header_compiler" >&6
18720
18721 # Is the header present?
18722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18724 cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h.  */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h.  */
18730 #include <$ac_header>
18731 _ACEOF
18732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18734   ac_status=$?
18735   grep -v '^ *+' conftest.er1 >conftest.err
18736   rm -f conftest.er1
18737   cat conftest.err >&5
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); } >/dev/null; then
18740   if test -s conftest.err; then
18741     ac_cpp_err=$ac_c_preproc_warn_flag
18742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18743   else
18744     ac_cpp_err=
18745   fi
18746 else
18747   ac_cpp_err=yes
18748 fi
18749 if test -z "$ac_cpp_err"; then
18750   ac_header_preproc=yes
18751 else
18752   echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18754
18755   ac_header_preproc=no
18756 fi
18757 rm -f conftest.err conftest.$ac_ext
18758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18759 echo "${ECHO_T}$ac_header_preproc" >&6
18760
18761 # So?  What about this header?
18762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18763   yes:no: )
18764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18768     ac_header_preproc=yes
18769     ;;
18770   no:yes:* )
18771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18783     (
18784       cat <<\_ASBOX
18785 ## ------------------------------------------ ##
18786 ## Report this to the AC_PACKAGE_NAME lists.  ##
18787 ## ------------------------------------------ ##
18788 _ASBOX
18789     ) |
18790       sed "s/^/$as_me: WARNING:     /" >&2
18791     ;;
18792 esac
18793 echo "$as_me:$LINENO: checking for $ac_header" >&5
18794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18796   echo $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798   eval "$as_ac_Header=\$ac_header_preproc"
18799 fi
18800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18802
18803 fi
18804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18805   cat >>confdefs.h <<_ACEOF
18806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18807 _ACEOF
18808
18809 fi
18810
18811 done
18812
18813
18814
18815 for ac_func in fork vfork
18816 do
18817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18818 echo "$as_me:$LINENO: checking for $ac_func" >&5
18819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18820 if eval "test \"\${$as_ac_var+set}\" = set"; then
18821   echo $ECHO_N "(cached) $ECHO_C" >&6
18822 else
18823   cat >conftest.$ac_ext <<_ACEOF
18824 /* confdefs.h.  */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h.  */
18829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18831 #define $ac_func innocuous_$ac_func
18832
18833 /* System header to define __stub macros and hopefully few prototypes,
18834     which can conflict with char $ac_func (); below.
18835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18836     <limits.h> exists even on freestanding compilers.  */
18837
18838 #ifdef __STDC__
18839 # include <limits.h>
18840 #else
18841 # include <assert.h>
18842 #endif
18843
18844 #undef $ac_func
18845
18846 /* Override any gcc2 internal prototype to avoid an error.  */
18847 #ifdef __cplusplus
18848 extern "C"
18849 {
18850 #endif
18851 /* We use char because int might match the return type of a gcc2
18852    builtin and then its argument prototype would still apply.  */
18853 char $ac_func ();
18854 /* The GNU C library defines this for functions which it implements
18855     to always fail with ENOSYS.  Some functions are actually named
18856     something starting with __ and the normal name is an alias.  */
18857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18858 choke me
18859 #else
18860 char (*f) () = $ac_func;
18861 #endif
18862 #ifdef __cplusplus
18863 }
18864 #endif
18865
18866 int
18867 main ()
18868 {
18869 return f != $ac_func;
18870   ;
18871   return 0;
18872 }
18873 _ACEOF
18874 rm -f conftest.$ac_objext conftest$ac_exeext
18875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18876   (eval $ac_link) 2>conftest.er1
18877   ac_status=$?
18878   grep -v '^ *+' conftest.er1 >conftest.err
18879   rm -f conftest.er1
18880   cat conftest.err >&5
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); } &&
18883          { ac_try='test -z "$ac_c_werror_flag"
18884                          || test ! -s conftest.err'
18885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886   (eval $ac_try) 2>&5
18887   ac_status=$?
18888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); }; } &&
18890          { ac_try='test -s conftest$ac_exeext'
18891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892   (eval $ac_try) 2>&5
18893   ac_status=$?
18894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895   (exit $ac_status); }; }; then
18896   eval "$as_ac_var=yes"
18897 else
18898   echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18900
18901 eval "$as_ac_var=no"
18902 fi
18903 rm -f conftest.err conftest.$ac_objext \
18904       conftest$ac_exeext conftest.$ac_ext
18905 fi
18906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18908 if test `eval echo '${'$as_ac_var'}'` = yes; then
18909   cat >>confdefs.h <<_ACEOF
18910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18911 _ACEOF
18912
18913 fi
18914 done
18915
18916 if test "x$ac_cv_func_fork" = xyes; then
18917   echo "$as_me:$LINENO: checking for working fork" >&5
18918 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18919 if test "${ac_cv_func_fork_works+set}" = set; then
18920   echo $ECHO_N "(cached) $ECHO_C" >&6
18921 else
18922   if test "$cross_compiling" = yes; then
18923   ac_cv_func_fork_works=cross
18924 else
18925   cat >conftest.$ac_ext <<_ACEOF
18926 /* By Ruediger Kuhlmann. */
18927       #include <sys/types.h>
18928       #if HAVE_UNISTD_H
18929       # include <unistd.h>
18930       #endif
18931       /* Some systems only have a dummy stub for fork() */
18932       int main ()
18933       {
18934         if (fork() < 0)
18935           exit (1);
18936         exit (0);
18937       }
18938 _ACEOF
18939 rm -f conftest$ac_exeext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18941   (eval $ac_link) 2>&5
18942   ac_status=$?
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946   (eval $ac_try) 2>&5
18947   ac_status=$?
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); }; }; then
18950   ac_cv_func_fork_works=yes
18951 else
18952   echo "$as_me: program exited with status $ac_status" >&5
18953 echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18955
18956 ( exit $ac_status )
18957 ac_cv_func_fork_works=no
18958 fi
18959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18960 fi
18961 fi
18962 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18963 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18964
18965 else
18966   ac_cv_func_fork_works=$ac_cv_func_fork
18967 fi
18968 if test "x$ac_cv_func_fork_works" = xcross; then
18969   case $host in
18970     *-*-amigaos* | *-*-msdosdjgpp*)
18971       # Override, as these systems have only a dummy fork() stub
18972       ac_cv_func_fork_works=no
18973       ;;
18974     *)
18975       ac_cv_func_fork_works=yes
18976       ;;
18977   esac
18978   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18979 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18980 fi
18981 ac_cv_func_vfork_works=$ac_cv_func_vfork
18982 if test "x$ac_cv_func_vfork" = xyes; then
18983   echo "$as_me:$LINENO: checking for working vfork" >&5
18984 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18985 if test "${ac_cv_func_vfork_works+set}" = set; then
18986   echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18988   if test "$cross_compiling" = yes; then
18989   ac_cv_func_vfork_works=cross
18990 else
18991   cat >conftest.$ac_ext <<_ACEOF
18992 /* confdefs.h.  */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h.  */
18997 /* Thanks to Paul Eggert for this test.  */
18998 #include <stdio.h>
18999 #include <stdlib.h>
19000 #include <sys/types.h>
19001 #include <sys/stat.h>
19002 #include <sys/wait.h>
19003 #if HAVE_UNISTD_H
19004 # include <unistd.h>
19005 #endif
19006 #if HAVE_VFORK_H
19007 # include <vfork.h>
19008 #endif
19009 /* On some sparc systems, changes by the child to local and incoming
19010    argument registers are propagated back to the parent.  The compiler
19011    is told about this with #include <vfork.h>, but some compilers
19012    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19013    static variable whose address is put into a register that is
19014    clobbered by the vfork.  */
19015 static void
19016 #ifdef __cplusplus
19017 sparc_address_test (int arg)
19018 # else
19019 sparc_address_test (arg) int arg;
19020 #endif
19021 {
19022   static pid_t child;
19023   if (!child) {
19024     child = vfork ();
19025     if (child < 0) {
19026       perror ("vfork");
19027       _exit(2);
19028     }
19029     if (!child) {
19030       arg = getpid();
19031       write(-1, "", 0);
19032       _exit (arg);
19033     }
19034   }
19035 }
19036
19037 int
19038 main ()
19039 {
19040   pid_t parent = getpid ();
19041   pid_t child;
19042
19043   sparc_address_test (0);
19044
19045   child = vfork ();
19046
19047   if (child == 0) {
19048     /* Here is another test for sparc vfork register problems.  This
19049        test uses lots of local variables, at least as many local
19050        variables as main has allocated so far including compiler
19051        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19052        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19053        reuse the register of parent for one of the local variables,
19054        since it will think that parent can't possibly be used any more
19055        in this routine.  Assigning to the local variable will thus
19056        munge parent in the parent process.  */
19057     pid_t
19058       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19059       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19060     /* Convince the compiler that p..p7 are live; otherwise, it might
19061        use the same hardware register for all 8 local variables.  */
19062     if (p != p1 || p != p2 || p != p3 || p != p4
19063         || p != p5 || p != p6 || p != p7)
19064       _exit(1);
19065
19066     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19067        from child file descriptors.  If the child closes a descriptor
19068        before it execs or exits, this munges the parent's descriptor
19069        as well.  Test for this by closing stdout in the child.  */
19070     _exit(close(fileno(stdout)) != 0);
19071   } else {
19072     int status;
19073     struct stat st;
19074
19075     while (wait(&status) != child)
19076       ;
19077     exit(
19078          /* Was there some problem with vforking?  */
19079          child < 0
19080
19081          /* Did the child fail?  (This shouldn't happen.)  */
19082          || status
19083
19084          /* Did the vfork/compiler bug occur?  */
19085          || parent != getpid()
19086
19087          /* Did the file descriptor bug occur?  */
19088          || fstat(fileno(stdout), &st) != 0
19089          );
19090   }
19091 }
19092 _ACEOF
19093 rm -f conftest$ac_exeext
19094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19095   (eval $ac_link) 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100   (eval $ac_try) 2>&5
19101   ac_status=$?
19102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103   (exit $ac_status); }; }; then
19104   ac_cv_func_vfork_works=yes
19105 else
19106   echo "$as_me: program exited with status $ac_status" >&5
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110 ( exit $ac_status )
19111 ac_cv_func_vfork_works=no
19112 fi
19113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19114 fi
19115 fi
19116 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19117 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19118
19119 fi;
19120 if test "x$ac_cv_func_fork_works" = xcross; then
19121   ac_cv_func_vfork_works=$ac_cv_func_vfork
19122   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19123 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19124 fi
19125
19126 if test "x$ac_cv_func_vfork_works" = xyes; then
19127
19128 cat >>confdefs.h <<\_ACEOF
19129 #define HAVE_WORKING_VFORK 1
19130 _ACEOF
19131
19132 else
19133
19134 cat >>confdefs.h <<\_ACEOF
19135 #define vfork fork
19136 _ACEOF
19137
19138 fi
19139 if test "x$ac_cv_func_fork_works" = xyes; then
19140
19141 cat >>confdefs.h <<\_ACEOF
19142 #define HAVE_WORKING_FORK 1
19143 _ACEOF
19144
19145 fi
19146
19147
19148
19149 for ac_func in canonicalize_file_name realpath
19150 do
19151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19152 echo "$as_me:$LINENO: checking for $ac_func" >&5
19153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19154 if eval "test \"\${$as_ac_var+set}\" = set"; then
19155   echo $ECHO_N "(cached) $ECHO_C" >&6
19156 else
19157   cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19165 #define $ac_func innocuous_$ac_func
19166
19167 /* System header to define __stub macros and hopefully few prototypes,
19168     which can conflict with char $ac_func (); below.
19169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19170     <limits.h> exists even on freestanding compilers.  */
19171
19172 #ifdef __STDC__
19173 # include <limits.h>
19174 #else
19175 # include <assert.h>
19176 #endif
19177
19178 #undef $ac_func
19179
19180 /* Override any gcc2 internal prototype to avoid an error.  */
19181 #ifdef __cplusplus
19182 extern "C"
19183 {
19184 #endif
19185 /* We use char because int might match the return type of a gcc2
19186    builtin and then its argument prototype would still apply.  */
19187 char $ac_func ();
19188 /* The GNU C library defines this for functions which it implements
19189     to always fail with ENOSYS.  Some functions are actually named
19190     something starting with __ and the normal name is an alias.  */
19191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19192 choke me
19193 #else
19194 char (*f) () = $ac_func;
19195 #endif
19196 #ifdef __cplusplus
19197 }
19198 #endif
19199
19200 int
19201 main ()
19202 {
19203 return f != $ac_func;
19204   ;
19205   return 0;
19206 }
19207 _ACEOF
19208 rm -f conftest.$ac_objext conftest$ac_exeext
19209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210   (eval $ac_link) 2>conftest.er1
19211   ac_status=$?
19212   grep -v '^ *+' conftest.er1 >conftest.err
19213   rm -f conftest.er1
19214   cat conftest.err >&5
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); } &&
19217          { ac_try='test -z "$ac_c_werror_flag"
19218                          || test ! -s conftest.err'
19219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220   (eval $ac_try) 2>&5
19221   ac_status=$?
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); }; } &&
19224          { ac_try='test -s conftest$ac_exeext'
19225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226   (eval $ac_try) 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); }; }; then
19230   eval "$as_ac_var=yes"
19231 else
19232   echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19234
19235 eval "$as_ac_var=no"
19236 fi
19237 rm -f conftest.err conftest.$ac_objext \
19238       conftest$ac_exeext conftest.$ac_ext
19239 fi
19240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19242 if test `eval echo '${'$as_ac_var'}'` = yes; then
19243   cat >>confdefs.h <<_ACEOF
19244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19245 _ACEOF
19246
19247 fi
19248 done
19249
19250
19251 for ac_func in getrusage
19252 do
19253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19254 echo "$as_me:$LINENO: checking for $ac_func" >&5
19255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19256 if eval "test \"\${$as_ac_var+set}\" = set"; then
19257   echo $ECHO_N "(cached) $ECHO_C" >&6
19258 else
19259   cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h.  */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h.  */
19265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19267 #define $ac_func innocuous_$ac_func
19268
19269 /* System header to define __stub macros and hopefully few prototypes,
19270     which can conflict with char $ac_func (); below.
19271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19272     <limits.h> exists even on freestanding compilers.  */
19273
19274 #ifdef __STDC__
19275 # include <limits.h>
19276 #else
19277 # include <assert.h>
19278 #endif
19279
19280 #undef $ac_func
19281
19282 /* Override any gcc2 internal prototype to avoid an error.  */
19283 #ifdef __cplusplus
19284 extern "C"
19285 {
19286 #endif
19287 /* We use char because int might match the return type of a gcc2
19288    builtin and then its argument prototype would still apply.  */
19289 char $ac_func ();
19290 /* The GNU C library defines this for functions which it implements
19291     to always fail with ENOSYS.  Some functions are actually named
19292     something starting with __ and the normal name is an alias.  */
19293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19294 choke me
19295 #else
19296 char (*f) () = $ac_func;
19297 #endif
19298 #ifdef __cplusplus
19299 }
19300 #endif
19301
19302 int
19303 main ()
19304 {
19305 return f != $ac_func;
19306   ;
19307   return 0;
19308 }
19309 _ACEOF
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312   (eval $ac_link) 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } &&
19319          { ac_try='test -z "$ac_c_werror_flag"
19320                          || test ! -s conftest.err'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; } &&
19326          { ac_try='test -s conftest$ac_exeext'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; }; then
19332   eval "$as_ac_var=yes"
19333 else
19334   echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337 eval "$as_ac_var=no"
19338 fi
19339 rm -f conftest.err conftest.$ac_objext \
19340       conftest$ac_exeext conftest.$ac_ext
19341 fi
19342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19344 if test `eval echo '${'$as_ac_var'}'` = yes; then
19345   cat >>confdefs.h <<_ACEOF
19346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19347 _ACEOF
19348
19349 fi
19350 done
19351
19352
19353
19354 for ac_func in getuid getgid
19355 do
19356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19357 echo "$as_me:$LINENO: checking for $ac_func" >&5
19358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19359 if eval "test \"\${$as_ac_var+set}\" = set"; then
19360   echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362   cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19370 #define $ac_func innocuous_$ac_func
19371
19372 /* System header to define __stub macros and hopefully few prototypes,
19373     which can conflict with char $ac_func (); below.
19374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19375     <limits.h> exists even on freestanding compilers.  */
19376
19377 #ifdef __STDC__
19378 # include <limits.h>
19379 #else
19380 # include <assert.h>
19381 #endif
19382
19383 #undef $ac_func
19384
19385 /* Override any gcc2 internal prototype to avoid an error.  */
19386 #ifdef __cplusplus
19387 extern "C"
19388 {
19389 #endif
19390 /* We use char because int might match the return type of a gcc2
19391    builtin and then its argument prototype would still apply.  */
19392 char $ac_func ();
19393 /* The GNU C library defines this for functions which it implements
19394     to always fail with ENOSYS.  Some functions are actually named
19395     something starting with __ and the normal name is an alias.  */
19396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19397 choke me
19398 #else
19399 char (*f) () = $ac_func;
19400 #endif
19401 #ifdef __cplusplus
19402 }
19403 #endif
19404
19405 int
19406 main ()
19407 {
19408 return f != $ac_func;
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19415   (eval $ac_link) 2>conftest.er1
19416   ac_status=$?
19417   grep -v '^ *+' conftest.er1 >conftest.err
19418   rm -f conftest.er1
19419   cat conftest.err >&5
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); } &&
19422          { ac_try='test -z "$ac_c_werror_flag"
19423                          || test ! -s conftest.err'
19424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425   (eval $ac_try) 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); }; } &&
19429          { ac_try='test -s conftest$ac_exeext'
19430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431   (eval $ac_try) 2>&5
19432   ac_status=$?
19433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); }; }; then
19435   eval "$as_ac_var=yes"
19436 else
19437   echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19439
19440 eval "$as_ac_var=no"
19441 fi
19442 rm -f conftest.err conftest.$ac_objext \
19443       conftest$ac_exeext conftest.$ac_ext
19444 fi
19445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19447 if test `eval echo '${'$as_ac_var'}'` = yes; then
19448   cat >>confdefs.h <<_ACEOF
19449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19450 _ACEOF
19451
19452 fi
19453 done
19454
19455
19456 for ac_func in poll
19457 do
19458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19459 echo "$as_me:$LINENO: checking for $ac_func" >&5
19460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19461 if eval "test \"\${$as_ac_var+set}\" = set"; then
19462   echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464   cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19472 #define $ac_func innocuous_$ac_func
19473
19474 /* System header to define __stub macros and hopefully few prototypes,
19475     which can conflict with char $ac_func (); below.
19476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19477     <limits.h> exists even on freestanding compilers.  */
19478
19479 #ifdef __STDC__
19480 # include <limits.h>
19481 #else
19482 # include <assert.h>
19483 #endif
19484
19485 #undef $ac_func
19486
19487 /* Override any gcc2 internal prototype to avoid an error.  */
19488 #ifdef __cplusplus
19489 extern "C"
19490 {
19491 #endif
19492 /* We use char because int might match the return type of a gcc2
19493    builtin and then its argument prototype would still apply.  */
19494 char $ac_func ();
19495 /* The GNU C library defines this for functions which it implements
19496     to always fail with ENOSYS.  Some functions are actually named
19497     something starting with __ and the normal name is an alias.  */
19498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19499 choke me
19500 #else
19501 char (*f) () = $ac_func;
19502 #endif
19503 #ifdef __cplusplus
19504 }
19505 #endif
19506
19507 int
19508 main ()
19509 {
19510 return f != $ac_func;
19511   ;
19512   return 0;
19513 }
19514 _ACEOF
19515 rm -f conftest.$ac_objext conftest$ac_exeext
19516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19517   (eval $ac_link) 2>conftest.er1
19518   ac_status=$?
19519   grep -v '^ *+' conftest.er1 >conftest.err
19520   rm -f conftest.er1
19521   cat conftest.err >&5
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); } &&
19524          { ac_try='test -z "$ac_c_werror_flag"
19525                          || test ! -s conftest.err'
19526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527   (eval $ac_try) 2>&5
19528   ac_status=$?
19529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530   (exit $ac_status); }; } &&
19531          { ac_try='test -s conftest$ac_exeext'
19532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533   (eval $ac_try) 2>&5
19534   ac_status=$?
19535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536   (exit $ac_status); }; }; then
19537   eval "$as_ac_var=yes"
19538 else
19539   echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19541
19542 eval "$as_ac_var=no"
19543 fi
19544 rm -f conftest.err conftest.$ac_objext \
19545       conftest$ac_exeext conftest.$ac_ext
19546 fi
19547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19549 if test `eval echo '${'$as_ac_var'}'` = yes; then
19550   cat >>confdefs.h <<_ACEOF
19551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19552 _ACEOF
19553
19554 fi
19555 done
19556
19557
19558 for ac_func in pread64
19559 do
19560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19561 echo "$as_me:$LINENO: checking for $ac_func" >&5
19562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19563 if eval "test \"\${$as_ac_var+set}\" = set"; then
19564   echo $ECHO_N "(cached) $ECHO_C" >&6
19565 else
19566   cat >conftest.$ac_ext <<_ACEOF
19567 /* confdefs.h.  */
19568 _ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h.  */
19572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19574 #define $ac_func innocuous_$ac_func
19575
19576 /* System header to define __stub macros and hopefully few prototypes,
19577     which can conflict with char $ac_func (); below.
19578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19579     <limits.h> exists even on freestanding compilers.  */
19580
19581 #ifdef __STDC__
19582 # include <limits.h>
19583 #else
19584 # include <assert.h>
19585 #endif
19586
19587 #undef $ac_func
19588
19589 /* Override any gcc2 internal prototype to avoid an error.  */
19590 #ifdef __cplusplus
19591 extern "C"
19592 {
19593 #endif
19594 /* We use char because int might match the return type of a gcc2
19595    builtin and then its argument prototype would still apply.  */
19596 char $ac_func ();
19597 /* The GNU C library defines this for functions which it implements
19598     to always fail with ENOSYS.  Some functions are actually named
19599     something starting with __ and the normal name is an alias.  */
19600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19601 choke me
19602 #else
19603 char (*f) () = $ac_func;
19604 #endif
19605 #ifdef __cplusplus
19606 }
19607 #endif
19608
19609 int
19610 main ()
19611 {
19612 return f != $ac_func;
19613   ;
19614   return 0;
19615 }
19616 _ACEOF
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619   (eval $ac_link) 2>conftest.er1
19620   ac_status=$?
19621   grep -v '^ *+' conftest.er1 >conftest.err
19622   rm -f conftest.er1
19623   cat conftest.err >&5
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); } &&
19626          { ac_try='test -z "$ac_c_werror_flag"
19627                          || test ! -s conftest.err'
19628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629   (eval $ac_try) 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); }; } &&
19633          { ac_try='test -s conftest$ac_exeext'
19634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635   (eval $ac_try) 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; }; then
19639   eval "$as_ac_var=yes"
19640 else
19641   echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19643
19644 eval "$as_ac_var=no"
19645 fi
19646 rm -f conftest.err conftest.$ac_objext \
19647       conftest$ac_exeext conftest.$ac_ext
19648 fi
19649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19651 if test `eval echo '${'$as_ac_var'}'` = yes; then
19652   cat >>confdefs.h <<_ACEOF
19653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19654 _ACEOF
19655
19656 fi
19657 done
19658
19659
19660 for ac_func in sbrk
19661 do
19662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19663 echo "$as_me:$LINENO: checking for $ac_func" >&5
19664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19665 if eval "test \"\${$as_ac_var+set}\" = set"; then
19666   echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668   cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h.  */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h.  */
19674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19676 #define $ac_func innocuous_$ac_func
19677
19678 /* System header to define __stub macros and hopefully few prototypes,
19679     which can conflict with char $ac_func (); below.
19680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19681     <limits.h> exists even on freestanding compilers.  */
19682
19683 #ifdef __STDC__
19684 # include <limits.h>
19685 #else
19686 # include <assert.h>
19687 #endif
19688
19689 #undef $ac_func
19690
19691 /* Override any gcc2 internal prototype to avoid an error.  */
19692 #ifdef __cplusplus
19693 extern "C"
19694 {
19695 #endif
19696 /* We use char because int might match the return type of a gcc2
19697    builtin and then its argument prototype would still apply.  */
19698 char $ac_func ();
19699 /* The GNU C library defines this for functions which it implements
19700     to always fail with ENOSYS.  Some functions are actually named
19701     something starting with __ and the normal name is an alias.  */
19702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19703 choke me
19704 #else
19705 char (*f) () = $ac_func;
19706 #endif
19707 #ifdef __cplusplus
19708 }
19709 #endif
19710
19711 int
19712 main ()
19713 {
19714 return f != $ac_func;
19715   ;
19716   return 0;
19717 }
19718 _ACEOF
19719 rm -f conftest.$ac_objext conftest$ac_exeext
19720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19721   (eval $ac_link) 2>conftest.er1
19722   ac_status=$?
19723   grep -v '^ *+' conftest.er1 >conftest.err
19724   rm -f conftest.er1
19725   cat conftest.err >&5
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); } &&
19728          { ac_try='test -z "$ac_c_werror_flag"
19729                          || test ! -s conftest.err'
19730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731   (eval $ac_try) 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; } &&
19735          { ac_try='test -s conftest$ac_exeext'
19736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737   (eval $ac_try) 2>&5
19738   ac_status=$?
19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); }; }; then
19741   eval "$as_ac_var=yes"
19742 else
19743   echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19745
19746 eval "$as_ac_var=no"
19747 fi
19748 rm -f conftest.err conftest.$ac_objext \
19749       conftest$ac_exeext conftest.$ac_ext
19750 fi
19751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19753 if test `eval echo '${'$as_ac_var'}'` = yes; then
19754   cat >>confdefs.h <<_ACEOF
19755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19756 _ACEOF
19757
19758 fi
19759 done
19760
19761
19762
19763
19764 for ac_func in setpgid setpgrp setsid
19765 do
19766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19767 echo "$as_me:$LINENO: checking for $ac_func" >&5
19768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19769 if eval "test \"\${$as_ac_var+set}\" = set"; then
19770   echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772   cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h.  */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h.  */
19778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19780 #define $ac_func innocuous_$ac_func
19781
19782 /* System header to define __stub macros and hopefully few prototypes,
19783     which can conflict with char $ac_func (); below.
19784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19785     <limits.h> exists even on freestanding compilers.  */
19786
19787 #ifdef __STDC__
19788 # include <limits.h>
19789 #else
19790 # include <assert.h>
19791 #endif
19792
19793 #undef $ac_func
19794
19795 /* Override any gcc2 internal prototype to avoid an error.  */
19796 #ifdef __cplusplus
19797 extern "C"
19798 {
19799 #endif
19800 /* We use char because int might match the return type of a gcc2
19801    builtin and then its argument prototype would still apply.  */
19802 char $ac_func ();
19803 /* The GNU C library defines this for functions which it implements
19804     to always fail with ENOSYS.  Some functions are actually named
19805     something starting with __ and the normal name is an alias.  */
19806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19807 choke me
19808 #else
19809 char (*f) () = $ac_func;
19810 #endif
19811 #ifdef __cplusplus
19812 }
19813 #endif
19814
19815 int
19816 main ()
19817 {
19818 return f != $ac_func;
19819   ;
19820   return 0;
19821 }
19822 _ACEOF
19823 rm -f conftest.$ac_objext conftest$ac_exeext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19825   (eval $ac_link) 2>conftest.er1
19826   ac_status=$?
19827   grep -v '^ *+' conftest.er1 >conftest.err
19828   rm -f conftest.er1
19829   cat conftest.err >&5
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); } &&
19832          { ac_try='test -z "$ac_c_werror_flag"
19833                          || test ! -s conftest.err'
19834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835   (eval $ac_try) 2>&5
19836   ac_status=$?
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); }; } &&
19839          { ac_try='test -s conftest$ac_exeext'
19840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841   (eval $ac_try) 2>&5
19842   ac_status=$?
19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); }; }; then
19845   eval "$as_ac_var=yes"
19846 else
19847   echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19849
19850 eval "$as_ac_var=no"
19851 fi
19852 rm -f conftest.err conftest.$ac_objext \
19853       conftest$ac_exeext conftest.$ac_ext
19854 fi
19855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19857 if test `eval echo '${'$as_ac_var'}'` = yes; then
19858   cat >>confdefs.h <<_ACEOF
19859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19860 _ACEOF
19861
19862 fi
19863 done
19864
19865
19866
19867
19868 for ac_func in sigaction sigprocmask sigsetmask
19869 do
19870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19871 echo "$as_me:$LINENO: checking for $ac_func" >&5
19872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19873 if eval "test \"\${$as_ac_var+set}\" = set"; then
19874   echo $ECHO_N "(cached) $ECHO_C" >&6
19875 else
19876   cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h.  */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h.  */
19882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19884 #define $ac_func innocuous_$ac_func
19885
19886 /* System header to define __stub macros and hopefully few prototypes,
19887     which can conflict with char $ac_func (); below.
19888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19889     <limits.h> exists even on freestanding compilers.  */
19890
19891 #ifdef __STDC__
19892 # include <limits.h>
19893 #else
19894 # include <assert.h>
19895 #endif
19896
19897 #undef $ac_func
19898
19899 /* Override any gcc2 internal prototype to avoid an error.  */
19900 #ifdef __cplusplus
19901 extern "C"
19902 {
19903 #endif
19904 /* We use char because int might match the return type of a gcc2
19905    builtin and then its argument prototype would still apply.  */
19906 char $ac_func ();
19907 /* The GNU C library defines this for functions which it implements
19908     to always fail with ENOSYS.  Some functions are actually named
19909     something starting with __ and the normal name is an alias.  */
19910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19911 choke me
19912 #else
19913 char (*f) () = $ac_func;
19914 #endif
19915 #ifdef __cplusplus
19916 }
19917 #endif
19918
19919 int
19920 main ()
19921 {
19922 return f != $ac_func;
19923   ;
19924   return 0;
19925 }
19926 _ACEOF
19927 rm -f conftest.$ac_objext conftest$ac_exeext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929   (eval $ac_link) 2>conftest.er1
19930   ac_status=$?
19931   grep -v '^ *+' conftest.er1 >conftest.err
19932   rm -f conftest.er1
19933   cat conftest.err >&5
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); } &&
19936          { ac_try='test -z "$ac_c_werror_flag"
19937                          || test ! -s conftest.err'
19938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939   (eval $ac_try) 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; } &&
19943          { ac_try='test -s conftest$ac_exeext'
19944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945   (eval $ac_try) 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); }; }; then
19949   eval "$as_ac_var=yes"
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954 eval "$as_ac_var=no"
19955 fi
19956 rm -f conftest.err conftest.$ac_objext \
19957       conftest$ac_exeext conftest.$ac_ext
19958 fi
19959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19961 if test `eval echo '${'$as_ac_var'}'` = yes; then
19962   cat >>confdefs.h <<_ACEOF
19963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19964 _ACEOF
19965
19966 fi
19967 done
19968
19969
19970 for ac_func in socketpair
19971 do
19972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19973 echo "$as_me:$LINENO: checking for $ac_func" >&5
19974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19975 if eval "test \"\${$as_ac_var+set}\" = set"; then
19976   echo $ECHO_N "(cached) $ECHO_C" >&6
19977 else
19978   cat >conftest.$ac_ext <<_ACEOF
19979 /* confdefs.h.  */
19980 _ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h.  */
19984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19986 #define $ac_func innocuous_$ac_func
19987
19988 /* System header to define __stub macros and hopefully few prototypes,
19989     which can conflict with char $ac_func (); below.
19990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19991     <limits.h> exists even on freestanding compilers.  */
19992
19993 #ifdef __STDC__
19994 # include <limits.h>
19995 #else
19996 # include <assert.h>
19997 #endif
19998
19999 #undef $ac_func
20000
20001 /* Override any gcc2 internal prototype to avoid an error.  */
20002 #ifdef __cplusplus
20003 extern "C"
20004 {
20005 #endif
20006 /* We use char because int might match the return type of a gcc2
20007    builtin and then its argument prototype would still apply.  */
20008 char $ac_func ();
20009 /* The GNU C library defines this for functions which it implements
20010     to always fail with ENOSYS.  Some functions are actually named
20011     something starting with __ and the normal name is an alias.  */
20012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20013 choke me
20014 #else
20015 char (*f) () = $ac_func;
20016 #endif
20017 #ifdef __cplusplus
20018 }
20019 #endif
20020
20021 int
20022 main ()
20023 {
20024 return f != $ac_func;
20025   ;
20026   return 0;
20027 }
20028 _ACEOF
20029 rm -f conftest.$ac_objext conftest$ac_exeext
20030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20031   (eval $ac_link) 2>conftest.er1
20032   ac_status=$?
20033   grep -v '^ *+' conftest.er1 >conftest.err
20034   rm -f conftest.er1
20035   cat conftest.err >&5
20036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037   (exit $ac_status); } &&
20038          { ac_try='test -z "$ac_c_werror_flag"
20039                          || test ! -s conftest.err'
20040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041   (eval $ac_try) 2>&5
20042   ac_status=$?
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); }; } &&
20045          { ac_try='test -s conftest$ac_exeext'
20046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047   (eval $ac_try) 2>&5
20048   ac_status=$?
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); }; }; then
20051   eval "$as_ac_var=yes"
20052 else
20053   echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20055
20056 eval "$as_ac_var=no"
20057 fi
20058 rm -f conftest.err conftest.$ac_objext \
20059       conftest$ac_exeext conftest.$ac_ext
20060 fi
20061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20063 if test `eval echo '${'$as_ac_var'}'` = yes; then
20064   cat >>confdefs.h <<_ACEOF
20065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20066 _ACEOF
20067
20068 fi
20069 done
20070
20071
20072 for ac_func in syscall
20073 do
20074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20075 echo "$as_me:$LINENO: checking for $ac_func" >&5
20076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20077 if eval "test \"\${$as_ac_var+set}\" = set"; then
20078   echo $ECHO_N "(cached) $ECHO_C" >&6
20079 else
20080   cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20088 #define $ac_func innocuous_$ac_func
20089
20090 /* System header to define __stub macros and hopefully few prototypes,
20091     which can conflict with char $ac_func (); below.
20092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20093     <limits.h> exists even on freestanding compilers.  */
20094
20095 #ifdef __STDC__
20096 # include <limits.h>
20097 #else
20098 # include <assert.h>
20099 #endif
20100
20101 #undef $ac_func
20102
20103 /* Override any gcc2 internal prototype to avoid an error.  */
20104 #ifdef __cplusplus
20105 extern "C"
20106 {
20107 #endif
20108 /* We use char because int might match the return type of a gcc2
20109    builtin and then its argument prototype would still apply.  */
20110 char $ac_func ();
20111 /* The GNU C library defines this for functions which it implements
20112     to always fail with ENOSYS.  Some functions are actually named
20113     something starting with __ and the normal name is an alias.  */
20114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20115 choke me
20116 #else
20117 char (*f) () = $ac_func;
20118 #endif
20119 #ifdef __cplusplus
20120 }
20121 #endif
20122
20123 int
20124 main ()
20125 {
20126 return f != $ac_func;
20127   ;
20128   return 0;
20129 }
20130 _ACEOF
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20133   (eval $ac_link) 2>conftest.er1
20134   ac_status=$?
20135   grep -v '^ *+' conftest.er1 >conftest.err
20136   rm -f conftest.er1
20137   cat conftest.err >&5
20138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139   (exit $ac_status); } &&
20140          { ac_try='test -z "$ac_c_werror_flag"
20141                          || test ! -s conftest.err'
20142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143   (eval $ac_try) 2>&5
20144   ac_status=$?
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); }; } &&
20147          { ac_try='test -s conftest$ac_exeext'
20148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149   (eval $ac_try) 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); }; }; then
20153   eval "$as_ac_var=yes"
20154 else
20155   echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158 eval "$as_ac_var=no"
20159 fi
20160 rm -f conftest.err conftest.$ac_objext \
20161       conftest$ac_exeext conftest.$ac_ext
20162 fi
20163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20165 if test `eval echo '${'$as_ac_var'}'` = yes; then
20166   cat >>confdefs.h <<_ACEOF
20167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20168 _ACEOF
20169
20170 fi
20171 done
20172
20173
20174 for ac_func in ttrace
20175 do
20176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20177 echo "$as_me:$LINENO: checking for $ac_func" >&5
20178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20179 if eval "test \"\${$as_ac_var+set}\" = set"; then
20180   echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182   cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h.  */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h.  */
20188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20190 #define $ac_func innocuous_$ac_func
20191
20192 /* System header to define __stub macros and hopefully few prototypes,
20193     which can conflict with char $ac_func (); below.
20194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20195     <limits.h> exists even on freestanding compilers.  */
20196
20197 #ifdef __STDC__
20198 # include <limits.h>
20199 #else
20200 # include <assert.h>
20201 #endif
20202
20203 #undef $ac_func
20204
20205 /* Override any gcc2 internal prototype to avoid an error.  */
20206 #ifdef __cplusplus
20207 extern "C"
20208 {
20209 #endif
20210 /* We use char because int might match the return type of a gcc2
20211    builtin and then its argument prototype would still apply.  */
20212 char $ac_func ();
20213 /* The GNU C library defines this for functions which it implements
20214     to always fail with ENOSYS.  Some functions are actually named
20215     something starting with __ and the normal name is an alias.  */
20216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20217 choke me
20218 #else
20219 char (*f) () = $ac_func;
20220 #endif
20221 #ifdef __cplusplus
20222 }
20223 #endif
20224
20225 int
20226 main ()
20227 {
20228 return f != $ac_func;
20229   ;
20230   return 0;
20231 }
20232 _ACEOF
20233 rm -f conftest.$ac_objext conftest$ac_exeext
20234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20235   (eval $ac_link) 2>conftest.er1
20236   ac_status=$?
20237   grep -v '^ *+' conftest.er1 >conftest.err
20238   rm -f conftest.er1
20239   cat conftest.err >&5
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); } &&
20242          { ac_try='test -z "$ac_c_werror_flag"
20243                          || test ! -s conftest.err'
20244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245   (eval $ac_try) 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }; } &&
20249          { ac_try='test -s conftest$ac_exeext'
20250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251   (eval $ac_try) 2>&5
20252   ac_status=$?
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); }; }; then
20255   eval "$as_ac_var=yes"
20256 else
20257   echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20259
20260 eval "$as_ac_var=no"
20261 fi
20262 rm -f conftest.err conftest.$ac_objext \
20263       conftest$ac_exeext conftest.$ac_ext
20264 fi
20265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20267 if test `eval echo '${'$as_ac_var'}'` = yes; then
20268   cat >>confdefs.h <<_ACEOF
20269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20270 _ACEOF
20271
20272 fi
20273 done
20274
20275
20276 for ac_func in wborder
20277 do
20278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20279 echo "$as_me:$LINENO: checking for $ac_func" >&5
20280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20281 if eval "test \"\${$as_ac_var+set}\" = set"; then
20282   echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284   cat >conftest.$ac_ext <<_ACEOF
20285 /* confdefs.h.  */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h.  */
20290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20292 #define $ac_func innocuous_$ac_func
20293
20294 /* System header to define __stub macros and hopefully few prototypes,
20295     which can conflict with char $ac_func (); below.
20296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20297     <limits.h> exists even on freestanding compilers.  */
20298
20299 #ifdef __STDC__
20300 # include <limits.h>
20301 #else
20302 # include <assert.h>
20303 #endif
20304
20305 #undef $ac_func
20306
20307 /* Override any gcc2 internal prototype to avoid an error.  */
20308 #ifdef __cplusplus
20309 extern "C"
20310 {
20311 #endif
20312 /* We use char because int might match the return type of a gcc2
20313    builtin and then its argument prototype would still apply.  */
20314 char $ac_func ();
20315 /* The GNU C library defines this for functions which it implements
20316     to always fail with ENOSYS.  Some functions are actually named
20317     something starting with __ and the normal name is an alias.  */
20318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20319 choke me
20320 #else
20321 char (*f) () = $ac_func;
20322 #endif
20323 #ifdef __cplusplus
20324 }
20325 #endif
20326
20327 int
20328 main ()
20329 {
20330 return f != $ac_func;
20331   ;
20332   return 0;
20333 }
20334 _ACEOF
20335 rm -f conftest.$ac_objext conftest$ac_exeext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337   (eval $ac_link) 2>conftest.er1
20338   ac_status=$?
20339   grep -v '^ *+' conftest.er1 >conftest.err
20340   rm -f conftest.er1
20341   cat conftest.err >&5
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); } &&
20344          { ac_try='test -z "$ac_c_werror_flag"
20345                          || test ! -s conftest.err'
20346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347   (eval $ac_try) 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; } &&
20351          { ac_try='test -s conftest$ac_exeext'
20352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353   (eval $ac_try) 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); }; }; then
20357   eval "$as_ac_var=yes"
20358 else
20359   echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20361
20362 eval "$as_ac_var=no"
20363 fi
20364 rm -f conftest.err conftest.$ac_objext \
20365       conftest$ac_exeext conftest.$ac_ext
20366 fi
20367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20369 if test `eval echo '${'$as_ac_var'}'` = yes; then
20370   cat >>confdefs.h <<_ACEOF
20371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20372 _ACEOF
20373
20374 fi
20375 done
20376
20377
20378 # Check the return and argument types of ptrace.  No canned test for
20379 # this, so roll our own.
20380 gdb_ptrace_headers='
20381 #if HAVE_SYS_TYPES_H
20382 # include <sys/types.h>
20383 #endif
20384 #if HAVE_SYS_PTRACE_H
20385 # include <sys/ptrace.h>
20386 #endif
20387 #if HAVE_UNISTD_H
20388 # include <unistd.h>
20389 #endif
20390 '
20391 # There is no point in checking if we don't have a prototype.
20392 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20393 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
20394 if test "${ac_cv_have_decl_ptrace+set}" = set; then
20395   echo $ECHO_N "(cached) $ECHO_C" >&6
20396 else
20397   cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h.  */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h.  */
20403 $gdb_ptrace_headers
20404
20405 int
20406 main ()
20407 {
20408 #ifndef ptrace
20409   char *p = (char *) ptrace;
20410 #endif
20411
20412   ;
20413   return 0;
20414 }
20415 _ACEOF
20416 rm -f conftest.$ac_objext
20417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20418   (eval $ac_compile) 2>conftest.er1
20419   ac_status=$?
20420   grep -v '^ *+' conftest.er1 >conftest.err
20421   rm -f conftest.er1
20422   cat conftest.err >&5
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); } &&
20425          { ac_try='test -z "$ac_c_werror_flag"
20426                          || test ! -s conftest.err'
20427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428   (eval $ac_try) 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); }; } &&
20432          { ac_try='test -s conftest.$ac_objext'
20433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434   (eval $ac_try) 2>&5
20435   ac_status=$?
20436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437   (exit $ac_status); }; }; then
20438   ac_cv_have_decl_ptrace=yes
20439 else
20440   echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20442
20443 ac_cv_have_decl_ptrace=no
20444 fi
20445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20446 fi
20447 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20448 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
20449 if test $ac_cv_have_decl_ptrace = yes; then
20450
20451 cat >>confdefs.h <<_ACEOF
20452 #define HAVE_DECL_PTRACE 1
20453 _ACEOF
20454
20455
20456 else
20457   cat >>confdefs.h <<_ACEOF
20458 #define HAVE_DECL_PTRACE 0
20459 _ACEOF
20460
20461
20462   : ${gdb_cv_func_ptrace_ret='int'}
20463   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20464
20465 fi
20466
20467
20468 # Check return type.  Varargs (used on GNU/Linux) conflict with the
20469 # empty argument list, so check for that explicitly.
20470 echo "$as_me:$LINENO: checking return type of ptrace" >&5
20471 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
20472 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
20473   echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475   cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481 $gdb_ptrace_headers
20482 int
20483 main ()
20484 {
20485 extern long ptrace (enum __ptrace_request, ...);
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 rm -f conftest.$ac_objext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20492   (eval $ac_compile) 2>conftest.er1
20493   ac_status=$?
20494   grep -v '^ *+' conftest.er1 >conftest.err
20495   rm -f conftest.er1
20496   cat conftest.err >&5
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); } &&
20499          { ac_try='test -z "$ac_c_werror_flag"
20500                          || test ! -s conftest.err'
20501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502   (eval $ac_try) 2>&5
20503   ac_status=$?
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); }; } &&
20506          { ac_try='test -s conftest.$ac_objext'
20507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508   (eval $ac_try) 2>&5
20509   ac_status=$?
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); }; }; then
20512   gdb_cv_func_ptrace_ret='long'
20513 else
20514   echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20516
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h.  */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h.  */
20523 $gdb_ptrace_headers
20524 int
20525 main ()
20526 {
20527 extern int ptrace ();
20528   ;
20529   return 0;
20530 }
20531 _ACEOF
20532 rm -f conftest.$ac_objext
20533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20534   (eval $ac_compile) 2>conftest.er1
20535   ac_status=$?
20536   grep -v '^ *+' conftest.er1 >conftest.err
20537   rm -f conftest.er1
20538   cat conftest.err >&5
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); } &&
20541          { ac_try='test -z "$ac_c_werror_flag"
20542                          || test ! -s conftest.err'
20543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544   (eval $ac_try) 2>&5
20545   ac_status=$?
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); }; } &&
20548          { ac_try='test -s conftest.$ac_objext'
20549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550   (eval $ac_try) 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; }; then
20554   gdb_cv_func_ptrace_ret='int'
20555 else
20556   echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 gdb_cv_func_ptrace_ret='long'
20560 fi
20561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20562 fi
20563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20564 fi
20565 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20566 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
20567
20568 cat >>confdefs.h <<_ACEOF
20569 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
20570 _ACEOF
20571
20572 # Check argument types.
20573 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20574 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
20575 if test "${gdb_cv_func_ptrace_args+set}" = set; then
20576   echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578
20579   cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585 $gdb_ptrace_headers
20586 int
20587 main ()
20588 {
20589 extern long ptrace (enum __ptrace_request, ...);
20590   ;
20591   return 0;
20592 }
20593 _ACEOF
20594 rm -f conftest.$ac_objext
20595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20596   (eval $ac_compile) 2>conftest.er1
20597   ac_status=$?
20598   grep -v '^ *+' conftest.er1 >conftest.err
20599   rm -f conftest.er1
20600   cat conftest.err >&5
20601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602   (exit $ac_status); } &&
20603          { ac_try='test -z "$ac_c_werror_flag"
20604                          || test ! -s conftest.err'
20605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606   (eval $ac_try) 2>&5
20607   ac_status=$?
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); }; } &&
20610          { ac_try='test -s conftest.$ac_objext'
20611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612   (eval $ac_try) 2>&5
20613   ac_status=$?
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); }; }; then
20616   gdb_cv_func_ptrace_args='int,int,long,long'
20617 else
20618   echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20620
20621
20622 for gdb_arg1 in 'int' 'long'; do
20623  for gdb_arg2 in 'pid_t' 'int' 'long'; do
20624   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
20625    for gdb_arg4 in 'int' 'long'; do
20626      cat >conftest.$ac_ext <<_ACEOF
20627 /* confdefs.h.  */
20628 _ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h.  */
20632 $gdb_ptrace_headers
20633 int
20634 main ()
20635 {
20636
20637 extern $gdb_cv_func_ptrace_ret
20638   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20639
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646   (eval $ac_compile) 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } &&
20653          { ac_try='test -z "$ac_c_werror_flag"
20654                          || test ! -s conftest.err'
20655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656   (eval $ac_try) 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); }; } &&
20660          { ac_try='test -s conftest.$ac_objext'
20661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662   (eval $ac_try) 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; }; then
20666   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20667     break 4;
20668 else
20669   echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672 fi
20673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20674     for gdb_arg5 in 'int *' 'int' 'long'; do
20675      cat >conftest.$ac_ext <<_ACEOF
20676 /* confdefs.h.  */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h.  */
20681 $gdb_ptrace_headers
20682 int
20683 main ()
20684 {
20685
20686 extern $gdb_cv_func_ptrace_ret
20687   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20688
20689   ;
20690   return 0;
20691 }
20692 _ACEOF
20693 rm -f conftest.$ac_objext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20695   (eval $ac_compile) 2>conftest.er1
20696   ac_status=$?
20697   grep -v '^ *+' conftest.er1 >conftest.err
20698   rm -f conftest.er1
20699   cat conftest.err >&5
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); } &&
20702          { ac_try='test -z "$ac_c_werror_flag"
20703                          || test ! -s conftest.err'
20704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705   (eval $ac_try) 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); }; } &&
20709          { ac_try='test -s conftest.$ac_objext'
20710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711   (eval $ac_try) 2>&5
20712   ac_status=$?
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); }; }; then
20715
20716 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20717     break 5;
20718 else
20719   echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722 fi
20723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20724     done
20725    done
20726   done
20727  done
20728 done
20729 # Provide a safe default value.
20730 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20731
20732 fi
20733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20734 fi
20735 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20736 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
20737 ac_save_IFS=$IFS; IFS=','
20738 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20739 IFS=$ac_save_IFS
20740 shift
20741
20742 cat >>confdefs.h <<_ACEOF
20743 #define PTRACE_TYPE_ARG3 $3
20744 _ACEOF
20745
20746 if test -n "$5"; then
20747
20748 cat >>confdefs.h <<_ACEOF
20749 #define PTRACE_TYPE_ARG5 $5
20750 _ACEOF
20751
20752 fi
20753
20754 if test "$cross_compiling" = no; then
20755   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20756 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20757 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20758   echo $ECHO_N "(cached) $ECHO_C" >&6
20759 else
20760   if test "$cross_compiling" = yes; then
20761   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20762 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20763    { (exit 1); exit 1; }; }
20764 else
20765   cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 #if HAVE_UNISTD_H
20772 # include <unistd.h>
20773 #endif
20774
20775 int
20776 main ()
20777 {
20778 /* If this system has a BSD-style setpgrp which takes arguments,
20779   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20780   exit successfully. */
20781   exit (setpgrp (1,1) == -1 ? 0 : 1);
20782   ;
20783   return 0;
20784 }
20785 _ACEOF
20786 rm -f conftest$ac_exeext
20787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20788   (eval $ac_link) 2>&5
20789   ac_status=$?
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793   (eval $ac_try) 2>&5
20794   ac_status=$?
20795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796   (exit $ac_status); }; }; then
20797   ac_cv_func_setpgrp_void=no
20798 else
20799   echo "$as_me: program exited with status $ac_status" >&5
20800 echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20802
20803 ( exit $ac_status )
20804 ac_cv_func_setpgrp_void=yes
20805 fi
20806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20807 fi
20808 fi
20809 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20810 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20811 if test $ac_cv_func_setpgrp_void = yes; then
20812
20813 cat >>confdefs.h <<\_ACEOF
20814 #define SETPGRP_VOID 1
20815 _ACEOF
20816
20817 fi
20818
20819 else
20820   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20821 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20822 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20823   echo $ECHO_N "(cached) $ECHO_C" >&6
20824 else
20825   cat >conftest.$ac_ext <<_ACEOF
20826 /* confdefs.h.  */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h.  */
20831
20832 #include <unistd.h>
20833
20834 int
20835 main ()
20836 {
20837
20838   if (setpgrp(1,1) == -1)
20839     exit (0);
20840   else
20841     exit (1);
20842
20843   ;
20844   return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20849   (eval $ac_compile) 2>conftest.er1
20850   ac_status=$?
20851   grep -v '^ *+' conftest.er1 >conftest.err
20852   rm -f conftest.er1
20853   cat conftest.err >&5
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); } &&
20856          { ac_try='test -z "$ac_c_werror_flag"
20857                          || test ! -s conftest.err'
20858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859   (eval $ac_try) 2>&5
20860   ac_status=$?
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); }; } &&
20863          { ac_try='test -s conftest.$ac_objext'
20864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865   (eval $ac_try) 2>&5
20866   ac_status=$?
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); }; }; then
20869   ac_cv_func_setpgrp_void=no
20870 else
20871   echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20873
20874 ac_cv_func_setpgrp_void=yes
20875 fi
20876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20877 fi
20878 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20879 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20880 if test $ac_cv_func_setpgrp_void = yes; then
20881   cat >>confdefs.h <<\_ACEOF
20882 #define SETPGRP_VOID 1
20883 _ACEOF
20884
20885 fi
20886 fi
20887
20888 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
20889 # since sigsetjmp might only be defined as a macro.
20890 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20891 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
20892 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
20893   echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895   cat >conftest.$ac_ext <<_ACEOF
20896 /* confdefs.h.  */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h.  */
20901
20902 #include <setjmp.h>
20903
20904 int
20905 main ()
20906 {
20907 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20908   ;
20909   return 0;
20910 }
20911 _ACEOF
20912 rm -f conftest.$ac_objext
20913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20914   (eval $ac_compile) 2>conftest.er1
20915   ac_status=$?
20916   grep -v '^ *+' conftest.er1 >conftest.err
20917   rm -f conftest.er1
20918   cat conftest.err >&5
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); } &&
20921          { ac_try='test -z "$ac_c_werror_flag"
20922                          || test ! -s conftest.err'
20923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924   (eval $ac_try) 2>&5
20925   ac_status=$?
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); }; } &&
20928          { ac_try='test -s conftest.$ac_objext'
20929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930   (eval $ac_try) 2>&5
20931   ac_status=$?
20932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933   (exit $ac_status); }; }; then
20934   gdb_cv_func_sigsetjmp=yes
20935 else
20936   echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20938
20939 gdb_cv_func_sigsetjmp=no
20940 fi
20941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20942 fi
20943 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20944 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
20945 if test $gdb_cv_func_sigsetjmp = yes; then
20946
20947 cat >>confdefs.h <<\_ACEOF
20948 #define HAVE_SIGSETJMP 1
20949 _ACEOF
20950
20951 fi
20952
20953 # Assume we'll default to using the included libiberty regex.
20954 gdb_use_included_regex=yes
20955
20956 # However, if the system regex is GNU regex, then default to *not*
20957 # using the included regex.
20958 echo "$as_me:$LINENO: checking for GNU regex" >&5
20959 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
20960 if test "${gdb_cv_have_gnu_regex+set}" = set; then
20961   echo $ECHO_N "(cached) $ECHO_C" >&6
20962 else
20963   cat >conftest.$ac_ext <<_ACEOF
20964 /* confdefs.h.  */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h.  */
20969 #include <gnu-versions.h>
20970 int
20971 main ()
20972 {
20973 #define REGEX_INTERFACE_VERSION 1
20974 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20975 # error "Version mismatch"
20976 #endif
20977   ;
20978   return 0;
20979 }
20980 _ACEOF
20981 rm -f conftest.$ac_objext
20982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20983   (eval $ac_compile) 2>conftest.er1
20984   ac_status=$?
20985   grep -v '^ *+' conftest.er1 >conftest.err
20986   rm -f conftest.er1
20987   cat conftest.err >&5
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); } &&
20990          { ac_try='test -z "$ac_c_werror_flag"
20991                          || test ! -s conftest.err'
20992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993   (eval $ac_try) 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; } &&
20997          { ac_try='test -s conftest.$ac_objext'
20998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999   (eval $ac_try) 2>&5
21000   ac_status=$?
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); }; }; then
21003   gdb_cv_have_gnu_regex=yes
21004 else
21005   echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21007
21008 gdb_cv_have_gnu_regex=no
21009 fi
21010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21011 fi
21012 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
21013 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
21014 if test $gdb_cv_have_gnu_regex = yes; then
21015   gdb_use_included_regex=no
21016 fi
21017
21018
21019 # Check whether --with-included-regex or --without-included-regex was given.
21020 if test "${with_included_regex+set}" = set; then
21021   withval="$with_included_regex"
21022   gdb_with_regex=$withval
21023 else
21024   gdb_with_regex=$gdb_use_included_regex
21025 fi;
21026 if test "$gdb_with_regex" = yes; then
21027
21028 cat >>confdefs.h <<\_ACEOF
21029 #define USE_INCLUDED_REGEX 1
21030 _ACEOF
21031
21032 fi
21033
21034 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
21035 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
21036 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
21037 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040   cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h.  */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h.  */
21046 #include <sys/param.h>
21047 #include <sys/proc.h>
21048
21049
21050 int
21051 main ()
21052 {
21053 static struct thread ac_aggr;
21054 if (ac_aggr.td_pcb)
21055 return 0;
21056   ;
21057   return 0;
21058 }
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21062   (eval $ac_compile) 2>conftest.er1
21063   ac_status=$?
21064   grep -v '^ *+' conftest.er1 >conftest.err
21065   rm -f conftest.er1
21066   cat conftest.err >&5
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } &&
21069          { ac_try='test -z "$ac_c_werror_flag"
21070                          || test ! -s conftest.err'
21071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072   (eval $ac_try) 2>&5
21073   ac_status=$?
21074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075   (exit $ac_status); }; } &&
21076          { ac_try='test -s conftest.$ac_objext'
21077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078   (eval $ac_try) 2>&5
21079   ac_status=$?
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); }; }; then
21082   ac_cv_member_struct_thread_td_pcb=yes
21083 else
21084   echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21086
21087 cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h.  */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h.  */
21093 #include <sys/param.h>
21094 #include <sys/proc.h>
21095
21096
21097 int
21098 main ()
21099 {
21100 static struct thread ac_aggr;
21101 if (sizeof ac_aggr.td_pcb)
21102 return 0;
21103   ;
21104   return 0;
21105 }
21106 _ACEOF
21107 rm -f conftest.$ac_objext
21108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21109   (eval $ac_compile) 2>conftest.er1
21110   ac_status=$?
21111   grep -v '^ *+' conftest.er1 >conftest.err
21112   rm -f conftest.er1
21113   cat conftest.err >&5
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); } &&
21116          { ac_try='test -z "$ac_c_werror_flag"
21117                          || test ! -s conftest.err'
21118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119   (eval $ac_try) 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); }; } &&
21123          { ac_try='test -s conftest.$ac_objext'
21124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125   (eval $ac_try) 2>&5
21126   ac_status=$?
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); }; }; then
21129   ac_cv_member_struct_thread_td_pcb=yes
21130 else
21131   echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21133
21134 ac_cv_member_struct_thread_td_pcb=no
21135 fi
21136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21137 fi
21138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21139 fi
21140 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
21141 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
21142 if test $ac_cv_member_struct_thread_td_pcb = yes; then
21143
21144 cat >>confdefs.h <<_ACEOF
21145 #define HAVE_STRUCT_THREAD_TD_PCB 1
21146 _ACEOF
21147
21148
21149 fi
21150
21151
21152 # See if <sys/lwp.h> defines `struct lwp`.
21153 echo "$as_me:$LINENO: checking for struct lwp" >&5
21154 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
21155 if test "${gdb_cv_struct_lwp+set}" = set; then
21156   echo $ECHO_N "(cached) $ECHO_C" >&6
21157 else
21158   cat >conftest.$ac_ext <<_ACEOF
21159 /* confdefs.h.  */
21160 _ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h.  */
21164 #include <sys/param.h>
21165 #include <sys/lwp.h>
21166 int
21167 main ()
21168 {
21169 struct lwp l;
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176   (eval $ac_compile) 2>conftest.er1
21177   ac_status=$?
21178   grep -v '^ *+' conftest.er1 >conftest.err
21179   rm -f conftest.er1
21180   cat conftest.err >&5
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); } &&
21183          { ac_try='test -z "$ac_c_werror_flag"
21184                          || test ! -s conftest.err'
21185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186   (eval $ac_try) 2>&5
21187   ac_status=$?
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); }; } &&
21190          { ac_try='test -s conftest.$ac_objext'
21191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192   (eval $ac_try) 2>&5
21193   ac_status=$?
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); }; }; then
21196   gdb_cv_struct_lwp=yes
21197 else
21198   echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21200
21201 gdb_cv_struct_lwp=no
21202 fi
21203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21204 fi
21205 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
21206 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
21207 if test $gdb_cv_struct_lwp = yes; then
21208
21209 cat >>confdefs.h <<\_ACEOF
21210 #define HAVE_STRUCT_LWP 1
21211 _ACEOF
21212
21213 fi
21214
21215 # See if <machine/reg.h> degines `struct reg'.
21216 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
21217 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
21218 if test "${gdb_cv_struct_reg+set}" = set; then
21219   echo $ECHO_N "(cached) $ECHO_C" >&6
21220 else
21221   cat >conftest.$ac_ext <<_ACEOF
21222 /* confdefs.h.  */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h.  */
21227 #include <sys/types.h>
21228 #include <machine/reg.h>
21229 int
21230 main ()
21231 {
21232 struct reg r;
21233   ;
21234   return 0;
21235 }
21236 _ACEOF
21237 rm -f conftest.$ac_objext
21238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21239   (eval $ac_compile) 2>conftest.er1
21240   ac_status=$?
21241   grep -v '^ *+' conftest.er1 >conftest.err
21242   rm -f conftest.er1
21243   cat conftest.err >&5
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); } &&
21246          { ac_try='test -z "$ac_c_werror_flag"
21247                          || test ! -s conftest.err'
21248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249   (eval $ac_try) 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); }; } &&
21253          { ac_try='test -s conftest.$ac_objext'
21254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255   (eval $ac_try) 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; }; then
21259   gdb_cv_struct_reg=yes
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264 gdb_cv_struct_reg=no
21265 fi
21266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21267 fi
21268 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
21269 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
21270 if test $gdb_cv_struct_reg = yes; then
21271
21272 cat >>confdefs.h <<\_ACEOF
21273 #define HAVE_STRUCT_REG 1
21274 _ACEOF
21275
21276 fi
21277
21278 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
21279 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
21280 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
21281 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
21282 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
21283   echo $ECHO_N "(cached) $ECHO_C" >&6
21284 else
21285   cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h.  */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h.  */
21291 #include <machine/reg.h>
21292
21293 int
21294 main ()
21295 {
21296 static struct reg ac_aggr;
21297 if (ac_aggr.r_fs)
21298 return 0;
21299   ;
21300   return 0;
21301 }
21302 _ACEOF
21303 rm -f conftest.$ac_objext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305   (eval $ac_compile) 2>conftest.er1
21306   ac_status=$?
21307   grep -v '^ *+' conftest.er1 >conftest.err
21308   rm -f conftest.er1
21309   cat conftest.err >&5
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); } &&
21312          { ac_try='test -z "$ac_c_werror_flag"
21313                          || test ! -s conftest.err'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; } &&
21319          { ac_try='test -s conftest.$ac_objext'
21320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321   (eval $ac_try) 2>&5
21322   ac_status=$?
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); }; }; then
21325   ac_cv_member_struct_reg_r_fs=yes
21326 else
21327   echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336 #include <machine/reg.h>
21337
21338 int
21339 main ()
21340 {
21341 static struct reg ac_aggr;
21342 if (sizeof ac_aggr.r_fs)
21343 return 0;
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest.$ac_objext
21349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21350   (eval $ac_compile) 2>conftest.er1
21351   ac_status=$?
21352   grep -v '^ *+' conftest.er1 >conftest.err
21353   rm -f conftest.er1
21354   cat conftest.err >&5
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } &&
21357          { ac_try='test -z "$ac_c_werror_flag"
21358                          || test ! -s conftest.err'
21359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360   (eval $ac_try) 2>&5
21361   ac_status=$?
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); }; } &&
21364          { ac_try='test -s conftest.$ac_objext'
21365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366   (eval $ac_try) 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; }; then
21370   ac_cv_member_struct_reg_r_fs=yes
21371 else
21372   echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 ac_cv_member_struct_reg_r_fs=no
21376 fi
21377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21378 fi
21379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21380 fi
21381 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21382 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
21383 if test $ac_cv_member_struct_reg_r_fs = yes; then
21384
21385 cat >>confdefs.h <<_ACEOF
21386 #define HAVE_STRUCT_REG_R_FS 1
21387 _ACEOF
21388
21389
21390 fi
21391 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21392 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
21393 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
21394   echo $ECHO_N "(cached) $ECHO_C" >&6
21395 else
21396   cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h.  */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h.  */
21402 #include <machine/reg.h>
21403
21404 int
21405 main ()
21406 {
21407 static struct reg ac_aggr;
21408 if (ac_aggr.r_gs)
21409 return 0;
21410   ;
21411   return 0;
21412 }
21413 _ACEOF
21414 rm -f conftest.$ac_objext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21416   (eval $ac_compile) 2>conftest.er1
21417   ac_status=$?
21418   grep -v '^ *+' conftest.er1 >conftest.err
21419   rm -f conftest.er1
21420   cat conftest.err >&5
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } &&
21423          { ac_try='test -z "$ac_c_werror_flag"
21424                          || test ! -s conftest.err'
21425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426   (eval $ac_try) 2>&5
21427   ac_status=$?
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); }; } &&
21430          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21436   ac_cv_member_struct_reg_r_gs=yes
21437 else
21438   echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21440
21441 cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h.  */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h.  */
21447 #include <machine/reg.h>
21448
21449 int
21450 main ()
21451 {
21452 static struct reg ac_aggr;
21453 if (sizeof ac_aggr.r_gs)
21454 return 0;
21455   ;
21456   return 0;
21457 }
21458 _ACEOF
21459 rm -f conftest.$ac_objext
21460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21461   (eval $ac_compile) 2>conftest.er1
21462   ac_status=$?
21463   grep -v '^ *+' conftest.er1 >conftest.err
21464   rm -f conftest.er1
21465   cat conftest.err >&5
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); } &&
21468          { ac_try='test -z "$ac_c_werror_flag"
21469                          || test ! -s conftest.err'
21470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471   (eval $ac_try) 2>&5
21472   ac_status=$?
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); }; } &&
21475          { ac_try='test -s conftest.$ac_objext'
21476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477   (eval $ac_try) 2>&5
21478   ac_status=$?
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); }; }; then
21481   ac_cv_member_struct_reg_r_gs=yes
21482 else
21483   echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21485
21486 ac_cv_member_struct_reg_r_gs=no
21487 fi
21488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21489 fi
21490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21491 fi
21492 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21493 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
21494 if test $ac_cv_member_struct_reg_r_gs = yes; then
21495
21496 cat >>confdefs.h <<_ACEOF
21497 #define HAVE_STRUCT_REG_R_GS 1
21498 _ACEOF
21499
21500
21501 fi
21502
21503
21504 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
21505 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21506 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
21507 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
21508   echo $ECHO_N "(cached) $ECHO_C" >&6
21509 else
21510   cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h.  */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h.  */
21516 #include <sys/ptrace.h>
21517 int
21518 main ()
21519 {
21520 PTRACE_GETREGS;
21521   ;
21522   return 0;
21523 }
21524 _ACEOF
21525 rm -f conftest.$ac_objext
21526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21527   (eval $ac_compile) 2>conftest.er1
21528   ac_status=$?
21529   grep -v '^ *+' conftest.er1 >conftest.err
21530   rm -f conftest.er1
21531   cat conftest.err >&5
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); } &&
21534          { ac_try='test -z "$ac_c_werror_flag"
21535                          || test ! -s conftest.err'
21536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537   (eval $ac_try) 2>&5
21538   ac_status=$?
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); }; } &&
21541          { ac_try='test -s conftest.$ac_objext'
21542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543   (eval $ac_try) 2>&5
21544   ac_status=$?
21545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546   (exit $ac_status); }; }; then
21547   gdb_cv_have_ptrace_getregs=yes
21548 else
21549   echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21551
21552 gdb_cv_have_ptrace_getregs=no
21553 fi
21554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21555 fi
21556
21557 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21558 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
21559 if test $gdb_cv_have_ptrace_getregs = yes; then
21560
21561 cat >>confdefs.h <<\_ACEOF
21562 #define HAVE_PTRACE_GETREGS 1
21563 _ACEOF
21564
21565 fi
21566
21567 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
21568 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21569 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
21570 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
21571   echo $ECHO_N "(cached) $ECHO_C" >&6
21572 else
21573   cat >conftest.$ac_ext <<_ACEOF
21574 /* confdefs.h.  */
21575 _ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h.  */
21579 #include <sys/ptrace.h>
21580 int
21581 main ()
21582 {
21583 PTRACE_GETFPXREGS;
21584   ;
21585   return 0;
21586 }
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21590   (eval $ac_compile) 2>conftest.er1
21591   ac_status=$?
21592   grep -v '^ *+' conftest.er1 >conftest.err
21593   rm -f conftest.er1
21594   cat conftest.err >&5
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); } &&
21597          { ac_try='test -z "$ac_c_werror_flag"
21598                          || test ! -s conftest.err'
21599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600   (eval $ac_try) 2>&5
21601   ac_status=$?
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); }; } &&
21604          { ac_try='test -s conftest.$ac_objext'
21605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21606   (eval $ac_try) 2>&5
21607   ac_status=$?
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); }; }; then
21610   gdb_cv_have_ptrace_getfpxregs=yes
21611 else
21612   echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21614
21615 gdb_cv_have_ptrace_getfpxregs=no
21616 fi
21617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21618 fi
21619
21620 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21621 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
21622 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
21623
21624 cat >>confdefs.h <<\_ACEOF
21625 #define HAVE_PTRACE_GETFPXREGS 1
21626 _ACEOF
21627
21628 fi
21629
21630 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
21631 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21632 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
21633 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
21634   echo $ECHO_N "(cached) $ECHO_C" >&6
21635 else
21636   cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h.  */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h.  */
21642 #include <sys/types.h>
21643 #include <sys/ptrace.h>
21644 int
21645 main ()
21646 {
21647 PT_GETDBREGS;
21648   ;
21649   return 0;
21650 }
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654   (eval $ac_compile) 2>conftest.er1
21655   ac_status=$?
21656   grep -v '^ *+' conftest.er1 >conftest.err
21657   rm -f conftest.er1
21658   cat conftest.err >&5
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); } &&
21661          { ac_try='test -z "$ac_c_werror_flag"
21662                          || test ! -s conftest.err'
21663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664   (eval $ac_try) 2>&5
21665   ac_status=$?
21666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667   (exit $ac_status); }; } &&
21668          { ac_try='test -s conftest.$ac_objext'
21669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670   (eval $ac_try) 2>&5
21671   ac_status=$?
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); }; }; then
21674   gdb_cv_have_pt_getdbregs=yes
21675 else
21676   echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21678
21679 gdb_cv_have_pt_getdbregs=no
21680 fi
21681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21682 fi
21683
21684 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21685 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
21686 if test $gdb_cv_have_pt_getdbregs = yes; then
21687
21688 cat >>confdefs.h <<\_ACEOF
21689 #define HAVE_PT_GETDBREGS 1
21690 _ACEOF
21691
21692 fi
21693
21694 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
21695 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21696 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
21697 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
21698   echo $ECHO_N "(cached) $ECHO_C" >&6
21699 else
21700   cat >conftest.$ac_ext <<_ACEOF
21701 /* confdefs.h.  */
21702 _ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h.  */
21706 #include <sys/types.h>
21707 #include <sys/ptrace.h>
21708 int
21709 main ()
21710 {
21711 PT_GETXMMREGS;
21712   ;
21713   return 0;
21714 }
21715 _ACEOF
21716 rm -f conftest.$ac_objext
21717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718   (eval $ac_compile) 2>conftest.er1
21719   ac_status=$?
21720   grep -v '^ *+' conftest.er1 >conftest.err
21721   rm -f conftest.er1
21722   cat conftest.err >&5
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); } &&
21725          { ac_try='test -z "$ac_c_werror_flag"
21726                          || test ! -s conftest.err'
21727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728   (eval $ac_try) 2>&5
21729   ac_status=$?
21730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731   (exit $ac_status); }; } &&
21732          { ac_try='test -s conftest.$ac_objext'
21733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734   (eval $ac_try) 2>&5
21735   ac_status=$?
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); }; }; then
21738   gdb_cv_have_pt_getxmmregs=yes
21739 else
21740   echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 gdb_cv_have_pt_getxmmregs=no
21744 fi
21745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21746 fi
21747
21748 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21749 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
21750 if test $gdb_cv_have_pt_getxmmregs = yes; then
21751
21752 cat >>confdefs.h <<\_ACEOF
21753 #define HAVE_PT_GETXMMREGS 1
21754 _ACEOF
21755
21756 fi
21757
21758 # Detect which type of /proc is in use, such as for Unixware or Solaris.
21759
21760 if test "${target}" = "${host}"; then
21761   case "${host}" in
21762   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
21763
21764 cat >>confdefs.h <<\_ACEOF
21765 #define NEW_PROC_API 1
21766 _ACEOF
21767
21768       ;;
21769   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
21770
21771 cat >>confdefs.h <<\_ACEOF
21772 #define NEW_PROC_API 1
21773 _ACEOF
21774
21775       ;;
21776   mips-sgi-irix5*)
21777       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
21778
21779 cat >>confdefs.h <<\_ACEOF
21780 #define _KMEMUSER 1
21781 _ACEOF
21782
21783       ;;
21784   esac
21785 fi
21786
21787 if test "$ac_cv_header_sys_procfs_h" = yes; then
21788   echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21789 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
21790  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21791   echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21793   cat >conftest.$ac_ext <<_ACEOF
21794 /* confdefs.h.  */
21795 _ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h.  */
21799
21800 #define _SYSCALL32
21801 #include <sys/procfs.h>
21802 int
21803 main ()
21804 {
21805 pstatus_t avar
21806   ;
21807   return 0;
21808 }
21809 _ACEOF
21810 rm -f conftest.$ac_objext
21811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21812   (eval $ac_compile) 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_objext'
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   bfd_cv_have_sys_procfs_type_pstatus_t=yes
21833 else
21834   echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21836
21837 bfd_cv_have_sys_procfs_type_pstatus_t=no
21838
21839 fi
21840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21841 fi
21842
21843  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
21844
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_PSTATUS_T 1
21847 _ACEOF
21848
21849  fi
21850  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21851 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
21852
21853   echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21854 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
21855  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21856   echo $ECHO_N "(cached) $ECHO_C" >&6
21857 else
21858   cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h.  */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h.  */
21864
21865 #define _SYSCALL32
21866 #include <sys/procfs.h>
21867 int
21868 main ()
21869 {
21870 prrun_t avar
21871   ;
21872   return 0;
21873 }
21874 _ACEOF
21875 rm -f conftest.$ac_objext
21876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21877   (eval $ac_compile) 2>conftest.er1
21878   ac_status=$?
21879   grep -v '^ *+' conftest.er1 >conftest.err
21880   rm -f conftest.er1
21881   cat conftest.err >&5
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); } &&
21884          { ac_try='test -z "$ac_c_werror_flag"
21885                          || test ! -s conftest.err'
21886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21887   (eval $ac_try) 2>&5
21888   ac_status=$?
21889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890   (exit $ac_status); }; } &&
21891          { ac_try='test -s conftest.$ac_objext'
21892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893   (eval $ac_try) 2>&5
21894   ac_status=$?
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); }; }; then
21897   bfd_cv_have_sys_procfs_type_prrun_t=yes
21898 else
21899   echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902 bfd_cv_have_sys_procfs_type_prrun_t=no
21903
21904 fi
21905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21906 fi
21907
21908  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
21909
21910 cat >>confdefs.h <<\_ACEOF
21911 #define HAVE_PRRUN_T 1
21912 _ACEOF
21913
21914  fi
21915  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21916 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
21917
21918   echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21919 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
21920  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21921   echo $ECHO_N "(cached) $ECHO_C" >&6
21922 else
21923   cat >conftest.$ac_ext <<_ACEOF
21924 /* confdefs.h.  */
21925 _ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h.  */
21929
21930 #define _SYSCALL32
21931 #include <sys/procfs.h>
21932 int
21933 main ()
21934 {
21935 gregset_t avar
21936   ;
21937   return 0;
21938 }
21939 _ACEOF
21940 rm -f conftest.$ac_objext
21941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21942   (eval $ac_compile) 2>conftest.er1
21943   ac_status=$?
21944   grep -v '^ *+' conftest.er1 >conftest.err
21945   rm -f conftest.er1
21946   cat conftest.err >&5
21947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948   (exit $ac_status); } &&
21949          { ac_try='test -z "$ac_c_werror_flag"
21950                          || test ! -s conftest.err'
21951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952   (eval $ac_try) 2>&5
21953   ac_status=$?
21954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955   (exit $ac_status); }; } &&
21956          { ac_try='test -s conftest.$ac_objext'
21957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958   (eval $ac_try) 2>&5
21959   ac_status=$?
21960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961   (exit $ac_status); }; }; then
21962   bfd_cv_have_sys_procfs_type_gregset_t=yes
21963 else
21964   echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21966
21967 bfd_cv_have_sys_procfs_type_gregset_t=no
21968
21969 fi
21970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21971 fi
21972
21973  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21974
21975 cat >>confdefs.h <<\_ACEOF
21976 #define HAVE_GREGSET_T 1
21977 _ACEOF
21978
21979  fi
21980  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21981 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
21982
21983   echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21984 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
21985  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21986   echo $ECHO_N "(cached) $ECHO_C" >&6
21987 else
21988   cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h.  */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h.  */
21994
21995 #define _SYSCALL32
21996 #include <sys/procfs.h>
21997 int
21998 main ()
21999 {
22000 fpregset_t avar
22001   ;
22002   return 0;
22003 }
22004 _ACEOF
22005 rm -f conftest.$ac_objext
22006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22007   (eval $ac_compile) 2>conftest.er1
22008   ac_status=$?
22009   grep -v '^ *+' conftest.er1 >conftest.err
22010   rm -f conftest.er1
22011   cat conftest.err >&5
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); } &&
22014          { ac_try='test -z "$ac_c_werror_flag"
22015                          || test ! -s conftest.err'
22016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017   (eval $ac_try) 2>&5
22018   ac_status=$?
22019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); }; } &&
22021          { ac_try='test -s conftest.$ac_objext'
22022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023   (eval $ac_try) 2>&5
22024   ac_status=$?
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); }; }; then
22027   bfd_cv_have_sys_procfs_type_fpregset_t=yes
22028 else
22029   echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22031
22032 bfd_cv_have_sys_procfs_type_fpregset_t=no
22033
22034 fi
22035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22036 fi
22037
22038  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
22039
22040 cat >>confdefs.h <<\_ACEOF
22041 #define HAVE_FPREGSET_T 1
22042 _ACEOF
22043
22044  fi
22045  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
22046 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
22047
22048   echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
22049 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
22050  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
22051   echo $ECHO_N "(cached) $ECHO_C" >&6
22052 else
22053   cat >conftest.$ac_ext <<_ACEOF
22054 /* confdefs.h.  */
22055 _ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h.  */
22059
22060 #define _SYSCALL32
22061 #include <sys/procfs.h>
22062 int
22063 main ()
22064 {
22065 prgregset_t avar
22066   ;
22067   return 0;
22068 }
22069 _ACEOF
22070 rm -f conftest.$ac_objext
22071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22072   (eval $ac_compile) 2>conftest.er1
22073   ac_status=$?
22074   grep -v '^ *+' conftest.er1 >conftest.err
22075   rm -f conftest.er1
22076   cat conftest.err >&5
22077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078   (exit $ac_status); } &&
22079          { ac_try='test -z "$ac_c_werror_flag"
22080                          || test ! -s conftest.err'
22081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082   (eval $ac_try) 2>&5
22083   ac_status=$?
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); }; } &&
22086          { ac_try='test -s conftest.$ac_objext'
22087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088   (eval $ac_try) 2>&5
22089   ac_status=$?
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); }; }; then
22092   bfd_cv_have_sys_procfs_type_prgregset_t=yes
22093 else
22094   echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22096
22097 bfd_cv_have_sys_procfs_type_prgregset_t=no
22098
22099 fi
22100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22101 fi
22102
22103  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
22104
22105 cat >>confdefs.h <<\_ACEOF
22106 #define HAVE_PRGREGSET_T 1
22107 _ACEOF
22108
22109  fi
22110  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
22111 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
22112
22113   echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
22114 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
22115  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
22116   echo $ECHO_N "(cached) $ECHO_C" >&6
22117 else
22118   cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h.  */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h.  */
22124
22125 #define _SYSCALL32
22126 #include <sys/procfs.h>
22127 int
22128 main ()
22129 {
22130 prfpregset_t avar
22131   ;
22132   return 0;
22133 }
22134 _ACEOF
22135 rm -f conftest.$ac_objext
22136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22137   (eval $ac_compile) 2>conftest.er1
22138   ac_status=$?
22139   grep -v '^ *+' conftest.er1 >conftest.err
22140   rm -f conftest.er1
22141   cat conftest.err >&5
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); } &&
22144          { ac_try='test -z "$ac_c_werror_flag"
22145                          || test ! -s conftest.err'
22146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147   (eval $ac_try) 2>&5
22148   ac_status=$?
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); }; } &&
22151          { ac_try='test -s conftest.$ac_objext'
22152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22153   (eval $ac_try) 2>&5
22154   ac_status=$?
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); }; }; then
22157   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
22158 else
22159   echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22161
22162 bfd_cv_have_sys_procfs_type_prfpregset_t=no
22163
22164 fi
22165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22166 fi
22167
22168  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22169
22170 cat >>confdefs.h <<\_ACEOF
22171 #define HAVE_PRFPREGSET_T 1
22172 _ACEOF
22173
22174  fi
22175  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
22176 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
22177
22178   echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
22179 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
22180  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
22181   echo $ECHO_N "(cached) $ECHO_C" >&6
22182 else
22183   cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h.  */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h.  */
22189
22190 #define _SYSCALL32
22191 #include <sys/procfs.h>
22192 int
22193 main ()
22194 {
22195 prgregset32_t avar
22196   ;
22197   return 0;
22198 }
22199 _ACEOF
22200 rm -f conftest.$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202   (eval $ac_compile) 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } &&
22209          { ac_try='test -z "$ac_c_werror_flag"
22210                          || test ! -s conftest.err'
22211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212   (eval $ac_try) 2>&5
22213   ac_status=$?
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); }; } &&
22216          { ac_try='test -s conftest.$ac_objext'
22217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218   (eval $ac_try) 2>&5
22219   ac_status=$?
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); }; }; then
22222   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227 bfd_cv_have_sys_procfs_type_prgregset32_t=no
22228
22229 fi
22230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22231 fi
22232
22233  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
22234
22235 cat >>confdefs.h <<\_ACEOF
22236 #define HAVE_PRGREGSET32_T 1
22237 _ACEOF
22238
22239  fi
22240  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
22241 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
22242
22243   echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
22244 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
22245  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
22246   echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248   cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h.  */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h.  */
22254
22255 #define _SYSCALL32
22256 #include <sys/procfs.h>
22257 int
22258 main ()
22259 {
22260 prfpregset32_t avar
22261   ;
22262   return 0;
22263 }
22264 _ACEOF
22265 rm -f conftest.$ac_objext
22266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22267   (eval $ac_compile) 2>conftest.er1
22268   ac_status=$?
22269   grep -v '^ *+' conftest.er1 >conftest.err
22270   rm -f conftest.er1
22271   cat conftest.err >&5
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); } &&
22274          { ac_try='test -z "$ac_c_werror_flag"
22275                          || test ! -s conftest.err'
22276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22277   (eval $ac_try) 2>&5
22278   ac_status=$?
22279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280   (exit $ac_status); }; } &&
22281          { ac_try='test -s conftest.$ac_objext'
22282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283   (eval $ac_try) 2>&5
22284   ac_status=$?
22285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286   (exit $ac_status); }; }; then
22287   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
22288 else
22289   echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22291
22292 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
22293
22294 fi
22295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22296 fi
22297
22298  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
22299
22300 cat >>confdefs.h <<\_ACEOF
22301 #define HAVE_PRFPREGSET32_T 1
22302 _ACEOF
22303
22304  fi
22305  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
22306 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
22307
22308   echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
22309 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
22310  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
22311   echo $ECHO_N "(cached) $ECHO_C" >&6
22312 else
22313   cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h.  */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h.  */
22319
22320 #define _SYSCALL32
22321 #include <sys/procfs.h>
22322 int
22323 main ()
22324 {
22325 lwpid_t avar
22326   ;
22327   return 0;
22328 }
22329 _ACEOF
22330 rm -f conftest.$ac_objext
22331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22332   (eval $ac_compile) 2>conftest.er1
22333   ac_status=$?
22334   grep -v '^ *+' conftest.er1 >conftest.err
22335   rm -f conftest.er1
22336   cat conftest.err >&5
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); } &&
22339          { ac_try='test -z "$ac_c_werror_flag"
22340                          || test ! -s conftest.err'
22341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342   (eval $ac_try) 2>&5
22343   ac_status=$?
22344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345   (exit $ac_status); }; } &&
22346          { ac_try='test -s conftest.$ac_objext'
22347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348   (eval $ac_try) 2>&5
22349   ac_status=$?
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); }; }; then
22352   bfd_cv_have_sys_procfs_type_lwpid_t=yes
22353 else
22354   echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22356
22357 bfd_cv_have_sys_procfs_type_lwpid_t=no
22358
22359 fi
22360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22361 fi
22362
22363  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
22364
22365 cat >>confdefs.h <<\_ACEOF
22366 #define HAVE_LWPID_T 1
22367 _ACEOF
22368
22369  fi
22370  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22371 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
22372
22373   echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22374 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
22375  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22376   echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378   cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384
22385 #define _SYSCALL32
22386 #include <sys/procfs.h>
22387 int
22388 main ()
22389 {
22390 psaddr_t avar
22391   ;
22392   return 0;
22393 }
22394 _ACEOF
22395 rm -f conftest.$ac_objext
22396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22397   (eval $ac_compile) 2>conftest.er1
22398   ac_status=$?
22399   grep -v '^ *+' conftest.er1 >conftest.err
22400   rm -f conftest.er1
22401   cat conftest.err >&5
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } &&
22404          { ac_try='test -z "$ac_c_werror_flag"
22405                          || test ! -s conftest.err'
22406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407   (eval $ac_try) 2>&5
22408   ac_status=$?
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); }; } &&
22411          { ac_try='test -s conftest.$ac_objext'
22412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22413   (eval $ac_try) 2>&5
22414   ac_status=$?
22415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416   (exit $ac_status); }; }; then
22417   bfd_cv_have_sys_procfs_type_psaddr_t=yes
22418 else
22419   echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422 bfd_cv_have_sys_procfs_type_psaddr_t=no
22423
22424 fi
22425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22426 fi
22427
22428  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
22429
22430 cat >>confdefs.h <<\_ACEOF
22431 #define HAVE_PSADDR_T 1
22432 _ACEOF
22433
22434  fi
22435  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22436 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
22437
22438   echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22439 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
22440  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22441   echo $ECHO_N "(cached) $ECHO_C" >&6
22442 else
22443   cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h.  */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h.  */
22449
22450 #define _SYSCALL32
22451 #include <sys/procfs.h>
22452 int
22453 main ()
22454 {
22455 prsysent_t avar
22456   ;
22457   return 0;
22458 }
22459 _ACEOF
22460 rm -f conftest.$ac_objext
22461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22462   (eval $ac_compile) 2>conftest.er1
22463   ac_status=$?
22464   grep -v '^ *+' conftest.er1 >conftest.err
22465   rm -f conftest.er1
22466   cat conftest.err >&5
22467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468   (exit $ac_status); } &&
22469          { ac_try='test -z "$ac_c_werror_flag"
22470                          || test ! -s conftest.err'
22471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472   (eval $ac_try) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); }; } &&
22476          { ac_try='test -s conftest.$ac_objext'
22477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478   (eval $ac_try) 2>&5
22479   ac_status=$?
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); }; }; then
22482   bfd_cv_have_sys_procfs_type_prsysent_t=yes
22483 else
22484   echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487 bfd_cv_have_sys_procfs_type_prsysent_t=no
22488
22489 fi
22490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22491 fi
22492
22493  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
22494
22495 cat >>confdefs.h <<\_ACEOF
22496 #define HAVE_PRSYSENT_T 1
22497 _ACEOF
22498
22499  fi
22500  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22501 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
22502
22503   echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22504 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
22505  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22506   echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508   cat >conftest.$ac_ext <<_ACEOF
22509 /* confdefs.h.  */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h.  */
22514
22515 #define _SYSCALL32
22516 #include <sys/procfs.h>
22517 int
22518 main ()
22519 {
22520 pr_sigset_t avar
22521   ;
22522   return 0;
22523 }
22524 _ACEOF
22525 rm -f conftest.$ac_objext
22526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22527   (eval $ac_compile) 2>conftest.er1
22528   ac_status=$?
22529   grep -v '^ *+' conftest.er1 >conftest.err
22530   rm -f conftest.er1
22531   cat conftest.err >&5
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); } &&
22534          { ac_try='test -z "$ac_c_werror_flag"
22535                          || test ! -s conftest.err'
22536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537   (eval $ac_try) 2>&5
22538   ac_status=$?
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); }; } &&
22541          { ac_try='test -s conftest.$ac_objext'
22542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543   (eval $ac_try) 2>&5
22544   ac_status=$?
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); }; }; then
22547   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
22548 else
22549   echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22551
22552 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
22553
22554 fi
22555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22556 fi
22557
22558  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
22559
22560 cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_PR_SIGSET_T 1
22562 _ACEOF
22563
22564  fi
22565  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22566 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
22567
22568   echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22569 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
22570  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22571   echo $ECHO_N "(cached) $ECHO_C" >&6
22572 else
22573   cat >conftest.$ac_ext <<_ACEOF
22574 /* confdefs.h.  */
22575 _ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h.  */
22579
22580 #define _SYSCALL32
22581 #include <sys/procfs.h>
22582 int
22583 main ()
22584 {
22585 pr_sigaction64_t avar
22586   ;
22587   return 0;
22588 }
22589 _ACEOF
22590 rm -f conftest.$ac_objext
22591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22592   (eval $ac_compile) 2>conftest.er1
22593   ac_status=$?
22594   grep -v '^ *+' conftest.er1 >conftest.err
22595   rm -f conftest.er1
22596   cat conftest.err >&5
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); } &&
22599          { ac_try='test -z "$ac_c_werror_flag"
22600                          || test ! -s conftest.err'
22601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602   (eval $ac_try) 2>&5
22603   ac_status=$?
22604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605   (exit $ac_status); }; } &&
22606          { ac_try='test -s conftest.$ac_objext'
22607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608   (eval $ac_try) 2>&5
22609   ac_status=$?
22610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); }; }; then
22612   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
22613 else
22614   echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22616
22617 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
22618
22619 fi
22620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22621 fi
22622
22623  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
22624
22625 cat >>confdefs.h <<\_ACEOF
22626 #define HAVE_PR_SIGACTION64_T 1
22627 _ACEOF
22628
22629  fi
22630  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22631 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
22632
22633   echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22634 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
22635  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22636   echo $ECHO_N "(cached) $ECHO_C" >&6
22637 else
22638   cat >conftest.$ac_ext <<_ACEOF
22639 /* confdefs.h.  */
22640 _ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h.  */
22644
22645 #define _SYSCALL32
22646 #include <sys/procfs.h>
22647 int
22648 main ()
22649 {
22650 pr_siginfo64_t avar
22651   ;
22652   return 0;
22653 }
22654 _ACEOF
22655 rm -f conftest.$ac_objext
22656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22657   (eval $ac_compile) 2>conftest.er1
22658   ac_status=$?
22659   grep -v '^ *+' conftest.er1 >conftest.err
22660   rm -f conftest.er1
22661   cat conftest.err >&5
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); } &&
22664          { ac_try='test -z "$ac_c_werror_flag"
22665                          || test ! -s conftest.err'
22666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667   (eval $ac_try) 2>&5
22668   ac_status=$?
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); }; } &&
22671          { ac_try='test -s conftest.$ac_objext'
22672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673   (eval $ac_try) 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); }; }; then
22677   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22678 else
22679   echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22681
22682 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
22683
22684 fi
22685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22686 fi
22687
22688  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
22689
22690 cat >>confdefs.h <<\_ACEOF
22691 #define HAVE_PR_SIGINFO64_T 1
22692 _ACEOF
22693
22694  fi
22695  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22696 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
22697
22698
22699
22700
22701
22702   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22703     echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22704 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
22705     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22706   echo $ECHO_N "(cached) $ECHO_C" >&6
22707 else
22708   if test "$cross_compiling" = yes; then
22709   gdb_cv_prfpregset_t_broken=yes
22710 else
22711   cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h.  */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h.  */
22717 #include <sys/procfs.h>
22718        int main ()
22719        {
22720          if (sizeof (prfpregset_t) == sizeof (void *))
22721            return 1;
22722          return 0;
22723        }
22724 _ACEOF
22725 rm -f conftest$ac_exeext
22726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22727   (eval $ac_link) 2>&5
22728   ac_status=$?
22729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22732   (eval $ac_try) 2>&5
22733   ac_status=$?
22734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735   (exit $ac_status); }; }; then
22736   gdb_cv_prfpregset_t_broken=no
22737 else
22738   echo "$as_me: program exited with status $ac_status" >&5
22739 echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22741
22742 ( exit $ac_status )
22743 gdb_cv_prfpregset_t_broken=yes
22744 fi
22745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22746 fi
22747 fi
22748
22749     echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22750 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
22751     if test $gdb_cv_prfpregset_t_broken = yes; then
22752
22753 cat >>confdefs.h <<\_ACEOF
22754 #define PRFPREGSET_T_BROKEN 1
22755 _ACEOF
22756
22757     fi
22758   fi
22759
22760
22761   echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22762 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
22763   if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22764   echo $ECHO_N "(cached) $ECHO_C" >&6
22765 else
22766   cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h.  */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h.  */
22772 #include <unistd.h>
22773 #include <sys/types.h>
22774 #include <sys/procfs.h>
22775
22776 int
22777 main ()
22778 {
22779
22780     int dummy;;
22781     dummy = ioctl(0, PIOCSET, &dummy);
22782
22783   ;
22784   return 0;
22785 }
22786 _ACEOF
22787 rm -f conftest.$ac_objext
22788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22789   (eval $ac_compile) 2>conftest.er1
22790   ac_status=$?
22791   grep -v '^ *+' conftest.er1 >conftest.err
22792   rm -f conftest.er1
22793   cat conftest.err >&5
22794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795   (exit $ac_status); } &&
22796          { ac_try='test -z "$ac_c_werror_flag"
22797                          || test ! -s conftest.err'
22798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799   (eval $ac_try) 2>&5
22800   ac_status=$?
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); }; } &&
22803          { ac_try='test -s conftest.$ac_objext'
22804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805   (eval $ac_try) 2>&5
22806   ac_status=$?
22807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808   (exit $ac_status); }; }; then
22809   gdb_cv_have_procfs_piocset=yes
22810 else
22811   echo "$as_me: failed program was:" >&5
22812 sed 's/^/| /' conftest.$ac_ext >&5
22813
22814 gdb_cv_have_procfs_piocset=no
22815 fi
22816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22817 fi
22818
22819   echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22820 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
22821   if test $gdb_cv_have_procfs_piocset = yes; then
22822
22823 cat >>confdefs.h <<\_ACEOF
22824 #define HAVE_PROCFS_PIOCSET 1
22825 _ACEOF
22826
22827   fi
22828 fi
22829
22830 if test ${host} = ${target} ; then
22831
22832   echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22833 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
22834   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22835   echo $ECHO_N "(cached) $ECHO_C" >&6
22836 else
22837   cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h.  */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h.  */
22843 #include <link.h>
22844 int
22845 main ()
22846 {
22847 struct link_map lm; (void) lm.l_addr;
22848   ;
22849   return 0;
22850 }
22851 _ACEOF
22852 rm -f conftest.$ac_objext
22853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22854   (eval $ac_compile) 2>conftest.er1
22855   ac_status=$?
22856   grep -v '^ *+' conftest.er1 >conftest.err
22857   rm -f conftest.er1
22858   cat conftest.err >&5
22859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860   (exit $ac_status); } &&
22861          { ac_try='test -z "$ac_c_werror_flag"
22862                          || test ! -s conftest.err'
22863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864   (eval $ac_try) 2>&5
22865   ac_status=$?
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); }; } &&
22868          { ac_try='test -s conftest.$ac_objext'
22869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870   (eval $ac_try) 2>&5
22871   ac_status=$?
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); }; }; then
22874   gdb_cv_have_struct_link_map_with_l_members=yes
22875 else
22876   echo "$as_me: failed program was:" >&5
22877 sed 's/^/| /' conftest.$ac_ext >&5
22878
22879 gdb_cv_have_struct_link_map_with_l_members=no
22880 fi
22881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22882 fi
22883
22884   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22885 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
22886   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
22887
22888 cat >>confdefs.h <<\_ACEOF
22889 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
22890 _ACEOF
22891
22892   fi
22893
22894
22895   echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22896 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
22897   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22898   echo $ECHO_N "(cached) $ECHO_C" >&6
22899 else
22900   cat >conftest.$ac_ext <<_ACEOF
22901 /* confdefs.h.  */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h.  */
22906 #include <sys/types.h>
22907 #include <link.h>
22908 int
22909 main ()
22910 {
22911 struct link_map lm; (void) lm.lm_addr;
22912   ;
22913   return 0;
22914 }
22915 _ACEOF
22916 rm -f conftest.$ac_objext
22917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22918   (eval $ac_compile) 2>conftest.er1
22919   ac_status=$?
22920   grep -v '^ *+' conftest.er1 >conftest.err
22921   rm -f conftest.er1
22922   cat conftest.err >&5
22923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924   (exit $ac_status); } &&
22925          { ac_try='test -z "$ac_c_werror_flag"
22926                          || test ! -s conftest.err'
22927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928   (eval $ac_try) 2>&5
22929   ac_status=$?
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); }; } &&
22932          { ac_try='test -s conftest.$ac_objext'
22933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934   (eval $ac_try) 2>&5
22935   ac_status=$?
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); }; }; then
22938   gdb_cv_have_struct_link_map_with_lm_members=yes
22939 else
22940   echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22942
22943 gdb_cv_have_struct_link_map_with_lm_members=no
22944 fi
22945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22946 fi
22947
22948   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22949 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
22950   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
22951
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
22954 _ACEOF
22955
22956   fi
22957
22958
22959   echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22960 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
22961   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22962   echo $ECHO_N "(cached) $ECHO_C" >&6
22963 else
22964   cat >conftest.$ac_ext <<_ACEOF
22965 /* confdefs.h.  */
22966 _ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h.  */
22970 #include <sys/types.h>
22971 #ifdef HAVE_NLIST_H
22972 #include <nlist.h>
22973 #endif
22974 #include <link.h>
22975 int
22976 main ()
22977 {
22978 struct so_map lm; (void) lm.som_addr;
22979   ;
22980   return 0;
22981 }
22982 _ACEOF
22983 rm -f conftest.$ac_objext
22984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22985   (eval $ac_compile) 2>conftest.er1
22986   ac_status=$?
22987   grep -v '^ *+' conftest.er1 >conftest.err
22988   rm -f conftest.er1
22989   cat conftest.err >&5
22990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); } &&
22992          { ac_try='test -z "$ac_c_werror_flag"
22993                          || test ! -s conftest.err'
22994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995   (eval $ac_try) 2>&5
22996   ac_status=$?
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); }; } &&
22999          { ac_try='test -s conftest.$ac_objext'
23000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001   (eval $ac_try) 2>&5
23002   ac_status=$?
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); }; }; then
23005   gdb_cv_have_struct_so_map_with_som_members=yes
23006 else
23007   echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23009
23010 gdb_cv_have_struct_so_map_with_som_members=no
23011 fi
23012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23013 fi
23014
23015   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
23016 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
23017   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
23018
23019 cat >>confdefs.h <<\_ACEOF
23020 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
23021 _ACEOF
23022
23023   fi
23024
23025
23026   echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
23027 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
23028   if test "${gdb_cv_have_struct_link_map32+set}" = set; then
23029   echo $ECHO_N "(cached) $ECHO_C" >&6
23030 else
23031   cat >conftest.$ac_ext <<_ACEOF
23032 /* confdefs.h.  */
23033 _ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h.  */
23037 #define _SYSCALL32
23038 #include <sys/link.h>
23039 int
23040 main ()
23041 {
23042 struct link_map32 l;
23043   ;
23044   return 0;
23045 }
23046 _ACEOF
23047 rm -f conftest.$ac_objext
23048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23049   (eval $ac_compile) 2>conftest.er1
23050   ac_status=$?
23051   grep -v '^ *+' conftest.er1 >conftest.err
23052   rm -f conftest.er1
23053   cat conftest.err >&5
23054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055   (exit $ac_status); } &&
23056          { ac_try='test -z "$ac_c_werror_flag"
23057                          || test ! -s conftest.err'
23058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059   (eval $ac_try) 2>&5
23060   ac_status=$?
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); }; } &&
23063          { ac_try='test -s conftest.$ac_objext'
23064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23065   (eval $ac_try) 2>&5
23066   ac_status=$?
23067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068   (exit $ac_status); }; }; then
23069   gdb_cv_have_struct_link_map32=yes
23070 else
23071   echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23073
23074 gdb_cv_have_struct_link_map32=no
23075 fi
23076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23077 fi
23078
23079   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
23080 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
23081   if test $gdb_cv_have_struct_link_map32 = yes; then
23082
23083 cat >>confdefs.h <<\_ACEOF
23084 #define HAVE_STRUCT_LINK_MAP32 1
23085 _ACEOF
23086
23087
23088 cat >>confdefs.h <<\_ACEOF
23089 #define _SYSCALL32 1
23090 _ACEOF
23091
23092   fi
23093 fi
23094
23095 # Check if the compiler supports the `long long' type.
23096
23097 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
23098 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
23099 if test "${gdb_cv_c_long_long+set}" = set; then
23100   echo $ECHO_N "(cached) $ECHO_C" >&6
23101 else
23102   cat >conftest.$ac_ext <<_ACEOF
23103 /* confdefs.h.  */
23104 _ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h.  */
23108 extern long long foo;
23109 int
23110 main ()
23111 {
23112 switch (foo & 2) { case 0: return 1; }
23113   ;
23114   return 0;
23115 }
23116 _ACEOF
23117 rm -f conftest.$ac_objext
23118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23119   (eval $ac_compile) 2>conftest.er1
23120   ac_status=$?
23121   grep -v '^ *+' conftest.er1 >conftest.err
23122   rm -f conftest.er1
23123   cat conftest.err >&5
23124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125   (exit $ac_status); } &&
23126          { ac_try='test -z "$ac_c_werror_flag"
23127                          || test ! -s conftest.err'
23128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129   (eval $ac_try) 2>&5
23130   ac_status=$?
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); }; } &&
23133          { ac_try='test -s conftest.$ac_objext'
23134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23135   (eval $ac_try) 2>&5
23136   ac_status=$?
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); }; }; then
23139   gdb_cv_c_long_long=yes
23140 else
23141   echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23143
23144 gdb_cv_c_long_long=no
23145 fi
23146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23147 fi
23148 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
23149 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
23150 if test $gdb_cv_c_long_long = yes; then
23151
23152 cat >>confdefs.h <<\_ACEOF
23153 #define CC_HAS_LONG_LONG 1
23154 _ACEOF
23155
23156 fi
23157
23158 # Check if the compiler and runtime support printing long longs.
23159
23160 echo "$as_me:$LINENO: checking for long long support in printf" >&5
23161 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
23162 if test "${gdb_cv_printf_has_long_long+set}" = set; then
23163   echo $ECHO_N "(cached) $ECHO_C" >&6
23164 else
23165   if test "$cross_compiling" = yes; then
23166   gdb_cv_printf_has_long_long=no
23167 else
23168   cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h.  */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h.  */
23174 $ac_includes_default
23175 int
23176 main ()
23177 {
23178 char buf[32];
23179   long long l = 0;
23180   l = (l << 16) + 0x0123;
23181   l = (l << 16) + 0x4567;
23182   l = (l << 16) + 0x89ab;
23183   l = (l << 16) + 0xcdef;
23184   sprintf (buf, "0x%016llx", l);
23185   return (strcmp ("0x0123456789abcdef", buf));
23186   ;
23187   return 0;
23188 }
23189 _ACEOF
23190 rm -f conftest$ac_exeext
23191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23192   (eval $ac_link) 2>&5
23193   ac_status=$?
23194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197   (eval $ac_try) 2>&5
23198   ac_status=$?
23199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200   (exit $ac_status); }; }; then
23201   gdb_cv_printf_has_long_long=yes
23202 else
23203   echo "$as_me: program exited with status $ac_status" >&5
23204 echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23206
23207 ( exit $ac_status )
23208 gdb_cv_printf_has_long_long=no
23209 fi
23210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23211 fi
23212 fi
23213 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
23214 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
23215 if test $gdb_cv_printf_has_long_long = yes; then
23216
23217 cat >>confdefs.h <<\_ACEOF
23218 #define PRINTF_HAS_LONG_LONG 1
23219 _ACEOF
23220
23221 fi
23222
23223 # Check if the compiler and runtime support printing decfloats.
23224
23225 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
23226 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
23227 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
23228   echo $ECHO_N "(cached) $ECHO_C" >&6
23229 else
23230   if test "$cross_compiling" = yes; then
23231   gdb_cv_printf_has_decfloat=no
23232 else
23233   cat >conftest.$ac_ext <<_ACEOF
23234 /* confdefs.h.  */
23235 _ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h.  */
23239 $ac_includes_default
23240 int
23241 main ()
23242 {
23243 char buf[64];
23244   _Decimal32 d32 = 1.2345df;
23245   _Decimal64 d64 = 1.2345dd;
23246   _Decimal128 d128 = 1.2345dl;
23247   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
23248   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
23249   ;
23250   return 0;
23251 }
23252 _ACEOF
23253 rm -f conftest$ac_exeext
23254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23255   (eval $ac_link) 2>&5
23256   ac_status=$?
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23260   (eval $ac_try) 2>&5
23261   ac_status=$?
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); }; }; then
23264   gdb_cv_printf_has_decfloat=yes
23265 else
23266   echo "$as_me: program exited with status $ac_status" >&5
23267 echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23269
23270 ( exit $ac_status )
23271 gdb_cv_printf_has_decfloat=no
23272 fi
23273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23274 fi
23275 fi
23276 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
23277 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
23278 if test $gdb_cv_printf_has_decfloat = yes; then
23279
23280 cat >>confdefs.h <<\_ACEOF
23281 #define PRINTF_HAS_DECFLOAT 1
23282 _ACEOF
23283
23284 fi
23285
23286 # Check if the compiler supports the `long double' type.  We can't use
23287 # AC_C_LONG_DOUBLE because that one does additional checks on the
23288 # constants defined in <float.h> that fail on some systems,
23289 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
23290
23291 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
23292 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
23293 if test "${gdb_cv_c_long_double+set}" = set; then
23294   echo $ECHO_N "(cached) $ECHO_C" >&6
23295 else
23296   cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302 long double foo;
23303 _ACEOF
23304 rm -f conftest.$ac_objext
23305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23306   (eval $ac_compile) 2>conftest.er1
23307   ac_status=$?
23308   grep -v '^ *+' conftest.er1 >conftest.err
23309   rm -f conftest.er1
23310   cat conftest.err >&5
23311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312   (exit $ac_status); } &&
23313          { ac_try='test -z "$ac_c_werror_flag"
23314                          || test ! -s conftest.err'
23315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316   (eval $ac_try) 2>&5
23317   ac_status=$?
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); }; } &&
23320          { ac_try='test -s conftest.$ac_objext'
23321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322   (eval $ac_try) 2>&5
23323   ac_status=$?
23324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325   (exit $ac_status); }; }; then
23326   gdb_cv_c_long_double=yes
23327 else
23328   echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331 gdb_cv_c_long_double=no
23332 fi
23333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23334 fi
23335 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
23336 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
23337 if test $gdb_cv_c_long_double = yes; then
23338
23339 cat >>confdefs.h <<\_ACEOF
23340 #define HAVE_LONG_DOUBLE 1
23341 _ACEOF
23342
23343 fi
23344
23345 # Check if the compiler and runtime support printing long doubles.
23346
23347 echo "$as_me:$LINENO: checking for long double support in printf" >&5
23348 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
23349 if test "${gdb_cv_printf_has_long_double+set}" = set; then
23350   echo $ECHO_N "(cached) $ECHO_C" >&6
23351 else
23352   if test "$cross_compiling" = yes; then
23353   gdb_cv_printf_has_long_double=no
23354 else
23355   cat >conftest.$ac_ext <<_ACEOF
23356 /* confdefs.h.  */
23357 _ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h.  */
23361 $ac_includes_default
23362 int
23363 main ()
23364 {
23365 char buf[16];
23366   long double f = 3.141592653;
23367   sprintf (buf, "%Lg", f);
23368   return (strncmp ("3.14159", buf, 7));
23369   ;
23370   return 0;
23371 }
23372 _ACEOF
23373 rm -f conftest$ac_exeext
23374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23375   (eval $ac_link) 2>&5
23376   ac_status=$?
23377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380   (eval $ac_try) 2>&5
23381   ac_status=$?
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); }; }; then
23384   gdb_cv_printf_has_long_double=yes
23385 else
23386   echo "$as_me: program exited with status $ac_status" >&5
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23389
23390 ( exit $ac_status )
23391 gdb_cv_printf_has_long_double=no
23392 fi
23393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23394 fi
23395 fi
23396 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23397 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
23398 if test $gdb_cv_printf_has_long_double = yes; then
23399
23400 cat >>confdefs.h <<\_ACEOF
23401 #define PRINTF_HAS_LONG_DOUBLE 1
23402 _ACEOF
23403
23404 fi
23405
23406 # Check if the compiler and runtime support scanning long doubles.
23407
23408 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23409 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
23410 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23411   echo $ECHO_N "(cached) $ECHO_C" >&6
23412 else
23413   if test "$cross_compiling" = yes; then
23414   gdb_cv_scanf_has_long_double=no
23415 else
23416   cat >conftest.$ac_ext <<_ACEOF
23417 /* confdefs.h.  */
23418 _ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h.  */
23422 #include <stdio.h>
23423 int
23424 main ()
23425 {
23426 char *buf = "3.141592653";
23427   long double f = 0;
23428   sscanf (buf, "%Lg", &f);
23429   return !(f > 3.14159 && f < 3.14160);
23430   ;
23431   return 0;
23432 }
23433 _ACEOF
23434 rm -f conftest$ac_exeext
23435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23436   (eval $ac_link) 2>&5
23437   ac_status=$?
23438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441   (eval $ac_try) 2>&5
23442   ac_status=$?
23443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444   (exit $ac_status); }; }; then
23445   gdb_cv_scanf_has_long_double=yes
23446 else
23447   echo "$as_me: program exited with status $ac_status" >&5
23448 echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23450
23451 ( exit $ac_status )
23452 gdb_cv_scanf_has_long_double=no
23453 fi
23454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23455 fi
23456 fi
23457 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23458 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
23459 if test $gdb_cv_scanf_has_long_double = yes; then
23460
23461 cat >>confdefs.h <<\_ACEOF
23462 #define SCANF_HAS_LONG_DOUBLE 1
23463 _ACEOF
23464
23465 fi
23466
23467 case ${host_os} in
23468 aix*)
23469   echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23470 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
23471 if test "${gdb_cv_bigtoc+set}" = set; then
23472   echo $ECHO_N "(cached) $ECHO_C" >&6
23473 else
23474
23475     SAVE_LDFLAGS=$LDFLAGS
23476
23477     case $GCC in
23478     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23479     *) gdb_cv_bigtoc=-bbigtoc ;;
23480     esac
23481
23482     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
23483     cat >conftest.$ac_ext <<_ACEOF
23484 /* confdefs.h.  */
23485 _ACEOF
23486 cat confdefs.h >>conftest.$ac_ext
23487 cat >>conftest.$ac_ext <<_ACEOF
23488 /* end confdefs.h.  */
23489
23490 int
23491 main ()
23492 {
23493 int i;
23494   ;
23495   return 0;
23496 }
23497 _ACEOF
23498 rm -f conftest.$ac_objext conftest$ac_exeext
23499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23500   (eval $ac_link) 2>conftest.er1
23501   ac_status=$?
23502   grep -v '^ *+' conftest.er1 >conftest.err
23503   rm -f conftest.er1
23504   cat conftest.err >&5
23505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506   (exit $ac_status); } &&
23507          { ac_try='test -z "$ac_c_werror_flag"
23508                          || test ! -s conftest.err'
23509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23510   (eval $ac_try) 2>&5
23511   ac_status=$?
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); }; } &&
23514          { ac_try='test -s conftest$ac_exeext'
23515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516   (eval $ac_try) 2>&5
23517   ac_status=$?
23518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519   (exit $ac_status); }; }; then
23520   :
23521 else
23522   echo "$as_me: failed program was:" >&5
23523 sed 's/^/| /' conftest.$ac_ext >&5
23524
23525 gdb_cv_bigtoc=
23526 fi
23527 rm -f conftest.err conftest.$ac_objext \
23528       conftest$ac_exeext conftest.$ac_ext
23529     LDFLAGS="${SAVE_LDFLAGS}"
23530
23531 fi
23532 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23533 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
23534   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23535   ;;
23536 esac
23537
23538
23539
23540 if test ${build} = ${host} -a ${host} = ${target} ; then
23541    case ${host_os} in
23542    hpux*)
23543       echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23544 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
23545       if test -f /usr/include/dce/cma_config.h ; then
23546          if test "$GCC" = "yes" ; then
23547             echo "$as_me:$LINENO: result: yes" >&5
23548 echo "${ECHO_T}yes" >&6
23549
23550 cat >>confdefs.h <<\_ACEOF
23551 #define HAVE_HPUX_THREAD_SUPPORT 1
23552 _ACEOF
23553
23554             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
23555             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23556          else
23557             echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23558 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
23559          fi
23560       else
23561          echo "$as_me:$LINENO: result: no" >&5
23562 echo "${ECHO_T}no" >&6
23563       fi
23564       ;;
23565    solaris*)
23566       # See if thread_db library is around for Solaris thread debugging.
23567       # Note that we must explicitly test for version 1 of the library
23568       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23569       # the same API.
23570       echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23571 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
23572       if test -f /usr/lib/libthread_db.so.1 ; then
23573          echo "$as_me:$LINENO: result: yes" >&5
23574 echo "${ECHO_T}yes" >&6
23575
23576 cat >>confdefs.h <<\_ACEOF
23577 #define HAVE_THREAD_DB_LIB 1
23578 _ACEOF
23579
23580          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
23581          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
23582
23583 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23584 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23586   echo $ECHO_N "(cached) $ECHO_C" >&6
23587 else
23588   ac_check_lib_save_LIBS=$LIBS
23589 LIBS="-ldl  $LIBS"
23590 cat >conftest.$ac_ext <<_ACEOF
23591 /* confdefs.h.  */
23592 _ACEOF
23593 cat confdefs.h >>conftest.$ac_ext
23594 cat >>conftest.$ac_ext <<_ACEOF
23595 /* end confdefs.h.  */
23596
23597 /* Override any gcc2 internal prototype to avoid an error.  */
23598 #ifdef __cplusplus
23599 extern "C"
23600 #endif
23601 /* We use char because int might match the return type of a gcc2
23602    builtin and then its argument prototype would still apply.  */
23603 char dlopen ();
23604 int
23605 main ()
23606 {
23607 dlopen ();
23608   ;
23609   return 0;
23610 }
23611 _ACEOF
23612 rm -f conftest.$ac_objext conftest$ac_exeext
23613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23614   (eval $ac_link) 2>conftest.er1
23615   ac_status=$?
23616   grep -v '^ *+' conftest.er1 >conftest.err
23617   rm -f conftest.er1
23618   cat conftest.err >&5
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); } &&
23621          { ac_try='test -z "$ac_c_werror_flag"
23622                          || test ! -s conftest.err'
23623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624   (eval $ac_try) 2>&5
23625   ac_status=$?
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); }; } &&
23628          { ac_try='test -s conftest$ac_exeext'
23629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630   (eval $ac_try) 2>&5
23631   ac_status=$?
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); }; }; then
23634   ac_cv_lib_dl_dlopen=yes
23635 else
23636   echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23638
23639 ac_cv_lib_dl_dlopen=no
23640 fi
23641 rm -f conftest.err conftest.$ac_objext \
23642       conftest$ac_exeext conftest.$ac_ext
23643 LIBS=$ac_check_lib_save_LIBS
23644 fi
23645 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23646 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23647 if test $ac_cv_lib_dl_dlopen = yes; then
23648   cat >>confdefs.h <<_ACEOF
23649 #define HAVE_LIBDL 1
23650 _ACEOF
23651
23652   LIBS="-ldl $LIBS"
23653
23654 fi
23655
23656          if test "$GCC" = "yes" ; then
23657             # The GNU linker requires the -export-dynamic option to make
23658             # all symbols visible in the dynamic symbol table.
23659             hold_ldflags=$LDFLAGS
23660             echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23661 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
23662             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
23663             cat >conftest.$ac_ext <<_ACEOF
23664 /* confdefs.h.  */
23665 _ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h.  */
23669
23670 int
23671 main ()
23672 {
23673 int i;
23674   ;
23675   return 0;
23676 }
23677 _ACEOF
23678 rm -f conftest.$ac_objext conftest$ac_exeext
23679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23680   (eval $ac_link) 2>conftest.er1
23681   ac_status=$?
23682   grep -v '^ *+' conftest.er1 >conftest.err
23683   rm -f conftest.er1
23684   cat conftest.err >&5
23685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686   (exit $ac_status); } &&
23687          { ac_try='test -z "$ac_c_werror_flag"
23688                          || test ! -s conftest.err'
23689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690   (eval $ac_try) 2>&5
23691   ac_status=$?
23692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693   (exit $ac_status); }; } &&
23694          { ac_try='test -s conftest$ac_exeext'
23695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23696   (eval $ac_try) 2>&5
23697   ac_status=$?
23698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699   (exit $ac_status); }; }; then
23700   found=yes
23701 else
23702   echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23704
23705 found=no
23706 fi
23707 rm -f conftest.err conftest.$ac_objext \
23708       conftest$ac_exeext conftest.$ac_ext
23709             LDFLAGS=$hold_ldflags
23710             echo "$as_me:$LINENO: result: $found" >&5
23711 echo "${ECHO_T}$found" >&6
23712             if test $found = yes; then
23713                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23714             fi
23715          fi
23716          # Sun randomly tweaked the prototypes in <proc_service.h>
23717          # at one point.
23718          echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23719 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
23720          if test "${gdb_cv_proc_service_is_old+set}" = set; then
23721   echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723
23724             cat >conftest.$ac_ext <<_ACEOF
23725 /* confdefs.h.  */
23726 _ACEOF
23727 cat confdefs.h >>conftest.$ac_ext
23728 cat >>conftest.$ac_ext <<_ACEOF
23729 /* end confdefs.h.  */
23730
23731                 #include <proc_service.h>
23732                 ps_err_e ps_pdwrite
23733                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
23734
23735 int
23736 main ()
23737 {
23738
23739   ;
23740   return 0;
23741 }
23742 _ACEOF
23743 rm -f conftest.$ac_objext
23744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23745   (eval $ac_compile) 2>conftest.er1
23746   ac_status=$?
23747   grep -v '^ *+' conftest.er1 >conftest.err
23748   rm -f conftest.er1
23749   cat conftest.err >&5
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); } &&
23752          { ac_try='test -z "$ac_c_werror_flag"
23753                          || test ! -s conftest.err'
23754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755   (eval $ac_try) 2>&5
23756   ac_status=$?
23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758   (exit $ac_status); }; } &&
23759          { ac_try='test -s conftest.$ac_objext'
23760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23761   (eval $ac_try) 2>&5
23762   ac_status=$?
23763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764   (exit $ac_status); }; }; then
23765   gdb_cv_proc_service_is_old=no
23766 else
23767   echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23769
23770 gdb_cv_proc_service_is_old=yes
23771 fi
23772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23773
23774 fi
23775
23776          echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23777 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
23778          if test $gdb_cv_proc_service_is_old = yes; then
23779
23780 cat >>confdefs.h <<\_ACEOF
23781 #define PROC_SERVICE_IS_OLD 1
23782 _ACEOF
23783
23784          fi
23785       else
23786          echo "$as_me:$LINENO: result: no" >&5
23787 echo "${ECHO_T}no" >&6
23788       fi
23789       ;;
23790    aix*)
23791       echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23792 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
23793       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23794   echo $ECHO_N "(cached) $ECHO_C" >&6
23795 else
23796   cat >conftest.$ac_ext <<_ACEOF
23797 /* confdefs.h.  */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h.  */
23802 #include <sys/pthdebug.h>
23803 int
23804 main ()
23805 {
23806 #ifndef PTHDB_VERSION_3
23807                                     #error
23808                                     #endif
23809   ;
23810   return 0;
23811 }
23812 _ACEOF
23813 rm -f conftest.$ac_objext
23814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23815   (eval $ac_compile) 2>conftest.er1
23816   ac_status=$?
23817   grep -v '^ *+' conftest.er1 >conftest.err
23818   rm -f conftest.er1
23819   cat conftest.err >&5
23820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821   (exit $ac_status); } &&
23822          { ac_try='test -z "$ac_c_werror_flag"
23823                          || test ! -s conftest.err'
23824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825   (eval $ac_try) 2>&5
23826   ac_status=$?
23827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828   (exit $ac_status); }; } &&
23829          { ac_try='test -s conftest.$ac_objext'
23830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23831   (eval $ac_try) 2>&5
23832   ac_status=$?
23833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834   (exit $ac_status); }; }; then
23835   gdb_cv_have_aix_thread_debug=yes
23836 else
23837   echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840 gdb_cv_have_aix_thread_debug=no
23841 fi
23842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23843 fi
23844
23845       echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23846 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
23847       if test $gdb_cv_have_aix_thread_debug = yes; then
23848          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
23849          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
23850          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23851       fi
23852       ;;
23853    esac
23854
23855 fi
23856
23857 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
23858    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23859 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
23860 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23861   echo $ECHO_N "(cached) $ECHO_C" >&6
23862 else
23863   cat >conftest.$ac_ext <<_ACEOF
23864 /* confdefs.h.  */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h.  */
23869 #include <thread_db.h>
23870 int
23871 main ()
23872 {
23873 int i = TD_NOTALLOC;
23874   ;
23875   return 0;
23876 }
23877 _ACEOF
23878 rm -f conftest.$ac_objext
23879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23880   (eval $ac_compile) 2>conftest.er1
23881   ac_status=$?
23882   grep -v '^ *+' conftest.er1 >conftest.err
23883   rm -f conftest.er1
23884   cat conftest.err >&5
23885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886   (exit $ac_status); } &&
23887          { ac_try='test -z "$ac_c_werror_flag"
23888                          || test ! -s conftest.err'
23889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23890   (eval $ac_try) 2>&5
23891   ac_status=$?
23892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893   (exit $ac_status); }; } &&
23894          { ac_try='test -s conftest.$ac_objext'
23895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896   (eval $ac_try) 2>&5
23897   ac_status=$?
23898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899   (exit $ac_status); }; }; then
23900   gdb_cv_thread_db_h_has_td_notalloc=yes
23901 else
23902   echo "$as_me: failed program was:" >&5
23903 sed 's/^/| /' conftest.$ac_ext >&5
23904
23905 gdb_cv_thread_db_h_has_td_notalloc=no
23906
23907 fi
23908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23909
23910 fi
23911 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23912 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
23913    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
23914 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
23915 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
23916   echo $ECHO_N "(cached) $ECHO_C" >&6
23917 else
23918   cat >conftest.$ac_ext <<_ACEOF
23919 /* confdefs.h.  */
23920 _ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h.  */
23924 #include <thread_db.h>
23925 int
23926 main ()
23927 {
23928 int i = TD_VERSION;
23929   ;
23930   return 0;
23931 }
23932 _ACEOF
23933 rm -f conftest.$ac_objext
23934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23935   (eval $ac_compile) 2>conftest.er1
23936   ac_status=$?
23937   grep -v '^ *+' conftest.er1 >conftest.err
23938   rm -f conftest.er1
23939   cat conftest.err >&5
23940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941   (exit $ac_status); } &&
23942          { ac_try='test -z "$ac_c_werror_flag"
23943                          || test ! -s conftest.err'
23944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23945   (eval $ac_try) 2>&5
23946   ac_status=$?
23947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948   (exit $ac_status); }; } &&
23949          { ac_try='test -s conftest.$ac_objext'
23950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23951   (eval $ac_try) 2>&5
23952   ac_status=$?
23953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954   (exit $ac_status); }; }; then
23955   gdb_cv_thread_db_h_has_td_version=yes
23956 else
23957   echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959
23960 gdb_cv_thread_db_h_has_td_version=no
23961
23962 fi
23963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23964
23965 fi
23966 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
23967 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
23968    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
23969 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
23970 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
23971   echo $ECHO_N "(cached) $ECHO_C" >&6
23972 else
23973   cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h.  */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h.  */
23979 #include <thread_db.h>
23980 int
23981 main ()
23982 {
23983 int i = TD_NOTLS;
23984   ;
23985   return 0;
23986 }
23987 _ACEOF
23988 rm -f conftest.$ac_objext
23989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23990   (eval $ac_compile) 2>conftest.er1
23991   ac_status=$?
23992   grep -v '^ *+' conftest.er1 >conftest.err
23993   rm -f conftest.er1
23994   cat conftest.err >&5
23995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996   (exit $ac_status); } &&
23997          { ac_try='test -z "$ac_c_werror_flag"
23998                          || test ! -s conftest.err'
23999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000   (eval $ac_try) 2>&5
24001   ac_status=$?
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); }; } &&
24004          { ac_try='test -s conftest.$ac_objext'
24005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006   (eval $ac_try) 2>&5
24007   ac_status=$?
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); }; }; then
24010   gdb_cv_thread_db_h_has_td_notls=yes
24011 else
24012   echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24014
24015 gdb_cv_thread_db_h_has_td_notls=no
24016
24017 fi
24018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24019
24020 fi
24021 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
24022 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
24023 fi
24024 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
24025
24026 cat >>confdefs.h <<\_ACEOF
24027 #define THREAD_DB_HAS_TD_NOTALLOC 1
24028 _ACEOF
24029
24030 fi
24031 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
24032
24033 cat >>confdefs.h <<\_ACEOF
24034 #define THREAD_DB_HAS_TD_VERSION 1
24035 _ACEOF
24036
24037 fi
24038 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
24039
24040 cat >>confdefs.h <<\_ACEOF
24041 #define THREAD_DB_HAS_TD_NOTLS 1
24042 _ACEOF
24043
24044 fi
24045
24046 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
24047    echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
24048 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
24049 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
24050   echo $ECHO_N "(cached) $ECHO_C" >&6
24051 else
24052   cat >conftest.$ac_ext <<_ACEOF
24053 /* confdefs.h.  */
24054 _ACEOF
24055 cat confdefs.h >>conftest.$ac_ext
24056 cat >>conftest.$ac_ext <<_ACEOF
24057 /* end confdefs.h.  */
24058 #include <sys/syscall.h>
24059 int
24060 main ()
24061 {
24062 int i = __NR_tkill;
24063   ;
24064   return 0;
24065 }
24066 _ACEOF
24067 rm -f conftest.$ac_objext
24068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24069   (eval $ac_compile) 2>conftest.er1
24070   ac_status=$?
24071   grep -v '^ *+' conftest.er1 >conftest.err
24072   rm -f conftest.er1
24073   cat conftest.err >&5
24074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075   (exit $ac_status); } &&
24076          { ac_try='test -z "$ac_c_werror_flag"
24077                          || test ! -s conftest.err'
24078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24079   (eval $ac_try) 2>&5
24080   ac_status=$?
24081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082   (exit $ac_status); }; } &&
24083          { ac_try='test -s conftest.$ac_objext'
24084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24085   (eval $ac_try) 2>&5
24086   ac_status=$?
24087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088   (exit $ac_status); }; }; then
24089   gdb_cv_sys_syscall_h_has_tkill=yes
24090 else
24091   echo "$as_me: failed program was:" >&5
24092 sed 's/^/| /' conftest.$ac_ext >&5
24093
24094 gdb_cv_sys_syscall_h_has_tkill=no
24095
24096 fi
24097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24098
24099 fi
24100 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
24101 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
24102 fi
24103 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
24104
24105 cat >>confdefs.h <<\_ACEOF
24106 #define HAVE_TKILL_SYSCALL 1
24107 _ACEOF
24108
24109 fi
24110
24111 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
24112 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
24113 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
24114   echo $ECHO_N "(cached) $ECHO_C" >&6
24115 else
24116   cat >conftest.$ac_ext <<_ACEOF
24117 /* confdefs.h.  */
24118 _ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h.  */
24122 #include <sys/personality.h>
24123
24124 int
24125 main ()
24126 {
24127 #ifndef ADDR_NO_RANDOMIZE
24128   char *p = (char *) ADDR_NO_RANDOMIZE;
24129 #endif
24130
24131   ;
24132   return 0;
24133 }
24134 _ACEOF
24135 rm -f conftest.$ac_objext
24136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24137   (eval $ac_compile) 2>conftest.er1
24138   ac_status=$?
24139   grep -v '^ *+' conftest.er1 >conftest.err
24140   rm -f conftest.er1
24141   cat conftest.err >&5
24142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143   (exit $ac_status); } &&
24144          { ac_try='test -z "$ac_c_werror_flag"
24145                          || test ! -s conftest.err'
24146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24147   (eval $ac_try) 2>&5
24148   ac_status=$?
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); }; } &&
24151          { ac_try='test -s conftest.$ac_objext'
24152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153   (eval $ac_try) 2>&5
24154   ac_status=$?
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); }; }; then
24157   ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
24158 else
24159   echo "$as_me: failed program was:" >&5
24160 sed 's/^/| /' conftest.$ac_ext >&5
24161
24162 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
24163 fi
24164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24165 fi
24166 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
24167 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
24168 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
24169
24170 cat >>confdefs.h <<_ACEOF
24171 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
24172 _ACEOF
24173
24174
24175 else
24176   cat >>confdefs.h <<_ACEOF
24177 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
24178 _ACEOF
24179
24180
24181 fi
24182
24183
24184
24185 if test "$cross_compiling" = yes; then
24186   cat >conftest.$ac_ext <<_ACEOF
24187 /* confdefs.h.  */
24188 _ACEOF
24189 cat confdefs.h >>conftest.$ac_ext
24190 cat >>conftest.$ac_ext <<_ACEOF
24191 /* end confdefs.h.  */
24192 #include <sys/personality.h>
24193 int
24194 main ()
24195 {
24196
24197 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
24198 #       define ADDR_NO_RANDOMIZE 0x0040000
24199 #      endif
24200        /* Test the flag could be set and stays set.  */
24201        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24202        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24203            return 1
24204   ;
24205   return 0;
24206 }
24207 _ACEOF
24208 rm -f conftest.$ac_objext conftest$ac_exeext
24209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24210   (eval $ac_link) 2>conftest.er1
24211   ac_status=$?
24212   grep -v '^ *+' conftest.er1 >conftest.err
24213   rm -f conftest.er1
24214   cat conftest.err >&5
24215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216   (exit $ac_status); } &&
24217          { ac_try='test -z "$ac_c_werror_flag"
24218                          || test ! -s conftest.err'
24219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24220   (eval $ac_try) 2>&5
24221   ac_status=$?
24222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223   (exit $ac_status); }; } &&
24224          { ac_try='test -s conftest$ac_exeext'
24225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24226   (eval $ac_try) 2>&5
24227   ac_status=$?
24228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229   (exit $ac_status); }; }; then
24230   have_personality=true
24231 else
24232   echo "$as_me: failed program was:" >&5
24233 sed 's/^/| /' conftest.$ac_ext >&5
24234
24235 have_personality=false
24236 fi
24237 rm -f conftest.err conftest.$ac_objext \
24238       conftest$ac_exeext conftest.$ac_ext
24239 else
24240   cat >conftest.$ac_ext <<_ACEOF
24241 /* confdefs.h.  */
24242 _ACEOF
24243 cat confdefs.h >>conftest.$ac_ext
24244 cat >>conftest.$ac_ext <<_ACEOF
24245 /* end confdefs.h.  */
24246 #include <sys/personality.h>
24247 int
24248 main ()
24249 {
24250
24251 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
24252 #       define ADDR_NO_RANDOMIZE 0x0040000
24253 #      endif
24254        /* Test the flag could be set and stays set.  */
24255        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24256        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24257            return 1
24258   ;
24259   return 0;
24260 }
24261 _ACEOF
24262 rm -f conftest$ac_exeext
24263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24264   (eval $ac_link) 2>&5
24265   ac_status=$?
24266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269   (eval $ac_try) 2>&5
24270   ac_status=$?
24271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); }; }; then
24273   have_personality=true
24274 else
24275   echo "$as_me: program exited with status $ac_status" >&5
24276 echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24278
24279 ( exit $ac_status )
24280 have_personality=false
24281 fi
24282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24283 fi
24284 if $have_personality
24285 then
24286
24287 cat >>confdefs.h <<\_ACEOF
24288 #define HAVE_PERSONALITY 1
24289 _ACEOF
24290
24291 fi
24292
24293
24294
24295 # Check whether --with-sysroot or --without-sysroot was given.
24296 if test "${with_sysroot+set}" = set; then
24297   withval="$with_sysroot"
24298
24299  case ${with_sysroot} in
24300  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
24301  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
24302  esac
24303
24304  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
24305
24306  if test "x$prefix" = xNONE; then
24307   test_prefix=/usr/local
24308  else
24309   test_prefix=$prefix
24310  fi
24311  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
24312   test_exec_prefix=$test_prefix
24313  else
24314   test_exec_prefix=$exec_prefix
24315  fi
24316  case ${TARGET_SYSTEM_ROOT} in
24317  "${test_prefix}"|"${test_prefix}/"*|\
24318  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
24319  '${prefix}'|'${prefix}/'*|\
24320  '${exec_prefix}'|'${exec_prefix}/'*)
24321    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
24322    TARGET_SYSTEM_ROOT_DEFINE="$t"
24323    ;;
24324  esac
24325
24326 else
24327
24328  TARGET_SYSTEM_ROOT=
24329  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
24330
24331 fi;
24332
24333
24334
24335 # Check whether --enable-werror or --disable-werror was given.
24336 if test "${enable_werror+set}" = set; then
24337   enableval="$enable_werror"
24338   case "${enableval}" in
24339      yes | y) ERROR_ON_WARNING="yes" ;;
24340      no | n)  ERROR_ON_WARNING="no" ;;
24341      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
24342 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
24343    { (exit 1); exit 1; }; } ;;
24344    esac
24345 fi;
24346
24347 # Enable -Werror by default when using gcc
24348 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
24349     ERROR_ON_WARNING=yes
24350 fi
24351
24352 WERROR_CFLAGS=""
24353 if test "${ERROR_ON_WARNING}" = yes ; then
24354     WERROR_CFLAGS="-Werror"
24355 fi
24356
24357 # The entries after -Wno-pointer-sign are disabled warnings which may
24358 # be enabled in the future, which can not currently be used to build
24359 # GDB.
24360 # NOTE: If you change this list, remember to update
24361 # gdb/doc/gdbint.texinfo.
24362 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24363 -Wformat-nonliteral -Wno-pointer-sign \
24364 -Wno-unused -Wno-switch -Wno-char-subscripts"
24365
24366 # Enable -Wno-format by default when using gcc on mingw since many
24367 # GCC versions complain about %I64.
24368 case "${host}" in
24369   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
24370 esac
24371
24372 # Check whether --enable-build-warnings or --disable-build-warnings was given.
24373 if test "${enable_build_warnings+set}" = set; then
24374   enableval="$enable_build_warnings"
24375   case "${enableval}" in
24376   yes)  ;;
24377   no)   build_warnings="-w";;
24378   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24379         build_warnings="${build_warnings} ${t}";;
24380   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24381         build_warnings="${t} ${build_warnings}";;
24382   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24383 esac
24384 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24385   echo "Setting compiler warning flags = $build_warnings" 6>&1
24386 fi
24387 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
24388 if test "${enable_gdb_build_warnings+set}" = set; then
24389   enableval="$enable_gdb_build_warnings"
24390   case "${enableval}" in
24391   yes)  ;;
24392   no)   build_warnings="-w";;
24393   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24394         build_warnings="${build_warnings} ${t}";;
24395   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24396         build_warnings="${t} ${build_warnings}";;
24397   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24398 esac
24399 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24400   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24401 fi
24402 fi; WARN_CFLAGS=""
24403 if test "x${build_warnings}" != x -a "x$GCC" = xyes
24404 then
24405     echo "$as_me:$LINENO: checking compiler warning flags" >&5
24406 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
24407     # Separate out the -Werror flag as some files just cannot be
24408     # compiled with it enabled.
24409     for w in ${build_warnings}; do
24410         case $w in
24411         -Werr*) WERROR_CFLAGS=-Werror ;;
24412         *) # Check that GCC accepts it
24413             saved_CFLAGS="$CFLAGS"
24414             CFLAGS="$CFLAGS $w"
24415             cat >conftest.$ac_ext <<_ACEOF
24416 /* confdefs.h.  */
24417 _ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h.  */
24421
24422 int
24423 main ()
24424 {
24425
24426   ;
24427   return 0;
24428 }
24429 _ACEOF
24430 rm -f conftest.$ac_objext
24431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24432   (eval $ac_compile) 2>conftest.er1
24433   ac_status=$?
24434   grep -v '^ *+' conftest.er1 >conftest.err
24435   rm -f conftest.er1
24436   cat conftest.err >&5
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); } &&
24439          { ac_try='test -z "$ac_c_werror_flag"
24440                          || test ! -s conftest.err'
24441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442   (eval $ac_try) 2>&5
24443   ac_status=$?
24444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445   (exit $ac_status); }; } &&
24446          { ac_try='test -s conftest.$ac_objext'
24447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448   (eval $ac_try) 2>&5
24449   ac_status=$?
24450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451   (exit $ac_status); }; }; then
24452   WARN_CFLAGS="${WARN_CFLAGS} $w"
24453 else
24454   echo "$as_me: failed program was:" >&5
24455 sed 's/^/| /' conftest.$ac_ext >&5
24456
24457 fi
24458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24459             CFLAGS="$saved_CFLAGS"
24460         esac
24461     done
24462     echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24463 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
24464 fi
24465
24466
24467
24468 # In the Cygwin environment, we need some additional flags.
24469 echo "$as_me:$LINENO: checking for cygwin" >&5
24470 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
24471 if test "${gdb_cv_os_cygwin+set}" = set; then
24472   echo $ECHO_N "(cached) $ECHO_C" >&6
24473 else
24474   cat >conftest.$ac_ext <<_ACEOF
24475 /* confdefs.h.  */
24476 _ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h.  */
24480
24481 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
24482 lose
24483 #endif
24484 _ACEOF
24485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24486   $EGREP "lose" >/dev/null 2>&1; then
24487   gdb_cv_os_cygwin=yes
24488 else
24489   gdb_cv_os_cygwin=no
24490 fi
24491 rm -f conftest*
24492
24493 fi
24494 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24495 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
24496
24497
24498 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
24499 case ${host} in
24500   *go32* ) SER_HARDWIRE=ser-go32.o ;;
24501   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
24502   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
24503 esac
24504
24505
24506 # libreadline needs libuser32.a in a cygwin environment
24507 WIN32LIBS=
24508 if test x$gdb_cv_os_cygwin = xyes; then
24509     WIN32LIBS="-luser32"
24510     case "${target}" in
24511         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24512         ;;
24513     esac
24514 fi
24515
24516 # The ser-tcp.c module requires sockets.
24517 case ${host} in
24518   *mingw32*)
24519
24520 cat >>confdefs.h <<\_ACEOF
24521 #define USE_WIN32API 1
24522 _ACEOF
24523
24524     WIN32LIBS="$WIN32LIBS -lws2_32"
24525     ;;
24526 esac
24527
24528
24529 # Add ELF support to GDB, but only if BFD includes ELF support.
24530 OLD_CFLAGS=$CFLAGS
24531 OLD_LDFLAGS=$LDFLAGS
24532 OLD_LIBS=$LIBS
24533 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
24534 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
24535 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
24536 LIBS="-lbfd -liberty $intl $LIBS"
24537 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24538 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24539 if test "${gdb_cv_var_elf+set}" = set; then
24540   echo $ECHO_N "(cached) $ECHO_C" >&6
24541 else
24542   cat >conftest.$ac_ext <<_ACEOF
24543 /* confdefs.h.  */
24544 _ACEOF
24545 cat confdefs.h >>conftest.$ac_ext
24546 cat >>conftest.$ac_ext <<_ACEOF
24547 /* end confdefs.h.  */
24548 #include <stdlib.h>
24549 #include "bfd.h"
24550 #include "elf-bfd.h"
24551
24552 int
24553 main ()
24554 {
24555 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24556   ;
24557   return 0;
24558 }
24559 _ACEOF
24560 rm -f conftest.$ac_objext conftest$ac_exeext
24561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24562   (eval $ac_link) 2>conftest.er1
24563   ac_status=$?
24564   grep -v '^ *+' conftest.er1 >conftest.err
24565   rm -f conftest.er1
24566   cat conftest.err >&5
24567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568   (exit $ac_status); } &&
24569          { ac_try='test -z "$ac_c_werror_flag"
24570                          || test ! -s conftest.err'
24571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24572   (eval $ac_try) 2>&5
24573   ac_status=$?
24574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575   (exit $ac_status); }; } &&
24576          { ac_try='test -s conftest$ac_exeext'
24577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24578   (eval $ac_try) 2>&5
24579   ac_status=$?
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); }; }; then
24582   gdb_cv_var_elf=yes
24583 else
24584   echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24586
24587 gdb_cv_var_elf=no
24588 fi
24589 rm -f conftest.err conftest.$ac_objext \
24590       conftest$ac_exeext conftest.$ac_ext
24591 fi
24592 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24593 echo "${ECHO_T}$gdb_cv_var_elf" >&6
24594 if test $gdb_cv_var_elf = yes; then
24595   CONFIG_OBS="$CONFIG_OBS elfread.o"
24596
24597 cat >>confdefs.h <<\_ACEOF
24598 #define HAVE_ELF 1
24599 _ACEOF
24600
24601 fi
24602 CFLAGS=$OLD_CFLAGS
24603 LDFLAGS=$OLD_LDFLAGS
24604 LIBS=$OLD_LIBS
24605
24606 # Add any host-specific objects to GDB.
24607 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24608
24609 LIBGUI="../libgui/src/libgui.a"
24610 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24611
24612
24613
24614 WIN32LDAPP=
24615
24616
24617
24618 case "${host}" in
24619 *-*-cygwin* | *-*-mingw* )
24620     configdir="win"
24621     ;;
24622 *)
24623     configdir="unix"
24624     ;;
24625 esac
24626
24627 GDBTKLIBS=
24628 if test "${enable_gdbtk}" = "yes"; then
24629
24630     # Gdbtk must have an absolute path to srcdir in order to run
24631     # properly when not installed.
24632     here=`pwd`
24633     cd ${srcdir}
24634     GDBTK_SRC_DIR=`pwd`
24635     cd $here
24636
24637
24638     #
24639     # Ok, lets find the tcl configuration
24640     # First, look for one uninstalled.
24641     # the alternative search directory is invoked by --with-tcl
24642     #
24643
24644     if test x"${no_tcl}" = x ; then
24645         # we reset no_tcl in case something fails here
24646         no_tcl=true
24647
24648 # Check whether --with-tcl or --without-tcl was given.
24649 if test "${with_tcl+set}" = set; then
24650   withval="$with_tcl"
24651   with_tclconfig=${withval}
24652 fi;
24653         echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24654 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
24655         if test "${ac_cv_c_tclconfig+set}" = set; then
24656   echo $ECHO_N "(cached) $ECHO_C" >&6
24657 else
24658
24659
24660             # First check to see if --with-tcl was specified.
24661             case "${host}" in
24662                 *-*-cygwin*) platDir="win" ;;
24663                 *) platDir="unix" ;;
24664             esac
24665             if test x"${with_tclconfig}" != x ; then
24666                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24667                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24668                 else
24669                     { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24670 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24671    { (exit 1); exit 1; }; }
24672                 fi
24673             fi
24674
24675             # then check for a private Tcl installation
24676             if test x"${ac_cv_c_tclconfig}" = x ; then
24677                 for i in \
24678                         ../tcl \
24679                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24680                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
24681                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
24682                         ../../tcl \
24683                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24684                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
24685                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
24686                         ../../../tcl \
24687                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24688                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
24689                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
24690                     if test -f "$i/$platDir/tclConfig.sh" ; then
24691                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24692                         break
24693                     fi
24694                 done
24695             fi
24696
24697             # on Darwin, check in Framework installation locations
24698             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
24699                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24700                         `ls -d /Library/Frameworks 2>/dev/null` \
24701                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
24702                         `ls -d /System/Library/Frameworks 2>/dev/null` \
24703                         ; do
24704                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
24705                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
24706                         break
24707                     fi
24708                 done
24709             fi
24710
24711             # check in a few common install locations
24712             if test x"${ac_cv_c_tclconfig}" = x ; then
24713                 for i in `ls -d ${libdir} 2>/dev/null` \
24714                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
24715                         `ls -d ${prefix}/lib 2>/dev/null` \
24716                         `ls -d /usr/local/lib 2>/dev/null` \
24717                         `ls -d /usr/contrib/lib 2>/dev/null` \
24718                         `ls -d /usr/lib 2>/dev/null` \
24719                         ; do
24720                     if test -f "$i/tclConfig.sh" ; then
24721                         ac_cv_c_tclconfig=`(cd $i; pwd)`
24722                         break
24723                     fi
24724                 done
24725             fi
24726
24727             # check in a few other private locations
24728             if test x"${ac_cv_c_tclconfig}" = x ; then
24729                 for i in \
24730                         ${srcdir}/../tcl \
24731                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24732                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
24733                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
24734                     if test -f "$i/$platDir/tclConfig.sh" ; then
24735                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24736                     break
24737                 fi
24738                 done
24739             fi
24740
24741 fi
24742
24743
24744         if test x"${ac_cv_c_tclconfig}" = x ; then
24745             TCL_BIN_DIR="# no Tcl configs found"
24746             { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24747 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
24748             exit 0
24749         else
24750             no_tcl=
24751             TCL_BIN_DIR=${ac_cv_c_tclconfig}
24752             echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
24753 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
24754         fi
24755     fi
24756
24757     if test -z "${no_tcl}"; then
24758
24759     echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
24760 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
24761
24762     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
24763         echo "$as_me:$LINENO: result: loading" >&5
24764 echo "${ECHO_T}loading" >&6
24765         . ${TCL_BIN_DIR}/tclConfig.sh
24766     else
24767         echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
24768 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
24769     fi
24770
24771     # eval is required to do the TCL_DBGX substitution
24772     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
24773     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
24774
24775     # If the TCL_BIN_DIR is the build directory (not the install directory),
24776     # then set the common variable name to the value of the build variables.
24777     # For example, the variable TCL_LIB_SPEC will be set to the value
24778     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
24779     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
24780     # installed and uninstalled version of Tcl.
24781     if test -f ${TCL_BIN_DIR}/Makefile ; then
24782         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
24783         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
24784         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
24785     elif test "`uname -s`" = "Darwin"; then
24786         # If Tcl was built as a framework, attempt to use the libraries
24787         # from the framework at the given location so that linking works
24788         # against Tcl.framework installed in an arbitary location.
24789         case ${TCL_DEFS} in
24790             *TCL_FRAMEWORK*)
24791                 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
24792                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
24793                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
24794                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
24795                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
24796                             break
24797                         fi
24798                     done
24799                 fi
24800                 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
24801                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
24802                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
24803                 fi
24804                 ;;
24805         esac
24806     fi
24807
24808     # eval is required to do the TCL_DBGX substitution
24809     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
24810     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
24811     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
24812     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828         # Check for in-tree tcl
24829         here=`pwd`
24830         cd ${srcdir}/..
24831         topdir=`pwd`
24832         cd ${here}
24833
24834         intree="no"
24835         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
24836           intree="yes"
24837         fi
24838
24839         # Find Tcl private headers
24840         if test x"${intree}" = xno; then
24841
24842   echo "$as_me:$LINENO: checking for Tcl private headers" >&5
24843 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
24844   private_dir=""
24845   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
24846   if test -f ${dir}/tclInt.h ; then
24847     private_dir=${dir}
24848   fi
24849
24850   if test x"${private_dir}" = x; then
24851     { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
24852 echo "$as_me: error: could not find private Tcl headers" >&2;}
24853    { (exit 1); exit 1; }; }
24854   else
24855     TCL_PRIVATE_INCLUDE="-I${private_dir}"
24856     echo "$as_me:$LINENO: result: ${private_dir}" >&5
24857 echo "${ECHO_T}${private_dir}" >&6
24858   fi
24859
24860           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
24861           TCL_LIBRARY="${TCL_LIB_SPEC}"
24862           TCL_DEPS=""
24863         else
24864           # If building tcl in the same src tree, private headers
24865           # are not needed, but we need to be sure to use the right
24866           # headers library
24867           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
24868           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
24869           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
24870         fi
24871
24872
24873
24874
24875         # If $no_tk is nonempty, then we can't do Tk, and there is no
24876         # point to doing Tcl.
24877         if test -z "${no_tk}"; then
24878
24879     #
24880     # Ok, lets find the tk configuration
24881     # First, look for one uninstalled.
24882     # the alternative search directory is invoked by --with-tk
24883     #
24884
24885     if test x"${no_tk}" = x ; then
24886         # we reset no_tk in case something fails here
24887         no_tk=true
24888
24889 # Check whether --with-tk or --without-tk was given.
24890 if test "${with_tk+set}" = set; then
24891   withval="$with_tk"
24892   with_tkconfig=${withval}
24893 fi;
24894         echo "$as_me:$LINENO: checking for Tk configuration" >&5
24895 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
24896         if test "${ac_cv_c_tkconfig+set}" = set; then
24897   echo $ECHO_N "(cached) $ECHO_C" >&6
24898 else
24899
24900
24901             # First check to see if --with-tkconfig was specified.
24902             if test x"${with_tkconfig}" != x ; then
24903                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
24904                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
24905                 else
24906                     { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
24907 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
24908    { (exit 1); exit 1; }; }
24909                 fi
24910             fi
24911
24912             # then check for a private Tk library
24913             case "${host}" in
24914                 *-*-cygwin*) platDir="win" ;;
24915                 *) platDir="unix" ;;
24916             esac
24917             if test x"${ac_cv_c_tkconfig}" = x ; then
24918                 for i in \
24919                         ../tk \
24920                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24921                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
24922                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
24923                         ../../tk \
24924                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24925                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
24926                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
24927                         ../../../tk \
24928                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24929                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
24930                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
24931                     if test -f "$i/$platDir/tkConfig.sh" ; then
24932                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
24933                         break
24934                     fi
24935                 done
24936             fi
24937
24938             # on Darwin, check in Framework installation locations
24939             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
24940                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24941                         `ls -d /Library/Frameworks 2>/dev/null` \
24942                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
24943                         `ls -d /System/Library/Frameworks 2>/dev/null` \
24944                         ; do
24945                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
24946                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
24947                         break
24948                     fi
24949                 done
24950             fi
24951
24952             # check in a few common install locations
24953             if test x"${ac_cv_c_tkconfig}" = x ; then
24954                 for i in `ls -d ${libdir} 2>/dev/null` \
24955                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
24956                         `ls -d ${prefix}/lib 2>/dev/null` \
24957                         `ls -d /usr/local/lib 2>/dev/null` \
24958                         `ls -d /usr/contrib/lib 2>/dev/null` \
24959                         `ls -d /usr/lib 2>/dev/null` \
24960                         ; do
24961                     if test -f "$i/tkConfig.sh" ; then
24962                         ac_cv_c_tkconfig=`(cd $i; pwd)`
24963                         break
24964                     fi
24965                 done
24966             fi
24967             # check in a few other private locations
24968             if test x"${ac_cv_c_tkconfig}" = x ; then
24969                 for i in \
24970                         ${srcdir}/../tk \
24971                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24972                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
24973                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
24974                     if test -f "$i/$platDir/tkConfig.sh" ; then
24975                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
24976                         break
24977                     fi
24978                 done
24979             fi
24980
24981 fi
24982
24983
24984         if test x"${ac_cv_c_tkconfig}" = x ; then
24985             TK_BIN_DIR="# no Tk configs found"
24986             { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
24987 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
24988             exit 0
24989         else
24990             no_tk=
24991             TK_BIN_DIR=${ac_cv_c_tkconfig}
24992             echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
24993 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
24994         fi
24995     fi
24996
24997
24998     echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
24999 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
25000
25001     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
25002         echo "$as_me:$LINENO: result: loading" >&5
25003 echo "${ECHO_T}loading" >&6
25004         . ${TK_BIN_DIR}/tkConfig.sh
25005     else
25006         echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
25007 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
25008     fi
25009
25010     # eval is required to do the TK_DBGX substitution
25011     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
25012     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
25013
25014     # If the TK_BIN_DIR is the build directory (not the install directory),
25015     # then set the common variable name to the value of the build variables.
25016     # For example, the variable TK_LIB_SPEC will be set to the value
25017     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
25018     # instead of TK_BUILD_LIB_SPEC since it will work with both an
25019     # installed and uninstalled version of Tcl.
25020     if test -f ${TK_BIN_DIR}/Makefile ; then
25021         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
25022         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
25023         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
25024     elif test "`uname -s`" = "Darwin"; then
25025         # If Tk was built as a framework, attempt to use the libraries
25026         # from the framework at the given location so that linking works
25027         # against Tk.framework installed in an arbitary location.
25028         case ${TK_DEFS} in
25029             *TK_FRAMEWORK*)
25030                 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
25031                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
25032                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
25033                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
25034                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
25035                             break
25036                         fi
25037                     done
25038                 fi
25039                 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
25040                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
25041                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
25042                 fi
25043                 ;;
25044         esac
25045     fi
25046
25047     # eval is required to do the TK_DBGX substitution
25048     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
25049     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
25050     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
25051     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066            # Check for in-tree Tk
25067            intree="no"
25068            if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
25069              intree="yes"
25070            fi
25071
25072            # Find Tk private headers
25073            if test x"${intree}" = xno; then
25074
25075   echo "$as_me:$LINENO: checking for Tk private headers" >&5
25076 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
25077   private_dir=""
25078   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
25079   if test -f ${dir}/tkInt.h; then
25080     private_dir=${dir}
25081   fi
25082
25083   if test x"${private_dir}" = x; then
25084     { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
25085 echo "$as_me: error: could not find Tk private headers" >&2;}
25086    { (exit 1); exit 1; }; }
25087   else
25088     TK_PRIVATE_INCLUDE="-I${private_dir}"
25089     echo "$as_me:$LINENO: result: ${private_dir}" >&5
25090 echo "${ECHO_T}${private_dir}" >&6
25091   fi
25092
25093              TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
25094              TK_LIBRARY=${TK_LIB_SPEC}
25095              TK_DEPS=""
25096            else
25097              TK_INCLUDE="-I${TK_SRC_DIR}/generic"
25098              TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
25099              TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
25100            fi
25101
25102
25103
25104
25105
25106            ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
25107
25108            # Include some libraries that Tcl and Tk want.
25109            TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
25110            # Yes, the ordering seems wrong here.  But it isn't.
25111            # TK_LIBS is the list of libraries that need to be linked
25112            # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
25113            # were in LIBS then any link tests after this point would
25114            # try to include things like `$(LIBGUI)', which wouldn't work.
25115            GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
25116
25117            CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25118            CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25119            CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
25120            CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25121            CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25122            CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25123            CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
25124
25125            if test x$gdb_cv_os_cygwin = xyes; then
25126               WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25127               WIN32LDAPP="-Wl,--subsystem,console"
25128               CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25129            fi
25130         fi
25131     fi
25132
25133
25134
25135 subdirs="$subdirs gdbtk"
25136
25137 fi
25138
25139
25140
25141
25142
25143
25144
25145
25146 echo "$as_me:$LINENO: checking for X" >&5
25147 echo $ECHO_N "checking for X... $ECHO_C" >&6
25148
25149
25150 # Check whether --with-x or --without-x was given.
25151 if test "${with_x+set}" = set; then
25152   withval="$with_x"
25153
25154 fi;
25155 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25156 if test "x$with_x" = xno; then
25157   # The user explicitly disabled X.
25158   have_x=disabled
25159 else
25160   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25161     # Both variables are already set.
25162     have_x=yes
25163   else
25164     if test "${ac_cv_have_x+set}" = set; then
25165   echo $ECHO_N "(cached) $ECHO_C" >&6
25166 else
25167   # One or both of the vars are not set, and there is no cached value.
25168 ac_x_includes=no ac_x_libraries=no
25169 rm -fr conftest.dir
25170 if mkdir conftest.dir; then
25171   cd conftest.dir
25172   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25173   cat >Imakefile <<'_ACEOF'
25174 acfindx:
25175         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25176 _ACEOF
25177   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25178     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25179     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25180     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25181     for ac_extension in a so sl; do
25182       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
25183          test -f $ac_im_libdir/libX11.$ac_extension; then
25184         ac_im_usrlibdir=$ac_im_libdir; break
25185       fi
25186     done
25187     # Screen out bogus values from the imake configuration.  They are
25188     # bogus both because they are the default anyway, and because
25189     # using them would break gcc on systems where it needs fixed includes.
25190     case $ac_im_incroot in
25191         /usr/include) ;;
25192         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25193     esac
25194     case $ac_im_usrlibdir in
25195         /usr/lib | /lib) ;;
25196         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25197     esac
25198   fi
25199   cd ..
25200   rm -fr conftest.dir
25201 fi
25202
25203 # Standard set of common directories for X headers.
25204 # Check X11 before X11Rn because it is often a symlink to the current release.
25205 ac_x_header_dirs='
25206 /usr/X11/include
25207 /usr/X11R6/include
25208 /usr/X11R5/include
25209 /usr/X11R4/include
25210
25211 /usr/include/X11
25212 /usr/include/X11R6
25213 /usr/include/X11R5
25214 /usr/include/X11R4
25215
25216 /usr/local/X11/include
25217 /usr/local/X11R6/include
25218 /usr/local/X11R5/include
25219 /usr/local/X11R4/include
25220
25221 /usr/local/include/X11
25222 /usr/local/include/X11R6
25223 /usr/local/include/X11R5
25224 /usr/local/include/X11R4
25225
25226 /usr/X386/include
25227 /usr/x386/include
25228 /usr/XFree86/include/X11
25229
25230 /usr/include
25231 /usr/local/include
25232 /usr/unsupported/include
25233 /usr/athena/include
25234 /usr/local/x11r5/include
25235 /usr/lpp/Xamples/include
25236
25237 /usr/openwin/include
25238 /usr/openwin/share/include'
25239
25240 if test "$ac_x_includes" = no; then
25241   # Guess where to find include files, by looking for Intrinsic.h.
25242   # First, try using that file with no special directory specified.
25243   cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h.  */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h.  */
25249 #include <X11/Intrinsic.h>
25250 _ACEOF
25251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25253   ac_status=$?
25254   grep -v '^ *+' conftest.er1 >conftest.err
25255   rm -f conftest.er1
25256   cat conftest.err >&5
25257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258   (exit $ac_status); } >/dev/null; then
25259   if test -s conftest.err; then
25260     ac_cpp_err=$ac_c_preproc_warn_flag
25261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25262   else
25263     ac_cpp_err=
25264   fi
25265 else
25266   ac_cpp_err=yes
25267 fi
25268 if test -z "$ac_cpp_err"; then
25269   # We can compile using X headers with no special include directory.
25270 ac_x_includes=
25271 else
25272   echo "$as_me: failed program was:" >&5
25273 sed 's/^/| /' conftest.$ac_ext >&5
25274
25275   for ac_dir in $ac_x_header_dirs; do
25276   if test -r "$ac_dir/X11/Intrinsic.h"; then
25277     ac_x_includes=$ac_dir
25278     break
25279   fi
25280 done
25281 fi
25282 rm -f conftest.err conftest.$ac_ext
25283 fi # $ac_x_includes = no
25284
25285 if test "$ac_x_libraries" = no; then
25286   # Check for the libraries.
25287   # See if we find them without any special options.
25288   # Don't add to $LIBS permanently.
25289   ac_save_LIBS=$LIBS
25290   LIBS="-lXt $LIBS"
25291   cat >conftest.$ac_ext <<_ACEOF
25292 /* confdefs.h.  */
25293 _ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h.  */
25297 #include <X11/Intrinsic.h>
25298 int
25299 main ()
25300 {
25301 XtMalloc (0)
25302   ;
25303   return 0;
25304 }
25305 _ACEOF
25306 rm -f conftest.$ac_objext conftest$ac_exeext
25307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25308   (eval $ac_link) 2>conftest.er1
25309   ac_status=$?
25310   grep -v '^ *+' conftest.er1 >conftest.err
25311   rm -f conftest.er1
25312   cat conftest.err >&5
25313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314   (exit $ac_status); } &&
25315          { ac_try='test -z "$ac_c_werror_flag"
25316                          || test ! -s conftest.err'
25317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25318   (eval $ac_try) 2>&5
25319   ac_status=$?
25320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321   (exit $ac_status); }; } &&
25322          { ac_try='test -s conftest$ac_exeext'
25323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324   (eval $ac_try) 2>&5
25325   ac_status=$?
25326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327   (exit $ac_status); }; }; then
25328   LIBS=$ac_save_LIBS
25329 # We can link X programs with no special library path.
25330 ac_x_libraries=
25331 else
25332   echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25334
25335 LIBS=$ac_save_LIBS
25336 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25337 do
25338   # Don't even attempt the hair of trying to link an X program!
25339   for ac_extension in a so sl; do
25340     if test -r $ac_dir/libXt.$ac_extension; then
25341       ac_x_libraries=$ac_dir
25342       break 2
25343     fi
25344   done
25345 done
25346 fi
25347 rm -f conftest.err conftest.$ac_objext \
25348       conftest$ac_exeext conftest.$ac_ext
25349 fi # $ac_x_libraries = no
25350
25351 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25352   # Didn't find X anywhere.  Cache the known absence of X.
25353   ac_cv_have_x="have_x=no"
25354 else
25355   # Record where we found X for the cache.
25356   ac_cv_have_x="have_x=yes \
25357                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
25358 fi
25359 fi
25360
25361   fi
25362   eval "$ac_cv_have_x"
25363 fi # $with_x != no
25364
25365 if test "$have_x" != yes; then
25366   echo "$as_me:$LINENO: result: $have_x" >&5
25367 echo "${ECHO_T}$have_x" >&6
25368   no_x=yes
25369 else
25370   # If each of the values was on the command line, it overrides each guess.
25371   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25372   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25373   # Update the cache value to reflect the command line values.
25374   ac_cv_have_x="have_x=yes \
25375                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
25376   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25377 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
25378 fi
25379
25380
25381 # Check whether we should enable the TUI, but only do so if we really
25382 # can.
25383 if test x"$enable_tui" != xno; then
25384   if test -d $srcdir/tui; then
25385     if test "$ac_cv_search_waddstr" != no; then
25386       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25387       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25388       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
25389       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25390       CONFIG_ALL="${CONFIG_ALL} all-tui"
25391       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25392       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25393       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25394     else
25395       if test x"$enable_tui" = xyes; then
25396         { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
25397 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
25398    { (exit 1); exit 1; }; }
25399       else
25400         { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
25401 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
25402       fi
25403     fi
25404   fi
25405 fi
25406
25407 # Unlike the sim directory, whether a simulator is linked is controlled by
25408 # presence of a gdb_sim definition in the target configure.tgt entry.
25409 # This code just checks for a few cases where we'd like to ignore those
25410 # definitions, even when they're present in the '.mt' file.  These cases
25411 # are when --disable-sim is specified, or if the simulator directory is
25412 # not part of the source tree.
25413 #
25414 # Check whether --enable-sim or --disable-sim was given.
25415 if test "${enable_sim+set}" = set; then
25416   enableval="$enable_sim"
25417   echo "enable_sim = $enable_sim";
25418  echo "enableval = ${enableval}";
25419  case "${enableval}" in
25420   yes) ignore_sim=false ;;
25421   no)  ignore_sim=true ;;
25422   *)   ignore_sim=false ;;
25423  esac
25424 else
25425   ignore_sim=false
25426 fi;
25427
25428 if test ! -d "${srcdir}/../sim"; then
25429   ignore_sim=true
25430 fi
25431
25432 SIM=
25433 SIM_OBS=
25434 if test "${ignore_sim}" = "false"; then
25435   if test x"${gdb_sim}" != x ; then
25436     SIM="${gdb_sim}"
25437     SIM_OBS="remote-sim.o"
25438
25439 cat >>confdefs.h <<\_ACEOF
25440 #define WITH_SIM 1
25441 _ACEOF
25442
25443   fi
25444 fi
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459 # List of host floatformats.
25460
25461 cat >>confdefs.h <<_ACEOF
25462 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
25463 _ACEOF
25464
25465
25466 cat >>confdefs.h <<_ACEOF
25467 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
25468 _ACEOF
25469
25470
25471 cat >>confdefs.h <<_ACEOF
25472 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
25473 _ACEOF
25474
25475
25476 # target_subdir is used by the testsuite to find the target libraries.
25477 target_subdir=
25478 if test "${host}" != "${target}"; then
25479     target_subdir="${target_alias}/"
25480 fi
25481
25482
25483 frags=
25484 if test "${gdb_native}" = "yes"; then
25485   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25486   if test ! -f ${host_makefile_frag}; then
25487     { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25488 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25489    { (exit 1); exit 1; }; }
25490   fi
25491   frags="$frags $host_makefile_frag"
25492 else
25493   host_makefile_frag=/dev/null
25494 fi
25495
25496
25497
25498
25499 if test "${gdb_native}" = "yes"; then
25500 # We pick this up from the host configuration file (.mh) because we
25501 # do not have a native configuration Makefile fragment.
25502 nativefile=`sed -n '
25503 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
25504 ' ${host_makefile_frag}`
25505 fi
25506
25507
25508 if test x"${gdb_osabi}" != x ; then
25509
25510 cat >>confdefs.h <<_ACEOF
25511 #define GDB_OSABI_DEFAULT $gdb_osabi
25512 _ACEOF
25513
25514 fi
25515
25516 # Enable multi-ice-gdb-server.
25517 # Check whether --enable-multi-ice or --disable-multi-ice was given.
25518 if test "${enable_multi_ice+set}" = set; then
25519   enableval="$enable_multi_ice"
25520   case $enableval in
25521     yes | no)
25522       ;;
25523     *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25524 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25525    { (exit 1); exit 1; }; } ;;
25526   esac
25527 fi;
25528 if test "x$enable_multi_ice" = xyes; then
25529
25530
25531 subdirs="$subdirs multi-ice"
25532
25533 fi
25534
25535 # We only build gdbserver automatically in a native configuration.
25536 if test "$gdb_native" = "yes"; then
25537   echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25538 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
25539   if test "x$build_gdbserver" = xyes; then
25540     echo "$as_me:$LINENO: result: yes" >&5
25541 echo "${ECHO_T}yes" >&6
25542
25543
25544 subdirs="$subdirs gdbserver"
25545
25546   else
25547     echo "$as_me:$LINENO: result: no" >&5
25548 echo "${ECHO_T}no" >&6
25549   fi
25550 fi
25551
25552 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
25553 # to an empty version.
25554
25555 files=
25556 links=
25557
25558 rm -f nm.h
25559 nm_h=""
25560 if test "${nativefile}" != ""; then
25561     nm_h=nm.h
25562     case "${nativefile}" in
25563       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25564       * ) GDB_NM_FILE="${nativefile}"
25565     esac
25566     files="${files} ${GDB_NM_FILE}"
25567     links="${links} nm.h"
25568
25569 cat >>confdefs.h <<_ACEOF
25570 #define GDB_NM_FILE "${GDB_NM_FILE}"
25571 _ACEOF
25572
25573 fi
25574
25575
25576 ac_sources="$files"
25577 ac_dests="$links"
25578 while test -n "$ac_sources"; do
25579   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25580   set $ac_sources; ac_source=$1; shift; ac_sources=$*
25581   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25582 done
25583           ac_config_links="$ac_config_links $ac_config_links_1"
25584
25585
25586
25587
25588
25589
25590 cat >>confdefs.h <<\_ACEOF
25591 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25592 _ACEOF
25593
25594
25595
25596
25597
25598 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25599 if test "${with_libiconv_prefix+set}" = set; then
25600   withval="$with_libiconv_prefix"
25601
25602     for dir in `echo "$withval" | tr : ' '`; do
25603       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25604       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25605     done
25606
25607 fi;
25608
25609   echo "$as_me:$LINENO: checking for iconv" >&5
25610 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25611 if test "${am_cv_func_iconv+set}" = set; then
25612   echo $ECHO_N "(cached) $ECHO_C" >&6
25613 else
25614
25615     am_cv_func_iconv="no, consider installing GNU libiconv"
25616     am_cv_lib_iconv=no
25617     cat >conftest.$ac_ext <<_ACEOF
25618 /* confdefs.h.  */
25619 _ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h.  */
25623 #include <stdlib.h>
25624 #include <iconv.h>
25625 int
25626 main ()
25627 {
25628 iconv_t cd = iconv_open("","");
25629        iconv(cd,NULL,NULL,NULL,NULL);
25630        iconv_close(cd);
25631   ;
25632   return 0;
25633 }
25634 _ACEOF
25635 rm -f conftest.$ac_objext conftest$ac_exeext
25636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25637   (eval $ac_link) 2>conftest.er1
25638   ac_status=$?
25639   grep -v '^ *+' conftest.er1 >conftest.err
25640   rm -f conftest.er1
25641   cat conftest.err >&5
25642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643   (exit $ac_status); } &&
25644          { ac_try='test -z "$ac_c_werror_flag"
25645                          || test ! -s conftest.err'
25646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647   (eval $ac_try) 2>&5
25648   ac_status=$?
25649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650   (exit $ac_status); }; } &&
25651          { ac_try='test -s conftest$ac_exeext'
25652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25653   (eval $ac_try) 2>&5
25654   ac_status=$?
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); }; }; then
25657   am_cv_func_iconv=yes
25658 else
25659   echo "$as_me: failed program was:" >&5
25660 sed 's/^/| /' conftest.$ac_ext >&5
25661
25662 fi
25663 rm -f conftest.err conftest.$ac_objext \
25664       conftest$ac_exeext conftest.$ac_ext
25665     if test "$am_cv_func_iconv" != yes; then
25666       am_save_LIBS="$LIBS"
25667       LIBS="$LIBS -liconv"
25668       cat >conftest.$ac_ext <<_ACEOF
25669 /* confdefs.h.  */
25670 _ACEOF
25671 cat confdefs.h >>conftest.$ac_ext
25672 cat >>conftest.$ac_ext <<_ACEOF
25673 /* end confdefs.h.  */
25674 #include <stdlib.h>
25675 #include <iconv.h>
25676 int
25677 main ()
25678 {
25679 iconv_t cd = iconv_open("","");
25680          iconv(cd,NULL,NULL,NULL,NULL);
25681          iconv_close(cd);
25682   ;
25683   return 0;
25684 }
25685 _ACEOF
25686 rm -f conftest.$ac_objext conftest$ac_exeext
25687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25688   (eval $ac_link) 2>conftest.er1
25689   ac_status=$?
25690   grep -v '^ *+' conftest.er1 >conftest.err
25691   rm -f conftest.er1
25692   cat conftest.err >&5
25693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694   (exit $ac_status); } &&
25695          { ac_try='test -z "$ac_c_werror_flag"
25696                          || test ! -s conftest.err'
25697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698   (eval $ac_try) 2>&5
25699   ac_status=$?
25700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701   (exit $ac_status); }; } &&
25702          { ac_try='test -s conftest$ac_exeext'
25703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25704   (eval $ac_try) 2>&5
25705   ac_status=$?
25706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707   (exit $ac_status); }; }; then
25708   am_cv_lib_iconv=yes
25709         am_cv_func_iconv=yes
25710 else
25711   echo "$as_me: failed program was:" >&5
25712 sed 's/^/| /' conftest.$ac_ext >&5
25713
25714 fi
25715 rm -f conftest.err conftest.$ac_objext \
25716       conftest$ac_exeext conftest.$ac_ext
25717       LIBS="$am_save_LIBS"
25718     fi
25719
25720 fi
25721 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25722 echo "${ECHO_T}$am_cv_func_iconv" >&6
25723   if test "$am_cv_func_iconv" = yes; then
25724
25725 cat >>confdefs.h <<\_ACEOF
25726 #define HAVE_ICONV 1
25727 _ACEOF
25728
25729     echo "$as_me:$LINENO: checking for iconv declaration" >&5
25730 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25731     if test "${am_cv_proto_iconv+set}" = set; then
25732   echo $ECHO_N "(cached) $ECHO_C" >&6
25733 else
25734
25735       cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h.  */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h.  */
25741
25742 #include <stdlib.h>
25743 #include <iconv.h>
25744 extern
25745 #ifdef __cplusplus
25746 "C"
25747 #endif
25748 #if defined(__STDC__) || defined(__cplusplus)
25749 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25750 #else
25751 size_t iconv();
25752 #endif
25753
25754 int
25755 main ()
25756 {
25757
25758   ;
25759   return 0;
25760 }
25761 _ACEOF
25762 rm -f conftest.$ac_objext
25763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25764   (eval $ac_compile) 2>conftest.er1
25765   ac_status=$?
25766   grep -v '^ *+' conftest.er1 >conftest.err
25767   rm -f conftest.er1
25768   cat conftest.err >&5
25769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770   (exit $ac_status); } &&
25771          { ac_try='test -z "$ac_c_werror_flag"
25772                          || test ! -s conftest.err'
25773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774   (eval $ac_try) 2>&5
25775   ac_status=$?
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); }; } &&
25778          { ac_try='test -s conftest.$ac_objext'
25779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780   (eval $ac_try) 2>&5
25781   ac_status=$?
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); }; }; then
25784   am_cv_proto_iconv_arg1=""
25785 else
25786   echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25788
25789 am_cv_proto_iconv_arg1="const"
25790 fi
25791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25792       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);"
25793 fi
25794
25795     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25796     echo "$as_me:$LINENO: result: ${ac_t:-
25797          }$am_cv_proto_iconv" >&5
25798 echo "${ECHO_T}${ac_t:-
25799          }$am_cv_proto_iconv" >&6
25800
25801 cat >>confdefs.h <<_ACEOF
25802 #define ICONV_CONST $am_cv_proto_iconv_arg1
25803 _ACEOF
25804
25805   fi
25806   LIBICONV=
25807   if test "$am_cv_lib_iconv" = yes; then
25808     LIBICONV="-liconv"
25809   fi
25810
25811
25812
25813                               ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
25814           ac_config_commands="$ac_config_commands default"
25815 cat >confcache <<\_ACEOF
25816 # This file is a shell script that caches the results of configure
25817 # tests run on this system so they can be shared between configure
25818 # scripts and configure runs, see configure's option --config-cache.
25819 # It is not useful on other systems.  If it contains results you don't
25820 # want to keep, you may remove or edit it.
25821 #
25822 # config.status only pays attention to the cache file if you give it
25823 # the --recheck option to rerun configure.
25824 #
25825 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25826 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25827 # following values.
25828
25829 _ACEOF
25830
25831 # The following way of writing the cache mishandles newlines in values,
25832 # but we know of no workaround that is simple, portable, and efficient.
25833 # So, don't put newlines in cache variables' values.
25834 # Ultrix sh set writes to stderr and can't be redirected directly,
25835 # and sets the high bit in the cache file unless we assign to the vars.
25836 {
25837   (set) 2>&1 |
25838     case `(ac_space=' '; set | grep ac_space) 2>&1` in
25839     *ac_space=\ *)
25840       # `set' does not quote correctly, so add quotes (double-quote
25841       # substitution turns \\\\ into \\, and sed turns \\ into \).
25842       sed -n \
25843         "s/'/'\\\\''/g;
25844           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25845       ;;
25846     *)
25847       # `set' quotes correctly as required by POSIX, so do not add quotes.
25848       sed -n \
25849         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25850       ;;
25851     esac;
25852 } |
25853   sed '
25854      t clear
25855      : clear
25856      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25857      t end
25858      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25859      : end' >>confcache
25860 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25861   if test -w $cache_file; then
25862     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25863     cat confcache >$cache_file
25864   else
25865     echo "not updating unwritable cache $cache_file"
25866   fi
25867 fi
25868 rm -f confcache
25869
25870 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25871 # Let make expand exec_prefix.
25872 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25873
25874 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25875 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25876 # trailing colons and then remove the whole line if VPATH becomes empty
25877 # (actually we leave an empty line to preserve line numbers).
25878 if test "x$srcdir" = x.; then
25879   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25880 s/:*\$(srcdir):*/:/;
25881 s/:*\${srcdir}:*/:/;
25882 s/:*@srcdir@:*/:/;
25883 s/^\([^=]*=[     ]*\):*/\1/;
25884 s/:*$//;
25885 s/^[^=]*=[       ]*$//;
25886 }'
25887 fi
25888
25889 DEFS=-DHAVE_CONFIG_H
25890
25891 ac_libobjs=
25892 ac_ltlibobjs=
25893 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25894   # 1. Remove the extension, and $U if already installed.
25895   ac_i=`echo "$ac_i" |
25896          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25897   # 2. Add them.
25898   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25899   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25900 done
25901 LIBOBJS=$ac_libobjs
25902
25903 LTLIBOBJS=$ac_ltlibobjs
25904
25905
25906 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25907   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25908 Usually this means the macro was only invoked conditionally." >&5
25909 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25910 Usually this means the macro was only invoked conditionally." >&2;}
25911    { (exit 1); exit 1; }; }
25912 fi
25913 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25914   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
25915 Usually this means the macro was only invoked conditionally." >&5
25916 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
25917 Usually this means the macro was only invoked conditionally." >&2;}
25918    { (exit 1); exit 1; }; }
25919 fi
25920
25921     gl_libobjs=
25922     gl_ltlibobjs=
25923     if test -n "$gl_LIBOBJS"; then
25924       # Remove the extension.
25925       sed_drop_objext='s/\.o$//;s/\.obj$//'
25926       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
25927         gl_libobjs="$gl_libobjs $i.$ac_objext"
25928         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25929       done
25930     fi
25931     gl_LIBOBJS=$gl_libobjs
25932
25933     gl_LTLIBOBJS=$gl_ltlibobjs
25934
25935
25936
25937     gltests_libobjs=
25938     gltests_ltlibobjs=
25939     if test -n "$gltests_LIBOBJS"; then
25940       # Remove the extension.
25941       sed_drop_objext='s/\.o$//;s/\.obj$//'
25942       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
25943         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25944         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25945       done
25946     fi
25947     gltests_LIBOBJS=$gltests_libobjs
25948
25949     gltests_LTLIBOBJS=$gltests_ltlibobjs
25950
25951
25952 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25953   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25954 Usually this means the macro was only invoked conditionally." >&5
25955 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25956 Usually this means the macro was only invoked conditionally." >&2;}
25957    { (exit 1); exit 1; }; }
25958 fi
25959 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25960   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25961 Usually this means the macro was only invoked conditionally." >&5
25962 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25963 Usually this means the macro was only invoked conditionally." >&2;}
25964    { (exit 1); exit 1; }; }
25965 fi
25966
25967 : ${CONFIG_STATUS=./config.status}
25968 ac_clean_files_save=$ac_clean_files
25969 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25970 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25971 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25972 cat >$CONFIG_STATUS <<_ACEOF
25973 #! $SHELL
25974 # Generated by $as_me.
25975 # Run this file to recreate the current configuration.
25976 # Compiler output produced by configure, useful for debugging
25977 # configure, is in config.log if it exists.
25978
25979 debug=false
25980 ac_cs_recheck=false
25981 ac_cs_silent=false
25982 SHELL=\${CONFIG_SHELL-$SHELL}
25983 _ACEOF
25984
25985 cat >>$CONFIG_STATUS <<\_ACEOF
25986 ## --------------------- ##
25987 ## M4sh Initialization.  ##
25988 ## --------------------- ##
25989
25990 # Be Bourne compatible
25991 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25992   emulate sh
25993   NULLCMD=:
25994   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25995   # is contrary to our usage.  Disable this feature.
25996   alias -g '${1+"$@"}'='"$@"'
25997 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25998   set -o posix
25999 fi
26000 DUALCASE=1; export DUALCASE # for MKS sh
26001
26002 # Support unset when possible.
26003 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26004   as_unset=unset
26005 else
26006   as_unset=false
26007 fi
26008
26009
26010 # Work around bugs in pre-3.0 UWIN ksh.
26011 $as_unset ENV MAIL MAILPATH
26012 PS1='$ '
26013 PS2='> '
26014 PS4='+ '
26015
26016 # NLS nuisances.
26017 for as_var in \
26018   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26019   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26020   LC_TELEPHONE LC_TIME
26021 do
26022   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26023     eval $as_var=C; export $as_var
26024   else
26025     $as_unset $as_var
26026   fi
26027 done
26028
26029 # Required to use basename.
26030 if expr a : '\(a\)' >/dev/null 2>&1; then
26031   as_expr=expr
26032 else
26033   as_expr=false
26034 fi
26035
26036 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26037   as_basename=basename
26038 else
26039   as_basename=false
26040 fi
26041
26042
26043 # Name of the executable.
26044 as_me=`$as_basename "$0" ||
26045 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26046          X"$0" : 'X\(//\)$' \| \
26047          X"$0" : 'X\(/\)$' \| \
26048          .     : '\(.\)' 2>/dev/null ||
26049 echo X/"$0" |
26050     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26051           /^X\/\(\/\/\)$/{ s//\1/; q; }
26052           /^X\/\(\/\).*/{ s//\1/; q; }
26053           s/.*/./; q'`
26054
26055
26056 # PATH needs CR, and LINENO needs CR and PATH.
26057 # Avoid depending upon Character Ranges.
26058 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26059 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26060 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26061 as_cr_digits='0123456789'
26062 as_cr_alnum=$as_cr_Letters$as_cr_digits
26063
26064 # The user is always right.
26065 if test "${PATH_SEPARATOR+set}" != set; then
26066   echo "#! /bin/sh" >conf$$.sh
26067   echo  "exit 0"   >>conf$$.sh
26068   chmod +x conf$$.sh
26069   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26070     PATH_SEPARATOR=';'
26071   else
26072     PATH_SEPARATOR=:
26073   fi
26074   rm -f conf$$.sh
26075 fi
26076
26077
26078   as_lineno_1=$LINENO
26079   as_lineno_2=$LINENO
26080   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26081   test "x$as_lineno_1" != "x$as_lineno_2" &&
26082   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26083   # Find who we are.  Look in the path if we contain no path at all
26084   # relative or not.
26085   case $0 in
26086     *[\\/]* ) as_myself=$0 ;;
26087     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26088 for as_dir in $PATH
26089 do
26090   IFS=$as_save_IFS
26091   test -z "$as_dir" && as_dir=.
26092   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26093 done
26094
26095        ;;
26096   esac
26097   # We did not find ourselves, most probably we were run as `sh COMMAND'
26098   # in which case we are not to be found in the path.
26099   if test "x$as_myself" = x; then
26100     as_myself=$0
26101   fi
26102   if test ! -f "$as_myself"; then
26103     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26104 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26105    { (exit 1); exit 1; }; }
26106   fi
26107   case $CONFIG_SHELL in
26108   '')
26109     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26110 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26111 do
26112   IFS=$as_save_IFS
26113   test -z "$as_dir" && as_dir=.
26114   for as_base in sh bash ksh sh5; do
26115          case $as_dir in
26116          /*)
26117            if ("$as_dir/$as_base" -c '
26118   as_lineno_1=$LINENO
26119   as_lineno_2=$LINENO
26120   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26121   test "x$as_lineno_1" != "x$as_lineno_2" &&
26122   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26123              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26124              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26125              CONFIG_SHELL=$as_dir/$as_base
26126              export CONFIG_SHELL
26127              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26128            fi;;
26129          esac
26130        done
26131 done
26132 ;;
26133   esac
26134
26135   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26136   # uniformly replaced by the line number.  The first 'sed' inserts a
26137   # line-number line before each line; the second 'sed' does the real
26138   # work.  The second script uses 'N' to pair each line-number line
26139   # with the numbered line, and appends trailing '-' during
26140   # substitution so that $LINENO is not a special case at line end.
26141   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26142   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26143   sed '=' <$as_myself |
26144     sed '
26145       N
26146       s,$,-,
26147       : loop
26148       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26149       t loop
26150       s,-$,,
26151       s,^['$as_cr_digits']*\n,,
26152     ' >$as_me.lineno &&
26153   chmod +x $as_me.lineno ||
26154     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26155 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26156    { (exit 1); exit 1; }; }
26157
26158   # Don't try to exec as it changes $[0], causing all sort of problems
26159   # (the dirname of $[0] is not the place where we might find the
26160   # original and so on.  Autoconf is especially sensible to this).
26161   . ./$as_me.lineno
26162   # Exit status is that of the last command.
26163   exit
26164 }
26165
26166
26167 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26168   *c*,-n*) ECHO_N= ECHO_C='
26169 ' ECHO_T='      ' ;;
26170   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26171   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26172 esac
26173
26174 if expr a : '\(a\)' >/dev/null 2>&1; then
26175   as_expr=expr
26176 else
26177   as_expr=false
26178 fi
26179
26180 rm -f conf$$ conf$$.exe conf$$.file
26181 echo >conf$$.file
26182 if ln -s conf$$.file conf$$ 2>/dev/null; then
26183   # We could just check for DJGPP; but this test a) works b) is more generic
26184   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26185   if test -f conf$$.exe; then
26186     # Don't use ln at all; we don't have any links
26187     as_ln_s='cp -p'
26188   else
26189     as_ln_s='ln -s'
26190   fi
26191 elif ln conf$$.file conf$$ 2>/dev/null; then
26192   as_ln_s=ln
26193 else
26194   as_ln_s='cp -p'
26195 fi
26196 rm -f conf$$ conf$$.exe conf$$.file
26197
26198 if mkdir -p . 2>/dev/null; then
26199   as_mkdir_p=:
26200 else
26201   test -d ./-p && rmdir ./-p
26202   as_mkdir_p=false
26203 fi
26204
26205 as_executable_p="test -f"
26206
26207 # Sed expression to map a string onto a valid CPP name.
26208 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26209
26210 # Sed expression to map a string onto a valid variable name.
26211 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26212
26213
26214 # IFS
26215 # We need space, tab and new line, in precisely that order.
26216 as_nl='
26217 '
26218 IFS="   $as_nl"
26219
26220 # CDPATH.
26221 $as_unset CDPATH
26222
26223 exec 6>&1
26224
26225 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26226 # report actual input values of CONFIG_FILES etc. instead of their
26227 # values after options handling.  Logging --version etc. is OK.
26228 exec 5>>config.log
26229 {
26230   echo
26231   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26232 ## Running $as_me. ##
26233 _ASBOX
26234 } >&5
26235 cat >&5 <<_CSEOF
26236
26237 This file was extended by $as_me, which was
26238 generated by GNU Autoconf 2.59.  Invocation command line was
26239
26240   CONFIG_FILES    = $CONFIG_FILES
26241   CONFIG_HEADERS  = $CONFIG_HEADERS
26242   CONFIG_LINKS    = $CONFIG_LINKS
26243   CONFIG_COMMANDS = $CONFIG_COMMANDS
26244   $ $0 $@
26245
26246 _CSEOF
26247 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26248 echo >&5
26249 _ACEOF
26250
26251 # Files that config.status was made for.
26252 if test -n "$ac_config_files"; then
26253   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26254 fi
26255
26256 if test -n "$ac_config_headers"; then
26257   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26258 fi
26259
26260 if test -n "$ac_config_links"; then
26261   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26262 fi
26263
26264 if test -n "$ac_config_commands"; then
26265   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26266 fi
26267
26268 cat >>$CONFIG_STATUS <<\_ACEOF
26269
26270 ac_cs_usage="\
26271 \`$as_me' instantiates files from templates according to the
26272 current configuration.
26273
26274 Usage: $0 [OPTIONS] [FILE]...
26275
26276   -h, --help       print this help, then exit
26277   -V, --version    print version number, then exit
26278   -q, --quiet      do not print progress messages
26279   -d, --debug      don't remove temporary files
26280       --recheck    update $as_me by reconfiguring in the same conditions
26281   --file=FILE[:TEMPLATE]
26282                    instantiate the configuration file FILE
26283   --header=FILE[:TEMPLATE]
26284                    instantiate the configuration header FILE
26285
26286 Configuration files:
26287 $config_files
26288
26289 Configuration headers:
26290 $config_headers
26291
26292 Configuration links:
26293 $config_links
26294
26295 Configuration commands:
26296 $config_commands
26297
26298 Report bugs to <bug-autoconf@gnu.org>."
26299 _ACEOF
26300
26301 cat >>$CONFIG_STATUS <<_ACEOF
26302 ac_cs_version="\\
26303 config.status
26304 configured by $0, generated by GNU Autoconf 2.59,
26305   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26306
26307 Copyright (C) 2003 Free Software Foundation, Inc.
26308 This config.status script is free software; the Free Software Foundation
26309 gives unlimited permission to copy, distribute and modify it."
26310 srcdir=$srcdir
26311 INSTALL="$INSTALL"
26312 _ACEOF
26313
26314 cat >>$CONFIG_STATUS <<\_ACEOF
26315 # If no file are specified by the user, then we need to provide default
26316 # value.  By we need to know if files were specified by the user.
26317 ac_need_defaults=:
26318 while test $# != 0
26319 do
26320   case $1 in
26321   --*=*)
26322     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26323     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26324     ac_shift=:
26325     ;;
26326   -*)
26327     ac_option=$1
26328     ac_optarg=$2
26329     ac_shift=shift
26330     ;;
26331   *) # This is not an option, so the user has probably given explicit
26332      # arguments.
26333      ac_option=$1
26334      ac_need_defaults=false;;
26335   esac
26336
26337   case $ac_option in
26338   # Handling of the options.
26339 _ACEOF
26340 cat >>$CONFIG_STATUS <<\_ACEOF
26341   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26342     ac_cs_recheck=: ;;
26343   --version | --vers* | -V )
26344     echo "$ac_cs_version"; exit 0 ;;
26345   --he | --h)
26346     # Conflict between --help and --header
26347     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26348 Try \`$0 --help' for more information." >&5
26349 echo "$as_me: error: ambiguous option: $1
26350 Try \`$0 --help' for more information." >&2;}
26351    { (exit 1); exit 1; }; };;
26352   --help | --hel | -h )
26353     echo "$ac_cs_usage"; exit 0 ;;
26354   --debug | --d* | -d )
26355     debug=: ;;
26356   --file | --fil | --fi | --f )
26357     $ac_shift
26358     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26359     ac_need_defaults=false;;
26360   --header | --heade | --head | --hea )
26361     $ac_shift
26362     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26363     ac_need_defaults=false;;
26364   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26365   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26366     ac_cs_silent=: ;;
26367
26368   # This is an error.
26369   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26370 Try \`$0 --help' for more information." >&5
26371 echo "$as_me: error: unrecognized option: $1
26372 Try \`$0 --help' for more information." >&2;}
26373    { (exit 1); exit 1; }; } ;;
26374
26375   *) ac_config_targets="$ac_config_targets $1" ;;
26376
26377   esac
26378   shift
26379 done
26380
26381 ac_configure_extra_args=
26382
26383 if $ac_cs_silent; then
26384   exec 6>/dev/null
26385   ac_configure_extra_args="$ac_configure_extra_args --silent"
26386 fi
26387
26388 _ACEOF
26389 cat >>$CONFIG_STATUS <<_ACEOF
26390 if \$ac_cs_recheck; then
26391   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26392   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26393 fi
26394
26395 _ACEOF
26396
26397 cat >>$CONFIG_STATUS <<_ACEOF
26398 #
26399 # INIT-COMMANDS section.
26400 #
26401
26402 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26403
26404 gdb_host_cpu=$gdb_host_cpu
26405 nativefile=$nativefile
26406
26407
26408 _ACEOF
26409
26410
26411
26412 cat >>$CONFIG_STATUS <<\_ACEOF
26413 for ac_config_target in $ac_config_targets
26414 do
26415   case "$ac_config_target" in
26416   # Handling of arguments.
26417   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26418   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
26419   "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
26420   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
26421   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26422   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26423   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26424   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26425 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26426    { (exit 1); exit 1; }; };;
26427   esac
26428 done
26429
26430 # If the user did not use the arguments to specify the items to instantiate,
26431 # then the envvar interface is used.  Set only those that are not.
26432 # We use the long form for the default assignment because of an extremely
26433 # bizarre bug on SunOS 4.1.3.
26434 if $ac_need_defaults; then
26435   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26436   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26437   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26438   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26439 fi
26440
26441 # Have a temporary directory for convenience.  Make it in the build tree
26442 # simply because there is no reason to put it here, and in addition,
26443 # creating and moving files from /tmp can sometimes cause problems.
26444 # Create a temporary directory, and hook for its removal unless debugging.
26445 $debug ||
26446 {
26447   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26448   trap '{ (exit 1); exit 1; }' 1 2 13 15
26449 }
26450
26451 # Create a (secure) tmp directory for tmp files.
26452
26453 {
26454   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26455   test -n "$tmp" && test -d "$tmp"
26456 }  ||
26457 {
26458   tmp=./confstat$$-$RANDOM
26459   (umask 077 && mkdir $tmp)
26460 } ||
26461 {
26462    echo "$me: cannot create a temporary directory in ." >&2
26463    { (exit 1); exit 1; }
26464 }
26465
26466 _ACEOF
26467
26468 cat >>$CONFIG_STATUS <<_ACEOF
26469
26470 #
26471 # CONFIG_FILES section.
26472 #
26473
26474 # No need to generate the scripts if there are no CONFIG_FILES.
26475 # This happens for instance when ./config.status config.h
26476 if test -n "\$CONFIG_FILES"; then
26477   # Protect against being on the right side of a sed subst in config.status.
26478   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26479    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26480 s,@SHELL@,$SHELL,;t t
26481 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26482 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26483 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26484 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26485 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26486 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26487 s,@exec_prefix@,$exec_prefix,;t t
26488 s,@prefix@,$prefix,;t t
26489 s,@program_transform_name@,$program_transform_name,;t t
26490 s,@bindir@,$bindir,;t t
26491 s,@sbindir@,$sbindir,;t t
26492 s,@libexecdir@,$libexecdir,;t t
26493 s,@datadir@,$datadir,;t t
26494 s,@sysconfdir@,$sysconfdir,;t t
26495 s,@sharedstatedir@,$sharedstatedir,;t t
26496 s,@localstatedir@,$localstatedir,;t t
26497 s,@libdir@,$libdir,;t t
26498 s,@includedir@,$includedir,;t t
26499 s,@oldincludedir@,$oldincludedir,;t t
26500 s,@infodir@,$infodir,;t t
26501 s,@mandir@,$mandir,;t t
26502 s,@build_alias@,$build_alias,;t t
26503 s,@host_alias@,$host_alias,;t t
26504 s,@target_alias@,$target_alias,;t t
26505 s,@DEFS@,$DEFS,;t t
26506 s,@ECHO_C@,$ECHO_C,;t t
26507 s,@ECHO_N@,$ECHO_N,;t t
26508 s,@ECHO_T@,$ECHO_T,;t t
26509 s,@LIBS@,$LIBS,;t t
26510 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26511 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26512 s,@MAINT@,$MAINT,;t t
26513 s,@CC@,$CC,;t t
26514 s,@CFLAGS@,$CFLAGS,;t t
26515 s,@LDFLAGS@,$LDFLAGS,;t t
26516 s,@CPPFLAGS@,$CPPFLAGS,;t t
26517 s,@ac_ct_CC@,$ac_ct_CC,;t t
26518 s,@EXEEXT@,$EXEEXT,;t t
26519 s,@OBJEXT@,$OBJEXT,;t t
26520 s,@CPP@,$CPP,;t t
26521 s,@EGREP@,$EGREP,;t t
26522 s,@RANLIB@,$RANLIB,;t t
26523 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26524 s,@build@,$build,;t t
26525 s,@build_cpu@,$build_cpu,;t t
26526 s,@build_vendor@,$build_vendor,;t t
26527 s,@build_os@,$build_os,;t t
26528 s,@host@,$host,;t t
26529 s,@host_cpu@,$host_cpu,;t t
26530 s,@host_vendor@,$host_vendor,;t t
26531 s,@host_os@,$host_os,;t t
26532 s,@target@,$target,;t t
26533 s,@target_cpu@,$target_cpu,;t t
26534 s,@target_vendor@,$target_vendor,;t t
26535 s,@target_os@,$target_os,;t t
26536 s,@USE_NLS@,$USE_NLS,;t t
26537 s,@LIBINTL@,$LIBINTL,;t t
26538 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26539 s,@INCINTL@,$INCINTL,;t t
26540 s,@XGETTEXT@,$XGETTEXT,;t t
26541 s,@GMSGFMT@,$GMSGFMT,;t t
26542 s,@POSUB@,$POSUB,;t t
26543 s,@CATALOGS@,$CATALOGS,;t t
26544 s,@DATADIRNAME@,$DATADIRNAME,;t t
26545 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26546 s,@GENCAT@,$GENCAT,;t t
26547 s,@CATOBJEXT@,$CATOBJEXT,;t t
26548 s,@localedir@,$localedir,;t t
26549 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26550 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26551 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26552 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26553 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26554 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26555 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26556 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26557 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26558 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26559 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26560 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26561 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26562 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26563 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26564 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26565 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26566 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26567 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26568 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26569 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26570 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26571 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26572 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26573 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26574 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26575 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26576 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26577 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26578 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26579 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26580 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26581 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26582 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26583 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26584 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26585 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26586 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26587 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26588 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26589 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26590 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26591 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26592 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26593 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26594 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26595 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26596 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26597 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26598 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26599 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26600 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26601 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26602 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26603 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26604 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26605 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26606 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26607 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26608 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26609 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26610 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26611 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26612 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26613 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26614 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26615 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26616 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26617 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26618 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26619 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26620 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26621 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26622 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26623 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26624 s,@STDINT_H@,$STDINT_H,;t t
26625 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26626 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26627 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26628 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26629 s,@WCHAR_H@,$WCHAR_H,;t t
26630 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26631 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26632 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26633 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
26634 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
26635 s,@PACKAGE@,$PACKAGE,;t t
26636 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26637 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26638 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26639 s,@CYGPATH_W@,$CYGPATH_W,;t t
26640 s,@PYTHON2_4@,$PYTHON2_4,;t t
26641 s,@ACLOCAL@,$ACLOCAL,;t t
26642 s,@AUTOCONF@,$AUTOCONF,;t t
26643 s,@AUTOMAKE@,$AUTOMAKE,;t t
26644 s,@AUTOHEADER@,$AUTOHEADER,;t t
26645 s,@MAKEINFO@,$MAKEINFO,;t t
26646 s,@install_sh@,$install_sh,;t t
26647 s,@STRIP@,$STRIP,;t t
26648 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26649 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26650 s,@mkdir_p@,$mkdir_p,;t t
26651 s,@AWK@,$AWK,;t t
26652 s,@SET_MAKE@,$SET_MAKE,;t t
26653 s,@am__leading_dot@,$am__leading_dot,;t t
26654 s,@AMTAR@,$AMTAR,;t t
26655 s,@am__tar@,$am__tar,;t t
26656 s,@am__untar@,$am__untar,;t t
26657 s,@DEPDIR@,$DEPDIR,;t t
26658 s,@am__include@,$am__include,;t t
26659 s,@am__quote@,$am__quote,;t t
26660 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26661 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26662 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26663 s,@CCDEPMODE@,$CCDEPMODE,;t t
26664 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26665 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26666 s,@subdirs@,$subdirs,;t t
26667 s,@TARGET_OBS@,$TARGET_OBS,;t t
26668 s,@PKGVERSION@,$PKGVERSION,;t t
26669 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26670 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
26671 s,@LN_S@,$LN_S,;t t
26672 s,@YACC@,$YACC,;t t
26673 s,@AR@,$AR,;t t
26674 s,@ac_ct_AR@,$ac_ct_AR,;t t
26675 s,@DLLTOOL@,$DLLTOOL,;t t
26676 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26677 s,@WINDRES@,$WINDRES,;t t
26678 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26679 s,@MIG@,$MIG,;t t
26680 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
26681 s,@READLINE@,$READLINE,;t t
26682 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26683 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
26684 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26685 s,@LIBEXPAT@,$LIBEXPAT,;t t
26686 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
26687 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
26688 s,@ALLOCA@,$ALLOCA,;t t
26689 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26690 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26691 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26692 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26693 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26694 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26695 s,@WIN32LIBS@,$WIN32LIBS,;t t
26696 s,@LIBGUI@,$LIBGUI,;t t
26697 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26698 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26699 s,@TCL_VERSION@,$TCL_VERSION,;t t
26700 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
26701 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
26702 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
26703 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
26704 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
26705 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26706 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
26707 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
26708 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
26709 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
26710 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
26711 s,@TCL_DEPS@,$TCL_DEPS,;t t
26712 s,@TK_VERSION@,$TK_VERSION,;t t
26713 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
26714 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
26715 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
26716 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
26717 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26718 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
26719 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
26720 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
26721 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
26722 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
26723 s,@TK_DEPS@,$TK_DEPS,;t t
26724 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26725 s,@X_CFLAGS@,$X_CFLAGS,;t t
26726 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26727 s,@X_LIBS@,$X_LIBS,;t t
26728 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26729 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26730 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
26731 s,@SIM@,$SIM,;t t
26732 s,@SIM_OBS@,$SIM_OBS,;t t
26733 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26734 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26735 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26736 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26737 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26738 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26739 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26740 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26741 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26742 s,@target_subdir@,$target_subdir,;t t
26743 s,@frags@,$frags,;t t
26744 s,@nm_h@,$nm_h,;t t
26745 s,@LIBICONV@,$LIBICONV,;t t
26746 s,@LIBOBJS@,$LIBOBJS,;t t
26747 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26748 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26749 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26750 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26751 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
26752 /@host_makefile_frag@/r $host_makefile_frag
26753 s,@host_makefile_frag@,,;t t
26754 CEOF
26755
26756 _ACEOF
26757
26758   cat >>$CONFIG_STATUS <<\_ACEOF
26759   # Split the substitutions into bite-sized pieces for seds with
26760   # small command number limits, like on Digital OSF/1 and HP-UX.
26761   ac_max_sed_lines=48
26762   ac_sed_frag=1 # Number of current file.
26763   ac_beg=1 # First line for current file.
26764   ac_end=$ac_max_sed_lines # Line after last line for current file.
26765   ac_more_lines=:
26766   ac_sed_cmds=
26767   while $ac_more_lines; do
26768     if test $ac_beg -gt 1; then
26769       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26770     else
26771       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26772     fi
26773     if test ! -s $tmp/subs.frag; then
26774       ac_more_lines=false
26775     else
26776       # The purpose of the label and of the branching condition is to
26777       # speed up the sed processing (if there are no `@' at all, there
26778       # is no need to browse any of the substitutions).
26779       # These are the two extra sed commands mentioned above.
26780       (echo ':t
26781   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26782       if test -z "$ac_sed_cmds"; then
26783         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26784       else
26785         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26786       fi
26787       ac_sed_frag=`expr $ac_sed_frag + 1`
26788       ac_beg=$ac_end
26789       ac_end=`expr $ac_end + $ac_max_sed_lines`
26790     fi
26791   done
26792   if test -z "$ac_sed_cmds"; then
26793     ac_sed_cmds=cat
26794   fi
26795 fi # test -n "$CONFIG_FILES"
26796
26797 _ACEOF
26798 cat >>$CONFIG_STATUS <<\_ACEOF
26799 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26800   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26801   case $ac_file in
26802   - | *:- | *:-:* ) # input from stdin
26803         cat >$tmp/stdin
26804         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26805         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26806   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26807         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26808   * )   ac_file_in=$ac_file.in ;;
26809   esac
26810
26811   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26812   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26814          X"$ac_file" : 'X\(//\)[^/]' \| \
26815          X"$ac_file" : 'X\(//\)$' \| \
26816          X"$ac_file" : 'X\(/\)' \| \
26817          .     : '\(.\)' 2>/dev/null ||
26818 echo X"$ac_file" |
26819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26820           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26821           /^X\(\/\/\)$/{ s//\1/; q; }
26822           /^X\(\/\).*/{ s//\1/; q; }
26823           s/.*/./; q'`
26824   { if $as_mkdir_p; then
26825     mkdir -p "$ac_dir"
26826   else
26827     as_dir="$ac_dir"
26828     as_dirs=
26829     while test ! -d "$as_dir"; do
26830       as_dirs="$as_dir $as_dirs"
26831       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26833          X"$as_dir" : 'X\(//\)[^/]' \| \
26834          X"$as_dir" : 'X\(//\)$' \| \
26835          X"$as_dir" : 'X\(/\)' \| \
26836          .     : '\(.\)' 2>/dev/null ||
26837 echo X"$as_dir" |
26838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26839           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26840           /^X\(\/\/\)$/{ s//\1/; q; }
26841           /^X\(\/\).*/{ s//\1/; q; }
26842           s/.*/./; q'`
26843     done
26844     test ! -n "$as_dirs" || mkdir $as_dirs
26845   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26847    { (exit 1); exit 1; }; }; }
26848
26849   ac_builddir=.
26850
26851 if test "$ac_dir" != .; then
26852   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26853   # A "../" for each directory in $ac_dir_suffix.
26854   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26855 else
26856   ac_dir_suffix= ac_top_builddir=
26857 fi
26858
26859 case $srcdir in
26860   .)  # No --srcdir option.  We are building in place.
26861     ac_srcdir=.
26862     if test -z "$ac_top_builddir"; then
26863        ac_top_srcdir=.
26864     else
26865        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26866     fi ;;
26867   [\\/]* | ?:[\\/]* )  # Absolute path.
26868     ac_srcdir=$srcdir$ac_dir_suffix;
26869     ac_top_srcdir=$srcdir ;;
26870   *) # Relative path.
26871     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26872     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26873 esac
26874
26875 # Do not use `cd foo && pwd` to compute absolute paths, because
26876 # the directories may not exist.
26877 case `pwd` in
26878 .) ac_abs_builddir="$ac_dir";;
26879 *)
26880   case "$ac_dir" in
26881   .) ac_abs_builddir=`pwd`;;
26882   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26883   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26884   esac;;
26885 esac
26886 case $ac_abs_builddir in
26887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26888 *)
26889   case ${ac_top_builddir}. in
26890   .) ac_abs_top_builddir=$ac_abs_builddir;;
26891   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26892   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26893   esac;;
26894 esac
26895 case $ac_abs_builddir in
26896 .) ac_abs_srcdir=$ac_srcdir;;
26897 *)
26898   case $ac_srcdir in
26899   .) ac_abs_srcdir=$ac_abs_builddir;;
26900   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26901   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26902   esac;;
26903 esac
26904 case $ac_abs_builddir in
26905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26906 *)
26907   case $ac_top_srcdir in
26908   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26909   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26910   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26911   esac;;
26912 esac
26913
26914
26915   case $INSTALL in
26916   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26917   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26918   esac
26919
26920   if test x"$ac_file" != x-; then
26921     { echo "$as_me:$LINENO: creating $ac_file" >&5
26922 echo "$as_me: creating $ac_file" >&6;}
26923     rm -f "$ac_file"
26924   fi
26925   # Let's still pretend it is `configure' which instantiates (i.e., don't
26926   # use $as_me), people would be surprised to read:
26927   #    /* config.h.  Generated by config.status.  */
26928   if test x"$ac_file" = x-; then
26929     configure_input=
26930   else
26931     configure_input="$ac_file.  "
26932   fi
26933   configure_input=$configure_input"Generated from `echo $ac_file_in |
26934                                      sed 's,.*/,,'` by configure."
26935
26936   # First look for the input files in the build tree, otherwise in the
26937   # src tree.
26938   ac_file_inputs=`IFS=:
26939     for f in $ac_file_in; do
26940       case $f in
26941       -) echo $tmp/stdin ;;
26942       [\\/$]*)
26943          # Absolute (can't be DOS-style, as IFS=:)
26944          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26945 echo "$as_me: error: cannot find input file: $f" >&2;}
26946    { (exit 1); exit 1; }; }
26947          echo "$f";;
26948       *) # Relative
26949          if test -f "$f"; then
26950            # Build tree
26951            echo "$f"
26952          elif test -f "$srcdir/$f"; then
26953            # Source tree
26954            echo "$srcdir/$f"
26955          else
26956            # /dev/null tree
26957            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26958 echo "$as_me: error: cannot find input file: $f" >&2;}
26959    { (exit 1); exit 1; }; }
26960          fi;;
26961       esac
26962     done` || { (exit 1); exit 1; }
26963 _ACEOF
26964 cat >>$CONFIG_STATUS <<_ACEOF
26965   sed "$ac_vpsub
26966 $extrasub
26967 _ACEOF
26968 cat >>$CONFIG_STATUS <<\_ACEOF
26969 :t
26970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26971 s,@configure_input@,$configure_input,;t t
26972 s,@srcdir@,$ac_srcdir,;t t
26973 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26974 s,@top_srcdir@,$ac_top_srcdir,;t t
26975 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26976 s,@builddir@,$ac_builddir,;t t
26977 s,@abs_builddir@,$ac_abs_builddir,;t t
26978 s,@top_builddir@,$ac_top_builddir,;t t
26979 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26980 s,@INSTALL@,$ac_INSTALL,;t t
26981 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26982   rm -f $tmp/stdin
26983   if test x"$ac_file" != x-; then
26984     mv $tmp/out $ac_file
26985   else
26986     cat $tmp/out
26987     rm -f $tmp/out
26988   fi
26989
26990 done
26991 _ACEOF
26992 cat >>$CONFIG_STATUS <<\_ACEOF
26993
26994 #
26995 # CONFIG_HEADER section.
26996 #
26997
26998 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26999 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27000 #
27001 # ac_d sets the value in "#define NAME VALUE" lines.
27002 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27003 ac_dB='[         ].*$,\1#\2'
27004 ac_dC=' '
27005 ac_dD=',;t'
27006 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27007 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27008 ac_uB='$,\1#\2define\3'
27009 ac_uC=' '
27010 ac_uD=',;t'
27011
27012 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27013   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27014   case $ac_file in
27015   - | *:- | *:-:* ) # input from stdin
27016         cat >$tmp/stdin
27017         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27018         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27019   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27020         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27021   * )   ac_file_in=$ac_file.in ;;
27022   esac
27023
27024   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27025 echo "$as_me: creating $ac_file" >&6;}
27026
27027   # First look for the input files in the build tree, otherwise in the
27028   # src tree.
27029   ac_file_inputs=`IFS=:
27030     for f in $ac_file_in; do
27031       case $f in
27032       -) echo $tmp/stdin ;;
27033       [\\/$]*)
27034          # Absolute (can't be DOS-style, as IFS=:)
27035          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27036 echo "$as_me: error: cannot find input file: $f" >&2;}
27037    { (exit 1); exit 1; }; }
27038          # Do quote $f, to prevent DOS paths from being IFS'd.
27039          echo "$f";;
27040       *) # Relative
27041          if test -f "$f"; then
27042            # Build tree
27043            echo "$f"
27044          elif test -f "$srcdir/$f"; then
27045            # Source tree
27046            echo "$srcdir/$f"
27047          else
27048            # /dev/null tree
27049            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27050 echo "$as_me: error: cannot find input file: $f" >&2;}
27051    { (exit 1); exit 1; }; }
27052          fi;;
27053       esac
27054     done` || { (exit 1); exit 1; }
27055   # Remove the trailing spaces.
27056   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27057
27058 _ACEOF
27059
27060 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27061 # `conftest.undefs', that substitutes the proper values into
27062 # config.h.in to produce config.h.  The first handles `#define'
27063 # templates, and the second `#undef' templates.
27064 # And first: Protect against being on the right side of a sed subst in
27065 # config.status.  Protect against being in an unquoted here document
27066 # in config.status.
27067 rm -f conftest.defines conftest.undefs
27068 # Using a here document instead of a string reduces the quoting nightmare.
27069 # Putting comments in sed scripts is not portable.
27070 #
27071 # `end' is used to avoid that the second main sed command (meant for
27072 # 0-ary CPP macros) applies to n-ary macro definitions.
27073 # See the Autoconf documentation for `clear'.
27074 cat >confdef2sed.sed <<\_ACEOF
27075 s/[\\&,]/\\&/g
27076 s,[\\$`],\\&,g
27077 t clear
27078 : clear
27079 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27080 t end
27081 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27082 : end
27083 _ACEOF
27084 # If some macros were called several times there might be several times
27085 # the same #defines, which is useless.  Nevertheless, we may not want to
27086 # sort them, since we want the *last* AC-DEFINE to be honored.
27087 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27088 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27089 rm -f confdef2sed.sed
27090
27091 # This sed command replaces #undef with comments.  This is necessary, for
27092 # example, in the case of _POSIX_SOURCE, which is predefined and required
27093 # on some systems where configure will not decide to define it.
27094 cat >>conftest.undefs <<\_ACEOF
27095 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27096 _ACEOF
27097
27098 # Break up conftest.defines because some shells have a limit on the size
27099 # of here documents, and old seds have small limits too (100 cmds).
27100 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27101 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27102 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27103 echo '  :' >>$CONFIG_STATUS
27104 rm -f conftest.tail
27105 while grep . conftest.defines >/dev/null
27106 do
27107   # Write a limited-size here document to $tmp/defines.sed.
27108   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27109   # Speed up: don't consider the non `#define' lines.
27110   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27111   # Work around the forget-to-reset-the-flag bug.
27112   echo 't clr' >>$CONFIG_STATUS
27113   echo ': clr' >>$CONFIG_STATUS
27114   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27115   echo 'CEOF
27116   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27117   rm -f $tmp/in
27118   mv $tmp/out $tmp/in
27119 ' >>$CONFIG_STATUS
27120   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27121   rm -f conftest.defines
27122   mv conftest.tail conftest.defines
27123 done
27124 rm -f conftest.defines
27125 echo '  fi # grep' >>$CONFIG_STATUS
27126 echo >>$CONFIG_STATUS
27127
27128 # Break up conftest.undefs because some shells have a limit on the size
27129 # of here documents, and old seds have small limits too (100 cmds).
27130 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27131 rm -f conftest.tail
27132 while grep . conftest.undefs >/dev/null
27133 do
27134   # Write a limited-size here document to $tmp/undefs.sed.
27135   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27136   # Speed up: don't consider the non `#undef'
27137   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27138   # Work around the forget-to-reset-the-flag bug.
27139   echo 't clr' >>$CONFIG_STATUS
27140   echo ': clr' >>$CONFIG_STATUS
27141   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27142   echo 'CEOF
27143   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27144   rm -f $tmp/in
27145   mv $tmp/out $tmp/in
27146 ' >>$CONFIG_STATUS
27147   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27148   rm -f conftest.undefs
27149   mv conftest.tail conftest.undefs
27150 done
27151 rm -f conftest.undefs
27152
27153 cat >>$CONFIG_STATUS <<\_ACEOF
27154   # Let's still pretend it is `configure' which instantiates (i.e., don't
27155   # use $as_me), people would be surprised to read:
27156   #    /* config.h.  Generated by config.status.  */
27157   if test x"$ac_file" = x-; then
27158     echo "/* Generated by configure.  */" >$tmp/config.h
27159   else
27160     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27161   fi
27162   cat $tmp/in >>$tmp/config.h
27163   rm -f $tmp/in
27164   if test x"$ac_file" != x-; then
27165     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27166       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27167 echo "$as_me: $ac_file is unchanged" >&6;}
27168     else
27169       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27171          X"$ac_file" : 'X\(//\)[^/]' \| \
27172          X"$ac_file" : 'X\(//\)$' \| \
27173          X"$ac_file" : 'X\(/\)' \| \
27174          .     : '\(.\)' 2>/dev/null ||
27175 echo X"$ac_file" |
27176     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27177           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27178           /^X\(\/\/\)$/{ s//\1/; q; }
27179           /^X\(\/\).*/{ s//\1/; q; }
27180           s/.*/./; q'`
27181       { if $as_mkdir_p; then
27182     mkdir -p "$ac_dir"
27183   else
27184     as_dir="$ac_dir"
27185     as_dirs=
27186     while test ! -d "$as_dir"; do
27187       as_dirs="$as_dir $as_dirs"
27188       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27190          X"$as_dir" : 'X\(//\)[^/]' \| \
27191          X"$as_dir" : 'X\(//\)$' \| \
27192          X"$as_dir" : 'X\(/\)' \| \
27193          .     : '\(.\)' 2>/dev/null ||
27194 echo X"$as_dir" |
27195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27196           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27197           /^X\(\/\/\)$/{ s//\1/; q; }
27198           /^X\(\/\).*/{ s//\1/; q; }
27199           s/.*/./; q'`
27200     done
27201     test ! -n "$as_dirs" || mkdir $as_dirs
27202   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27203 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27204    { (exit 1); exit 1; }; }; }
27205
27206       rm -f $ac_file
27207       mv $tmp/config.h $ac_file
27208     fi
27209   else
27210     cat $tmp/config.h
27211     rm -f $tmp/config.h
27212   fi
27213 # Compute $ac_file's index in $config_headers.
27214 _am_stamp_count=1
27215 for _am_header in $config_headers :; do
27216   case $_am_header in
27217     $ac_file | $ac_file:* )
27218       break ;;
27219     * )
27220       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27221   esac
27222 done
27223 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27224 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27225          X$ac_file : 'X\(//\)[^/]' \| \
27226          X$ac_file : 'X\(//\)$' \| \
27227          X$ac_file : 'X\(/\)' \| \
27228          .     : '\(.\)' 2>/dev/null ||
27229 echo X$ac_file |
27230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27231           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27232           /^X\(\/\/\)$/{ s//\1/; q; }
27233           /^X\(\/\).*/{ s//\1/; q; }
27234           s/.*/./; q'`/stamp-h$_am_stamp_count
27235 done
27236 _ACEOF
27237 cat >>$CONFIG_STATUS <<\_ACEOF
27238
27239 #
27240 # CONFIG_LINKS section.
27241 #
27242
27243 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27244   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27245   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27246
27247   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27248 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27249
27250   if test ! -r $srcdir/$ac_source; then
27251     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27252 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27253    { (exit 1); exit 1; }; }
27254   fi
27255   rm -f $ac_dest
27256
27257   # Make relative symlinks.
27258   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27259 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27260          X"$ac_dest" : 'X\(//\)[^/]' \| \
27261          X"$ac_dest" : 'X\(//\)$' \| \
27262          X"$ac_dest" : 'X\(/\)' \| \
27263          .     : '\(.\)' 2>/dev/null ||
27264 echo X"$ac_dest" |
27265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27266           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27267           /^X\(\/\/\)$/{ s//\1/; q; }
27268           /^X\(\/\).*/{ s//\1/; q; }
27269           s/.*/./; q'`
27270   { if $as_mkdir_p; then
27271     mkdir -p "$ac_dest_dir"
27272   else
27273     as_dir="$ac_dest_dir"
27274     as_dirs=
27275     while test ! -d "$as_dir"; do
27276       as_dirs="$as_dir $as_dirs"
27277       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27279          X"$as_dir" : 'X\(//\)[^/]' \| \
27280          X"$as_dir" : 'X\(//\)$' \| \
27281          X"$as_dir" : 'X\(/\)' \| \
27282          .     : '\(.\)' 2>/dev/null ||
27283 echo X"$as_dir" |
27284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27285           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27286           /^X\(\/\/\)$/{ s//\1/; q; }
27287           /^X\(\/\).*/{ s//\1/; q; }
27288           s/.*/./; q'`
27289     done
27290     test ! -n "$as_dirs" || mkdir $as_dirs
27291   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27292 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27293    { (exit 1); exit 1; }; }; }
27294
27295   ac_builddir=.
27296
27297 if test "$ac_dest_dir" != .; then
27298   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27299   # A "../" for each directory in $ac_dir_suffix.
27300   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27301 else
27302   ac_dir_suffix= ac_top_builddir=
27303 fi
27304
27305 case $srcdir in
27306   .)  # No --srcdir option.  We are building in place.
27307     ac_srcdir=.
27308     if test -z "$ac_top_builddir"; then
27309        ac_top_srcdir=.
27310     else
27311        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27312     fi ;;
27313   [\\/]* | ?:[\\/]* )  # Absolute path.
27314     ac_srcdir=$srcdir$ac_dir_suffix;
27315     ac_top_srcdir=$srcdir ;;
27316   *) # Relative path.
27317     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27318     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27319 esac
27320
27321 # Do not use `cd foo && pwd` to compute absolute paths, because
27322 # the directories may not exist.
27323 case `pwd` in
27324 .) ac_abs_builddir="$ac_dest_dir";;
27325 *)
27326   case "$ac_dest_dir" in
27327   .) ac_abs_builddir=`pwd`;;
27328   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27329   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27330   esac;;
27331 esac
27332 case $ac_abs_builddir in
27333 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27334 *)
27335   case ${ac_top_builddir}. in
27336   .) ac_abs_top_builddir=$ac_abs_builddir;;
27337   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27338   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27339   esac;;
27340 esac
27341 case $ac_abs_builddir in
27342 .) ac_abs_srcdir=$ac_srcdir;;
27343 *)
27344   case $ac_srcdir in
27345   .) ac_abs_srcdir=$ac_abs_builddir;;
27346   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27347   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27348   esac;;
27349 esac
27350 case $ac_abs_builddir in
27351 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27352 *)
27353   case $ac_top_srcdir in
27354   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27355   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27356   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27357   esac;;
27358 esac
27359
27360
27361   case $srcdir in
27362   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27363       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27364   esac
27365
27366   # Try a symlink, then a hard link, then a copy.
27367   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27368     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27369     cp -p $srcdir/$ac_source $ac_dest ||
27370     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27371 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27372    { (exit 1); exit 1; }; }
27373 done
27374 _ACEOF
27375 cat >>$CONFIG_STATUS <<\_ACEOF
27376
27377 #
27378 # CONFIG_COMMANDS section.
27379 #
27380 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27381   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27382   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27383   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27384 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27385          X"$ac_dest" : 'X\(//\)[^/]' \| \
27386          X"$ac_dest" : 'X\(//\)$' \| \
27387          X"$ac_dest" : 'X\(/\)' \| \
27388          .     : '\(.\)' 2>/dev/null ||
27389 echo X"$ac_dest" |
27390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27391           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27392           /^X\(\/\/\)$/{ s//\1/; q; }
27393           /^X\(\/\).*/{ s//\1/; q; }
27394           s/.*/./; q'`
27395   { if $as_mkdir_p; then
27396     mkdir -p "$ac_dir"
27397   else
27398     as_dir="$ac_dir"
27399     as_dirs=
27400     while test ! -d "$as_dir"; do
27401       as_dirs="$as_dir $as_dirs"
27402       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27404          X"$as_dir" : 'X\(//\)[^/]' \| \
27405          X"$as_dir" : 'X\(//\)$' \| \
27406          X"$as_dir" : 'X\(/\)' \| \
27407          .     : '\(.\)' 2>/dev/null ||
27408 echo X"$as_dir" |
27409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27410           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27411           /^X\(\/\/\)$/{ s//\1/; q; }
27412           /^X\(\/\).*/{ s//\1/; q; }
27413           s/.*/./; q'`
27414     done
27415     test ! -n "$as_dirs" || mkdir $as_dirs
27416   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27417 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27418    { (exit 1); exit 1; }; }; }
27419
27420   ac_builddir=.
27421
27422 if test "$ac_dir" != .; then
27423   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27424   # A "../" for each directory in $ac_dir_suffix.
27425   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27426 else
27427   ac_dir_suffix= ac_top_builddir=
27428 fi
27429
27430 case $srcdir in
27431   .)  # No --srcdir option.  We are building in place.
27432     ac_srcdir=.
27433     if test -z "$ac_top_builddir"; then
27434        ac_top_srcdir=.
27435     else
27436        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27437     fi ;;
27438   [\\/]* | ?:[\\/]* )  # Absolute path.
27439     ac_srcdir=$srcdir$ac_dir_suffix;
27440     ac_top_srcdir=$srcdir ;;
27441   *) # Relative path.
27442     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27443     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27444 esac
27445
27446 # Do not use `cd foo && pwd` to compute absolute paths, because
27447 # the directories may not exist.
27448 case `pwd` in
27449 .) ac_abs_builddir="$ac_dir";;
27450 *)
27451   case "$ac_dir" in
27452   .) ac_abs_builddir=`pwd`;;
27453   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27454   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27455   esac;;
27456 esac
27457 case $ac_abs_builddir in
27458 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27459 *)
27460   case ${ac_top_builddir}. in
27461   .) ac_abs_top_builddir=$ac_abs_builddir;;
27462   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27463   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27464   esac;;
27465 esac
27466 case $ac_abs_builddir in
27467 .) ac_abs_srcdir=$ac_srcdir;;
27468 *)
27469   case $ac_srcdir in
27470   .) ac_abs_srcdir=$ac_abs_builddir;;
27471   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27472   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27473   esac;;
27474 esac
27475 case $ac_abs_builddir in
27476 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27477 *)
27478   case $ac_top_srcdir in
27479   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27480   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27481   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27482   esac;;
27483 esac
27484
27485
27486   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27487 echo "$as_me: executing $ac_dest commands" >&6;}
27488   case $ac_dest in
27489     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27490   # Strip MF so we end up with the name of the file.
27491   mf=`echo "$mf" | sed -e 's/:.*$//'`
27492   # Check whether this is an Automake generated Makefile or not.
27493   # We used to match only the files named `Makefile.in', but
27494   # some people rename them; so instead we look at the file content.
27495   # Grep'ing the first line is not enough: some people post-process
27496   # each Makefile.in and add a new line on top of each file to say so.
27497   # So let's grep whole file.
27498   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27499     dirpart=`(dirname "$mf") 2>/dev/null ||
27500 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27501          X"$mf" : 'X\(//\)[^/]' \| \
27502          X"$mf" : 'X\(//\)$' \| \
27503          X"$mf" : 'X\(/\)' \| \
27504          .     : '\(.\)' 2>/dev/null ||
27505 echo X"$mf" |
27506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27508           /^X\(\/\/\)$/{ s//\1/; q; }
27509           /^X\(\/\).*/{ s//\1/; q; }
27510           s/.*/./; q'`
27511   else
27512     continue
27513   fi
27514   # Extract the definition of DEPDIR, am__include, and am__quote
27515   # from the Makefile without running `make'.
27516   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27517   test -z "$DEPDIR" && continue
27518   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27519   test -z "am__include" && continue
27520   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27521   # When using ansi2knr, U may be empty or an underscore; expand it
27522   U=`sed -n 's/^U = //p' < "$mf"`
27523   # Find all dependency output files, they are included files with
27524   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27525   # simplest approach to changing $(DEPDIR) to its actual value in the
27526   # expansion.
27527   for file in `sed -n "
27528     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27529        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27530     # Make sure the directory exists.
27531     test -f "$dirpart/$file" && continue
27532     fdir=`(dirname "$file") 2>/dev/null ||
27533 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27534          X"$file" : 'X\(//\)[^/]' \| \
27535          X"$file" : 'X\(//\)$' \| \
27536          X"$file" : 'X\(/\)' \| \
27537          .     : '\(.\)' 2>/dev/null ||
27538 echo X"$file" |
27539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27540           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27541           /^X\(\/\/\)$/{ s//\1/; q; }
27542           /^X\(\/\).*/{ s//\1/; q; }
27543           s/.*/./; q'`
27544     { if $as_mkdir_p; then
27545     mkdir -p $dirpart/$fdir
27546   else
27547     as_dir=$dirpart/$fdir
27548     as_dirs=
27549     while test ! -d "$as_dir"; do
27550       as_dirs="$as_dir $as_dirs"
27551       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27553          X"$as_dir" : 'X\(//\)[^/]' \| \
27554          X"$as_dir" : 'X\(//\)$' \| \
27555          X"$as_dir" : 'X\(/\)' \| \
27556          .     : '\(.\)' 2>/dev/null ||
27557 echo X"$as_dir" |
27558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27559           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27560           /^X\(\/\/\)$/{ s//\1/; q; }
27561           /^X\(\/\).*/{ s//\1/; q; }
27562           s/.*/./; q'`
27563     done
27564     test ! -n "$as_dirs" || mkdir $as_dirs
27565   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27566 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27567    { (exit 1); exit 1; }; }; }
27568
27569     # echo "creating $dirpart/$file"
27570     echo '# dummy' > "$dirpart/$file"
27571   done
27572 done
27573  ;;
27574     default )
27575
27576 sed -e '/^NAT_FILE[     ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
27577 mv -f Makefile.tmp Makefile
27578
27579
27580 case x$CONFIG_HEADERS in
27581 xconfig.h:config.in)
27582 echo > stamp-h ;;
27583 esac
27584  ;;
27585   esac
27586 done
27587 _ACEOF
27588
27589 cat >>$CONFIG_STATUS <<\_ACEOF
27590
27591 { (exit 0); exit 0; }
27592 _ACEOF
27593 chmod +x $CONFIG_STATUS
27594 ac_clean_files=$ac_clean_files_save
27595
27596
27597 # configure is writing to config.log, and then calls config.status.
27598 # config.status does its own redirection, appending to config.log.
27599 # Unfortunately, on DOS this fails, as config.log is still kept open
27600 # by configure, so config.status won't be able to write to it; its
27601 # output is simply discarded.  So we exec the FD to /dev/null,
27602 # effectively closing config.log, so it can be properly (re)opened and
27603 # appended to by config.status.  When coming back to configure, we
27604 # need to make the FD available again.
27605 if test "$no_create" != yes; then
27606   ac_cs_success=:
27607   ac_config_status_args=
27608   test "$silent" = yes &&
27609     ac_config_status_args="$ac_config_status_args --quiet"
27610   exec 5>/dev/null
27611   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27612   exec 5>>config.log
27613   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27614   # would make configure fail if this is the last instruction.
27615   $ac_cs_success || { (exit 1); exit 1; }
27616 fi
27617
27618 #
27619 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
27620 #
27621 if test "$no_recursion" != yes; then
27622
27623   # Remove --cache-file and --srcdir arguments so they do not pile up.
27624   ac_sub_configure_args=
27625   ac_prev=
27626   eval "set x $ac_configure_args"
27627   shift
27628   for ac_arg
27629   do
27630     if test -n "$ac_prev"; then
27631       ac_prev=
27632       continue
27633     fi
27634     case $ac_arg in
27635     -cache-file | --cache-file | --cache-fil | --cache-fi \
27636     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27637       ac_prev=cache_file ;;
27638     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27639     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27640     | --c=*)
27641       ;;
27642     --config-cache | -C)
27643       ;;
27644     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27645       ac_prev=srcdir ;;
27646     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27647       ;;
27648     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27649       ac_prev=prefix ;;
27650     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27651       ;;
27652     *)
27653       case $ac_arg in
27654       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27655       esac
27656       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27657     esac
27658   done
27659
27660   # Always prepend --prefix to ensure using the same prefix
27661   # in subdir configurations.
27662   ac_arg="--prefix=$prefix"
27663   case $ac_arg in
27664   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27665   esac
27666   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
27667
27668   ac_popdir=`pwd`
27669   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27670
27671     # Do not complain, so a configure script can configure whichever
27672     # parts of a large source tree are present.
27673     test -d "$srcdir/$ac_dir" || continue
27674
27675     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27676 echo "$as_me: configuring in $ac_dir" >&6;}
27677     { if $as_mkdir_p; then
27678     mkdir -p "$ac_dir"
27679   else
27680     as_dir="$ac_dir"
27681     as_dirs=
27682     while test ! -d "$as_dir"; do
27683       as_dirs="$as_dir $as_dirs"
27684       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27686          X"$as_dir" : 'X\(//\)[^/]' \| \
27687          X"$as_dir" : 'X\(//\)$' \| \
27688          X"$as_dir" : 'X\(/\)' \| \
27689          .     : '\(.\)' 2>/dev/null ||
27690 echo X"$as_dir" |
27691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27692           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27693           /^X\(\/\/\)$/{ s//\1/; q; }
27694           /^X\(\/\).*/{ s//\1/; q; }
27695           s/.*/./; q'`
27696     done
27697     test ! -n "$as_dirs" || mkdir $as_dirs
27698   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27699 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27700    { (exit 1); exit 1; }; }; }
27701
27702     ac_builddir=.
27703
27704 if test "$ac_dir" != .; then
27705   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27706   # A "../" for each directory in $ac_dir_suffix.
27707   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27708 else
27709   ac_dir_suffix= ac_top_builddir=
27710 fi
27711
27712 case $srcdir in
27713   .)  # No --srcdir option.  We are building in place.
27714     ac_srcdir=.
27715     if test -z "$ac_top_builddir"; then
27716        ac_top_srcdir=.
27717     else
27718        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27719     fi ;;
27720   [\\/]* | ?:[\\/]* )  # Absolute path.
27721     ac_srcdir=$srcdir$ac_dir_suffix;
27722     ac_top_srcdir=$srcdir ;;
27723   *) # Relative path.
27724     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27725     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27726 esac
27727
27728 # Do not use `cd foo && pwd` to compute absolute paths, because
27729 # the directories may not exist.
27730 case `pwd` in
27731 .) ac_abs_builddir="$ac_dir";;
27732 *)
27733   case "$ac_dir" in
27734   .) ac_abs_builddir=`pwd`;;
27735   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27736   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27737   esac;;
27738 esac
27739 case $ac_abs_builddir in
27740 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27741 *)
27742   case ${ac_top_builddir}. in
27743   .) ac_abs_top_builddir=$ac_abs_builddir;;
27744   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27745   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27746   esac;;
27747 esac
27748 case $ac_abs_builddir in
27749 .) ac_abs_srcdir=$ac_srcdir;;
27750 *)
27751   case $ac_srcdir in
27752   .) ac_abs_srcdir=$ac_abs_builddir;;
27753   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27754   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27755   esac;;
27756 esac
27757 case $ac_abs_builddir in
27758 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27759 *)
27760   case $ac_top_srcdir in
27761   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27762   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27763   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27764   esac;;
27765 esac
27766
27767
27768     cd "$ac_dir"
27769
27770     # Check for guested configure; otherwise get Cygnus style configure.
27771     if test -f "$ac_srcdir/configure.gnu"; then
27772       ac_sub_configure=$ac_srcdir/configure.gnu
27773     elif test -f "$ac_srcdir/configure"; then
27774       ac_sub_configure=$ac_srcdir/configure
27775     elif test -f "$ac_srcdir/configure.in"; then
27776       # This should be Cygnus configure.
27777       ac_sub_configure=$ac_aux_dir/configure
27778     else
27779       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27780 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27781       ac_sub_configure=
27782     fi
27783
27784     # The recursion is here.
27785     if test -n "$ac_sub_configure"; then
27786       # Make the cache file name correct relative to the subdirectory.
27787       case $cache_file in
27788       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27789       *) # Relative path.
27790         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27791       esac
27792
27793       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27794 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27795       # The eval makes quoting arguments work.
27796       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27797            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27798         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27799 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27800    { (exit 1); exit 1; }; }
27801     fi
27802
27803     cd "$ac_popdir"
27804   done
27805 fi
27806
27807
27808 exit 0