139f7e1a8b9ca7090a8c1ef25f194894b0742154
[platform/upstream/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 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_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR 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   --without-included-regex don't use included regex; this is the default
894                           on systems with version 2 of the GNU C library
895                           (use with caution on other system)
896   --with-sysroot=DIR Search for usr/lib et al within DIR.
897   --with-tclconfig=DIR    Directory containing tcl configuration (tclConfig.sh)
898   --with-tkconfig=DIR     Directory containing tk configuration (tkConfig.sh)
899   --with-tclinclude=DIR   Directory where tcl private headers are
900   --with-tkinclude=DIR    Directory where tk private headers are
901   --with-itclconfig       Directory containing itcl configuration (itclConfig.sh)
902   --with-itkconfig        Directory containing itk configuration (itkConfig.sh)
903   --with-x                use the X Window System
904   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
905
906 Some influential environment variables:
907   CC          C compiler command
908   CFLAGS      C compiler flags
909   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
910               nonstandard directory <lib dir>
911   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
912               headers in a nonstandard directory <include dir>
913   CPP         C preprocessor
914
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
917
918 _ACEOF
919 fi
920
921 if test "$ac_init_help" = "recursive"; then
922   # If there are subdirs, report their specific --help.
923   ac_popdir=`pwd`
924   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925     test -d $ac_dir || continue
926     ac_builddir=.
927
928 if test "$ac_dir" != .; then
929   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930   # A "../" for each directory in $ac_dir_suffix.
931   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933   ac_dir_suffix= ac_top_builddir=
934 fi
935
936 case $srcdir in
937   .)  # No --srcdir option.  We are building in place.
938     ac_srcdir=.
939     if test -z "$ac_top_builddir"; then
940        ac_top_srcdir=.
941     else
942        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943     fi ;;
944   [\\/]* | ?:[\\/]* )  # Absolute path.
945     ac_srcdir=$srcdir$ac_dir_suffix;
946     ac_top_srcdir=$srcdir ;;
947   *) # Relative path.
948     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949     ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
951
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
954 case `pwd` in
955 .) ac_abs_builddir="$ac_dir";;
956 *)
957   case "$ac_dir" in
958   .) ac_abs_builddir=`pwd`;;
959   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960   *) ac_abs_builddir=`pwd`/"$ac_dir";;
961   esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *)
966   case ${ac_top_builddir}. in
967   .) ac_abs_top_builddir=$ac_abs_builddir;;
968   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970   esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
974 *)
975   case $ac_srcdir in
976   .) ac_abs_srcdir=$ac_abs_builddir;;
977   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979   esac;;
980 esac
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *)
984   case $ac_top_srcdir in
985   .) ac_abs_top_srcdir=$ac_abs_builddir;;
986   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988   esac;;
989 esac
990
991     cd $ac_dir
992     # Check for guested configure; otherwise get Cygnus style configure.
993     if test -f $ac_srcdir/configure.gnu; then
994       echo
995       $SHELL $ac_srcdir/configure.gnu  --help=recursive
996     elif test -f $ac_srcdir/configure; then
997       echo
998       $SHELL $ac_srcdir/configure  --help=recursive
999     elif test -f $ac_srcdir/configure.ac ||
1000            test -f $ac_srcdir/configure.in; then
1001       echo
1002       $ac_configure --help
1003     else
1004       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005     fi
1006     cd $ac_popdir
1007   done
1008 fi
1009
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1012   cat <<\_ACEOF
1013
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1017 _ACEOF
1018   exit 0
1019 fi
1020 exec 5>config.log
1021 cat >&5 <<_ACEOF
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1024
1025 It was created by $as_me, which was
1026 generated by GNU Autoconf 2.59.  Invocation command line was
1027
1028   $ $0 $@
1029
1030 _ACEOF
1031 {
1032 cat <<_ASUNAME
1033 ## --------- ##
1034 ## Platform. ##
1035 ## --------- ##
1036
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1045
1046 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1047 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1050 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1051 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1052 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1053
1054 _ASUNAME
1055
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 for as_dir in $PATH
1058 do
1059   IFS=$as_save_IFS
1060   test -z "$as_dir" && as_dir=.
1061   echo "PATH: $as_dir"
1062 done
1063
1064 } >&5
1065
1066 cat >&5 <<_ACEOF
1067
1068
1069 ## ----------- ##
1070 ## Core tests. ##
1071 ## ----------- ##
1072
1073 _ACEOF
1074
1075
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1081 ac_configure_args=
1082 ac_configure_args0=
1083 ac_configure_args1=
1084 ac_sep=
1085 ac_must_keep_next=false
1086 for ac_pass in 1 2
1087 do
1088   for ac_arg
1089   do
1090     case $ac_arg in
1091     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093     | -silent | --silent | --silen | --sile | --sil)
1094       continue ;;
1095     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097     esac
1098     case $ac_pass in
1099     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100     2)
1101       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102       if test $ac_must_keep_next = true; then
1103         ac_must_keep_next=false # Got value, back to normal.
1104       else
1105         case $ac_arg in
1106           *=* | --config-cache | -C | -disable-* | --disable-* \
1107           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109           | -with-* | --with-* | -without-* | --without-* | --x)
1110             case "$ac_configure_args0 " in
1111               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1112             esac
1113             ;;
1114           -* ) ac_must_keep_next=true ;;
1115         esac
1116       fi
1117       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118       # Get rid of the leading space.
1119       ac_sep=" "
1120       ;;
1121     esac
1122   done
1123 done
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log.  We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133   # Save into config.log some information that might help in debugging.
1134   {
1135     echo
1136
1137     cat <<\_ASBOX
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1141 _ASBOX
1142     echo
1143     # The following way of writing the cache mishandles newlines in values,
1144 {
1145   (set) 2>&1 |
1146     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147     *ac_space=\ *)
1148       sed -n \
1149         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151       ;;
1152     *)
1153       sed -n \
1154         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155       ;;
1156     esac;
1157 }
1158     echo
1159
1160     cat <<\_ASBOX
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1164 _ASBOX
1165     echo
1166     for ac_var in $ac_subst_vars
1167     do
1168       eval ac_val=$`echo $ac_var`
1169       echo "$ac_var='"'"'$ac_val'"'"'"
1170     done | sort
1171     echo
1172
1173     if test -n "$ac_subst_files"; then
1174       cat <<\_ASBOX
1175 ## ------------- ##
1176 ## Output files. ##
1177 ## ------------- ##
1178 _ASBOX
1179       echo
1180       for ac_var in $ac_subst_files
1181       do
1182         eval ac_val=$`echo $ac_var`
1183         echo "$ac_var='"'"'$ac_val'"'"'"
1184       done | sort
1185       echo
1186     fi
1187
1188     if test -s confdefs.h; then
1189       cat <<\_ASBOX
1190 ## ----------- ##
1191 ## confdefs.h. ##
1192 ## ----------- ##
1193 _ASBOX
1194       echo
1195       sed "/^$/d" confdefs.h | sort
1196       echo
1197     fi
1198     test "$ac_signal" != 0 &&
1199       echo "$as_me: caught signal $ac_signal"
1200     echo "$as_me: exit $exit_status"
1201   } >&5
1202   rm -f core *.core &&
1203   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1204     exit $exit_status
1205      ' 0
1206 for ac_signal in 1 2 13 15; do
1207   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 done
1209 ac_signal=0
1210
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1214 echo >confdefs.h
1215
1216 # Predefined preprocessor variables.
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 _ACEOF
1226
1227
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 _ACEOF
1231
1232
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 _ACEOF
1236
1237
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 _ACEOF
1241
1242
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246   if test "x$prefix" != xNONE; then
1247     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248   else
1249     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1250   fi
1251 fi
1252 for ac_site_file in $CONFIG_SITE; do
1253   if test -r "$ac_site_file"; then
1254     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256     sed 's/^/| /' "$ac_site_file" >&5
1257     . "$ac_site_file"
1258   fi
1259 done
1260
1261 if test -r "$cache_file"; then
1262   # Some versions of bash will fail to source /dev/null (special
1263   # files actually), so we avoid doing that.
1264   if test -f "$cache_file"; then
1265     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1267     case $cache_file in
1268       [\\/]* | ?:[\\/]* ) . $cache_file;;
1269       *)                      . ./$cache_file;;
1270     esac
1271   fi
1272 else
1273   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1275   >$cache_file
1276 fi
1277
1278 # Check that the precious variables saved in the cache have kept the same
1279 # value.
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284   eval ac_new_set=\$ac_env_${ac_var}_set
1285   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286   eval ac_new_val="\$ac_env_${ac_var}_value"
1287   case $ac_old_set,$ac_new_set in
1288     set,)
1289       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291       ac_cache_corrupted=: ;;
1292     ,set)
1293       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295       ac_cache_corrupted=: ;;
1296     ,);;
1297     *)
1298       if test "x$ac_old_val" != "x$ac_new_val"; then
1299         # differences in whitespace do not lead to failure.
1300         ac_old_val_w=`echo x $ac_old_val`
1301         ac_new_val_w=`echo x $ac_new_val`
1302         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1303           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305           ac_cache_corrupted=:
1306         else
1307           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1308 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1309           eval $ac_var=\$ac_old_val
1310         fi
1311         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1312 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1313         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1314 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1315       fi;;
1316   esac
1317   # Pass precious variables to config.status.
1318   if test "$ac_new_set" = set; then
1319     case $ac_new_val in
1320     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1322     *) ac_arg=$ac_var=$ac_new_val ;;
1323     esac
1324     case " $ac_configure_args " in
1325       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1326       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1327     esac
1328   fi
1329 done
1330 if $ac_cache_corrupted; then
1331   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1332 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1333   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1334 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1335   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1336 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1337    { (exit 1); exit 1; }; }
1338 fi
1339
1340 ac_ext=c
1341 ac_cpp='$CPP $CPPFLAGS'
1342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345
1346
1347 gl_header_list="$gl_header_list stdint.h"
1348 gl_header_list="$gl_header_list wchar.h"
1349 gl_header_list="$gl_header_list string.h"
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370           ac_config_headers="$ac_config_headers config.h:config.in"
1371
1372 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1373 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1374     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1375 if test "${enable_maintainer_mode+set}" = set; then
1376   enableval="$enable_maintainer_mode"
1377   USE_MAINTAINER_MODE=$enableval
1378 else
1379   USE_MAINTAINER_MODE=no
1380 fi;
1381   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1382 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1383
1384
1385 if test $USE_MAINTAINER_MODE = yes; then
1386   MAINTAINER_MODE_TRUE=
1387   MAINTAINER_MODE_FALSE='#'
1388 else
1389   MAINTAINER_MODE_TRUE='#'
1390   MAINTAINER_MODE_FALSE=
1391 fi
1392
1393   MAINT=$MAINTAINER_MODE_TRUE
1394
1395
1396
1397 ac_ext=c
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 if test -n "$ac_tool_prefix"; then
1403   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408   echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410   if test -n "$CC"; then
1411   ac_cv_prog_CC="$CC" # Let the user override the test.
1412 else
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 for as_dir in $PATH
1415 do
1416   IFS=$as_save_IFS
1417   test -z "$as_dir" && as_dir=.
1418   for ac_exec_ext in '' $ac_executable_extensions; do
1419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422     break 2
1423   fi
1424 done
1425 done
1426
1427 fi
1428 fi
1429 CC=$ac_cv_prog_CC
1430 if test -n "$CC"; then
1431   echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1433 else
1434   echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1436 fi
1437
1438 fi
1439 if test -z "$ac_cv_prog_CC"; then
1440   ac_ct_CC=$CC
1441   # Extract the first word of "gcc", so it can be a program name with args.
1442 set dummy gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446   echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448   if test -n "$ac_ct_CC"; then
1449   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1453 do
1454   IFS=$as_save_IFS
1455   test -z "$as_dir" && as_dir=.
1456   for ac_exec_ext in '' $ac_executable_extensions; do
1457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458     ac_cv_prog_ac_ct_CC="gcc"
1459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460     break 2
1461   fi
1462 done
1463 done
1464
1465 fi
1466 fi
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1471 else
1472   echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1474 fi
1475
1476   CC=$ac_ct_CC
1477 else
1478   CC="$ac_cv_prog_CC"
1479 fi
1480
1481 if test -z "$CC"; then
1482   if test -n "$ac_tool_prefix"; then
1483   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1484 set dummy ${ac_tool_prefix}cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488   echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490   if test -n "$CC"; then
1491   ac_cv_prog_CC="$CC" # Let the user override the test.
1492 else
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496   IFS=$as_save_IFS
1497   test -z "$as_dir" && as_dir=.
1498   for ac_exec_ext in '' $ac_executable_extensions; do
1499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500     ac_cv_prog_CC="${ac_tool_prefix}cc"
1501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502     break 2
1503   fi
1504 done
1505 done
1506
1507 fi
1508 fi
1509 CC=$ac_cv_prog_CC
1510 if test -n "$CC"; then
1511   echo "$as_me:$LINENO: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1513 else
1514   echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 fi
1517
1518 fi
1519 if test -z "$ac_cv_prog_CC"; then
1520   ac_ct_CC=$CC
1521   # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526   echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528   if test -n "$ac_ct_CC"; then
1529   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534   IFS=$as_save_IFS
1535   test -z "$as_dir" && as_dir=.
1536   for ac_exec_ext in '' $ac_executable_extensions; do
1537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538     ac_cv_prog_ac_ct_CC="cc"
1539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540     break 2
1541   fi
1542 done
1543 done
1544
1545 fi
1546 fi
1547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1548 if test -n "$ac_ct_CC"; then
1549   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1550 echo "${ECHO_T}$ac_ct_CC" >&6
1551 else
1552   echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1554 fi
1555
1556   CC=$ac_ct_CC
1557 else
1558   CC="$ac_cv_prog_CC"
1559 fi
1560
1561 fi
1562 if test -z "$CC"; then
1563   # Extract the first word of "cc", so it can be a program name with args.
1564 set dummy cc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_CC+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$CC"; then
1571   ac_cv_prog_CC="$CC" # Let the user override the test.
1572 else
1573   ac_prog_rejected=no
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577   IFS=$as_save_IFS
1578   test -z "$as_dir" && as_dir=.
1579   for ac_exec_ext in '' $ac_executable_extensions; do
1580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1582        ac_prog_rejected=yes
1583        continue
1584      fi
1585     ac_cv_prog_CC="cc"
1586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587     break 2
1588   fi
1589 done
1590 done
1591
1592 if test $ac_prog_rejected = yes; then
1593   # We found a bogon in the path, so make sure we never use it.
1594   set dummy $ac_cv_prog_CC
1595   shift
1596   if test $# != 0; then
1597     # We chose a different compiler from the bogus one.
1598     # However, it has the same basename, so the bogon will be chosen
1599     # first if we set CC to just the basename; use the full file name.
1600     shift
1601     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1602   fi
1603 fi
1604 fi
1605 fi
1606 CC=$ac_cv_prog_CC
1607 if test -n "$CC"; then
1608   echo "$as_me:$LINENO: result: $CC" >&5
1609 echo "${ECHO_T}$CC" >&6
1610 else
1611   echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1613 fi
1614
1615 fi
1616 if test -z "$CC"; then
1617   if test -n "$ac_tool_prefix"; then
1618   for ac_prog in cl
1619   do
1620     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   if test -n "$CC"; then
1628   ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633   IFS=$as_save_IFS
1634   test -z "$as_dir" && as_dir=.
1635   for ac_exec_ext in '' $ac_executable_extensions; do
1636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639     break 2
1640   fi
1641 done
1642 done
1643
1644 fi
1645 fi
1646 CC=$ac_cv_prog_CC
1647 if test -n "$CC"; then
1648   echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1650 else
1651   echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653 fi
1654
1655     test -n "$CC" && break
1656   done
1657 fi
1658 if test -z "$CC"; then
1659   ac_ct_CC=$CC
1660   for ac_prog in cl
1661 do
1662   # Extract the first word of "$ac_prog", so it can be a program name with args.
1663 set dummy $ac_prog; ac_word=$2
1664 echo "$as_me:$LINENO: checking for $ac_word" >&5
1665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1667   echo $ECHO_N "(cached) $ECHO_C" >&6
1668 else
1669   if test -n "$ac_ct_CC"; then
1670   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671 else
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675   IFS=$as_save_IFS
1676   test -z "$as_dir" && as_dir=.
1677   for ac_exec_ext in '' $ac_executable_extensions; do
1678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679     ac_cv_prog_ac_ct_CC="$ac_prog"
1680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681     break 2
1682   fi
1683 done
1684 done
1685
1686 fi
1687 fi
1688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1689 if test -n "$ac_ct_CC"; then
1690   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1691 echo "${ECHO_T}$ac_ct_CC" >&6
1692 else
1693   echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1695 fi
1696
1697   test -n "$ac_ct_CC" && break
1698 done
1699
1700   CC=$ac_ct_CC
1701 fi
1702
1703 fi
1704
1705
1706 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1707 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1708 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1709 See \`config.log' for more details." >&5
1710 echo "$as_me: error: no acceptable C compiler found in \$PATH
1711 See \`config.log' for more details." >&2;}
1712    { (exit 1); exit 1; }; }; }
1713
1714 # Provide some information about the compiler.
1715 echo "$as_me:$LINENO:" \
1716      "checking for C compiler version" >&5
1717 ac_compiler=`set X $ac_compile; echo $2`
1718 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1719   (eval $ac_compiler --version </dev/null >&5) 2>&5
1720   ac_status=$?
1721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722   (exit $ac_status); }
1723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1724   (eval $ac_compiler -v </dev/null >&5) 2>&5
1725   ac_status=$?
1726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727   (exit $ac_status); }
1728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1729   (eval $ac_compiler -V </dev/null >&5) 2>&5
1730   ac_status=$?
1731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732   (exit $ac_status); }
1733
1734 cat >conftest.$ac_ext <<_ACEOF
1735 /* confdefs.h.  */
1736 _ACEOF
1737 cat confdefs.h >>conftest.$ac_ext
1738 cat >>conftest.$ac_ext <<_ACEOF
1739 /* end confdefs.h.  */
1740
1741 int
1742 main ()
1743 {
1744
1745   ;
1746   return 0;
1747 }
1748 _ACEOF
1749 ac_clean_files_save=$ac_clean_files
1750 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1751 # Try to create an executable without -o first, disregard a.out.
1752 # It will help us diagnose broken compilers, and finding out an intuition
1753 # of exeext.
1754 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1755 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1756 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1757 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1758   (eval $ac_link_default) 2>&5
1759   ac_status=$?
1760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761   (exit $ac_status); }; then
1762   # Find the output, starting from the most likely.  This scheme is
1763 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1764 # resort.
1765
1766 # Be careful to initialize this variable, since it used to be cached.
1767 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1768 ac_cv_exeext=
1769 # b.out is created by i960 compilers.
1770 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1771 do
1772   test -f "$ac_file" || continue
1773   case $ac_file in
1774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1775         ;;
1776     conftest.$ac_ext )
1777         # This is the source file.
1778         ;;
1779     [ab].out )
1780         # We found the default executable, but exeext='' is most
1781         # certainly right.
1782         break;;
1783     *.* )
1784         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1785         # FIXME: I believe we export ac_cv_exeext for Libtool,
1786         # but it would be cool to find out if it's true.  Does anybody
1787         # maintain Libtool? --akim.
1788         export ac_cv_exeext
1789         break;;
1790     * )
1791         break;;
1792   esac
1793 done
1794 else
1795   echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1799 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1800 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1801 See \`config.log' for more details." >&5
1802 echo "$as_me: error: C compiler cannot create executables
1803 See \`config.log' for more details." >&2;}
1804    { (exit 77); exit 77; }; }; }
1805 fi
1806
1807 ac_exeext=$ac_cv_exeext
1808 echo "$as_me:$LINENO: result: $ac_file" >&5
1809 echo "${ECHO_T}$ac_file" >&6
1810
1811 # Check the compiler produces executables we can run.  If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1814 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1815 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1816 # If not cross compiling, check that we can run a simple program.
1817 if test "$cross_compiling" != yes; then
1818   if { ac_try='./$ac_file'
1819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1820   (eval $ac_try) 2>&5
1821   ac_status=$?
1822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823   (exit $ac_status); }; }; then
1824     cross_compiling=no
1825   else
1826     if test "$cross_compiling" = maybe; then
1827         cross_compiling=yes
1828     else
1829         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1830 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: cannot run C compiled programs.
1835 If you meant to cross compile, use \`--host'.
1836 See \`config.log' for more details." >&2;}
1837    { (exit 1); exit 1; }; }; }
1838     fi
1839   fi
1840 fi
1841 echo "$as_me:$LINENO: result: yes" >&5
1842 echo "${ECHO_T}yes" >&6
1843
1844 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1845 ac_clean_files=$ac_clean_files_save
1846 # Check the compiler produces executables we can run.  If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1849 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1850 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1851 echo "${ECHO_T}$cross_compiling" >&6
1852
1853 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1854 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1856   (eval $ac_link) 2>&5
1857   ac_status=$?
1858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859   (exit $ac_status); }; then
1860   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1861 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1862 # work properly (i.e., refer to `conftest.exe'), while it won't with
1863 # `rm'.
1864 for ac_file in conftest.exe conftest conftest.*; do
1865   test -f "$ac_file" || continue
1866   case $ac_file in
1867     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1868     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869           export ac_cv_exeext
1870           break;;
1871     * ) break;;
1872   esac
1873 done
1874 else
1875   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1876 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1877 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1878 See \`config.log' for more details." >&5
1879 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1880 See \`config.log' for more details." >&2;}
1881    { (exit 1); exit 1; }; }; }
1882 fi
1883
1884 rm -f conftest$ac_cv_exeext
1885 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1886 echo "${ECHO_T}$ac_cv_exeext" >&6
1887
1888 rm -f conftest.$ac_ext
1889 EXEEXT=$ac_cv_exeext
1890 ac_exeext=$EXEEXT
1891 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1892 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1893 if test "${ac_cv_objext+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   cat >conftest.$ac_ext <<_ACEOF
1897 /* confdefs.h.  */
1898 _ACEOF
1899 cat confdefs.h >>conftest.$ac_ext
1900 cat >>conftest.$ac_ext <<_ACEOF
1901 /* end confdefs.h.  */
1902
1903 int
1904 main ()
1905 {
1906
1907   ;
1908   return 0;
1909 }
1910 _ACEOF
1911 rm -f conftest.o conftest.obj
1912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913   (eval $ac_compile) 2>&5
1914   ac_status=$?
1915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916   (exit $ac_status); }; then
1917   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1918   case $ac_file in
1919     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1920     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1921        break;;
1922   esac
1923 done
1924 else
1925   echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1929 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1933 See \`config.log' for more details." >&2;}
1934    { (exit 1); exit 1; }; }; }
1935 fi
1936
1937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1938 fi
1939 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940 echo "${ECHO_T}$ac_cv_objext" >&6
1941 OBJEXT=$ac_cv_objext
1942 ac_objext=$OBJEXT
1943 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946   echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948   cat >conftest.$ac_ext <<_ACEOF
1949 /* confdefs.h.  */
1950 _ACEOF
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h.  */
1954
1955 int
1956 main ()
1957 {
1958 #ifndef __GNUC__
1959        choke me
1960 #endif
1961
1962   ;
1963   return 0;
1964 }
1965 _ACEOF
1966 rm -f conftest.$ac_objext
1967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968   (eval $ac_compile) 2>conftest.er1
1969   ac_status=$?
1970   grep -v '^ *+' conftest.er1 >conftest.err
1971   rm -f conftest.er1
1972   cat conftest.err >&5
1973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974   (exit $ac_status); } &&
1975          { ac_try='test -z "$ac_c_werror_flag"
1976                          || test ! -s conftest.err'
1977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1978   (eval $ac_try) 2>&5
1979   ac_status=$?
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); }; } &&
1982          { ac_try='test -s conftest.$ac_objext'
1983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1984   (eval $ac_try) 2>&5
1985   ac_status=$?
1986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987   (exit $ac_status); }; }; then
1988   ac_compiler_gnu=yes
1989 else
1990   echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 ac_compiler_gnu=no
1994 fi
1995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1997
1998 fi
1999 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2000 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2001 GCC=`test $ac_compiler_gnu = yes && echo yes`
2002 ac_test_CFLAGS=${CFLAGS+set}
2003 ac_save_CFLAGS=$CFLAGS
2004 CFLAGS="-g"
2005 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2006 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2007 if test "${ac_cv_prog_cc_g+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   cat >conftest.$ac_ext <<_ACEOF
2011 /* confdefs.h.  */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h.  */
2016
2017 int
2018 main ()
2019 {
2020
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 rm -f conftest.$ac_objext
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027   (eval $ac_compile) 2>conftest.er1
2028   ac_status=$?
2029   grep -v '^ *+' conftest.er1 >conftest.err
2030   rm -f conftest.er1
2031   cat conftest.err >&5
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); } &&
2034          { ac_try='test -z "$ac_c_werror_flag"
2035                          || test ! -s conftest.err'
2036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037   (eval $ac_try) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); }; } &&
2041          { ac_try='test -s conftest.$ac_objext'
2042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043   (eval $ac_try) 2>&5
2044   ac_status=$?
2045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046   (exit $ac_status); }; }; then
2047   ac_cv_prog_cc_g=yes
2048 else
2049   echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052 ac_cv_prog_cc_g=no
2053 fi
2054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2058 if test "$ac_test_CFLAGS" = set; then
2059   CFLAGS=$ac_save_CFLAGS
2060 elif test $ac_cv_prog_cc_g = yes; then
2061   if test "$GCC" = yes; then
2062     CFLAGS="-g -O2"
2063   else
2064     CFLAGS="-g"
2065   fi
2066 else
2067   if test "$GCC" = yes; then
2068     CFLAGS="-O2"
2069   else
2070     CFLAGS=
2071   fi
2072 fi
2073 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   ac_cv_prog_cc_stdc=no
2079 ac_save_CC=$CC
2080 cat >conftest.$ac_ext <<_ACEOF
2081 /* confdefs.h.  */
2082 _ACEOF
2083 cat confdefs.h >>conftest.$ac_ext
2084 cat >>conftest.$ac_ext <<_ACEOF
2085 /* end confdefs.h.  */
2086 #include <stdarg.h>
2087 #include <stdio.h>
2088 #include <sys/types.h>
2089 #include <sys/stat.h>
2090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2091 struct buf { int x; };
2092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2093 static char *e (p, i)
2094      char **p;
2095      int i;
2096 {
2097   return p[i];
2098 }
2099 static char *f (char * (*g) (char **, int), char **p, ...)
2100 {
2101   char *s;
2102   va_list v;
2103   va_start (v,p);
2104   s = g (p, va_arg (v,int));
2105   va_end (v);
2106   return s;
2107 }
2108
2109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2110    function prototypes and stuff, but not '\xHH' hex character constants.
2111    These don't provoke an error unfortunately, instead are silently treated
2112    as 'x'.  The following induces an error, until -std1 is added to get
2113    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2114    array size at least.  It's necessary to write '\x00'==0 to get something
2115    that's true only with -std1.  */
2116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2117
2118 int test (int i, double x);
2119 struct s1 {int (*f) (int a);};
2120 struct s2 {int (*f) (double a);};
2121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2122 int argc;
2123 char **argv;
2124 int
2125 main ()
2126 {
2127 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 # Don't try gcc -ansi; that turns off useful extensions and
2133 # breaks some systems' header files.
2134 # AIX                   -qlanglvl=ansi
2135 # Ultrix and OSF/1      -std1
2136 # HP-UX 10.20 and later -Ae
2137 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2138 # SVR4                  -Xc -D__EXTENSIONS__
2139 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2140 do
2141   CC="$ac_save_CC $ac_arg"
2142   rm -f conftest.$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144   (eval $ac_compile) 2>conftest.er1
2145   ac_status=$?
2146   grep -v '^ *+' conftest.er1 >conftest.err
2147   rm -f conftest.er1
2148   cat conftest.err >&5
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); } &&
2151          { ac_try='test -z "$ac_c_werror_flag"
2152                          || test ! -s conftest.err'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; } &&
2158          { ac_try='test -s conftest.$ac_objext'
2159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160   (eval $ac_try) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; }; then
2164   ac_cv_prog_cc_stdc=$ac_arg
2165 break
2166 else
2167   echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 fi
2171 rm -f conftest.err conftest.$ac_objext
2172 done
2173 rm -f conftest.$ac_ext conftest.$ac_objext
2174 CC=$ac_save_CC
2175
2176 fi
2177
2178 case "x$ac_cv_prog_cc_stdc" in
2179   x|xno)
2180     echo "$as_me:$LINENO: result: none needed" >&5
2181 echo "${ECHO_T}none needed" >&6 ;;
2182   *)
2183     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2185     CC="$CC $ac_cv_prog_cc_stdc" ;;
2186 esac
2187
2188 # Some people use a C++ compiler to compile C.  Since we use `exit',
2189 # in C++ we need to declare it.  In case someone uses the same compiler
2190 # for both compiling C and C++ we need to have the C++ compiler decide
2191 # the declaration of exit, since it's the most demanding environment.
2192 cat >conftest.$ac_ext <<_ACEOF
2193 #ifndef __cplusplus
2194   choke me
2195 #endif
2196 _ACEOF
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199   (eval $ac_compile) 2>conftest.er1
2200   ac_status=$?
2201   grep -v '^ *+' conftest.er1 >conftest.err
2202   rm -f conftest.er1
2203   cat conftest.err >&5
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); } &&
2206          { ac_try='test -z "$ac_c_werror_flag"
2207                          || test ! -s conftest.err'
2208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209   (eval $ac_try) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }; } &&
2213          { ac_try='test -s conftest.$ac_objext'
2214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215   (eval $ac_try) 2>&5
2216   ac_status=$?
2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218   (exit $ac_status); }; }; then
2219   for ac_declaration in \
2220    '' \
2221    'extern "C" void std::exit (int) throw (); using std::exit;' \
2222    'extern "C" void std::exit (int); using std::exit;' \
2223    'extern "C" void exit (int) throw ();' \
2224    'extern "C" void exit (int);' \
2225    'void exit (int);'
2226 do
2227   cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h.  */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h.  */
2233 $ac_declaration
2234 #include <stdlib.h>
2235 int
2236 main ()
2237 {
2238 exit (42);
2239   ;
2240   return 0;
2241 }
2242 _ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245   (eval $ac_compile) 2>conftest.er1
2246   ac_status=$?
2247   grep -v '^ *+' conftest.er1 >conftest.err
2248   rm -f conftest.er1
2249   cat conftest.err >&5
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); } &&
2252          { ac_try='test -z "$ac_c_werror_flag"
2253                          || test ! -s conftest.err'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; } &&
2259          { ac_try='test -s conftest.$ac_objext'
2260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261   (eval $ac_try) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; }; then
2265   :
2266 else
2267   echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 continue
2271 fi
2272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273   cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h.  */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h.  */
2279 $ac_declaration
2280 int
2281 main ()
2282 {
2283 exit (42);
2284   ;
2285   return 0;
2286 }
2287 _ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290   (eval $ac_compile) 2>conftest.er1
2291   ac_status=$?
2292   grep -v '^ *+' conftest.er1 >conftest.err
2293   rm -f conftest.er1
2294   cat conftest.err >&5
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); } &&
2297          { ac_try='test -z "$ac_c_werror_flag"
2298                          || test ! -s conftest.err'
2299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300   (eval $ac_try) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }; } &&
2304          { ac_try='test -s conftest.$ac_objext'
2305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306   (eval $ac_try) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; }; then
2310   break
2311 else
2312   echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 fi
2316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2317 done
2318 rm -f conftest*
2319 if test -n "$ac_declaration"; then
2320   echo '#ifdef __cplusplus' >>confdefs.h
2321   echo $ac_declaration      >>confdefs.h
2322   echo '#endif'             >>confdefs.h
2323 fi
2324
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 fi
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338 cat >>confdefs.h <<\_ACEOF
2339 #define _GNU_SOURCE 1
2340 _ACEOF
2341
2342
2343
2344 ac_ext=c
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2351 # On Suns, sometimes $CPP names a directory.
2352 if test -n "$CPP" && test -d "$CPP"; then
2353   CPP=
2354 fi
2355 if test -z "$CPP"; then
2356   if test "${ac_cv_prog_CPP+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359       # Double quotes because CPP needs to be expanded
2360     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2361     do
2362       ac_preproc_ok=false
2363 for ac_c_preproc_warn_flag in '' yes
2364 do
2365   # Use a header file that comes with gcc, so configuring glibc
2366   # with a fresh cross-compiler works.
2367   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2368   # <limits.h> exists even on freestanding compilers.
2369   # On the NeXT, cc -E runs the code through the compiler's parser,
2370   # not just through cpp. "Syntax error" is here to catch this case.
2371   cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377 #ifdef __STDC__
2378 # include <limits.h>
2379 #else
2380 # include <assert.h>
2381 #endif
2382                      Syntax error
2383 _ACEOF
2384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2385   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2386   ac_status=$?
2387   grep -v '^ *+' conftest.er1 >conftest.err
2388   rm -f conftest.er1
2389   cat conftest.err >&5
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); } >/dev/null; then
2392   if test -s conftest.err; then
2393     ac_cpp_err=$ac_c_preproc_warn_flag
2394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2395   else
2396     ac_cpp_err=
2397   fi
2398 else
2399   ac_cpp_err=yes
2400 fi
2401 if test -z "$ac_cpp_err"; then
2402   :
2403 else
2404   echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407   # Broken: fails on valid input.
2408 continue
2409 fi
2410 rm -f conftest.err conftest.$ac_ext
2411
2412   # OK, works on sane cases.  Now check whether non-existent headers
2413   # can be detected and how.
2414   cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h.  */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h.  */
2420 #include <ac_nonexistent.h>
2421 _ACEOF
2422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2424   ac_status=$?
2425   grep -v '^ *+' conftest.er1 >conftest.err
2426   rm -f conftest.er1
2427   cat conftest.err >&5
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); } >/dev/null; then
2430   if test -s conftest.err; then
2431     ac_cpp_err=$ac_c_preproc_warn_flag
2432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2433   else
2434     ac_cpp_err=
2435   fi
2436 else
2437   ac_cpp_err=yes
2438 fi
2439 if test -z "$ac_cpp_err"; then
2440   # Broken: success on invalid input.
2441 continue
2442 else
2443   echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446   # Passes both tests.
2447 ac_preproc_ok=:
2448 break
2449 fi
2450 rm -f conftest.err conftest.$ac_ext
2451
2452 done
2453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2454 rm -f conftest.err conftest.$ac_ext
2455 if $ac_preproc_ok; then
2456   break
2457 fi
2458
2459     done
2460     ac_cv_prog_CPP=$CPP
2461
2462 fi
2463   CPP=$ac_cv_prog_CPP
2464 else
2465   ac_cv_prog_CPP=$CPP
2466 fi
2467 echo "$as_me:$LINENO: result: $CPP" >&5
2468 echo "${ECHO_T}$CPP" >&6
2469 ac_preproc_ok=false
2470 for ac_c_preproc_warn_flag in '' yes
2471 do
2472   # Use a header file that comes with gcc, so configuring glibc
2473   # with a fresh cross-compiler works.
2474   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475   # <limits.h> exists even on freestanding compilers.
2476   # On the NeXT, cc -E runs the code through the compiler's parser,
2477   # not just through cpp. "Syntax error" is here to catch this case.
2478   cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484 #ifdef __STDC__
2485 # include <limits.h>
2486 #else
2487 # include <assert.h>
2488 #endif
2489                      Syntax error
2490 _ACEOF
2491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2493   ac_status=$?
2494   grep -v '^ *+' conftest.er1 >conftest.err
2495   rm -f conftest.er1
2496   cat conftest.err >&5
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); } >/dev/null; then
2499   if test -s conftest.err; then
2500     ac_cpp_err=$ac_c_preproc_warn_flag
2501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2502   else
2503     ac_cpp_err=
2504   fi
2505 else
2506   ac_cpp_err=yes
2507 fi
2508 if test -z "$ac_cpp_err"; then
2509   :
2510 else
2511   echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514   # Broken: fails on valid input.
2515 continue
2516 fi
2517 rm -f conftest.err conftest.$ac_ext
2518
2519   # OK, works on sane cases.  Now check whether non-existent headers
2520   # can be detected and how.
2521   cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h.  */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h.  */
2527 #include <ac_nonexistent.h>
2528 _ACEOF
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531   ac_status=$?
2532   grep -v '^ *+' conftest.er1 >conftest.err
2533   rm -f conftest.er1
2534   cat conftest.err >&5
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); } >/dev/null; then
2537   if test -s conftest.err; then
2538     ac_cpp_err=$ac_c_preproc_warn_flag
2539     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2540   else
2541     ac_cpp_err=
2542   fi
2543 else
2544   ac_cpp_err=yes
2545 fi
2546 if test -z "$ac_cpp_err"; then
2547   # Broken: success on invalid input.
2548 continue
2549 else
2550   echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553   # Passes both tests.
2554 ac_preproc_ok=:
2555 break
2556 fi
2557 rm -f conftest.err conftest.$ac_ext
2558
2559 done
2560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561 rm -f conftest.err conftest.$ac_ext
2562 if $ac_preproc_ok; then
2563   :
2564 else
2565   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&2;}
2571    { (exit 1); exit 1; }; }; }
2572 fi
2573
2574 ac_ext=c
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579
2580
2581 echo "$as_me:$LINENO: checking for egrep" >&5
2582 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2583 if test "${ac_cv_prog_egrep+set}" = set; then
2584   echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2587     then ac_cv_prog_egrep='grep -E'
2588     else ac_cv_prog_egrep='egrep'
2589     fi
2590 fi
2591 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2592 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2593  EGREP=$ac_cv_prog_egrep
2594
2595
2596
2597 echo "$as_me:$LINENO: checking for AIX" >&5
2598 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h.  */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h.  */
2605 #ifdef _AIX
2606   yes
2607 #endif
2608
2609 _ACEOF
2610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2611   $EGREP "yes" >/dev/null 2>&1; then
2612   echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 cat >>confdefs.h <<\_ACEOF
2615 #define _ALL_SOURCE 1
2616 _ACEOF
2617
2618 else
2619   echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6
2621 fi
2622 rm -f conftest*
2623
2624
2625 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2626 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2627 if test "${ac_cv_search_strerror+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   ac_func_search_save_LIBS=$LIBS
2631 ac_cv_search_strerror=no
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638
2639 /* Override any gcc2 internal prototype to avoid an error.  */
2640 #ifdef __cplusplus
2641 extern "C"
2642 #endif
2643 /* We use char because int might match the return type of a gcc2
2644    builtin and then its argument prototype would still apply.  */
2645 char strerror ();
2646 int
2647 main ()
2648 {
2649 strerror ();
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext conftest$ac_exeext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2656   (eval $ac_link) 2>conftest.er1
2657   ac_status=$?
2658   grep -v '^ *+' conftest.er1 >conftest.err
2659   rm -f conftest.er1
2660   cat conftest.err >&5
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); } &&
2663          { ac_try='test -z "$ac_c_werror_flag"
2664                          || test ! -s conftest.err'
2665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666   (eval $ac_try) 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }; } &&
2670          { ac_try='test -s conftest$ac_exeext'
2671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672   (eval $ac_try) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }; }; then
2676   ac_cv_search_strerror="none required"
2677 else
2678   echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681 fi
2682 rm -f conftest.err conftest.$ac_objext \
2683       conftest$ac_exeext conftest.$ac_ext
2684 if test "$ac_cv_search_strerror" = no; then
2685   for ac_lib in cposix; do
2686     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2687     cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h.  */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h.  */
2693
2694 /* Override any gcc2 internal prototype to avoid an error.  */
2695 #ifdef __cplusplus
2696 extern "C"
2697 #endif
2698 /* We use char because int might match the return type of a gcc2
2699    builtin and then its argument prototype would still apply.  */
2700 char strerror ();
2701 int
2702 main ()
2703 {
2704 strerror ();
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext conftest$ac_exeext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2711   (eval $ac_link) 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag"
2719                          || test ! -s conftest.err'
2720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721   (eval $ac_try) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; } &&
2725          { ac_try='test -s conftest$ac_exeext'
2726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727   (eval $ac_try) 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; }; then
2731   ac_cv_search_strerror="-l$ac_lib"
2732 break
2733 else
2734   echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737 fi
2738 rm -f conftest.err conftest.$ac_objext \
2739       conftest$ac_exeext conftest.$ac_ext
2740   done
2741 fi
2742 LIBS=$ac_func_search_save_LIBS
2743 fi
2744 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2745 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2746 if test "$ac_cv_search_strerror" != no; then
2747   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2748
2749 fi
2750
2751 if test -n "$ac_tool_prefix"; then
2752   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2754 echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756 if test "${ac_cv_prog_RANLIB+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   if test -n "$RANLIB"; then
2760   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767   for ac_exec_ext in '' $ac_executable_extensions; do
2768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771     break 2
2772   fi
2773 done
2774 done
2775
2776 fi
2777 fi
2778 RANLIB=$ac_cv_prog_RANLIB
2779 if test -n "$RANLIB"; then
2780   echo "$as_me:$LINENO: result: $RANLIB" >&5
2781 echo "${ECHO_T}$RANLIB" >&6
2782 else
2783   echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2785 fi
2786
2787 fi
2788 if test -z "$ac_cv_prog_RANLIB"; then
2789   ac_ct_RANLIB=$RANLIB
2790   # Extract the first word of "ranlib", so it can be a program name with args.
2791 set dummy ranlib; ac_word=$2
2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2795   echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797   if test -n "$ac_ct_RANLIB"; then
2798   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803   IFS=$as_save_IFS
2804   test -z "$as_dir" && as_dir=.
2805   for ac_exec_ext in '' $ac_executable_extensions; do
2806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807     ac_cv_prog_ac_ct_RANLIB="ranlib"
2808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809     break 2
2810   fi
2811 done
2812 done
2813
2814   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2815 fi
2816 fi
2817 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2818 if test -n "$ac_ct_RANLIB"; then
2819   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2820 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2821 else
2822   echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2824 fi
2825
2826   RANLIB=$ac_ct_RANLIB
2827 else
2828   RANLIB="$ac_cv_prog_RANLIB"
2829 fi
2830
2831 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2833 if test "${ac_cv_header_stdc+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   cat >conftest.$ac_ext <<_ACEOF
2837 /* confdefs.h.  */
2838 _ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h.  */
2842 #include <stdlib.h>
2843 #include <stdarg.h>
2844 #include <string.h>
2845 #include <float.h>
2846
2847 int
2848 main ()
2849 {
2850
2851   ;
2852   return 0;
2853 }
2854 _ACEOF
2855 rm -f conftest.$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857   (eval $ac_compile) 2>conftest.er1
2858   ac_status=$?
2859   grep -v '^ *+' conftest.er1 >conftest.err
2860   rm -f conftest.er1
2861   cat conftest.err >&5
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); } &&
2864          { ac_try='test -z "$ac_c_werror_flag"
2865                          || test ! -s conftest.err'
2866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867   (eval $ac_try) 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }; } &&
2871          { ac_try='test -s conftest.$ac_objext'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; }; then
2877   ac_cv_header_stdc=yes
2878 else
2879   echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2881
2882 ac_cv_header_stdc=no
2883 fi
2884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2885
2886 if test $ac_cv_header_stdc = yes; then
2887   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2888   cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894 #include <string.h>
2895
2896 _ACEOF
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898   $EGREP "memchr" >/dev/null 2>&1; then
2899   :
2900 else
2901   ac_cv_header_stdc=no
2902 fi
2903 rm -f conftest*
2904
2905 fi
2906
2907 if test $ac_cv_header_stdc = yes; then
2908   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2909   cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915 #include <stdlib.h>
2916
2917 _ACEOF
2918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919   $EGREP "free" >/dev/null 2>&1; then
2920   :
2921 else
2922   ac_cv_header_stdc=no
2923 fi
2924 rm -f conftest*
2925
2926 fi
2927
2928 if test $ac_cv_header_stdc = yes; then
2929   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2930   if test "$cross_compiling" = yes; then
2931   :
2932 else
2933   cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h.  */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h.  */
2939 #include <ctype.h>
2940 #if ((' ' & 0x0FF) == 0x020)
2941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2943 #else
2944 # define ISLOWER(c) \
2945                    (('a' <= (c) && (c) <= 'i') \
2946                      || ('j' <= (c) && (c) <= 'r') \
2947                      || ('s' <= (c) && (c) <= 'z'))
2948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2949 #endif
2950
2951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2952 int
2953 main ()
2954 {
2955   int i;
2956   for (i = 0; i < 256; i++)
2957     if (XOR (islower (i), ISLOWER (i))
2958         || toupper (i) != TOUPPER (i))
2959       exit(2);
2960   exit (0);
2961 }
2962 _ACEOF
2963 rm -f conftest$ac_exeext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965   (eval $ac_link) 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970   (eval $ac_try) 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; }; then
2974   :
2975 else
2976   echo "$as_me: program exited with status $ac_status" >&5
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980 ( exit $ac_status )
2981 ac_cv_header_stdc=no
2982 fi
2983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2984 fi
2985 fi
2986 fi
2987 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2988 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2989 if test $ac_cv_header_stdc = yes; then
2990
2991 cat >>confdefs.h <<\_ACEOF
2992 #define STDC_HEADERS 1
2993 _ACEOF
2994
2995 fi
2996
2997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3008                   inttypes.h stdint.h unistd.h
3009 do
3010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3011 echo "$as_me:$LINENO: checking for $ac_header" >&5
3012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h.  */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h.  */
3022 $ac_includes_default
3023
3024 #include <$ac_header>
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028   (eval $ac_compile) 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } &&
3035          { ac_try='test -z "$ac_c_werror_flag"
3036                          || test ! -s conftest.err'
3037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038   (eval $ac_try) 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; } &&
3042          { ac_try='test -s conftest.$ac_objext'
3043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044   (eval $ac_try) 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }; }; then
3048   eval "$as_ac_Header=yes"
3049 else
3050   echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 eval "$as_ac_Header=no"
3054 fi
3055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056 fi
3057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3060   cat >>confdefs.h <<_ACEOF
3061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3062 _ACEOF
3063
3064 fi
3065
3066 done
3067
3068
3069
3070   if test "${ac_cv_header_minix_config_h+set}" = set; then
3071   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3072 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3073 if test "${ac_cv_header_minix_config_h+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 fi
3076 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3077 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3078 else
3079   # Is the header compilable?
3080 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3081 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3082 cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088 $ac_includes_default
3089 #include <minix/config.h>
3090 _ACEOF
3091 rm -f conftest.$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093   (eval $ac_compile) 2>conftest.er1
3094   ac_status=$?
3095   grep -v '^ *+' conftest.er1 >conftest.err
3096   rm -f conftest.er1
3097   cat conftest.err >&5
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); } &&
3100          { ac_try='test -z "$ac_c_werror_flag"
3101                          || test ! -s conftest.err'
3102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103   (eval $ac_try) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; } &&
3107          { ac_try='test -s conftest.$ac_objext'
3108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109   (eval $ac_try) 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113   ac_header_compiler=yes
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 ac_header_compiler=no
3119 fi
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3122 echo "${ECHO_T}$ac_header_compiler" >&6
3123
3124 # Is the header present?
3125 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3126 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h.  */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h.  */
3133 #include <minix/config.h>
3134 _ACEOF
3135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } >/dev/null; then
3143   if test -s conftest.err; then
3144     ac_cpp_err=$ac_c_preproc_warn_flag
3145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146   else
3147     ac_cpp_err=
3148   fi
3149 else
3150   ac_cpp_err=yes
3151 fi
3152 if test -z "$ac_cpp_err"; then
3153   ac_header_preproc=yes
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158   ac_header_preproc=no
3159 fi
3160 rm -f conftest.err conftest.$ac_ext
3161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3162 echo "${ECHO_T}$ac_header_preproc" >&6
3163
3164 # So?  What about this header?
3165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3166   yes:no: )
3167     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3168 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3169     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3170 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3171     ac_header_preproc=yes
3172     ;;
3173   no:yes:* )
3174     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3175 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3176     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3177 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3178     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3179 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3180     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3181 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3182     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3183 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3184     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3185 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3186     (
3187       cat <<\_ASBOX
3188 ## ------------------------------------------ ##
3189 ## Report this to the AC_PACKAGE_NAME lists.  ##
3190 ## ------------------------------------------ ##
3191 _ASBOX
3192     ) |
3193       sed "s/^/$as_me: WARNING:     /" >&2
3194     ;;
3195 esac
3196 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3197 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3198 if test "${ac_cv_header_minix_config_h+set}" = set; then
3199   echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201   ac_cv_header_minix_config_h=$ac_header_preproc
3202 fi
3203 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3204 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3205
3206 fi
3207 if test $ac_cv_header_minix_config_h = yes; then
3208   MINIX=yes
3209 else
3210   MINIX=
3211 fi
3212
3213
3214   if test "$MINIX" = yes; then
3215
3216 cat >>confdefs.h <<\_ACEOF
3217 #define _POSIX_SOURCE 1
3218 _ACEOF
3219
3220
3221 cat >>confdefs.h <<\_ACEOF
3222 #define _POSIX_1_SOURCE 2
3223 _ACEOF
3224
3225
3226 cat >>confdefs.h <<\_ACEOF
3227 #define _MINIX 1
3228 _ACEOF
3229
3230   fi
3231
3232
3233
3234   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3235 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3236 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3237   echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239   cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h.  */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h.  */
3245
3246 #         define __EXTENSIONS__ 1
3247           $ac_includes_default
3248 int
3249 main ()
3250 {
3251
3252   ;
3253   return 0;
3254 }
3255 _ACEOF
3256 rm -f conftest.$ac_objext
3257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258   (eval $ac_compile) 2>conftest.er1
3259   ac_status=$?
3260   grep -v '^ *+' conftest.er1 >conftest.err
3261   rm -f conftest.er1
3262   cat conftest.err >&5
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); } &&
3265          { ac_try='test -z "$ac_c_werror_flag"
3266                          || test ! -s conftest.err'
3267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268   (eval $ac_try) 2>&5
3269   ac_status=$?
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); }; } &&
3272          { ac_try='test -s conftest.$ac_objext'
3273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274   (eval $ac_try) 2>&5
3275   ac_status=$?
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); }; }; then
3278   ac_cv_safe_to_define___extensions__=yes
3279 else
3280   echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 ac_cv_safe_to_define___extensions__=no
3284 fi
3285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286 fi
3287 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3288 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3289   test $ac_cv_safe_to_define___extensions__ = yes &&
3290     cat >>confdefs.h <<\_ACEOF
3291 #define __EXTENSIONS__ 1
3292 _ACEOF
3293
3294   cat >>confdefs.h <<\_ACEOF
3295 #define _ALL_SOURCE 1
3296 _ACEOF
3297
3298   cat >>confdefs.h <<\_ACEOF
3299 #define _GNU_SOURCE 1
3300 _ACEOF
3301
3302   cat >>confdefs.h <<\_ACEOF
3303 #define _POSIX_PTHREAD_SEMANTICS 1
3304 _ACEOF
3305
3306   cat >>confdefs.h <<\_ACEOF
3307 #define _TANDEM_SOURCE 1
3308 _ACEOF
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3320 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3321 if test "${am_cv_prog_cc_stdc+set}" = set; then
3322   echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324   am_cv_prog_cc_stdc=no
3325 ac_save_CC="$CC"
3326 # Don't try gcc -ansi; that turns off useful extensions and
3327 # breaks some systems' header files.
3328 # AIX                   -qlanglvl=ansi
3329 # Ultrix and OSF/1      -std1
3330 # HP-UX 10.20 and later -Ae
3331 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3332 # SVR4                  -Xc -D__EXTENSIONS__
3333 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334 do
3335   CC="$ac_save_CC $ac_arg"
3336   cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342 #include <stdarg.h>
3343 #include <stdio.h>
3344 #include <sys/types.h>
3345 #include <sys/stat.h>
3346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3347 struct buf { int x; };
3348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3349 static char *e (p, i)
3350      char **p;
3351      int i;
3352 {
3353   return p[i];
3354 }
3355 static char *f (char * (*g) (char **, int), char **p, ...)
3356 {
3357   char *s;
3358   va_list v;
3359   va_start (v,p);
3360   s = g (p, va_arg (v,int));
3361   va_end (v);
3362   return s;
3363 }
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368 int argc;
3369 char **argv;
3370
3371 int
3372 main ()
3373 {
3374
3375 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3376
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383   (eval $ac_compile) 2>conftest.er1
3384   ac_status=$?
3385   grep -v '^ *+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } &&
3390          { ac_try='test -z "$ac_c_werror_flag"
3391                          || test ! -s conftest.err'
3392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393   (eval $ac_try) 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }; } &&
3397          { ac_try='test -s conftest.$ac_objext'
3398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399   (eval $ac_try) 2>&5
3400   ac_status=$?
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); }; }; then
3403   am_cv_prog_cc_stdc="$ac_arg"; break
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 fi
3409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410 done
3411 CC="$ac_save_CC"
3412
3413 fi
3414
3415 if test -z "$am_cv_prog_cc_stdc"; then
3416   echo "$as_me:$LINENO: result: none needed" >&5
3417 echo "${ECHO_T}none needed" >&6
3418 else
3419   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3420 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3421 fi
3422 case "x$am_cv_prog_cc_stdc" in
3423   x|xno) ;;
3424   *) CC="$CC $am_cv_prog_cc_stdc" ;;
3425 esac
3426
3427
3428 ac_aux_dir=
3429 for ac_dir in .. $srcdir/..; do
3430   if test -f $ac_dir/install-sh; then
3431     ac_aux_dir=$ac_dir
3432     ac_install_sh="$ac_aux_dir/install-sh -c"
3433     break
3434   elif test -f $ac_dir/install.sh; then
3435     ac_aux_dir=$ac_dir
3436     ac_install_sh="$ac_aux_dir/install.sh -c"
3437     break
3438   elif test -f $ac_dir/shtool; then
3439     ac_aux_dir=$ac_dir
3440     ac_install_sh="$ac_aux_dir/shtool install -c"
3441     break
3442   fi
3443 done
3444 if test -z "$ac_aux_dir"; then
3445   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3446 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3447    { (exit 1); exit 1; }; }
3448 fi
3449 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3450 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3451 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3452
3453 # Make sure we can run config.sub.
3454 $ac_config_sub sun4 >/dev/null 2>&1 ||
3455   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3456 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3457    { (exit 1); exit 1; }; }
3458
3459 echo "$as_me:$LINENO: checking build system type" >&5
3460 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3461 if test "${ac_cv_build+set}" = set; then
3462   echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464   ac_cv_build_alias=$build_alias
3465 test -z "$ac_cv_build_alias" &&
3466   ac_cv_build_alias=`$ac_config_guess`
3467 test -z "$ac_cv_build_alias" &&
3468   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3469 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3470    { (exit 1); exit 1; }; }
3471 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3472   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3473 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3474    { (exit 1); exit 1; }; }
3475
3476 fi
3477 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3478 echo "${ECHO_T}$ac_cv_build" >&6
3479 build=$ac_cv_build
3480 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3481 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3482 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3483
3484
3485 echo "$as_me:$LINENO: checking host system type" >&5
3486 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3487 if test "${ac_cv_host+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   ac_cv_host_alias=$host_alias
3491 test -z "$ac_cv_host_alias" &&
3492   ac_cv_host_alias=$ac_cv_build_alias
3493 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3494   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3495 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3496    { (exit 1); exit 1; }; }
3497
3498 fi
3499 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3500 echo "${ECHO_T}$ac_cv_host" >&6
3501 host=$ac_cv_host
3502 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3503 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3504 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3505
3506
3507 echo "$as_me:$LINENO: checking target system type" >&5
3508 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3509 if test "${ac_cv_target+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   ac_cv_target_alias=$target_alias
3513 test "x$ac_cv_target_alias" = "x" &&
3514   ac_cv_target_alias=$ac_cv_host_alias
3515 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3516   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3517 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3518    { (exit 1); exit 1; }; }
3519
3520 fi
3521 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3522 echo "${ECHO_T}$ac_cv_target" >&6
3523 target=$ac_cv_target
3524 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3525 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3526 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3527
3528
3529 # The aliases save the names the user supplied, while $host etc.
3530 # will get canonicalized.
3531 test -n "$target_alias" &&
3532   test "$program_prefix$program_suffix$program_transform_name" = \
3533     NONENONEs,x,x, &&
3534   program_prefix=${target_alias}-
3535
3536
3537 CONFIG_OBS=
3538 CONFIG_DEPS=
3539 CONFIG_SRCS=
3540 ENABLE_CFLAGS=
3541
3542 CONFIG_ALL=
3543 CONFIG_CLEAN=
3544 CONFIG_INSTALL=
3545 CONFIG_UNINSTALL=
3546
3547 # If we haven't got the data from the intl directory,
3548 # assume NLS is disabled.
3549 USE_NLS=no
3550 LIBINTL=
3551 LIBINTL_DEP=
3552 INCINTL=
3553 XGETTEXT=
3554 GMSGFMT=
3555 POSUB=
3556
3557 if test -f  ../intl/config.intl; then
3558   .  ../intl/config.intl
3559 fi
3560 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3561 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3562 if test x"$USE_NLS" != xyes; then
3563   echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6
3565 else
3566   echo "$as_me:$LINENO: result: yes" >&5
3567 echo "${ECHO_T}yes" >&6
3568
3569 cat >>confdefs.h <<\_ACEOF
3570 #define ENABLE_NLS 1
3571 _ACEOF
3572
3573
3574   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3575 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3576   # Look for .po and .gmo files in the source directory.
3577   CATALOGS=
3578   XLINGUAS=
3579   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3580     # If there aren't any .gmo files the shell will give us the
3581     # literal string "../path/to/srcdir/po/*.gmo" which has to be
3582     # weeded out.
3583     case "$cat" in *\**)
3584       continue;;
3585     esac
3586     # The quadruple backslash is collapsed to a double backslash
3587     # by the backticks, then collapsed again by the double quotes,
3588     # leaving us with one backslash in the sed expression (right
3589     # before the dot that mustn't act as a wildcard).
3590     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3591     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3592     # The user is allowed to set LINGUAS to a list of languages to
3593     # install catalogs for.  If it's empty that means "all of them."
3594     if test "x$LINGUAS" = x; then
3595       CATALOGS="$CATALOGS $cat"
3596       XLINGUAS="$XLINGUAS $lang"
3597     else
3598       case "$LINGUAS" in *$lang*)
3599         CATALOGS="$CATALOGS $cat"
3600         XLINGUAS="$XLINGUAS $lang"
3601         ;;
3602       esac
3603     fi
3604   done
3605   LINGUAS="$XLINGUAS"
3606   echo "$as_me:$LINENO: result: $LINGUAS" >&5
3607 echo "${ECHO_T}$LINGUAS" >&6
3608
3609
3610     DATADIRNAME=share
3611
3612   INSTOBJEXT=.mo
3613
3614   GENCAT=gencat
3615
3616   CATOBJEXT=.gmo
3617
3618 fi
3619
3620 localedir='${datadir}/locale'
3621
3622
3623 if test x"$USE_NLS" = xyes; then
3624    CONFIG_ALL="$CONFIG_ALL all-po"
3625    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3626    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3627    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3628 fi
3629
3630
3631   GNULIB_MEMMEM=0;
3632   GNULIB_MEMPCPY=0;
3633   GNULIB_MEMRCHR=0;
3634   GNULIB_STPCPY=0;
3635   GNULIB_STPNCPY=0;
3636   GNULIB_STRCHRNUL=0;
3637   GNULIB_STRDUP=0;
3638   GNULIB_STRNDUP=0;
3639   GNULIB_STRNLEN=0;
3640   GNULIB_STRPBRK=0;
3641   GNULIB_STRSEP=0;
3642   GNULIB_STRSTR=0;
3643   GNULIB_STRCASESTR=0;
3644   GNULIB_STRTOK_R=0;
3645   GNULIB_MBSLEN=0;
3646   GNULIB_MBSNLEN=0;
3647   GNULIB_MBSCHR=0;
3648   GNULIB_MBSRCHR=0;
3649   GNULIB_MBSSTR=0;
3650   GNULIB_MBSCASECMP=0;
3651   GNULIB_MBSNCASECMP=0;
3652   GNULIB_MBSPCASECMP=0;
3653   GNULIB_MBSCASESTR=0;
3654   GNULIB_MBSCSPN=0;
3655   GNULIB_MBSPBRK=0;
3656   GNULIB_MBSSPN=0;
3657   GNULIB_MBSSEP=0;
3658   GNULIB_MBSTOK_R=0;
3659   GNULIB_STRERROR=0;
3660   GNULIB_STRSIGNAL=0;
3661     HAVE_DECL_MEMMEM=1;
3662   HAVE_MEMPCPY=1;
3663   HAVE_DECL_MEMRCHR=1;
3664   HAVE_STPCPY=1;
3665   HAVE_STPNCPY=1;
3666   HAVE_STRCHRNUL=1;
3667   HAVE_DECL_STRDUP=1;
3668   HAVE_STRNDUP=1;
3669   HAVE_DECL_STRNDUP=1;
3670   HAVE_DECL_STRNLEN=1;
3671   HAVE_STRPBRK=1;
3672   HAVE_STRSEP=1;
3673   HAVE_STRCASESTR=1;
3674   HAVE_DECL_STRTOK_R=1;
3675   HAVE_DECL_STRERROR=1;
3676   HAVE_DECL_STRSIGNAL=1;
3677   REPLACE_STRERROR=0;
3678   REPLACE_STRSIGNAL=0;
3679   REPLACE_MEMMEM=0;
3680   REPLACE_STRCASESTR=0;
3681   REPLACE_STRSTR=0;
3682
3683
3684       echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3685 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3686 if test "${ac_cv_have_decl_memmem+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h.  */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h.  */
3695 $ac_includes_default
3696 int
3697 main ()
3698 {
3699 #ifndef memmem
3700   char *p = (char *) memmem;
3701 #endif
3702
3703   ;
3704   return 0;
3705 }
3706 _ACEOF
3707 rm -f conftest.$ac_objext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709   (eval $ac_compile) 2>conftest.er1
3710   ac_status=$?
3711   grep -v '^ *+' conftest.er1 >conftest.err
3712   rm -f conftest.er1
3713   cat conftest.err >&5
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); } &&
3716          { ac_try='test -z "$ac_c_werror_flag"
3717                          || test ! -s conftest.err'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; } &&
3723          { ac_try='test -s conftest.$ac_objext'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; }; then
3729   ac_cv_have_decl_memmem=yes
3730 else
3731   echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 ac_cv_have_decl_memmem=no
3735 fi
3736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737 fi
3738 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3739 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3740 if test $ac_cv_have_decl_memmem = yes; then
3741
3742 cat >>confdefs.h <<_ACEOF
3743 #define HAVE_DECL_MEMMEM 1
3744 _ACEOF
3745
3746
3747 else
3748   cat >>confdefs.h <<_ACEOF
3749 #define HAVE_DECL_MEMMEM 0
3750 _ACEOF
3751
3752
3753 fi
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769 for ac_func in memmem
3770 do
3771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3772 echo "$as_me:$LINENO: checking for $ac_func" >&5
3773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3774 if eval "test \"\${$as_ac_var+set}\" = set"; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3785 #define $ac_func innocuous_$ac_func
3786
3787 /* System header to define __stub macros and hopefully few prototypes,
3788     which can conflict with char $ac_func (); below.
3789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790     <limits.h> exists even on freestanding compilers.  */
3791
3792 #ifdef __STDC__
3793 # include <limits.h>
3794 #else
3795 # include <assert.h>
3796 #endif
3797
3798 #undef $ac_func
3799
3800 /* Override any gcc2 internal prototype to avoid an error.  */
3801 #ifdef __cplusplus
3802 extern "C"
3803 {
3804 #endif
3805 /* We use char because int might match the return type of a gcc2
3806    builtin and then its argument prototype would still apply.  */
3807 char $ac_func ();
3808 /* The GNU C library defines this for functions which it implements
3809     to always fail with ENOSYS.  Some functions are actually named
3810     something starting with __ and the normal name is an alias.  */
3811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3812 choke me
3813 #else
3814 char (*f) () = $ac_func;
3815 #endif
3816 #ifdef __cplusplus
3817 }
3818 #endif
3819
3820 int
3821 main ()
3822 {
3823 return f != $ac_func;
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 rm -f conftest.$ac_objext conftest$ac_exeext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830   (eval $ac_link) 2>conftest.er1
3831   ac_status=$?
3832   grep -v '^ *+' conftest.er1 >conftest.err
3833   rm -f conftest.er1
3834   cat conftest.err >&5
3835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); } &&
3837          { ac_try='test -z "$ac_c_werror_flag"
3838                          || test ! -s conftest.err'
3839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840   (eval $ac_try) 2>&5
3841   ac_status=$?
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); }; } &&
3844          { ac_try='test -s conftest$ac_exeext'
3845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846   (eval $ac_try) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; }; then
3850   eval "$as_ac_var=yes"
3851 else
3852   echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855 eval "$as_ac_var=no"
3856 fi
3857 rm -f conftest.err conftest.$ac_objext \
3858       conftest$ac_exeext conftest.$ac_ext
3859 fi
3860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3862 if test `eval echo '${'$as_ac_var'}'` = yes; then
3863   cat >>confdefs.h <<_ACEOF
3864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3865 _ACEOF
3866
3867 else
3868
3869     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3870
3871 fi
3872 done
3873
3874
3875
3876   :
3877
3878
3879
3880
3881
3882   if test $ac_cv_have_decl_memmem = no; then
3883     HAVE_DECL_MEMMEM=0
3884   fi
3885   :
3886
3887
3888   echo "$as_me:$LINENO: checking for long long int" >&5
3889 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3890 if test "${ac_cv_type_long_long_int+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   cat >conftest.$ac_ext <<_ACEOF
3894
3895   /* confdefs.h.  */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h.  */
3900 /* For now, do not test the preprocessor; as of 2007 there are too many
3901          implementations with broken preprocessors.  Perhaps this can
3902          be revisited in 2012.  In the meantime, code should not expect
3903          #if to work with literals wider than 32 bits.  */
3904       /* Test literals.  */
3905       long long int ll = 9223372036854775807ll;
3906       long long int nll = -9223372036854775807LL;
3907       unsigned long long int ull = 18446744073709551615ULL;
3908       /* Test constant expressions.   */
3909       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3910                      ? 1 : -1)];
3911       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3912                      ? 1 : -1)];
3913       int i = 63;
3914 int
3915 main ()
3916 {
3917 /* Test availability of runtime routines for shift and division.  */
3918       long long int llmax = 9223372036854775807ll;
3919       unsigned long long int ullmax = 18446744073709551615ull;
3920       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3921               | (llmax / ll) | (llmax % ll)
3922               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3923               | (ullmax / ull) | (ullmax % ull));
3924   ;
3925   return 0;
3926 }
3927
3928 _ACEOF
3929 rm -f conftest.$ac_objext conftest$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931   (eval $ac_link) 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } &&
3938          { ac_try='test -z "$ac_c_werror_flag"
3939                          || test ! -s conftest.err'
3940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941   (eval $ac_try) 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }; } &&
3945          { ac_try='test -s conftest$ac_exeext'
3946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947   (eval $ac_try) 2>&5
3948   ac_status=$?
3949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950   (exit $ac_status); }; }; then
3951                         if test "$cross_compiling" = yes; then
3952   ac_cv_type_long_long_int=yes
3953 else
3954   cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h.  */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h.  */
3960 #include <limits.h>
3961                #ifndef LLONG_MAX
3962                # define HALF \
3963                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3964                # define LLONG_MAX (HALF - 1 + HALF)
3965                #endif
3966 int
3967 main ()
3968 {
3969 long long int n = 1;
3970                int i;
3971                for (i = 0; ; i++)
3972                  {
3973                    long long int m = n << i;
3974                    if (m >> i != n)
3975                      return 1;
3976                    if (LLONG_MAX / 2 < m)
3977                      break;
3978                  }
3979                return 0;
3980   ;
3981   return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest$ac_exeext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3986   (eval $ac_link) 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991   (eval $ac_try) 2>&5
3992   ac_status=$?
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); }; }; then
3995   ac_cv_type_long_long_int=yes
3996 else
3997   echo "$as_me: program exited with status $ac_status" >&5
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001 ( exit $ac_status )
4002 ac_cv_type_long_long_int=no
4003 fi
4004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4005 fi
4006 else
4007   echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010 ac_cv_type_long_long_int=no
4011 fi
4012 rm -f conftest.err conftest.$ac_objext \
4013       conftest$ac_exeext conftest.$ac_ext
4014 fi
4015 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4016 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4017   if test $ac_cv_type_long_long_int = yes; then
4018
4019 cat >>confdefs.h <<\_ACEOF
4020 #define HAVE_LONG_LONG_INT 1
4021 _ACEOF
4022
4023   fi
4024
4025
4026   echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4027 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4028 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   cat >conftest.$ac_ext <<_ACEOF
4032
4033   /* confdefs.h.  */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h.  */
4038 /* For now, do not test the preprocessor; as of 2007 there are too many
4039          implementations with broken preprocessors.  Perhaps this can
4040          be revisited in 2012.  In the meantime, code should not expect
4041          #if to work with literals wider than 32 bits.  */
4042       /* Test literals.  */
4043       long long int ll = 9223372036854775807ll;
4044       long long int nll = -9223372036854775807LL;
4045       unsigned long long int ull = 18446744073709551615ULL;
4046       /* Test constant expressions.   */
4047       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4048                      ? 1 : -1)];
4049       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4050                      ? 1 : -1)];
4051       int i = 63;
4052 int
4053 main ()
4054 {
4055 /* Test availability of runtime routines for shift and division.  */
4056       long long int llmax = 9223372036854775807ll;
4057       unsigned long long int ullmax = 18446744073709551615ull;
4058       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4059               | (llmax / ll) | (llmax % ll)
4060               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4061               | (ullmax / ull) | (ullmax % ull));
4062   ;
4063   return 0;
4064 }
4065
4066 _ACEOF
4067 rm -f conftest.$ac_objext conftest$ac_exeext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4069   (eval $ac_link) 2>conftest.er1
4070   ac_status=$?
4071   grep -v '^ *+' conftest.er1 >conftest.err
4072   rm -f conftest.er1
4073   cat conftest.err >&5
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } &&
4076          { ac_try='test -z "$ac_c_werror_flag"
4077                          || test ! -s conftest.err'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; } &&
4083          { ac_try='test -s conftest$ac_exeext'
4084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085   (eval $ac_try) 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; }; then
4089   ac_cv_type_unsigned_long_long_int=yes
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 ac_cv_type_unsigned_long_long_int=no
4095 fi
4096 rm -f conftest.err conftest.$ac_objext \
4097       conftest$ac_exeext conftest.$ac_ext
4098 fi
4099 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4100 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4101   if test $ac_cv_type_unsigned_long_long_int = yes; then
4102
4103 cat >>confdefs.h <<\_ACEOF
4104 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4105 _ACEOF
4106
4107   fi
4108
4109
4110
4111   echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4112 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4113 if test "${gl_cv_have_include_next+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   rm -rf conftestd1 conftestd2
4117      mkdir conftestd1 conftestd2
4118      cat <<EOF > conftestd1/conftest.h
4119 #define DEFINED_IN_CONFTESTD1
4120 #include_next <conftest.h>
4121 #ifdef DEFINED_IN_CONFTESTD2
4122 int foo;
4123 #else
4124 #error "include_next doesn't work"
4125 #endif
4126 EOF
4127      cat <<EOF > conftestd2/conftest.h
4128 #ifndef DEFINED_IN_CONFTESTD1
4129 #error "include_next test doesn't work"
4130 #endif
4131 #define DEFINED_IN_CONFTESTD2
4132 EOF
4133      save_CPPFLAGS="$CPPFLAGS"
4134      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4135      cat >conftest.$ac_ext <<_ACEOF
4136 #include <conftest.h>
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140   (eval $ac_compile) 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } &&
4147          { ac_try='test -z "$ac_c_werror_flag"
4148                          || test ! -s conftest.err'
4149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150   (eval $ac_try) 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; } &&
4154          { ac_try='test -s conftest.$ac_objext'
4155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156   (eval $ac_try) 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; }; then
4160   gl_cv_have_include_next=yes
4161 else
4162   echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165 gl_cv_have_include_next=no
4166 fi
4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168      CPPFLAGS="$save_CPPFLAGS"
4169      rm -rf conftestd1 conftestd2
4170
4171 fi
4172 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4173 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4174   if test $gl_cv_have_include_next = yes; then
4175
4176
4177 cat >>confdefs.h <<\_ACEOF
4178 #define HAVE_INCLUDE_NEXT 1
4179 _ACEOF
4180
4181
4182     INCLUDE_NEXT=include_next
4183   else
4184     INCLUDE_NEXT=include
4185   fi
4186
4187
4188
4189
4190
4191
4192
4193 for ac_header in $gl_header_list
4194 do
4195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4197   echo "$as_me:$LINENO: checking for $ac_header" >&5
4198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 fi
4202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4204 else
4205   # Is the header compilable?
4206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h.  */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h.  */
4214 $ac_includes_default
4215 #include <$ac_header>
4216 _ACEOF
4217 rm -f conftest.$ac_objext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4219   (eval $ac_compile) 2>conftest.er1
4220   ac_status=$?
4221   grep -v '^ *+' conftest.er1 >conftest.err
4222   rm -f conftest.er1
4223   cat conftest.err >&5
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); } &&
4226          { ac_try='test -z "$ac_c_werror_flag"
4227                          || test ! -s conftest.err'
4228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229   (eval $ac_try) 2>&5
4230   ac_status=$?
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); }; } &&
4233          { ac_try='test -s conftest.$ac_objext'
4234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235   (eval $ac_try) 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }; }; then
4239   ac_header_compiler=yes
4240 else
4241   echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244 ac_header_compiler=no
4245 fi
4246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4248 echo "${ECHO_T}$ac_header_compiler" >&6
4249
4250 # Is the header present?
4251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h.  */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h.  */
4259 #include <$ac_header>
4260 _ACEOF
4261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4263   ac_status=$?
4264   grep -v '^ *+' conftest.er1 >conftest.err
4265   rm -f conftest.er1
4266   cat conftest.err >&5
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } >/dev/null; then
4269   if test -s conftest.err; then
4270     ac_cpp_err=$ac_c_preproc_warn_flag
4271     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4272   else
4273     ac_cpp_err=
4274   fi
4275 else
4276   ac_cpp_err=yes
4277 fi
4278 if test -z "$ac_cpp_err"; then
4279   ac_header_preproc=yes
4280 else
4281   echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4283
4284   ac_header_preproc=no
4285 fi
4286 rm -f conftest.err conftest.$ac_ext
4287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4288 echo "${ECHO_T}$ac_header_preproc" >&6
4289
4290 # So?  What about this header?
4291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4292   yes:no: )
4293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4297     ac_header_preproc=yes
4298     ;;
4299   no:yes:* )
4300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4312     (
4313       cat <<\_ASBOX
4314 ## ------------------------------------------ ##
4315 ## Report this to the AC_PACKAGE_NAME lists.  ##
4316 ## ------------------------------------------ ##
4317 _ASBOX
4318     ) |
4319       sed "s/^/$as_me: WARNING:     /" >&2
4320     ;;
4321 esac
4322 echo "$as_me:$LINENO: checking for $ac_header" >&5
4323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   eval "$as_ac_Header=\$ac_header_preproc"
4328 fi
4329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4331
4332 fi
4333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4334   cat >>confdefs.h <<_ACEOF
4335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4336 _ACEOF
4337
4338 fi
4339
4340 done
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4354 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4355 if test "${ac_cv_c_restrict+set}" = set; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358   ac_cv_c_restrict=no
4359    # The order here caters to the fact that C++ does not require restrict.
4360    for ac_kw in __restrict __restrict__ _Restrict restrict; do
4361      cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h.  */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h.  */
4367 typedef int * int_ptr;
4368         int foo (int_ptr $ac_kw ip) {
4369         return ip[0];
4370        }
4371 int
4372 main ()
4373 {
4374 int s[1];
4375         int * $ac_kw t = s;
4376         t[0] = 0;
4377         return foo(t)
4378   ;
4379   return 0;
4380 }
4381 _ACEOF
4382 rm -f conftest.$ac_objext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384   (eval $ac_compile) 2>conftest.er1
4385   ac_status=$?
4386   grep -v '^ *+' conftest.er1 >conftest.err
4387   rm -f conftest.er1
4388   cat conftest.err >&5
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } &&
4391          { ac_try='test -z "$ac_c_werror_flag"
4392                          || test ! -s conftest.err'
4393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394   (eval $ac_try) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }; } &&
4398          { ac_try='test -s conftest.$ac_objext'
4399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400   (eval $ac_try) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }; }; then
4404   ac_cv_c_restrict=$ac_kw
4405 else
4406   echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 fi
4410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4411      test "$ac_cv_c_restrict" != no && break
4412    done
4413
4414 fi
4415 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4416 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4417
4418
4419  case $ac_cv_c_restrict in
4420    restrict) ;;
4421    no) cat >>confdefs.h <<\_ACEOF
4422 #define restrict
4423 _ACEOF
4424  ;;
4425    *)  cat >>confdefs.h <<_ACEOF
4426 #define restrict $ac_cv_c_restrict
4427 _ACEOF
4428  ;;
4429  esac
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443   :
4444
4445
4446
4447
4448
4449
4450
4451      if test $gl_cv_have_include_next = yes; then
4452        gl_cv_next_string_h='<'string.h'>'
4453      else
4454        echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4455 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4456 if test "${gl_cv_next_string_h+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459
4460           if test $ac_cv_header_string_h = yes; then
4461             cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h.  */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h.  */
4467 #include <string.h>
4468
4469 _ACEOF
4470                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471                sed -n '\#/string.h#{
4472                  s#.*"\(.*/string.h\)".*#\1#
4473                  s#^/[^/]#//&#
4474                  p
4475                  q
4476                }'`'"'
4477           else
4478             gl_cv_next_string_h='<'string.h'>'
4479           fi
4480
4481 fi
4482 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4483 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4484      fi
4485      NEXT_STRING_H=$gl_cv_next_string_h
4486
4487
4488
4489
4490
4491   GNULIB_WCWIDTH=0;
4492     HAVE_DECL_WCWIDTH=1;
4493   REPLACE_WCWIDTH=0;
4494   WCHAR_H=
4495
4496
4497
4498
4499
4500 if false; then
4501   GL_COND_LIBTOOL_TRUE=
4502   GL_COND_LIBTOOL_FALSE='#'
4503 else
4504   GL_COND_LIBTOOL_TRUE='#'
4505   GL_COND_LIBTOOL_FALSE=
4506 fi
4507
4508   gl_cond_libtool=false
4509   gl_libdeps=
4510   gl_ltlibdeps=
4511
4512
4513
4514   gl_source_base='gnulib'
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524 for ac_func in memchr
4525 do
4526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4527 echo "$as_me:$LINENO: checking for $ac_func" >&5
4528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4529 if eval "test \"\${$as_ac_var+set}\" = set"; then
4530   echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532   cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h.  */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h.  */
4538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4540 #define $ac_func innocuous_$ac_func
4541
4542 /* System header to define __stub macros and hopefully few prototypes,
4543     which can conflict with char $ac_func (); below.
4544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545     <limits.h> exists even on freestanding compilers.  */
4546
4547 #ifdef __STDC__
4548 # include <limits.h>
4549 #else
4550 # include <assert.h>
4551 #endif
4552
4553 #undef $ac_func
4554
4555 /* Override any gcc2 internal prototype to avoid an error.  */
4556 #ifdef __cplusplus
4557 extern "C"
4558 {
4559 #endif
4560 /* We use char because int might match the return type of a gcc2
4561    builtin and then its argument prototype would still apply.  */
4562 char $ac_func ();
4563 /* The GNU C library defines this for functions which it implements
4564     to always fail with ENOSYS.  Some functions are actually named
4565     something starting with __ and the normal name is an alias.  */
4566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4567 choke me
4568 #else
4569 char (*f) () = $ac_func;
4570 #endif
4571 #ifdef __cplusplus
4572 }
4573 #endif
4574
4575 int
4576 main ()
4577 {
4578 return f != $ac_func;
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext conftest$ac_exeext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585   (eval $ac_link) 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } &&
4592          { ac_try='test -z "$ac_c_werror_flag"
4593                          || test ! -s conftest.err'
4594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595   (eval $ac_try) 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }; } &&
4599          { ac_try='test -s conftest$ac_exeext'
4600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601   (eval $ac_try) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }; }; then
4605   eval "$as_ac_var=yes"
4606 else
4607   echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 eval "$as_ac_var=no"
4611 fi
4612 rm -f conftest.err conftest.$ac_objext \
4613       conftest$ac_exeext conftest.$ac_ext
4614 fi
4615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4617 if test `eval echo '${'$as_ac_var'}'` = yes; then
4618   cat >>confdefs.h <<_ACEOF
4619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4620 _ACEOF
4621
4622 else
4623
4624     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4625
4626 fi
4627 done
4628
4629
4630   if test $ac_cv_func_memchr = no; then
4631
4632
4633 for ac_header in bp-sym.h
4634 do
4635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4637   echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 fi
4642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4644 else
4645   # Is the header compilable?
4646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h.  */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h.  */
4654 $ac_includes_default
4655 #include <$ac_header>
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659   (eval $ac_compile) 2>conftest.er1
4660   ac_status=$?
4661   grep -v '^ *+' conftest.er1 >conftest.err
4662   rm -f conftest.er1
4663   cat conftest.err >&5
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } &&
4666          { ac_try='test -z "$ac_c_werror_flag"
4667                          || test ! -s conftest.err'
4668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669   (eval $ac_try) 2>&5
4670   ac_status=$?
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); }; } &&
4673          { ac_try='test -s conftest.$ac_objext'
4674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675   (eval $ac_try) 2>&5
4676   ac_status=$?
4677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); }; }; then
4679   ac_header_compiler=yes
4680 else
4681   echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684 ac_header_compiler=no
4685 fi
4686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4688 echo "${ECHO_T}$ac_header_compiler" >&6
4689
4690 # Is the header present?
4691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699 #include <$ac_header>
4700 _ACEOF
4701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4702   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4703   ac_status=$?
4704   grep -v '^ *+' conftest.er1 >conftest.err
4705   rm -f conftest.er1
4706   cat conftest.err >&5
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); } >/dev/null; then
4709   if test -s conftest.err; then
4710     ac_cpp_err=$ac_c_preproc_warn_flag
4711     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4712   else
4713     ac_cpp_err=
4714   fi
4715 else
4716   ac_cpp_err=yes
4717 fi
4718 if test -z "$ac_cpp_err"; then
4719   ac_header_preproc=yes
4720 else
4721   echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724   ac_header_preproc=no
4725 fi
4726 rm -f conftest.err conftest.$ac_ext
4727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4728 echo "${ECHO_T}$ac_header_preproc" >&6
4729
4730 # So?  What about this header?
4731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4732   yes:no: )
4733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4737     ac_header_preproc=yes
4738     ;;
4739   no:yes:* )
4740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4742     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4743 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4744     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4746     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4747 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4750     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4752     (
4753       cat <<\_ASBOX
4754 ## ------------------------------------------ ##
4755 ## Report this to the AC_PACKAGE_NAME lists.  ##
4756 ## ------------------------------------------ ##
4757 _ASBOX
4758     ) |
4759       sed "s/^/$as_me: WARNING:     /" >&2
4760     ;;
4761 esac
4762 echo "$as_me:$LINENO: checking for $ac_header" >&5
4763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   eval "$as_ac_Header=\$ac_header_preproc"
4768 fi
4769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4771
4772 fi
4773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4774   cat >>confdefs.h <<_ACEOF
4775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776 _ACEOF
4777
4778 fi
4779
4780 done
4781
4782
4783   fi
4784
4785
4786   echo "$as_me:$LINENO: checking for working memcmp" >&5
4787 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4788 if test "${ac_cv_func_memcmp_working+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   if test "$cross_compiling" = yes; then
4792   ac_cv_func_memcmp_working=no
4793 else
4794   cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 $ac_includes_default
4801 int
4802 main ()
4803 {
4804
4805   /* Some versions of memcmp are not 8-bit clean.  */
4806   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4807   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4808     exit (1);
4809
4810   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4811      or more and with at least one buffer not starting on a 4-byte boundary.
4812      William Lewis provided this test program.   */
4813   {
4814     char foo[21];
4815     char bar[21];
4816     int i;
4817     for (i = 0; i < 4; i++)
4818       {
4819         char *a = foo + i;
4820         char *b = bar + i;
4821         strcpy (a, "--------01111111");
4822         strcpy (b, "--------10000000");
4823         if (memcmp (a, b, 16) >= 0)
4824           exit (1);
4825       }
4826     exit (0);
4827   }
4828
4829   ;
4830   return 0;
4831 }
4832 _ACEOF
4833 rm -f conftest$ac_exeext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4835   (eval $ac_link) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840   (eval $ac_try) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; }; then
4844   ac_cv_func_memcmp_working=yes
4845 else
4846   echo "$as_me: program exited with status $ac_status" >&5
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850 ( exit $ac_status )
4851 ac_cv_func_memcmp_working=no
4852 fi
4853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4854 fi
4855 fi
4856 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4857 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4858 test $ac_cv_func_memcmp_working = no &&
4859
4860
4861
4862
4863
4864
4865   gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4866
4867
4868     if test $ac_cv_func_memcmp_working = no; then
4869
4870 cat >>confdefs.h <<\_ACEOF
4871 #define memcmp rpl_memcmp
4872 _ACEOF
4873
4874     :
4875   fi
4876
4877
4878
4879   if test $ac_cv_have_decl_memmem = yes; then
4880     echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4881 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4882 if test "${gl_cv_func_memmem_works+set}" = set; then
4883   echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885   if test "$cross_compiling" = yes; then
4886                  gl_cv_func_memmem_works="guessing no"
4887 else
4888   cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h.  */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h.  */
4894
4895 #include <string.h> /* for memmem */
4896 #include <stdlib.h> /* for malloc */
4897 #include <unistd.h> /* for alarm */
4898
4899 int
4900 main ()
4901 {
4902 size_t m = 1000000;
4903     char *haystack = (char *) malloc (2 * m + 1);
4904     char *needle = (char *) malloc (m + 1);
4905     void *result = 0;
4906     /* Failure to compile this test due to missing alarm is okay,
4907        since all such platforms (mingw) also lack memmem.  */
4908     alarm (5);
4909     /* Check for quadratic performance.  */
4910     if (haystack && needle)
4911       {
4912         memset (haystack, 'A', 2 * m);
4913         haystack[2 * m] = 'B';
4914         memset (needle, 'A', m);
4915         needle[m] = 'B';
4916         result = memmem (haystack, 2 * m + 1, needle, m + 1);
4917       }
4918     /* Check for empty needle behavior.  */
4919     return !result || !memmem ("a", 1, 0, 0);
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest$ac_exeext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4926   (eval $ac_link) 2>&5
4927   ac_status=$?
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931   (eval $ac_try) 2>&5
4932   ac_status=$?
4933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934   (exit $ac_status); }; }; then
4935   gl_cv_func_memmem_works=yes
4936 else
4937   echo "$as_me: program exited with status $ac_status" >&5
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4940
4941 ( exit $ac_status )
4942 gl_cv_func_memmem_works=no
4943 fi
4944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4945 fi
4946 fi
4947 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4948 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4949     if test "$gl_cv_func_memmem_works" != yes; then
4950       REPLACE_MEMMEM=1
4951
4952
4953
4954
4955
4956
4957
4958   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4959
4960     fi
4961   fi
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975 for ac_func in memmem
4976 do
4977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4978 echo "$as_me:$LINENO: checking for $ac_func" >&5
4979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4980 if eval "test \"\${$as_ac_var+set}\" = set"; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h.  */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h.  */
4989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4991 #define $ac_func innocuous_$ac_func
4992
4993 /* System header to define __stub macros and hopefully few prototypes,
4994     which can conflict with char $ac_func (); below.
4995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996     <limits.h> exists even on freestanding compilers.  */
4997
4998 #ifdef __STDC__
4999 # include <limits.h>
5000 #else
5001 # include <assert.h>
5002 #endif
5003
5004 #undef $ac_func
5005
5006 /* Override any gcc2 internal prototype to avoid an error.  */
5007 #ifdef __cplusplus
5008 extern "C"
5009 {
5010 #endif
5011 /* We use char because int might match the return type of a gcc2
5012    builtin and then its argument prototype would still apply.  */
5013 char $ac_func ();
5014 /* The GNU C library defines this for functions which it implements
5015     to always fail with ENOSYS.  Some functions are actually named
5016     something starting with __ and the normal name is an alias.  */
5017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5018 choke me
5019 #else
5020 char (*f) () = $ac_func;
5021 #endif
5022 #ifdef __cplusplus
5023 }
5024 #endif
5025
5026 int
5027 main ()
5028 {
5029 return f != $ac_func;
5030   ;
5031   return 0;
5032 }
5033 _ACEOF
5034 rm -f conftest.$ac_objext conftest$ac_exeext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036   (eval $ac_link) 2>conftest.er1
5037   ac_status=$?
5038   grep -v '^ *+' conftest.er1 >conftest.err
5039   rm -f conftest.er1
5040   cat conftest.err >&5
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } &&
5043          { ac_try='test -z "$ac_c_werror_flag"
5044                          || test ! -s conftest.err'
5045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046   (eval $ac_try) 2>&5
5047   ac_status=$?
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); }; } &&
5050          { ac_try='test -s conftest$ac_exeext'
5051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052   (eval $ac_try) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); }; }; then
5056   eval "$as_ac_var=yes"
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 eval "$as_ac_var=no"
5062 fi
5063 rm -f conftest.err conftest.$ac_objext \
5064       conftest$ac_exeext conftest.$ac_ext
5065 fi
5066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5068 if test `eval echo '${'$as_ac_var'}'` = yes; then
5069   cat >>confdefs.h <<_ACEOF
5070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5071 _ACEOF
5072
5073 else
5074
5075     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5076
5077 fi
5078 done
5079
5080
5081
5082   :
5083
5084
5085
5086
5087
5088   if test $ac_cv_have_decl_memmem = no; then
5089     HAVE_DECL_MEMMEM=0
5090   fi
5091   :
5092
5093
5094
5095   GNULIB_MEMMEM=1
5096
5097
5098
5099
5100   if test $ac_cv_type_long_long_int = yes; then
5101     HAVE_LONG_LONG_INT=1
5102   else
5103     HAVE_LONG_LONG_INT=0
5104   fi
5105
5106
5107   if test $ac_cv_type_unsigned_long_long_int = yes; then
5108     HAVE_UNSIGNED_LONG_LONG_INT=1
5109   else
5110     HAVE_UNSIGNED_LONG_LONG_INT=0
5111   fi
5112
5113
5114       if test $ac_cv_header_inttypes_h = yes; then
5115     HAVE_INTTYPES_H=1
5116   else
5117     HAVE_INTTYPES_H=0
5118   fi
5119
5120
5121       if test $ac_cv_header_sys_types_h = yes; then
5122     HAVE_SYS_TYPES_H=1
5123   else
5124     HAVE_SYS_TYPES_H=0
5125   fi
5126
5127
5128
5129
5130
5131   :
5132
5133
5134
5135
5136
5137
5138
5139      if test $gl_cv_have_include_next = yes; then
5140        gl_cv_next_stdint_h='<'stdint.h'>'
5141      else
5142        echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5143 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5144 if test "${gl_cv_next_stdint_h+set}" = set; then
5145   echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147
5148           if test $ac_cv_header_stdint_h = yes; then
5149             cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 #include <stdint.h>
5156
5157 _ACEOF
5158                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159                sed -n '\#/stdint.h#{
5160                  s#.*"\(.*/stdint.h\)".*#\1#
5161                  s#^/[^/]#//&#
5162                  p
5163                  q
5164                }'`'"'
5165           else
5166             gl_cv_next_stdint_h='<'stdint.h'>'
5167           fi
5168
5169 fi
5170 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5171 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5172      fi
5173      NEXT_STDINT_H=$gl_cv_next_stdint_h
5174
5175
5176
5177   if test $ac_cv_header_stdint_h = yes; then
5178     HAVE_STDINT_H=1
5179   else
5180     HAVE_STDINT_H=0
5181   fi
5182
5183
5184     if test $ac_cv_header_stdint_h = yes; then
5185     echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5186 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5187 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190   gl_cv_header_working_stdint_h=no
5191        cat >conftest.$ac_ext <<_ACEOF
5192
5193          /* confdefs.h.  */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h.  */
5198
5199 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5200 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5201 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5202 #include <stdint.h>
5203 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
5204 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5205 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5206 #endif
5207
5208
5209   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5210      included before <wchar.h>.  */
5211   #include <stddef.h>
5212   #include <signal.h>
5213   #if HAVE_WCHAR_H
5214   # include <stdio.h>
5215   # include <time.h>
5216   # include <wchar.h>
5217   #endif
5218
5219
5220 #ifdef INT8_MAX
5221 int8_t a1 = INT8_MAX;
5222 int8_t a1min = INT8_MIN;
5223 #endif
5224 #ifdef INT16_MAX
5225 int16_t a2 = INT16_MAX;
5226 int16_t a2min = INT16_MIN;
5227 #endif
5228 #ifdef INT32_MAX
5229 int32_t a3 = INT32_MAX;
5230 int32_t a3min = INT32_MIN;
5231 #endif
5232 #ifdef INT64_MAX
5233 int64_t a4 = INT64_MAX;
5234 int64_t a4min = INT64_MIN;
5235 #endif
5236 #ifdef UINT8_MAX
5237 uint8_t b1 = UINT8_MAX;
5238 #else
5239 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5240 #endif
5241 #ifdef UINT16_MAX
5242 uint16_t b2 = UINT16_MAX;
5243 #endif
5244 #ifdef UINT32_MAX
5245 uint32_t b3 = UINT32_MAX;
5246 #endif
5247 #ifdef UINT64_MAX
5248 uint64_t b4 = UINT64_MAX;
5249 #endif
5250 int_least8_t c1 = INT8_C (0x7f);
5251 int_least8_t c1max = INT_LEAST8_MAX;
5252 int_least8_t c1min = INT_LEAST8_MIN;
5253 int_least16_t c2 = INT16_C (0x7fff);
5254 int_least16_t c2max = INT_LEAST16_MAX;
5255 int_least16_t c2min = INT_LEAST16_MIN;
5256 int_least32_t c3 = INT32_C (0x7fffffff);
5257 int_least32_t c3max = INT_LEAST32_MAX;
5258 int_least32_t c3min = INT_LEAST32_MIN;
5259 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5260 int_least64_t c4max = INT_LEAST64_MAX;
5261 int_least64_t c4min = INT_LEAST64_MIN;
5262 uint_least8_t d1 = UINT8_C (0xff);
5263 uint_least8_t d1max = UINT_LEAST8_MAX;
5264 uint_least16_t d2 = UINT16_C (0xffff);
5265 uint_least16_t d2max = UINT_LEAST16_MAX;
5266 uint_least32_t d3 = UINT32_C (0xffffffff);
5267 uint_least32_t d3max = UINT_LEAST32_MAX;
5268 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5269 uint_least64_t d4max = UINT_LEAST64_MAX;
5270 int_fast8_t e1 = INT_FAST8_MAX;
5271 int_fast8_t e1min = INT_FAST8_MIN;
5272 int_fast16_t e2 = INT_FAST16_MAX;
5273 int_fast16_t e2min = INT_FAST16_MIN;
5274 int_fast32_t e3 = INT_FAST32_MAX;
5275 int_fast32_t e3min = INT_FAST32_MIN;
5276 int_fast64_t e4 = INT_FAST64_MAX;
5277 int_fast64_t e4min = INT_FAST64_MIN;
5278 uint_fast8_t f1 = UINT_FAST8_MAX;
5279 uint_fast16_t f2 = UINT_FAST16_MAX;
5280 uint_fast32_t f3 = UINT_FAST32_MAX;
5281 uint_fast64_t f4 = UINT_FAST64_MAX;
5282 #ifdef INTPTR_MAX
5283 intptr_t g = INTPTR_MAX;
5284 intptr_t gmin = INTPTR_MIN;
5285 #endif
5286 #ifdef UINTPTR_MAX
5287 uintptr_t h = UINTPTR_MAX;
5288 #endif
5289 intmax_t i = INTMAX_MAX;
5290 uintmax_t j = UINTMAX_MAX;
5291
5292 #include <limits.h> /* for CHAR_BIT */
5293 #define TYPE_MINIMUM(t) \
5294   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5295 #define TYPE_MAXIMUM(t) \
5296   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5297 struct s {
5298   int check_PTRDIFF:
5299       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5300       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5301       ? 1 : -1;
5302   /* Detect bug in FreeBSD 6.0 / ia64.  */
5303   int check_SIG_ATOMIC:
5304       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5305       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5306       ? 1 : -1;
5307   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5308   int check_WCHAR:
5309       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5310       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5311       ? 1 : -1;
5312   /* Detect bug in mingw.  */
5313   int check_WINT:
5314       WINT_MIN == TYPE_MINIMUM (wint_t)
5315       && WINT_MAX == TYPE_MAXIMUM (wint_t)
5316       ? 1 : -1;
5317
5318   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
5319   int check_UINT8_C:
5320         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5321   int check_UINT16_C:
5322         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5323
5324   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
5325 #ifdef UINT8_MAX
5326   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5327 #endif
5328 #ifdef UINT16_MAX
5329   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5330 #endif
5331 #ifdef UINT32_MAX
5332   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5333 #endif
5334 #ifdef UINT64_MAX
5335   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5336 #endif
5337   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5338   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5339   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5340   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5341   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5342   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5343   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5344   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5345   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5346   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5347   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5348 };
5349
5350 int
5351 main ()
5352 {
5353
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360   (eval $ac_compile) 2>conftest.er1
5361   ac_status=$?
5362   grep -v '^ *+' conftest.er1 >conftest.err
5363   rm -f conftest.er1
5364   cat conftest.err >&5
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } &&
5367          { ac_try='test -z "$ac_c_werror_flag"
5368                          || test ! -s conftest.err'
5369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370   (eval $ac_try) 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); }; } &&
5374          { ac_try='test -s conftest.$ac_objext'
5375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376   (eval $ac_try) 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); }; }; then
5380   gl_cv_header_working_stdint_h=yes
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 fi
5386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387 fi
5388 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5389 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5390   fi
5391   if test "$gl_cv_header_working_stdint_h" = yes; then
5392     STDINT_H=
5393   else
5394
5395
5396 for ac_header in sys/inttypes.h sys/bitypes.h
5397 do
5398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5400   echo "$as_me:$LINENO: checking for $ac_header" >&5
5401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 fi
5405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5407 else
5408   # Is the header compilable?
5409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h.  */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h.  */
5417 $ac_includes_default
5418 #include <$ac_header>
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422   (eval $ac_compile) 2>conftest.er1
5423   ac_status=$?
5424   grep -v '^ *+' conftest.er1 >conftest.err
5425   rm -f conftest.er1
5426   cat conftest.err >&5
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } &&
5429          { ac_try='test -z "$ac_c_werror_flag"
5430                          || test ! -s conftest.err'
5431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432   (eval $ac_try) 2>&5
5433   ac_status=$?
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); }; } &&
5436          { ac_try='test -s conftest.$ac_objext'
5437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438   (eval $ac_try) 2>&5
5439   ac_status=$?
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); }; }; then
5442   ac_header_compiler=yes
5443 else
5444   echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447 ac_header_compiler=no
5448 fi
5449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5451 echo "${ECHO_T}$ac_header_compiler" >&6
5452
5453 # Is the header present?
5454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h.  */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h.  */
5462 #include <$ac_header>
5463 _ACEOF
5464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5466   ac_status=$?
5467   grep -v '^ *+' conftest.er1 >conftest.err
5468   rm -f conftest.er1
5469   cat conftest.err >&5
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); } >/dev/null; then
5472   if test -s conftest.err; then
5473     ac_cpp_err=$ac_c_preproc_warn_flag
5474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5475   else
5476     ac_cpp_err=
5477   fi
5478 else
5479   ac_cpp_err=yes
5480 fi
5481 if test -z "$ac_cpp_err"; then
5482   ac_header_preproc=yes
5483 else
5484   echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487   ac_header_preproc=no
5488 fi
5489 rm -f conftest.err conftest.$ac_ext
5490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5491 echo "${ECHO_T}$ac_header_preproc" >&6
5492
5493 # So?  What about this header?
5494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5495   yes:no: )
5496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5500     ac_header_preproc=yes
5501     ;;
5502   no:yes:* )
5503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5505     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5506 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5507     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5509     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5510 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5513     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5515     (
5516       cat <<\_ASBOX
5517 ## ------------------------------------------ ##
5518 ## Report this to the AC_PACKAGE_NAME lists.  ##
5519 ## ------------------------------------------ ##
5520 _ASBOX
5521     ) |
5522       sed "s/^/$as_me: WARNING:     /" >&2
5523     ;;
5524 esac
5525 echo "$as_me:$LINENO: checking for $ac_header" >&5
5526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5528   echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530   eval "$as_ac_Header=\$ac_header_preproc"
5531 fi
5532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5534
5535 fi
5536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5537   cat >>confdefs.h <<_ACEOF
5538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5539 _ACEOF
5540
5541 fi
5542
5543 done
5544
5545     if test $ac_cv_header_sys_inttypes_h = yes; then
5546       HAVE_SYS_INTTYPES_H=1
5547     else
5548       HAVE_SYS_INTTYPES_H=0
5549     fi
5550
5551     if test $ac_cv_header_sys_bitypes_h = yes; then
5552       HAVE_SYS_BITYPES_H=1
5553     else
5554       HAVE_SYS_BITYPES_H=0
5555     fi
5556
5557
5558
5559   :
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5575     echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5576 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5577 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   if test "$cross_compiling" = yes; then
5581   # Depending upon the size, compute the lo and hi bounds.
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h.  */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h.  */
5588
5589   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5590      included before <wchar.h>.  */
5591   #include <stddef.h>
5592   #include <signal.h>
5593   #if HAVE_WCHAR_H
5594   # include <stdio.h>
5595   # include <time.h>
5596   # include <wchar.h>
5597   #endif
5598
5599 #include <limits.h>
5600 int
5601 main ()
5602 {
5603 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5604 test_array [0] = 0
5605
5606   ;
5607   return 0;
5608 }
5609 _ACEOF
5610 rm -f conftest.$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612   (eval $ac_compile) 2>conftest.er1
5613   ac_status=$?
5614   grep -v '^ *+' conftest.er1 >conftest.err
5615   rm -f conftest.er1
5616   cat conftest.err >&5
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); } &&
5619          { ac_try='test -z "$ac_c_werror_flag"
5620                          || test ! -s conftest.err'
5621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622   (eval $ac_try) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }; } &&
5626          { ac_try='test -s conftest.$ac_objext'
5627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628   (eval $ac_try) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }; }; then
5632   ac_lo=0 ac_mid=0
5633   while :; do
5634     cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h.  */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h.  */
5640
5641   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5642      included before <wchar.h>.  */
5643   #include <stddef.h>
5644   #include <signal.h>
5645   #if HAVE_WCHAR_H
5646   # include <stdio.h>
5647   # include <time.h>
5648   # include <wchar.h>
5649   #endif
5650
5651 #include <limits.h>
5652 int
5653 main ()
5654 {
5655 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5656 test_array [0] = 0
5657
5658   ;
5659   return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664   (eval $ac_compile) 2>conftest.er1
5665   ac_status=$?
5666   grep -v '^ *+' conftest.er1 >conftest.err
5667   rm -f conftest.er1
5668   cat conftest.err >&5
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } &&
5671          { ac_try='test -z "$ac_c_werror_flag"
5672                          || test ! -s conftest.err'
5673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674   (eval $ac_try) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); }; } &&
5678          { ac_try='test -s conftest.$ac_objext'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; }; then
5684   ac_hi=$ac_mid; break
5685 else
5686   echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 ac_lo=`expr $ac_mid + 1`
5690                     if test $ac_lo -le $ac_mid; then
5691                       ac_lo= ac_hi=
5692                       break
5693                     fi
5694                     ac_mid=`expr 2 '*' $ac_mid + 1`
5695 fi
5696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5697   done
5698 else
5699   echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h.  */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h.  */
5708
5709   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5710      included before <wchar.h>.  */
5711   #include <stddef.h>
5712   #include <signal.h>
5713   #if HAVE_WCHAR_H
5714   # include <stdio.h>
5715   # include <time.h>
5716   # include <wchar.h>
5717   #endif
5718
5719 #include <limits.h>
5720 int
5721 main ()
5722 {
5723 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5724 test_array [0] = 0
5725
5726   ;
5727   return 0;
5728 }
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732   (eval $ac_compile) 2>conftest.er1
5733   ac_status=$?
5734   grep -v '^ *+' conftest.er1 >conftest.err
5735   rm -f conftest.er1
5736   cat conftest.err >&5
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } &&
5739          { ac_try='test -z "$ac_c_werror_flag"
5740                          || test ! -s conftest.err'
5741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; } &&
5746          { ac_try='test -s conftest.$ac_objext'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; }; then
5752   ac_hi=-1 ac_mid=-1
5753   while :; do
5754     cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h.  */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h.  */
5760
5761   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5762      included before <wchar.h>.  */
5763   #include <stddef.h>
5764   #include <signal.h>
5765   #if HAVE_WCHAR_H
5766   # include <stdio.h>
5767   # include <time.h>
5768   # include <wchar.h>
5769   #endif
5770
5771 #include <limits.h>
5772 int
5773 main ()
5774 {
5775 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5776 test_array [0] = 0
5777
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784   (eval $ac_compile) 2>conftest.er1
5785   ac_status=$?
5786   grep -v '^ *+' conftest.er1 >conftest.err
5787   rm -f conftest.er1
5788   cat conftest.err >&5
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); } &&
5791          { ac_try='test -z "$ac_c_werror_flag"
5792                          || test ! -s conftest.err'
5793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794   (eval $ac_try) 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }; } &&
5798          { ac_try='test -s conftest.$ac_objext'
5799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800   (eval $ac_try) 2>&5
5801   ac_status=$?
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); }; }; then
5804   ac_lo=$ac_mid; break
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 ac_hi=`expr '(' $ac_mid ')' - 1`
5810                        if test $ac_mid -le $ac_hi; then
5811                          ac_lo= ac_hi=
5812                          break
5813                        fi
5814                        ac_mid=`expr 2 '*' $ac_mid`
5815 fi
5816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5817   done
5818 else
5819   echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5821
5822 ac_lo= ac_hi=
5823 fi
5824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5825 fi
5826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5827 # Binary search between lo and hi bounds.
5828 while test "x$ac_lo" != "x$ac_hi"; do
5829   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5830   cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h.  */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h.  */
5836
5837   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5838      included before <wchar.h>.  */
5839   #include <stddef.h>
5840   #include <signal.h>
5841   #if HAVE_WCHAR_H
5842   # include <stdio.h>
5843   # include <time.h>
5844   # include <wchar.h>
5845   #endif
5846
5847 #include <limits.h>
5848 int
5849 main ()
5850 {
5851 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5852 test_array [0] = 0
5853
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860   (eval $ac_compile) 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } &&
5867          { ac_try='test -z "$ac_c_werror_flag"
5868                          || test ! -s conftest.err'
5869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870   (eval $ac_try) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; } &&
5874          { ac_try='test -s conftest.$ac_objext'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; }; then
5880   ac_hi=$ac_mid
5881 else
5882   echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 ac_lo=`expr '(' $ac_mid ')' + 1`
5886 fi
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888 done
5889 case $ac_lo in
5890 ?*) result=$ac_lo;;
5891 '') result=unknown ;;
5892 esac
5893 else
5894   if test "$cross_compiling" = yes; then
5895   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5896 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5898 See \`config.log' for more details." >&5
5899 echo "$as_me: error: cannot run test program while cross compiling
5900 See \`config.log' for more details." >&2;}
5901    { (exit 1); exit 1; }; }; }
5902 else
5903   cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h.  */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h.  */
5909
5910   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5911      included before <wchar.h>.  */
5912   #include <stddef.h>
5913   #include <signal.h>
5914   #if HAVE_WCHAR_H
5915   # include <stdio.h>
5916   # include <time.h>
5917   # include <wchar.h>
5918   #endif
5919
5920 #include <limits.h>
5921 long longval () { return sizeof ($gltype) * CHAR_BIT; }
5922 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5923 #include <stdio.h>
5924 #include <stdlib.h>
5925 int
5926 main ()
5927 {
5928
5929   FILE *f = fopen ("conftest.val", "w");
5930   if (! f)
5931     exit (1);
5932   if ((sizeof ($gltype) * CHAR_BIT) < 0)
5933     {
5934       long i = longval ();
5935       if (i != (sizeof ($gltype) * CHAR_BIT))
5936         exit (1);
5937       fprintf (f, "%ld\n", i);
5938     }
5939   else
5940     {
5941       unsigned long i = ulongval ();
5942       if (i != (sizeof ($gltype) * CHAR_BIT))
5943         exit (1);
5944       fprintf (f, "%lu\n", i);
5945     }
5946   exit (ferror (f) || fclose (f) != 0);
5947
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954   (eval $ac_link) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959   (eval $ac_try) 2>&5
5960   ac_status=$?
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); }; }; then
5963   result=`cat conftest.val`
5964 else
5965   echo "$as_me: program exited with status $ac_status" >&5
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969 ( exit $ac_status )
5970 result=unknown
5971 fi
5972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5973 fi
5974 fi
5975 rm -f conftest.val
5976        eval gl_cv_bitsizeof_${gltype}=\$result
5977
5978 fi
5979 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5980 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5981     eval result=\$gl_cv_bitsizeof_${gltype}
5982     if test $result = unknown; then
5983                                                 result=0
5984     fi
5985     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5986     cat >>confdefs.h <<_ACEOF
5987 #define BITSIZEOF_${GLTYPE} $result
5988 _ACEOF
5989
5990     eval BITSIZEOF_${GLTYPE}=\$result
5991   done
5992
5993
5994
5995
5996
5997
5998
5999   for gltype in sig_atomic_t wchar_t wint_t ; do
6000     echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6001 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6002 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h.  */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h.  */
6011
6012   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6013      included before <wchar.h>.  */
6014   #include <stddef.h>
6015   #include <signal.h>
6016   #if HAVE_WCHAR_H
6017   # include <stdio.h>
6018   # include <time.h>
6019   # include <wchar.h>
6020   #endif
6021
6022             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6023 int
6024 main ()
6025 {
6026
6027   ;
6028   return 0;
6029 }
6030 _ACEOF
6031 rm -f conftest.$ac_objext
6032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033   (eval $ac_compile) 2>conftest.er1
6034   ac_status=$?
6035   grep -v '^ *+' conftest.er1 >conftest.err
6036   rm -f conftest.er1
6037   cat conftest.err >&5
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); } &&
6040          { ac_try='test -z "$ac_c_werror_flag"
6041                          || test ! -s conftest.err'
6042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043   (eval $ac_try) 2>&5
6044   ac_status=$?
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); }; } &&
6047          { ac_try='test -s conftest.$ac_objext'
6048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049   (eval $ac_try) 2>&5
6050   ac_status=$?
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); }; }; then
6053   result=yes
6054 else
6055   echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6057
6058 result=no
6059 fi
6060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6061        eval gl_cv_type_${gltype}_signed=\$result
6062
6063 fi
6064 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6065 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6066     eval result=\$gl_cv_type_${gltype}_signed
6067     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6068     if test "$result" = yes; then
6069       cat >>confdefs.h <<_ACEOF
6070 #define HAVE_SIGNED_${GLTYPE} 1
6071 _ACEOF
6072
6073       eval HAVE_SIGNED_${GLTYPE}=1
6074     else
6075       eval HAVE_SIGNED_${GLTYPE}=0
6076     fi
6077   done
6078
6079
6080   gl_cv_type_ptrdiff_t_signed=yes
6081   gl_cv_type_size_t_signed=no
6082
6083
6084
6085
6086
6087
6088
6089   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6090     echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6091 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6092 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095   eval gl_cv_type_${gltype}_suffix=no
6096        eval result=\$gl_cv_type_${gltype}_signed
6097        if test "$result" = yes; then
6098          glsufu=
6099        else
6100          glsufu=u
6101        fi
6102        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6103          case $glsuf in
6104            '')  gltype1='int';;
6105            l)   gltype1='long int';;
6106            ll)  gltype1='long long int';;
6107            i64) gltype1='__int64';;
6108            u)   gltype1='unsigned int';;
6109            ul)  gltype1='unsigned long int';;
6110            ull) gltype1='unsigned long long int';;
6111            ui64)gltype1='unsigned __int64';;
6112          esac
6113          cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h.  */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h.  */
6119
6120   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6121      included before <wchar.h>.  */
6122   #include <stddef.h>
6123   #include <signal.h>
6124   #if HAVE_WCHAR_H
6125   # include <stdio.h>
6126   # include <time.h>
6127   # include <wchar.h>
6128   #endif
6129
6130               extern $gltype foo;
6131               extern $gltype1 foo;
6132 int
6133 main ()
6134 {
6135
6136   ;
6137   return 0;
6138 }
6139 _ACEOF
6140 rm -f conftest.$ac_objext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142   (eval $ac_compile) 2>conftest.er1
6143   ac_status=$?
6144   grep -v '^ *+' conftest.er1 >conftest.err
6145   rm -f conftest.er1
6146   cat conftest.err >&5
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); } &&
6149          { ac_try='test -z "$ac_c_werror_flag"
6150                          || test ! -s conftest.err'
6151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152   (eval $ac_try) 2>&5
6153   ac_status=$?
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); }; } &&
6156          { ac_try='test -s conftest.$ac_objext'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; }; then
6162   eval gl_cv_type_${gltype}_suffix=\$glsuf
6163 else
6164   echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 fi
6168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6169          eval result=\$gl_cv_type_${gltype}_suffix
6170          test "$result" != no && break
6171        done
6172 fi
6173 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6174 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6175     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6176     eval result=\$gl_cv_type_${gltype}_suffix
6177     test "$result" = no && result=
6178     eval ${GLTYPE}_SUFFIX=\$result
6179     cat >>confdefs.h <<_ACEOF
6180 #define ${GLTYPE}_SUFFIX $result
6181 _ACEOF
6182
6183   done
6184
6185
6186
6187     STDINT_H=stdint.h
6188   fi
6189
6190
6191
6192
6193
6194
6195
6196   echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6197 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6198 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201   cat >conftest.$ac_ext <<_ACEOF
6202 #include <wchar.h>
6203 wchar_t w;
6204 _ACEOF
6205 rm -f conftest.$ac_objext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207   (eval $ac_compile) 2>conftest.er1
6208   ac_status=$?
6209   grep -v '^ *+' conftest.er1 >conftest.err
6210   rm -f conftest.er1
6211   cat conftest.err >&5
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); } &&
6214          { ac_try='test -z "$ac_c_werror_flag"
6215                          || test ! -s conftest.err'
6216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217   (eval $ac_try) 2>&5
6218   ac_status=$?
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); }; } &&
6221          { ac_try='test -s conftest.$ac_objext'
6222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223   (eval $ac_try) 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }; }; then
6227   gl_cv_header_wchar_h_standalone=yes
6228 else
6229   echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232 gl_cv_header_wchar_h_standalone=no
6233 fi
6234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6235 fi
6236 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6237 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6238   if test $gl_cv_header_wchar_h_standalone != yes; then
6239     WCHAR_H=wchar.h
6240   fi
6241
6242
6243   :
6244
6245
6246
6247
6248
6249   if test $ac_cv_header_wchar_h = yes; then
6250     HAVE_WCHAR_H=1
6251   else
6252     HAVE_WCHAR_H=0
6253   fi
6254
6255
6256
6257
6258   :
6259
6260
6261
6262
6263
6264
6265
6266      if test $gl_cv_have_include_next = yes; then
6267        gl_cv_next_wchar_h='<'wchar.h'>'
6268      else
6269        echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6270 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6271 if test "${gl_cv_next_wchar_h+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274
6275           if test $ac_cv_header_wchar_h = yes; then
6276             cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h.  */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h.  */
6282 #include <wchar.h>
6283
6284 _ACEOF
6285                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286                sed -n '\#/wchar.h#{
6287                  s#.*"\(.*/wchar.h\)".*#\1#
6288                  s#^/[^/]#//&#
6289                  p
6290                  q
6291                }'`'"'
6292           else
6293             gl_cv_next_wchar_h='<'wchar.h'>'
6294           fi
6295
6296 fi
6297 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6298 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6299      fi
6300      NEXT_WCHAR_H=$gl_cv_next_wchar_h
6301
6302
6303
6304
6305
6306
6307
6308
6309   gltests_libdeps=
6310   gltests_ltlibdeps=
6311
6312
6313
6314   gl_source_base='tests'
6315
6316
6317
6318
6319   LIBGNU_LIBDEPS="$gl_libdeps"
6320
6321   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6322
6323
6324
6325 # For Makefile dependencies.
6326 GNULIB_STDINT_H=
6327 if test x"$STDINT_H" != x; then
6328   GNULIB_STDINT_H=gnulib/$STDINT_H
6329 fi
6330
6331
6332 PACKAGE=gdb
6333
6334 cat >>confdefs.h <<_ACEOF
6335 #define PACKAGE "$PACKAGE"
6336 _ACEOF
6337
6338
6339
6340 # GDB does not use automake, but gnulib does.  This line lets us
6341 # generate its Makefile.in.
6342 am__api_version="1.9"
6343 # Find a good install program.  We prefer a C program (faster),
6344 # so one script is as good as another.  But avoid the broken or
6345 # incompatible versions:
6346 # SysV /etc/install, /usr/sbin/install
6347 # SunOS /usr/etc/install
6348 # IRIX /sbin/install
6349 # AIX /bin/install
6350 # AmigaOS /C/install, which installs bootblocks on floppy discs
6351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6354 # OS/2's system install, which has a completely different semantic
6355 # ./install, which can be erroneously created by make from ./install.sh.
6356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6358 if test -z "$INSTALL"; then
6359 if test "${ac_cv_path_install+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367   # Account for people who put trailing slashes in PATH elements.
6368 case $as_dir/ in
6369   ./ | .// | /cC/* | \
6370   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6371   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6372   /usr/ucb/* ) ;;
6373   *)
6374     # OSF1 and SCO ODT 3.0 have their own names for install.
6375     # Don't use installbsd from OSF since it installs stuff as root
6376     # by default.
6377     for ac_prog in ginstall scoinst install; do
6378       for ac_exec_ext in '' $ac_executable_extensions; do
6379         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6380           if test $ac_prog = install &&
6381             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6382             # AIX install.  It has an incompatible calling convention.
6383             :
6384           elif test $ac_prog = install &&
6385             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6386             # program-specific install script used by HP pwplus--don't use.
6387             :
6388           else
6389             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6390             break 3
6391           fi
6392         fi
6393       done
6394     done
6395     ;;
6396 esac
6397 done
6398
6399
6400 fi
6401   if test "${ac_cv_path_install+set}" = set; then
6402     INSTALL=$ac_cv_path_install
6403   else
6404     # As a last resort, use the slow shell script.  We don't cache a
6405     # path for INSTALL within a source directory, because that will
6406     # break other packages using the cache if that directory is
6407     # removed, or if the path is relative.
6408     INSTALL=$ac_install_sh
6409   fi
6410 fi
6411 echo "$as_me:$LINENO: result: $INSTALL" >&5
6412 echo "${ECHO_T}$INSTALL" >&6
6413
6414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6415 # It thinks the first close brace ends the variable substitution.
6416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6417
6418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6419
6420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6421
6422 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6423 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6424 # Just in case
6425 sleep 1
6426 echo timestamp > conftest.file
6427 # Do `set' in a subshell so we don't clobber the current shell's
6428 # arguments.  Must try -L first in case configure is actually a
6429 # symlink; some systems play weird games with the mod time of symlinks
6430 # (eg FreeBSD returns the mod time of the symlink's containing
6431 # directory).
6432 if (
6433    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6434    if test "$*" = "X"; then
6435       # -L didn't work.
6436       set X `ls -t $srcdir/configure conftest.file`
6437    fi
6438    rm -f conftest.file
6439    if test "$*" != "X $srcdir/configure conftest.file" \
6440       && test "$*" != "X conftest.file $srcdir/configure"; then
6441
6442       # If neither matched, then we have a broken ls.  This can happen
6443       # if, for instance, CONFIG_SHELL is bash and it inherits a
6444       # broken ls alias from the environment.  This has actually
6445       # happened.  Such a system could not be considered "sane".
6446       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
6447 alias in your environment" >&5
6448 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
6449 alias in your environment" >&2;}
6450    { (exit 1); exit 1; }; }
6451    fi
6452
6453    test "$2" = conftest.file
6454    )
6455 then
6456    # Ok.
6457    :
6458 else
6459    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6460 Check your system clock" >&5
6461 echo "$as_me: error: newly created file is older than distributed files!
6462 Check your system clock" >&2;}
6463    { (exit 1); exit 1; }; }
6464 fi
6465 echo "$as_me:$LINENO: result: yes" >&5
6466 echo "${ECHO_T}yes" >&6
6467 test "$program_prefix" != NONE &&
6468   program_transform_name="s,^,$program_prefix,;$program_transform_name"
6469 # Use a double $ so make ignores it.
6470 test "$program_suffix" != NONE &&
6471   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6472 # Double any \ or $.  echo might interpret backslashes.
6473 # By default was `s,x,x', remove it if useless.
6474 cat <<\_ACEOF >conftest.sed
6475 s/[\\$]/&&/g;s/;s,x,x,$//
6476 _ACEOF
6477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6478 rm conftest.sed
6479
6480 # expand $ac_aux_dir to an absolute path
6481 am_aux_dir=`cd $ac_aux_dir && pwd`
6482
6483 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6484 # Use eval to expand $SHELL
6485 if eval "$MISSING --run true"; then
6486   am_missing_run="$MISSING --run "
6487 else
6488   am_missing_run=
6489   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6490 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6491 fi
6492
6493 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6494   # We used to keeping the `.' as first argument, in order to
6495   # allow $(mkdir_p) to be used without argument.  As in
6496   #   $(mkdir_p) $(somedir)
6497   # where $(somedir) is conditionally defined.  However this is wrong
6498   # for two reasons:
6499   #  1. if the package is installed by a user who cannot write `.'
6500   #     make install will fail,
6501   #  2. the above comment should most certainly read
6502   #     $(mkdir_p) $(DESTDIR)$(somedir)
6503   #     so it does not work when $(somedir) is undefined and
6504   #     $(DESTDIR) is not.
6505   #  To support the latter case, we have to write
6506   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6507   #  so the `.' trick is pointless.
6508   mkdir_p='mkdir -p --'
6509 else
6510   # On NextStep and OpenStep, the `mkdir' command does not
6511   # recognize any option.  It will interpret all options as
6512   # directories to create, and then abort because `.' already
6513   # exists.
6514   for d in ./-p ./--version;
6515   do
6516     test -d $d && rmdir $d
6517   done
6518   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6519   if test -f "$ac_aux_dir/mkinstalldirs"; then
6520     mkdir_p='$(mkinstalldirs)'
6521   else
6522     mkdir_p='$(install_sh) -d'
6523   fi
6524 fi
6525
6526 for ac_prog in gawk mawk nawk awk
6527 do
6528   # Extract the first word of "$ac_prog", so it can be a program name with args.
6529 set dummy $ac_prog; ac_word=$2
6530 echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6532 if test "${ac_cv_prog_AWK+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   if test -n "$AWK"; then
6536   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543   for ac_exec_ext in '' $ac_executable_extensions; do
6544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545     ac_cv_prog_AWK="$ac_prog"
6546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550 done
6551
6552 fi
6553 fi
6554 AWK=$ac_cv_prog_AWK
6555 if test -n "$AWK"; then
6556   echo "$as_me:$LINENO: result: $AWK" >&5
6557 echo "${ECHO_T}$AWK" >&6
6558 else
6559   echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6
6561 fi
6562
6563   test -n "$AWK" && break
6564 done
6565
6566 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6567 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6568 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6569 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   cat >conftest.make <<\_ACEOF
6573 all:
6574         @echo 'ac_maketemp="$(MAKE)"'
6575 _ACEOF
6576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6577 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6578 if test -n "$ac_maketemp"; then
6579   eval ac_cv_prog_make_${ac_make}_set=yes
6580 else
6581   eval ac_cv_prog_make_${ac_make}_set=no
6582 fi
6583 rm -f conftest.make
6584 fi
6585 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6586   echo "$as_me:$LINENO: result: yes" >&5
6587 echo "${ECHO_T}yes" >&6
6588   SET_MAKE=
6589 else
6590   echo "$as_me:$LINENO: result: no" >&5
6591 echo "${ECHO_T}no" >&6
6592   SET_MAKE="MAKE=${MAKE-make}"
6593 fi
6594
6595 rm -rf .tst 2>/dev/null
6596 mkdir .tst 2>/dev/null
6597 if test -d .tst; then
6598   am__leading_dot=.
6599 else
6600   am__leading_dot=_
6601 fi
6602 rmdir .tst 2>/dev/null
6603
6604 DEPDIR="${am__leading_dot}deps"
6605
6606           ac_config_commands="$ac_config_commands depfiles"
6607
6608
6609 am_make=${MAKE-make}
6610 cat > confinc << 'END'
6611 am__doit:
6612         @echo done
6613 .PHONY: am__doit
6614 END
6615 # If we don't find an include directive, just comment out the code.
6616 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6617 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6618 am__include="#"
6619 am__quote=
6620 _am_result=none
6621 # First try GNU make style include.
6622 echo "include confinc" > confmf
6623 # We grep out `Entering directory' and `Leaving directory'
6624 # messages which can occur if `w' ends up in MAKEFLAGS.
6625 # In particular we don't look at `^make:' because GNU make might
6626 # be invoked under some other name (usually "gmake"), in which
6627 # case it prints its new name instead of `make'.
6628 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6629    am__include=include
6630    am__quote=
6631    _am_result=GNU
6632 fi
6633 # Now try BSD make style include.
6634 if test "$am__include" = "#"; then
6635    echo '.include "confinc"' > confmf
6636    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6637       am__include=.include
6638       am__quote="\""
6639       _am_result=BSD
6640    fi
6641 fi
6642
6643
6644 echo "$as_me:$LINENO: result: $_am_result" >&5
6645 echo "${ECHO_T}$_am_result" >&6
6646 rm -f confinc confmf
6647
6648 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6649 if test "${enable_dependency_tracking+set}" = set; then
6650   enableval="$enable_dependency_tracking"
6651
6652 fi;
6653 if test "x$enable_dependency_tracking" != xno; then
6654   am_depcomp="$ac_aux_dir/depcomp"
6655   AMDEPBACKSLASH='\'
6656 fi
6657
6658
6659 if test "x$enable_dependency_tracking" != xno; then
6660   AMDEP_TRUE=
6661   AMDEP_FALSE='#'
6662 else
6663   AMDEP_TRUE='#'
6664   AMDEP_FALSE=
6665 fi
6666
6667
6668
6669 # test to see if srcdir already configured
6670 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6671    test -f $srcdir/config.status; then
6672   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6673 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6674    { (exit 1); exit 1; }; }
6675 fi
6676
6677 # test whether we have cygpath
6678 if test -z "$CYGPATH_W"; then
6679   if (cygpath --version) >/dev/null 2>/dev/null; then
6680     CYGPATH_W='cygpath -w'
6681   else
6682     CYGPATH_W=echo
6683   fi
6684 fi
6685
6686
6687 # Define the identity of the package.
6688  PACKAGE=gdb
6689  VERSION=UNUSED-VERSION
6690
6691
6692 # Some tools Automake needs.
6693
6694 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6695
6696
6697 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6698
6699
6700 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6701
6702
6703 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6704
6705
6706 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6707
6708 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6709
6710 # Installed binaries are usually stripped using `strip' when the user
6711 # run `make install-strip'.  However `strip' might not be the right
6712 # tool to use in cross-compilation environments, therefore Automake
6713 # will honor the `STRIP' environment variable to overrule this program.
6714 if test "$cross_compiling" != no; then
6715   if test -n "$ac_tool_prefix"; then
6716   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}strip; ac_word=$2
6718 echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6720 if test "${ac_cv_prog_STRIP+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   if test -n "$STRIP"; then
6724   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731   for ac_exec_ext in '' $ac_executable_extensions; do
6732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738 done
6739
6740 fi
6741 fi
6742 STRIP=$ac_cv_prog_STRIP
6743 if test -n "$STRIP"; then
6744   echo "$as_me:$LINENO: result: $STRIP" >&5
6745 echo "${ECHO_T}$STRIP" >&6
6746 else
6747   echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6
6749 fi
6750
6751 fi
6752 if test -z "$ac_cv_prog_STRIP"; then
6753   ac_ct_STRIP=$STRIP
6754   # Extract the first word of "strip", so it can be a program name with args.
6755 set dummy strip; ac_word=$2
6756 echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   if test -n "$ac_ct_STRIP"; then
6762   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769   for ac_exec_ext in '' $ac_executable_extensions; do
6770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771     ac_cv_prog_ac_ct_STRIP="strip"
6772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776 done
6777
6778   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6779 fi
6780 fi
6781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6782 if test -n "$ac_ct_STRIP"; then
6783   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6784 echo "${ECHO_T}$ac_ct_STRIP" >&6
6785 else
6786   echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6
6788 fi
6789
6790   STRIP=$ac_ct_STRIP
6791 else
6792   STRIP="$ac_cv_prog_STRIP"
6793 fi
6794
6795 fi
6796 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6797
6798 # We need awk for the "check" target.  The system "awk" is bad on
6799 # some platforms.
6800 # Always define AMTAR for backward compatibility.
6801
6802 AMTAR=${AMTAR-"${am_missing_run}tar"}
6803
6804 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6805
6806
6807
6808
6809 depcc="$CC"   am_compiler_list=
6810
6811 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6812 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6813 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6817   # We make a subdir and do the tests there.  Otherwise we can end up
6818   # making bogus files that we don't know about and never remove.  For
6819   # instance it was reported that on HP-UX the gcc test will end up
6820   # making a dummy file named `D' -- because `-MD' means `put the output
6821   # in D'.
6822   mkdir conftest.dir
6823   # Copy depcomp to subdir because otherwise we won't find it if we're
6824   # using a relative directory.
6825   cp "$am_depcomp" conftest.dir
6826   cd conftest.dir
6827   # We will build objects and dependencies in a subdirectory because
6828   # it helps to detect inapplicable dependency modes.  For instance
6829   # both Tru64's cc and ICC support -MD to output dependencies as a
6830   # side effect of compilation, but ICC will put the dependencies in
6831   # the current directory while Tru64 will put them in the object
6832   # directory.
6833   mkdir sub
6834
6835   am_cv_CC_dependencies_compiler_type=none
6836   if test "$am_compiler_list" = ""; then
6837      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6838   fi
6839   for depmode in $am_compiler_list; do
6840     # Setup a source with many dependencies, because some compilers
6841     # like to wrap large dependency lists on column 80 (with \), and
6842     # we should not choose a depcomp mode which is confused by this.
6843     #
6844     # We need to recreate these files for each test, as the compiler may
6845     # overwrite some of them when testing with obscure command lines.
6846     # This happens at least with the AIX C compiler.
6847     : > sub/conftest.c
6848     for i in 1 2 3 4 5 6; do
6849       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6850       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6851       # Solaris 8's {/usr,}/bin/sh.
6852       touch sub/conftst$i.h
6853     done
6854     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6855
6856     case $depmode in
6857     nosideeffect)
6858       # after this tag, mechanisms are not by side-effect, so they'll
6859       # only be used when explicitly requested
6860       if test "x$enable_dependency_tracking" = xyes; then
6861         continue
6862       else
6863         break
6864       fi
6865       ;;
6866     none) break ;;
6867     esac
6868     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6869     # mode.  It turns out that the SunPro C++ compiler does not properly
6870     # handle `-M -o', and we need to detect this.
6871     if depmode=$depmode \
6872        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6873        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6874        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6875          >/dev/null 2>conftest.err &&
6876        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6877        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6878        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6879       # icc doesn't choke on unknown options, it will just issue warnings
6880       # or remarks (even with -Werror).  So we grep stderr for any message
6881       # that says an option was ignored or not supported.
6882       # When given -MP, icc 7.0 and 7.1 complain thusly:
6883       #   icc: Command line warning: ignoring option '-M'; no argument required
6884       # The diagnosis changed in icc 8.0:
6885       #   icc: Command line remark: option '-MP' not supported
6886       if (grep 'ignoring option' conftest.err ||
6887           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6888         am_cv_CC_dependencies_compiler_type=$depmode
6889         break
6890       fi
6891     fi
6892   done
6893
6894   cd ..
6895   rm -rf conftest.dir
6896 else
6897   am_cv_CC_dependencies_compiler_type=none
6898 fi
6899
6900 fi
6901 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6902 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6903 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6904
6905
6906
6907 if
6908   test "x$enable_dependency_tracking" != xno \
6909   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6910   am__fastdepCC_TRUE=
6911   am__fastdepCC_FALSE='#'
6912 else
6913   am__fastdepCC_TRUE='#'
6914   am__fastdepCC_FALSE=
6915 fi
6916
6917
6918
6919
6920 debugdir=${libdir}/debug
6921
6922
6923 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6924 if test "${with_separate_debug_dir+set}" = set; then
6925   withval="$with_separate_debug_dir"
6926   debugdir="${withval}"
6927 fi;
6928
6929
6930   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6931   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6932   ac_define_dir=`eval echo $debugdir`
6933   ac_define_dir=`eval echo $ac_define_dir`
6934
6935 cat >>confdefs.h <<_ACEOF
6936 #define DEBUGDIR "$ac_define_dir"
6937 _ACEOF
6938
6939
6940 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6941
6942 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6943   if test "x$prefix" = xNONE; then
6944     test_prefix=/usr/local
6945   else
6946     test_prefix=$prefix
6947   fi
6948 else
6949   test_prefix=$exec_prefix
6950 fi
6951 case ${debugdir} in
6952 "${test_prefix}"|"${test_prefix}/"*|\
6953 '${exec_prefix}'|'${exec_prefix}/'*)
6954
6955 cat >>confdefs.h <<\_ACEOF
6956 #define DEBUGDIR_RELOCATABLE 1
6957 _ACEOF
6958
6959   ;;
6960 esac
6961
6962
6963
6964 subdirs="$subdirs doc testsuite"
6965
6966
6967 # Check whether to support alternative target configurations
6968 # Check whether --enable-targets or --disable-targets was given.
6969 if test "${enable_targets+set}" = set; then
6970   enableval="$enable_targets"
6971   case "${enableval}" in
6972   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6973 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6974    { (exit 1); exit 1; }; }
6975             ;;
6976   no)       enable_targets= ;;
6977   *)        enable_targets=$enableval ;;
6978 esac
6979 fi;
6980
6981 # Check whether to enable 64-bit support on 32-bit hosts
6982 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6983 if test "${enable_64_bit_bfd+set}" = set; then
6984   enableval="$enable_64_bit_bfd"
6985   case "${enableval}" in
6986   yes)  want64=true  ;;
6987   no)   want64=false ;;
6988   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6989 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6990    { (exit 1); exit 1; }; } ;;
6991 esac
6992 else
6993   want64=false
6994 fi;
6995 # Provide defaults for some variables set by the per-host and per-target
6996 # configuration.
6997 gdb_host_obs=posix-hdep.o
6998
6999 if test "${target}" = "${host}"; then
7000   gdb_native=yes
7001 else
7002   gdb_native=no
7003 fi
7004
7005 . $srcdir/configure.host
7006
7007 # Accumulate some settings from configure.tgt over all enabled targets
7008
7009 TARGET_OBS=
7010 all_targets=
7011
7012 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7013 do
7014   if test "$targ_alias" = "all"; then
7015     all_targets=true
7016   else
7017     # Canonicalize the secondary target names.
7018     result=`$ac_config_sub $targ_alias 2>/dev/null`
7019     if test -n "$result"; then
7020         targ=$result
7021     else
7022         targ=$targ_alias
7023     fi
7024
7025     . ${srcdir}/configure.tgt
7026
7027     # Target-specific object files
7028     for i in ${gdb_target_obs}; do
7029         case " $TARGET_OBS " in
7030         *" ${i} "*) ;;
7031         *)
7032           TARGET_OBS="$TARGET_OBS ${i}"
7033           ;;
7034         esac
7035     done
7036
7037     # Check whether this target needs 64-bit CORE_ADDR
7038     if test x${want64} = xfalse; then
7039       . ${srcdir}/../bfd/config.bfd
7040     fi
7041   fi
7042 done
7043
7044 if test x${all_targets} = xtrue; then
7045
7046   # We want all 64-bit targets if we either:
7047   #  - run on a 64-bit host  or
7048   #  - already require 64-bit support for some other target  or
7049   #  - the --enable-64-bit-bfd option was supplied
7050   # Otherwise we only support all 32-bit targets.
7051   #
7052   # NOTE: This test must be in sync with the corresponding
7053   #       tests in BFD!
7054
7055   if test x${want64} = xfalse; then
7056     echo "$as_me:$LINENO: checking for long" >&5
7057 echo $ECHO_N "checking for long... $ECHO_C" >&6
7058 if test "${ac_cv_type_long+set}" = set; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h.  */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h.  */
7067 $ac_includes_default
7068 int
7069 main ()
7070 {
7071 if ((long *) 0)
7072   return 0;
7073 if (sizeof (long))
7074   return 0;
7075   ;
7076   return 0;
7077 }
7078 _ACEOF
7079 rm -f conftest.$ac_objext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7081   (eval $ac_compile) 2>conftest.er1
7082   ac_status=$?
7083   grep -v '^ *+' conftest.er1 >conftest.err
7084   rm -f conftest.er1
7085   cat conftest.err >&5
7086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087   (exit $ac_status); } &&
7088          { ac_try='test -z "$ac_c_werror_flag"
7089                          || test ! -s conftest.err'
7090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091   (eval $ac_try) 2>&5
7092   ac_status=$?
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); }; } &&
7095          { ac_try='test -s conftest.$ac_objext'
7096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097   (eval $ac_try) 2>&5
7098   ac_status=$?
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); }; }; then
7101   ac_cv_type_long=yes
7102 else
7103   echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7105
7106 ac_cv_type_long=no
7107 fi
7108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7109 fi
7110 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7111 echo "${ECHO_T}$ac_cv_type_long" >&6
7112
7113 echo "$as_me:$LINENO: checking size of long" >&5
7114 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7115 if test "${ac_cv_sizeof_long+set}" = set; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118   if test "$ac_cv_type_long" = yes; then
7119   # The cast to unsigned long works around a bug in the HP C Compiler
7120   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7121   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7122   # This bug is HP SR number 8606223364.
7123   if test "$cross_compiling" = yes; then
7124   # Depending upon the size, compute the lo and hi bounds.
7125 cat >conftest.$ac_ext <<_ACEOF
7126 /* confdefs.h.  */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h.  */
7131 $ac_includes_default
7132 int
7133 main ()
7134 {
7135 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7136 test_array [0] = 0
7137
7138   ;
7139   return 0;
7140 }
7141 _ACEOF
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144   (eval $ac_compile) 2>conftest.er1
7145   ac_status=$?
7146   grep -v '^ *+' conftest.er1 >conftest.err
7147   rm -f conftest.er1
7148   cat conftest.err >&5
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); } &&
7151          { ac_try='test -z "$ac_c_werror_flag"
7152                          || test ! -s conftest.err'
7153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154   (eval $ac_try) 2>&5
7155   ac_status=$?
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); }; } &&
7158          { ac_try='test -s conftest.$ac_objext'
7159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160   (eval $ac_try) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; }; then
7164   ac_lo=0 ac_mid=0
7165   while :; do
7166     cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h.  */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h.  */
7172 $ac_includes_default
7173 int
7174 main ()
7175 {
7176 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7177 test_array [0] = 0
7178
7179   ;
7180   return 0;
7181 }
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185   (eval $ac_compile) 2>conftest.er1
7186   ac_status=$?
7187   grep -v '^ *+' conftest.er1 >conftest.err
7188   rm -f conftest.er1
7189   cat conftest.err >&5
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } &&
7192          { ac_try='test -z "$ac_c_werror_flag"
7193                          || test ! -s conftest.err'
7194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195   (eval $ac_try) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); }; } &&
7199          { ac_try='test -s conftest.$ac_objext'
7200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201   (eval $ac_try) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; }; then
7205   ac_hi=$ac_mid; break
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210 ac_lo=`expr $ac_mid + 1`
7211                     if test $ac_lo -le $ac_mid; then
7212                       ac_lo= ac_hi=
7213                       break
7214                     fi
7215                     ac_mid=`expr 2 '*' $ac_mid + 1`
7216 fi
7217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218   done
7219 else
7220   echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7222
7223 cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h.  */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h.  */
7229 $ac_includes_default
7230 int
7231 main ()
7232 {
7233 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7234 test_array [0] = 0
7235
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242   (eval $ac_compile) 2>conftest.er1
7243   ac_status=$?
7244   grep -v '^ *+' conftest.er1 >conftest.err
7245   rm -f conftest.er1
7246   cat conftest.err >&5
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); } &&
7249          { ac_try='test -z "$ac_c_werror_flag"
7250                          || test ! -s conftest.err'
7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252   (eval $ac_try) 2>&5
7253   ac_status=$?
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); }; } &&
7256          { ac_try='test -s conftest.$ac_objext'
7257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258   (eval $ac_try) 2>&5
7259   ac_status=$?
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); }; }; then
7262   ac_hi=-1 ac_mid=-1
7263   while :; do
7264     cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h.  */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h.  */
7270 $ac_includes_default
7271 int
7272 main ()
7273 {
7274 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7275 test_array [0] = 0
7276
7277   ;
7278   return 0;
7279 }
7280 _ACEOF
7281 rm -f conftest.$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283   (eval $ac_compile) 2>conftest.er1
7284   ac_status=$?
7285   grep -v '^ *+' conftest.er1 >conftest.err
7286   rm -f conftest.er1
7287   cat conftest.err >&5
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); } &&
7290          { ac_try='test -z "$ac_c_werror_flag"
7291                          || test ! -s conftest.err'
7292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293   (eval $ac_try) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); }; } &&
7297          { ac_try='test -s conftest.$ac_objext'
7298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299   (eval $ac_try) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; }; then
7303   ac_lo=$ac_mid; break
7304 else
7305   echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308 ac_hi=`expr '(' $ac_mid ')' - 1`
7309                        if test $ac_mid -le $ac_hi; then
7310                          ac_lo= ac_hi=
7311                          break
7312                        fi
7313                        ac_mid=`expr 2 '*' $ac_mid`
7314 fi
7315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7316   done
7317 else
7318   echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7320
7321 ac_lo= ac_hi=
7322 fi
7323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7324 fi
7325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7326 # Binary search between lo and hi bounds.
7327 while test "x$ac_lo" != "x$ac_hi"; do
7328   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7329   cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335 $ac_includes_default
7336 int
7337 main ()
7338 {
7339 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7340 test_array [0] = 0
7341
7342   ;
7343   return 0;
7344 }
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348   (eval $ac_compile) 2>conftest.er1
7349   ac_status=$?
7350   grep -v '^ *+' conftest.er1 >conftest.err
7351   rm -f conftest.er1
7352   cat conftest.err >&5
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); } &&
7355          { ac_try='test -z "$ac_c_werror_flag"
7356                          || test ! -s conftest.err'
7357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358   (eval $ac_try) 2>&5
7359   ac_status=$?
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); }; } &&
7362          { ac_try='test -s conftest.$ac_objext'
7363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364   (eval $ac_try) 2>&5
7365   ac_status=$?
7366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); }; }; then
7368   ac_hi=$ac_mid
7369 else
7370   echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7372
7373 ac_lo=`expr '(' $ac_mid ')' + 1`
7374 fi
7375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376 done
7377 case $ac_lo in
7378 ?*) ac_cv_sizeof_long=$ac_lo;;
7379 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7380 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7381 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7382 See \`config.log' for more details." >&5
7383 echo "$as_me: error: cannot compute sizeof (long), 77
7384 See \`config.log' for more details." >&2;}
7385    { (exit 1); exit 1; }; }; } ;;
7386 esac
7387 else
7388   if test "$cross_compiling" = yes; then
7389   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7390 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7391 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7392 See \`config.log' for more details." >&5
7393 echo "$as_me: error: cannot run test program while cross compiling
7394 See \`config.log' for more details." >&2;}
7395    { (exit 1); exit 1; }; }; }
7396 else
7397   cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h.  */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h.  */
7403 $ac_includes_default
7404 long longval () { return (long) (sizeof (long)); }
7405 unsigned long ulongval () { return (long) (sizeof (long)); }
7406 #include <stdio.h>
7407 #include <stdlib.h>
7408 int
7409 main ()
7410 {
7411
7412   FILE *f = fopen ("conftest.val", "w");
7413   if (! f)
7414     exit (1);
7415   if (((long) (sizeof (long))) < 0)
7416     {
7417       long i = longval ();
7418       if (i != ((long) (sizeof (long))))
7419         exit (1);
7420       fprintf (f, "%ld\n", i);
7421     }
7422   else
7423     {
7424       unsigned long i = ulongval ();
7425       if (i != ((long) (sizeof (long))))
7426         exit (1);
7427       fprintf (f, "%lu\n", i);
7428     }
7429   exit (ferror (f) || fclose (f) != 0);
7430
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437   (eval $ac_link) 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442   (eval $ac_try) 2>&5
7443   ac_status=$?
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); }; }; then
7446   ac_cv_sizeof_long=`cat conftest.val`
7447 else
7448   echo "$as_me: program exited with status $ac_status" >&5
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7451
7452 ( exit $ac_status )
7453 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7454 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7456 See \`config.log' for more details." >&5
7457 echo "$as_me: error: cannot compute sizeof (long), 77
7458 See \`config.log' for more details." >&2;}
7459    { (exit 1); exit 1; }; }; }
7460 fi
7461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7462 fi
7463 fi
7464 rm -f conftest.val
7465 else
7466   ac_cv_sizeof_long=0
7467 fi
7468 fi
7469 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7470 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7471 cat >>confdefs.h <<_ACEOF
7472 #define SIZEOF_LONG $ac_cv_sizeof_long
7473 _ACEOF
7474
7475
7476     if test "x${ac_cv_sizeof_long}" = "x8"; then
7477       want64=true
7478     fi
7479   fi
7480   if test x${want64} = xtrue; then
7481     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7482   else
7483     TARGET_OBS='$(ALL_TARGET_OBS)'
7484   fi
7485 fi
7486
7487
7488
7489 # For other settings, only the main target counts.
7490 gdb_sim=
7491 gdb_osabi=
7492 build_gdbserver=
7493 targ=$target; . ${srcdir}/configure.tgt
7494
7495 # Fetch the default architecture and default target vector from BFD.
7496 targ=$target; . $srcdir/../bfd/config.bfd
7497
7498 # We only want the first architecture, so strip off the others if
7499 # there is more than one.
7500 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7501
7502 if test "x$targ_archs" != x; then
7503
7504 cat >>confdefs.h <<_ACEOF
7505 #define DEFAULT_BFD_ARCH $targ_archs
7506 _ACEOF
7507
7508 fi
7509 if test "x$targ_defvec" != x; then
7510
7511 cat >>confdefs.h <<_ACEOF
7512 #define DEFAULT_BFD_VEC $targ_defvec
7513 _ACEOF
7514
7515 fi
7516
7517 # The CLI cannot be disabled yet, but may be in the future.
7518
7519 # Enable CLI.
7520 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7521 if test "${enable_gdbcli+set}" = set; then
7522   enableval="$enable_gdbcli"
7523   case $enableval in
7524     yes)
7525       ;;
7526     no)
7527       { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7528 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7529    { (exit 1); exit 1; }; } ;;
7530     *)
7531       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7532 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7533    { (exit 1); exit 1; }; } ;;
7534   esac
7535 else
7536   enable_gdbcli=yes
7537 fi;
7538 if test x"$enable_gdbcli" = xyes; then
7539   if test -d $srcdir/cli; then
7540     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7541     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7542     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7543     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7544   fi
7545 fi
7546
7547 # Enable MI.
7548 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7549 if test "${enable_gdbmi+set}" = set; then
7550   enableval="$enable_gdbmi"
7551   case $enableval in
7552     yes | no)
7553       ;;
7554     *)
7555       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7556 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7557    { (exit 1); exit 1; }; } ;;
7558   esac
7559 else
7560   enable_gdbmi=yes
7561 fi;
7562 if test x"$enable_gdbmi" = xyes; then
7563   if test -d $srcdir/mi; then
7564     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7565     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7566     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7567     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7568   fi
7569 fi
7570
7571 # Enable TUI.
7572 # Check whether --enable-tui or --disable-tui was given.
7573 if test "${enable_tui+set}" = set; then
7574   enableval="$enable_tui"
7575   case $enableval in
7576     yes | no | auto)
7577       ;;
7578     *)
7579       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7580 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7581    { (exit 1); exit 1; }; } ;;
7582   esac
7583 else
7584   enable_tui=auto
7585 fi;
7586
7587 # Enable gdbtk.
7588 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7589 if test "${enable_gdbtk+set}" = set; then
7590   enableval="$enable_gdbtk"
7591   case $enableval in
7592     yes | no)
7593       ;;
7594     *)
7595       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7596 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7597    { (exit 1); exit 1; }; } ;;
7598   esac
7599 else
7600   if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
7601     enable_gdbtk=yes
7602   else
7603     enable_gdbtk=no
7604   fi
7605 fi;
7606 # We unconditionally disable gdbtk tests on selected platforms.
7607 case $host_os in
7608   go32* | windows*)
7609     { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7610 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7611     enable_gdbtk=no ;;
7612 esac
7613
7614 # Libunwind support.
7615
7616 # Check whether --with-libunwind or --without-libunwind was given.
7617 if test "${with_libunwind+set}" = set; then
7618   withval="$with_libunwind"
7619   case "${withval}" in
7620   yes)  enable_libunwind=yes ;;
7621   no)   enable_libunwind=no ;;
7622   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7623 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7624    { (exit 1); exit 1; }; } ;;
7625 esac
7626 else
7627
7628
7629 for ac_header in libunwind.h
7630 do
7631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633   echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 fi
7638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7640 else
7641   # Is the header compilable?
7642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7644 cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h.  */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h.  */
7650 $ac_includes_default
7651 #include <$ac_header>
7652 _ACEOF
7653 rm -f conftest.$ac_objext
7654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655   (eval $ac_compile) 2>conftest.er1
7656   ac_status=$?
7657   grep -v '^ *+' conftest.er1 >conftest.err
7658   rm -f conftest.er1
7659   cat conftest.err >&5
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); } &&
7662          { ac_try='test -z "$ac_c_werror_flag"
7663                          || test ! -s conftest.err'
7664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665   (eval $ac_try) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); }; } &&
7669          { ac_try='test -s conftest.$ac_objext'
7670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671   (eval $ac_try) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675   ac_header_compiler=yes
7676 else
7677   echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680 ac_header_compiler=no
7681 fi
7682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684 echo "${ECHO_T}$ac_header_compiler" >&6
7685
7686 # Is the header present?
7687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7689 cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h.  */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h.  */
7695 #include <$ac_header>
7696 _ACEOF
7697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7698   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7699   ac_status=$?
7700   grep -v '^ *+' conftest.er1 >conftest.err
7701   rm -f conftest.er1
7702   cat conftest.err >&5
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); } >/dev/null; then
7705   if test -s conftest.err; then
7706     ac_cpp_err=$ac_c_preproc_warn_flag
7707     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7708   else
7709     ac_cpp_err=
7710   fi
7711 else
7712   ac_cpp_err=yes
7713 fi
7714 if test -z "$ac_cpp_err"; then
7715   ac_header_preproc=yes
7716 else
7717   echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7719
7720   ac_header_preproc=no
7721 fi
7722 rm -f conftest.err conftest.$ac_ext
7723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7724 echo "${ECHO_T}$ac_header_preproc" >&6
7725
7726 # So?  What about this header?
7727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7728   yes:no: )
7729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7733     ac_header_preproc=yes
7734     ;;
7735   no:yes:* )
7736     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7738     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7739 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7740     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7742     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7743 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7746     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7748     (
7749       cat <<\_ASBOX
7750 ## ------------------------------------------ ##
7751 ## Report this to the AC_PACKAGE_NAME lists.  ##
7752 ## ------------------------------------------ ##
7753 _ASBOX
7754     ) |
7755       sed "s/^/$as_me: WARNING:     /" >&2
7756     ;;
7757 esac
7758 echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763   eval "$as_ac_Header=\$ac_header_preproc"
7764 fi
7765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7767
7768 fi
7769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7770   cat >>confdefs.h <<_ACEOF
7771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7772 _ACEOF
7773
7774 fi
7775
7776 done
7777
7778
7779 for ac_header in libunwind-ia64.h
7780 do
7781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7783   echo "$as_me:$LINENO: checking for $ac_header" >&5
7784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 fi
7788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7790 else
7791   # Is the header compilable?
7792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7794 cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h.  */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h.  */
7800 $ac_includes_default
7801 #include <$ac_header>
7802 _ACEOF
7803 rm -f conftest.$ac_objext
7804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7805   (eval $ac_compile) 2>conftest.er1
7806   ac_status=$?
7807   grep -v '^ *+' conftest.er1 >conftest.err
7808   rm -f conftest.er1
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } &&
7812          { ac_try='test -z "$ac_c_werror_flag"
7813                          || test ! -s conftest.err'
7814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815   (eval $ac_try) 2>&5
7816   ac_status=$?
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); }; } &&
7819          { ac_try='test -s conftest.$ac_objext'
7820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821   (eval $ac_try) 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); }; }; then
7825   ac_header_compiler=yes
7826 else
7827   echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7829
7830 ac_header_compiler=no
7831 fi
7832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834 echo "${ECHO_T}$ac_header_compiler" >&6
7835
7836 # Is the header present?
7837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h.  */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h.  */
7845 #include <$ac_header>
7846 _ACEOF
7847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7849   ac_status=$?
7850   grep -v '^ *+' conftest.er1 >conftest.err
7851   rm -f conftest.er1
7852   cat conftest.err >&5
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } >/dev/null; then
7855   if test -s conftest.err; then
7856     ac_cpp_err=$ac_c_preproc_warn_flag
7857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7858   else
7859     ac_cpp_err=
7860   fi
7861 else
7862   ac_cpp_err=yes
7863 fi
7864 if test -z "$ac_cpp_err"; then
7865   ac_header_preproc=yes
7866 else
7867   echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7869
7870   ac_header_preproc=no
7871 fi
7872 rm -f conftest.err conftest.$ac_ext
7873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874 echo "${ECHO_T}$ac_header_preproc" >&6
7875
7876 # So?  What about this header?
7877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7878   yes:no: )
7879     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7883     ac_header_preproc=yes
7884     ;;
7885   no:yes:* )
7886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7890     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7892     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7893 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7896     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7898     (
7899       cat <<\_ASBOX
7900 ## ------------------------------------------ ##
7901 ## Report this to the AC_PACKAGE_NAME lists.  ##
7902 ## ------------------------------------------ ##
7903 _ASBOX
7904     ) |
7905       sed "s/^/$as_me: WARNING:     /" >&2
7906     ;;
7907 esac
7908 echo "$as_me:$LINENO: checking for $ac_header" >&5
7909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   eval "$as_ac_Header=\$ac_header_preproc"
7914 fi
7915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7917
7918 fi
7919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7920   cat >>confdefs.h <<_ACEOF
7921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7922 _ACEOF
7923
7924 fi
7925
7926 done
7927
7928   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7929     enable_libunwind=yes;
7930   fi
7931
7932 fi;
7933
7934 if test x"$enable_libunwind" = xyes; then
7935
7936 for ac_header in libunwind.h
7937 do
7938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7940   echo "$as_me:$LINENO: checking for $ac_header" >&5
7941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7943   echo $ECHO_N "(cached) $ECHO_C" >&6
7944 fi
7945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7947 else
7948   # Is the header compilable?
7949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7951 cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h.  */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h.  */
7957 $ac_includes_default
7958 #include <$ac_header>
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962   (eval $ac_compile) 2>conftest.er1
7963   ac_status=$?
7964   grep -v '^ *+' conftest.er1 >conftest.err
7965   rm -f conftest.er1
7966   cat conftest.err >&5
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -z "$ac_c_werror_flag"
7970                          || test ! -s conftest.err'
7971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972   (eval $ac_try) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; } &&
7976          { ac_try='test -s conftest.$ac_objext'
7977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978   (eval $ac_try) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); }; }; then
7982   ac_header_compiler=yes
7983 else
7984   echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7986
7987 ac_header_compiler=no
7988 fi
7989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7991 echo "${ECHO_T}$ac_header_compiler" >&6
7992
7993 # Is the header present?
7994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7996 cat >conftest.$ac_ext <<_ACEOF
7997 /* confdefs.h.  */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h.  */
8002 #include <$ac_header>
8003 _ACEOF
8004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8006   ac_status=$?
8007   grep -v '^ *+' conftest.er1 >conftest.err
8008   rm -f conftest.er1
8009   cat conftest.err >&5
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); } >/dev/null; then
8012   if test -s conftest.err; then
8013     ac_cpp_err=$ac_c_preproc_warn_flag
8014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8015   else
8016     ac_cpp_err=
8017   fi
8018 else
8019   ac_cpp_err=yes
8020 fi
8021 if test -z "$ac_cpp_err"; then
8022   ac_header_preproc=yes
8023 else
8024   echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8026
8027   ac_header_preproc=no
8028 fi
8029 rm -f conftest.err conftest.$ac_ext
8030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8031 echo "${ECHO_T}$ac_header_preproc" >&6
8032
8033 # So?  What about this header?
8034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8035   yes:no: )
8036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8040     ac_header_preproc=yes
8041     ;;
8042   no:yes:* )
8043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8055     (
8056       cat <<\_ASBOX
8057 ## ------------------------------------------ ##
8058 ## Report this to the AC_PACKAGE_NAME lists.  ##
8059 ## ------------------------------------------ ##
8060 _ASBOX
8061     ) |
8062       sed "s/^/$as_me: WARNING:     /" >&2
8063     ;;
8064 esac
8065 echo "$as_me:$LINENO: checking for $ac_header" >&5
8066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8068   echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070   eval "$as_ac_Header=\$ac_header_preproc"
8071 fi
8072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8074
8075 fi
8076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8077   cat >>confdefs.h <<_ACEOF
8078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8079 _ACEOF
8080
8081 fi
8082
8083 done
8084
8085
8086 for ac_header in libunwind-ia64.h
8087 do
8088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090   echo "$as_me:$LINENO: checking for $ac_header" >&5
8091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093   echo $ECHO_N "(cached) $ECHO_C" >&6
8094 fi
8095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8097 else
8098   # Is the header compilable?
8099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107 $ac_includes_default
8108 #include <$ac_header>
8109 _ACEOF
8110 rm -f conftest.$ac_objext
8111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112   (eval $ac_compile) 2>conftest.er1
8113   ac_status=$?
8114   grep -v '^ *+' conftest.er1 >conftest.err
8115   rm -f conftest.er1
8116   cat conftest.err >&5
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); } &&
8119          { ac_try='test -z "$ac_c_werror_flag"
8120                          || test ! -s conftest.err'
8121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122   (eval $ac_try) 2>&5
8123   ac_status=$?
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); }; } &&
8126          { ac_try='test -s conftest.$ac_objext'
8127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128   (eval $ac_try) 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); }; }; then
8132   ac_header_compiler=yes
8133 else
8134   echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 ac_header_compiler=no
8138 fi
8139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8141 echo "${ECHO_T}$ac_header_compiler" >&6
8142
8143 # Is the header present?
8144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8146 cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h.  */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h.  */
8152 #include <$ac_header>
8153 _ACEOF
8154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8156   ac_status=$?
8157   grep -v '^ *+' conftest.er1 >conftest.err
8158   rm -f conftest.er1
8159   cat conftest.err >&5
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); } >/dev/null; then
8162   if test -s conftest.err; then
8163     ac_cpp_err=$ac_c_preproc_warn_flag
8164     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8165   else
8166     ac_cpp_err=
8167   fi
8168 else
8169   ac_cpp_err=yes
8170 fi
8171 if test -z "$ac_cpp_err"; then
8172   ac_header_preproc=yes
8173 else
8174   echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8176
8177   ac_header_preproc=no
8178 fi
8179 rm -f conftest.err conftest.$ac_ext
8180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8181 echo "${ECHO_T}$ac_header_preproc" >&6
8182
8183 # So?  What about this header?
8184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8185   yes:no: )
8186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8190     ac_header_preproc=yes
8191     ;;
8192   no:yes:* )
8193     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8195     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8196 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8197     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8199     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8200 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8203     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8205     (
8206       cat <<\_ASBOX
8207 ## ------------------------------------------ ##
8208 ## Report this to the AC_PACKAGE_NAME lists.  ##
8209 ## ------------------------------------------ ##
8210 _ASBOX
8211     ) |
8212       sed "s/^/$as_me: WARNING:     /" >&2
8213     ;;
8214 esac
8215 echo "$as_me:$LINENO: checking for $ac_header" >&5
8216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8218   echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220   eval "$as_ac_Header=\$ac_header_preproc"
8221 fi
8222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8224
8225 fi
8226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8227   cat >>confdefs.h <<_ACEOF
8228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8229 _ACEOF
8230
8231 fi
8232
8233 done
8234
8235
8236 cat >>confdefs.h <<\_ACEOF
8237 #define HAVE_LIBUNWIND 1
8238 _ACEOF
8239
8240   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8241   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8242   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8243 fi
8244
8245 # Profiling support.
8246 # Check whether --enable-profiling or --disable-profiling was given.
8247 if test "${enable_profiling+set}" = set; then
8248   enableval="$enable_profiling"
8249   case $enableval in
8250     yes | no)
8251       ;;
8252     *)
8253       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8254 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8255    { (exit 1); exit 1; }; } ;;
8256   esac
8257 else
8258   enable_profiling=no
8259 fi;
8260
8261
8262
8263 for ac_func in monstartup _mcleanup
8264 do
8265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8266 echo "$as_me:$LINENO: checking for $ac_func" >&5
8267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8268 if eval "test \"\${$as_ac_var+set}\" = set"; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8279 #define $ac_func innocuous_$ac_func
8280
8281 /* System header to define __stub macros and hopefully few prototypes,
8282     which can conflict with char $ac_func (); below.
8283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284     <limits.h> exists even on freestanding compilers.  */
8285
8286 #ifdef __STDC__
8287 # include <limits.h>
8288 #else
8289 # include <assert.h>
8290 #endif
8291
8292 #undef $ac_func
8293
8294 /* Override any gcc2 internal prototype to avoid an error.  */
8295 #ifdef __cplusplus
8296 extern "C"
8297 {
8298 #endif
8299 /* We use char because int might match the return type of a gcc2
8300    builtin and then its argument prototype would still apply.  */
8301 char $ac_func ();
8302 /* The GNU C library defines this for functions which it implements
8303     to always fail with ENOSYS.  Some functions are actually named
8304     something starting with __ and the normal name is an alias.  */
8305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8306 choke me
8307 #else
8308 char (*f) () = $ac_func;
8309 #endif
8310 #ifdef __cplusplus
8311 }
8312 #endif
8313
8314 int
8315 main ()
8316 {
8317 return f != $ac_func;
8318   ;
8319   return 0;
8320 }
8321 _ACEOF
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324   (eval $ac_link) 2>conftest.er1
8325   ac_status=$?
8326   grep -v '^ *+' conftest.er1 >conftest.err
8327   rm -f conftest.er1
8328   cat conftest.err >&5
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); } &&
8331          { ac_try='test -z "$ac_c_werror_flag"
8332                          || test ! -s conftest.err'
8333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334   (eval $ac_try) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); }; } &&
8338          { ac_try='test -s conftest$ac_exeext'
8339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340   (eval $ac_try) 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; }; then
8344   eval "$as_ac_var=yes"
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349 eval "$as_ac_var=no"
8350 fi
8351 rm -f conftest.err conftest.$ac_objext \
8352       conftest$ac_exeext conftest.$ac_ext
8353 fi
8354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8356 if test `eval echo '${'$as_ac_var'}'` = yes; then
8357   cat >>confdefs.h <<_ACEOF
8358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8359 _ACEOF
8360
8361 fi
8362 done
8363
8364 echo "$as_me:$LINENO: checking for _etext" >&5
8365 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8366 if test "${ac_cv_var__etext+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   cat >conftest.$ac_ext <<_ACEOF
8370 /* confdefs.h.  */
8371 _ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h.  */
8375 #include <stdlib.h>
8376 extern char _etext;
8377
8378 int
8379 main ()
8380 {
8381 free (&_etext);
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388   (eval $ac_link) 2>conftest.er1
8389   ac_status=$?
8390   grep -v '^ *+' conftest.er1 >conftest.err
8391   rm -f conftest.er1
8392   cat conftest.err >&5
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } &&
8395          { ac_try='test -z "$ac_c_werror_flag"
8396                          || test ! -s conftest.err'
8397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398   (eval $ac_try) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; } &&
8402          { ac_try='test -s conftest$ac_exeext'
8403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404   (eval $ac_try) 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; }; then
8408   ac_cv_var__etext=yes
8409 else
8410   echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413 ac_cv_var__etext=no
8414 fi
8415 rm -f conftest.err conftest.$ac_objext \
8416       conftest$ac_exeext conftest.$ac_ext
8417 fi
8418 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8419 echo "${ECHO_T}$ac_cv_var__etext" >&6
8420 if test $ac_cv_var__etext = yes; then
8421
8422 cat >>confdefs.h <<\_ACEOF
8423 #define HAVE__ETEXT 1
8424 _ACEOF
8425
8426 fi
8427 echo "$as_me:$LINENO: checking for etext" >&5
8428 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8429 if test "${ac_cv_var_etext+set}" = set; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h.  */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h.  */
8438 #include <stdlib.h>
8439 extern char etext;
8440
8441 int
8442 main ()
8443 {
8444 free (&etext);
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451   (eval $ac_link) 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -z "$ac_c_werror_flag"
8459                          || test ! -s conftest.err'
8460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461   (eval $ac_try) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; } &&
8465          { ac_try='test -s conftest$ac_exeext'
8466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467   (eval $ac_try) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; }; then
8471   ac_cv_var_etext=yes
8472 else
8473   echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 ac_cv_var_etext=no
8477 fi
8478 rm -f conftest.err conftest.$ac_objext \
8479       conftest$ac_exeext conftest.$ac_ext
8480 fi
8481 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8482 echo "${ECHO_T}$ac_cv_var_etext" >&6
8483 if test $ac_cv_var_etext = yes; then
8484
8485 cat >>confdefs.h <<\_ACEOF
8486 #define HAVE_ETEXT 1
8487 _ACEOF
8488
8489 fi
8490 if test "$enable_profiling" = yes ; then
8491   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8492     { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8493 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8494    { (exit 1); exit 1; }; }
8495   fi
8496   PROFILE_CFLAGS=-pg
8497   OLD_CFLAGS="$CFLAGS"
8498   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8499
8500   echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8501 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8502 if test "${ac_cv_cc_supports_pg+set}" = set; then
8503   echo $ECHO_N "(cached) $ECHO_C" >&6
8504 else
8505   cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h.  */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h.  */
8511
8512 int
8513 main ()
8514 {
8515 int x;
8516   ;
8517   return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522   (eval $ac_compile) 2>conftest.er1
8523   ac_status=$?
8524   grep -v '^ *+' conftest.er1 >conftest.err
8525   rm -f conftest.er1
8526   cat conftest.err >&5
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); } &&
8529          { ac_try='test -z "$ac_c_werror_flag"
8530                          || test ! -s conftest.err'
8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532   (eval $ac_try) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; } &&
8536          { ac_try='test -s conftest.$ac_objext'
8537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538   (eval $ac_try) 2>&5
8539   ac_status=$?
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); }; }; then
8542   ac_cv_cc_supports_pg=yes
8543 else
8544   echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8546
8547 ac_cv_cc_supports_pg=no
8548 fi
8549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8550 fi
8551 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8552 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8553
8554   if test $ac_cv_cc_supports_pg = no; then
8555     { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8556 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8557    { (exit 1); exit 1; }; }
8558   fi
8559
8560   CFLAGS="$OLD_CFLAGS"
8561 fi
8562
8563
8564
8565 # Check whether --with-pkgversion or --without-pkgversion was given.
8566 if test "${with_pkgversion+set}" = set; then
8567   withval="$with_pkgversion"
8568   case "$withval" in
8569       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8570 echo "$as_me: error: package version not specified" >&2;}
8571    { (exit 1); exit 1; }; } ;;
8572       no)  PKGVERSION= ;;
8573       *)   PKGVERSION="($withval) " ;;
8574      esac
8575 else
8576   PKGVERSION="(GDB) "
8577
8578 fi;
8579
8580
8581
8582
8583 # Check whether --with-bugurl or --without-bugurl was given.
8584 if test "${with_bugurl+set}" = set; then
8585   withval="$with_bugurl"
8586   case "$withval" in
8587       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8588 echo "$as_me: error: bug URL not specified" >&2;}
8589    { (exit 1); exit 1; }; } ;;
8590       no)  BUGURL=
8591            ;;
8592       *)   BUGURL="$withval"
8593            ;;
8594      esac
8595 else
8596   BUGURL="http://www.gnu.org/software/gdb/bugs/"
8597
8598 fi;
8599   case ${BUGURL} in
8600   "")
8601     REPORT_BUGS_TO=
8602     REPORT_BUGS_TEXI=
8603     ;;
8604   *)
8605     REPORT_BUGS_TO="<$BUGURL>"
8606     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8607     ;;
8608   esac;
8609
8610
8611
8612
8613 cat >>confdefs.h <<_ACEOF
8614 #define PKGVERSION "$PKGVERSION"
8615 _ACEOF
8616
8617
8618 cat >>confdefs.h <<_ACEOF
8619 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8620 _ACEOF
8621
8622
8623 # --------------------- #
8624 # Checks for programs.  #
8625 # --------------------- #
8626
8627 for ac_prog in gawk mawk nawk awk
8628 do
8629   # Extract the first word of "$ac_prog", so it can be a program name with args.
8630 set dummy $ac_prog; ac_word=$2
8631 echo "$as_me:$LINENO: checking for $ac_word" >&5
8632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8633 if test "${ac_cv_prog_AWK+set}" = set; then
8634   echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636   if test -n "$AWK"; then
8637   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8641 do
8642   IFS=$as_save_IFS
8643   test -z "$as_dir" && as_dir=.
8644   for ac_exec_ext in '' $ac_executable_extensions; do
8645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646     ac_cv_prog_AWK="$ac_prog"
8647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8648     break 2
8649   fi
8650 done
8651 done
8652
8653 fi
8654 fi
8655 AWK=$ac_cv_prog_AWK
8656 if test -n "$AWK"; then
8657   echo "$as_me:$LINENO: result: $AWK" >&5
8658 echo "${ECHO_T}$AWK" >&6
8659 else
8660   echo "$as_me:$LINENO: result: no" >&5
8661 echo "${ECHO_T}no" >&6
8662 fi
8663
8664   test -n "$AWK" && break
8665 done
8666
8667 # Find a good install program.  We prefer a C program (faster),
8668 # so one script is as good as another.  But avoid the broken or
8669 # incompatible versions:
8670 # SysV /etc/install, /usr/sbin/install
8671 # SunOS /usr/etc/install
8672 # IRIX /sbin/install
8673 # AIX /bin/install
8674 # AmigaOS /C/install, which installs bootblocks on floppy discs
8675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8678 # OS/2's system install, which has a completely different semantic
8679 # ./install, which can be erroneously created by make from ./install.sh.
8680 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8681 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8682 if test -z "$INSTALL"; then
8683 if test "${ac_cv_path_install+set}" = set; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689   IFS=$as_save_IFS
8690   test -z "$as_dir" && as_dir=.
8691   # Account for people who put trailing slashes in PATH elements.
8692 case $as_dir/ in
8693   ./ | .// | /cC/* | \
8694   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8695   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8696   /usr/ucb/* ) ;;
8697   *)
8698     # OSF1 and SCO ODT 3.0 have their own names for install.
8699     # Don't use installbsd from OSF since it installs stuff as root
8700     # by default.
8701     for ac_prog in ginstall scoinst install; do
8702       for ac_exec_ext in '' $ac_executable_extensions; do
8703         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8704           if test $ac_prog = install &&
8705             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8706             # AIX install.  It has an incompatible calling convention.
8707             :
8708           elif test $ac_prog = install &&
8709             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8710             # program-specific install script used by HP pwplus--don't use.
8711             :
8712           else
8713             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8714             break 3
8715           fi
8716         fi
8717       done
8718     done
8719     ;;
8720 esac
8721 done
8722
8723
8724 fi
8725   if test "${ac_cv_path_install+set}" = set; then
8726     INSTALL=$ac_cv_path_install
8727   else
8728     # As a last resort, use the slow shell script.  We don't cache a
8729     # path for INSTALL within a source directory, because that will
8730     # break other packages using the cache if that directory is
8731     # removed, or if the path is relative.
8732     INSTALL=$ac_install_sh
8733   fi
8734 fi
8735 echo "$as_me:$LINENO: result: $INSTALL" >&5
8736 echo "${ECHO_T}$INSTALL" >&6
8737
8738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8739 # It thinks the first close brace ends the variable substitution.
8740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8741
8742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8743
8744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8745
8746 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8747 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8748 LN_S=$as_ln_s
8749 if test "$LN_S" = "ln -s"; then
8750   echo "$as_me:$LINENO: result: yes" >&5
8751 echo "${ECHO_T}yes" >&6
8752 else
8753   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8754 echo "${ECHO_T}no, using $LN_S" >&6
8755 fi
8756
8757 if test -n "$ac_tool_prefix"; then
8758   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8760 echo "$as_me:$LINENO: checking for $ac_word" >&5
8761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8762 if test "${ac_cv_prog_RANLIB+set}" = set; then
8763   echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765   if test -n "$RANLIB"; then
8766   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8767 else
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8770 do
8771   IFS=$as_save_IFS
8772   test -z "$as_dir" && as_dir=.
8773   for ac_exec_ext in '' $ac_executable_extensions; do
8774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8777     break 2
8778   fi
8779 done
8780 done
8781
8782 fi
8783 fi
8784 RANLIB=$ac_cv_prog_RANLIB
8785 if test -n "$RANLIB"; then
8786   echo "$as_me:$LINENO: result: $RANLIB" >&5
8787 echo "${ECHO_T}$RANLIB" >&6
8788 else
8789   echo "$as_me:$LINENO: result: no" >&5
8790 echo "${ECHO_T}no" >&6
8791 fi
8792
8793 fi
8794 if test -z "$ac_cv_prog_RANLIB"; then
8795   ac_ct_RANLIB=$RANLIB
8796   # Extract the first word of "ranlib", so it can be a program name with args.
8797 set dummy ranlib; ac_word=$2
8798 echo "$as_me:$LINENO: checking for $ac_word" >&5
8799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8800 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8801   echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803   if test -n "$ac_ct_RANLIB"; then
8804   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8805 else
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 for as_dir in $PATH
8808 do
8809   IFS=$as_save_IFS
8810   test -z "$as_dir" && as_dir=.
8811   for ac_exec_ext in '' $ac_executable_extensions; do
8812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813     ac_cv_prog_ac_ct_RANLIB="ranlib"
8814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8815     break 2
8816   fi
8817 done
8818 done
8819
8820   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8821 fi
8822 fi
8823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8824 if test -n "$ac_ct_RANLIB"; then
8825   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8826 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8827 else
8828   echo "$as_me:$LINENO: result: no" >&5
8829 echo "${ECHO_T}no" >&6
8830 fi
8831
8832   RANLIB=$ac_ct_RANLIB
8833 else
8834   RANLIB="$ac_cv_prog_RANLIB"
8835 fi
8836
8837 for ac_prog in 'bison -y' byacc
8838 do
8839   # Extract the first word of "$ac_prog", so it can be a program name with args.
8840 set dummy $ac_prog; ac_word=$2
8841 echo "$as_me:$LINENO: checking for $ac_word" >&5
8842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8843 if test "${ac_cv_prog_YACC+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846   if test -n "$YACC"; then
8847   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8848 else
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8851 do
8852   IFS=$as_save_IFS
8853   test -z "$as_dir" && as_dir=.
8854   for ac_exec_ext in '' $ac_executable_extensions; do
8855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856     ac_cv_prog_YACC="$ac_prog"
8857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8858     break 2
8859   fi
8860 done
8861 done
8862
8863 fi
8864 fi
8865 YACC=$ac_cv_prog_YACC
8866 if test -n "$YACC"; then
8867   echo "$as_me:$LINENO: result: $YACC" >&5
8868 echo "${ECHO_T}$YACC" >&6
8869 else
8870   echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8872 fi
8873
8874   test -n "$YACC" && break
8875 done
8876 test -n "$YACC" || YACC="yacc"
8877
8878
8879 if test -n "$ac_tool_prefix"; then
8880   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8881 set dummy ${ac_tool_prefix}ar; ac_word=$2
8882 echo "$as_me:$LINENO: checking for $ac_word" >&5
8883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8884 if test "${ac_cv_prog_AR+set}" = set; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   if test -n "$AR"; then
8888   ac_cv_prog_AR="$AR" # Let the user override the test.
8889 else
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 for as_dir in $PATH
8892 do
8893   IFS=$as_save_IFS
8894   test -z "$as_dir" && as_dir=.
8895   for ac_exec_ext in '' $ac_executable_extensions; do
8896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897     ac_cv_prog_AR="${ac_tool_prefix}ar"
8898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8899     break 2
8900   fi
8901 done
8902 done
8903
8904 fi
8905 fi
8906 AR=$ac_cv_prog_AR
8907 if test -n "$AR"; then
8908   echo "$as_me:$LINENO: result: $AR" >&5
8909 echo "${ECHO_T}$AR" >&6
8910 else
8911   echo "$as_me:$LINENO: result: no" >&5
8912 echo "${ECHO_T}no" >&6
8913 fi
8914
8915 fi
8916 if test -z "$ac_cv_prog_AR"; then
8917   ac_ct_AR=$AR
8918   # Extract the first word of "ar", so it can be a program name with args.
8919 set dummy ar; ac_word=$2
8920 echo "$as_me:$LINENO: checking for $ac_word" >&5
8921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8922 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8923   echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925   if test -n "$ac_ct_AR"; then
8926   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8927 else
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 for as_dir in $PATH
8930 do
8931   IFS=$as_save_IFS
8932   test -z "$as_dir" && as_dir=.
8933   for ac_exec_ext in '' $ac_executable_extensions; do
8934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935     ac_cv_prog_ac_ct_AR="ar"
8936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8937     break 2
8938   fi
8939 done
8940 done
8941
8942 fi
8943 fi
8944 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8945 if test -n "$ac_ct_AR"; then
8946   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8947 echo "${ECHO_T}$ac_ct_AR" >&6
8948 else
8949   echo "$as_me:$LINENO: result: no" >&5
8950 echo "${ECHO_T}no" >&6
8951 fi
8952
8953   AR=$ac_ct_AR
8954 else
8955   AR="$ac_cv_prog_AR"
8956 fi
8957
8958 if test -n "$ac_tool_prefix"; then
8959   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8960 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8961 echo "$as_me:$LINENO: checking for $ac_word" >&5
8962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8963 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966   if test -n "$DLLTOOL"; then
8967   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8968 else
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970 for as_dir in $PATH
8971 do
8972   IFS=$as_save_IFS
8973   test -z "$as_dir" && as_dir=.
8974   for ac_exec_ext in '' $ac_executable_extensions; do
8975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8978     break 2
8979   fi
8980 done
8981 done
8982
8983 fi
8984 fi
8985 DLLTOOL=$ac_cv_prog_DLLTOOL
8986 if test -n "$DLLTOOL"; then
8987   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8988 echo "${ECHO_T}$DLLTOOL" >&6
8989 else
8990   echo "$as_me:$LINENO: result: no" >&5
8991 echo "${ECHO_T}no" >&6
8992 fi
8993
8994 fi
8995 if test -z "$ac_cv_prog_DLLTOOL"; then
8996   ac_ct_DLLTOOL=$DLLTOOL
8997   # Extract the first word of "dlltool", so it can be a program name with args.
8998 set dummy dlltool; ac_word=$2
8999 echo "$as_me:$LINENO: checking for $ac_word" >&5
9000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004   if test -n "$ac_ct_DLLTOOL"; then
9005   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9009 do
9010   IFS=$as_save_IFS
9011   test -z "$as_dir" && as_dir=.
9012   for ac_exec_ext in '' $ac_executable_extensions; do
9013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016     break 2
9017   fi
9018 done
9019 done
9020
9021 fi
9022 fi
9023 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9024 if test -n "$ac_ct_DLLTOOL"; then
9025   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9026 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9027 else
9028   echo "$as_me:$LINENO: result: no" >&5
9029 echo "${ECHO_T}no" >&6
9030 fi
9031
9032   DLLTOOL=$ac_ct_DLLTOOL
9033 else
9034   DLLTOOL="$ac_cv_prog_DLLTOOL"
9035 fi
9036
9037 if test -n "$ac_tool_prefix"; then
9038   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9039 set dummy ${ac_tool_prefix}windres; ac_word=$2
9040 echo "$as_me:$LINENO: checking for $ac_word" >&5
9041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9042 if test "${ac_cv_prog_WINDRES+set}" = set; then
9043   echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045   if test -n "$WINDRES"; then
9046   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9050 do
9051   IFS=$as_save_IFS
9052   test -z "$as_dir" && as_dir=.
9053   for ac_exec_ext in '' $ac_executable_extensions; do
9054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057     break 2
9058   fi
9059 done
9060 done
9061
9062 fi
9063 fi
9064 WINDRES=$ac_cv_prog_WINDRES
9065 if test -n "$WINDRES"; then
9066   echo "$as_me:$LINENO: result: $WINDRES" >&5
9067 echo "${ECHO_T}$WINDRES" >&6
9068 else
9069   echo "$as_me:$LINENO: result: no" >&5
9070 echo "${ECHO_T}no" >&6
9071 fi
9072
9073 fi
9074 if test -z "$ac_cv_prog_WINDRES"; then
9075   ac_ct_WINDRES=$WINDRES
9076   # Extract the first word of "windres", so it can be a program name with args.
9077 set dummy windres; ac_word=$2
9078 echo "$as_me:$LINENO: checking for $ac_word" >&5
9079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9080 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9081   echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083   if test -n "$ac_ct_WINDRES"; then
9084   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9085 else
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9088 do
9089   IFS=$as_save_IFS
9090   test -z "$as_dir" && as_dir=.
9091   for ac_exec_ext in '' $ac_executable_extensions; do
9092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093     ac_cv_prog_ac_ct_WINDRES="windres"
9094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9095     break 2
9096   fi
9097 done
9098 done
9099
9100 fi
9101 fi
9102 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9103 if test -n "$ac_ct_WINDRES"; then
9104   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9105 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9106 else
9107   echo "$as_me:$LINENO: result: no" >&5
9108 echo "${ECHO_T}no" >&6
9109 fi
9110
9111   WINDRES=$ac_ct_WINDRES
9112 else
9113   WINDRES="$ac_cv_prog_WINDRES"
9114 fi
9115
9116
9117 # Needed for GNU/Hurd.
9118 if test -n "$ac_tool_prefix"; then
9119   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9120 set dummy ${ac_tool_prefix}mig; ac_word=$2
9121 echo "$as_me:$LINENO: checking for $ac_word" >&5
9122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9123 if test "${ac_cv_prog_MIG+set}" = set; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   if test -n "$MIG"; then
9127   ac_cv_prog_MIG="$MIG" # Let the user override the test.
9128 else
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9131 do
9132   IFS=$as_save_IFS
9133   test -z "$as_dir" && as_dir=.
9134   for ac_exec_ext in '' $ac_executable_extensions; do
9135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9136     ac_cv_prog_MIG="${ac_tool_prefix}mig"
9137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9138     break 2
9139   fi
9140 done
9141 done
9142
9143 fi
9144 fi
9145 MIG=$ac_cv_prog_MIG
9146 if test -n "$MIG"; then
9147   echo "$as_me:$LINENO: result: $MIG" >&5
9148 echo "${ECHO_T}$MIG" >&6
9149 else
9150   echo "$as_me:$LINENO: result: no" >&5
9151 echo "${ECHO_T}no" >&6
9152 fi
9153
9154 fi
9155 if test -z "$ac_cv_prog_MIG"; then
9156   ac_ct_MIG=$MIG
9157   # Extract the first word of "mig", so it can be a program name with args.
9158 set dummy mig; ac_word=$2
9159 echo "$as_me:$LINENO: checking for $ac_word" >&5
9160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9161 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   if test -n "$ac_ct_MIG"; then
9165   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9166 else
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 for as_dir in $PATH
9169 do
9170   IFS=$as_save_IFS
9171   test -z "$as_dir" && as_dir=.
9172   for ac_exec_ext in '' $ac_executable_extensions; do
9173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9174     ac_cv_prog_ac_ct_MIG="mig"
9175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9176     break 2
9177   fi
9178 done
9179 done
9180
9181 fi
9182 fi
9183 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9184 if test -n "$ac_ct_MIG"; then
9185   echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9186 echo "${ECHO_T}$ac_ct_MIG" >&6
9187 else
9188   echo "$as_me:$LINENO: result: no" >&5
9189 echo "${ECHO_T}no" >&6
9190 fi
9191
9192   MIG=$ac_ct_MIG
9193 else
9194   MIG="$ac_cv_prog_MIG"
9195 fi
9196
9197
9198 # ---------------------- #
9199 # Checks for libraries.  #
9200 # ---------------------- #
9201
9202 # We might need to link with -lm; most simulators need it.
9203
9204 echo "$as_me:$LINENO: checking for main in -lm" >&5
9205 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9206 if test "${ac_cv_lib_m_main+set}" = set; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   ac_check_lib_save_LIBS=$LIBS
9210 LIBS="-lm  $LIBS"
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h.  */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h.  */
9217
9218
9219 int
9220 main ()
9221 {
9222 main ();
9223   ;
9224   return 0;
9225 }
9226 _ACEOF
9227 rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229   (eval $ac_link) 2>conftest.er1
9230   ac_status=$?
9231   grep -v '^ *+' conftest.er1 >conftest.err
9232   rm -f conftest.er1
9233   cat conftest.err >&5
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); } &&
9236          { ac_try='test -z "$ac_c_werror_flag"
9237                          || test ! -s conftest.err'
9238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239   (eval $ac_try) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); }; } &&
9243          { ac_try='test -s conftest$ac_exeext'
9244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245   (eval $ac_try) 2>&5
9246   ac_status=$?
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); }; }; then
9249   ac_cv_lib_m_main=yes
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254 ac_cv_lib_m_main=no
9255 fi
9256 rm -f conftest.err conftest.$ac_objext \
9257       conftest$ac_exeext conftest.$ac_ext
9258 LIBS=$ac_check_lib_save_LIBS
9259 fi
9260 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9261 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9262 if test $ac_cv_lib_m_main = yes; then
9263   cat >>confdefs.h <<_ACEOF
9264 #define HAVE_LIBM 1
9265 _ACEOF
9266
9267   LIBS="-lm $LIBS"
9268
9269 fi
9270
9271
9272 # We need to link with -lw to get `wctype' on Solaris before Solaris
9273 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
9274 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9275 # is known to have this problem).  Therefore we avoid libw if we can.
9276 echo "$as_me:$LINENO: checking for wctype" >&5
9277 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9278 if test "${ac_cv_func_wctype+set}" = set; then
9279   echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281   cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h.  */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h.  */
9287 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9289 #define wctype innocuous_wctype
9290
9291 /* System header to define __stub macros and hopefully few prototypes,
9292     which can conflict with char wctype (); below.
9293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9294     <limits.h> exists even on freestanding compilers.  */
9295
9296 #ifdef __STDC__
9297 # include <limits.h>
9298 #else
9299 # include <assert.h>
9300 #endif
9301
9302 #undef wctype
9303
9304 /* Override any gcc2 internal prototype to avoid an error.  */
9305 #ifdef __cplusplus
9306 extern "C"
9307 {
9308 #endif
9309 /* We use char because int might match the return type of a gcc2
9310    builtin and then its argument prototype would still apply.  */
9311 char wctype ();
9312 /* The GNU C library defines this for functions which it implements
9313     to always fail with ENOSYS.  Some functions are actually named
9314     something starting with __ and the normal name is an alias.  */
9315 #if defined (__stub_wctype) || defined (__stub___wctype)
9316 choke me
9317 #else
9318 char (*f) () = wctype;
9319 #endif
9320 #ifdef __cplusplus
9321 }
9322 #endif
9323
9324 int
9325 main ()
9326 {
9327 return f != wctype;
9328   ;
9329   return 0;
9330 }
9331 _ACEOF
9332 rm -f conftest.$ac_objext conftest$ac_exeext
9333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334   (eval $ac_link) 2>conftest.er1
9335   ac_status=$?
9336   grep -v '^ *+' conftest.er1 >conftest.err
9337   rm -f conftest.er1
9338   cat conftest.err >&5
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); } &&
9341          { ac_try='test -z "$ac_c_werror_flag"
9342                          || test ! -s conftest.err'
9343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344   (eval $ac_try) 2>&5
9345   ac_status=$?
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); }; } &&
9348          { ac_try='test -s conftest$ac_exeext'
9349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350   (eval $ac_try) 2>&5
9351   ac_status=$?
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); }; }; then
9354   ac_cv_func_wctype=yes
9355 else
9356   echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9358
9359 ac_cv_func_wctype=no
9360 fi
9361 rm -f conftest.err conftest.$ac_objext \
9362       conftest$ac_exeext conftest.$ac_ext
9363 fi
9364 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9365 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9366 if test $ac_cv_func_wctype = yes; then
9367   :
9368 else
9369
9370 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9371 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9372 if test "${ac_cv_lib_w_wctype+set}" = set; then
9373   echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375   ac_check_lib_save_LIBS=$LIBS
9376 LIBS="-lw  $LIBS"
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383
9384 /* Override any gcc2 internal prototype to avoid an error.  */
9385 #ifdef __cplusplus
9386 extern "C"
9387 #endif
9388 /* We use char because int might match the return type of a gcc2
9389    builtin and then its argument prototype would still apply.  */
9390 char wctype ();
9391 int
9392 main ()
9393 {
9394 wctype ();
9395   ;
9396   return 0;
9397 }
9398 _ACEOF
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401   (eval $ac_link) 2>conftest.er1
9402   ac_status=$?
9403   grep -v '^ *+' conftest.er1 >conftest.err
9404   rm -f conftest.er1
9405   cat conftest.err >&5
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); } &&
9408          { ac_try='test -z "$ac_c_werror_flag"
9409                          || test ! -s conftest.err'
9410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411   (eval $ac_try) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; } &&
9415          { ac_try='test -s conftest$ac_exeext'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; }; then
9421   ac_cv_lib_w_wctype=yes
9422 else
9423   echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9425
9426 ac_cv_lib_w_wctype=no
9427 fi
9428 rm -f conftest.err conftest.$ac_objext \
9429       conftest$ac_exeext conftest.$ac_ext
9430 LIBS=$ac_check_lib_save_LIBS
9431 fi
9432 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9433 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9434 if test $ac_cv_lib_w_wctype = yes; then
9435   cat >>confdefs.h <<_ACEOF
9436 #define HAVE_LIBW 1
9437 _ACEOF
9438
9439   LIBS="-lw $LIBS"
9440
9441 fi
9442
9443 fi
9444
9445
9446 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9447 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9448 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9449 if test "${ac_cv_search_gethostbyname+set}" = set; then
9450   echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452   ac_func_search_save_LIBS=$LIBS
9453 ac_cv_search_gethostbyname=no
9454 cat >conftest.$ac_ext <<_ACEOF
9455 /* confdefs.h.  */
9456 _ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h.  */
9460
9461 /* Override any gcc2 internal prototype to avoid an error.  */
9462 #ifdef __cplusplus
9463 extern "C"
9464 #endif
9465 /* We use char because int might match the return type of a gcc2
9466    builtin and then its argument prototype would still apply.  */
9467 char gethostbyname ();
9468 int
9469 main ()
9470 {
9471 gethostbyname ();
9472   ;
9473   return 0;
9474 }
9475 _ACEOF
9476 rm -f conftest.$ac_objext conftest$ac_exeext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478   (eval $ac_link) 2>conftest.er1
9479   ac_status=$?
9480   grep -v '^ *+' conftest.er1 >conftest.err
9481   rm -f conftest.er1
9482   cat conftest.err >&5
9483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); } &&
9485          { ac_try='test -z "$ac_c_werror_flag"
9486                          || test ! -s conftest.err'
9487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488   (eval $ac_try) 2>&5
9489   ac_status=$?
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); }; } &&
9492          { ac_try='test -s conftest$ac_exeext'
9493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494   (eval $ac_try) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); }; }; then
9498   ac_cv_search_gethostbyname="none required"
9499 else
9500   echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9502
9503 fi
9504 rm -f conftest.err conftest.$ac_objext \
9505       conftest$ac_exeext conftest.$ac_ext
9506 if test "$ac_cv_search_gethostbyname" = no; then
9507   for ac_lib in nsl; do
9508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9509     cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h.  */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h.  */
9515
9516 /* Override any gcc2 internal prototype to avoid an error.  */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 /* We use char because int might match the return type of a gcc2
9521    builtin and then its argument prototype would still apply.  */
9522 char gethostbyname ();
9523 int
9524 main ()
9525 {
9526 gethostbyname ();
9527   ;
9528   return 0;
9529 }
9530 _ACEOF
9531 rm -f conftest.$ac_objext conftest$ac_exeext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9533   (eval $ac_link) 2>conftest.er1
9534   ac_status=$?
9535   grep -v '^ *+' conftest.er1 >conftest.err
9536   rm -f conftest.er1
9537   cat conftest.err >&5
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); } &&
9540          { ac_try='test -z "$ac_c_werror_flag"
9541                          || test ! -s conftest.err'
9542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543   (eval $ac_try) 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); }; } &&
9547          { ac_try='test -s conftest$ac_exeext'
9548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549   (eval $ac_try) 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); }; }; then
9553   ac_cv_search_gethostbyname="-l$ac_lib"
9554 break
9555 else
9556   echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 fi
9560 rm -f conftest.err conftest.$ac_objext \
9561       conftest$ac_exeext conftest.$ac_ext
9562   done
9563 fi
9564 LIBS=$ac_func_search_save_LIBS
9565 fi
9566 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9567 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9568 if test "$ac_cv_search_gethostbyname" != no; then
9569   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9570
9571 fi
9572
9573
9574 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9575 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9576 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9577 if test "${ac_cv_search_socketpair+set}" = set; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   ac_func_search_save_LIBS=$LIBS
9581 ac_cv_search_socketpair=no
9582 cat >conftest.$ac_ext <<_ACEOF
9583 /* confdefs.h.  */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h.  */
9588
9589 /* Override any gcc2 internal prototype to avoid an error.  */
9590 #ifdef __cplusplus
9591 extern "C"
9592 #endif
9593 /* We use char because int might match the return type of a gcc2
9594    builtin and then its argument prototype would still apply.  */
9595 char socketpair ();
9596 int
9597 main ()
9598 {
9599 socketpair ();
9600   ;
9601   return 0;
9602 }
9603 _ACEOF
9604 rm -f conftest.$ac_objext conftest$ac_exeext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606   (eval $ac_link) 2>conftest.er1
9607   ac_status=$?
9608   grep -v '^ *+' conftest.er1 >conftest.err
9609   rm -f conftest.er1
9610   cat conftest.err >&5
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } &&
9613          { ac_try='test -z "$ac_c_werror_flag"
9614                          || test ! -s conftest.err'
9615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616   (eval $ac_try) 2>&5
9617   ac_status=$?
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); }; } &&
9620          { ac_try='test -s conftest$ac_exeext'
9621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622   (eval $ac_try) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; }; then
9626   ac_cv_search_socketpair="none required"
9627 else
9628   echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 fi
9632 rm -f conftest.err conftest.$ac_objext \
9633       conftest$ac_exeext conftest.$ac_ext
9634 if test "$ac_cv_search_socketpair" = no; then
9635   for ac_lib in socket; do
9636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9637     cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h.  */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h.  */
9643
9644 /* Override any gcc2 internal prototype to avoid an error.  */
9645 #ifdef __cplusplus
9646 extern "C"
9647 #endif
9648 /* We use char because int might match the return type of a gcc2
9649    builtin and then its argument prototype would still apply.  */
9650 char socketpair ();
9651 int
9652 main ()
9653 {
9654 socketpair ();
9655   ;
9656   return 0;
9657 }
9658 _ACEOF
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661   (eval $ac_link) 2>conftest.er1
9662   ac_status=$?
9663   grep -v '^ *+' conftest.er1 >conftest.err
9664   rm -f conftest.er1
9665   cat conftest.err >&5
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } &&
9668          { ac_try='test -z "$ac_c_werror_flag"
9669                          || test ! -s conftest.err'
9670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671   (eval $ac_try) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; } &&
9675          { ac_try='test -s conftest$ac_exeext'
9676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677   (eval $ac_try) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); }; }; then
9681   ac_cv_search_socketpair="-l$ac_lib"
9682 break
9683 else
9684   echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687 fi
9688 rm -f conftest.err conftest.$ac_objext \
9689       conftest$ac_exeext conftest.$ac_ext
9690   done
9691 fi
9692 LIBS=$ac_func_search_save_LIBS
9693 fi
9694 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9695 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9696 if test "$ac_cv_search_socketpair" != no; then
9697   test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9698
9699 fi
9700
9701
9702 # Link in zlib if we can.  This allows us to read compressed debug sections.
9703 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9704 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9705 if test "${ac_cv_search_zlibVersion+set}" = set; then
9706   echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708   ac_func_search_save_LIBS=$LIBS
9709 ac_cv_search_zlibVersion=no
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h.  */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h.  */
9716
9717 /* Override any gcc2 internal prototype to avoid an error.  */
9718 #ifdef __cplusplus
9719 extern "C"
9720 #endif
9721 /* We use char because int might match the return type of a gcc2
9722    builtin and then its argument prototype would still apply.  */
9723 char zlibVersion ();
9724 int
9725 main ()
9726 {
9727 zlibVersion ();
9728   ;
9729   return 0;
9730 }
9731 _ACEOF
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9734   (eval $ac_link) 2>conftest.er1
9735   ac_status=$?
9736   grep -v '^ *+' conftest.er1 >conftest.err
9737   rm -f conftest.er1
9738   cat conftest.err >&5
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } &&
9741          { ac_try='test -z "$ac_c_werror_flag"
9742                          || test ! -s conftest.err'
9743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744   (eval $ac_try) 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); }; } &&
9748          { ac_try='test -s conftest$ac_exeext'
9749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750   (eval $ac_try) 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); }; }; then
9754   ac_cv_search_zlibVersion="none required"
9755 else
9756   echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759 fi
9760 rm -f conftest.err conftest.$ac_objext \
9761       conftest$ac_exeext conftest.$ac_ext
9762 if test "$ac_cv_search_zlibVersion" = no; then
9763   for ac_lib in z; do
9764     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9765     cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h.  */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h.  */
9771
9772 /* Override any gcc2 internal prototype to avoid an error.  */
9773 #ifdef __cplusplus
9774 extern "C"
9775 #endif
9776 /* We use char because int might match the return type of a gcc2
9777    builtin and then its argument prototype would still apply.  */
9778 char zlibVersion ();
9779 int
9780 main ()
9781 {
9782 zlibVersion ();
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789   (eval $ac_link) 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } &&
9796          { ac_try='test -z "$ac_c_werror_flag"
9797                          || test ! -s conftest.err'
9798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799   (eval $ac_try) 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; } &&
9803          { ac_try='test -s conftest$ac_exeext'
9804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805   (eval $ac_try) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; }; then
9809   ac_cv_search_zlibVersion="-l$ac_lib"
9810 break
9811 else
9812   echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815 fi
9816 rm -f conftest.err conftest.$ac_objext \
9817       conftest$ac_exeext conftest.$ac_ext
9818   done
9819 fi
9820 LIBS=$ac_func_search_save_LIBS
9821 fi
9822 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9823 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9824 if test "$ac_cv_search_zlibVersion" != no; then
9825   test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9826
9827 for ac_header in zlib.h
9828 do
9829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831   echo "$as_me:$LINENO: checking for $ac_header" >&5
9832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 fi
9836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9838 else
9839   # Is the header compilable?
9840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848 $ac_includes_default
9849 #include <$ac_header>
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853   (eval $ac_compile) 2>conftest.er1
9854   ac_status=$?
9855   grep -v '^ *+' conftest.er1 >conftest.err
9856   rm -f conftest.er1
9857   cat conftest.err >&5
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); } &&
9860          { ac_try='test -z "$ac_c_werror_flag"
9861                          || test ! -s conftest.err'
9862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863   (eval $ac_try) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; } &&
9867          { ac_try='test -s conftest.$ac_objext'
9868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869   (eval $ac_try) 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); }; }; then
9873   ac_header_compiler=yes
9874 else
9875   echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9877
9878 ac_header_compiler=no
9879 fi
9880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9882 echo "${ECHO_T}$ac_header_compiler" >&6
9883
9884 # Is the header present?
9885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h.  */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h.  */
9893 #include <$ac_header>
9894 _ACEOF
9895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9897   ac_status=$?
9898   grep -v '^ *+' conftest.er1 >conftest.err
9899   rm -f conftest.er1
9900   cat conftest.err >&5
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); } >/dev/null; then
9903   if test -s conftest.err; then
9904     ac_cpp_err=$ac_c_preproc_warn_flag
9905     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9906   else
9907     ac_cpp_err=
9908   fi
9909 else
9910   ac_cpp_err=yes
9911 fi
9912 if test -z "$ac_cpp_err"; then
9913   ac_header_preproc=yes
9914 else
9915   echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9917
9918   ac_header_preproc=no
9919 fi
9920 rm -f conftest.err conftest.$ac_ext
9921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9922 echo "${ECHO_T}$ac_header_preproc" >&6
9923
9924 # So?  What about this header?
9925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9926   yes:no: )
9927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9931     ac_header_preproc=yes
9932     ;;
9933   no:yes:* )
9934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9936     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9937 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9938     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9940     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9941 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9944     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9946     (
9947       cat <<\_ASBOX
9948 ## ------------------------------------------ ##
9949 ## Report this to the AC_PACKAGE_NAME lists.  ##
9950 ## ------------------------------------------ ##
9951 _ASBOX
9952     ) |
9953       sed "s/^/$as_me: WARNING:     /" >&2
9954     ;;
9955 esac
9956 echo "$as_me:$LINENO: checking for $ac_header" >&5
9957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9959   echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961   eval "$as_ac_Header=\$ac_header_preproc"
9962 fi
9963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9965
9966 fi
9967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9968   cat >>confdefs.h <<_ACEOF
9969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9970 _ACEOF
9971
9972 fi
9973
9974 done
9975
9976 fi
9977
9978
9979 # For the TUI, we need enhanced curses functionality.
9980 #
9981 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9982 # curses library because the latter might not provide all the
9983 # functionality we need.  However, this leads to problems on systems
9984 # where the linker searches /usr/local/lib, but the compiler doesn't
9985 # search /usr/local/include, if ncurses is installed in /usr/local.  A
9986 # default installation of ncurses on alpha*-dec-osf* will lead to such
9987 # a situation.
9988 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9989 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
9990 if test "${ac_cv_search_waddstr+set}" = set; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   ac_func_search_save_LIBS=$LIBS
9994 ac_cv_search_waddstr=no
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001
10002 /* Override any gcc2 internal prototype to avoid an error.  */
10003 #ifdef __cplusplus
10004 extern "C"
10005 #endif
10006 /* We use char because int might match the return type of a gcc2
10007    builtin and then its argument prototype would still apply.  */
10008 char waddstr ();
10009 int
10010 main ()
10011 {
10012 waddstr ();
10013   ;
10014   return 0;
10015 }
10016 _ACEOF
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019   (eval $ac_link) 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } &&
10026          { ac_try='test -z "$ac_c_werror_flag"
10027                          || test ! -s conftest.err'
10028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029   (eval $ac_try) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; } &&
10033          { ac_try='test -s conftest$ac_exeext'
10034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035   (eval $ac_try) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; }; then
10039   ac_cv_search_waddstr="none required"
10040 else
10041   echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044 fi
10045 rm -f conftest.err conftest.$ac_objext \
10046       conftest$ac_exeext conftest.$ac_ext
10047 if test "$ac_cv_search_waddstr" = no; then
10048   for ac_lib in ncurses cursesX curses; do
10049     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10050     cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h.  */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h.  */
10056
10057 /* Override any gcc2 internal prototype to avoid an error.  */
10058 #ifdef __cplusplus
10059 extern "C"
10060 #endif
10061 /* We use char because int might match the return type of a gcc2
10062    builtin and then its argument prototype would still apply.  */
10063 char waddstr ();
10064 int
10065 main ()
10066 {
10067 waddstr ();
10068   ;
10069   return 0;
10070 }
10071 _ACEOF
10072 rm -f conftest.$ac_objext conftest$ac_exeext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074   (eval $ac_link) 2>conftest.er1
10075   ac_status=$?
10076   grep -v '^ *+' conftest.er1 >conftest.err
10077   rm -f conftest.er1
10078   cat conftest.err >&5
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); } &&
10081          { ac_try='test -z "$ac_c_werror_flag"
10082                          || test ! -s conftest.err'
10083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084   (eval $ac_try) 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; } &&
10088          { ac_try='test -s conftest$ac_exeext'
10089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090   (eval $ac_try) 2>&5
10091   ac_status=$?
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); }; }; then
10094   ac_cv_search_waddstr="-l$ac_lib"
10095 break
10096 else
10097   echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10099
10100 fi
10101 rm -f conftest.err conftest.$ac_objext \
10102       conftest$ac_exeext conftest.$ac_ext
10103   done
10104 fi
10105 LIBS=$ac_func_search_save_LIBS
10106 fi
10107 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10108 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10109 if test "$ac_cv_search_waddstr" != no; then
10110   test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10111
10112 fi
10113
10114
10115 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10116 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10117 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10118 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121   ac_func_search_save_LIBS=$LIBS
10122 ac_cv_search_dlgetmodinfo=no
10123 cat >conftest.$ac_ext <<_ACEOF
10124 /* confdefs.h.  */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h.  */
10129
10130 /* Override any gcc2 internal prototype to avoid an error.  */
10131 #ifdef __cplusplus
10132 extern "C"
10133 #endif
10134 /* We use char because int might match the return type of a gcc2
10135    builtin and then its argument prototype would still apply.  */
10136 char dlgetmodinfo ();
10137 int
10138 main ()
10139 {
10140 dlgetmodinfo ();
10141   ;
10142   return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147   (eval $ac_link) 2>conftest.er1
10148   ac_status=$?
10149   grep -v '^ *+' conftest.er1 >conftest.err
10150   rm -f conftest.er1
10151   cat conftest.err >&5
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); } &&
10154          { ac_try='test -z "$ac_c_werror_flag"
10155                          || test ! -s conftest.err'
10156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157   (eval $ac_try) 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); }; } &&
10161          { ac_try='test -s conftest$ac_exeext'
10162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163   (eval $ac_try) 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; }; then
10167   ac_cv_search_dlgetmodinfo="none required"
10168 else
10169   echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 fi
10173 rm -f conftest.err conftest.$ac_objext \
10174       conftest$ac_exeext conftest.$ac_ext
10175 if test "$ac_cv_search_dlgetmodinfo" = no; then
10176   for ac_lib in dl xpdl; do
10177     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10178     cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h.  */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h.  */
10184
10185 /* Override any gcc2 internal prototype to avoid an error.  */
10186 #ifdef __cplusplus
10187 extern "C"
10188 #endif
10189 /* We use char because int might match the return type of a gcc2
10190    builtin and then its argument prototype would still apply.  */
10191 char dlgetmodinfo ();
10192 int
10193 main ()
10194 {
10195 dlgetmodinfo ();
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202   (eval $ac_link) 2>conftest.er1
10203   ac_status=$?
10204   grep -v '^ *+' conftest.er1 >conftest.err
10205   rm -f conftest.er1
10206   cat conftest.err >&5
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); } &&
10209          { ac_try='test -z "$ac_c_werror_flag"
10210                          || test ! -s conftest.err'
10211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212   (eval $ac_try) 2>&5
10213   ac_status=$?
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); }; } &&
10216          { ac_try='test -s conftest$ac_exeext'
10217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218   (eval $ac_try) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; }; then
10222   ac_cv_search_dlgetmodinfo="-l$ac_lib"
10223 break
10224 else
10225   echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228 fi
10229 rm -f conftest.err conftest.$ac_objext \
10230       conftest$ac_exeext conftest.$ac_ext
10231   done
10232 fi
10233 LIBS=$ac_func_search_save_LIBS
10234 fi
10235 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10236 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10237 if test "$ac_cv_search_dlgetmodinfo" != no; then
10238   test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10239
10240 fi
10241
10242
10243 # Since GDB uses Readline, we need termcap functionality.  In many
10244 # cases this will be provided by the curses library, but some systems
10245 # have a seperate termcap library, or no curses library at all.
10246
10247 case $host_os in
10248   cygwin*)
10249     if test -d $srcdir/libtermcap; then
10250       LIBS="../libtermcap/libtermcap.a $LIBS"
10251       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10252     fi ;;
10253   go32* | *djgpp*)
10254     ac_cv_search_tgetent="none required"
10255     ;;
10256   *mingw32*)
10257     ac_cv_search_tgetent="none required"
10258     CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10259     ;;
10260 esac
10261
10262 # These are the libraries checked by Readline.
10263 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10264 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10265 if test "${ac_cv_search_tgetent+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268   ac_func_search_save_LIBS=$LIBS
10269 ac_cv_search_tgetent=no
10270 cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h.  */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h.  */
10276
10277 /* Override any gcc2 internal prototype to avoid an error.  */
10278 #ifdef __cplusplus
10279 extern "C"
10280 #endif
10281 /* We use char because int might match the return type of a gcc2
10282    builtin and then its argument prototype would still apply.  */
10283 char tgetent ();
10284 int
10285 main ()
10286 {
10287 tgetent ();
10288   ;
10289   return 0;
10290 }
10291 _ACEOF
10292 rm -f conftest.$ac_objext conftest$ac_exeext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294   (eval $ac_link) 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } &&
10301          { ac_try='test -z "$ac_c_werror_flag"
10302                          || test ! -s conftest.err'
10303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304   (eval $ac_try) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; } &&
10308          { ac_try='test -s conftest$ac_exeext'
10309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310   (eval $ac_try) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; }; then
10314   ac_cv_search_tgetent="none required"
10315 else
10316   echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 fi
10320 rm -f conftest.err conftest.$ac_objext \
10321       conftest$ac_exeext conftest.$ac_ext
10322 if test "$ac_cv_search_tgetent" = no; then
10323   for ac_lib in termcap tinfo curses ncurses; do
10324     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10325     cat >conftest.$ac_ext <<_ACEOF
10326 /* confdefs.h.  */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h.  */
10331
10332 /* Override any gcc2 internal prototype to avoid an error.  */
10333 #ifdef __cplusplus
10334 extern "C"
10335 #endif
10336 /* We use char because int might match the return type of a gcc2
10337    builtin and then its argument prototype would still apply.  */
10338 char tgetent ();
10339 int
10340 main ()
10341 {
10342 tgetent ();
10343   ;
10344   return 0;
10345 }
10346 _ACEOF
10347 rm -f conftest.$ac_objext conftest$ac_exeext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349   (eval $ac_link) 2>conftest.er1
10350   ac_status=$?
10351   grep -v '^ *+' conftest.er1 >conftest.err
10352   rm -f conftest.er1
10353   cat conftest.err >&5
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); } &&
10356          { ac_try='test -z "$ac_c_werror_flag"
10357                          || test ! -s conftest.err'
10358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359   (eval $ac_try) 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }; } &&
10363          { ac_try='test -s conftest$ac_exeext'
10364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365   (eval $ac_try) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; }; then
10369   ac_cv_search_tgetent="-l$ac_lib"
10370 break
10371 else
10372   echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10374
10375 fi
10376 rm -f conftest.err conftest.$ac_objext \
10377       conftest$ac_exeext conftest.$ac_ext
10378   done
10379 fi
10380 LIBS=$ac_func_search_save_LIBS
10381 fi
10382 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10383 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10384 if test "$ac_cv_search_tgetent" != no; then
10385   test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10386
10387 fi
10388
10389
10390 if test "$ac_cv_search_tgetent" = no; then
10391   { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10392 echo "$as_me: error: no termcap library found" >&2;}
10393    { (exit 1); exit 1; }; }
10394 fi
10395
10396
10397 # Check whether --with-system-readline or --without-system-readline was given.
10398 if test "${with_system_readline+set}" = set; then
10399   withval="$with_system_readline"
10400
10401 fi;
10402
10403 if test "$with_system_readline" = yes; then
10404   READLINE=-lreadline
10405   READLINE_DEPS=
10406   READLINE_CFLAGS=
10407 else
10408   READLINE='$(READLINE_DIR)/libreadline.a'
10409   READLINE_DEPS='$(READLINE)'
10410   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10411 fi
10412
10413
10414
10415
10416
10417 # Check whether --with-expat or --without-expat was given.
10418 if test "${with_expat+set}" = set; then
10419   withval="$with_expat"
10420
10421 else
10422   with_expat=auto
10423 fi;
10424 echo "$as_me:$LINENO: checking whether to use expat" >&5
10425 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10426 echo "$as_me:$LINENO: result: $with_expat" >&5
10427 echo "${ECHO_T}$with_expat" >&6
10428
10429 if test "${with_expat}" = no; then
10430   { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10431 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10432   HAVE_LIBEXPAT=no
10433 else
10434
10435       if test "X$prefix" = "XNONE"; then
10436     acl_final_prefix="$ac_default_prefix"
10437   else
10438     acl_final_prefix="$prefix"
10439   fi
10440   if test "X$exec_prefix" = "XNONE"; then
10441     acl_final_exec_prefix='${prefix}'
10442   else
10443     acl_final_exec_prefix="$exec_prefix"
10444   fi
10445   acl_save_prefix="$prefix"
10446   prefix="$acl_final_prefix"
10447   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10448   prefix="$acl_save_prefix"
10449
10450
10451 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10452 if test "${with_gnu_ld+set}" = set; then
10453   withval="$with_gnu_ld"
10454   test "$withval" = no || with_gnu_ld=yes
10455 else
10456   with_gnu_ld=no
10457 fi;
10458 # Prepare PATH_SEPARATOR.
10459 # The user is always right.
10460 if test "${PATH_SEPARATOR+set}" != set; then
10461   echo "#! /bin/sh" >conf$$.sh
10462   echo  "exit 0"   >>conf$$.sh
10463   chmod +x conf$$.sh
10464   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10465     PATH_SEPARATOR=';'
10466   else
10467     PATH_SEPARATOR=:
10468   fi
10469   rm -f conf$$.sh
10470 fi
10471 ac_prog=ld
10472 if test "$GCC" = yes; then
10473   # Check if gcc -print-prog-name=ld gives a path.
10474   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10475 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10476   case $host in
10477   *-*-mingw*)
10478     # gcc leaves a trailing carriage return which upsets mingw
10479     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10480   *)
10481     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10482   esac
10483   case $ac_prog in
10484     # Accept absolute paths.
10485     [\\/]* | [A-Za-z]:[\\/]*)
10486       re_direlt='/[^/][^/]*/\.\./'
10487       # Canonicalize the path of ld
10488       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10489       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10490         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10491       done
10492       test -z "$LD" && LD="$ac_prog"
10493       ;;
10494   "")
10495     # If it fails, then pretend we aren't using GCC.
10496     ac_prog=ld
10497     ;;
10498   *)
10499     # If it is relative, then search for the first ld in PATH.
10500     with_gnu_ld=unknown
10501     ;;
10502   esac
10503 elif test "$with_gnu_ld" = yes; then
10504   echo "$as_me:$LINENO: checking for GNU ld" >&5
10505 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10506 else
10507   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10508 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10509 fi
10510 if test "${acl_cv_path_LD+set}" = set; then
10511   echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513   if test -z "$LD"; then
10514   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10515   for ac_dir in $PATH; do
10516     test -z "$ac_dir" && ac_dir=.
10517     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10518       acl_cv_path_LD="$ac_dir/$ac_prog"
10519       # Check to see if the program is GNU ld.  I'd rather use --version,
10520       # but apparently some GNU ld's only accept -v.
10521       # Break only if it was the GNU/non-GNU ld that we prefer.
10522       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10523         test "$with_gnu_ld" != no && break
10524       else
10525         test "$with_gnu_ld" != yes && break
10526       fi
10527     fi
10528   done
10529   IFS="$ac_save_ifs"
10530 else
10531   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10532 fi
10533 fi
10534
10535 LD="$acl_cv_path_LD"
10536 if test -n "$LD"; then
10537   echo "$as_me:$LINENO: result: $LD" >&5
10538 echo "${ECHO_T}$LD" >&6
10539 else
10540   echo "$as_me:$LINENO: result: no" >&5
10541 echo "${ECHO_T}no" >&6
10542 fi
10543 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10544 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10545    { (exit 1); exit 1; }; }
10546 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10547 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10548 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10552 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10553   acl_cv_prog_gnu_ld=yes
10554 else
10555   acl_cv_prog_gnu_ld=no
10556 fi
10557 fi
10558 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10559 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10560 with_gnu_ld=$acl_cv_prog_gnu_ld
10561
10562
10563
10564                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10565 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10566 if test "${acl_cv_rpath+set}" = set; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569
10570     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10571     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10572     . ./conftest.sh
10573     rm -f ./conftest.sh
10574     acl_cv_rpath=done
10575
10576 fi
10577 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10578 echo "${ECHO_T}$acl_cv_rpath" >&6
10579   wl="$acl_cv_wl"
10580   libext="$acl_cv_libext"
10581   shlibext="$acl_cv_shlibext"
10582   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10583   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10584   hardcode_direct="$acl_cv_hardcode_direct"
10585   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10586     # Check whether --enable-rpath or --disable-rpath was given.
10587 if test "${enable_rpath+set}" = set; then
10588   enableval="$enable_rpath"
10589   :
10590 else
10591   enable_rpath=yes
10592 fi;
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602     use_additional=yes
10603
10604   acl_save_prefix="$prefix"
10605   prefix="$acl_final_prefix"
10606   acl_save_exec_prefix="$exec_prefix"
10607   exec_prefix="$acl_final_exec_prefix"
10608
10609     eval additional_includedir=\"$includedir\"
10610     eval additional_libdir=\"$libdir\"
10611
10612   exec_prefix="$acl_save_exec_prefix"
10613   prefix="$acl_save_prefix"
10614
10615
10616 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10617 if test "${with_libexpat_prefix+set}" = set; then
10618   withval="$with_libexpat_prefix"
10619
10620     if test "X$withval" = "Xno"; then
10621       use_additional=no
10622     else
10623       if test "X$withval" = "X"; then
10624
10625   acl_save_prefix="$prefix"
10626   prefix="$acl_final_prefix"
10627   acl_save_exec_prefix="$exec_prefix"
10628   exec_prefix="$acl_final_exec_prefix"
10629
10630           eval additional_includedir=\"$includedir\"
10631           eval additional_libdir=\"$libdir\"
10632
10633   exec_prefix="$acl_save_exec_prefix"
10634   prefix="$acl_save_prefix"
10635
10636       else
10637         additional_includedir="$withval/include"
10638         additional_libdir="$withval/lib"
10639       fi
10640     fi
10641
10642 fi;
10643       LIBEXPAT=
10644   LTLIBEXPAT=
10645   INCEXPAT=
10646   rpathdirs=
10647   ltrpathdirs=
10648   names_already_handled=
10649   names_next_round='expat '
10650   while test -n "$names_next_round"; do
10651     names_this_round="$names_next_round"
10652     names_next_round=
10653     for name in $names_this_round; do
10654       already_handled=
10655       for n in $names_already_handled; do
10656         if test "$n" = "$name"; then
10657           already_handled=yes
10658           break
10659         fi
10660       done
10661       if test -z "$already_handled"; then
10662         names_already_handled="$names_already_handled $name"
10663                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10664         eval value=\"\$HAVE_LIB$uppername\"
10665         if test -n "$value"; then
10666           if test "$value" = yes; then
10667             eval value=\"\$LIB$uppername\"
10668             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10669             eval value=\"\$LTLIB$uppername\"
10670             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10671           else
10672                                     :
10673           fi
10674         else
10675                               found_dir=
10676           found_la=
10677           found_so=
10678           found_a=
10679           if test $use_additional = yes; then
10680             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10681               found_dir="$additional_libdir"
10682               found_so="$additional_libdir/lib$name.$shlibext"
10683               if test -f "$additional_libdir/lib$name.la"; then
10684                 found_la="$additional_libdir/lib$name.la"
10685               fi
10686             else
10687               if test -f "$additional_libdir/lib$name.$libext"; then
10688                 found_dir="$additional_libdir"
10689                 found_a="$additional_libdir/lib$name.$libext"
10690                 if test -f "$additional_libdir/lib$name.la"; then
10691                   found_la="$additional_libdir/lib$name.la"
10692                 fi
10693               fi
10694             fi
10695           fi
10696           if test "X$found_dir" = "X"; then
10697             for x in $LDFLAGS $LTLIBEXPAT; do
10698
10699   acl_save_prefix="$prefix"
10700   prefix="$acl_final_prefix"
10701   acl_save_exec_prefix="$exec_prefix"
10702   exec_prefix="$acl_final_exec_prefix"
10703   eval x=\"$x\"
10704   exec_prefix="$acl_save_exec_prefix"
10705   prefix="$acl_save_prefix"
10706
10707               case "$x" in
10708                 -L*)
10709                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10710                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10711                     found_dir="$dir"
10712                     found_so="$dir/lib$name.$shlibext"
10713                     if test -f "$dir/lib$name.la"; then
10714                       found_la="$dir/lib$name.la"
10715                     fi
10716                   else
10717                     if test -f "$dir/lib$name.$libext"; then
10718                       found_dir="$dir"
10719                       found_a="$dir/lib$name.$libext"
10720                       if test -f "$dir/lib$name.la"; then
10721                         found_la="$dir/lib$name.la"
10722                       fi
10723                     fi
10724                   fi
10725                   ;;
10726               esac
10727               if test "X$found_dir" != "X"; then
10728                 break
10729               fi
10730             done
10731           fi
10732           if test "X$found_dir" != "X"; then
10733                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10734             if test "X$found_so" != "X"; then
10735                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10736                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10737               else
10738                                                                                 haveit=
10739                 for x in $ltrpathdirs; do
10740                   if test "X$x" = "X$found_dir"; then
10741                     haveit=yes
10742                     break
10743                   fi
10744                 done
10745                 if test -z "$haveit"; then
10746                   ltrpathdirs="$ltrpathdirs $found_dir"
10747                 fi
10748                                 if test "$hardcode_direct" = yes; then
10749                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10750                 else
10751                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10752                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10753                                                             haveit=
10754                     for x in $rpathdirs; do
10755                       if test "X$x" = "X$found_dir"; then
10756                         haveit=yes
10757                         break
10758                       fi
10759                     done
10760                     if test -z "$haveit"; then
10761                       rpathdirs="$rpathdirs $found_dir"
10762                     fi
10763                   else
10764                                                                                 haveit=
10765                     for x in $LDFLAGS $LIBEXPAT; do
10766
10767   acl_save_prefix="$prefix"
10768   prefix="$acl_final_prefix"
10769   acl_save_exec_prefix="$exec_prefix"
10770   exec_prefix="$acl_final_exec_prefix"
10771   eval x=\"$x\"
10772   exec_prefix="$acl_save_exec_prefix"
10773   prefix="$acl_save_prefix"
10774
10775                       if test "X$x" = "X-L$found_dir"; then
10776                         haveit=yes
10777                         break
10778                       fi
10779                     done
10780                     if test -z "$haveit"; then
10781                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10782                     fi
10783                     if test "$hardcode_minus_L" != no; then
10784                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10785                     else
10786                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10787                     fi
10788                   fi
10789                 fi
10790               fi
10791             else
10792               if test "X$found_a" != "X"; then
10793                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10794               else
10795                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10796               fi
10797             fi
10798                         additional_includedir=
10799             case "$found_dir" in
10800               */lib | */lib/)
10801                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10802                 additional_includedir="$basedir/include"
10803                 ;;
10804             esac
10805             if test "X$additional_includedir" != "X"; then
10806                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10807                 haveit=
10808                 if test "X$additional_includedir" = "X/usr/local/include"; then
10809                   if test -n "$GCC"; then
10810                     case $host_os in
10811                       linux*) haveit=yes;;
10812                     esac
10813                   fi
10814                 fi
10815                 if test -z "$haveit"; then
10816                   for x in $CPPFLAGS $INCEXPAT; do
10817
10818   acl_save_prefix="$prefix"
10819   prefix="$acl_final_prefix"
10820   acl_save_exec_prefix="$exec_prefix"
10821   exec_prefix="$acl_final_exec_prefix"
10822   eval x=\"$x\"
10823   exec_prefix="$acl_save_exec_prefix"
10824   prefix="$acl_save_prefix"
10825
10826                     if test "X$x" = "X-I$additional_includedir"; then
10827                       haveit=yes
10828                       break
10829                     fi
10830                   done
10831                   if test -z "$haveit"; then
10832                     if test -d "$additional_includedir"; then
10833                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10834                     fi
10835                   fi
10836                 fi
10837               fi
10838             fi
10839                         if test -n "$found_la"; then
10840                                                         save_libdir="$libdir"
10841               case "$found_la" in
10842                 */* | *\\*) . "$found_la" ;;
10843                 *) . "./$found_la" ;;
10844               esac
10845               libdir="$save_libdir"
10846                             for dep in $dependency_libs; do
10847                 case "$dep" in
10848                   -L*)
10849                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10850                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10851                       haveit=
10852                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10853                         if test -n "$GCC"; then
10854                           case $host_os in
10855                             linux*) haveit=yes;;
10856                           esac
10857                         fi
10858                       fi
10859                       if test -z "$haveit"; then
10860                         haveit=
10861                         for x in $LDFLAGS $LIBEXPAT; do
10862
10863   acl_save_prefix="$prefix"
10864   prefix="$acl_final_prefix"
10865   acl_save_exec_prefix="$exec_prefix"
10866   exec_prefix="$acl_final_exec_prefix"
10867   eval x=\"$x\"
10868   exec_prefix="$acl_save_exec_prefix"
10869   prefix="$acl_save_prefix"
10870
10871                           if test "X$x" = "X-L$additional_libdir"; then
10872                             haveit=yes
10873                             break
10874                           fi
10875                         done
10876                         if test -z "$haveit"; then
10877                           if test -d "$additional_libdir"; then
10878                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10879                           fi
10880                         fi
10881                         haveit=
10882                         for x in $LDFLAGS $LTLIBEXPAT; do
10883
10884   acl_save_prefix="$prefix"
10885   prefix="$acl_final_prefix"
10886   acl_save_exec_prefix="$exec_prefix"
10887   exec_prefix="$acl_final_exec_prefix"
10888   eval x=\"$x\"
10889   exec_prefix="$acl_save_exec_prefix"
10890   prefix="$acl_save_prefix"
10891
10892                           if test "X$x" = "X-L$additional_libdir"; then
10893                             haveit=yes
10894                             break
10895                           fi
10896                         done
10897                         if test -z "$haveit"; then
10898                           if test -d "$additional_libdir"; then
10899                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10900                           fi
10901                         fi
10902                       fi
10903                     fi
10904                     ;;
10905                   -R*)
10906                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10907                     if test "$enable_rpath" != no; then
10908                                                                   haveit=
10909                       for x in $rpathdirs; do
10910                         if test "X$x" = "X$dir"; then
10911                           haveit=yes
10912                           break
10913                         fi
10914                       done
10915                       if test -z "$haveit"; then
10916                         rpathdirs="$rpathdirs $dir"
10917                       fi
10918                                                                   haveit=
10919                       for x in $ltrpathdirs; do
10920                         if test "X$x" = "X$dir"; then
10921                           haveit=yes
10922                           break
10923                         fi
10924                       done
10925                       if test -z "$haveit"; then
10926                         ltrpathdirs="$ltrpathdirs $dir"
10927                       fi
10928                     fi
10929                     ;;
10930                   -l*)
10931                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10932                     ;;
10933                   *.la)
10934                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10935                     ;;
10936                   *)
10937                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10938                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10939                     ;;
10940                 esac
10941               done
10942             fi
10943           else
10944                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10945             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10946           fi
10947         fi
10948       fi
10949     done
10950   done
10951   if test "X$rpathdirs" != "X"; then
10952     if test -n "$hardcode_libdir_separator"; then
10953                         alldirs=
10954       for found_dir in $rpathdirs; do
10955         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10956       done
10957             acl_save_libdir="$libdir"
10958       libdir="$alldirs"
10959       eval flag=\"$hardcode_libdir_flag_spec\"
10960       libdir="$acl_save_libdir"
10961       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10962     else
10963             for found_dir in $rpathdirs; do
10964         acl_save_libdir="$libdir"
10965         libdir="$found_dir"
10966         eval flag=\"$hardcode_libdir_flag_spec\"
10967         libdir="$acl_save_libdir"
10968         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10969       done
10970     fi
10971   fi
10972   if test "X$ltrpathdirs" != "X"; then
10973             for found_dir in $ltrpathdirs; do
10974       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10975     done
10976   fi
10977
10978
10979         ac_save_CPPFLAGS="$CPPFLAGS"
10980
10981   for element in $INCEXPAT; do
10982     haveit=
10983     for x in $CPPFLAGS; do
10984
10985   acl_save_prefix="$prefix"
10986   prefix="$acl_final_prefix"
10987   acl_save_exec_prefix="$exec_prefix"
10988   exec_prefix="$acl_final_exec_prefix"
10989   eval x=\"$x\"
10990   exec_prefix="$acl_save_exec_prefix"
10991   prefix="$acl_save_prefix"
10992
10993       if test "X$x" = "X$element"; then
10994         haveit=yes
10995         break
10996       fi
10997     done
10998     if test -z "$haveit"; then
10999       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11000     fi
11001   done
11002
11003
11004   echo "$as_me:$LINENO: checking for libexpat" >&5
11005 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11006 if test "${ac_cv_libexpat+set}" = set; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009
11010     ac_save_LIBS="$LIBS"
11011     LIBS="$LIBS $LIBEXPAT"
11012     cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h.  */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h.  */
11018 #include "expat.h"
11019 int
11020 main ()
11021 {
11022 XML_Parser p = XML_ParserCreate (0);
11023   ;
11024   return 0;
11025 }
11026 _ACEOF
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029   (eval $ac_link) 2>conftest.er1
11030   ac_status=$?
11031   grep -v '^ *+' conftest.er1 >conftest.err
11032   rm -f conftest.er1
11033   cat conftest.err >&5
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); } &&
11036          { ac_try='test -z "$ac_c_werror_flag"
11037                          || test ! -s conftest.err'
11038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039   (eval $ac_try) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }; } &&
11043          { ac_try='test -s conftest$ac_exeext'
11044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045   (eval $ac_try) 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; }; then
11049   ac_cv_libexpat=yes
11050 else
11051   echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11053
11054 ac_cv_libexpat=no
11055 fi
11056 rm -f conftest.err conftest.$ac_objext \
11057       conftest$ac_exeext conftest.$ac_ext
11058     LIBS="$ac_save_LIBS"
11059
11060 fi
11061 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11062 echo "${ECHO_T}$ac_cv_libexpat" >&6
11063   if test "$ac_cv_libexpat" = yes; then
11064     HAVE_LIBEXPAT=yes
11065
11066 cat >>confdefs.h <<\_ACEOF
11067 #define HAVE_LIBEXPAT 1
11068 _ACEOF
11069
11070     echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11071 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11072     echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11073 echo "${ECHO_T}$LIBEXPAT" >&6
11074   else
11075     HAVE_LIBEXPAT=no
11076             CPPFLAGS="$ac_save_CPPFLAGS"
11077     LIBEXPAT=
11078     LTLIBEXPAT=
11079   fi
11080
11081
11082
11083
11084
11085
11086   if test "$HAVE_LIBEXPAT" != yes; then
11087     if test "$with_expat" = yes; then
11088       { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11089 echo "$as_me: error: expat is missing or unusable" >&2;}
11090    { (exit 1); exit 1; }; }
11091     else
11092       { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11093 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11094     fi
11095   else
11096     save_LIBS=$LIBS
11097     LIBS="$LIBS $LIBEXPAT"
11098
11099 for ac_func in XML_StopParser
11100 do
11101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11102 echo "$as_me:$LINENO: checking for $ac_func" >&5
11103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11104 if eval "test \"\${$as_ac_var+set}\" = set"; then
11105   echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107   cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11115 #define $ac_func innocuous_$ac_func
11116
11117 /* System header to define __stub macros and hopefully few prototypes,
11118     which can conflict with char $ac_func (); below.
11119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11120     <limits.h> exists even on freestanding compilers.  */
11121
11122 #ifdef __STDC__
11123 # include <limits.h>
11124 #else
11125 # include <assert.h>
11126 #endif
11127
11128 #undef $ac_func
11129
11130 /* Override any gcc2 internal prototype to avoid an error.  */
11131 #ifdef __cplusplus
11132 extern "C"
11133 {
11134 #endif
11135 /* We use char because int might match the return type of a gcc2
11136    builtin and then its argument prototype would still apply.  */
11137 char $ac_func ();
11138 /* The GNU C library defines this for functions which it implements
11139     to always fail with ENOSYS.  Some functions are actually named
11140     something starting with __ and the normal name is an alias.  */
11141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11142 choke me
11143 #else
11144 char (*f) () = $ac_func;
11145 #endif
11146 #ifdef __cplusplus
11147 }
11148 #endif
11149
11150 int
11151 main ()
11152 {
11153 return f != $ac_func;
11154   ;
11155   return 0;
11156 }
11157 _ACEOF
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160   (eval $ac_link) 2>conftest.er1
11161   ac_status=$?
11162   grep -v '^ *+' conftest.er1 >conftest.err
11163   rm -f conftest.er1
11164   cat conftest.err >&5
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); } &&
11167          { ac_try='test -z "$ac_c_werror_flag"
11168                          || test ! -s conftest.err'
11169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170   (eval $ac_try) 2>&5
11171   ac_status=$?
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); }; } &&
11174          { ac_try='test -s conftest$ac_exeext'
11175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176   (eval $ac_try) 2>&5
11177   ac_status=$?
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); }; }; then
11180   eval "$as_ac_var=yes"
11181 else
11182   echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11184
11185 eval "$as_ac_var=no"
11186 fi
11187 rm -f conftest.err conftest.$ac_objext \
11188       conftest$ac_exeext conftest.$ac_ext
11189 fi
11190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11192 if test `eval echo '${'$as_ac_var'}'` = yes; then
11193   cat >>confdefs.h <<_ACEOF
11194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11195 _ACEOF
11196
11197 fi
11198 done
11199
11200     LIBS=$save_LIBS
11201   fi
11202 fi
11203
11204 # ------------------------- #
11205 # Checks for header files.  #
11206 # ------------------------- #
11207
11208
11209
11210
11211
11212
11213 ac_header_dirent=no
11214 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11215   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11216 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11217 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11219   echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221   cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227 #include <sys/types.h>
11228 #include <$ac_hdr>
11229
11230 int
11231 main ()
11232 {
11233 if ((DIR *) 0)
11234 return 0;
11235   ;
11236   return 0;
11237 }
11238 _ACEOF
11239 rm -f conftest.$ac_objext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241   (eval $ac_compile) 2>conftest.er1
11242   ac_status=$?
11243   grep -v '^ *+' conftest.er1 >conftest.err
11244   rm -f conftest.er1
11245   cat conftest.err >&5
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); } &&
11248          { ac_try='test -z "$ac_c_werror_flag"
11249                          || test ! -s conftest.err'
11250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251   (eval $ac_try) 2>&5
11252   ac_status=$?
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); }; } &&
11255          { ac_try='test -s conftest.$ac_objext'
11256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257   (eval $ac_try) 2>&5
11258   ac_status=$?
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); }; }; then
11261   eval "$as_ac_Header=yes"
11262 else
11263   echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266 eval "$as_ac_Header=no"
11267 fi
11268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11269 fi
11270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11273   cat >>confdefs.h <<_ACEOF
11274 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11275 _ACEOF
11276
11277 ac_header_dirent=$ac_hdr; break
11278 fi
11279
11280 done
11281 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11282 if test $ac_header_dirent = dirent.h; then
11283   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11284 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11285 if test "${ac_cv_search_opendir+set}" = set; then
11286   echo $ECHO_N "(cached) $ECHO_C" >&6
11287 else
11288   ac_func_search_save_LIBS=$LIBS
11289 ac_cv_search_opendir=no
11290 cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h.  */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h.  */
11296
11297 /* Override any gcc2 internal prototype to avoid an error.  */
11298 #ifdef __cplusplus
11299 extern "C"
11300 #endif
11301 /* We use char because int might match the return type of a gcc2
11302    builtin and then its argument prototype would still apply.  */
11303 char opendir ();
11304 int
11305 main ()
11306 {
11307 opendir ();
11308   ;
11309   return 0;
11310 }
11311 _ACEOF
11312 rm -f conftest.$ac_objext conftest$ac_exeext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314   (eval $ac_link) 2>conftest.er1
11315   ac_status=$?
11316   grep -v '^ *+' conftest.er1 >conftest.err
11317   rm -f conftest.er1
11318   cat conftest.err >&5
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); } &&
11321          { ac_try='test -z "$ac_c_werror_flag"
11322                          || test ! -s conftest.err'
11323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324   (eval $ac_try) 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; } &&
11328          { ac_try='test -s conftest$ac_exeext'
11329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330   (eval $ac_try) 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); }; }; then
11334   ac_cv_search_opendir="none required"
11335 else
11336   echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11338
11339 fi
11340 rm -f conftest.err conftest.$ac_objext \
11341       conftest$ac_exeext conftest.$ac_ext
11342 if test "$ac_cv_search_opendir" = no; then
11343   for ac_lib in dir; do
11344     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11345     cat >conftest.$ac_ext <<_ACEOF
11346 /* confdefs.h.  */
11347 _ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h.  */
11351
11352 /* Override any gcc2 internal prototype to avoid an error.  */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 /* We use char because int might match the return type of a gcc2
11357    builtin and then its argument prototype would still apply.  */
11358 char opendir ();
11359 int
11360 main ()
11361 {
11362 opendir ();
11363   ;
11364   return 0;
11365 }
11366 _ACEOF
11367 rm -f conftest.$ac_objext conftest$ac_exeext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11369   (eval $ac_link) 2>conftest.er1
11370   ac_status=$?
11371   grep -v '^ *+' conftest.er1 >conftest.err
11372   rm -f conftest.er1
11373   cat conftest.err >&5
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); } &&
11376          { ac_try='test -z "$ac_c_werror_flag"
11377                          || test ! -s conftest.err'
11378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379   (eval $ac_try) 2>&5
11380   ac_status=$?
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); }; } &&
11383          { ac_try='test -s conftest$ac_exeext'
11384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385   (eval $ac_try) 2>&5
11386   ac_status=$?
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); }; }; then
11389   ac_cv_search_opendir="-l$ac_lib"
11390 break
11391 else
11392   echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11394
11395 fi
11396 rm -f conftest.err conftest.$ac_objext \
11397       conftest$ac_exeext conftest.$ac_ext
11398   done
11399 fi
11400 LIBS=$ac_func_search_save_LIBS
11401 fi
11402 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11403 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11404 if test "$ac_cv_search_opendir" != no; then
11405   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11406
11407 fi
11408
11409 else
11410   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11411 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11412 if test "${ac_cv_search_opendir+set}" = set; then
11413   echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415   ac_func_search_save_LIBS=$LIBS
11416 ac_cv_search_opendir=no
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h.  */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h.  */
11423
11424 /* Override any gcc2 internal prototype to avoid an error.  */
11425 #ifdef __cplusplus
11426 extern "C"
11427 #endif
11428 /* We use char because int might match the return type of a gcc2
11429    builtin and then its argument prototype would still apply.  */
11430 char opendir ();
11431 int
11432 main ()
11433 {
11434 opendir ();
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441   (eval $ac_link) 2>conftest.er1
11442   ac_status=$?
11443   grep -v '^ *+' conftest.er1 >conftest.err
11444   rm -f conftest.er1
11445   cat conftest.err >&5
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); } &&
11448          { ac_try='test -z "$ac_c_werror_flag"
11449                          || test ! -s conftest.err'
11450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451   (eval $ac_try) 2>&5
11452   ac_status=$?
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); }; } &&
11455          { ac_try='test -s conftest$ac_exeext'
11456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457   (eval $ac_try) 2>&5
11458   ac_status=$?
11459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460   (exit $ac_status); }; }; then
11461   ac_cv_search_opendir="none required"
11462 else
11463   echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11465
11466 fi
11467 rm -f conftest.err conftest.$ac_objext \
11468       conftest$ac_exeext conftest.$ac_ext
11469 if test "$ac_cv_search_opendir" = no; then
11470   for ac_lib in x; do
11471     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11472     cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h.  */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h.  */
11478
11479 /* Override any gcc2 internal prototype to avoid an error.  */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 /* We use char because int might match the return type of a gcc2
11484    builtin and then its argument prototype would still apply.  */
11485 char opendir ();
11486 int
11487 main ()
11488 {
11489 opendir ();
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496   (eval $ac_link) 2>conftest.er1
11497   ac_status=$?
11498   grep -v '^ *+' conftest.er1 >conftest.err
11499   rm -f conftest.er1
11500   cat conftest.err >&5
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); } &&
11503          { ac_try='test -z "$ac_c_werror_flag"
11504                          || test ! -s conftest.err'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; } &&
11510          { ac_try='test -s conftest$ac_exeext'
11511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512   (eval $ac_try) 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; }; then
11516   ac_cv_search_opendir="-l$ac_lib"
11517 break
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 fi
11523 rm -f conftest.err conftest.$ac_objext \
11524       conftest$ac_exeext conftest.$ac_ext
11525   done
11526 fi
11527 LIBS=$ac_func_search_save_LIBS
11528 fi
11529 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11530 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11531 if test "$ac_cv_search_opendir" != no; then
11532   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11533
11534 fi
11535
11536 fi
11537
11538 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11539 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11540 if test "${ac_cv_header_stat_broken+set}" = set; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h.  */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h.  */
11549 #include <sys/types.h>
11550 #include <sys/stat.h>
11551
11552 #if defined(S_ISBLK) && defined(S_IFDIR)
11553 # if S_ISBLK (S_IFDIR)
11554 You lose.
11555 # endif
11556 #endif
11557
11558 #if defined(S_ISBLK) && defined(S_IFCHR)
11559 # if S_ISBLK (S_IFCHR)
11560 You lose.
11561 # endif
11562 #endif
11563
11564 #if defined(S_ISLNK) && defined(S_IFREG)
11565 # if S_ISLNK (S_IFREG)
11566 You lose.
11567 # endif
11568 #endif
11569
11570 #if defined(S_ISSOCK) && defined(S_IFREG)
11571 # if S_ISSOCK (S_IFREG)
11572 You lose.
11573 # endif
11574 #endif
11575
11576 _ACEOF
11577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11578   $EGREP "You lose" >/dev/null 2>&1; then
11579   ac_cv_header_stat_broken=yes
11580 else
11581   ac_cv_header_stat_broken=no
11582 fi
11583 rm -f conftest*
11584
11585 fi
11586 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11587 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11588 if test $ac_cv_header_stat_broken = yes; then
11589
11590 cat >>confdefs.h <<\_ACEOF
11591 #define STAT_MACROS_BROKEN 1
11592 _ACEOF
11593
11594 fi
11595
11596 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11597 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11598 if test "${ac_cv_header_stdc+set}" = set; then
11599   echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601   cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607 #include <stdlib.h>
11608 #include <stdarg.h>
11609 #include <string.h>
11610 #include <float.h>
11611
11612 int
11613 main ()
11614 {
11615
11616   ;
11617   return 0;
11618 }
11619 _ACEOF
11620 rm -f conftest.$ac_objext
11621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11622   (eval $ac_compile) 2>conftest.er1
11623   ac_status=$?
11624   grep -v '^ *+' conftest.er1 >conftest.err
11625   rm -f conftest.er1
11626   cat conftest.err >&5
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); } &&
11629          { ac_try='test -z "$ac_c_werror_flag"
11630                          || test ! -s conftest.err'
11631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632   (eval $ac_try) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }; } &&
11636          { ac_try='test -s conftest.$ac_objext'
11637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638   (eval $ac_try) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); }; }; then
11642   ac_cv_header_stdc=yes
11643 else
11644   echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11646
11647 ac_cv_header_stdc=no
11648 fi
11649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11650
11651 if test $ac_cv_header_stdc = yes; then
11652   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11653   cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 #include <string.h>
11660
11661 _ACEOF
11662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11663   $EGREP "memchr" >/dev/null 2>&1; then
11664   :
11665 else
11666   ac_cv_header_stdc=no
11667 fi
11668 rm -f conftest*
11669
11670 fi
11671
11672 if test $ac_cv_header_stdc = yes; then
11673   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11674   cat >conftest.$ac_ext <<_ACEOF
11675 /* confdefs.h.  */
11676 _ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h.  */
11680 #include <stdlib.h>
11681
11682 _ACEOF
11683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11684   $EGREP "free" >/dev/null 2>&1; then
11685   :
11686 else
11687   ac_cv_header_stdc=no
11688 fi
11689 rm -f conftest*
11690
11691 fi
11692
11693 if test $ac_cv_header_stdc = yes; then
11694   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11695   if test "$cross_compiling" = yes; then
11696   :
11697 else
11698   cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h.  */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h.  */
11704 #include <ctype.h>
11705 #if ((' ' & 0x0FF) == 0x020)
11706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11708 #else
11709 # define ISLOWER(c) \
11710                    (('a' <= (c) && (c) <= 'i') \
11711                      || ('j' <= (c) && (c) <= 'r') \
11712                      || ('s' <= (c) && (c) <= 'z'))
11713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11714 #endif
11715
11716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11717 int
11718 main ()
11719 {
11720   int i;
11721   for (i = 0; i < 256; i++)
11722     if (XOR (islower (i), ISLOWER (i))
11723         || toupper (i) != TOUPPER (i))
11724       exit(2);
11725   exit (0);
11726 }
11727 _ACEOF
11728 rm -f conftest$ac_exeext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11730   (eval $ac_link) 2>&5
11731   ac_status=$?
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735   (eval $ac_try) 2>&5
11736   ac_status=$?
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); }; }; then
11739   :
11740 else
11741   echo "$as_me: program exited with status $ac_status" >&5
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11744
11745 ( exit $ac_status )
11746 ac_cv_header_stdc=no
11747 fi
11748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11749 fi
11750 fi
11751 fi
11752 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11753 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11754 if test $ac_cv_header_stdc = yes; then
11755
11756 cat >>confdefs.h <<\_ACEOF
11757 #define STDC_HEADERS 1
11758 _ACEOF
11759
11760 fi
11761
11762
11763 for ac_header in nlist.h
11764 do
11765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11767   echo "$as_me:$LINENO: checking for $ac_header" >&5
11768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11770   echo $ECHO_N "(cached) $ECHO_C" >&6
11771 fi
11772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11774 else
11775   # Is the header compilable?
11776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11778 cat >conftest.$ac_ext <<_ACEOF
11779 /* confdefs.h.  */
11780 _ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h.  */
11784 $ac_includes_default
11785 #include <$ac_header>
11786 _ACEOF
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789   (eval $ac_compile) 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -z "$ac_c_werror_flag"
11797                          || test ! -s conftest.err'
11798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799   (eval $ac_try) 2>&5
11800   ac_status=$?
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); }; } &&
11803          { ac_try='test -s conftest.$ac_objext'
11804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805   (eval $ac_try) 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; }; then
11809   ac_header_compiler=yes
11810 else
11811   echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 ac_header_compiler=no
11815 fi
11816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11818 echo "${ECHO_T}$ac_header_compiler" >&6
11819
11820 # Is the header present?
11821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11823 cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h.  */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h.  */
11829 #include <$ac_header>
11830 _ACEOF
11831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11833   ac_status=$?
11834   grep -v '^ *+' conftest.er1 >conftest.err
11835   rm -f conftest.er1
11836   cat conftest.err >&5
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); } >/dev/null; then
11839   if test -s conftest.err; then
11840     ac_cpp_err=$ac_c_preproc_warn_flag
11841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11842   else
11843     ac_cpp_err=
11844   fi
11845 else
11846   ac_cpp_err=yes
11847 fi
11848 if test -z "$ac_cpp_err"; then
11849   ac_header_preproc=yes
11850 else
11851   echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11853
11854   ac_header_preproc=no
11855 fi
11856 rm -f conftest.err conftest.$ac_ext
11857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11858 echo "${ECHO_T}$ac_header_preproc" >&6
11859
11860 # So?  What about this header?
11861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11862   yes:no: )
11863     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11867     ac_header_preproc=yes
11868     ;;
11869   no:yes:* )
11870     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11872     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11873 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11874     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11876     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11877 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11880     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11882     (
11883       cat <<\_ASBOX
11884 ## ------------------------------------------ ##
11885 ## Report this to the AC_PACKAGE_NAME lists.  ##
11886 ## ------------------------------------------ ##
11887 _ASBOX
11888     ) |
11889       sed "s/^/$as_me: WARNING:     /" >&2
11890     ;;
11891 esac
11892 echo "$as_me:$LINENO: checking for $ac_header" >&5
11893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11895   echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897   eval "$as_ac_Header=\$ac_header_preproc"
11898 fi
11899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11901
11902 fi
11903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11904   cat >>confdefs.h <<_ACEOF
11905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11906 _ACEOF
11907
11908 fi
11909
11910 done
11911
11912
11913 for ac_header in link.h
11914 do
11915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11916 echo "$as_me:$LINENO: checking for $ac_header" >&5
11917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927 #if HAVE_SYS_TYPES_H
11928 # include <sys/types.h>
11929 #endif
11930 #if HAVE_NLIST_H
11931 # include <nlist.h>
11932 #endif
11933
11934
11935 #include <$ac_header>
11936 _ACEOF
11937 rm -f conftest.$ac_objext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11939   (eval $ac_compile) 2>conftest.er1
11940   ac_status=$?
11941   grep -v '^ *+' conftest.er1 >conftest.err
11942   rm -f conftest.er1
11943   cat conftest.err >&5
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); } &&
11946          { ac_try='test -z "$ac_c_werror_flag"
11947                          || test ! -s conftest.err'
11948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949   (eval $ac_try) 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }; } &&
11953          { ac_try='test -s conftest.$ac_objext'
11954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955   (eval $ac_try) 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); }; }; then
11959   eval "$as_ac_Header=yes"
11960 else
11961   echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964 eval "$as_ac_Header=no"
11965 fi
11966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11967 fi
11968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11971   cat >>confdefs.h <<_ACEOF
11972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11973 _ACEOF
11974
11975 fi
11976
11977 done
11978
11979
11980 for ac_header in machine/reg.h
11981 do
11982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11984   echo "$as_me:$LINENO: checking for $ac_header" >&5
11985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11987   echo $ECHO_N "(cached) $ECHO_C" >&6
11988 fi
11989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11991 else
11992   # Is the header compilable?
11993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11995 cat >conftest.$ac_ext <<_ACEOF
11996 /* confdefs.h.  */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h.  */
12001 $ac_includes_default
12002 #include <$ac_header>
12003 _ACEOF
12004 rm -f conftest.$ac_objext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12006   (eval $ac_compile) 2>conftest.er1
12007   ac_status=$?
12008   grep -v '^ *+' conftest.er1 >conftest.err
12009   rm -f conftest.er1
12010   cat conftest.err >&5
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); } &&
12013          { ac_try='test -z "$ac_c_werror_flag"
12014                          || test ! -s conftest.err'
12015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016   (eval $ac_try) 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; } &&
12020          { ac_try='test -s conftest.$ac_objext'
12021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022   (eval $ac_try) 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); }; }; then
12026   ac_header_compiler=yes
12027 else
12028   echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12030
12031 ac_header_compiler=no
12032 fi
12033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12035 echo "${ECHO_T}$ac_header_compiler" >&6
12036
12037 # Is the header present?
12038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h.  */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h.  */
12046 #include <$ac_header>
12047 _ACEOF
12048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12050   ac_status=$?
12051   grep -v '^ *+' conftest.er1 >conftest.err
12052   rm -f conftest.er1
12053   cat conftest.err >&5
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } >/dev/null; then
12056   if test -s conftest.err; then
12057     ac_cpp_err=$ac_c_preproc_warn_flag
12058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12059   else
12060     ac_cpp_err=
12061   fi
12062 else
12063   ac_cpp_err=yes
12064 fi
12065 if test -z "$ac_cpp_err"; then
12066   ac_header_preproc=yes
12067 else
12068   echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071   ac_header_preproc=no
12072 fi
12073 rm -f conftest.err conftest.$ac_ext
12074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075 echo "${ECHO_T}$ac_header_preproc" >&6
12076
12077 # So?  What about this header?
12078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12079   yes:no: )
12080     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084     ac_header_preproc=yes
12085     ;;
12086   no:yes:* )
12087     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12090 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12091     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12094 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12099     (
12100       cat <<\_ASBOX
12101 ## ------------------------------------------ ##
12102 ## Report this to the AC_PACKAGE_NAME lists.  ##
12103 ## ------------------------------------------ ##
12104 _ASBOX
12105     ) |
12106       sed "s/^/$as_me: WARNING:     /" >&2
12107     ;;
12108 esac
12109 echo "$as_me:$LINENO: checking for $ac_header" >&5
12110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12112   echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114   eval "$as_ac_Header=\$ac_header_preproc"
12115 fi
12116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12118
12119 fi
12120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12121   cat >>confdefs.h <<_ACEOF
12122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12123 _ACEOF
12124
12125 fi
12126
12127 done
12128
12129
12130
12131 for ac_header in poll.h sys/poll.h
12132 do
12133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12135   echo "$as_me:$LINENO: checking for $ac_header" >&5
12136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 fi
12140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12142 else
12143   # Is the header compilable?
12144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h.  */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h.  */
12152 $ac_includes_default
12153 #include <$ac_header>
12154 _ACEOF
12155 rm -f conftest.$ac_objext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157   (eval $ac_compile) 2>conftest.er1
12158   ac_status=$?
12159   grep -v '^ *+' conftest.er1 >conftest.err
12160   rm -f conftest.er1
12161   cat conftest.err >&5
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); } &&
12164          { ac_try='test -z "$ac_c_werror_flag"
12165                          || test ! -s conftest.err'
12166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167   (eval $ac_try) 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); }; } &&
12171          { ac_try='test -s conftest.$ac_objext'
12172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173   (eval $ac_try) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); }; }; then
12177   ac_header_compiler=yes
12178 else
12179   echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12181
12182 ac_header_compiler=no
12183 fi
12184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12186 echo "${ECHO_T}$ac_header_compiler" >&6
12187
12188 # Is the header present?
12189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h.  */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h.  */
12197 #include <$ac_header>
12198 _ACEOF
12199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12200   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12201   ac_status=$?
12202   grep -v '^ *+' conftest.er1 >conftest.err
12203   rm -f conftest.er1
12204   cat conftest.err >&5
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } >/dev/null; then
12207   if test -s conftest.err; then
12208     ac_cpp_err=$ac_c_preproc_warn_flag
12209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12210   else
12211     ac_cpp_err=
12212   fi
12213 else
12214   ac_cpp_err=yes
12215 fi
12216 if test -z "$ac_cpp_err"; then
12217   ac_header_preproc=yes
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222   ac_header_preproc=no
12223 fi
12224 rm -f conftest.err conftest.$ac_ext
12225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12226 echo "${ECHO_T}$ac_header_preproc" >&6
12227
12228 # So?  What about this header?
12229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12230   yes:no: )
12231     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12235     ac_header_preproc=yes
12236     ;;
12237   no:yes:* )
12238     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12240     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12241 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12242     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12244     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12245 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12248     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12250     (
12251       cat <<\_ASBOX
12252 ## ------------------------------------------ ##
12253 ## Report this to the AC_PACKAGE_NAME lists.  ##
12254 ## ------------------------------------------ ##
12255 _ASBOX
12256     ) |
12257       sed "s/^/$as_me: WARNING:     /" >&2
12258     ;;
12259 esac
12260 echo "$as_me:$LINENO: checking for $ac_header" >&5
12261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12263   echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265   eval "$as_ac_Header=\$ac_header_preproc"
12266 fi
12267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12269
12270 fi
12271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12272   cat >>confdefs.h <<_ACEOF
12273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12274 _ACEOF
12275
12276 fi
12277
12278 done
12279
12280
12281
12282
12283 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12284 do
12285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12287   echo "$as_me:$LINENO: checking for $ac_header" >&5
12288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 fi
12292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12294 else
12295   # Is the header compilable?
12296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h.  */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h.  */
12304 $ac_includes_default
12305 #include <$ac_header>
12306 _ACEOF
12307 rm -f conftest.$ac_objext
12308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12309   (eval $ac_compile) 2>conftest.er1
12310   ac_status=$?
12311   grep -v '^ *+' conftest.er1 >conftest.err
12312   rm -f conftest.er1
12313   cat conftest.err >&5
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); } &&
12316          { ac_try='test -z "$ac_c_werror_flag"
12317                          || test ! -s conftest.err'
12318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319   (eval $ac_try) 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); }; } &&
12323          { ac_try='test -s conftest.$ac_objext'
12324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325   (eval $ac_try) 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); }; }; then
12329   ac_header_compiler=yes
12330 else
12331   echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12333
12334 ac_header_compiler=no
12335 fi
12336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12338 echo "${ECHO_T}$ac_header_compiler" >&6
12339
12340 # Is the header present?
12341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349 #include <$ac_header>
12350 _ACEOF
12351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12353   ac_status=$?
12354   grep -v '^ *+' conftest.er1 >conftest.err
12355   rm -f conftest.er1
12356   cat conftest.err >&5
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } >/dev/null; then
12359   if test -s conftest.err; then
12360     ac_cpp_err=$ac_c_preproc_warn_flag
12361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12362   else
12363     ac_cpp_err=
12364   fi
12365 else
12366   ac_cpp_err=yes
12367 fi
12368 if test -z "$ac_cpp_err"; then
12369   ac_header_preproc=yes
12370 else
12371   echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12373
12374   ac_header_preproc=no
12375 fi
12376 rm -f conftest.err conftest.$ac_ext
12377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12378 echo "${ECHO_T}$ac_header_preproc" >&6
12379
12380 # So?  What about this header?
12381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12382   yes:no: )
12383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12387     ac_header_preproc=yes
12388     ;;
12389   no:yes:* )
12390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12392     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12393 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12396     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12397 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12402     (
12403       cat <<\_ASBOX
12404 ## ------------------------------------------ ##
12405 ## Report this to the AC_PACKAGE_NAME lists.  ##
12406 ## ------------------------------------------ ##
12407 _ASBOX
12408     ) |
12409       sed "s/^/$as_me: WARNING:     /" >&2
12410     ;;
12411 esac
12412 echo "$as_me:$LINENO: checking for $ac_header" >&5
12413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12415   echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417   eval "$as_ac_Header=\$ac_header_preproc"
12418 fi
12419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12421
12422 fi
12423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12424   cat >>confdefs.h <<_ACEOF
12425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12426 _ACEOF
12427
12428 fi
12429
12430 done
12431
12432
12433 for ac_header in signal.h
12434 do
12435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12437   echo "$as_me:$LINENO: checking for $ac_header" >&5
12438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12440   echo $ECHO_N "(cached) $ECHO_C" >&6
12441 fi
12442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12444 else
12445   # Is the header compilable?
12446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12448 cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h.  */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h.  */
12454 $ac_includes_default
12455 #include <$ac_header>
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459   (eval $ac_compile) 2>conftest.er1
12460   ac_status=$?
12461   grep -v '^ *+' conftest.er1 >conftest.err
12462   rm -f conftest.er1
12463   cat conftest.err >&5
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); } &&
12466          { ac_try='test -z "$ac_c_werror_flag"
12467                          || test ! -s conftest.err'
12468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469   (eval $ac_try) 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; } &&
12473          { ac_try='test -s conftest.$ac_objext'
12474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475   (eval $ac_try) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); }; }; then
12479   ac_header_compiler=yes
12480 else
12481   echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12483
12484 ac_header_compiler=no
12485 fi
12486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12488 echo "${ECHO_T}$ac_header_compiler" >&6
12489
12490 # Is the header present?
12491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12493 cat >conftest.$ac_ext <<_ACEOF
12494 /* confdefs.h.  */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h.  */
12499 #include <$ac_header>
12500 _ACEOF
12501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12503   ac_status=$?
12504   grep -v '^ *+' conftest.er1 >conftest.err
12505   rm -f conftest.er1
12506   cat conftest.err >&5
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } >/dev/null; then
12509   if test -s conftest.err; then
12510     ac_cpp_err=$ac_c_preproc_warn_flag
12511     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12512   else
12513     ac_cpp_err=
12514   fi
12515 else
12516   ac_cpp_err=yes
12517 fi
12518 if test -z "$ac_cpp_err"; then
12519   ac_header_preproc=yes
12520 else
12521   echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12523
12524   ac_header_preproc=no
12525 fi
12526 rm -f conftest.err conftest.$ac_ext
12527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12528 echo "${ECHO_T}$ac_header_preproc" >&6
12529
12530 # So?  What about this header?
12531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12532   yes:no: )
12533     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12537     ac_header_preproc=yes
12538     ;;
12539   no:yes:* )
12540     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12542     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12543 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12544     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12546     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12547 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12550     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12552     (
12553       cat <<\_ASBOX
12554 ## ------------------------------------------ ##
12555 ## Report this to the AC_PACKAGE_NAME lists.  ##
12556 ## ------------------------------------------ ##
12557 _ASBOX
12558     ) |
12559       sed "s/^/$as_me: WARNING:     /" >&2
12560     ;;
12561 esac
12562 echo "$as_me:$LINENO: checking for $ac_header" >&5
12563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12565   echo $ECHO_N "(cached) $ECHO_C" >&6
12566 else
12567   eval "$as_ac_Header=\$ac_header_preproc"
12568 fi
12569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12571
12572 fi
12573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12574   cat >>confdefs.h <<_ACEOF
12575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12576 _ACEOF
12577
12578 fi
12579
12580 done
12581
12582
12583 for ac_header in stddef.h
12584 do
12585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12587   echo "$as_me:$LINENO: checking for $ac_header" >&5
12588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12590   echo $ECHO_N "(cached) $ECHO_C" >&6
12591 fi
12592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12594 else
12595   # Is the header compilable?
12596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h.  */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h.  */
12604 $ac_includes_default
12605 #include <$ac_header>
12606 _ACEOF
12607 rm -f conftest.$ac_objext
12608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12609   (eval $ac_compile) 2>conftest.er1
12610   ac_status=$?
12611   grep -v '^ *+' conftest.er1 >conftest.err
12612   rm -f conftest.er1
12613   cat conftest.err >&5
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); } &&
12616          { ac_try='test -z "$ac_c_werror_flag"
12617                          || test ! -s conftest.err'
12618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619   (eval $ac_try) 2>&5
12620   ac_status=$?
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); }; } &&
12623          { ac_try='test -s conftest.$ac_objext'
12624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625   (eval $ac_try) 2>&5
12626   ac_status=$?
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); }; }; then
12629   ac_header_compiler=yes
12630 else
12631   echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12633
12634 ac_header_compiler=no
12635 fi
12636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12638 echo "${ECHO_T}$ac_header_compiler" >&6
12639
12640 # Is the header present?
12641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12643 cat >conftest.$ac_ext <<_ACEOF
12644 /* confdefs.h.  */
12645 _ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h.  */
12649 #include <$ac_header>
12650 _ACEOF
12651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12653   ac_status=$?
12654   grep -v '^ *+' conftest.er1 >conftest.err
12655   rm -f conftest.er1
12656   cat conftest.err >&5
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); } >/dev/null; then
12659   if test -s conftest.err; then
12660     ac_cpp_err=$ac_c_preproc_warn_flag
12661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12662   else
12663     ac_cpp_err=
12664   fi
12665 else
12666   ac_cpp_err=yes
12667 fi
12668 if test -z "$ac_cpp_err"; then
12669   ac_header_preproc=yes
12670 else
12671   echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674   ac_header_preproc=no
12675 fi
12676 rm -f conftest.err conftest.$ac_ext
12677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12678 echo "${ECHO_T}$ac_header_preproc" >&6
12679
12680 # So?  What about this header?
12681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12682   yes:no: )
12683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12687     ac_header_preproc=yes
12688     ;;
12689   no:yes:* )
12690     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12692     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12693 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12694     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12696     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12697 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12700     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12702     (
12703       cat <<\_ASBOX
12704 ## ------------------------------------------ ##
12705 ## Report this to the AC_PACKAGE_NAME lists.  ##
12706 ## ------------------------------------------ ##
12707 _ASBOX
12708     ) |
12709       sed "s/^/$as_me: WARNING:     /" >&2
12710     ;;
12711 esac
12712 echo "$as_me:$LINENO: checking for $ac_header" >&5
12713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12715   echo $ECHO_N "(cached) $ECHO_C" >&6
12716 else
12717   eval "$as_ac_Header=\$ac_header_preproc"
12718 fi
12719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12721
12722 fi
12723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12724   cat >>confdefs.h <<_ACEOF
12725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12726 _ACEOF
12727
12728 fi
12729
12730 done
12731
12732
12733 for ac_header in stdlib.h
12734 do
12735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12737   echo "$as_me:$LINENO: checking for $ac_header" >&5
12738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12740   echo $ECHO_N "(cached) $ECHO_C" >&6
12741 fi
12742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12744 else
12745   # Is the header compilable?
12746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754 $ac_includes_default
12755 #include <$ac_header>
12756 _ACEOF
12757 rm -f conftest.$ac_objext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759   (eval $ac_compile) 2>conftest.er1
12760   ac_status=$?
12761   grep -v '^ *+' conftest.er1 >conftest.err
12762   rm -f conftest.er1
12763   cat conftest.err >&5
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); } &&
12766          { ac_try='test -z "$ac_c_werror_flag"
12767                          || test ! -s conftest.err'
12768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769   (eval $ac_try) 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); }; } &&
12773          { ac_try='test -s conftest.$ac_objext'
12774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775   (eval $ac_try) 2>&5
12776   ac_status=$?
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); }; }; then
12779   ac_header_compiler=yes
12780 else
12781   echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12783
12784 ac_header_compiler=no
12785 fi
12786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12788 echo "${ECHO_T}$ac_header_compiler" >&6
12789
12790 # Is the header present?
12791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799 #include <$ac_header>
12800 _ACEOF
12801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12802   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12803   ac_status=$?
12804   grep -v '^ *+' conftest.er1 >conftest.err
12805   rm -f conftest.er1
12806   cat conftest.err >&5
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); } >/dev/null; then
12809   if test -s conftest.err; then
12810     ac_cpp_err=$ac_c_preproc_warn_flag
12811     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12812   else
12813     ac_cpp_err=
12814   fi
12815 else
12816   ac_cpp_err=yes
12817 fi
12818 if test -z "$ac_cpp_err"; then
12819   ac_header_preproc=yes
12820 else
12821   echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12823
12824   ac_header_preproc=no
12825 fi
12826 rm -f conftest.err conftest.$ac_ext
12827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12828 echo "${ECHO_T}$ac_header_preproc" >&6
12829
12830 # So?  What about this header?
12831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12832   yes:no: )
12833     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12837     ac_header_preproc=yes
12838     ;;
12839   no:yes:* )
12840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12842     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12843 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12844     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12846     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12847 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12850     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12852     (
12853       cat <<\_ASBOX
12854 ## ------------------------------------------ ##
12855 ## Report this to the AC_PACKAGE_NAME lists.  ##
12856 ## ------------------------------------------ ##
12857 _ASBOX
12858     ) |
12859       sed "s/^/$as_me: WARNING:     /" >&2
12860     ;;
12861 esac
12862 echo "$as_me:$LINENO: checking for $ac_header" >&5
12863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12865   echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867   eval "$as_ac_Header=\$ac_header_preproc"
12868 fi
12869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12871
12872 fi
12873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12874   cat >>confdefs.h <<_ACEOF
12875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12876 _ACEOF
12877
12878 fi
12879
12880 done
12881
12882
12883
12884
12885 for ac_header in string.h memory.h strings.h
12886 do
12887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12889   echo "$as_me:$LINENO: checking for $ac_header" >&5
12890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12892   echo $ECHO_N "(cached) $ECHO_C" >&6
12893 fi
12894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12896 else
12897   # Is the header compilable?
12898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12900 cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h.  */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h.  */
12906 $ac_includes_default
12907 #include <$ac_header>
12908 _ACEOF
12909 rm -f conftest.$ac_objext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911   (eval $ac_compile) 2>conftest.er1
12912   ac_status=$?
12913   grep -v '^ *+' conftest.er1 >conftest.err
12914   rm -f conftest.er1
12915   cat conftest.err >&5
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); } &&
12918          { ac_try='test -z "$ac_c_werror_flag"
12919                          || test ! -s conftest.err'
12920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921   (eval $ac_try) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; } &&
12925          { ac_try='test -s conftest.$ac_objext'
12926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927   (eval $ac_try) 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; }; then
12931   ac_header_compiler=yes
12932 else
12933   echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12935
12936 ac_header_compiler=no
12937 fi
12938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12940 echo "${ECHO_T}$ac_header_compiler" >&6
12941
12942 # Is the header present?
12943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h.  */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h.  */
12951 #include <$ac_header>
12952 _ACEOF
12953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12955   ac_status=$?
12956   grep -v '^ *+' conftest.er1 >conftest.err
12957   rm -f conftest.er1
12958   cat conftest.err >&5
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); } >/dev/null; then
12961   if test -s conftest.err; then
12962     ac_cpp_err=$ac_c_preproc_warn_flag
12963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12964   else
12965     ac_cpp_err=
12966   fi
12967 else
12968   ac_cpp_err=yes
12969 fi
12970 if test -z "$ac_cpp_err"; then
12971   ac_header_preproc=yes
12972 else
12973   echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12975
12976   ac_header_preproc=no
12977 fi
12978 rm -f conftest.err conftest.$ac_ext
12979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12980 echo "${ECHO_T}$ac_header_preproc" >&6
12981
12982 # So?  What about this header?
12983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12984   yes:no: )
12985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12989     ac_header_preproc=yes
12990     ;;
12991   no:yes:* )
12992     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12994     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12995 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12996     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12998     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12999 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13002     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13004     (
13005       cat <<\_ASBOX
13006 ## ------------------------------------------ ##
13007 ## Report this to the AC_PACKAGE_NAME lists.  ##
13008 ## ------------------------------------------ ##
13009 _ASBOX
13010     ) |
13011       sed "s/^/$as_me: WARNING:     /" >&2
13012     ;;
13013 esac
13014 echo "$as_me:$LINENO: checking for $ac_header" >&5
13015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13017   echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019   eval "$as_ac_Header=\$ac_header_preproc"
13020 fi
13021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13023
13024 fi
13025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13026   cat >>confdefs.h <<_ACEOF
13027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13028 _ACEOF
13029
13030 fi
13031
13032 done
13033
13034
13035 for ac_header in sys/fault.h
13036 do
13037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13039   echo "$as_me:$LINENO: checking for $ac_header" >&5
13040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13042   echo $ECHO_N "(cached) $ECHO_C" >&6
13043 fi
13044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13046 else
13047   # Is the header compilable?
13048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13050 cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h.  */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h.  */
13056 $ac_includes_default
13057 #include <$ac_header>
13058 _ACEOF
13059 rm -f conftest.$ac_objext
13060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13061   (eval $ac_compile) 2>conftest.er1
13062   ac_status=$?
13063   grep -v '^ *+' conftest.er1 >conftest.err
13064   rm -f conftest.er1
13065   cat conftest.err >&5
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); } &&
13068          { ac_try='test -z "$ac_c_werror_flag"
13069                          || test ! -s conftest.err'
13070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071   (eval $ac_try) 2>&5
13072   ac_status=$?
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); }; } &&
13075          { ac_try='test -s conftest.$ac_objext'
13076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077   (eval $ac_try) 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); }; }; then
13081   ac_header_compiler=yes
13082 else
13083   echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13085
13086 ac_header_compiler=no
13087 fi
13088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13090 echo "${ECHO_T}$ac_header_compiler" >&6
13091
13092 # Is the header present?
13093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h.  */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h.  */
13101 #include <$ac_header>
13102 _ACEOF
13103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13104   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13105   ac_status=$?
13106   grep -v '^ *+' conftest.er1 >conftest.err
13107   rm -f conftest.er1
13108   cat conftest.err >&5
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); } >/dev/null; then
13111   if test -s conftest.err; then
13112     ac_cpp_err=$ac_c_preproc_warn_flag
13113     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13114   else
13115     ac_cpp_err=
13116   fi
13117 else
13118   ac_cpp_err=yes
13119 fi
13120 if test -z "$ac_cpp_err"; then
13121   ac_header_preproc=yes
13122 else
13123   echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126   ac_header_preproc=no
13127 fi
13128 rm -f conftest.err conftest.$ac_ext
13129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13130 echo "${ECHO_T}$ac_header_preproc" >&6
13131
13132 # So?  What about this header?
13133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13134   yes:no: )
13135     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13139     ac_header_preproc=yes
13140     ;;
13141   no:yes:* )
13142     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13144     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13145 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13146     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13148     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13149 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13152     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13154     (
13155       cat <<\_ASBOX
13156 ## ------------------------------------------ ##
13157 ## Report this to the AC_PACKAGE_NAME lists.  ##
13158 ## ------------------------------------------ ##
13159 _ASBOX
13160     ) |
13161       sed "s/^/$as_me: WARNING:     /" >&2
13162     ;;
13163 esac
13164 echo "$as_me:$LINENO: checking for $ac_header" >&5
13165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13167   echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169   eval "$as_ac_Header=\$ac_header_preproc"
13170 fi
13171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13173
13174 fi
13175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13176   cat >>confdefs.h <<_ACEOF
13177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13178 _ACEOF
13179
13180 fi
13181
13182 done
13183
13184
13185 for ac_header in sys/file.h
13186 do
13187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189   echo "$as_me:$LINENO: checking for $ac_header" >&5
13190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13192   echo $ECHO_N "(cached) $ECHO_C" >&6
13193 fi
13194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13196 else
13197   # Is the header compilable?
13198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13200 cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h.  */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h.  */
13206 $ac_includes_default
13207 #include <$ac_header>
13208 _ACEOF
13209 rm -f conftest.$ac_objext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13211   (eval $ac_compile) 2>conftest.er1
13212   ac_status=$?
13213   grep -v '^ *+' conftest.er1 >conftest.err
13214   rm -f conftest.er1
13215   cat conftest.err >&5
13216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); } &&
13218          { ac_try='test -z "$ac_c_werror_flag"
13219                          || test ! -s conftest.err'
13220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221   (eval $ac_try) 2>&5
13222   ac_status=$?
13223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224   (exit $ac_status); }; } &&
13225          { ac_try='test -s conftest.$ac_objext'
13226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227   (eval $ac_try) 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; }; then
13231   ac_header_compiler=yes
13232 else
13233   echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13235
13236 ac_header_compiler=no
13237 fi
13238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13240 echo "${ECHO_T}$ac_header_compiler" >&6
13241
13242 # Is the header present?
13243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13245 cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h.  */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h.  */
13251 #include <$ac_header>
13252 _ACEOF
13253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13255   ac_status=$?
13256   grep -v '^ *+' conftest.er1 >conftest.err
13257   rm -f conftest.er1
13258   cat conftest.err >&5
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); } >/dev/null; then
13261   if test -s conftest.err; then
13262     ac_cpp_err=$ac_c_preproc_warn_flag
13263     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13264   else
13265     ac_cpp_err=
13266   fi
13267 else
13268   ac_cpp_err=yes
13269 fi
13270 if test -z "$ac_cpp_err"; then
13271   ac_header_preproc=yes
13272 else
13273   echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13275
13276   ac_header_preproc=no
13277 fi
13278 rm -f conftest.err conftest.$ac_ext
13279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13280 echo "${ECHO_T}$ac_header_preproc" >&6
13281
13282 # So?  What about this header?
13283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13284   yes:no: )
13285     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13289     ac_header_preproc=yes
13290     ;;
13291   no:yes:* )
13292     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13294     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13295 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13296     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13298     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13299 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13302     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13304     (
13305       cat <<\_ASBOX
13306 ## ------------------------------------------ ##
13307 ## Report this to the AC_PACKAGE_NAME lists.  ##
13308 ## ------------------------------------------ ##
13309 _ASBOX
13310     ) |
13311       sed "s/^/$as_me: WARNING:     /" >&2
13312     ;;
13313 esac
13314 echo "$as_me:$LINENO: checking for $ac_header" >&5
13315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13317   echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319   eval "$as_ac_Header=\$ac_header_preproc"
13320 fi
13321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13323
13324 fi
13325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13326   cat >>confdefs.h <<_ACEOF
13327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13328 _ACEOF
13329
13330 fi
13331
13332 done
13333
13334
13335 for ac_header in sys/filio.h
13336 do
13337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13339   echo "$as_me:$LINENO: checking for $ac_header" >&5
13340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13342   echo $ECHO_N "(cached) $ECHO_C" >&6
13343 fi
13344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13346 else
13347   # Is the header compilable?
13348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13350 cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h.  */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h.  */
13356 $ac_includes_default
13357 #include <$ac_header>
13358 _ACEOF
13359 rm -f conftest.$ac_objext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13361   (eval $ac_compile) 2>conftest.er1
13362   ac_status=$?
13363   grep -v '^ *+' conftest.er1 >conftest.err
13364   rm -f conftest.er1
13365   cat conftest.err >&5
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); } &&
13368          { ac_try='test -z "$ac_c_werror_flag"
13369                          || test ! -s conftest.err'
13370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371   (eval $ac_try) 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); }; } &&
13375          { ac_try='test -s conftest.$ac_objext'
13376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377   (eval $ac_try) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); }; }; then
13381   ac_header_compiler=yes
13382 else
13383   echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13385
13386 ac_header_compiler=no
13387 fi
13388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13390 echo "${ECHO_T}$ac_header_compiler" >&6
13391
13392 # Is the header present?
13393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h.  */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h.  */
13401 #include <$ac_header>
13402 _ACEOF
13403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13405   ac_status=$?
13406   grep -v '^ *+' conftest.er1 >conftest.err
13407   rm -f conftest.er1
13408   cat conftest.err >&5
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); } >/dev/null; then
13411   if test -s conftest.err; then
13412     ac_cpp_err=$ac_c_preproc_warn_flag
13413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13414   else
13415     ac_cpp_err=
13416   fi
13417 else
13418   ac_cpp_err=yes
13419 fi
13420 if test -z "$ac_cpp_err"; then
13421   ac_header_preproc=yes
13422 else
13423   echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13425
13426   ac_header_preproc=no
13427 fi
13428 rm -f conftest.err conftest.$ac_ext
13429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430 echo "${ECHO_T}$ac_header_preproc" >&6
13431
13432 # So?  What about this header?
13433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13434   yes:no: )
13435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13439     ac_header_preproc=yes
13440     ;;
13441   no:yes:* )
13442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13454     (
13455       cat <<\_ASBOX
13456 ## ------------------------------------------ ##
13457 ## Report this to the AC_PACKAGE_NAME lists.  ##
13458 ## ------------------------------------------ ##
13459 _ASBOX
13460     ) |
13461       sed "s/^/$as_me: WARNING:     /" >&2
13462     ;;
13463 esac
13464 echo "$as_me:$LINENO: checking for $ac_header" >&5
13465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13467   echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469   eval "$as_ac_Header=\$ac_header_preproc"
13470 fi
13471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13473
13474 fi
13475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13476   cat >>confdefs.h <<_ACEOF
13477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13478 _ACEOF
13479
13480 fi
13481
13482 done
13483
13484
13485 for ac_header in sys/ioctl.h
13486 do
13487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489   echo "$as_me:$LINENO: checking for $ac_header" >&5
13490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13492   echo $ECHO_N "(cached) $ECHO_C" >&6
13493 fi
13494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13496 else
13497   # Is the header compilable?
13498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h.  */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h.  */
13506 $ac_includes_default
13507 #include <$ac_header>
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511   (eval $ac_compile) 2>conftest.er1
13512   ac_status=$?
13513   grep -v '^ *+' conftest.er1 >conftest.err
13514   rm -f conftest.er1
13515   cat conftest.err >&5
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } &&
13518          { ac_try='test -z "$ac_c_werror_flag"
13519                          || test ! -s conftest.err'
13520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521   (eval $ac_try) 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; } &&
13525          { ac_try='test -s conftest.$ac_objext'
13526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527   (eval $ac_try) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; }; then
13531   ac_header_compiler=yes
13532 else
13533   echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_header_compiler=no
13537 fi
13538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13540 echo "${ECHO_T}$ac_header_compiler" >&6
13541
13542 # Is the header present?
13543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13545 cat >conftest.$ac_ext <<_ACEOF
13546 /* confdefs.h.  */
13547 _ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h.  */
13551 #include <$ac_header>
13552 _ACEOF
13553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13554   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13555   ac_status=$?
13556   grep -v '^ *+' conftest.er1 >conftest.err
13557   rm -f conftest.er1
13558   cat conftest.err >&5
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } >/dev/null; then
13561   if test -s conftest.err; then
13562     ac_cpp_err=$ac_c_preproc_warn_flag
13563     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13564   else
13565     ac_cpp_err=
13566   fi
13567 else
13568   ac_cpp_err=yes
13569 fi
13570 if test -z "$ac_cpp_err"; then
13571   ac_header_preproc=yes
13572 else
13573   echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13575
13576   ac_header_preproc=no
13577 fi
13578 rm -f conftest.err conftest.$ac_ext
13579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580 echo "${ECHO_T}$ac_header_preproc" >&6
13581
13582 # So?  What about this header?
13583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13584   yes:no: )
13585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13589     ac_header_preproc=yes
13590     ;;
13591   no:yes:* )
13592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13604     (
13605       cat <<\_ASBOX
13606 ## ------------------------------------------ ##
13607 ## Report this to the AC_PACKAGE_NAME lists.  ##
13608 ## ------------------------------------------ ##
13609 _ASBOX
13610     ) |
13611       sed "s/^/$as_me: WARNING:     /" >&2
13612     ;;
13613 esac
13614 echo "$as_me:$LINENO: checking for $ac_header" >&5
13615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13617   echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619   eval "$as_ac_Header=\$ac_header_preproc"
13620 fi
13621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13623
13624 fi
13625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13626   cat >>confdefs.h <<_ACEOF
13627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13628 _ACEOF
13629
13630 fi
13631
13632 done
13633
13634
13635 for ac_header in sys/param.h
13636 do
13637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13639   echo "$as_me:$LINENO: checking for $ac_header" >&5
13640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13642   echo $ECHO_N "(cached) $ECHO_C" >&6
13643 fi
13644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13646 else
13647   # Is the header compilable?
13648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13650 cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656 $ac_includes_default
13657 #include <$ac_header>
13658 _ACEOF
13659 rm -f conftest.$ac_objext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661   (eval $ac_compile) 2>conftest.er1
13662   ac_status=$?
13663   grep -v '^ *+' conftest.er1 >conftest.err
13664   rm -f conftest.er1
13665   cat conftest.err >&5
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); } &&
13668          { ac_try='test -z "$ac_c_werror_flag"
13669                          || test ! -s conftest.err'
13670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671   (eval $ac_try) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; } &&
13675          { ac_try='test -s conftest.$ac_objext'
13676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   ac_header_compiler=yes
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686 ac_header_compiler=no
13687 fi
13688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13690 echo "${ECHO_T}$ac_header_compiler" >&6
13691
13692 # Is the header present?
13693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13695 cat >conftest.$ac_ext <<_ACEOF
13696 /* confdefs.h.  */
13697 _ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h.  */
13701 #include <$ac_header>
13702 _ACEOF
13703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13705   ac_status=$?
13706   grep -v '^ *+' conftest.er1 >conftest.err
13707   rm -f conftest.er1
13708   cat conftest.err >&5
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); } >/dev/null; then
13711   if test -s conftest.err; then
13712     ac_cpp_err=$ac_c_preproc_warn_flag
13713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13714   else
13715     ac_cpp_err=
13716   fi
13717 else
13718   ac_cpp_err=yes
13719 fi
13720 if test -z "$ac_cpp_err"; then
13721   ac_header_preproc=yes
13722 else
13723   echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13725
13726   ac_header_preproc=no
13727 fi
13728 rm -f conftest.err conftest.$ac_ext
13729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13730 echo "${ECHO_T}$ac_header_preproc" >&6
13731
13732 # So?  What about this header?
13733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13734   yes:no: )
13735     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13739     ac_header_preproc=yes
13740     ;;
13741   no:yes:* )
13742     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13744     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13745 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13746     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13748     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13749 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13752     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13754     (
13755       cat <<\_ASBOX
13756 ## ------------------------------------------ ##
13757 ## Report this to the AC_PACKAGE_NAME lists.  ##
13758 ## ------------------------------------------ ##
13759 _ASBOX
13760     ) |
13761       sed "s/^/$as_me: WARNING:     /" >&2
13762     ;;
13763 esac
13764 echo "$as_me:$LINENO: checking for $ac_header" >&5
13765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769   eval "$as_ac_Header=\$ac_header_preproc"
13770 fi
13771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13773
13774 fi
13775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13776   cat >>confdefs.h <<_ACEOF
13777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13778 _ACEOF
13779
13780 fi
13781
13782 done
13783
13784
13785 for ac_header in sys/resource.h
13786 do
13787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13789   echo "$as_me:$LINENO: checking for $ac_header" >&5
13790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13792   echo $ECHO_N "(cached) $ECHO_C" >&6
13793 fi
13794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13796 else
13797   # Is the header compilable?
13798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h.  */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h.  */
13806 $ac_includes_default
13807 #include <$ac_header>
13808 _ACEOF
13809 rm -f conftest.$ac_objext
13810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13811   (eval $ac_compile) 2>conftest.er1
13812   ac_status=$?
13813   grep -v '^ *+' conftest.er1 >conftest.err
13814   rm -f conftest.er1
13815   cat conftest.err >&5
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); } &&
13818          { ac_try='test -z "$ac_c_werror_flag"
13819                          || test ! -s conftest.err'
13820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821   (eval $ac_try) 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; } &&
13825          { ac_try='test -s conftest.$ac_objext'
13826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827   (eval $ac_try) 2>&5
13828   ac_status=$?
13829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); }; }; then
13831   ac_header_compiler=yes
13832 else
13833   echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13835
13836 ac_header_compiler=no
13837 fi
13838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13840 echo "${ECHO_T}$ac_header_compiler" >&6
13841
13842 # Is the header present?
13843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13845 cat >conftest.$ac_ext <<_ACEOF
13846 /* confdefs.h.  */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h.  */
13851 #include <$ac_header>
13852 _ACEOF
13853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13855   ac_status=$?
13856   grep -v '^ *+' conftest.er1 >conftest.err
13857   rm -f conftest.er1
13858   cat conftest.err >&5
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); } >/dev/null; then
13861   if test -s conftest.err; then
13862     ac_cpp_err=$ac_c_preproc_warn_flag
13863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13864   else
13865     ac_cpp_err=
13866   fi
13867 else
13868   ac_cpp_err=yes
13869 fi
13870 if test -z "$ac_cpp_err"; then
13871   ac_header_preproc=yes
13872 else
13873   echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876   ac_header_preproc=no
13877 fi
13878 rm -f conftest.err conftest.$ac_ext
13879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13880 echo "${ECHO_T}$ac_header_preproc" >&6
13881
13882 # So?  What about this header?
13883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13884   yes:no: )
13885     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13889     ac_header_preproc=yes
13890     ;;
13891   no:yes:* )
13892     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13894     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13895 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13896     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13898     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13899 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13902     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13904     (
13905       cat <<\_ASBOX
13906 ## ------------------------------------------ ##
13907 ## Report this to the AC_PACKAGE_NAME lists.  ##
13908 ## ------------------------------------------ ##
13909 _ASBOX
13910     ) |
13911       sed "s/^/$as_me: WARNING:     /" >&2
13912     ;;
13913 esac
13914 echo "$as_me:$LINENO: checking for $ac_header" >&5
13915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919   eval "$as_ac_Header=\$ac_header_preproc"
13920 fi
13921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13923
13924 fi
13925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13926   cat >>confdefs.h <<_ACEOF
13927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13928 _ACEOF
13929
13930 fi
13931
13932 done
13933
13934
13935 for ac_header in sys/proc.h
13936 do
13937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13938 echo "$as_me:$LINENO: checking for $ac_header" >&5
13939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13941   echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943   cat >conftest.$ac_ext <<_ACEOF
13944 /* confdefs.h.  */
13945 _ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h.  */
13949 #if HAVE_SYS_PARAM_H
13950 # include <sys/param.h>
13951 #endif
13952
13953
13954 #include <$ac_header>
13955 _ACEOF
13956 rm -f conftest.$ac_objext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958   (eval $ac_compile) 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } &&
13965          { ac_try='test -z "$ac_c_werror_flag"
13966                          || test ! -s conftest.err'
13967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968   (eval $ac_try) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); }; } &&
13972          { ac_try='test -s conftest.$ac_objext'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; }; then
13978   eval "$as_ac_Header=yes"
13979 else
13980   echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983 eval "$as_ac_Header=no"
13984 fi
13985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13986 fi
13987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13990   cat >>confdefs.h <<_ACEOF
13991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13992 _ACEOF
13993
13994 fi
13995
13996 done
13997
13998
13999 for ac_header in sys/procfs.h
14000 do
14001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14003   echo "$as_me:$LINENO: checking for $ac_header" >&5
14004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14006   echo $ECHO_N "(cached) $ECHO_C" >&6
14007 fi
14008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14010 else
14011   # Is the header compilable?
14012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14014 cat >conftest.$ac_ext <<_ACEOF
14015 /* confdefs.h.  */
14016 _ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h.  */
14020 $ac_includes_default
14021 #include <$ac_header>
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025   (eval $ac_compile) 2>conftest.er1
14026   ac_status=$?
14027   grep -v '^ *+' conftest.er1 >conftest.err
14028   rm -f conftest.er1
14029   cat conftest.err >&5
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); } &&
14032          { ac_try='test -z "$ac_c_werror_flag"
14033                          || test ! -s conftest.err'
14034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035   (eval $ac_try) 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); }; } &&
14039          { ac_try='test -s conftest.$ac_objext'
14040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041   (eval $ac_try) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; }; then
14045   ac_header_compiler=yes
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050 ac_header_compiler=no
14051 fi
14052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14054 echo "${ECHO_T}$ac_header_compiler" >&6
14055
14056 # Is the header present?
14057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065 #include <$ac_header>
14066 _ACEOF
14067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14069   ac_status=$?
14070   grep -v '^ *+' conftest.er1 >conftest.err
14071   rm -f conftest.er1
14072   cat conftest.err >&5
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); } >/dev/null; then
14075   if test -s conftest.err; then
14076     ac_cpp_err=$ac_c_preproc_warn_flag
14077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14078   else
14079     ac_cpp_err=
14080   fi
14081 else
14082   ac_cpp_err=yes
14083 fi
14084 if test -z "$ac_cpp_err"; then
14085   ac_header_preproc=yes
14086 else
14087   echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14089
14090   ac_header_preproc=no
14091 fi
14092 rm -f conftest.err conftest.$ac_ext
14093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14094 echo "${ECHO_T}$ac_header_preproc" >&6
14095
14096 # So?  What about this header?
14097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14098   yes:no: )
14099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14103     ac_header_preproc=yes
14104     ;;
14105   no:yes:* )
14106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14118     (
14119       cat <<\_ASBOX
14120 ## ------------------------------------------ ##
14121 ## Report this to the AC_PACKAGE_NAME lists.  ##
14122 ## ------------------------------------------ ##
14123 _ASBOX
14124     ) |
14125       sed "s/^/$as_me: WARNING:     /" >&2
14126     ;;
14127 esac
14128 echo "$as_me:$LINENO: checking for $ac_header" >&5
14129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14131   echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133   eval "$as_ac_Header=\$ac_header_preproc"
14134 fi
14135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14137
14138 fi
14139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14140   cat >>confdefs.h <<_ACEOF
14141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14142 _ACEOF
14143
14144 fi
14145
14146 done
14147
14148
14149
14150 for ac_header in sys/ptrace.h ptrace.h
14151 do
14152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14154   echo "$as_me:$LINENO: checking for $ac_header" >&5
14155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14157   echo $ECHO_N "(cached) $ECHO_C" >&6
14158 fi
14159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14161 else
14162   # Is the header compilable?
14163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h.  */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h.  */
14171 $ac_includes_default
14172 #include <$ac_header>
14173 _ACEOF
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176   (eval $ac_compile) 2>conftest.er1
14177   ac_status=$?
14178   grep -v '^ *+' conftest.er1 >conftest.err
14179   rm -f conftest.er1
14180   cat conftest.err >&5
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); } &&
14183          { ac_try='test -z "$ac_c_werror_flag"
14184                          || test ! -s conftest.err'
14185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186   (eval $ac_try) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; } &&
14190          { ac_try='test -s conftest.$ac_objext'
14191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192   (eval $ac_try) 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); }; }; then
14196   ac_header_compiler=yes
14197 else
14198   echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201 ac_header_compiler=no
14202 fi
14203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14205 echo "${ECHO_T}$ac_header_compiler" >&6
14206
14207 # Is the header present?
14208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h.  */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h.  */
14216 #include <$ac_header>
14217 _ACEOF
14218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14220   ac_status=$?
14221   grep -v '^ *+' conftest.er1 >conftest.err
14222   rm -f conftest.er1
14223   cat conftest.err >&5
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); } >/dev/null; then
14226   if test -s conftest.err; then
14227     ac_cpp_err=$ac_c_preproc_warn_flag
14228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14229   else
14230     ac_cpp_err=
14231   fi
14232 else
14233   ac_cpp_err=yes
14234 fi
14235 if test -z "$ac_cpp_err"; then
14236   ac_header_preproc=yes
14237 else
14238   echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14240
14241   ac_header_preproc=no
14242 fi
14243 rm -f conftest.err conftest.$ac_ext
14244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14245 echo "${ECHO_T}$ac_header_preproc" >&6
14246
14247 # So?  What about this header?
14248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14249   yes:no: )
14250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14254     ac_header_preproc=yes
14255     ;;
14256   no:yes:* )
14257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14269     (
14270       cat <<\_ASBOX
14271 ## ------------------------------------------ ##
14272 ## Report this to the AC_PACKAGE_NAME lists.  ##
14273 ## ------------------------------------------ ##
14274 _ASBOX
14275     ) |
14276       sed "s/^/$as_me: WARNING:     /" >&2
14277     ;;
14278 esac
14279 echo "$as_me:$LINENO: checking for $ac_header" >&5
14280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14282   echo $ECHO_N "(cached) $ECHO_C" >&6
14283 else
14284   eval "$as_ac_Header=\$ac_header_preproc"
14285 fi
14286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14288
14289 fi
14290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14291   cat >>confdefs.h <<_ACEOF
14292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14293 _ACEOF
14294
14295 fi
14296
14297 done
14298
14299
14300
14301 for ac_header in sys/reg.h sys/debugreg.h
14302 do
14303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14305   echo "$as_me:$LINENO: checking for $ac_header" >&5
14306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14308   echo $ECHO_N "(cached) $ECHO_C" >&6
14309 fi
14310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14312 else
14313   # Is the header compilable?
14314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14316 cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h.  */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h.  */
14322 $ac_includes_default
14323 #include <$ac_header>
14324 _ACEOF
14325 rm -f conftest.$ac_objext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14327   (eval $ac_compile) 2>conftest.er1
14328   ac_status=$?
14329   grep -v '^ *+' conftest.er1 >conftest.err
14330   rm -f conftest.er1
14331   cat conftest.err >&5
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); } &&
14334          { ac_try='test -z "$ac_c_werror_flag"
14335                          || test ! -s conftest.err'
14336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337   (eval $ac_try) 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); }; } &&
14341          { ac_try='test -s conftest.$ac_objext'
14342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343   (eval $ac_try) 2>&5
14344   ac_status=$?
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); }; }; then
14347   ac_header_compiler=yes
14348 else
14349   echo "$as_me: failed program was:" >&5
14350 sed 's/^/| /' conftest.$ac_ext >&5
14351
14352 ac_header_compiler=no
14353 fi
14354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14356 echo "${ECHO_T}$ac_header_compiler" >&6
14357
14358 # Is the header present?
14359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14361 cat >conftest.$ac_ext <<_ACEOF
14362 /* confdefs.h.  */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h.  */
14367 #include <$ac_header>
14368 _ACEOF
14369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14371   ac_status=$?
14372   grep -v '^ *+' conftest.er1 >conftest.err
14373   rm -f conftest.er1
14374   cat conftest.err >&5
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); } >/dev/null; then
14377   if test -s conftest.err; then
14378     ac_cpp_err=$ac_c_preproc_warn_flag
14379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14380   else
14381     ac_cpp_err=
14382   fi
14383 else
14384   ac_cpp_err=yes
14385 fi
14386 if test -z "$ac_cpp_err"; then
14387   ac_header_preproc=yes
14388 else
14389   echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14391
14392   ac_header_preproc=no
14393 fi
14394 rm -f conftest.err conftest.$ac_ext
14395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14396 echo "${ECHO_T}$ac_header_preproc" >&6
14397
14398 # So?  What about this header?
14399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14400   yes:no: )
14401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14405     ac_header_preproc=yes
14406     ;;
14407   no:yes:* )
14408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14420     (
14421       cat <<\_ASBOX
14422 ## ------------------------------------------ ##
14423 ## Report this to the AC_PACKAGE_NAME lists.  ##
14424 ## ------------------------------------------ ##
14425 _ASBOX
14426     ) |
14427       sed "s/^/$as_me: WARNING:     /" >&2
14428     ;;
14429 esac
14430 echo "$as_me:$LINENO: checking for $ac_header" >&5
14431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14433   echo $ECHO_N "(cached) $ECHO_C" >&6
14434 else
14435   eval "$as_ac_Header=\$ac_header_preproc"
14436 fi
14437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14439
14440 fi
14441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14442   cat >>confdefs.h <<_ACEOF
14443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14444 _ACEOF
14445
14446 fi
14447
14448 done
14449
14450
14451 for ac_header in sys/select.h
14452 do
14453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14455   echo "$as_me:$LINENO: checking for $ac_header" >&5
14456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14458   echo $ECHO_N "(cached) $ECHO_C" >&6
14459 fi
14460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14462 else
14463   # Is the header compilable?
14464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14466 cat >conftest.$ac_ext <<_ACEOF
14467 /* confdefs.h.  */
14468 _ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h.  */
14472 $ac_includes_default
14473 #include <$ac_header>
14474 _ACEOF
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477   (eval $ac_compile) 2>conftest.er1
14478   ac_status=$?
14479   grep -v '^ *+' conftest.er1 >conftest.err
14480   rm -f conftest.er1
14481   cat conftest.err >&5
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); } &&
14484          { ac_try='test -z "$ac_c_werror_flag"
14485                          || test ! -s conftest.err'
14486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487   (eval $ac_try) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; } &&
14491          { ac_try='test -s conftest.$ac_objext'
14492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493   (eval $ac_try) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; }; then
14497   ac_header_compiler=yes
14498 else
14499   echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_header_compiler=no
14503 fi
14504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14506 echo "${ECHO_T}$ac_header_compiler" >&6
14507
14508 # Is the header present?
14509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517 #include <$ac_header>
14518 _ACEOF
14519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14520   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14521   ac_status=$?
14522   grep -v '^ *+' conftest.er1 >conftest.err
14523   rm -f conftest.er1
14524   cat conftest.err >&5
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); } >/dev/null; then
14527   if test -s conftest.err; then
14528     ac_cpp_err=$ac_c_preproc_warn_flag
14529     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14530   else
14531     ac_cpp_err=
14532   fi
14533 else
14534   ac_cpp_err=yes
14535 fi
14536 if test -z "$ac_cpp_err"; then
14537   ac_header_preproc=yes
14538 else
14539   echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542   ac_header_preproc=no
14543 fi
14544 rm -f conftest.err conftest.$ac_ext
14545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14546 echo "${ECHO_T}$ac_header_preproc" >&6
14547
14548 # So?  What about this header?
14549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14550   yes:no: )
14551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14555     ac_header_preproc=yes
14556     ;;
14557   no:yes:* )
14558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14560     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14562     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14564     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14568     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14570     (
14571       cat <<\_ASBOX
14572 ## ------------------------------------------ ##
14573 ## Report this to the AC_PACKAGE_NAME lists.  ##
14574 ## ------------------------------------------ ##
14575 _ASBOX
14576     ) |
14577       sed "s/^/$as_me: WARNING:     /" >&2
14578     ;;
14579 esac
14580 echo "$as_me:$LINENO: checking for $ac_header" >&5
14581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14583   echo $ECHO_N "(cached) $ECHO_C" >&6
14584 else
14585   eval "$as_ac_Header=\$ac_header_preproc"
14586 fi
14587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14589
14590 fi
14591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14592   cat >>confdefs.h <<_ACEOF
14593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14594 _ACEOF
14595
14596 fi
14597
14598 done
14599
14600
14601 for ac_header in sys/syscall.h
14602 do
14603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14605   echo "$as_me:$LINENO: checking for $ac_header" >&5
14606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14608   echo $ECHO_N "(cached) $ECHO_C" >&6
14609 fi
14610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14612 else
14613   # Is the header compilable?
14614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14616 cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h.  */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h.  */
14622 $ac_includes_default
14623 #include <$ac_header>
14624 _ACEOF
14625 rm -f conftest.$ac_objext
14626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14627   (eval $ac_compile) 2>conftest.er1
14628   ac_status=$?
14629   grep -v '^ *+' conftest.er1 >conftest.err
14630   rm -f conftest.er1
14631   cat conftest.err >&5
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); } &&
14634          { ac_try='test -z "$ac_c_werror_flag"
14635                          || test ! -s conftest.err'
14636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637   (eval $ac_try) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }; } &&
14641          { ac_try='test -s conftest.$ac_objext'
14642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643   (eval $ac_try) 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; }; then
14647   ac_header_compiler=yes
14648 else
14649   echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14651
14652 ac_header_compiler=no
14653 fi
14654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14656 echo "${ECHO_T}$ac_header_compiler" >&6
14657
14658 # Is the header present?
14659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14661 cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h.  */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h.  */
14667 #include <$ac_header>
14668 _ACEOF
14669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14671   ac_status=$?
14672   grep -v '^ *+' conftest.er1 >conftest.err
14673   rm -f conftest.er1
14674   cat conftest.err >&5
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); } >/dev/null; then
14677   if test -s conftest.err; then
14678     ac_cpp_err=$ac_c_preproc_warn_flag
14679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14680   else
14681     ac_cpp_err=
14682   fi
14683 else
14684   ac_cpp_err=yes
14685 fi
14686 if test -z "$ac_cpp_err"; then
14687   ac_header_preproc=yes
14688 else
14689   echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692   ac_header_preproc=no
14693 fi
14694 rm -f conftest.err conftest.$ac_ext
14695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14696 echo "${ECHO_T}$ac_header_preproc" >&6
14697
14698 # So?  What about this header?
14699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14700   yes:no: )
14701     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14705     ac_header_preproc=yes
14706     ;;
14707   no:yes:* )
14708     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14710     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14711 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14712     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14714     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14715 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14718     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14720     (
14721       cat <<\_ASBOX
14722 ## ------------------------------------------ ##
14723 ## Report this to the AC_PACKAGE_NAME lists.  ##
14724 ## ------------------------------------------ ##
14725 _ASBOX
14726     ) |
14727       sed "s/^/$as_me: WARNING:     /" >&2
14728     ;;
14729 esac
14730 echo "$as_me:$LINENO: checking for $ac_header" >&5
14731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14733   echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735   eval "$as_ac_Header=\$ac_header_preproc"
14736 fi
14737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14739
14740 fi
14741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14742   cat >>confdefs.h <<_ACEOF
14743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14744 _ACEOF
14745
14746 fi
14747
14748 done
14749
14750
14751 for ac_header in sys/types.h
14752 do
14753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14755   echo "$as_me:$LINENO: checking for $ac_header" >&5
14756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14758   echo $ECHO_N "(cached) $ECHO_C" >&6
14759 fi
14760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14762 else
14763   # Is the header compilable?
14764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14766 cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h.  */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h.  */
14772 $ac_includes_default
14773 #include <$ac_header>
14774 _ACEOF
14775 rm -f conftest.$ac_objext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14777   (eval $ac_compile) 2>conftest.er1
14778   ac_status=$?
14779   grep -v '^ *+' conftest.er1 >conftest.err
14780   rm -f conftest.er1
14781   cat conftest.err >&5
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); } &&
14784          { ac_try='test -z "$ac_c_werror_flag"
14785                          || test ! -s conftest.err'
14786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787   (eval $ac_try) 2>&5
14788   ac_status=$?
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); }; } &&
14791          { ac_try='test -s conftest.$ac_objext'
14792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793   (eval $ac_try) 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); }; }; then
14797   ac_header_compiler=yes
14798 else
14799   echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14801
14802 ac_header_compiler=no
14803 fi
14804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14806 echo "${ECHO_T}$ac_header_compiler" >&6
14807
14808 # Is the header present?
14809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h.  */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h.  */
14817 #include <$ac_header>
14818 _ACEOF
14819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14821   ac_status=$?
14822   grep -v '^ *+' conftest.er1 >conftest.err
14823   rm -f conftest.er1
14824   cat conftest.err >&5
14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); } >/dev/null; then
14827   if test -s conftest.err; then
14828     ac_cpp_err=$ac_c_preproc_warn_flag
14829     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14830   else
14831     ac_cpp_err=
14832   fi
14833 else
14834   ac_cpp_err=yes
14835 fi
14836 if test -z "$ac_cpp_err"; then
14837   ac_header_preproc=yes
14838 else
14839   echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14841
14842   ac_header_preproc=no
14843 fi
14844 rm -f conftest.err conftest.$ac_ext
14845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14846 echo "${ECHO_T}$ac_header_preproc" >&6
14847
14848 # So?  What about this header?
14849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14850   yes:no: )
14851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14855     ac_header_preproc=yes
14856     ;;
14857   no:yes:* )
14858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14870     (
14871       cat <<\_ASBOX
14872 ## ------------------------------------------ ##
14873 ## Report this to the AC_PACKAGE_NAME lists.  ##
14874 ## ------------------------------------------ ##
14875 _ASBOX
14876     ) |
14877       sed "s/^/$as_me: WARNING:     /" >&2
14878     ;;
14879 esac
14880 echo "$as_me:$LINENO: checking for $ac_header" >&5
14881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14883   echo $ECHO_N "(cached) $ECHO_C" >&6
14884 else
14885   eval "$as_ac_Header=\$ac_header_preproc"
14886 fi
14887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14889
14890 fi
14891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14892   cat >>confdefs.h <<_ACEOF
14893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14894 _ACEOF
14895
14896 fi
14897
14898 done
14899
14900
14901 for ac_header in sys/user.h
14902 do
14903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14904 echo "$as_me:$LINENO: checking for $ac_header" >&5
14905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14907   echo $ECHO_N "(cached) $ECHO_C" >&6
14908 else
14909   cat >conftest.$ac_ext <<_ACEOF
14910 /* confdefs.h.  */
14911 _ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h.  */
14915 #if HAVE_SYS_PARAM_H
14916 # include <sys/param.h>
14917 #endif
14918
14919
14920 #include <$ac_header>
14921 _ACEOF
14922 rm -f conftest.$ac_objext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924   (eval $ac_compile) 2>conftest.er1
14925   ac_status=$?
14926   grep -v '^ *+' conftest.er1 >conftest.err
14927   rm -f conftest.er1
14928   cat conftest.err >&5
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); } &&
14931          { ac_try='test -z "$ac_c_werror_flag"
14932                          || test ! -s conftest.err'
14933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934   (eval $ac_try) 2>&5
14935   ac_status=$?
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); }; } &&
14938          { ac_try='test -s conftest.$ac_objext'
14939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940   (eval $ac_try) 2>&5
14941   ac_status=$?
14942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943   (exit $ac_status); }; }; then
14944   eval "$as_ac_Header=yes"
14945 else
14946   echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14948
14949 eval "$as_ac_Header=no"
14950 fi
14951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14952 fi
14953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14956   cat >>confdefs.h <<_ACEOF
14957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14958 _ACEOF
14959
14960 fi
14961
14962 done
14963
14964
14965
14966 for ac_header in sys/wait.h wait.h
14967 do
14968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14970   echo "$as_me:$LINENO: checking for $ac_header" >&5
14971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 fi
14975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14977 else
14978   # Is the header compilable?
14979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14981 cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h.  */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h.  */
14987 $ac_includes_default
14988 #include <$ac_header>
14989 _ACEOF
14990 rm -f conftest.$ac_objext
14991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14992   (eval $ac_compile) 2>conftest.er1
14993   ac_status=$?
14994   grep -v '^ *+' conftest.er1 >conftest.err
14995   rm -f conftest.er1
14996   cat conftest.err >&5
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } &&
14999          { ac_try='test -z "$ac_c_werror_flag"
15000                          || test ! -s conftest.err'
15001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002   (eval $ac_try) 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; } &&
15006          { ac_try='test -s conftest.$ac_objext'
15007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008   (eval $ac_try) 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); }; }; then
15012   ac_header_compiler=yes
15013 else
15014   echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15016
15017 ac_header_compiler=no
15018 fi
15019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15021 echo "${ECHO_T}$ac_header_compiler" >&6
15022
15023 # Is the header present?
15024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15026 cat >conftest.$ac_ext <<_ACEOF
15027 /* confdefs.h.  */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h.  */
15032 #include <$ac_header>
15033 _ACEOF
15034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15036   ac_status=$?
15037   grep -v '^ *+' conftest.er1 >conftest.err
15038   rm -f conftest.er1
15039   cat conftest.err >&5
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); } >/dev/null; then
15042   if test -s conftest.err; then
15043     ac_cpp_err=$ac_c_preproc_warn_flag
15044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15045   else
15046     ac_cpp_err=
15047   fi
15048 else
15049   ac_cpp_err=yes
15050 fi
15051 if test -z "$ac_cpp_err"; then
15052   ac_header_preproc=yes
15053 else
15054   echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057   ac_header_preproc=no
15058 fi
15059 rm -f conftest.err conftest.$ac_ext
15060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15061 echo "${ECHO_T}$ac_header_preproc" >&6
15062
15063 # So?  What about this header?
15064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15065   yes:no: )
15066     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15070     ac_header_preproc=yes
15071     ;;
15072   no:yes:* )
15073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15075     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15076 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15077     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15079     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15080 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15083     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15085     (
15086       cat <<\_ASBOX
15087 ## ------------------------------------------ ##
15088 ## Report this to the AC_PACKAGE_NAME lists.  ##
15089 ## ------------------------------------------ ##
15090 _ASBOX
15091     ) |
15092       sed "s/^/$as_me: WARNING:     /" >&2
15093     ;;
15094 esac
15095 echo "$as_me:$LINENO: checking for $ac_header" >&5
15096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15098   echo $ECHO_N "(cached) $ECHO_C" >&6
15099 else
15100   eval "$as_ac_Header=\$ac_header_preproc"
15101 fi
15102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15104
15105 fi
15106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15107   cat >>confdefs.h <<_ACEOF
15108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15109 _ACEOF
15110
15111 fi
15112
15113 done
15114
15115
15116
15117
15118 for ac_header in termios.h termio.h sgtty.h
15119 do
15120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15122   echo "$as_me:$LINENO: checking for $ac_header" >&5
15123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15125   echo $ECHO_N "(cached) $ECHO_C" >&6
15126 fi
15127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15129 else
15130   # Is the header compilable?
15131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15133 cat >conftest.$ac_ext <<_ACEOF
15134 /* confdefs.h.  */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h.  */
15139 $ac_includes_default
15140 #include <$ac_header>
15141 _ACEOF
15142 rm -f conftest.$ac_objext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144   (eval $ac_compile) 2>conftest.er1
15145   ac_status=$?
15146   grep -v '^ *+' conftest.er1 >conftest.err
15147   rm -f conftest.er1
15148   cat conftest.err >&5
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } &&
15151          { ac_try='test -z "$ac_c_werror_flag"
15152                          || test ! -s conftest.err'
15153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154   (eval $ac_try) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; } &&
15158          { ac_try='test -s conftest.$ac_objext'
15159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160   (eval $ac_try) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; }; then
15164   ac_header_compiler=yes
15165 else
15166   echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 ac_header_compiler=no
15170 fi
15171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15173 echo "${ECHO_T}$ac_header_compiler" >&6
15174
15175 # Is the header present?
15176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15178 cat >conftest.$ac_ext <<_ACEOF
15179 /* confdefs.h.  */
15180 _ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h.  */
15184 #include <$ac_header>
15185 _ACEOF
15186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15188   ac_status=$?
15189   grep -v '^ *+' conftest.er1 >conftest.err
15190   rm -f conftest.er1
15191   cat conftest.err >&5
15192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   (exit $ac_status); } >/dev/null; then
15194   if test -s conftest.err; then
15195     ac_cpp_err=$ac_c_preproc_warn_flag
15196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15197   else
15198     ac_cpp_err=
15199   fi
15200 else
15201   ac_cpp_err=yes
15202 fi
15203 if test -z "$ac_cpp_err"; then
15204   ac_header_preproc=yes
15205 else
15206   echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15208
15209   ac_header_preproc=no
15210 fi
15211 rm -f conftest.err conftest.$ac_ext
15212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15213 echo "${ECHO_T}$ac_header_preproc" >&6
15214
15215 # So?  What about this header?
15216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15217   yes:no: )
15218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15222     ac_header_preproc=yes
15223     ;;
15224   no:yes:* )
15225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15237     (
15238       cat <<\_ASBOX
15239 ## ------------------------------------------ ##
15240 ## Report this to the AC_PACKAGE_NAME lists.  ##
15241 ## ------------------------------------------ ##
15242 _ASBOX
15243     ) |
15244       sed "s/^/$as_me: WARNING:     /" >&2
15245     ;;
15246 esac
15247 echo "$as_me:$LINENO: checking for $ac_header" >&5
15248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15250   echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252   eval "$as_ac_Header=\$ac_header_preproc"
15253 fi
15254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15256
15257 fi
15258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15259   cat >>confdefs.h <<_ACEOF
15260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15261 _ACEOF
15262
15263 fi
15264
15265 done
15266
15267
15268 for ac_header in unistd.h
15269 do
15270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15272   echo "$as_me:$LINENO: checking for $ac_header" >&5
15273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15275   echo $ECHO_N "(cached) $ECHO_C" >&6
15276 fi
15277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15279 else
15280   # Is the header compilable?
15281 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15283 cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289 $ac_includes_default
15290 #include <$ac_header>
15291 _ACEOF
15292 rm -f conftest.$ac_objext
15293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15294   (eval $ac_compile) 2>conftest.er1
15295   ac_status=$?
15296   grep -v '^ *+' conftest.er1 >conftest.err
15297   rm -f conftest.er1
15298   cat conftest.err >&5
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); } &&
15301          { ac_try='test -z "$ac_c_werror_flag"
15302                          || test ! -s conftest.err'
15303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304   (eval $ac_try) 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); }; } &&
15308          { ac_try='test -s conftest.$ac_objext'
15309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310   (eval $ac_try) 2>&5
15311   ac_status=$?
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); }; }; then
15314   ac_header_compiler=yes
15315 else
15316   echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15318
15319 ac_header_compiler=no
15320 fi
15321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15323 echo "${ECHO_T}$ac_header_compiler" >&6
15324
15325 # Is the header present?
15326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15328 cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h.  */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h.  */
15334 #include <$ac_header>
15335 _ACEOF
15336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15337   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15338   ac_status=$?
15339   grep -v '^ *+' conftest.er1 >conftest.err
15340   rm -f conftest.er1
15341   cat conftest.err >&5
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); } >/dev/null; then
15344   if test -s conftest.err; then
15345     ac_cpp_err=$ac_c_preproc_warn_flag
15346     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15347   else
15348     ac_cpp_err=
15349   fi
15350 else
15351   ac_cpp_err=yes
15352 fi
15353 if test -z "$ac_cpp_err"; then
15354   ac_header_preproc=yes
15355 else
15356   echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15358
15359   ac_header_preproc=no
15360 fi
15361 rm -f conftest.err conftest.$ac_ext
15362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15363 echo "${ECHO_T}$ac_header_preproc" >&6
15364
15365 # So?  What about this header?
15366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15367   yes:no: )
15368     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15372     ac_header_preproc=yes
15373     ;;
15374   no:yes:* )
15375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15377     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15378 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15379     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15381     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15382 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15385     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15387     (
15388       cat <<\_ASBOX
15389 ## ------------------------------------------ ##
15390 ## Report this to the AC_PACKAGE_NAME lists.  ##
15391 ## ------------------------------------------ ##
15392 _ASBOX
15393     ) |
15394       sed "s/^/$as_me: WARNING:     /" >&2
15395     ;;
15396 esac
15397 echo "$as_me:$LINENO: checking for $ac_header" >&5
15398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15400   echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402   eval "$as_ac_Header=\$ac_header_preproc"
15403 fi
15404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15406
15407 fi
15408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15409   cat >>confdefs.h <<_ACEOF
15410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15411 _ACEOF
15412
15413 fi
15414
15415 done
15416
15417
15418 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15419 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15420 # think that we don't have <curses.h> if we're using GCC.
15421 case $host_os in
15422   solaris2.[789])
15423     if test "$GCC" = yes; then
15424
15425 cat >>confdefs.h <<\_ACEOF
15426 #define _MSE_INT_H 1
15427 _ACEOF
15428
15429     fi ;;
15430 esac
15431
15432
15433
15434
15435 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
15436 do
15437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15439   echo "$as_me:$LINENO: checking for $ac_header" >&5
15440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15442   echo $ECHO_N "(cached) $ECHO_C" >&6
15443 fi
15444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15446 else
15447   # Is the header compilable?
15448 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15450 cat >conftest.$ac_ext <<_ACEOF
15451 /* confdefs.h.  */
15452 _ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h.  */
15456 $ac_includes_default
15457 #include <$ac_header>
15458 _ACEOF
15459 rm -f conftest.$ac_objext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461   (eval $ac_compile) 2>conftest.er1
15462   ac_status=$?
15463   grep -v '^ *+' conftest.er1 >conftest.err
15464   rm -f conftest.er1
15465   cat conftest.err >&5
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); } &&
15468          { ac_try='test -z "$ac_c_werror_flag"
15469                          || test ! -s conftest.err'
15470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471   (eval $ac_try) 2>&5
15472   ac_status=$?
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); }; } &&
15475          { ac_try='test -s conftest.$ac_objext'
15476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477   (eval $ac_try) 2>&5
15478   ac_status=$?
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); }; }; then
15481   ac_header_compiler=yes
15482 else
15483   echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15485
15486 ac_header_compiler=no
15487 fi
15488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15490 echo "${ECHO_T}$ac_header_compiler" >&6
15491
15492 # Is the header present?
15493 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15495 cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h.  */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h.  */
15501 #include <$ac_header>
15502 _ACEOF
15503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15504   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15505   ac_status=$?
15506   grep -v '^ *+' conftest.er1 >conftest.err
15507   rm -f conftest.er1
15508   cat conftest.err >&5
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); } >/dev/null; then
15511   if test -s conftest.err; then
15512     ac_cpp_err=$ac_c_preproc_warn_flag
15513     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15514   else
15515     ac_cpp_err=
15516   fi
15517 else
15518   ac_cpp_err=yes
15519 fi
15520 if test -z "$ac_cpp_err"; then
15521   ac_header_preproc=yes
15522 else
15523   echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15525
15526   ac_header_preproc=no
15527 fi
15528 rm -f conftest.err conftest.$ac_ext
15529 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15530 echo "${ECHO_T}$ac_header_preproc" >&6
15531
15532 # So?  What about this header?
15533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15534   yes:no: )
15535     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15539     ac_header_preproc=yes
15540     ;;
15541   no:yes:* )
15542     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15544     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15545 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15546     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15548     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15549 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15552     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15554     (
15555       cat <<\_ASBOX
15556 ## ------------------------------------------ ##
15557 ## Report this to the AC_PACKAGE_NAME lists.  ##
15558 ## ------------------------------------------ ##
15559 _ASBOX
15560     ) |
15561       sed "s/^/$as_me: WARNING:     /" >&2
15562     ;;
15563 esac
15564 echo "$as_me:$LINENO: checking for $ac_header" >&5
15565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15567   echo $ECHO_N "(cached) $ECHO_C" >&6
15568 else
15569   eval "$as_ac_Header=\$ac_header_preproc"
15570 fi
15571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15573
15574 fi
15575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15576   cat >>confdefs.h <<_ACEOF
15577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15578 _ACEOF
15579
15580 fi
15581
15582 done
15583
15584
15585 for ac_header in ncurses/term.h
15586 do
15587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15589   echo "$as_me:$LINENO: checking for $ac_header" >&5
15590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15592   echo $ECHO_N "(cached) $ECHO_C" >&6
15593 fi
15594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15596 else
15597   # Is the header compilable?
15598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15600 cat >conftest.$ac_ext <<_ACEOF
15601 /* confdefs.h.  */
15602 _ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h.  */
15606 $ac_includes_default
15607 #include <$ac_header>
15608 _ACEOF
15609 rm -f conftest.$ac_objext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15611   (eval $ac_compile) 2>conftest.er1
15612   ac_status=$?
15613   grep -v '^ *+' conftest.er1 >conftest.err
15614   rm -f conftest.er1
15615   cat conftest.err >&5
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); } &&
15618          { ac_try='test -z "$ac_c_werror_flag"
15619                          || test ! -s conftest.err'
15620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621   (eval $ac_try) 2>&5
15622   ac_status=$?
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); }; } &&
15625          { ac_try='test -s conftest.$ac_objext'
15626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627   (eval $ac_try) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; }; then
15631   ac_header_compiler=yes
15632 else
15633   echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15635
15636 ac_header_compiler=no
15637 fi
15638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15640 echo "${ECHO_T}$ac_header_compiler" >&6
15641
15642 # Is the header present?
15643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15645 cat >conftest.$ac_ext <<_ACEOF
15646 /* confdefs.h.  */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h.  */
15651 #include <$ac_header>
15652 _ACEOF
15653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15654   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15655   ac_status=$?
15656   grep -v '^ *+' conftest.er1 >conftest.err
15657   rm -f conftest.er1
15658   cat conftest.err >&5
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); } >/dev/null; then
15661   if test -s conftest.err; then
15662     ac_cpp_err=$ac_c_preproc_warn_flag
15663     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15664   else
15665     ac_cpp_err=
15666   fi
15667 else
15668   ac_cpp_err=yes
15669 fi
15670 if test -z "$ac_cpp_err"; then
15671   ac_header_preproc=yes
15672 else
15673   echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15675
15676   ac_header_preproc=no
15677 fi
15678 rm -f conftest.err conftest.$ac_ext
15679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15680 echo "${ECHO_T}$ac_header_preproc" >&6
15681
15682 # So?  What about this header?
15683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15684   yes:no: )
15685     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15689     ac_header_preproc=yes
15690     ;;
15691   no:yes:* )
15692     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15694     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15695 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15696     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15698     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15699 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15702     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15704     (
15705       cat <<\_ASBOX
15706 ## ------------------------------------------ ##
15707 ## Report this to the AC_PACKAGE_NAME lists.  ##
15708 ## ------------------------------------------ ##
15709 _ASBOX
15710     ) |
15711       sed "s/^/$as_me: WARNING:     /" >&2
15712     ;;
15713 esac
15714 echo "$as_me:$LINENO: checking for $ac_header" >&5
15715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15717   echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719   eval "$as_ac_Header=\$ac_header_preproc"
15720 fi
15721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15723
15724 fi
15725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15726   cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15728 _ACEOF
15729
15730 fi
15731
15732 done
15733
15734
15735 for ac_header in term.h
15736 do
15737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15738 echo "$as_me:$LINENO: checking for $ac_header" >&5
15739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15741   echo $ECHO_N "(cached) $ECHO_C" >&6
15742 else
15743   cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h.  */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h.  */
15749 #if HAVE_CURSES_H
15750 # include <curses.h>
15751 #endif
15752
15753
15754 #include <$ac_header>
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758   (eval $ac_compile) 2>conftest.er1
15759   ac_status=$?
15760   grep -v '^ *+' conftest.er1 >conftest.err
15761   rm -f conftest.er1
15762   cat conftest.err >&5
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); } &&
15765          { ac_try='test -z "$ac_c_werror_flag"
15766                          || test ! -s conftest.err'
15767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768   (eval $ac_try) 2>&5
15769   ac_status=$?
15770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771   (exit $ac_status); }; } &&
15772          { ac_try='test -s conftest.$ac_objext'
15773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774   (eval $ac_try) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; }; then
15778   eval "$as_ac_Header=yes"
15779 else
15780   echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15782
15783 eval "$as_ac_Header=no"
15784 fi
15785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15786 fi
15787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15790   cat >>confdefs.h <<_ACEOF
15791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15792 _ACEOF
15793
15794 fi
15795
15796 done
15797
15798
15799 # Check for HP/UX 64-bit shared library support
15800
15801 for ac_header in elf_hp.h
15802 do
15803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15805   echo "$as_me:$LINENO: checking for $ac_header" >&5
15806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15808   echo $ECHO_N "(cached) $ECHO_C" >&6
15809 fi
15810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15812 else
15813   # Is the header compilable?
15814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h.  */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h.  */
15822 $ac_includes_default
15823 #include <$ac_header>
15824 _ACEOF
15825 rm -f conftest.$ac_objext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827   (eval $ac_compile) 2>conftest.er1
15828   ac_status=$?
15829   grep -v '^ *+' conftest.er1 >conftest.err
15830   rm -f conftest.er1
15831   cat conftest.err >&5
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); } &&
15834          { ac_try='test -z "$ac_c_werror_flag"
15835                          || test ! -s conftest.err'
15836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837   (eval $ac_try) 2>&5
15838   ac_status=$?
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); }; } &&
15841          { ac_try='test -s conftest.$ac_objext'
15842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843   (eval $ac_try) 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); }; }; then
15847   ac_header_compiler=yes
15848 else
15849   echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852 ac_header_compiler=no
15853 fi
15854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15856 echo "${ECHO_T}$ac_header_compiler" >&6
15857
15858 # Is the header present?
15859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15861 cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h.  */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h.  */
15867 #include <$ac_header>
15868 _ACEOF
15869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15871   ac_status=$?
15872   grep -v '^ *+' conftest.er1 >conftest.err
15873   rm -f conftest.er1
15874   cat conftest.err >&5
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); } >/dev/null; then
15877   if test -s conftest.err; then
15878     ac_cpp_err=$ac_c_preproc_warn_flag
15879     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15880   else
15881     ac_cpp_err=
15882   fi
15883 else
15884   ac_cpp_err=yes
15885 fi
15886 if test -z "$ac_cpp_err"; then
15887   ac_header_preproc=yes
15888 else
15889   echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15891
15892   ac_header_preproc=no
15893 fi
15894 rm -f conftest.err conftest.$ac_ext
15895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15896 echo "${ECHO_T}$ac_header_preproc" >&6
15897
15898 # So?  What about this header?
15899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15900   yes:no: )
15901     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15905     ac_header_preproc=yes
15906     ;;
15907   no:yes:* )
15908     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15910     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15911 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15912     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15914     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15915 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15920     (
15921       cat <<\_ASBOX
15922 ## ------------------------------------------ ##
15923 ## Report this to the AC_PACKAGE_NAME lists.  ##
15924 ## ------------------------------------------ ##
15925 _ASBOX
15926     ) |
15927       sed "s/^/$as_me: WARNING:     /" >&2
15928     ;;
15929 esac
15930 echo "$as_me:$LINENO: checking for $ac_header" >&5
15931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935   eval "$as_ac_Header=\$ac_header_preproc"
15936 fi
15937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15939
15940 fi
15941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15942   cat >>confdefs.h <<_ACEOF
15943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15944 _ACEOF
15945
15946 fi
15947
15948 done
15949
15950
15951 # FIXME: kettenis/20030102: In most cases we include these
15952 # unconditionally, so what's the point in checking these?
15953
15954
15955 for ac_header in ctype.h time.h
15956 do
15957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15959   echo "$as_me:$LINENO: checking for $ac_header" >&5
15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15962   echo $ECHO_N "(cached) $ECHO_C" >&6
15963 fi
15964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15966 else
15967   # Is the header compilable?
15968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h.  */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h.  */
15976 $ac_includes_default
15977 #include <$ac_header>
15978 _ACEOF
15979 rm -f conftest.$ac_objext
15980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15981   (eval $ac_compile) 2>conftest.er1
15982   ac_status=$?
15983   grep -v '^ *+' conftest.er1 >conftest.err
15984   rm -f conftest.er1
15985   cat conftest.err >&5
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); } &&
15988          { ac_try='test -z "$ac_c_werror_flag"
15989                          || test ! -s conftest.err'
15990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991   (eval $ac_try) 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }; } &&
15995          { ac_try='test -s conftest.$ac_objext'
15996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997   (eval $ac_try) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; }; then
16001   ac_header_compiler=yes
16002 else
16003   echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16005
16006 ac_header_compiler=no
16007 fi
16008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16010 echo "${ECHO_T}$ac_header_compiler" >&6
16011
16012 # Is the header present?
16013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16015 cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h.  */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h.  */
16021 #include <$ac_header>
16022 _ACEOF
16023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16025   ac_status=$?
16026   grep -v '^ *+' conftest.er1 >conftest.err
16027   rm -f conftest.er1
16028   cat conftest.err >&5
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); } >/dev/null; then
16031   if test -s conftest.err; then
16032     ac_cpp_err=$ac_c_preproc_warn_flag
16033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16034   else
16035     ac_cpp_err=
16036   fi
16037 else
16038   ac_cpp_err=yes
16039 fi
16040 if test -z "$ac_cpp_err"; then
16041   ac_header_preproc=yes
16042 else
16043   echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16045
16046   ac_header_preproc=no
16047 fi
16048 rm -f conftest.err conftest.$ac_ext
16049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16050 echo "${ECHO_T}$ac_header_preproc" >&6
16051
16052 # So?  What about this header?
16053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16054   yes:no: )
16055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16059     ac_header_preproc=yes
16060     ;;
16061   no:yes:* )
16062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16064     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16065 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16066     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16068     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16069 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16072     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16074     (
16075       cat <<\_ASBOX
16076 ## ------------------------------------------ ##
16077 ## Report this to the AC_PACKAGE_NAME lists.  ##
16078 ## ------------------------------------------ ##
16079 _ASBOX
16080     ) |
16081       sed "s/^/$as_me: WARNING:     /" >&2
16082     ;;
16083 esac
16084 echo "$as_me:$LINENO: checking for $ac_header" >&5
16085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16087   echo $ECHO_N "(cached) $ECHO_C" >&6
16088 else
16089   eval "$as_ac_Header=\$ac_header_preproc"
16090 fi
16091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16093
16094 fi
16095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16096   cat >>confdefs.h <<_ACEOF
16097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16098 _ACEOF
16099
16100 fi
16101
16102 done
16103
16104
16105 # ------------------------- #
16106 # Checks for declarations.  #
16107 # ------------------------- #
16108
16109 echo "$as_me:$LINENO: checking whether free is declared" >&5
16110 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16111 if test "${ac_cv_have_decl_free+set}" = set; then
16112   echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114   cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h.  */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h.  */
16120 $ac_includes_default
16121 int
16122 main ()
16123 {
16124 #ifndef free
16125   char *p = (char *) free;
16126 #endif
16127
16128   ;
16129   return 0;
16130 }
16131 _ACEOF
16132 rm -f conftest.$ac_objext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134   (eval $ac_compile) 2>conftest.er1
16135   ac_status=$?
16136   grep -v '^ *+' conftest.er1 >conftest.err
16137   rm -f conftest.er1
16138   cat conftest.err >&5
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); } &&
16141          { ac_try='test -z "$ac_c_werror_flag"
16142                          || test ! -s conftest.err'
16143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144   (eval $ac_try) 2>&5
16145   ac_status=$?
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); }; } &&
16148          { ac_try='test -s conftest.$ac_objext'
16149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150   (eval $ac_try) 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; }; then
16154   ac_cv_have_decl_free=yes
16155 else
16156   echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159 ac_cv_have_decl_free=no
16160 fi
16161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16162 fi
16163 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16164 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16165 if test $ac_cv_have_decl_free = yes; then
16166
16167 cat >>confdefs.h <<_ACEOF
16168 #define HAVE_DECL_FREE 1
16169 _ACEOF
16170
16171
16172 else
16173   cat >>confdefs.h <<_ACEOF
16174 #define HAVE_DECL_FREE 0
16175 _ACEOF
16176
16177
16178 fi
16179 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16180 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16181 if test "${ac_cv_have_decl_malloc+set}" = set; then
16182   echo $ECHO_N "(cached) $ECHO_C" >&6
16183 else
16184   cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h.  */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h.  */
16190 $ac_includes_default
16191 int
16192 main ()
16193 {
16194 #ifndef malloc
16195   char *p = (char *) malloc;
16196 #endif
16197
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204   (eval $ac_compile) 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } &&
16211          { ac_try='test -z "$ac_c_werror_flag"
16212                          || test ! -s conftest.err'
16213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214   (eval $ac_try) 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; } &&
16218          { ac_try='test -s conftest.$ac_objext'
16219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220   (eval $ac_try) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; }; then
16224   ac_cv_have_decl_malloc=yes
16225 else
16226   echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16228
16229 ac_cv_have_decl_malloc=no
16230 fi
16231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16232 fi
16233 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16234 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16235 if test $ac_cv_have_decl_malloc = yes; then
16236
16237 cat >>confdefs.h <<_ACEOF
16238 #define HAVE_DECL_MALLOC 1
16239 _ACEOF
16240
16241
16242 else
16243   cat >>confdefs.h <<_ACEOF
16244 #define HAVE_DECL_MALLOC 0
16245 _ACEOF
16246
16247
16248 fi
16249 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16250 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16251 if test "${ac_cv_have_decl_realloc+set}" = set; then
16252   echo $ECHO_N "(cached) $ECHO_C" >&6
16253 else
16254   cat >conftest.$ac_ext <<_ACEOF
16255 /* confdefs.h.  */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h.  */
16260 $ac_includes_default
16261 int
16262 main ()
16263 {
16264 #ifndef realloc
16265   char *p = (char *) realloc;
16266 #endif
16267
16268   ;
16269   return 0;
16270 }
16271 _ACEOF
16272 rm -f conftest.$ac_objext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274   (eval $ac_compile) 2>conftest.er1
16275   ac_status=$?
16276   grep -v '^ *+' conftest.er1 >conftest.err
16277   rm -f conftest.er1
16278   cat conftest.err >&5
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); } &&
16281          { ac_try='test -z "$ac_c_werror_flag"
16282                          || test ! -s conftest.err'
16283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284   (eval $ac_try) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; } &&
16288          { ac_try='test -s conftest.$ac_objext'
16289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290   (eval $ac_try) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; }; then
16294   ac_cv_have_decl_realloc=yes
16295 else
16296   echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16298
16299 ac_cv_have_decl_realloc=no
16300 fi
16301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16302 fi
16303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16304 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16305 if test $ac_cv_have_decl_realloc = yes; then
16306
16307 cat >>confdefs.h <<_ACEOF
16308 #define HAVE_DECL_REALLOC 1
16309 _ACEOF
16310
16311
16312 else
16313   cat >>confdefs.h <<_ACEOF
16314 #define HAVE_DECL_REALLOC 0
16315 _ACEOF
16316
16317
16318 fi
16319
16320
16321 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16322 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
16323 if test "${ac_cv_have_decl_strerror+set}" = set; then
16324   echo $ECHO_N "(cached) $ECHO_C" >&6
16325 else
16326   cat >conftest.$ac_ext <<_ACEOF
16327 /* confdefs.h.  */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h.  */
16332 $ac_includes_default
16333 int
16334 main ()
16335 {
16336 #ifndef strerror
16337   char *p = (char *) strerror;
16338 #endif
16339
16340   ;
16341   return 0;
16342 }
16343 _ACEOF
16344 rm -f conftest.$ac_objext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346   (eval $ac_compile) 2>conftest.er1
16347   ac_status=$?
16348   grep -v '^ *+' conftest.er1 >conftest.err
16349   rm -f conftest.er1
16350   cat conftest.err >&5
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); } &&
16353          { ac_try='test -z "$ac_c_werror_flag"
16354                          || test ! -s conftest.err'
16355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356   (eval $ac_try) 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; } &&
16360          { ac_try='test -s conftest.$ac_objext'
16361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362   (eval $ac_try) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; }; then
16366   ac_cv_have_decl_strerror=yes
16367 else
16368   echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16370
16371 ac_cv_have_decl_strerror=no
16372 fi
16373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16374 fi
16375 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16376 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
16377 if test $ac_cv_have_decl_strerror = yes; then
16378
16379 cat >>confdefs.h <<_ACEOF
16380 #define HAVE_DECL_STRERROR 1
16381 _ACEOF
16382
16383
16384 else
16385   cat >>confdefs.h <<_ACEOF
16386 #define HAVE_DECL_STRERROR 0
16387 _ACEOF
16388
16389
16390 fi
16391 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16392 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16393 if test "${ac_cv_have_decl_strstr+set}" = set; then
16394   echo $ECHO_N "(cached) $ECHO_C" >&6
16395 else
16396   cat >conftest.$ac_ext <<_ACEOF
16397 /* confdefs.h.  */
16398 _ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h.  */
16402 $ac_includes_default
16403 int
16404 main ()
16405 {
16406 #ifndef strstr
16407   char *p = (char *) strstr;
16408 #endif
16409
16410   ;
16411   return 0;
16412 }
16413 _ACEOF
16414 rm -f conftest.$ac_objext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416   (eval $ac_compile) 2>conftest.er1
16417   ac_status=$?
16418   grep -v '^ *+' conftest.er1 >conftest.err
16419   rm -f conftest.er1
16420   cat conftest.err >&5
16421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); } &&
16423          { ac_try='test -z "$ac_c_werror_flag"
16424                          || test ! -s conftest.err'
16425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426   (eval $ac_try) 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); }; } &&
16430          { ac_try='test -s conftest.$ac_objext'
16431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432   (eval $ac_try) 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); }; }; then
16436   ac_cv_have_decl_strstr=yes
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ac_cv_have_decl_strstr=no
16442 fi
16443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16444 fi
16445 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16446 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16447 if test $ac_cv_have_decl_strstr = yes; then
16448
16449 cat >>confdefs.h <<_ACEOF
16450 #define HAVE_DECL_STRSTR 1
16451 _ACEOF
16452
16453
16454 else
16455   cat >>confdefs.h <<_ACEOF
16456 #define HAVE_DECL_STRSTR 0
16457 _ACEOF
16458
16459
16460 fi
16461
16462
16463 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16464 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
16465 if test "${ac_cv_have_decl_getopt+set}" = set; then
16466   echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468   cat >conftest.$ac_ext <<_ACEOF
16469 /* confdefs.h.  */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h.  */
16474 $ac_includes_default
16475 int
16476 main ()
16477 {
16478 #ifndef getopt
16479   char *p = (char *) getopt;
16480 #endif
16481
16482   ;
16483   return 0;
16484 }
16485 _ACEOF
16486 rm -f conftest.$ac_objext
16487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488   (eval $ac_compile) 2>conftest.er1
16489   ac_status=$?
16490   grep -v '^ *+' conftest.er1 >conftest.err
16491   rm -f conftest.er1
16492   cat conftest.err >&5
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); } &&
16495          { ac_try='test -z "$ac_c_werror_flag"
16496                          || test ! -s conftest.err'
16497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498   (eval $ac_try) 2>&5
16499   ac_status=$?
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); }; } &&
16502          { ac_try='test -s conftest.$ac_objext'
16503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504   (eval $ac_try) 2>&5
16505   ac_status=$?
16506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507   (exit $ac_status); }; }; then
16508   ac_cv_have_decl_getopt=yes
16509 else
16510   echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513 ac_cv_have_decl_getopt=no
16514 fi
16515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16516 fi
16517 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16518 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
16519 if test $ac_cv_have_decl_getopt = yes; then
16520
16521 cat >>confdefs.h <<_ACEOF
16522 #define HAVE_DECL_GETOPT 1
16523 _ACEOF
16524
16525
16526 else
16527   cat >>confdefs.h <<_ACEOF
16528 #define HAVE_DECL_GETOPT 0
16529 _ACEOF
16530
16531
16532 fi
16533 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16534 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16535 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16536   echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538   cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h.  */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h.  */
16544 $ac_includes_default
16545 int
16546 main ()
16547 {
16548 #ifndef snprintf
16549   char *p = (char *) snprintf;
16550 #endif
16551
16552   ;
16553   return 0;
16554 }
16555 _ACEOF
16556 rm -f conftest.$ac_objext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16558   (eval $ac_compile) 2>conftest.er1
16559   ac_status=$?
16560   grep -v '^ *+' conftest.er1 >conftest.err
16561   rm -f conftest.er1
16562   cat conftest.err >&5
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); } &&
16565          { ac_try='test -z "$ac_c_werror_flag"
16566                          || test ! -s conftest.err'
16567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568   (eval $ac_try) 2>&5
16569   ac_status=$?
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); }; } &&
16572          { ac_try='test -s conftest.$ac_objext'
16573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574   (eval $ac_try) 2>&5
16575   ac_status=$?
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); }; }; then
16578   ac_cv_have_decl_snprintf=yes
16579 else
16580   echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583 ac_cv_have_decl_snprintf=no
16584 fi
16585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16586 fi
16587 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16588 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16589 if test $ac_cv_have_decl_snprintf = yes; then
16590
16591 cat >>confdefs.h <<_ACEOF
16592 #define HAVE_DECL_SNPRINTF 1
16593 _ACEOF
16594
16595
16596 else
16597   cat >>confdefs.h <<_ACEOF
16598 #define HAVE_DECL_SNPRINTF 0
16599 _ACEOF
16600
16601
16602 fi
16603 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16604 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16605 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16606   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608   cat >conftest.$ac_ext <<_ACEOF
16609 /* confdefs.h.  */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h.  */
16614 $ac_includes_default
16615 int
16616 main ()
16617 {
16618 #ifndef vsnprintf
16619   char *p = (char *) vsnprintf;
16620 #endif
16621
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628   (eval $ac_compile) 2>conftest.er1
16629   ac_status=$?
16630   grep -v '^ *+' conftest.er1 >conftest.err
16631   rm -f conftest.er1
16632   cat conftest.err >&5
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } &&
16635          { ac_try='test -z "$ac_c_werror_flag"
16636                          || test ! -s conftest.err'
16637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638   (eval $ac_try) 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }; } &&
16642          { ac_try='test -s conftest.$ac_objext'
16643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644   (eval $ac_try) 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; }; then
16648   ac_cv_have_decl_vsnprintf=yes
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653 ac_cv_have_decl_vsnprintf=no
16654 fi
16655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16656 fi
16657 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16658 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16659 if test $ac_cv_have_decl_vsnprintf = yes; then
16660
16661 cat >>confdefs.h <<_ACEOF
16662 #define HAVE_DECL_VSNPRINTF 1
16663 _ACEOF
16664
16665
16666 else
16667   cat >>confdefs.h <<_ACEOF
16668 #define HAVE_DECL_VSNPRINTF 0
16669 _ACEOF
16670
16671
16672 fi
16673
16674
16675
16676 # ----------------------- #
16677 # Checks for structures.  #
16678 # ----------------------- #
16679
16680 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16681 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16682 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685   cat >conftest.$ac_ext <<_ACEOF
16686 /* confdefs.h.  */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h.  */
16691 $ac_includes_default
16692 int
16693 main ()
16694 {
16695 static struct stat ac_aggr;
16696 if (ac_aggr.st_blocks)
16697 return 0;
16698   ;
16699   return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16704   (eval $ac_compile) 2>conftest.er1
16705   ac_status=$?
16706   grep -v '^ *+' conftest.er1 >conftest.err
16707   rm -f conftest.er1
16708   cat conftest.err >&5
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); } &&
16711          { ac_try='test -z "$ac_c_werror_flag"
16712                          || test ! -s conftest.err'
16713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714   (eval $ac_try) 2>&5
16715   ac_status=$?
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); }; } &&
16718          { ac_try='test -s conftest.$ac_objext'
16719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720   (eval $ac_try) 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); }; }; then
16724   ac_cv_member_struct_stat_st_blocks=yes
16725 else
16726   echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729 cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h.  */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h.  */
16735 $ac_includes_default
16736 int
16737 main ()
16738 {
16739 static struct stat ac_aggr;
16740 if (sizeof ac_aggr.st_blocks)
16741 return 0;
16742   ;
16743   return 0;
16744 }
16745 _ACEOF
16746 rm -f conftest.$ac_objext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16748   (eval $ac_compile) 2>conftest.er1
16749   ac_status=$?
16750   grep -v '^ *+' conftest.er1 >conftest.err
16751   rm -f conftest.er1
16752   cat conftest.err >&5
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); } &&
16755          { ac_try='test -z "$ac_c_werror_flag"
16756                          || test ! -s conftest.err'
16757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758   (eval $ac_try) 2>&5
16759   ac_status=$?
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); }; } &&
16762          { ac_try='test -s conftest.$ac_objext'
16763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764   (eval $ac_try) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; }; then
16768   ac_cv_member_struct_stat_st_blocks=yes
16769 else
16770   echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16772
16773 ac_cv_member_struct_stat_st_blocks=no
16774 fi
16775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16776 fi
16777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16778 fi
16779 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16780 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16781 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16782
16783 cat >>confdefs.h <<_ACEOF
16784 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16785 _ACEOF
16786
16787
16788 fi
16789
16790 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16791 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16792 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16793   echo $ECHO_N "(cached) $ECHO_C" >&6
16794 else
16795   cat >conftest.$ac_ext <<_ACEOF
16796 /* confdefs.h.  */
16797 _ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h.  */
16801 $ac_includes_default
16802 int
16803 main ()
16804 {
16805 static struct stat ac_aggr;
16806 if (ac_aggr.st_blksize)
16807 return 0;
16808   ;
16809   return 0;
16810 }
16811 _ACEOF
16812 rm -f conftest.$ac_objext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814   (eval $ac_compile) 2>conftest.er1
16815   ac_status=$?
16816   grep -v '^ *+' conftest.er1 >conftest.err
16817   rm -f conftest.er1
16818   cat conftest.err >&5
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); } &&
16821          { ac_try='test -z "$ac_c_werror_flag"
16822                          || test ! -s conftest.err'
16823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824   (eval $ac_try) 2>&5
16825   ac_status=$?
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); }; } &&
16828          { ac_try='test -s conftest.$ac_objext'
16829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830   (eval $ac_try) 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); }; }; then
16834   ac_cv_member_struct_stat_st_blksize=yes
16835 else
16836   echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839 cat >conftest.$ac_ext <<_ACEOF
16840 /* confdefs.h.  */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h.  */
16845 $ac_includes_default
16846 int
16847 main ()
16848 {
16849 static struct stat ac_aggr;
16850 if (sizeof ac_aggr.st_blksize)
16851 return 0;
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 rm -f conftest.$ac_objext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858   (eval $ac_compile) 2>conftest.er1
16859   ac_status=$?
16860   grep -v '^ *+' conftest.er1 >conftest.err
16861   rm -f conftest.er1
16862   cat conftest.err >&5
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); } &&
16865          { ac_try='test -z "$ac_c_werror_flag"
16866                          || test ! -s conftest.err'
16867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868   (eval $ac_try) 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; } &&
16872          { ac_try='test -s conftest.$ac_objext'
16873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874   (eval $ac_try) 2>&5
16875   ac_status=$?
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); }; }; then
16878   ac_cv_member_struct_stat_st_blksize=yes
16879 else
16880   echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16882
16883 ac_cv_member_struct_stat_st_blksize=no
16884 fi
16885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16886 fi
16887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16888 fi
16889 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16890 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16891 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16892
16893 cat >>confdefs.h <<_ACEOF
16894 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16895 _ACEOF
16896
16897
16898 fi
16899
16900
16901 # ------------------ #
16902 # Checks for types.  #
16903 # ------------------ #
16904
16905 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16906 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16907 if test "${ac_cv_type_signal+set}" = set; then
16908   echo $ECHO_N "(cached) $ECHO_C" >&6
16909 else
16910   cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h.  */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h.  */
16916 #include <sys/types.h>
16917 #include <signal.h>
16918 #ifdef signal
16919 # undef signal
16920 #endif
16921 #ifdef __cplusplus
16922 extern "C" void (*signal (int, void (*)(int)))(int);
16923 #else
16924 void (*signal ()) ();
16925 #endif
16926
16927 int
16928 main ()
16929 {
16930 int i;
16931   ;
16932   return 0;
16933 }
16934 _ACEOF
16935 rm -f conftest.$ac_objext
16936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16937   (eval $ac_compile) 2>conftest.er1
16938   ac_status=$?
16939   grep -v '^ *+' conftest.er1 >conftest.err
16940   rm -f conftest.er1
16941   cat conftest.err >&5
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); } &&
16944          { ac_try='test -z "$ac_c_werror_flag"
16945                          || test ! -s conftest.err'
16946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947   (eval $ac_try) 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); }; } &&
16951          { ac_try='test -s conftest.$ac_objext'
16952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953   (eval $ac_try) 2>&5
16954   ac_status=$?
16955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956   (exit $ac_status); }; }; then
16957   ac_cv_type_signal=void
16958 else
16959   echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16961
16962 ac_cv_type_signal=int
16963 fi
16964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16965 fi
16966 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16967 echo "${ECHO_T}$ac_cv_type_signal" >&6
16968
16969 cat >>confdefs.h <<_ACEOF
16970 #define RETSIGTYPE $ac_cv_type_signal
16971 _ACEOF
16972
16973
16974 echo "$as_me:$LINENO: checking for socklen_t" >&5
16975 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
16976 if test "${ac_cv_type_socklen_t+set}" = set; then
16977   echo $ECHO_N "(cached) $ECHO_C" >&6
16978 else
16979   cat >conftest.$ac_ext <<_ACEOF
16980 /* confdefs.h.  */
16981 _ACEOF
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h.  */
16985 #include <sys/types.h>
16986 #include <sys/socket.h>
16987
16988
16989 int
16990 main ()
16991 {
16992 if ((socklen_t *) 0)
16993   return 0;
16994 if (sizeof (socklen_t))
16995   return 0;
16996   ;
16997   return 0;
16998 }
16999 _ACEOF
17000 rm -f conftest.$ac_objext
17001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17002   (eval $ac_compile) 2>conftest.er1
17003   ac_status=$?
17004   grep -v '^ *+' conftest.er1 >conftest.err
17005   rm -f conftest.er1
17006   cat conftest.err >&5
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); } &&
17009          { ac_try='test -z "$ac_c_werror_flag"
17010                          || test ! -s conftest.err'
17011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012   (eval $ac_try) 2>&5
17013   ac_status=$?
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); }; } &&
17016          { ac_try='test -s conftest.$ac_objext'
17017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018   (eval $ac_try) 2>&5
17019   ac_status=$?
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); }; }; then
17022   ac_cv_type_socklen_t=yes
17023 else
17024   echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17026
17027 ac_cv_type_socklen_t=no
17028 fi
17029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17030 fi
17031 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17032 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17033 if test $ac_cv_type_socklen_t = yes; then
17034
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_SOCKLEN_T 1
17037 _ACEOF
17038
17039
17040 fi
17041
17042
17043 # ------------------------------------- #
17044 # Checks for compiler characteristics.  #
17045 # ------------------------------------- #
17046
17047 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17048 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17049 if test "${ac_cv_c_const+set}" = set; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052   cat >conftest.$ac_ext <<_ACEOF
17053 /* confdefs.h.  */
17054 _ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h.  */
17058
17059 int
17060 main ()
17061 {
17062 /* FIXME: Include the comments suggested by Paul. */
17063 #ifndef __cplusplus
17064   /* Ultrix mips cc rejects this.  */
17065   typedef int charset[2];
17066   const charset x;
17067   /* SunOS 4.1.1 cc rejects this.  */
17068   char const *const *ccp;
17069   char **p;
17070   /* NEC SVR4.0.2 mips cc rejects this.  */
17071   struct point {int x, y;};
17072   static struct point const zero = {0,0};
17073   /* AIX XL C 1.02.0.0 rejects this.
17074      It does not let you subtract one const X* pointer from another in
17075      an arm of an if-expression whose if-part is not a constant
17076      expression */
17077   const char *g = "string";
17078   ccp = &g + (g ? g-g : 0);
17079   /* HPUX 7.0 cc rejects these. */
17080   ++ccp;
17081   p = (char**) ccp;
17082   ccp = (char const *const *) p;
17083   { /* SCO 3.2v4 cc rejects this.  */
17084     char *t;
17085     char const *s = 0 ? (char *) 0 : (char const *) 0;
17086
17087     *t++ = 0;
17088   }
17089   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17090     int x[] = {25, 17};
17091     const int *foo = &x[0];
17092     ++foo;
17093   }
17094   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17095     typedef const int *iptr;
17096     iptr p = 0;
17097     ++p;
17098   }
17099   { /* AIX XL C 1.02.0.0 rejects this saying
17100        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17101     struct s { int j; const int *ap[3]; };
17102     struct s *b; b->j = 5;
17103   }
17104   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17105     const int foo = 10;
17106   }
17107 #endif
17108
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115   (eval $ac_compile) 2>conftest.er1
17116   ac_status=$?
17117   grep -v '^ *+' conftest.er1 >conftest.err
17118   rm -f conftest.er1
17119   cat conftest.err >&5
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); } &&
17122          { ac_try='test -z "$ac_c_werror_flag"
17123                          || test ! -s conftest.err'
17124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125   (eval $ac_try) 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); }; } &&
17129          { ac_try='test -s conftest.$ac_objext'
17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131   (eval $ac_try) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; }; then
17135   ac_cv_c_const=yes
17136 else
17137   echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17139
17140 ac_cv_c_const=no
17141 fi
17142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17143 fi
17144 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17145 echo "${ECHO_T}$ac_cv_c_const" >&6
17146 if test $ac_cv_c_const = no; then
17147
17148 cat >>confdefs.h <<\_ACEOF
17149 #define const
17150 _ACEOF
17151
17152 fi
17153
17154 echo "$as_me:$LINENO: checking for inline" >&5
17155 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17156 if test "${ac_cv_c_inline+set}" = set; then
17157   echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159   ac_cv_c_inline=no
17160 for ac_kw in inline __inline__ __inline; do
17161   cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h.  */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h.  */
17167 #ifndef __cplusplus
17168 typedef int foo_t;
17169 static $ac_kw foo_t static_foo () {return 0; }
17170 $ac_kw foo_t foo () {return 0; }
17171 #endif
17172
17173 _ACEOF
17174 rm -f conftest.$ac_objext
17175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17176   (eval $ac_compile) 2>conftest.er1
17177   ac_status=$?
17178   grep -v '^ *+' conftest.er1 >conftest.err
17179   rm -f conftest.er1
17180   cat conftest.err >&5
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); } &&
17183          { ac_try='test -z "$ac_c_werror_flag"
17184                          || test ! -s conftest.err'
17185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186   (eval $ac_try) 2>&5
17187   ac_status=$?
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); }; } &&
17190          { ac_try='test -s conftest.$ac_objext'
17191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192   (eval $ac_try) 2>&5
17193   ac_status=$?
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); }; }; then
17196   ac_cv_c_inline=$ac_kw; break
17197 else
17198   echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201 fi
17202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17203 done
17204
17205 fi
17206 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17207 echo "${ECHO_T}$ac_cv_c_inline" >&6
17208
17209
17210 case $ac_cv_c_inline in
17211   inline | yes) ;;
17212   *)
17213     case $ac_cv_c_inline in
17214       no) ac_val=;;
17215       *) ac_val=$ac_cv_c_inline;;
17216     esac
17217     cat >>confdefs.h <<_ACEOF
17218 #ifndef __cplusplus
17219 #define inline $ac_val
17220 #endif
17221 _ACEOF
17222     ;;
17223 esac
17224
17225 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17226 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17227 if test "${ac_cv_c_bigendian+set}" = set; then
17228   echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230   # See if sys/param.h defines the BYTE_ORDER macro.
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h.  */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h.  */
17237 #include <sys/types.h>
17238 #include <sys/param.h>
17239
17240 int
17241 main ()
17242 {
17243 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17244  bogus endian macros
17245 #endif
17246
17247   ;
17248   return 0;
17249 }
17250 _ACEOF
17251 rm -f conftest.$ac_objext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17253   (eval $ac_compile) 2>conftest.er1
17254   ac_status=$?
17255   grep -v '^ *+' conftest.er1 >conftest.err
17256   rm -f conftest.er1
17257   cat conftest.err >&5
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); } &&
17260          { ac_try='test -z "$ac_c_werror_flag"
17261                          || test ! -s conftest.err'
17262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263   (eval $ac_try) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; } &&
17267          { ac_try='test -s conftest.$ac_objext'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; }; then
17273   # It does; now see whether it defined to BIG_ENDIAN or not.
17274 cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h.  */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h.  */
17280 #include <sys/types.h>
17281 #include <sys/param.h>
17282
17283 int
17284 main ()
17285 {
17286 #if BYTE_ORDER != BIG_ENDIAN
17287  not big endian
17288 #endif
17289
17290   ;
17291   return 0;
17292 }
17293 _ACEOF
17294 rm -f conftest.$ac_objext
17295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296   (eval $ac_compile) 2>conftest.er1
17297   ac_status=$?
17298   grep -v '^ *+' conftest.er1 >conftest.err
17299   rm -f conftest.er1
17300   cat conftest.err >&5
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); } &&
17303          { ac_try='test -z "$ac_c_werror_flag"
17304                          || test ! -s conftest.err'
17305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306   (eval $ac_try) 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; } &&
17310          { ac_try='test -s conftest.$ac_objext'
17311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312   (eval $ac_try) 2>&5
17313   ac_status=$?
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); }; }; then
17316   ac_cv_c_bigendian=yes
17317 else
17318   echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17320
17321 ac_cv_c_bigendian=no
17322 fi
17323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17324 else
17325   echo "$as_me: failed program was:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17327
17328 # It does not; compile a test program.
17329 if test "$cross_compiling" = yes; then
17330   # try to guess the endianness by grepping values into an object file
17331   ac_cv_c_bigendian=unknown
17332   cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h.  */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h.  */
17338 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17339 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17340 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17341 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17342 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17343 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17344 int
17345 main ()
17346 {
17347  _ascii (); _ebcdic ();
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext
17353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354   (eval $ac_compile) 2>conftest.er1
17355   ac_status=$?
17356   grep -v '^ *+' conftest.er1 >conftest.err
17357   rm -f conftest.er1
17358   cat conftest.err >&5
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } &&
17361          { ac_try='test -z "$ac_c_werror_flag"
17362                          || test ! -s conftest.err'
17363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364   (eval $ac_try) 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; } &&
17368          { ac_try='test -s conftest.$ac_objext'
17369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370   (eval $ac_try) 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; }; then
17374   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17375   ac_cv_c_bigendian=yes
17376 fi
17377 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17378   if test "$ac_cv_c_bigendian" = unknown; then
17379     ac_cv_c_bigendian=no
17380   else
17381     # finding both strings is unlikely to happen, but who knows?
17382     ac_cv_c_bigendian=unknown
17383   fi
17384 fi
17385 else
17386   echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17388
17389 fi
17390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17391 else
17392   cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h.  */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h.  */
17398 int
17399 main ()
17400 {
17401   /* Are we little or big endian?  From Harbison&Steele.  */
17402   union
17403   {
17404     long l;
17405     char c[sizeof (long)];
17406   } u;
17407   u.l = 1;
17408   exit (u.c[sizeof (long) - 1] == 1);
17409 }
17410 _ACEOF
17411 rm -f conftest$ac_exeext
17412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17413   (eval $ac_link) 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418   (eval $ac_try) 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }; }; then
17422   ac_cv_c_bigendian=no
17423 else
17424   echo "$as_me: program exited with status $ac_status" >&5
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428 ( exit $ac_status )
17429 ac_cv_c_bigendian=yes
17430 fi
17431 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17432 fi
17433 fi
17434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17435 fi
17436 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17437 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17438 case $ac_cv_c_bigendian in
17439   yes)
17440
17441 cat >>confdefs.h <<\_ACEOF
17442 #define WORDS_BIGENDIAN 1
17443 _ACEOF
17444  ;;
17445   no)
17446      ;;
17447   *)
17448     { { echo "$as_me:$LINENO: error: unknown endianness
17449 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17450 echo "$as_me: error: unknown endianness
17451 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17452    { (exit 1); exit 1; }; } ;;
17453 esac
17454
17455
17456 # ------------------------------ #
17457 # Checks for library functions.  #
17458 # ------------------------------ #
17459
17460 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17461 # for constant arguments.  Useless!
17462 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17463 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17464 if test "${ac_cv_working_alloca_h+set}" = set; then
17465   echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467   cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h.  */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h.  */
17473 #include <alloca.h>
17474 int
17475 main ()
17476 {
17477 char *p = (char *) alloca (2 * sizeof (int));
17478   ;
17479   return 0;
17480 }
17481 _ACEOF
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484   (eval $ac_link) 2>conftest.er1
17485   ac_status=$?
17486   grep -v '^ *+' conftest.er1 >conftest.err
17487   rm -f conftest.er1
17488   cat conftest.err >&5
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); } &&
17491          { ac_try='test -z "$ac_c_werror_flag"
17492                          || test ! -s conftest.err'
17493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494   (eval $ac_try) 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; } &&
17498          { ac_try='test -s conftest$ac_exeext'
17499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500   (eval $ac_try) 2>&5
17501   ac_status=$?
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); }; }; then
17504   ac_cv_working_alloca_h=yes
17505 else
17506   echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17508
17509 ac_cv_working_alloca_h=no
17510 fi
17511 rm -f conftest.err conftest.$ac_objext \
17512       conftest$ac_exeext conftest.$ac_ext
17513 fi
17514 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17515 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17516 if test $ac_cv_working_alloca_h = yes; then
17517
17518 cat >>confdefs.h <<\_ACEOF
17519 #define HAVE_ALLOCA_H 1
17520 _ACEOF
17521
17522 fi
17523
17524 echo "$as_me:$LINENO: checking for alloca" >&5
17525 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17526 if test "${ac_cv_func_alloca_works+set}" = set; then
17527   echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529   cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h.  */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h.  */
17535 #ifdef __GNUC__
17536 # define alloca __builtin_alloca
17537 #else
17538 # ifdef _MSC_VER
17539 #  include <malloc.h>
17540 #  define alloca _alloca
17541 # else
17542 #  if HAVE_ALLOCA_H
17543 #   include <alloca.h>
17544 #  else
17545 #   ifdef _AIX
17546  #pragma alloca
17547 #   else
17548 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17549 char *alloca ();
17550 #    endif
17551 #   endif
17552 #  endif
17553 # endif
17554 #endif
17555
17556 int
17557 main ()
17558 {
17559 char *p = (char *) alloca (1);
17560   ;
17561   return 0;
17562 }
17563 _ACEOF
17564 rm -f conftest.$ac_objext conftest$ac_exeext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566   (eval $ac_link) 2>conftest.er1
17567   ac_status=$?
17568   grep -v '^ *+' conftest.er1 >conftest.err
17569   rm -f conftest.er1
17570   cat conftest.err >&5
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } &&
17573          { ac_try='test -z "$ac_c_werror_flag"
17574                          || test ! -s conftest.err'
17575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576   (eval $ac_try) 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; } &&
17580          { ac_try='test -s conftest$ac_exeext'
17581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582   (eval $ac_try) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; }; then
17586   ac_cv_func_alloca_works=yes
17587 else
17588   echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17590
17591 ac_cv_func_alloca_works=no
17592 fi
17593 rm -f conftest.err conftest.$ac_objext \
17594       conftest$ac_exeext conftest.$ac_ext
17595 fi
17596 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17597 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17598
17599 if test $ac_cv_func_alloca_works = yes; then
17600
17601 cat >>confdefs.h <<\_ACEOF
17602 #define HAVE_ALLOCA 1
17603 _ACEOF
17604
17605 else
17606   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17607 # that cause trouble.  Some versions do not even contain alloca or
17608 # contain a buggy version.  If you still want to use their alloca,
17609 # use ar to extract alloca.o from them instead of compiling alloca.c.
17610
17611 ALLOCA=alloca.$ac_objext
17612
17613 cat >>confdefs.h <<\_ACEOF
17614 #define C_ALLOCA 1
17615 _ACEOF
17616
17617
17618 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17619 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17620 if test "${ac_cv_os_cray+set}" = set; then
17621   echo $ECHO_N "(cached) $ECHO_C" >&6
17622 else
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 #if defined(CRAY) && ! defined(CRAY2)
17630 webecray
17631 #else
17632 wenotbecray
17633 #endif
17634
17635 _ACEOF
17636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17637   $EGREP "webecray" >/dev/null 2>&1; then
17638   ac_cv_os_cray=yes
17639 else
17640   ac_cv_os_cray=no
17641 fi
17642 rm -f conftest*
17643
17644 fi
17645 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17646 echo "${ECHO_T}$ac_cv_os_cray" >&6
17647 if test $ac_cv_os_cray = yes; then
17648   for ac_func in _getb67 GETB67 getb67; do
17649     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17650 echo "$as_me:$LINENO: checking for $ac_func" >&5
17651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17652 if eval "test \"\${$as_ac_var+set}\" = set"; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655   cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h.  */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h.  */
17661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17663 #define $ac_func innocuous_$ac_func
17664
17665 /* System header to define __stub macros and hopefully few prototypes,
17666     which can conflict with char $ac_func (); below.
17667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17668     <limits.h> exists even on freestanding compilers.  */
17669
17670 #ifdef __STDC__
17671 # include <limits.h>
17672 #else
17673 # include <assert.h>
17674 #endif
17675
17676 #undef $ac_func
17677
17678 /* Override any gcc2 internal prototype to avoid an error.  */
17679 #ifdef __cplusplus
17680 extern "C"
17681 {
17682 #endif
17683 /* We use char because int might match the return type of a gcc2
17684    builtin and then its argument prototype would still apply.  */
17685 char $ac_func ();
17686 /* The GNU C library defines this for functions which it implements
17687     to always fail with ENOSYS.  Some functions are actually named
17688     something starting with __ and the normal name is an alias.  */
17689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17690 choke me
17691 #else
17692 char (*f) () = $ac_func;
17693 #endif
17694 #ifdef __cplusplus
17695 }
17696 #endif
17697
17698 int
17699 main ()
17700 {
17701 return f != $ac_func;
17702   ;
17703   return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708   (eval $ac_link) 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_c_werror_flag"
17716                          || test ! -s conftest.err'
17717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718   (eval $ac_try) 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; } &&
17722          { ac_try='test -s conftest$ac_exeext'
17723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724   (eval $ac_try) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); }; }; then
17728   eval "$as_ac_var=yes"
17729 else
17730   echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 eval "$as_ac_var=no"
17734 fi
17735 rm -f conftest.err conftest.$ac_objext \
17736       conftest$ac_exeext conftest.$ac_ext
17737 fi
17738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17740 if test `eval echo '${'$as_ac_var'}'` = yes; then
17741
17742 cat >>confdefs.h <<_ACEOF
17743 #define CRAY_STACKSEG_END $ac_func
17744 _ACEOF
17745
17746     break
17747 fi
17748
17749   done
17750 fi
17751
17752 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17753 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17754 if test "${ac_cv_c_stack_direction+set}" = set; then
17755   echo $ECHO_N "(cached) $ECHO_C" >&6
17756 else
17757   if test "$cross_compiling" = yes; then
17758   ac_cv_c_stack_direction=0
17759 else
17760   cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766 int
17767 find_stack_direction ()
17768 {
17769   static char *addr = 0;
17770   auto char dummy;
17771   if (addr == 0)
17772     {
17773       addr = &dummy;
17774       return find_stack_direction ();
17775     }
17776   else
17777     return (&dummy > addr) ? 1 : -1;
17778 }
17779
17780 int
17781 main ()
17782 {
17783   exit (find_stack_direction () < 0);
17784 }
17785 _ACEOF
17786 rm -f conftest$ac_exeext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788   (eval $ac_link) 2>&5
17789   ac_status=$?
17790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793   (eval $ac_try) 2>&5
17794   ac_status=$?
17795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); }; }; then
17797   ac_cv_c_stack_direction=1
17798 else
17799   echo "$as_me: program exited with status $ac_status" >&5
17800 echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17802
17803 ( exit $ac_status )
17804 ac_cv_c_stack_direction=-1
17805 fi
17806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17807 fi
17808 fi
17809 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17810 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17811
17812 cat >>confdefs.h <<_ACEOF
17813 #define STACK_DIRECTION $ac_cv_c_stack_direction
17814 _ACEOF
17815
17816
17817 fi
17818
17819
17820
17821 for ac_header in stdlib.h unistd.h
17822 do
17823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17825   echo "$as_me:$LINENO: checking for $ac_header" >&5
17826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17828   echo $ECHO_N "(cached) $ECHO_C" >&6
17829 fi
17830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17832 else
17833   # Is the header compilable?
17834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17836 cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h.  */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h.  */
17842 $ac_includes_default
17843 #include <$ac_header>
17844 _ACEOF
17845 rm -f conftest.$ac_objext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847   (eval $ac_compile) 2>conftest.er1
17848   ac_status=$?
17849   grep -v '^ *+' conftest.er1 >conftest.err
17850   rm -f conftest.er1
17851   cat conftest.err >&5
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); } &&
17854          { ac_try='test -z "$ac_c_werror_flag"
17855                          || test ! -s conftest.err'
17856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857   (eval $ac_try) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); }; } &&
17861          { ac_try='test -s conftest.$ac_objext'
17862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863   (eval $ac_try) 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); }; }; then
17867   ac_header_compiler=yes
17868 else
17869   echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872 ac_header_compiler=no
17873 fi
17874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17876 echo "${ECHO_T}$ac_header_compiler" >&6
17877
17878 # Is the header present?
17879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17881 cat >conftest.$ac_ext <<_ACEOF
17882 /* confdefs.h.  */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h.  */
17887 #include <$ac_header>
17888 _ACEOF
17889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17891   ac_status=$?
17892   grep -v '^ *+' conftest.er1 >conftest.err
17893   rm -f conftest.er1
17894   cat conftest.err >&5
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); } >/dev/null; then
17897   if test -s conftest.err; then
17898     ac_cpp_err=$ac_c_preproc_warn_flag
17899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17900   else
17901     ac_cpp_err=
17902   fi
17903 else
17904   ac_cpp_err=yes
17905 fi
17906 if test -z "$ac_cpp_err"; then
17907   ac_header_preproc=yes
17908 else
17909   echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17911
17912   ac_header_preproc=no
17913 fi
17914 rm -f conftest.err conftest.$ac_ext
17915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17916 echo "${ECHO_T}$ac_header_preproc" >&6
17917
17918 # So?  What about this header?
17919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17920   yes:no: )
17921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17925     ac_header_preproc=yes
17926     ;;
17927   no:yes:* )
17928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17940     (
17941       cat <<\_ASBOX
17942 ## ------------------------------------------ ##
17943 ## Report this to the AC_PACKAGE_NAME lists.  ##
17944 ## ------------------------------------------ ##
17945 _ASBOX
17946     ) |
17947       sed "s/^/$as_me: WARNING:     /" >&2
17948     ;;
17949 esac
17950 echo "$as_me:$LINENO: checking for $ac_header" >&5
17951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17953   echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955   eval "$as_ac_Header=\$ac_header_preproc"
17956 fi
17957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17959
17960 fi
17961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17962   cat >>confdefs.h <<_ACEOF
17963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17964 _ACEOF
17965
17966 fi
17967
17968 done
17969
17970
17971 for ac_func in getpagesize
17972 do
17973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17974 echo "$as_me:$LINENO: checking for $ac_func" >&5
17975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17976 if eval "test \"\${$as_ac_var+set}\" = set"; then
17977   echo $ECHO_N "(cached) $ECHO_C" >&6
17978 else
17979   cat >conftest.$ac_ext <<_ACEOF
17980 /* confdefs.h.  */
17981 _ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h.  */
17985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17987 #define $ac_func innocuous_$ac_func
17988
17989 /* System header to define __stub macros and hopefully few prototypes,
17990     which can conflict with char $ac_func (); below.
17991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992     <limits.h> exists even on freestanding compilers.  */
17993
17994 #ifdef __STDC__
17995 # include <limits.h>
17996 #else
17997 # include <assert.h>
17998 #endif
17999
18000 #undef $ac_func
18001
18002 /* Override any gcc2 internal prototype to avoid an error.  */
18003 #ifdef __cplusplus
18004 extern "C"
18005 {
18006 #endif
18007 /* We use char because int might match the return type of a gcc2
18008    builtin and then its argument prototype would still apply.  */
18009 char $ac_func ();
18010 /* The GNU C library defines this for functions which it implements
18011     to always fail with ENOSYS.  Some functions are actually named
18012     something starting with __ and the normal name is an alias.  */
18013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18014 choke me
18015 #else
18016 char (*f) () = $ac_func;
18017 #endif
18018 #ifdef __cplusplus
18019 }
18020 #endif
18021
18022 int
18023 main ()
18024 {
18025 return f != $ac_func;
18026   ;
18027   return 0;
18028 }
18029 _ACEOF
18030 rm -f conftest.$ac_objext conftest$ac_exeext
18031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18032   (eval $ac_link) 2>conftest.er1
18033   ac_status=$?
18034   grep -v '^ *+' conftest.er1 >conftest.err
18035   rm -f conftest.er1
18036   cat conftest.err >&5
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); } &&
18039          { ac_try='test -z "$ac_c_werror_flag"
18040                          || test ! -s conftest.err'
18041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042   (eval $ac_try) 2>&5
18043   ac_status=$?
18044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); }; } &&
18046          { ac_try='test -s conftest$ac_exeext'
18047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048   (eval $ac_try) 2>&5
18049   ac_status=$?
18050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051   (exit $ac_status); }; }; then
18052   eval "$as_ac_var=yes"
18053 else
18054   echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18056
18057 eval "$as_ac_var=no"
18058 fi
18059 rm -f conftest.err conftest.$ac_objext \
18060       conftest$ac_exeext conftest.$ac_ext
18061 fi
18062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18064 if test `eval echo '${'$as_ac_var'}'` = yes; then
18065   cat >>confdefs.h <<_ACEOF
18066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18067 _ACEOF
18068
18069 fi
18070 done
18071
18072 echo "$as_me:$LINENO: checking for working mmap" >&5
18073 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18074 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18075   echo $ECHO_N "(cached) $ECHO_C" >&6
18076 else
18077   if test "$cross_compiling" = yes; then
18078   ac_cv_func_mmap_fixed_mapped=no
18079 else
18080   cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h.  */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h.  */
18086 $ac_includes_default
18087 /* malloc might have been renamed as rpl_malloc. */
18088 #undef malloc
18089
18090 /* Thanks to Mike Haertel and Jim Avera for this test.
18091    Here is a matrix of mmap possibilities:
18092         mmap private not fixed
18093         mmap private fixed at somewhere currently unmapped
18094         mmap private fixed at somewhere already mapped
18095         mmap shared not fixed
18096         mmap shared fixed at somewhere currently unmapped
18097         mmap shared fixed at somewhere already mapped
18098    For private mappings, we should verify that changes cannot be read()
18099    back from the file, nor mmap's back from the file at a different
18100    address.  (There have been systems where private was not correctly
18101    implemented like the infamous i386 svr4.0, and systems where the
18102    VM page cache was not coherent with the file system buffer cache
18103    like early versions of FreeBSD and possibly contemporary NetBSD.)
18104    For shared mappings, we should conversely verify that changes get
18105    propagated back to all the places they're supposed to be.
18106
18107    Grep wants private fixed already mapped.
18108    The main things grep needs to know about mmap are:
18109    * does it exist and is it safe to write into the mmap'd area
18110    * how to use it (BSD variants)  */
18111
18112 #include <fcntl.h>
18113 #include <sys/mman.h>
18114
18115 #if !STDC_HEADERS && !HAVE_STDLIB_H
18116 char *malloc ();
18117 #endif
18118
18119 /* This mess was copied from the GNU getpagesize.h.  */
18120 #if !HAVE_GETPAGESIZE
18121 /* Assume that all systems that can run configure have sys/param.h.  */
18122 # if !HAVE_SYS_PARAM_H
18123 #  define HAVE_SYS_PARAM_H 1
18124 # endif
18125
18126 # ifdef _SC_PAGESIZE
18127 #  define getpagesize() sysconf(_SC_PAGESIZE)
18128 # else /* no _SC_PAGESIZE */
18129 #  if HAVE_SYS_PARAM_H
18130 #   include <sys/param.h>
18131 #   ifdef EXEC_PAGESIZE
18132 #    define getpagesize() EXEC_PAGESIZE
18133 #   else /* no EXEC_PAGESIZE */
18134 #    ifdef NBPG
18135 #     define getpagesize() NBPG * CLSIZE
18136 #     ifndef CLSIZE
18137 #      define CLSIZE 1
18138 #     endif /* no CLSIZE */
18139 #    else /* no NBPG */
18140 #     ifdef NBPC
18141 #      define getpagesize() NBPC
18142 #     else /* no NBPC */
18143 #      ifdef PAGESIZE
18144 #       define getpagesize() PAGESIZE
18145 #      endif /* PAGESIZE */
18146 #     endif /* no NBPC */
18147 #    endif /* no NBPG */
18148 #   endif /* no EXEC_PAGESIZE */
18149 #  else /* no HAVE_SYS_PARAM_H */
18150 #   define getpagesize() 8192   /* punt totally */
18151 #  endif /* no HAVE_SYS_PARAM_H */
18152 # endif /* no _SC_PAGESIZE */
18153
18154 #endif /* no HAVE_GETPAGESIZE */
18155
18156 int
18157 main ()
18158 {
18159   char *data, *data2, *data3;
18160   int i, pagesize;
18161   int fd;
18162
18163   pagesize = getpagesize ();
18164
18165   /* First, make a file with some known garbage in it. */
18166   data = (char *) malloc (pagesize);
18167   if (!data)
18168     exit (1);
18169   for (i = 0; i < pagesize; ++i)
18170     *(data + i) = rand ();
18171   umask (0);
18172   fd = creat ("conftest.mmap", 0600);
18173   if (fd < 0)
18174     exit (1);
18175   if (write (fd, data, pagesize) != pagesize)
18176     exit (1);
18177   close (fd);
18178
18179   /* Next, try to mmap the file at a fixed address which already has
18180      something else allocated at it.  If we can, also make sure that
18181      we see the same garbage.  */
18182   fd = open ("conftest.mmap", O_RDWR);
18183   if (fd < 0)
18184     exit (1);
18185   data2 = (char *) malloc (2 * pagesize);
18186   if (!data2)
18187     exit (1);
18188   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
18189   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18190                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18191     exit (1);
18192   for (i = 0; i < pagesize; ++i)
18193     if (*(data + i) != *(data2 + i))
18194       exit (1);
18195
18196   /* Finally, make sure that changes to the mapped area do not
18197      percolate back to the file as seen by read().  (This is a bug on
18198      some variants of i386 svr4.0.)  */
18199   for (i = 0; i < pagesize; ++i)
18200     *(data2 + i) = *(data2 + i) + 1;
18201   data3 = (char *) malloc (pagesize);
18202   if (!data3)
18203     exit (1);
18204   if (read (fd, data3, pagesize) != pagesize)
18205     exit (1);
18206   for (i = 0; i < pagesize; ++i)
18207     if (*(data + i) != *(data3 + i))
18208       exit (1);
18209   close (fd);
18210   exit (0);
18211 }
18212 _ACEOF
18213 rm -f conftest$ac_exeext
18214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18215   (eval $ac_link) 2>&5
18216   ac_status=$?
18217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220   (eval $ac_try) 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; }; then
18224   ac_cv_func_mmap_fixed_mapped=yes
18225 else
18226   echo "$as_me: program exited with status $ac_status" >&5
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18229
18230 ( exit $ac_status )
18231 ac_cv_func_mmap_fixed_mapped=no
18232 fi
18233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18234 fi
18235 fi
18236 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18237 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
18238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18239
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE_MMAP 1
18242 _ACEOF
18243
18244 fi
18245 rm -f conftest.mmap
18246
18247 echo "$as_me:$LINENO: checking for pid_t" >&5
18248 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18249 if test "${ac_cv_type_pid_t+set}" = set; then
18250   echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18252   cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h.  */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h.  */
18258 $ac_includes_default
18259 int
18260 main ()
18261 {
18262 if ((pid_t *) 0)
18263   return 0;
18264 if (sizeof (pid_t))
18265   return 0;
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext
18271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18272   (eval $ac_compile) 2>conftest.er1
18273   ac_status=$?
18274   grep -v '^ *+' conftest.er1 >conftest.err
18275   rm -f conftest.er1
18276   cat conftest.err >&5
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); } &&
18279          { ac_try='test -z "$ac_c_werror_flag"
18280                          || test ! -s conftest.err'
18281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282   (eval $ac_try) 2>&5
18283   ac_status=$?
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); }; } &&
18286          { ac_try='test -s conftest.$ac_objext'
18287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288   (eval $ac_try) 2>&5
18289   ac_status=$?
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); }; }; then
18292   ac_cv_type_pid_t=yes
18293 else
18294   echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18296
18297 ac_cv_type_pid_t=no
18298 fi
18299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18300 fi
18301 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18302 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18303 if test $ac_cv_type_pid_t = yes; then
18304   :
18305 else
18306
18307 cat >>confdefs.h <<_ACEOF
18308 #define pid_t int
18309 _ACEOF
18310
18311 fi
18312
18313
18314
18315 for ac_header in unistd.h vfork.h
18316 do
18317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18319   echo "$as_me:$LINENO: checking for $ac_header" >&5
18320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18322   echo $ECHO_N "(cached) $ECHO_C" >&6
18323 fi
18324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18326 else
18327   # Is the header compilable?
18328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18330 cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336 $ac_includes_default
18337 #include <$ac_header>
18338 _ACEOF
18339 rm -f conftest.$ac_objext
18340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18341   (eval $ac_compile) 2>conftest.er1
18342   ac_status=$?
18343   grep -v '^ *+' conftest.er1 >conftest.err
18344   rm -f conftest.er1
18345   cat conftest.err >&5
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); } &&
18348          { ac_try='test -z "$ac_c_werror_flag"
18349                          || test ! -s conftest.err'
18350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351   (eval $ac_try) 2>&5
18352   ac_status=$?
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); }; } &&
18355          { ac_try='test -s conftest.$ac_objext'
18356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357   (eval $ac_try) 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); }; }; then
18361   ac_header_compiler=yes
18362 else
18363   echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18365
18366 ac_header_compiler=no
18367 fi
18368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18370 echo "${ECHO_T}$ac_header_compiler" >&6
18371
18372 # Is the header present?
18373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18375 cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h.  */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h.  */
18381 #include <$ac_header>
18382 _ACEOF
18383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18385   ac_status=$?
18386   grep -v '^ *+' conftest.er1 >conftest.err
18387   rm -f conftest.er1
18388   cat conftest.err >&5
18389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390   (exit $ac_status); } >/dev/null; then
18391   if test -s conftest.err; then
18392     ac_cpp_err=$ac_c_preproc_warn_flag
18393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18394   else
18395     ac_cpp_err=
18396   fi
18397 else
18398   ac_cpp_err=yes
18399 fi
18400 if test -z "$ac_cpp_err"; then
18401   ac_header_preproc=yes
18402 else
18403   echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18405
18406   ac_header_preproc=no
18407 fi
18408 rm -f conftest.err conftest.$ac_ext
18409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18410 echo "${ECHO_T}$ac_header_preproc" >&6
18411
18412 # So?  What about this header?
18413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18414   yes:no: )
18415     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18419     ac_header_preproc=yes
18420     ;;
18421   no:yes:* )
18422     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18424     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18425 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18426     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18428     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18429 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18432     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18434     (
18435       cat <<\_ASBOX
18436 ## ------------------------------------------ ##
18437 ## Report this to the AC_PACKAGE_NAME lists.  ##
18438 ## ------------------------------------------ ##
18439 _ASBOX
18440     ) |
18441       sed "s/^/$as_me: WARNING:     /" >&2
18442     ;;
18443 esac
18444 echo "$as_me:$LINENO: checking for $ac_header" >&5
18445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18447   echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449   eval "$as_ac_Header=\$ac_header_preproc"
18450 fi
18451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18453
18454 fi
18455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18456   cat >>confdefs.h <<_ACEOF
18457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18458 _ACEOF
18459
18460 fi
18461
18462 done
18463
18464
18465
18466 for ac_func in fork vfork
18467 do
18468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18469 echo "$as_me:$LINENO: checking for $ac_func" >&5
18470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18471 if eval "test \"\${$as_ac_var+set}\" = set"; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474   cat >conftest.$ac_ext <<_ACEOF
18475 /* confdefs.h.  */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h.  */
18480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18482 #define $ac_func innocuous_$ac_func
18483
18484 /* System header to define __stub macros and hopefully few prototypes,
18485     which can conflict with char $ac_func (); below.
18486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18487     <limits.h> exists even on freestanding compilers.  */
18488
18489 #ifdef __STDC__
18490 # include <limits.h>
18491 #else
18492 # include <assert.h>
18493 #endif
18494
18495 #undef $ac_func
18496
18497 /* Override any gcc2 internal prototype to avoid an error.  */
18498 #ifdef __cplusplus
18499 extern "C"
18500 {
18501 #endif
18502 /* We use char because int might match the return type of a gcc2
18503    builtin and then its argument prototype would still apply.  */
18504 char $ac_func ();
18505 /* The GNU C library defines this for functions which it implements
18506     to always fail with ENOSYS.  Some functions are actually named
18507     something starting with __ and the normal name is an alias.  */
18508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18509 choke me
18510 #else
18511 char (*f) () = $ac_func;
18512 #endif
18513 #ifdef __cplusplus
18514 }
18515 #endif
18516
18517 int
18518 main ()
18519 {
18520 return f != $ac_func;
18521   ;
18522   return 0;
18523 }
18524 _ACEOF
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18527   (eval $ac_link) 2>conftest.er1
18528   ac_status=$?
18529   grep -v '^ *+' conftest.er1 >conftest.err
18530   rm -f conftest.er1
18531   cat conftest.err >&5
18532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533   (exit $ac_status); } &&
18534          { ac_try='test -z "$ac_c_werror_flag"
18535                          || test ! -s conftest.err'
18536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537   (eval $ac_try) 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; } &&
18541          { ac_try='test -s conftest$ac_exeext'
18542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543   (eval $ac_try) 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; }; then
18547   eval "$as_ac_var=yes"
18548 else
18549   echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18551
18552 eval "$as_ac_var=no"
18553 fi
18554 rm -f conftest.err conftest.$ac_objext \
18555       conftest$ac_exeext conftest.$ac_ext
18556 fi
18557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18559 if test `eval echo '${'$as_ac_var'}'` = yes; then
18560   cat >>confdefs.h <<_ACEOF
18561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18562 _ACEOF
18563
18564 fi
18565 done
18566
18567 if test "x$ac_cv_func_fork" = xyes; then
18568   echo "$as_me:$LINENO: checking for working fork" >&5
18569 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18570 if test "${ac_cv_func_fork_works+set}" = set; then
18571   echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573   if test "$cross_compiling" = yes; then
18574   ac_cv_func_fork_works=cross
18575 else
18576   cat >conftest.$ac_ext <<_ACEOF
18577 /* By Ruediger Kuhlmann. */
18578       #include <sys/types.h>
18579       #if HAVE_UNISTD_H
18580       # include <unistd.h>
18581       #endif
18582       /* Some systems only have a dummy stub for fork() */
18583       int main ()
18584       {
18585         if (fork() < 0)
18586           exit (1);
18587         exit (0);
18588       }
18589 _ACEOF
18590 rm -f conftest$ac_exeext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18592   (eval $ac_link) 2>&5
18593   ac_status=$?
18594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597   (eval $ac_try) 2>&5
18598   ac_status=$?
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); }; }; then
18601   ac_cv_func_fork_works=yes
18602 else
18603   echo "$as_me: program exited with status $ac_status" >&5
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18606
18607 ( exit $ac_status )
18608 ac_cv_func_fork_works=no
18609 fi
18610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18611 fi
18612 fi
18613 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18614 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18615
18616 else
18617   ac_cv_func_fork_works=$ac_cv_func_fork
18618 fi
18619 if test "x$ac_cv_func_fork_works" = xcross; then
18620   case $host in
18621     *-*-amigaos* | *-*-msdosdjgpp*)
18622       # Override, as these systems have only a dummy fork() stub
18623       ac_cv_func_fork_works=no
18624       ;;
18625     *)
18626       ac_cv_func_fork_works=yes
18627       ;;
18628   esac
18629   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18630 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18631 fi
18632 ac_cv_func_vfork_works=$ac_cv_func_vfork
18633 if test "x$ac_cv_func_vfork" = xyes; then
18634   echo "$as_me:$LINENO: checking for working vfork" >&5
18635 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18636 if test "${ac_cv_func_vfork_works+set}" = set; then
18637   echo $ECHO_N "(cached) $ECHO_C" >&6
18638 else
18639   if test "$cross_compiling" = yes; then
18640   ac_cv_func_vfork_works=cross
18641 else
18642   cat >conftest.$ac_ext <<_ACEOF
18643 /* confdefs.h.  */
18644 _ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h.  */
18648 /* Thanks to Paul Eggert for this test.  */
18649 #include <stdio.h>
18650 #include <stdlib.h>
18651 #include <sys/types.h>
18652 #include <sys/stat.h>
18653 #include <sys/wait.h>
18654 #if HAVE_UNISTD_H
18655 # include <unistd.h>
18656 #endif
18657 #if HAVE_VFORK_H
18658 # include <vfork.h>
18659 #endif
18660 /* On some sparc systems, changes by the child to local and incoming
18661    argument registers are propagated back to the parent.  The compiler
18662    is told about this with #include <vfork.h>, but some compilers
18663    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
18664    static variable whose address is put into a register that is
18665    clobbered by the vfork.  */
18666 static void
18667 #ifdef __cplusplus
18668 sparc_address_test (int arg)
18669 # else
18670 sparc_address_test (arg) int arg;
18671 #endif
18672 {
18673   static pid_t child;
18674   if (!child) {
18675     child = vfork ();
18676     if (child < 0) {
18677       perror ("vfork");
18678       _exit(2);
18679     }
18680     if (!child) {
18681       arg = getpid();
18682       write(-1, "", 0);
18683       _exit (arg);
18684     }
18685   }
18686 }
18687
18688 int
18689 main ()
18690 {
18691   pid_t parent = getpid ();
18692   pid_t child;
18693
18694   sparc_address_test (0);
18695
18696   child = vfork ();
18697
18698   if (child == 0) {
18699     /* Here is another test for sparc vfork register problems.  This
18700        test uses lots of local variables, at least as many local
18701        variables as main has allocated so far including compiler
18702        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
18703        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
18704        reuse the register of parent for one of the local variables,
18705        since it will think that parent can't possibly be used any more
18706        in this routine.  Assigning to the local variable will thus
18707        munge parent in the parent process.  */
18708     pid_t
18709       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18710       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18711     /* Convince the compiler that p..p7 are live; otherwise, it might
18712        use the same hardware register for all 8 local variables.  */
18713     if (p != p1 || p != p2 || p != p3 || p != p4
18714         || p != p5 || p != p6 || p != p7)
18715       _exit(1);
18716
18717     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18718        from child file descriptors.  If the child closes a descriptor
18719        before it execs or exits, this munges the parent's descriptor
18720        as well.  Test for this by closing stdout in the child.  */
18721     _exit(close(fileno(stdout)) != 0);
18722   } else {
18723     int status;
18724     struct stat st;
18725
18726     while (wait(&status) != child)
18727       ;
18728     exit(
18729          /* Was there some problem with vforking?  */
18730          child < 0
18731
18732          /* Did the child fail?  (This shouldn't happen.)  */
18733          || status
18734
18735          /* Did the vfork/compiler bug occur?  */
18736          || parent != getpid()
18737
18738          /* Did the file descriptor bug occur?  */
18739          || fstat(fileno(stdout), &st) != 0
18740          );
18741   }
18742 }
18743 _ACEOF
18744 rm -f conftest$ac_exeext
18745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18746   (eval $ac_link) 2>&5
18747   ac_status=$?
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751   (eval $ac_try) 2>&5
18752   ac_status=$?
18753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); }; }; then
18755   ac_cv_func_vfork_works=yes
18756 else
18757   echo "$as_me: program exited with status $ac_status" >&5
18758 echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18760
18761 ( exit $ac_status )
18762 ac_cv_func_vfork_works=no
18763 fi
18764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18765 fi
18766 fi
18767 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18768 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18769
18770 fi;
18771 if test "x$ac_cv_func_fork_works" = xcross; then
18772   ac_cv_func_vfork_works=$ac_cv_func_vfork
18773   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18774 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18775 fi
18776
18777 if test "x$ac_cv_func_vfork_works" = xyes; then
18778
18779 cat >>confdefs.h <<\_ACEOF
18780 #define HAVE_WORKING_VFORK 1
18781 _ACEOF
18782
18783 else
18784
18785 cat >>confdefs.h <<\_ACEOF
18786 #define vfork fork
18787 _ACEOF
18788
18789 fi
18790 if test "x$ac_cv_func_fork_works" = xyes; then
18791
18792 cat >>confdefs.h <<\_ACEOF
18793 #define HAVE_WORKING_FORK 1
18794 _ACEOF
18795
18796 fi
18797
18798
18799
18800 for ac_func in canonicalize_file_name realpath
18801 do
18802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18803 echo "$as_me:$LINENO: checking for $ac_func" >&5
18804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18805 if eval "test \"\${$as_ac_var+set}\" = set"; then
18806   echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808   cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h.  */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h.  */
18814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18816 #define $ac_func innocuous_$ac_func
18817
18818 /* System header to define __stub macros and hopefully few prototypes,
18819     which can conflict with char $ac_func (); below.
18820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18821     <limits.h> exists even on freestanding compilers.  */
18822
18823 #ifdef __STDC__
18824 # include <limits.h>
18825 #else
18826 # include <assert.h>
18827 #endif
18828
18829 #undef $ac_func
18830
18831 /* Override any gcc2 internal prototype to avoid an error.  */
18832 #ifdef __cplusplus
18833 extern "C"
18834 {
18835 #endif
18836 /* We use char because int might match the return type of a gcc2
18837    builtin and then its argument prototype would still apply.  */
18838 char $ac_func ();
18839 /* The GNU C library defines this for functions which it implements
18840     to always fail with ENOSYS.  Some functions are actually named
18841     something starting with __ and the normal name is an alias.  */
18842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18843 choke me
18844 #else
18845 char (*f) () = $ac_func;
18846 #endif
18847 #ifdef __cplusplus
18848 }
18849 #endif
18850
18851 int
18852 main ()
18853 {
18854 return f != $ac_func;
18855   ;
18856   return 0;
18857 }
18858 _ACEOF
18859 rm -f conftest.$ac_objext conftest$ac_exeext
18860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18861   (eval $ac_link) 2>conftest.er1
18862   ac_status=$?
18863   grep -v '^ *+' conftest.er1 >conftest.err
18864   rm -f conftest.er1
18865   cat conftest.err >&5
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); } &&
18868          { ac_try='test -z "$ac_c_werror_flag"
18869                          || test ! -s conftest.err'
18870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871   (eval $ac_try) 2>&5
18872   ac_status=$?
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); }; } &&
18875          { ac_try='test -s conftest$ac_exeext'
18876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877   (eval $ac_try) 2>&5
18878   ac_status=$?
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); }; }; then
18881   eval "$as_ac_var=yes"
18882 else
18883   echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18885
18886 eval "$as_ac_var=no"
18887 fi
18888 rm -f conftest.err conftest.$ac_objext \
18889       conftest$ac_exeext conftest.$ac_ext
18890 fi
18891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18893 if test `eval echo '${'$as_ac_var'}'` = yes; then
18894   cat >>confdefs.h <<_ACEOF
18895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18896 _ACEOF
18897
18898 fi
18899 done
18900
18901
18902 for ac_func in getrusage
18903 do
18904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18905 echo "$as_me:$LINENO: checking for $ac_func" >&5
18906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18907 if eval "test \"\${$as_ac_var+set}\" = set"; then
18908   echo $ECHO_N "(cached) $ECHO_C" >&6
18909 else
18910   cat >conftest.$ac_ext <<_ACEOF
18911 /* confdefs.h.  */
18912 _ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h.  */
18916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18918 #define $ac_func innocuous_$ac_func
18919
18920 /* System header to define __stub macros and hopefully few prototypes,
18921     which can conflict with char $ac_func (); below.
18922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18923     <limits.h> exists even on freestanding compilers.  */
18924
18925 #ifdef __STDC__
18926 # include <limits.h>
18927 #else
18928 # include <assert.h>
18929 #endif
18930
18931 #undef $ac_func
18932
18933 /* Override any gcc2 internal prototype to avoid an error.  */
18934 #ifdef __cplusplus
18935 extern "C"
18936 {
18937 #endif
18938 /* We use char because int might match the return type of a gcc2
18939    builtin and then its argument prototype would still apply.  */
18940 char $ac_func ();
18941 /* The GNU C library defines this for functions which it implements
18942     to always fail with ENOSYS.  Some functions are actually named
18943     something starting with __ and the normal name is an alias.  */
18944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18945 choke me
18946 #else
18947 char (*f) () = $ac_func;
18948 #endif
18949 #ifdef __cplusplus
18950 }
18951 #endif
18952
18953 int
18954 main ()
18955 {
18956 return f != $ac_func;
18957   ;
18958   return 0;
18959 }
18960 _ACEOF
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18963   (eval $ac_link) 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } &&
18970          { ac_try='test -z "$ac_c_werror_flag"
18971                          || test ! -s conftest.err'
18972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973   (eval $ac_try) 2>&5
18974   ac_status=$?
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); }; } &&
18977          { ac_try='test -s conftest$ac_exeext'
18978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979   (eval $ac_try) 2>&5
18980   ac_status=$?
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); }; }; then
18983   eval "$as_ac_var=yes"
18984 else
18985   echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18987
18988 eval "$as_ac_var=no"
18989 fi
18990 rm -f conftest.err conftest.$ac_objext \
18991       conftest$ac_exeext conftest.$ac_ext
18992 fi
18993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18995 if test `eval echo '${'$as_ac_var'}'` = yes; then
18996   cat >>confdefs.h <<_ACEOF
18997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18998 _ACEOF
18999
19000 fi
19001 done
19002
19003
19004
19005 for ac_func in getuid getgid
19006 do
19007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19008 echo "$as_me:$LINENO: checking for $ac_func" >&5
19009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19010 if eval "test \"\${$as_ac_var+set}\" = set"; then
19011   echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013   cat >conftest.$ac_ext <<_ACEOF
19014 /* confdefs.h.  */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h.  */
19019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19021 #define $ac_func innocuous_$ac_func
19022
19023 /* System header to define __stub macros and hopefully few prototypes,
19024     which can conflict with char $ac_func (); below.
19025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19026     <limits.h> exists even on freestanding compilers.  */
19027
19028 #ifdef __STDC__
19029 # include <limits.h>
19030 #else
19031 # include <assert.h>
19032 #endif
19033
19034 #undef $ac_func
19035
19036 /* Override any gcc2 internal prototype to avoid an error.  */
19037 #ifdef __cplusplus
19038 extern "C"
19039 {
19040 #endif
19041 /* We use char because int might match the return type of a gcc2
19042    builtin and then its argument prototype would still apply.  */
19043 char $ac_func ();
19044 /* The GNU C library defines this for functions which it implements
19045     to always fail with ENOSYS.  Some functions are actually named
19046     something starting with __ and the normal name is an alias.  */
19047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19048 choke me
19049 #else
19050 char (*f) () = $ac_func;
19051 #endif
19052 #ifdef __cplusplus
19053 }
19054 #endif
19055
19056 int
19057 main ()
19058 {
19059 return f != $ac_func;
19060   ;
19061   return 0;
19062 }
19063 _ACEOF
19064 rm -f conftest.$ac_objext conftest$ac_exeext
19065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066   (eval $ac_link) 2>conftest.er1
19067   ac_status=$?
19068   grep -v '^ *+' conftest.er1 >conftest.err
19069   rm -f conftest.er1
19070   cat conftest.err >&5
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); } &&
19073          { ac_try='test -z "$ac_c_werror_flag"
19074                          || test ! -s conftest.err'
19075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076   (eval $ac_try) 2>&5
19077   ac_status=$?
19078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079   (exit $ac_status); }; } &&
19080          { ac_try='test -s conftest$ac_exeext'
19081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082   (eval $ac_try) 2>&5
19083   ac_status=$?
19084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085   (exit $ac_status); }; }; then
19086   eval "$as_ac_var=yes"
19087 else
19088   echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19090
19091 eval "$as_ac_var=no"
19092 fi
19093 rm -f conftest.err conftest.$ac_objext \
19094       conftest$ac_exeext conftest.$ac_ext
19095 fi
19096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19098 if test `eval echo '${'$as_ac_var'}'` = yes; then
19099   cat >>confdefs.h <<_ACEOF
19100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19101 _ACEOF
19102
19103 fi
19104 done
19105
19106
19107 for ac_func in poll
19108 do
19109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19110 echo "$as_me:$LINENO: checking for $ac_func" >&5
19111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19112 if eval "test \"\${$as_ac_var+set}\" = set"; then
19113   echo $ECHO_N "(cached) $ECHO_C" >&6
19114 else
19115   cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h.  */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h.  */
19121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19123 #define $ac_func innocuous_$ac_func
19124
19125 /* System header to define __stub macros and hopefully few prototypes,
19126     which can conflict with char $ac_func (); below.
19127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19128     <limits.h> exists even on freestanding compilers.  */
19129
19130 #ifdef __STDC__
19131 # include <limits.h>
19132 #else
19133 # include <assert.h>
19134 #endif
19135
19136 #undef $ac_func
19137
19138 /* Override any gcc2 internal prototype to avoid an error.  */
19139 #ifdef __cplusplus
19140 extern "C"
19141 {
19142 #endif
19143 /* We use char because int might match the return type of a gcc2
19144    builtin and then its argument prototype would still apply.  */
19145 char $ac_func ();
19146 /* The GNU C library defines this for functions which it implements
19147     to always fail with ENOSYS.  Some functions are actually named
19148     something starting with __ and the normal name is an alias.  */
19149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19150 choke me
19151 #else
19152 char (*f) () = $ac_func;
19153 #endif
19154 #ifdef __cplusplus
19155 }
19156 #endif
19157
19158 int
19159 main ()
19160 {
19161 return f != $ac_func;
19162   ;
19163   return 0;
19164 }
19165 _ACEOF
19166 rm -f conftest.$ac_objext conftest$ac_exeext
19167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19168   (eval $ac_link) 2>conftest.er1
19169   ac_status=$?
19170   grep -v '^ *+' conftest.er1 >conftest.err
19171   rm -f conftest.er1
19172   cat conftest.err >&5
19173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174   (exit $ac_status); } &&
19175          { ac_try='test -z "$ac_c_werror_flag"
19176                          || test ! -s conftest.err'
19177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178   (eval $ac_try) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; } &&
19182          { ac_try='test -s conftest$ac_exeext'
19183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184   (eval $ac_try) 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); }; }; then
19188   eval "$as_ac_var=yes"
19189 else
19190   echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19192
19193 eval "$as_ac_var=no"
19194 fi
19195 rm -f conftest.err conftest.$ac_objext \
19196       conftest$ac_exeext conftest.$ac_ext
19197 fi
19198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19200 if test `eval echo '${'$as_ac_var'}'` = yes; then
19201   cat >>confdefs.h <<_ACEOF
19202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19203 _ACEOF
19204
19205 fi
19206 done
19207
19208
19209 for ac_func in pread64
19210 do
19211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19212 echo "$as_me:$LINENO: checking for $ac_func" >&5
19213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19214 if eval "test \"\${$as_ac_var+set}\" = set"; then
19215   echo $ECHO_N "(cached) $ECHO_C" >&6
19216 else
19217   cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19225 #define $ac_func innocuous_$ac_func
19226
19227 /* System header to define __stub macros and hopefully few prototypes,
19228     which can conflict with char $ac_func (); below.
19229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19230     <limits.h> exists even on freestanding compilers.  */
19231
19232 #ifdef __STDC__
19233 # include <limits.h>
19234 #else
19235 # include <assert.h>
19236 #endif
19237
19238 #undef $ac_func
19239
19240 /* Override any gcc2 internal prototype to avoid an error.  */
19241 #ifdef __cplusplus
19242 extern "C"
19243 {
19244 #endif
19245 /* We use char because int might match the return type of a gcc2
19246    builtin and then its argument prototype would still apply.  */
19247 char $ac_func ();
19248 /* The GNU C library defines this for functions which it implements
19249     to always fail with ENOSYS.  Some functions are actually named
19250     something starting with __ and the normal name is an alias.  */
19251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19252 choke me
19253 #else
19254 char (*f) () = $ac_func;
19255 #endif
19256 #ifdef __cplusplus
19257 }
19258 #endif
19259
19260 int
19261 main ()
19262 {
19263 return f != $ac_func;
19264   ;
19265   return 0;
19266 }
19267 _ACEOF
19268 rm -f conftest.$ac_objext conftest$ac_exeext
19269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19270   (eval $ac_link) 2>conftest.er1
19271   ac_status=$?
19272   grep -v '^ *+' conftest.er1 >conftest.err
19273   rm -f conftest.er1
19274   cat conftest.err >&5
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); } &&
19277          { ac_try='test -z "$ac_c_werror_flag"
19278                          || test ! -s conftest.err'
19279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280   (eval $ac_try) 2>&5
19281   ac_status=$?
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); }; } &&
19284          { ac_try='test -s conftest$ac_exeext'
19285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286   (eval $ac_try) 2>&5
19287   ac_status=$?
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); }; }; then
19290   eval "$as_ac_var=yes"
19291 else
19292   echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19294
19295 eval "$as_ac_var=no"
19296 fi
19297 rm -f conftest.err conftest.$ac_objext \
19298       conftest$ac_exeext conftest.$ac_ext
19299 fi
19300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19302 if test `eval echo '${'$as_ac_var'}'` = yes; then
19303   cat >>confdefs.h <<_ACEOF
19304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19305 _ACEOF
19306
19307 fi
19308 done
19309
19310
19311 for ac_func in sbrk
19312 do
19313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19314 echo "$as_me:$LINENO: checking for $ac_func" >&5
19315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19316 if eval "test \"\${$as_ac_var+set}\" = set"; then
19317   echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319   cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h.  */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h.  */
19325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19327 #define $ac_func innocuous_$ac_func
19328
19329 /* System header to define __stub macros and hopefully few prototypes,
19330     which can conflict with char $ac_func (); below.
19331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19332     <limits.h> exists even on freestanding compilers.  */
19333
19334 #ifdef __STDC__
19335 # include <limits.h>
19336 #else
19337 # include <assert.h>
19338 #endif
19339
19340 #undef $ac_func
19341
19342 /* Override any gcc2 internal prototype to avoid an error.  */
19343 #ifdef __cplusplus
19344 extern "C"
19345 {
19346 #endif
19347 /* We use char because int might match the return type of a gcc2
19348    builtin and then its argument prototype would still apply.  */
19349 char $ac_func ();
19350 /* The GNU C library defines this for functions which it implements
19351     to always fail with ENOSYS.  Some functions are actually named
19352     something starting with __ and the normal name is an alias.  */
19353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19354 choke me
19355 #else
19356 char (*f) () = $ac_func;
19357 #endif
19358 #ifdef __cplusplus
19359 }
19360 #endif
19361
19362 int
19363 main ()
19364 {
19365 return f != $ac_func;
19366   ;
19367   return 0;
19368 }
19369 _ACEOF
19370 rm -f conftest.$ac_objext conftest$ac_exeext
19371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19372   (eval $ac_link) 2>conftest.er1
19373   ac_status=$?
19374   grep -v '^ *+' conftest.er1 >conftest.err
19375   rm -f conftest.er1
19376   cat conftest.err >&5
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); } &&
19379          { ac_try='test -z "$ac_c_werror_flag"
19380                          || test ! -s conftest.err'
19381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382   (eval $ac_try) 2>&5
19383   ac_status=$?
19384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385   (exit $ac_status); }; } &&
19386          { ac_try='test -s conftest$ac_exeext'
19387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388   (eval $ac_try) 2>&5
19389   ac_status=$?
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); }; }; then
19392   eval "$as_ac_var=yes"
19393 else
19394   echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19396
19397 eval "$as_ac_var=no"
19398 fi
19399 rm -f conftest.err conftest.$ac_objext \
19400       conftest$ac_exeext conftest.$ac_ext
19401 fi
19402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19404 if test `eval echo '${'$as_ac_var'}'` = yes; then
19405   cat >>confdefs.h <<_ACEOF
19406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19407 _ACEOF
19408
19409 fi
19410 done
19411
19412
19413
19414
19415 for ac_func in setpgid setpgrp setsid
19416 do
19417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19418 echo "$as_me:$LINENO: checking for $ac_func" >&5
19419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19420 if eval "test \"\${$as_ac_var+set}\" = set"; then
19421   echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423   cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h.  */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h.  */
19429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19431 #define $ac_func innocuous_$ac_func
19432
19433 /* System header to define __stub macros and hopefully few prototypes,
19434     which can conflict with char $ac_func (); below.
19435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19436     <limits.h> exists even on freestanding compilers.  */
19437
19438 #ifdef __STDC__
19439 # include <limits.h>
19440 #else
19441 # include <assert.h>
19442 #endif
19443
19444 #undef $ac_func
19445
19446 /* Override any gcc2 internal prototype to avoid an error.  */
19447 #ifdef __cplusplus
19448 extern "C"
19449 {
19450 #endif
19451 /* We use char because int might match the return type of a gcc2
19452    builtin and then its argument prototype would still apply.  */
19453 char $ac_func ();
19454 /* The GNU C library defines this for functions which it implements
19455     to always fail with ENOSYS.  Some functions are actually named
19456     something starting with __ and the normal name is an alias.  */
19457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19458 choke me
19459 #else
19460 char (*f) () = $ac_func;
19461 #endif
19462 #ifdef __cplusplus
19463 }
19464 #endif
19465
19466 int
19467 main ()
19468 {
19469 return f != $ac_func;
19470   ;
19471   return 0;
19472 }
19473 _ACEOF
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476   (eval $ac_link) 2>conftest.er1
19477   ac_status=$?
19478   grep -v '^ *+' conftest.er1 >conftest.err
19479   rm -f conftest.er1
19480   cat conftest.err >&5
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); } &&
19483          { ac_try='test -z "$ac_c_werror_flag"
19484                          || test ! -s conftest.err'
19485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486   (eval $ac_try) 2>&5
19487   ac_status=$?
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); }; } &&
19490          { ac_try='test -s conftest$ac_exeext'
19491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492   (eval $ac_try) 2>&5
19493   ac_status=$?
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); }; }; then
19496   eval "$as_ac_var=yes"
19497 else
19498   echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19500
19501 eval "$as_ac_var=no"
19502 fi
19503 rm -f conftest.err conftest.$ac_objext \
19504       conftest$ac_exeext conftest.$ac_ext
19505 fi
19506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19508 if test `eval echo '${'$as_ac_var'}'` = yes; then
19509   cat >>confdefs.h <<_ACEOF
19510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19511 _ACEOF
19512
19513 fi
19514 done
19515
19516
19517
19518
19519 for ac_func in sigaction sigprocmask sigsetmask
19520 do
19521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19522 echo "$as_me:$LINENO: checking for $ac_func" >&5
19523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19524 if eval "test \"\${$as_ac_var+set}\" = set"; then
19525   echo $ECHO_N "(cached) $ECHO_C" >&6
19526 else
19527   cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19535 #define $ac_func innocuous_$ac_func
19536
19537 /* System header to define __stub macros and hopefully few prototypes,
19538     which can conflict with char $ac_func (); below.
19539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19540     <limits.h> exists even on freestanding compilers.  */
19541
19542 #ifdef __STDC__
19543 # include <limits.h>
19544 #else
19545 # include <assert.h>
19546 #endif
19547
19548 #undef $ac_func
19549
19550 /* Override any gcc2 internal prototype to avoid an error.  */
19551 #ifdef __cplusplus
19552 extern "C"
19553 {
19554 #endif
19555 /* We use char because int might match the return type of a gcc2
19556    builtin and then its argument prototype would still apply.  */
19557 char $ac_func ();
19558 /* The GNU C library defines this for functions which it implements
19559     to always fail with ENOSYS.  Some functions are actually named
19560     something starting with __ and the normal name is an alias.  */
19561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19562 choke me
19563 #else
19564 char (*f) () = $ac_func;
19565 #endif
19566 #ifdef __cplusplus
19567 }
19568 #endif
19569
19570 int
19571 main ()
19572 {
19573 return f != $ac_func;
19574   ;
19575   return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19580   (eval $ac_link) 2>conftest.er1
19581   ac_status=$?
19582   grep -v '^ *+' conftest.er1 >conftest.err
19583   rm -f conftest.er1
19584   cat conftest.err >&5
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); } &&
19587          { ac_try='test -z "$ac_c_werror_flag"
19588                          || test ! -s conftest.err'
19589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590   (eval $ac_try) 2>&5
19591   ac_status=$?
19592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593   (exit $ac_status); }; } &&
19594          { ac_try='test -s conftest$ac_exeext'
19595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596   (eval $ac_try) 2>&5
19597   ac_status=$?
19598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599   (exit $ac_status); }; }; then
19600   eval "$as_ac_var=yes"
19601 else
19602   echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19604
19605 eval "$as_ac_var=no"
19606 fi
19607 rm -f conftest.err conftest.$ac_objext \
19608       conftest$ac_exeext conftest.$ac_ext
19609 fi
19610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19612 if test `eval echo '${'$as_ac_var'}'` = yes; then
19613   cat >>confdefs.h <<_ACEOF
19614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19615 _ACEOF
19616
19617 fi
19618 done
19619
19620
19621 for ac_func in socketpair
19622 do
19623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19624 echo "$as_me:$LINENO: checking for $ac_func" >&5
19625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19626 if eval "test \"\${$as_ac_var+set}\" = set"; then
19627   echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629   cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h.  */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h.  */
19635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19637 #define $ac_func innocuous_$ac_func
19638
19639 /* System header to define __stub macros and hopefully few prototypes,
19640     which can conflict with char $ac_func (); below.
19641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19642     <limits.h> exists even on freestanding compilers.  */
19643
19644 #ifdef __STDC__
19645 # include <limits.h>
19646 #else
19647 # include <assert.h>
19648 #endif
19649
19650 #undef $ac_func
19651
19652 /* Override any gcc2 internal prototype to avoid an error.  */
19653 #ifdef __cplusplus
19654 extern "C"
19655 {
19656 #endif
19657 /* We use char because int might match the return type of a gcc2
19658    builtin and then its argument prototype would still apply.  */
19659 char $ac_func ();
19660 /* The GNU C library defines this for functions which it implements
19661     to always fail with ENOSYS.  Some functions are actually named
19662     something starting with __ and the normal name is an alias.  */
19663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19664 choke me
19665 #else
19666 char (*f) () = $ac_func;
19667 #endif
19668 #ifdef __cplusplus
19669 }
19670 #endif
19671
19672 int
19673 main ()
19674 {
19675 return f != $ac_func;
19676   ;
19677   return 0;
19678 }
19679 _ACEOF
19680 rm -f conftest.$ac_objext conftest$ac_exeext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682   (eval $ac_link) 2>conftest.er1
19683   ac_status=$?
19684   grep -v '^ *+' conftest.er1 >conftest.err
19685   rm -f conftest.er1
19686   cat conftest.err >&5
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); } &&
19689          { ac_try='test -z "$ac_c_werror_flag"
19690                          || test ! -s conftest.err'
19691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692   (eval $ac_try) 2>&5
19693   ac_status=$?
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); }; } &&
19696          { ac_try='test -s conftest$ac_exeext'
19697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698   (eval $ac_try) 2>&5
19699   ac_status=$?
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); }; }; then
19702   eval "$as_ac_var=yes"
19703 else
19704   echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19706
19707 eval "$as_ac_var=no"
19708 fi
19709 rm -f conftest.err conftest.$ac_objext \
19710       conftest$ac_exeext conftest.$ac_ext
19711 fi
19712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19714 if test `eval echo '${'$as_ac_var'}'` = yes; then
19715   cat >>confdefs.h <<_ACEOF
19716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19717 _ACEOF
19718
19719 fi
19720 done
19721
19722
19723 for ac_func in syscall
19724 do
19725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19726 echo "$as_me:$LINENO: checking for $ac_func" >&5
19727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19728 if eval "test \"\${$as_ac_var+set}\" = set"; then
19729   echo $ECHO_N "(cached) $ECHO_C" >&6
19730 else
19731   cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h.  */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h.  */
19737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19739 #define $ac_func innocuous_$ac_func
19740
19741 /* System header to define __stub macros and hopefully few prototypes,
19742     which can conflict with char $ac_func (); below.
19743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19744     <limits.h> exists even on freestanding compilers.  */
19745
19746 #ifdef __STDC__
19747 # include <limits.h>
19748 #else
19749 # include <assert.h>
19750 #endif
19751
19752 #undef $ac_func
19753
19754 /* Override any gcc2 internal prototype to avoid an error.  */
19755 #ifdef __cplusplus
19756 extern "C"
19757 {
19758 #endif
19759 /* We use char because int might match the return type of a gcc2
19760    builtin and then its argument prototype would still apply.  */
19761 char $ac_func ();
19762 /* The GNU C library defines this for functions which it implements
19763     to always fail with ENOSYS.  Some functions are actually named
19764     something starting with __ and the normal name is an alias.  */
19765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19766 choke me
19767 #else
19768 char (*f) () = $ac_func;
19769 #endif
19770 #ifdef __cplusplus
19771 }
19772 #endif
19773
19774 int
19775 main ()
19776 {
19777 return f != $ac_func;
19778   ;
19779   return 0;
19780 }
19781 _ACEOF
19782 rm -f conftest.$ac_objext conftest$ac_exeext
19783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19784   (eval $ac_link) 2>conftest.er1
19785   ac_status=$?
19786   grep -v '^ *+' conftest.er1 >conftest.err
19787   rm -f conftest.er1
19788   cat conftest.err >&5
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); } &&
19791          { ac_try='test -z "$ac_c_werror_flag"
19792                          || test ! -s conftest.err'
19793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794   (eval $ac_try) 2>&5
19795   ac_status=$?
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); }; } &&
19798          { ac_try='test -s conftest$ac_exeext'
19799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800   (eval $ac_try) 2>&5
19801   ac_status=$?
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); }; }; then
19804   eval "$as_ac_var=yes"
19805 else
19806   echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19808
19809 eval "$as_ac_var=no"
19810 fi
19811 rm -f conftest.err conftest.$ac_objext \
19812       conftest$ac_exeext conftest.$ac_ext
19813 fi
19814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19816 if test `eval echo '${'$as_ac_var'}'` = yes; then
19817   cat >>confdefs.h <<_ACEOF
19818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19819 _ACEOF
19820
19821 fi
19822 done
19823
19824
19825 for ac_func in ttrace
19826 do
19827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19828 echo "$as_me:$LINENO: checking for $ac_func" >&5
19829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19830 if eval "test \"\${$as_ac_var+set}\" = set"; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833   cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h.  */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h.  */
19839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19841 #define $ac_func innocuous_$ac_func
19842
19843 /* System header to define __stub macros and hopefully few prototypes,
19844     which can conflict with char $ac_func (); below.
19845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19846     <limits.h> exists even on freestanding compilers.  */
19847
19848 #ifdef __STDC__
19849 # include <limits.h>
19850 #else
19851 # include <assert.h>
19852 #endif
19853
19854 #undef $ac_func
19855
19856 /* Override any gcc2 internal prototype to avoid an error.  */
19857 #ifdef __cplusplus
19858 extern "C"
19859 {
19860 #endif
19861 /* We use char because int might match the return type of a gcc2
19862    builtin and then its argument prototype would still apply.  */
19863 char $ac_func ();
19864 /* The GNU C library defines this for functions which it implements
19865     to always fail with ENOSYS.  Some functions are actually named
19866     something starting with __ and the normal name is an alias.  */
19867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19868 choke me
19869 #else
19870 char (*f) () = $ac_func;
19871 #endif
19872 #ifdef __cplusplus
19873 }
19874 #endif
19875
19876 int
19877 main ()
19878 {
19879 return f != $ac_func;
19880   ;
19881   return 0;
19882 }
19883 _ACEOF
19884 rm -f conftest.$ac_objext conftest$ac_exeext
19885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19886   (eval $ac_link) 2>conftest.er1
19887   ac_status=$?
19888   grep -v '^ *+' conftest.er1 >conftest.err
19889   rm -f conftest.er1
19890   cat conftest.err >&5
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } &&
19893          { ac_try='test -z "$ac_c_werror_flag"
19894                          || test ! -s conftest.err'
19895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896   (eval $ac_try) 2>&5
19897   ac_status=$?
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); }; } &&
19900          { ac_try='test -s conftest$ac_exeext'
19901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902   (eval $ac_try) 2>&5
19903   ac_status=$?
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); }; }; then
19906   eval "$as_ac_var=yes"
19907 else
19908   echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19910
19911 eval "$as_ac_var=no"
19912 fi
19913 rm -f conftest.err conftest.$ac_objext \
19914       conftest$ac_exeext conftest.$ac_ext
19915 fi
19916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19918 if test `eval echo '${'$as_ac_var'}'` = yes; then
19919   cat >>confdefs.h <<_ACEOF
19920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19921 _ACEOF
19922
19923 fi
19924 done
19925
19926
19927 for ac_func in wborder
19928 do
19929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19930 echo "$as_me:$LINENO: checking for $ac_func" >&5
19931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19932 if eval "test \"\${$as_ac_var+set}\" = set"; then
19933   echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935   cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h.  */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h.  */
19941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19943 #define $ac_func innocuous_$ac_func
19944
19945 /* System header to define __stub macros and hopefully few prototypes,
19946     which can conflict with char $ac_func (); below.
19947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19948     <limits.h> exists even on freestanding compilers.  */
19949
19950 #ifdef __STDC__
19951 # include <limits.h>
19952 #else
19953 # include <assert.h>
19954 #endif
19955
19956 #undef $ac_func
19957
19958 /* Override any gcc2 internal prototype to avoid an error.  */
19959 #ifdef __cplusplus
19960 extern "C"
19961 {
19962 #endif
19963 /* We use char because int might match the return type of a gcc2
19964    builtin and then its argument prototype would still apply.  */
19965 char $ac_func ();
19966 /* The GNU C library defines this for functions which it implements
19967     to always fail with ENOSYS.  Some functions are actually named
19968     something starting with __ and the normal name is an alias.  */
19969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19970 choke me
19971 #else
19972 char (*f) () = $ac_func;
19973 #endif
19974 #ifdef __cplusplus
19975 }
19976 #endif
19977
19978 int
19979 main ()
19980 {
19981 return f != $ac_func;
19982   ;
19983   return 0;
19984 }
19985 _ACEOF
19986 rm -f conftest.$ac_objext conftest$ac_exeext
19987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19988   (eval $ac_link) 2>conftest.er1
19989   ac_status=$?
19990   grep -v '^ *+' conftest.er1 >conftest.err
19991   rm -f conftest.er1
19992   cat conftest.err >&5
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } &&
19995          { ac_try='test -z "$ac_c_werror_flag"
19996                          || test ! -s conftest.err'
19997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998   (eval $ac_try) 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); }; } &&
20002          { ac_try='test -s conftest$ac_exeext'
20003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004   (eval $ac_try) 2>&5
20005   ac_status=$?
20006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); }; }; then
20008   eval "$as_ac_var=yes"
20009 else
20010   echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012
20013 eval "$as_ac_var=no"
20014 fi
20015 rm -f conftest.err conftest.$ac_objext \
20016       conftest$ac_exeext conftest.$ac_ext
20017 fi
20018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20020 if test `eval echo '${'$as_ac_var'}'` = yes; then
20021   cat >>confdefs.h <<_ACEOF
20022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20023 _ACEOF
20024
20025 fi
20026 done
20027
20028
20029 # Check the return and argument types of ptrace.  No canned test for
20030 # this, so roll our own.
20031 gdb_ptrace_headers='
20032 #if HAVE_SYS_TYPES_H
20033 # include <sys/types.h>
20034 #endif
20035 #if HAVE_SYS_PTRACE_H
20036 # include <sys/ptrace.h>
20037 #endif
20038 #if HAVE_UNISTD_H
20039 # include <unistd.h>
20040 #endif
20041 '
20042 # There is no point in checking if we don't have a prototype.
20043 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20044 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
20045 if test "${ac_cv_have_decl_ptrace+set}" = set; then
20046   echo $ECHO_N "(cached) $ECHO_C" >&6
20047 else
20048   cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h.  */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h.  */
20054 $gdb_ptrace_headers
20055
20056 int
20057 main ()
20058 {
20059 #ifndef ptrace
20060   char *p = (char *) ptrace;
20061 #endif
20062
20063   ;
20064   return 0;
20065 }
20066 _ACEOF
20067 rm -f conftest.$ac_objext
20068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20069   (eval $ac_compile) 2>conftest.er1
20070   ac_status=$?
20071   grep -v '^ *+' conftest.er1 >conftest.err
20072   rm -f conftest.er1
20073   cat conftest.err >&5
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); } &&
20076          { ac_try='test -z "$ac_c_werror_flag"
20077                          || test ! -s conftest.err'
20078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079   (eval $ac_try) 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; } &&
20083          { ac_try='test -s conftest.$ac_objext'
20084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085   (eval $ac_try) 2>&5
20086   ac_status=$?
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); }; }; then
20089   ac_cv_have_decl_ptrace=yes
20090 else
20091   echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20093
20094 ac_cv_have_decl_ptrace=no
20095 fi
20096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20097 fi
20098 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20099 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
20100 if test $ac_cv_have_decl_ptrace = yes; then
20101
20102 cat >>confdefs.h <<_ACEOF
20103 #define HAVE_DECL_PTRACE 1
20104 _ACEOF
20105
20106
20107 else
20108   cat >>confdefs.h <<_ACEOF
20109 #define HAVE_DECL_PTRACE 0
20110 _ACEOF
20111
20112
20113   : ${gdb_cv_func_ptrace_ret='int'}
20114   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20115
20116 fi
20117
20118
20119 # Check return type.
20120 echo "$as_me:$LINENO: checking return type of ptrace" >&5
20121 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
20122 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
20123   echo $ECHO_N "(cached) $ECHO_C" >&6
20124 else
20125   cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h.  */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h.  */
20131 $gdb_ptrace_headers
20132 int
20133 main ()
20134 {
20135 extern int ptrace ();
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142   (eval $ac_compile) 2>conftest.er1
20143   ac_status=$?
20144   grep -v '^ *+' conftest.er1 >conftest.err
20145   rm -f conftest.er1
20146   cat conftest.err >&5
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); } &&
20149          { ac_try='test -z "$ac_c_werror_flag"
20150                          || test ! -s conftest.err'
20151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152   (eval $ac_try) 2>&5
20153   ac_status=$?
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); }; } &&
20156          { ac_try='test -s conftest.$ac_objext'
20157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158   (eval $ac_try) 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; }; then
20162   gdb_cv_func_ptrace_ret='int'
20163 else
20164   echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 gdb_cv_func_ptrace_ret='long'
20168 fi
20169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20170 fi
20171 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20172 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
20173
20174 cat >>confdefs.h <<_ACEOF
20175 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
20176 _ACEOF
20177
20178 # Check argument types.
20179 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20180 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
20181 if test "${gdb_cv_func_ptrace_args+set}" = set; then
20182   echo $ECHO_N "(cached) $ECHO_C" >&6
20183 else
20184
20185 for gdb_arg1 in 'int' 'long'; do
20186  for gdb_arg2 in 'pid_t' 'int' 'long'; do
20187   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
20188    for gdb_arg4 in 'int' 'long'; do
20189      cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h.  */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h.  */
20195 $gdb_ptrace_headers
20196 int
20197 main ()
20198 {
20199
20200 extern $gdb_cv_func_ptrace_ret
20201   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20202
20203   ;
20204   return 0;
20205 }
20206 _ACEOF
20207 rm -f conftest.$ac_objext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209   (eval $ac_compile) 2>conftest.er1
20210   ac_status=$?
20211   grep -v '^ *+' conftest.er1 >conftest.err
20212   rm -f conftest.er1
20213   cat conftest.err >&5
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); } &&
20216          { ac_try='test -z "$ac_c_werror_flag"
20217                          || test ! -s conftest.err'
20218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219   (eval $ac_try) 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); }; } &&
20223          { ac_try='test -s conftest.$ac_objext'
20224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225   (eval $ac_try) 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); }; }; then
20229   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20230     break 4;
20231 else
20232   echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20234
20235 fi
20236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20237     for gdb_arg5 in 'int *' 'int' 'long'; do
20238      cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h.  */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h.  */
20244 $gdb_ptrace_headers
20245 int
20246 main ()
20247 {
20248
20249 extern $gdb_cv_func_ptrace_ret
20250   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20251
20252   ;
20253   return 0;
20254 }
20255 _ACEOF
20256 rm -f conftest.$ac_objext
20257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20258   (eval $ac_compile) 2>conftest.er1
20259   ac_status=$?
20260   grep -v '^ *+' conftest.er1 >conftest.err
20261   rm -f conftest.er1
20262   cat conftest.err >&5
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); } &&
20265          { ac_try='test -z "$ac_c_werror_flag"
20266                          || test ! -s conftest.err'
20267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268   (eval $ac_try) 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); }; } &&
20272          { ac_try='test -s conftest.$ac_objext'
20273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274   (eval $ac_try) 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); }; }; then
20278
20279 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20280     break 5;
20281 else
20282   echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20284
20285 fi
20286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20287     done
20288    done
20289   done
20290  done
20291 done
20292 # Provide a safe default value.
20293 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20294
20295 fi
20296 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20297 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
20298 ac_save_IFS=$IFS; IFS=','
20299 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20300 IFS=$ac_save_IFS
20301 shift
20302
20303 cat >>confdefs.h <<_ACEOF
20304 #define PTRACE_TYPE_ARG3 $3
20305 _ACEOF
20306
20307 if test -n "$5"; then
20308
20309 cat >>confdefs.h <<_ACEOF
20310 #define PTRACE_TYPE_ARG5 $5
20311 _ACEOF
20312
20313 fi
20314
20315 if test "$cross_compiling" = no; then
20316   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20317 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20318 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20319   echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321   if test "$cross_compiling" = yes; then
20322   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20323 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20324    { (exit 1); exit 1; }; }
20325 else
20326   cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h.  */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h.  */
20332 #if HAVE_UNISTD_H
20333 # include <unistd.h>
20334 #endif
20335
20336 int
20337 main ()
20338 {
20339 /* If this system has a BSD-style setpgrp which takes arguments,
20340   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20341   exit successfully. */
20342   exit (setpgrp (1,1) == -1 ? 0 : 1);
20343   ;
20344   return 0;
20345 }
20346 _ACEOF
20347 rm -f conftest$ac_exeext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349   (eval $ac_link) 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354   (eval $ac_try) 2>&5
20355   ac_status=$?
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); }; }; then
20358   ac_cv_func_setpgrp_void=no
20359 else
20360   echo "$as_me: program exited with status $ac_status" >&5
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20363
20364 ( exit $ac_status )
20365 ac_cv_func_setpgrp_void=yes
20366 fi
20367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20368 fi
20369 fi
20370 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20371 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20372 if test $ac_cv_func_setpgrp_void = yes; then
20373
20374 cat >>confdefs.h <<\_ACEOF
20375 #define SETPGRP_VOID 1
20376 _ACEOF
20377
20378 fi
20379
20380 else
20381   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20382 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20383 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20384   echo $ECHO_N "(cached) $ECHO_C" >&6
20385 else
20386   cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h.  */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h.  */
20392
20393 #include <unistd.h>
20394
20395 int
20396 main ()
20397 {
20398
20399   if (setpgrp(1,1) == -1)
20400     exit (0);
20401   else
20402     exit (1);
20403
20404   ;
20405   return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest.$ac_objext
20409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20410   (eval $ac_compile) 2>conftest.er1
20411   ac_status=$?
20412   grep -v '^ *+' conftest.er1 >conftest.err
20413   rm -f conftest.er1
20414   cat conftest.err >&5
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); } &&
20417          { ac_try='test -z "$ac_c_werror_flag"
20418                          || test ! -s conftest.err'
20419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420   (eval $ac_try) 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); }; } &&
20424          { ac_try='test -s conftest.$ac_objext'
20425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426   (eval $ac_try) 2>&5
20427   ac_status=$?
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); }; }; then
20430   ac_cv_func_setpgrp_void=no
20431 else
20432   echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 ac_cv_func_setpgrp_void=yes
20436 fi
20437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20438 fi
20439 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20440 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20441 if test $ac_cv_func_setpgrp_void = yes; then
20442   cat >>confdefs.h <<\_ACEOF
20443 #define SETPGRP_VOID 1
20444 _ACEOF
20445
20446 fi
20447 fi
20448
20449 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
20450 # since sigsetjmp might only be defined as a macro.
20451 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20452 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
20453 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
20454   echo $ECHO_N "(cached) $ECHO_C" >&6
20455 else
20456   cat >conftest.$ac_ext <<_ACEOF
20457 /* confdefs.h.  */
20458 _ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h.  */
20462
20463 #include <setjmp.h>
20464
20465 int
20466 main ()
20467 {
20468 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20475   (eval $ac_compile) 2>conftest.er1
20476   ac_status=$?
20477   grep -v '^ *+' conftest.er1 >conftest.err
20478   rm -f conftest.er1
20479   cat conftest.err >&5
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); } &&
20482          { ac_try='test -z "$ac_c_werror_flag"
20483                          || test ! -s conftest.err'
20484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485   (eval $ac_try) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; } &&
20489          { ac_try='test -s conftest.$ac_objext'
20490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491   (eval $ac_try) 2>&5
20492   ac_status=$?
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); }; }; then
20495   gdb_cv_func_sigsetjmp=yes
20496 else
20497   echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500 gdb_cv_func_sigsetjmp=no
20501 fi
20502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20503 fi
20504 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20505 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
20506 if test $gdb_cv_func_sigsetjmp = yes; then
20507
20508 cat >>confdefs.h <<\_ACEOF
20509 #define HAVE_SIGSETJMP 1
20510 _ACEOF
20511
20512 fi
20513
20514 # Assume we'll default to using the included libiberty regex.
20515 gdb_use_included_regex=yes
20516
20517 # However, if the system regex is GNU regex, then default to *not*
20518 # using the included regex.
20519 echo "$as_me:$LINENO: checking for GNU regex" >&5
20520 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
20521 if test "${gdb_cv_have_gnu_regex+set}" = set; then
20522   echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20524   cat >conftest.$ac_ext <<_ACEOF
20525 /* confdefs.h.  */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h.  */
20530 #include <gnu-versions.h>
20531 int
20532 main ()
20533 {
20534 #define REGEX_INTERFACE_VERSION 1
20535 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20536 # error "Version mismatch"
20537 #endif
20538   ;
20539   return 0;
20540 }
20541 _ACEOF
20542 rm -f conftest.$ac_objext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544   (eval $ac_compile) 2>conftest.er1
20545   ac_status=$?
20546   grep -v '^ *+' conftest.er1 >conftest.err
20547   rm -f conftest.er1
20548   cat conftest.err >&5
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); } &&
20551          { ac_try='test -z "$ac_c_werror_flag"
20552                          || test ! -s conftest.err'
20553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554   (eval $ac_try) 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); }; } &&
20558          { ac_try='test -s conftest.$ac_objext'
20559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560   (eval $ac_try) 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); }; }; then
20564   gdb_cv_have_gnu_regex=yes
20565 else
20566   echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569 gdb_cv_have_gnu_regex=no
20570 fi
20571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20572 fi
20573 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20574 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
20575 if test $gdb_cv_have_gnu_regex = yes; then
20576   gdb_use_included_regex=no
20577 fi
20578
20579
20580 # Check whether --with-included-regex or --without-included-regex was given.
20581 if test "${with_included_regex+set}" = set; then
20582   withval="$with_included_regex"
20583   gdb_with_regex=$withval
20584 else
20585   gdb_with_regex=$gdb_use_included_regex
20586 fi;
20587 if test "$gdb_with_regex" = yes; then
20588
20589 cat >>confdefs.h <<\_ACEOF
20590 #define USE_INCLUDED_REGEX 1
20591 _ACEOF
20592
20593 fi
20594
20595 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
20596 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20597 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
20598 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
20599   echo $ECHO_N "(cached) $ECHO_C" >&6
20600 else
20601   cat >conftest.$ac_ext <<_ACEOF
20602 /* confdefs.h.  */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h.  */
20607 #include <sys/param.h>
20608 #include <sys/proc.h>
20609
20610
20611 int
20612 main ()
20613 {
20614 static struct thread ac_aggr;
20615 if (ac_aggr.td_pcb)
20616 return 0;
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 rm -f conftest.$ac_objext
20622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20623   (eval $ac_compile) 2>conftest.er1
20624   ac_status=$?
20625   grep -v '^ *+' conftest.er1 >conftest.err
20626   rm -f conftest.er1
20627   cat conftest.err >&5
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); } &&
20630          { ac_try='test -z "$ac_c_werror_flag"
20631                          || test ! -s conftest.err'
20632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633   (eval $ac_try) 2>&5
20634   ac_status=$?
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); }; } &&
20637          { ac_try='test -s conftest.$ac_objext'
20638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639   (eval $ac_try) 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); }; }; then
20643   ac_cv_member_struct_thread_td_pcb=yes
20644 else
20645   echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648 cat >conftest.$ac_ext <<_ACEOF
20649 /* confdefs.h.  */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h.  */
20654 #include <sys/param.h>
20655 #include <sys/proc.h>
20656
20657
20658 int
20659 main ()
20660 {
20661 static struct thread ac_aggr;
20662 if (sizeof ac_aggr.td_pcb)
20663 return 0;
20664   ;
20665   return 0;
20666 }
20667 _ACEOF
20668 rm -f conftest.$ac_objext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20670   (eval $ac_compile) 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } &&
20677          { ac_try='test -z "$ac_c_werror_flag"
20678                          || test ! -s conftest.err'
20679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680   (eval $ac_try) 2>&5
20681   ac_status=$?
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); }; } &&
20684          { ac_try='test -s conftest.$ac_objext'
20685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686   (eval $ac_try) 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; }; then
20690   ac_cv_member_struct_thread_td_pcb=yes
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 ac_cv_member_struct_thread_td_pcb=no
20696 fi
20697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20698 fi
20699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20700 fi
20701 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20702 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
20703 if test $ac_cv_member_struct_thread_td_pcb = yes; then
20704
20705 cat >>confdefs.h <<_ACEOF
20706 #define HAVE_STRUCT_THREAD_TD_PCB 1
20707 _ACEOF
20708
20709
20710 fi
20711
20712
20713 # See if <sys/lwp.h> defines `struct lwp`.
20714 echo "$as_me:$LINENO: checking for struct lwp" >&5
20715 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
20716 if test "${gdb_cv_struct_lwp+set}" = set; then
20717   echo $ECHO_N "(cached) $ECHO_C" >&6
20718 else
20719   cat >conftest.$ac_ext <<_ACEOF
20720 /* confdefs.h.  */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h.  */
20725 #include <sys/param.h>
20726 #include <sys/lwp.h>
20727 int
20728 main ()
20729 {
20730 struct lwp l;
20731   ;
20732   return 0;
20733 }
20734 _ACEOF
20735 rm -f conftest.$ac_objext
20736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20737   (eval $ac_compile) 2>conftest.er1
20738   ac_status=$?
20739   grep -v '^ *+' conftest.er1 >conftest.err
20740   rm -f conftest.er1
20741   cat conftest.err >&5
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } &&
20744          { ac_try='test -z "$ac_c_werror_flag"
20745                          || test ! -s conftest.err'
20746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747   (eval $ac_try) 2>&5
20748   ac_status=$?
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); }; } &&
20751          { ac_try='test -s conftest.$ac_objext'
20752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753   (eval $ac_try) 2>&5
20754   ac_status=$?
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); }; }; then
20757   gdb_cv_struct_lwp=yes
20758 else
20759   echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20761
20762 gdb_cv_struct_lwp=no
20763 fi
20764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20765 fi
20766 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20767 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
20768 if test $gdb_cv_struct_lwp = yes; then
20769
20770 cat >>confdefs.h <<\_ACEOF
20771 #define HAVE_STRUCT_LWP 1
20772 _ACEOF
20773
20774 fi
20775
20776 # See if <machine/reg.h> degines `struct reg'.
20777 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20778 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
20779 if test "${gdb_cv_struct_reg+set}" = set; then
20780   echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782   cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h.  */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h.  */
20788 #include <sys/types.h>
20789 #include <machine/reg.h>
20790 int
20791 main ()
20792 {
20793 struct reg r;
20794   ;
20795   return 0;
20796 }
20797 _ACEOF
20798 rm -f conftest.$ac_objext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20800   (eval $ac_compile) 2>conftest.er1
20801   ac_status=$?
20802   grep -v '^ *+' conftest.er1 >conftest.err
20803   rm -f conftest.er1
20804   cat conftest.err >&5
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); } &&
20807          { ac_try='test -z "$ac_c_werror_flag"
20808                          || test ! -s conftest.err'
20809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810   (eval $ac_try) 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; } &&
20814          { ac_try='test -s conftest.$ac_objext'
20815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816   (eval $ac_try) 2>&5
20817   ac_status=$?
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); }; }; then
20820   gdb_cv_struct_reg=yes
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825 gdb_cv_struct_reg=no
20826 fi
20827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20828 fi
20829 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20830 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
20831 if test $gdb_cv_struct_reg = yes; then
20832
20833 cat >>confdefs.h <<\_ACEOF
20834 #define HAVE_STRUCT_REG 1
20835 _ACEOF
20836
20837 fi
20838
20839 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20840 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
20841 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20842 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
20843 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
20844   echo $ECHO_N "(cached) $ECHO_C" >&6
20845 else
20846   cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 #include <machine/reg.h>
20853
20854 int
20855 main ()
20856 {
20857 static struct reg ac_aggr;
20858 if (ac_aggr.r_fs)
20859 return 0;
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext
20865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20866   (eval $ac_compile) 2>conftest.er1
20867   ac_status=$?
20868   grep -v '^ *+' conftest.er1 >conftest.err
20869   rm -f conftest.er1
20870   cat conftest.err >&5
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); } &&
20873          { ac_try='test -z "$ac_c_werror_flag"
20874                          || test ! -s conftest.err'
20875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876   (eval $ac_try) 2>&5
20877   ac_status=$?
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); }; } &&
20880          { ac_try='test -s conftest.$ac_objext'
20881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882   (eval $ac_try) 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); }; }; then
20886   ac_cv_member_struct_reg_r_fs=yes
20887 else
20888   echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891 cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h.  */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h.  */
20897 #include <machine/reg.h>
20898
20899 int
20900 main ()
20901 {
20902 static struct reg ac_aggr;
20903 if (sizeof ac_aggr.r_fs)
20904 return 0;
20905   ;
20906   return 0;
20907 }
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20911   (eval $ac_compile) 2>conftest.er1
20912   ac_status=$?
20913   grep -v '^ *+' conftest.er1 >conftest.err
20914   rm -f conftest.er1
20915   cat conftest.err >&5
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); } &&
20918          { ac_try='test -z "$ac_c_werror_flag"
20919                          || test ! -s conftest.err'
20920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921   (eval $ac_try) 2>&5
20922   ac_status=$?
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); }; } &&
20925          { ac_try='test -s conftest.$ac_objext'
20926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927   (eval $ac_try) 2>&5
20928   ac_status=$?
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); }; }; then
20931   ac_cv_member_struct_reg_r_fs=yes
20932 else
20933   echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 ac_cv_member_struct_reg_r_fs=no
20937 fi
20938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20939 fi
20940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20941 fi
20942 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20943 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
20944 if test $ac_cv_member_struct_reg_r_fs = yes; then
20945
20946 cat >>confdefs.h <<_ACEOF
20947 #define HAVE_STRUCT_REG_R_FS 1
20948 _ACEOF
20949
20950
20951 fi
20952 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20953 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
20954 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
20955   echo $ECHO_N "(cached) $ECHO_C" >&6
20956 else
20957   cat >conftest.$ac_ext <<_ACEOF
20958 /* confdefs.h.  */
20959 _ACEOF
20960 cat confdefs.h >>conftest.$ac_ext
20961 cat >>conftest.$ac_ext <<_ACEOF
20962 /* end confdefs.h.  */
20963 #include <machine/reg.h>
20964
20965 int
20966 main ()
20967 {
20968 static struct reg ac_aggr;
20969 if (ac_aggr.r_gs)
20970 return 0;
20971   ;
20972   return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977   (eval $ac_compile) 2>conftest.er1
20978   ac_status=$?
20979   grep -v '^ *+' conftest.er1 >conftest.err
20980   rm -f conftest.er1
20981   cat conftest.err >&5
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); } &&
20984          { ac_try='test -z "$ac_c_werror_flag"
20985                          || test ! -s conftest.err'
20986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987   (eval $ac_try) 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); }; } &&
20991          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20997   ac_cv_member_struct_reg_r_gs=yes
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002 cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 #include <machine/reg.h>
21009
21010 int
21011 main ()
21012 {
21013 static struct reg ac_aggr;
21014 if (sizeof ac_aggr.r_gs)
21015 return 0;
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022   (eval $ac_compile) 2>conftest.er1
21023   ac_status=$?
21024   grep -v '^ *+' conftest.er1 >conftest.err
21025   rm -f conftest.er1
21026   cat conftest.err >&5
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } &&
21029          { ac_try='test -z "$ac_c_werror_flag"
21030                          || test ! -s conftest.err'
21031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032   (eval $ac_try) 2>&5
21033   ac_status=$?
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); }; } &&
21036          { ac_try='test -s conftest.$ac_objext'
21037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038   (eval $ac_try) 2>&5
21039   ac_status=$?
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); }; }; then
21042   ac_cv_member_struct_reg_r_gs=yes
21043 else
21044   echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047 ac_cv_member_struct_reg_r_gs=no
21048 fi
21049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21050 fi
21051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21052 fi
21053 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21054 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
21055 if test $ac_cv_member_struct_reg_r_gs = yes; then
21056
21057 cat >>confdefs.h <<_ACEOF
21058 #define HAVE_STRUCT_REG_R_GS 1
21059 _ACEOF
21060
21061
21062 fi
21063
21064
21065 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
21066 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21067 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
21068 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
21069   echo $ECHO_N "(cached) $ECHO_C" >&6
21070 else
21071   cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 #include <sys/ptrace.h>
21078 int
21079 main ()
21080 {
21081 PTRACE_GETREGS;
21082   ;
21083   return 0;
21084 }
21085 _ACEOF
21086 rm -f conftest.$ac_objext
21087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088   (eval $ac_compile) 2>conftest.er1
21089   ac_status=$?
21090   grep -v '^ *+' conftest.er1 >conftest.err
21091   rm -f conftest.er1
21092   cat conftest.err >&5
21093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094   (exit $ac_status); } &&
21095          { ac_try='test -z "$ac_c_werror_flag"
21096                          || test ! -s conftest.err'
21097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098   (eval $ac_try) 2>&5
21099   ac_status=$?
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); }; } &&
21102          { ac_try='test -s conftest.$ac_objext'
21103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104   (eval $ac_try) 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); }; }; then
21108   gdb_cv_have_ptrace_getregs=yes
21109 else
21110   echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21112
21113 gdb_cv_have_ptrace_getregs=no
21114 fi
21115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21116 fi
21117
21118 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21119 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
21120 if test $gdb_cv_have_ptrace_getregs = yes; then
21121
21122 cat >>confdefs.h <<\_ACEOF
21123 #define HAVE_PTRACE_GETREGS 1
21124 _ACEOF
21125
21126 fi
21127
21128 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
21129 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21130 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
21131 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
21132   echo $ECHO_N "(cached) $ECHO_C" >&6
21133 else
21134   cat >conftest.$ac_ext <<_ACEOF
21135 /* confdefs.h.  */
21136 _ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h.  */
21140 #include <sys/ptrace.h>
21141 int
21142 main ()
21143 {
21144 PTRACE_GETFPXREGS;
21145   ;
21146   return 0;
21147 }
21148 _ACEOF
21149 rm -f conftest.$ac_objext
21150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21151   (eval $ac_compile) 2>conftest.er1
21152   ac_status=$?
21153   grep -v '^ *+' conftest.er1 >conftest.err
21154   rm -f conftest.er1
21155   cat conftest.err >&5
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); } &&
21158          { ac_try='test -z "$ac_c_werror_flag"
21159                          || test ! -s conftest.err'
21160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161   (eval $ac_try) 2>&5
21162   ac_status=$?
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); }; } &&
21165          { ac_try='test -s conftest.$ac_objext'
21166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); }; }; then
21171   gdb_cv_have_ptrace_getfpxregs=yes
21172 else
21173   echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21175
21176 gdb_cv_have_ptrace_getfpxregs=no
21177 fi
21178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21179 fi
21180
21181 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21182 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
21183 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
21184
21185 cat >>confdefs.h <<\_ACEOF
21186 #define HAVE_PTRACE_GETFPXREGS 1
21187 _ACEOF
21188
21189 fi
21190
21191 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
21192 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21193 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
21194 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
21195   echo $ECHO_N "(cached) $ECHO_C" >&6
21196 else
21197   cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 #include <sys/types.h>
21204 #include <sys/ptrace.h>
21205 int
21206 main ()
21207 {
21208 PT_GETDBREGS;
21209   ;
21210   return 0;
21211 }
21212 _ACEOF
21213 rm -f conftest.$ac_objext
21214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21215   (eval $ac_compile) 2>conftest.er1
21216   ac_status=$?
21217   grep -v '^ *+' conftest.er1 >conftest.err
21218   rm -f conftest.er1
21219   cat conftest.err >&5
21220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221   (exit $ac_status); } &&
21222          { ac_try='test -z "$ac_c_werror_flag"
21223                          || test ! -s conftest.err'
21224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225   (eval $ac_try) 2>&5
21226   ac_status=$?
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); }; } &&
21229          { ac_try='test -s conftest.$ac_objext'
21230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231   (eval $ac_try) 2>&5
21232   ac_status=$?
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); }; }; then
21235   gdb_cv_have_pt_getdbregs=yes
21236 else
21237   echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21239
21240 gdb_cv_have_pt_getdbregs=no
21241 fi
21242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21243 fi
21244
21245 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21246 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
21247 if test $gdb_cv_have_pt_getdbregs = yes; then
21248
21249 cat >>confdefs.h <<\_ACEOF
21250 #define HAVE_PT_GETDBREGS 1
21251 _ACEOF
21252
21253 fi
21254
21255 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
21256 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21257 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
21258 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
21259   echo $ECHO_N "(cached) $ECHO_C" >&6
21260 else
21261   cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267 #include <sys/types.h>
21268 #include <sys/ptrace.h>
21269 int
21270 main ()
21271 {
21272 PT_GETXMMREGS;
21273   ;
21274   return 0;
21275 }
21276 _ACEOF
21277 rm -f conftest.$ac_objext
21278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21279   (eval $ac_compile) 2>conftest.er1
21280   ac_status=$?
21281   grep -v '^ *+' conftest.er1 >conftest.err
21282   rm -f conftest.er1
21283   cat conftest.err >&5
21284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285   (exit $ac_status); } &&
21286          { ac_try='test -z "$ac_c_werror_flag"
21287                          || test ! -s conftest.err'
21288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289   (eval $ac_try) 2>&5
21290   ac_status=$?
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); }; } &&
21293          { ac_try='test -s conftest.$ac_objext'
21294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295   (eval $ac_try) 2>&5
21296   ac_status=$?
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); }; }; then
21299   gdb_cv_have_pt_getxmmregs=yes
21300 else
21301   echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21303
21304 gdb_cv_have_pt_getxmmregs=no
21305 fi
21306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21307 fi
21308
21309 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21310 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
21311 if test $gdb_cv_have_pt_getxmmregs = yes; then
21312
21313 cat >>confdefs.h <<\_ACEOF
21314 #define HAVE_PT_GETXMMREGS 1
21315 _ACEOF
21316
21317 fi
21318
21319 # Detect which type of /proc is in use, such as for Unixware or Solaris.
21320
21321 if test "${target}" = "${host}"; then
21322   case "${host}" in
21323   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
21324
21325 cat >>confdefs.h <<\_ACEOF
21326 #define NEW_PROC_API 1
21327 _ACEOF
21328
21329       ;;
21330   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
21331
21332 cat >>confdefs.h <<\_ACEOF
21333 #define NEW_PROC_API 1
21334 _ACEOF
21335
21336       ;;
21337   mips-sgi-irix5*)
21338       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
21339
21340 cat >>confdefs.h <<\_ACEOF
21341 #define _KMEMUSER 1
21342 _ACEOF
21343
21344       ;;
21345   esac
21346 fi
21347
21348 if test "$ac_cv_header_sys_procfs_h" = yes; then
21349   echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21350 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
21351  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21352   echo $ECHO_N "(cached) $ECHO_C" >&6
21353 else
21354   cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h.  */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h.  */
21360
21361 #define _SYSCALL32
21362 #include <sys/procfs.h>
21363 int
21364 main ()
21365 {
21366 pstatus_t avar
21367   ;
21368   return 0;
21369 }
21370 _ACEOF
21371 rm -f conftest.$ac_objext
21372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21373   (eval $ac_compile) 2>conftest.er1
21374   ac_status=$?
21375   grep -v '^ *+' conftest.er1 >conftest.err
21376   rm -f conftest.er1
21377   cat conftest.err >&5
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); } &&
21380          { ac_try='test -z "$ac_c_werror_flag"
21381                          || test ! -s conftest.err'
21382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383   (eval $ac_try) 2>&5
21384   ac_status=$?
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); }; } &&
21387          { ac_try='test -s conftest.$ac_objext'
21388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389   (eval $ac_try) 2>&5
21390   ac_status=$?
21391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392   (exit $ac_status); }; }; then
21393   bfd_cv_have_sys_procfs_type_pstatus_t=yes
21394 else
21395   echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21397
21398 bfd_cv_have_sys_procfs_type_pstatus_t=no
21399
21400 fi
21401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21402 fi
21403
21404  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
21405
21406 cat >>confdefs.h <<\_ACEOF
21407 #define HAVE_PSTATUS_T 1
21408 _ACEOF
21409
21410  fi
21411  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21412 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
21413
21414   echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21415 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
21416  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21417   echo $ECHO_N "(cached) $ECHO_C" >&6
21418 else
21419   cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h.  */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h.  */
21425
21426 #define _SYSCALL32
21427 #include <sys/procfs.h>
21428 int
21429 main ()
21430 {
21431 prrun_t avar
21432   ;
21433   return 0;
21434 }
21435 _ACEOF
21436 rm -f conftest.$ac_objext
21437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21438   (eval $ac_compile) 2>conftest.er1
21439   ac_status=$?
21440   grep -v '^ *+' conftest.er1 >conftest.err
21441   rm -f conftest.er1
21442   cat conftest.err >&5
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); } &&
21445          { ac_try='test -z "$ac_c_werror_flag"
21446                          || test ! -s conftest.err'
21447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21448   (eval $ac_try) 2>&5
21449   ac_status=$?
21450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451   (exit $ac_status); }; } &&
21452          { ac_try='test -s conftest.$ac_objext'
21453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21454   (eval $ac_try) 2>&5
21455   ac_status=$?
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); }; }; then
21458   bfd_cv_have_sys_procfs_type_prrun_t=yes
21459 else
21460   echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21462
21463 bfd_cv_have_sys_procfs_type_prrun_t=no
21464
21465 fi
21466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21467 fi
21468
21469  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
21470
21471 cat >>confdefs.h <<\_ACEOF
21472 #define HAVE_PRRUN_T 1
21473 _ACEOF
21474
21475  fi
21476  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21477 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
21478
21479   echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21480 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
21481  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21482   echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484   cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490
21491 #define _SYSCALL32
21492 #include <sys/procfs.h>
21493 int
21494 main ()
21495 {
21496 gregset_t avar
21497   ;
21498   return 0;
21499 }
21500 _ACEOF
21501 rm -f conftest.$ac_objext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503   (eval $ac_compile) 2>conftest.er1
21504   ac_status=$?
21505   grep -v '^ *+' conftest.er1 >conftest.err
21506   rm -f conftest.er1
21507   cat conftest.err >&5
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } &&
21510          { ac_try='test -z "$ac_c_werror_flag"
21511                          || test ! -s conftest.err'
21512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513   (eval $ac_try) 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); }; } &&
21517          { ac_try='test -s conftest.$ac_objext'
21518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519   (eval $ac_try) 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); }; }; then
21523   bfd_cv_have_sys_procfs_type_gregset_t=yes
21524 else
21525   echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21527
21528 bfd_cv_have_sys_procfs_type_gregset_t=no
21529
21530 fi
21531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21532 fi
21533
21534  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21535
21536 cat >>confdefs.h <<\_ACEOF
21537 #define HAVE_GREGSET_T 1
21538 _ACEOF
21539
21540  fi
21541  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21542 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
21543
21544   echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21545 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
21546  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21547   echo $ECHO_N "(cached) $ECHO_C" >&6
21548 else
21549   cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h.  */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h.  */
21555
21556 #define _SYSCALL32
21557 #include <sys/procfs.h>
21558 int
21559 main ()
21560 {
21561 fpregset_t avar
21562   ;
21563   return 0;
21564 }
21565 _ACEOF
21566 rm -f conftest.$ac_objext
21567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21568   (eval $ac_compile) 2>conftest.er1
21569   ac_status=$?
21570   grep -v '^ *+' conftest.er1 >conftest.err
21571   rm -f conftest.er1
21572   cat conftest.err >&5
21573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574   (exit $ac_status); } &&
21575          { ac_try='test -z "$ac_c_werror_flag"
21576                          || test ! -s conftest.err'
21577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578   (eval $ac_try) 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); }; } &&
21582          { ac_try='test -s conftest.$ac_objext'
21583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584   (eval $ac_try) 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); }; }; then
21588   bfd_cv_have_sys_procfs_type_fpregset_t=yes
21589 else
21590   echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593 bfd_cv_have_sys_procfs_type_fpregset_t=no
21594
21595 fi
21596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21597 fi
21598
21599  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
21600
21601 cat >>confdefs.h <<\_ACEOF
21602 #define HAVE_FPREGSET_T 1
21603 _ACEOF
21604
21605  fi
21606  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21607 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
21608
21609   echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21610 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
21611  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21612   echo $ECHO_N "(cached) $ECHO_C" >&6
21613 else
21614   cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620
21621 #define _SYSCALL32
21622 #include <sys/procfs.h>
21623 int
21624 main ()
21625 {
21626 prgregset_t avar
21627   ;
21628   return 0;
21629 }
21630 _ACEOF
21631 rm -f conftest.$ac_objext
21632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21633   (eval $ac_compile) 2>conftest.er1
21634   ac_status=$?
21635   grep -v '^ *+' conftest.er1 >conftest.err
21636   rm -f conftest.er1
21637   cat conftest.err >&5
21638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639   (exit $ac_status); } &&
21640          { ac_try='test -z "$ac_c_werror_flag"
21641                          || test ! -s conftest.err'
21642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643   (eval $ac_try) 2>&5
21644   ac_status=$?
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); }; } &&
21647          { ac_try='test -s conftest.$ac_objext'
21648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649   (eval $ac_try) 2>&5
21650   ac_status=$?
21651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652   (exit $ac_status); }; }; then
21653   bfd_cv_have_sys_procfs_type_prgregset_t=yes
21654 else
21655   echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21657
21658 bfd_cv_have_sys_procfs_type_prgregset_t=no
21659
21660 fi
21661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21662 fi
21663
21664  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21665
21666 cat >>confdefs.h <<\_ACEOF
21667 #define HAVE_PRGREGSET_T 1
21668 _ACEOF
21669
21670  fi
21671  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21672 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
21673
21674   echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21675 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
21676  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21677   echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679   cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h.  */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h.  */
21685
21686 #define _SYSCALL32
21687 #include <sys/procfs.h>
21688 int
21689 main ()
21690 {
21691 prfpregset_t avar
21692   ;
21693   return 0;
21694 }
21695 _ACEOF
21696 rm -f conftest.$ac_objext
21697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21698   (eval $ac_compile) 2>conftest.er1
21699   ac_status=$?
21700   grep -v '^ *+' conftest.er1 >conftest.err
21701   rm -f conftest.er1
21702   cat conftest.err >&5
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); } &&
21705          { ac_try='test -z "$ac_c_werror_flag"
21706                          || test ! -s conftest.err'
21707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708   (eval $ac_try) 2>&5
21709   ac_status=$?
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); }; } &&
21712          { ac_try='test -s conftest.$ac_objext'
21713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714   (eval $ac_try) 2>&5
21715   ac_status=$?
21716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); }; }; then
21718   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
21719 else
21720   echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21722
21723 bfd_cv_have_sys_procfs_type_prfpregset_t=no
21724
21725 fi
21726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21727 fi
21728
21729  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21730
21731 cat >>confdefs.h <<\_ACEOF
21732 #define HAVE_PRFPREGSET_T 1
21733 _ACEOF
21734
21735  fi
21736  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21737 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
21738
21739   echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21740 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
21741  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21742   echo $ECHO_N "(cached) $ECHO_C" >&6
21743 else
21744   cat >conftest.$ac_ext <<_ACEOF
21745 /* confdefs.h.  */
21746 _ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h.  */
21750
21751 #define _SYSCALL32
21752 #include <sys/procfs.h>
21753 int
21754 main ()
21755 {
21756 prgregset32_t avar
21757   ;
21758   return 0;
21759 }
21760 _ACEOF
21761 rm -f conftest.$ac_objext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21763   (eval $ac_compile) 2>conftest.er1
21764   ac_status=$?
21765   grep -v '^ *+' conftest.er1 >conftest.err
21766   rm -f conftest.er1
21767   cat conftest.err >&5
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); } &&
21770          { ac_try='test -z "$ac_c_werror_flag"
21771                          || test ! -s conftest.err'
21772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773   (eval $ac_try) 2>&5
21774   ac_status=$?
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); }; } &&
21777          { ac_try='test -s conftest.$ac_objext'
21778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779   (eval $ac_try) 2>&5
21780   ac_status=$?
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); }; }; then
21783   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
21784 else
21785   echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21787
21788 bfd_cv_have_sys_procfs_type_prgregset32_t=no
21789
21790 fi
21791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21792 fi
21793
21794  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21795
21796 cat >>confdefs.h <<\_ACEOF
21797 #define HAVE_PRGREGSET32_T 1
21798 _ACEOF
21799
21800  fi
21801  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21802 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
21803
21804   echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21805 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
21806  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21807   echo $ECHO_N "(cached) $ECHO_C" >&6
21808 else
21809   cat >conftest.$ac_ext <<_ACEOF
21810 /* confdefs.h.  */
21811 _ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h.  */
21815
21816 #define _SYSCALL32
21817 #include <sys/procfs.h>
21818 int
21819 main ()
21820 {
21821 prfpregset32_t avar
21822   ;
21823   return 0;
21824 }
21825 _ACEOF
21826 rm -f conftest.$ac_objext
21827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21828   (eval $ac_compile) 2>conftest.er1
21829   ac_status=$?
21830   grep -v '^ *+' conftest.er1 >conftest.err
21831   rm -f conftest.er1
21832   cat conftest.err >&5
21833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834   (exit $ac_status); } &&
21835          { ac_try='test -z "$ac_c_werror_flag"
21836                          || test ! -s conftest.err'
21837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838   (eval $ac_try) 2>&5
21839   ac_status=$?
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); }; } &&
21842          { ac_try='test -s conftest.$ac_objext'
21843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21844   (eval $ac_try) 2>&5
21845   ac_status=$?
21846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847   (exit $ac_status); }; }; then
21848   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
21849 else
21850   echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21852
21853 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
21854
21855 fi
21856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21857 fi
21858
21859  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
21860
21861 cat >>confdefs.h <<\_ACEOF
21862 #define HAVE_PRFPREGSET32_T 1
21863 _ACEOF
21864
21865  fi
21866  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21867 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
21868
21869   echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21870 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
21871  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21872   echo $ECHO_N "(cached) $ECHO_C" >&6
21873 else
21874   cat >conftest.$ac_ext <<_ACEOF
21875 /* confdefs.h.  */
21876 _ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h.  */
21880
21881 #define _SYSCALL32
21882 #include <sys/procfs.h>
21883 int
21884 main ()
21885 {
21886 lwpid_t avar
21887   ;
21888   return 0;
21889 }
21890 _ACEOF
21891 rm -f conftest.$ac_objext
21892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21893   (eval $ac_compile) 2>conftest.er1
21894   ac_status=$?
21895   grep -v '^ *+' conftest.er1 >conftest.err
21896   rm -f conftest.er1
21897   cat conftest.err >&5
21898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899   (exit $ac_status); } &&
21900          { ac_try='test -z "$ac_c_werror_flag"
21901                          || test ! -s conftest.err'
21902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903   (eval $ac_try) 2>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); }; } &&
21907          { ac_try='test -s conftest.$ac_objext'
21908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909   (eval $ac_try) 2>&5
21910   ac_status=$?
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); }; }; then
21913   bfd_cv_have_sys_procfs_type_lwpid_t=yes
21914 else
21915   echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918 bfd_cv_have_sys_procfs_type_lwpid_t=no
21919
21920 fi
21921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21922 fi
21923
21924  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
21925
21926 cat >>confdefs.h <<\_ACEOF
21927 #define HAVE_LWPID_T 1
21928 _ACEOF
21929
21930  fi
21931  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21932 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
21933
21934   echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21935 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
21936  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21937   echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939   cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h.  */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h.  */
21945
21946 #define _SYSCALL32
21947 #include <sys/procfs.h>
21948 int
21949 main ()
21950 {
21951 psaddr_t avar
21952   ;
21953   return 0;
21954 }
21955 _ACEOF
21956 rm -f conftest.$ac_objext
21957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21958   (eval $ac_compile) 2>conftest.er1
21959   ac_status=$?
21960   grep -v '^ *+' conftest.er1 >conftest.err
21961   rm -f conftest.er1
21962   cat conftest.err >&5
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); } &&
21965          { ac_try='test -z "$ac_c_werror_flag"
21966                          || test ! -s conftest.err'
21967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968   (eval $ac_try) 2>&5
21969   ac_status=$?
21970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971   (exit $ac_status); }; } &&
21972          { ac_try='test -s conftest.$ac_objext'
21973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974   (eval $ac_try) 2>&5
21975   ac_status=$?
21976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977   (exit $ac_status); }; }; then
21978   bfd_cv_have_sys_procfs_type_psaddr_t=yes
21979 else
21980   echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21982
21983 bfd_cv_have_sys_procfs_type_psaddr_t=no
21984
21985 fi
21986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21987 fi
21988
21989  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
21990
21991 cat >>confdefs.h <<\_ACEOF
21992 #define HAVE_PSADDR_T 1
21993 _ACEOF
21994
21995  fi
21996  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21997 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
21998
21999   echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22000 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
22001  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22002   echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004   cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h.  */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h.  */
22010
22011 #define _SYSCALL32
22012 #include <sys/procfs.h>
22013 int
22014 main ()
22015 {
22016 prsysent_t avar
22017   ;
22018   return 0;
22019 }
22020 _ACEOF
22021 rm -f conftest.$ac_objext
22022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22023   (eval $ac_compile) 2>conftest.er1
22024   ac_status=$?
22025   grep -v '^ *+' conftest.er1 >conftest.err
22026   rm -f conftest.er1
22027   cat conftest.err >&5
22028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029   (exit $ac_status); } &&
22030          { ac_try='test -z "$ac_c_werror_flag"
22031                          || test ! -s conftest.err'
22032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033   (eval $ac_try) 2>&5
22034   ac_status=$?
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); }; } &&
22037          { ac_try='test -s conftest.$ac_objext'
22038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22039   (eval $ac_try) 2>&5
22040   ac_status=$?
22041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042   (exit $ac_status); }; }; then
22043   bfd_cv_have_sys_procfs_type_prsysent_t=yes
22044 else
22045   echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22047
22048 bfd_cv_have_sys_procfs_type_prsysent_t=no
22049
22050 fi
22051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22052 fi
22053
22054  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
22055
22056 cat >>confdefs.h <<\_ACEOF
22057 #define HAVE_PRSYSENT_T 1
22058 _ACEOF
22059
22060  fi
22061  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22062 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
22063
22064   echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22065 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
22066  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22067   echo $ECHO_N "(cached) $ECHO_C" >&6
22068 else
22069   cat >conftest.$ac_ext <<_ACEOF
22070 /* confdefs.h.  */
22071 _ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h.  */
22075
22076 #define _SYSCALL32
22077 #include <sys/procfs.h>
22078 int
22079 main ()
22080 {
22081 pr_sigset_t avar
22082   ;
22083   return 0;
22084 }
22085 _ACEOF
22086 rm -f conftest.$ac_objext
22087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22088   (eval $ac_compile) 2>conftest.er1
22089   ac_status=$?
22090   grep -v '^ *+' conftest.er1 >conftest.err
22091   rm -f conftest.er1
22092   cat conftest.err >&5
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); } &&
22095          { ac_try='test -z "$ac_c_werror_flag"
22096                          || test ! -s conftest.err'
22097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098   (eval $ac_try) 2>&5
22099   ac_status=$?
22100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101   (exit $ac_status); }; } &&
22102          { ac_try='test -s conftest.$ac_objext'
22103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104   (eval $ac_try) 2>&5
22105   ac_status=$?
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); }; }; then
22108   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
22109 else
22110   echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
22114
22115 fi
22116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22117 fi
22118
22119  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
22120
22121 cat >>confdefs.h <<\_ACEOF
22122 #define HAVE_PR_SIGSET_T 1
22123 _ACEOF
22124
22125  fi
22126  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22127 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
22128
22129   echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22130 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
22131  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22132   echo $ECHO_N "(cached) $ECHO_C" >&6
22133 else
22134   cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h.  */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h.  */
22140
22141 #define _SYSCALL32
22142 #include <sys/procfs.h>
22143 int
22144 main ()
22145 {
22146 pr_sigaction64_t avar
22147   ;
22148   return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest.$ac_objext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22153   (eval $ac_compile) 2>conftest.er1
22154   ac_status=$?
22155   grep -v '^ *+' conftest.er1 >conftest.err
22156   rm -f conftest.er1
22157   cat conftest.err >&5
22158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159   (exit $ac_status); } &&
22160          { ac_try='test -z "$ac_c_werror_flag"
22161                          || test ! -s conftest.err'
22162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163   (eval $ac_try) 2>&5
22164   ac_status=$?
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); }; } &&
22167          { ac_try='test -s conftest.$ac_objext'
22168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169   (eval $ac_try) 2>&5
22170   ac_status=$?
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); }; }; then
22173   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
22174 else
22175   echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22177
22178 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
22179
22180 fi
22181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22182 fi
22183
22184  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
22185
22186 cat >>confdefs.h <<\_ACEOF
22187 #define HAVE_PR_SIGACTION64_T 1
22188 _ACEOF
22189
22190  fi
22191  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22192 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
22193
22194   echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22195 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
22196  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22197   echo $ECHO_N "(cached) $ECHO_C" >&6
22198 else
22199   cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h.  */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h.  */
22205
22206 #define _SYSCALL32
22207 #include <sys/procfs.h>
22208 int
22209 main ()
22210 {
22211 pr_siginfo64_t avar
22212   ;
22213   return 0;
22214 }
22215 _ACEOF
22216 rm -f conftest.$ac_objext
22217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22218   (eval $ac_compile) 2>conftest.er1
22219   ac_status=$?
22220   grep -v '^ *+' conftest.er1 >conftest.err
22221   rm -f conftest.er1
22222   cat conftest.err >&5
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); } &&
22225          { ac_try='test -z "$ac_c_werror_flag"
22226                          || test ! -s conftest.err'
22227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228   (eval $ac_try) 2>&5
22229   ac_status=$?
22230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231   (exit $ac_status); }; } &&
22232          { ac_try='test -s conftest.$ac_objext'
22233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234   (eval $ac_try) 2>&5
22235   ac_status=$?
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); }; }; then
22238   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22239 else
22240   echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22242
22243 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
22244
22245 fi
22246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22247 fi
22248
22249  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
22250
22251 cat >>confdefs.h <<\_ACEOF
22252 #define HAVE_PR_SIGINFO64_T 1
22253 _ACEOF
22254
22255  fi
22256  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22257 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
22258
22259
22260
22261
22262
22263   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22264     echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22265 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
22266     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22267   echo $ECHO_N "(cached) $ECHO_C" >&6
22268 else
22269   if test "$cross_compiling" = yes; then
22270   gdb_cv_prfpregset_t_broken=yes
22271 else
22272   cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h.  */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h.  */
22278 #include <sys/procfs.h>
22279        int main ()
22280        {
22281          if (sizeof (prfpregset_t) == sizeof (void *))
22282            return 1;
22283          return 0;
22284        }
22285 _ACEOF
22286 rm -f conftest$ac_exeext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22288   (eval $ac_link) 2>&5
22289   ac_status=$?
22290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293   (eval $ac_try) 2>&5
22294   ac_status=$?
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); }; }; then
22297   gdb_cv_prfpregset_t_broken=no
22298 else
22299   echo "$as_me: program exited with status $ac_status" >&5
22300 echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22302
22303 ( exit $ac_status )
22304 gdb_cv_prfpregset_t_broken=yes
22305 fi
22306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22307 fi
22308 fi
22309
22310     echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22311 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
22312     if test $gdb_cv_prfpregset_t_broken = yes; then
22313
22314 cat >>confdefs.h <<\_ACEOF
22315 #define PRFPREGSET_T_BROKEN 1
22316 _ACEOF
22317
22318     fi
22319   fi
22320
22321
22322   echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22323 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
22324   if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22325   echo $ECHO_N "(cached) $ECHO_C" >&6
22326 else
22327   cat >conftest.$ac_ext <<_ACEOF
22328 /* confdefs.h.  */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h.  */
22333 #include <unistd.h>
22334 #include <sys/types.h>
22335 #include <sys/procfs.h>
22336
22337 int
22338 main ()
22339 {
22340
22341     int dummy;;
22342     dummy = ioctl(0, PIOCSET, &dummy);
22343
22344   ;
22345   return 0;
22346 }
22347 _ACEOF
22348 rm -f conftest.$ac_objext
22349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22350   (eval $ac_compile) 2>conftest.er1
22351   ac_status=$?
22352   grep -v '^ *+' conftest.er1 >conftest.err
22353   rm -f conftest.er1
22354   cat conftest.err >&5
22355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356   (exit $ac_status); } &&
22357          { ac_try='test -z "$ac_c_werror_flag"
22358                          || test ! -s conftest.err'
22359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22360   (eval $ac_try) 2>&5
22361   ac_status=$?
22362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363   (exit $ac_status); }; } &&
22364          { ac_try='test -s conftest.$ac_objext'
22365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366   (eval $ac_try) 2>&5
22367   ac_status=$?
22368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); }; }; then
22370   gdb_cv_have_procfs_piocset=yes
22371 else
22372   echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22374
22375 gdb_cv_have_procfs_piocset=no
22376 fi
22377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22378 fi
22379
22380   echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22381 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
22382   if test $gdb_cv_have_procfs_piocset = yes; then
22383
22384 cat >>confdefs.h <<\_ACEOF
22385 #define HAVE_PROCFS_PIOCSET 1
22386 _ACEOF
22387
22388   fi
22389 fi
22390
22391 if test ${host} = ${target} ; then
22392
22393   echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22394 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
22395   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22396   echo $ECHO_N "(cached) $ECHO_C" >&6
22397 else
22398   cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h.  */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h.  */
22404 #include <link.h>
22405 int
22406 main ()
22407 {
22408 struct link_map lm; (void) lm.l_addr;
22409   ;
22410   return 0;
22411 }
22412 _ACEOF
22413 rm -f conftest.$ac_objext
22414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22415   (eval $ac_compile) 2>conftest.er1
22416   ac_status=$?
22417   grep -v '^ *+' conftest.er1 >conftest.err
22418   rm -f conftest.er1
22419   cat conftest.err >&5
22420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421   (exit $ac_status); } &&
22422          { ac_try='test -z "$ac_c_werror_flag"
22423                          || test ! -s conftest.err'
22424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425   (eval $ac_try) 2>&5
22426   ac_status=$?
22427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428   (exit $ac_status); }; } &&
22429          { ac_try='test -s conftest.$ac_objext'
22430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431   (eval $ac_try) 2>&5
22432   ac_status=$?
22433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434   (exit $ac_status); }; }; then
22435   gdb_cv_have_struct_link_map_with_l_members=yes
22436 else
22437   echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22439
22440 gdb_cv_have_struct_link_map_with_l_members=no
22441 fi
22442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22443 fi
22444
22445   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22446 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
22447   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
22448
22449 cat >>confdefs.h <<\_ACEOF
22450 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
22451 _ACEOF
22452
22453   fi
22454
22455
22456   echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22457 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
22458   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22459   echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461   cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467 #include <sys/types.h>
22468 #include <link.h>
22469 int
22470 main ()
22471 {
22472 struct link_map lm; (void) lm.lm_addr;
22473   ;
22474   return 0;
22475 }
22476 _ACEOF
22477 rm -f conftest.$ac_objext
22478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22479   (eval $ac_compile) 2>conftest.er1
22480   ac_status=$?
22481   grep -v '^ *+' conftest.er1 >conftest.err
22482   rm -f conftest.er1
22483   cat conftest.err >&5
22484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); } &&
22486          { ac_try='test -z "$ac_c_werror_flag"
22487                          || test ! -s conftest.err'
22488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489   (eval $ac_try) 2>&5
22490   ac_status=$?
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); }; } &&
22493          { ac_try='test -s conftest.$ac_objext'
22494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495   (eval $ac_try) 2>&5
22496   ac_status=$?
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); }; }; then
22499   gdb_cv_have_struct_link_map_with_lm_members=yes
22500 else
22501   echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22503
22504 gdb_cv_have_struct_link_map_with_lm_members=no
22505 fi
22506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22507 fi
22508
22509   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22510 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
22511   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
22512
22513 cat >>confdefs.h <<\_ACEOF
22514 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
22515 _ACEOF
22516
22517   fi
22518
22519
22520   echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22521 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
22522   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22523   echo $ECHO_N "(cached) $ECHO_C" >&6
22524 else
22525   cat >conftest.$ac_ext <<_ACEOF
22526 /* confdefs.h.  */
22527 _ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h.  */
22531 #include <sys/types.h>
22532 #ifdef HAVE_NLIST_H
22533 #include <nlist.h>
22534 #endif
22535 #include <link.h>
22536 int
22537 main ()
22538 {
22539 struct so_map lm; (void) lm.som_addr;
22540   ;
22541   return 0;
22542 }
22543 _ACEOF
22544 rm -f conftest.$ac_objext
22545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22546   (eval $ac_compile) 2>conftest.er1
22547   ac_status=$?
22548   grep -v '^ *+' conftest.er1 >conftest.err
22549   rm -f conftest.er1
22550   cat conftest.err >&5
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); } &&
22553          { ac_try='test -z "$ac_c_werror_flag"
22554                          || test ! -s conftest.err'
22555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556   (eval $ac_try) 2>&5
22557   ac_status=$?
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); }; } &&
22560          { ac_try='test -s conftest.$ac_objext'
22561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562   (eval $ac_try) 2>&5
22563   ac_status=$?
22564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565   (exit $ac_status); }; }; then
22566   gdb_cv_have_struct_so_map_with_som_members=yes
22567 else
22568   echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22570
22571 gdb_cv_have_struct_so_map_with_som_members=no
22572 fi
22573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22574 fi
22575
22576   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22577 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
22578   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
22579
22580 cat >>confdefs.h <<\_ACEOF
22581 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
22582 _ACEOF
22583
22584   fi
22585
22586
22587   echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22588 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
22589   if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22590   echo $ECHO_N "(cached) $ECHO_C" >&6
22591 else
22592   cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h.  */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h.  */
22598 #define _SYSCALL32
22599 #include <sys/link.h>
22600 int
22601 main ()
22602 {
22603 struct link_map32 l;
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext
22609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610   (eval $ac_compile) 2>conftest.er1
22611   ac_status=$?
22612   grep -v '^ *+' conftest.er1 >conftest.err
22613   rm -f conftest.er1
22614   cat conftest.err >&5
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); } &&
22617          { ac_try='test -z "$ac_c_werror_flag"
22618                          || test ! -s conftest.err'
22619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620   (eval $ac_try) 2>&5
22621   ac_status=$?
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); }; } &&
22624          { ac_try='test -s conftest.$ac_objext'
22625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626   (eval $ac_try) 2>&5
22627   ac_status=$?
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); }; }; then
22630   gdb_cv_have_struct_link_map32=yes
22631 else
22632   echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22634
22635 gdb_cv_have_struct_link_map32=no
22636 fi
22637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22638 fi
22639
22640   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22641 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
22642   if test $gdb_cv_have_struct_link_map32 = yes; then
22643
22644 cat >>confdefs.h <<\_ACEOF
22645 #define HAVE_STRUCT_LINK_MAP32 1
22646 _ACEOF
22647
22648
22649 cat >>confdefs.h <<\_ACEOF
22650 #define _SYSCALL32 1
22651 _ACEOF
22652
22653   fi
22654 fi
22655
22656 # Check if the compiler supports the `long long' type.
22657
22658 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22659 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
22660 if test "${gdb_cv_c_long_long+set}" = set; then
22661   echo $ECHO_N "(cached) $ECHO_C" >&6
22662 else
22663   cat >conftest.$ac_ext <<_ACEOF
22664 /* confdefs.h.  */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h.  */
22669 extern long long foo;
22670 int
22671 main ()
22672 {
22673 switch (foo & 2) { case 0: return 1; }
22674   ;
22675   return 0;
22676 }
22677 _ACEOF
22678 rm -f conftest.$ac_objext
22679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22680   (eval $ac_compile) 2>conftest.er1
22681   ac_status=$?
22682   grep -v '^ *+' conftest.er1 >conftest.err
22683   rm -f conftest.er1
22684   cat conftest.err >&5
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); } &&
22687          { ac_try='test -z "$ac_c_werror_flag"
22688                          || test ! -s conftest.err'
22689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690   (eval $ac_try) 2>&5
22691   ac_status=$?
22692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693   (exit $ac_status); }; } &&
22694          { ac_try='test -s conftest.$ac_objext'
22695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22696   (eval $ac_try) 2>&5
22697   ac_status=$?
22698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699   (exit $ac_status); }; }; then
22700   gdb_cv_c_long_long=yes
22701 else
22702   echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22704
22705 gdb_cv_c_long_long=no
22706 fi
22707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22708 fi
22709 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22710 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
22711 if test $gdb_cv_c_long_long = yes; then
22712
22713 cat >>confdefs.h <<\_ACEOF
22714 #define CC_HAS_LONG_LONG 1
22715 _ACEOF
22716
22717 fi
22718
22719 # Check if the compiler and runtime support printing long longs.
22720
22721 echo "$as_me:$LINENO: checking for long long support in printf" >&5
22722 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
22723 if test "${gdb_cv_printf_has_long_long+set}" = set; then
22724   echo $ECHO_N "(cached) $ECHO_C" >&6
22725 else
22726   if test "$cross_compiling" = yes; then
22727   gdb_cv_printf_has_long_long=no
22728 else
22729   cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h.  */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h.  */
22735 $ac_includes_default
22736 int
22737 main ()
22738 {
22739 char buf[32];
22740   long long l = 0;
22741   l = (l << 16) + 0x0123;
22742   l = (l << 16) + 0x4567;
22743   l = (l << 16) + 0x89ab;
22744   l = (l << 16) + 0xcdef;
22745   sprintf (buf, "0x%016llx", l);
22746   return (strcmp ("0x0123456789abcdef", buf));
22747   ;
22748   return 0;
22749 }
22750 _ACEOF
22751 rm -f conftest$ac_exeext
22752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22753   (eval $ac_link) 2>&5
22754   ac_status=$?
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758   (eval $ac_try) 2>&5
22759   ac_status=$?
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); }; }; then
22762   gdb_cv_printf_has_long_long=yes
22763 else
22764   echo "$as_me: program exited with status $ac_status" >&5
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767
22768 ( exit $ac_status )
22769 gdb_cv_printf_has_long_long=no
22770 fi
22771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22772 fi
22773 fi
22774 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22775 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
22776 if test $gdb_cv_printf_has_long_long = yes; then
22777
22778 cat >>confdefs.h <<\_ACEOF
22779 #define PRINTF_HAS_LONG_LONG 1
22780 _ACEOF
22781
22782 fi
22783
22784 # Check if the compiler and runtime support printing decfloats.
22785
22786 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
22787 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
22788 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
22789   echo $ECHO_N "(cached) $ECHO_C" >&6
22790 else
22791   if test "$cross_compiling" = yes; then
22792   gdb_cv_printf_has_decfloat=no
22793 else
22794   cat >conftest.$ac_ext <<_ACEOF
22795 /* confdefs.h.  */
22796 _ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h.  */
22800 $ac_includes_default
22801 int
22802 main ()
22803 {
22804 char buf[64];
22805   _Decimal32 d32 = 1.2345df;
22806   _Decimal64 d64 = 1.2345dd;
22807   _Decimal128 d128 = 1.2345dl;
22808   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
22809   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
22810   ;
22811   return 0;
22812 }
22813 _ACEOF
22814 rm -f conftest$ac_exeext
22815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22816   (eval $ac_link) 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821   (eval $ac_try) 2>&5
22822   ac_status=$?
22823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824   (exit $ac_status); }; }; then
22825   gdb_cv_printf_has_decfloat=yes
22826 else
22827   echo "$as_me: program exited with status $ac_status" >&5
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831 ( exit $ac_status )
22832 gdb_cv_printf_has_decfloat=no
22833 fi
22834 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22835 fi
22836 fi
22837 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
22838 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
22839 if test $gdb_cv_printf_has_decfloat = yes; then
22840
22841 cat >>confdefs.h <<\_ACEOF
22842 #define PRINTF_HAS_DECFLOAT 1
22843 _ACEOF
22844
22845 fi
22846
22847 # Check if the compiler supports the `long double' type.  We can't use
22848 # AC_C_LONG_DOUBLE because that one does additional checks on the
22849 # constants defined in <float.h> that fail on some systems,
22850 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
22851
22852 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22853 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
22854 if test "${gdb_cv_c_long_double+set}" = set; then
22855   echo $ECHO_N "(cached) $ECHO_C" >&6
22856 else
22857   cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h.  */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h.  */
22863 long double foo;
22864 _ACEOF
22865 rm -f conftest.$ac_objext
22866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22867   (eval $ac_compile) 2>conftest.er1
22868   ac_status=$?
22869   grep -v '^ *+' conftest.er1 >conftest.err
22870   rm -f conftest.er1
22871   cat conftest.err >&5
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); } &&
22874          { ac_try='test -z "$ac_c_werror_flag"
22875                          || test ! -s conftest.err'
22876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877   (eval $ac_try) 2>&5
22878   ac_status=$?
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); }; } &&
22881          { ac_try='test -s conftest.$ac_objext'
22882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883   (eval $ac_try) 2>&5
22884   ac_status=$?
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); }; }; then
22887   gdb_cv_c_long_double=yes
22888 else
22889   echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22891
22892 gdb_cv_c_long_double=no
22893 fi
22894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22895 fi
22896 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22897 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
22898 if test $gdb_cv_c_long_double = yes; then
22899
22900 cat >>confdefs.h <<\_ACEOF
22901 #define HAVE_LONG_DOUBLE 1
22902 _ACEOF
22903
22904 fi
22905
22906 # Check if the compiler and runtime support printing long doubles.
22907
22908 echo "$as_me:$LINENO: checking for long double support in printf" >&5
22909 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
22910 if test "${gdb_cv_printf_has_long_double+set}" = set; then
22911   echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913   if test "$cross_compiling" = yes; then
22914   gdb_cv_printf_has_long_double=no
22915 else
22916   cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h.  */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h.  */
22922 $ac_includes_default
22923 int
22924 main ()
22925 {
22926 char buf[16];
22927   long double f = 3.141592653;
22928   sprintf (buf, "%Lg", f);
22929   return (strncmp ("3.14159", buf, 7));
22930   ;
22931   return 0;
22932 }
22933 _ACEOF
22934 rm -f conftest$ac_exeext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936   (eval $ac_link) 2>&5
22937   ac_status=$?
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941   (eval $ac_try) 2>&5
22942   ac_status=$?
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); }; }; then
22945   gdb_cv_printf_has_long_double=yes
22946 else
22947   echo "$as_me: program exited with status $ac_status" >&5
22948 echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22950
22951 ( exit $ac_status )
22952 gdb_cv_printf_has_long_double=no
22953 fi
22954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22955 fi
22956 fi
22957 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22958 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
22959 if test $gdb_cv_printf_has_long_double = yes; then
22960
22961 cat >>confdefs.h <<\_ACEOF
22962 #define PRINTF_HAS_LONG_DOUBLE 1
22963 _ACEOF
22964
22965 fi
22966
22967 # Check if the compiler and runtime support scanning long doubles.
22968
22969 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22970 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
22971 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22972   echo $ECHO_N "(cached) $ECHO_C" >&6
22973 else
22974   if test "$cross_compiling" = yes; then
22975   gdb_cv_scanf_has_long_double=no
22976 else
22977   cat >conftest.$ac_ext <<_ACEOF
22978 /* confdefs.h.  */
22979 _ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h.  */
22983 #include <stdio.h>
22984 int
22985 main ()
22986 {
22987 char *buf = "3.141592653";
22988   long double f = 0;
22989   sscanf (buf, "%Lg", &f);
22990   return !(f > 3.14159 && f < 3.14160);
22991   ;
22992   return 0;
22993 }
22994 _ACEOF
22995 rm -f conftest$ac_exeext
22996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22997   (eval $ac_link) 2>&5
22998   ac_status=$?
22999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002   (eval $ac_try) 2>&5
23003   ac_status=$?
23004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005   (exit $ac_status); }; }; then
23006   gdb_cv_scanf_has_long_double=yes
23007 else
23008   echo "$as_me: program exited with status $ac_status" >&5
23009 echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23011
23012 ( exit $ac_status )
23013 gdb_cv_scanf_has_long_double=no
23014 fi
23015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23016 fi
23017 fi
23018 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23019 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
23020 if test $gdb_cv_scanf_has_long_double = yes; then
23021
23022 cat >>confdefs.h <<\_ACEOF
23023 #define SCANF_HAS_LONG_DOUBLE 1
23024 _ACEOF
23025
23026 fi
23027
23028 case ${host_os} in
23029 aix*)
23030   echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23031 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
23032 if test "${gdb_cv_bigtoc+set}" = set; then
23033   echo $ECHO_N "(cached) $ECHO_C" >&6
23034 else
23035
23036     SAVE_LDFLAGS=$LDFLAGS
23037
23038     case $GCC in
23039     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23040     *) gdb_cv_bigtoc=-bbigtoc ;;
23041     esac
23042
23043     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
23044     cat >conftest.$ac_ext <<_ACEOF
23045 /* confdefs.h.  */
23046 _ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h.  */
23050
23051 int
23052 main ()
23053 {
23054 int i;
23055   ;
23056   return 0;
23057 }
23058 _ACEOF
23059 rm -f conftest.$ac_objext conftest$ac_exeext
23060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23061   (eval $ac_link) 2>conftest.er1
23062   ac_status=$?
23063   grep -v '^ *+' conftest.er1 >conftest.err
23064   rm -f conftest.er1
23065   cat conftest.err >&5
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } &&
23068          { ac_try='test -z "$ac_c_werror_flag"
23069                          || test ! -s conftest.err'
23070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071   (eval $ac_try) 2>&5
23072   ac_status=$?
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); }; } &&
23075          { ac_try='test -s conftest$ac_exeext'
23076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077   (eval $ac_try) 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; }; then
23081   :
23082 else
23083   echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086 gdb_cv_bigtoc=
23087 fi
23088 rm -f conftest.err conftest.$ac_objext \
23089       conftest$ac_exeext conftest.$ac_ext
23090     LDFLAGS="${SAVE_LDFLAGS}"
23091
23092 fi
23093 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23094 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
23095   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23096   ;;
23097 esac
23098
23099
23100
23101 if test ${build} = ${host} -a ${host} = ${target} ; then
23102    case ${host_os} in
23103    hpux*)
23104       echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23105 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
23106       if test -f /usr/include/dce/cma_config.h ; then
23107          if test "$GCC" = "yes" ; then
23108             echo "$as_me:$LINENO: result: yes" >&5
23109 echo "${ECHO_T}yes" >&6
23110
23111 cat >>confdefs.h <<\_ACEOF
23112 #define HAVE_HPUX_THREAD_SUPPORT 1
23113 _ACEOF
23114
23115             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
23116             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23117          else
23118             echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23119 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
23120          fi
23121       else
23122          echo "$as_me:$LINENO: result: no" >&5
23123 echo "${ECHO_T}no" >&6
23124       fi
23125       ;;
23126    solaris*)
23127       # See if thread_db library is around for Solaris thread debugging.
23128       # Note that we must explicitly test for version 1 of the library
23129       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23130       # the same API.
23131       echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23132 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
23133       if test -f /usr/lib/libthread_db.so.1 ; then
23134          echo "$as_me:$LINENO: result: yes" >&5
23135 echo "${ECHO_T}yes" >&6
23136
23137 cat >>confdefs.h <<\_ACEOF
23138 #define HAVE_THREAD_DB_LIB 1
23139 _ACEOF
23140
23141          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
23142          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
23143
23144 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23147   echo $ECHO_N "(cached) $ECHO_C" >&6
23148 else
23149   ac_check_lib_save_LIBS=$LIBS
23150 LIBS="-ldl  $LIBS"
23151 cat >conftest.$ac_ext <<_ACEOF
23152 /* confdefs.h.  */
23153 _ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h.  */
23157
23158 /* Override any gcc2 internal prototype to avoid an error.  */
23159 #ifdef __cplusplus
23160 extern "C"
23161 #endif
23162 /* We use char because int might match the return type of a gcc2
23163    builtin and then its argument prototype would still apply.  */
23164 char dlopen ();
23165 int
23166 main ()
23167 {
23168 dlopen ();
23169   ;
23170   return 0;
23171 }
23172 _ACEOF
23173 rm -f conftest.$ac_objext conftest$ac_exeext
23174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23175   (eval $ac_link) 2>conftest.er1
23176   ac_status=$?
23177   grep -v '^ *+' conftest.er1 >conftest.err
23178   rm -f conftest.er1
23179   cat conftest.err >&5
23180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181   (exit $ac_status); } &&
23182          { ac_try='test -z "$ac_c_werror_flag"
23183                          || test ! -s conftest.err'
23184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185   (eval $ac_try) 2>&5
23186   ac_status=$?
23187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188   (exit $ac_status); }; } &&
23189          { ac_try='test -s conftest$ac_exeext'
23190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191   (eval $ac_try) 2>&5
23192   ac_status=$?
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); }; }; then
23195   ac_cv_lib_dl_dlopen=yes
23196 else
23197   echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23199
23200 ac_cv_lib_dl_dlopen=no
23201 fi
23202 rm -f conftest.err conftest.$ac_objext \
23203       conftest$ac_exeext conftest.$ac_ext
23204 LIBS=$ac_check_lib_save_LIBS
23205 fi
23206 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23208 if test $ac_cv_lib_dl_dlopen = yes; then
23209   cat >>confdefs.h <<_ACEOF
23210 #define HAVE_LIBDL 1
23211 _ACEOF
23212
23213   LIBS="-ldl $LIBS"
23214
23215 fi
23216
23217          if test "$GCC" = "yes" ; then
23218             # The GNU linker requires the -export-dynamic option to make
23219             # all symbols visible in the dynamic symbol table.
23220             hold_ldflags=$LDFLAGS
23221             echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23222 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
23223             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
23224             cat >conftest.$ac_ext <<_ACEOF
23225 /* confdefs.h.  */
23226 _ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h.  */
23230
23231 int
23232 main ()
23233 {
23234 int i;
23235   ;
23236   return 0;
23237 }
23238 _ACEOF
23239 rm -f conftest.$ac_objext conftest$ac_exeext
23240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23241   (eval $ac_link) 2>conftest.er1
23242   ac_status=$?
23243   grep -v '^ *+' conftest.er1 >conftest.err
23244   rm -f conftest.er1
23245   cat conftest.err >&5
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); } &&
23248          { ac_try='test -z "$ac_c_werror_flag"
23249                          || test ! -s conftest.err'
23250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251   (eval $ac_try) 2>&5
23252   ac_status=$?
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); }; } &&
23255          { ac_try='test -s conftest$ac_exeext'
23256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257   (eval $ac_try) 2>&5
23258   ac_status=$?
23259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260   (exit $ac_status); }; }; then
23261   found=yes
23262 else
23263   echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23265
23266 found=no
23267 fi
23268 rm -f conftest.err conftest.$ac_objext \
23269       conftest$ac_exeext conftest.$ac_ext
23270             LDFLAGS=$hold_ldflags
23271             echo "$as_me:$LINENO: result: $found" >&5
23272 echo "${ECHO_T}$found" >&6
23273             if test $found = yes; then
23274                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23275             fi
23276          fi
23277          # Sun randomly tweaked the prototypes in <proc_service.h>
23278          # at one point.
23279          echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23280 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
23281          if test "${gdb_cv_proc_service_is_old+set}" = set; then
23282   echo $ECHO_N "(cached) $ECHO_C" >&6
23283 else
23284
23285             cat >conftest.$ac_ext <<_ACEOF
23286 /* confdefs.h.  */
23287 _ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h.  */
23291
23292                 #include <proc_service.h>
23293                 ps_err_e ps_pdwrite
23294                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
23295
23296 int
23297 main ()
23298 {
23299
23300   ;
23301   return 0;
23302 }
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_proc_service_is_old=no
23327 else
23328   echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331 gdb_cv_proc_service_is_old=yes
23332 fi
23333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23334
23335 fi
23336
23337          echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23338 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
23339          if test $gdb_cv_proc_service_is_old = yes; then
23340
23341 cat >>confdefs.h <<\_ACEOF
23342 #define PROC_SERVICE_IS_OLD 1
23343 _ACEOF
23344
23345          fi
23346       else
23347          echo "$as_me:$LINENO: result: no" >&5
23348 echo "${ECHO_T}no" >&6
23349       fi
23350       ;;
23351    aix*)
23352       echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23353 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
23354       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23355   echo $ECHO_N "(cached) $ECHO_C" >&6
23356 else
23357   cat >conftest.$ac_ext <<_ACEOF
23358 /* confdefs.h.  */
23359 _ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h.  */
23363 #include <sys/pthdebug.h>
23364 int
23365 main ()
23366 {
23367 #ifndef PTHDB_VERSION_3
23368                                     #error
23369                                     #endif
23370   ;
23371   return 0;
23372 }
23373 _ACEOF
23374 rm -f conftest.$ac_objext
23375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23376   (eval $ac_compile) 2>conftest.er1
23377   ac_status=$?
23378   grep -v '^ *+' conftest.er1 >conftest.err
23379   rm -f conftest.er1
23380   cat conftest.err >&5
23381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382   (exit $ac_status); } &&
23383          { ac_try='test -z "$ac_c_werror_flag"
23384                          || test ! -s conftest.err'
23385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386   (eval $ac_try) 2>&5
23387   ac_status=$?
23388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389   (exit $ac_status); }; } &&
23390          { ac_try='test -s conftest.$ac_objext'
23391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392   (eval $ac_try) 2>&5
23393   ac_status=$?
23394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395   (exit $ac_status); }; }; then
23396   gdb_cv_have_aix_thread_debug=yes
23397 else
23398   echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23400
23401 gdb_cv_have_aix_thread_debug=no
23402 fi
23403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23404 fi
23405
23406       echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23407 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
23408       if test $gdb_cv_have_aix_thread_debug = yes; then
23409          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
23410          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
23411          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23412       fi
23413       ;;
23414    esac
23415
23416 fi
23417
23418 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
23419    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23420 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
23421 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23422   echo $ECHO_N "(cached) $ECHO_C" >&6
23423 else
23424   cat >conftest.$ac_ext <<_ACEOF
23425 /* confdefs.h.  */
23426 _ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h.  */
23430 #include <thread_db.h>
23431 int
23432 main ()
23433 {
23434 int i = TD_NOTALLOC;
23435   ;
23436   return 0;
23437 }
23438 _ACEOF
23439 rm -f conftest.$ac_objext
23440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23441   (eval $ac_compile) 2>conftest.er1
23442   ac_status=$?
23443   grep -v '^ *+' conftest.er1 >conftest.err
23444   rm -f conftest.er1
23445   cat conftest.err >&5
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); } &&
23448          { ac_try='test -z "$ac_c_werror_flag"
23449                          || test ! -s conftest.err'
23450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451   (eval $ac_try) 2>&5
23452   ac_status=$?
23453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454   (exit $ac_status); }; } &&
23455          { ac_try='test -s conftest.$ac_objext'
23456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457   (eval $ac_try) 2>&5
23458   ac_status=$?
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); }; }; then
23461   gdb_cv_thread_db_h_has_td_notalloc=yes
23462 else
23463   echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23465
23466 gdb_cv_thread_db_h_has_td_notalloc=no
23467
23468 fi
23469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23470
23471 fi
23472 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23473 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
23474    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
23475 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
23476 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
23477   echo $ECHO_N "(cached) $ECHO_C" >&6
23478 else
23479   cat >conftest.$ac_ext <<_ACEOF
23480 /* confdefs.h.  */
23481 _ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h.  */
23485 #include <thread_db.h>
23486 int
23487 main ()
23488 {
23489 int i = TD_VERSION;
23490   ;
23491   return 0;
23492 }
23493 _ACEOF
23494 rm -f conftest.$ac_objext
23495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23496   (eval $ac_compile) 2>conftest.er1
23497   ac_status=$?
23498   grep -v '^ *+' conftest.er1 >conftest.err
23499   rm -f conftest.er1
23500   cat conftest.err >&5
23501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502   (exit $ac_status); } &&
23503          { ac_try='test -z "$ac_c_werror_flag"
23504                          || test ! -s conftest.err'
23505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506   (eval $ac_try) 2>&5
23507   ac_status=$?
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); }; } &&
23510          { ac_try='test -s conftest.$ac_objext'
23511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512   (eval $ac_try) 2>&5
23513   ac_status=$?
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); }; }; then
23516   gdb_cv_thread_db_h_has_td_version=yes
23517 else
23518   echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23520
23521 gdb_cv_thread_db_h_has_td_version=no
23522
23523 fi
23524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23525
23526 fi
23527 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
23528 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
23529    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
23530 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
23531 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
23532   echo $ECHO_N "(cached) $ECHO_C" >&6
23533 else
23534   cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h.  */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h.  */
23540 #include <thread_db.h>
23541 int
23542 main ()
23543 {
23544 int i = TD_NOTLS;
23545   ;
23546   return 0;
23547 }
23548 _ACEOF
23549 rm -f conftest.$ac_objext
23550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23551   (eval $ac_compile) 2>conftest.er1
23552   ac_status=$?
23553   grep -v '^ *+' conftest.er1 >conftest.err
23554   rm -f conftest.er1
23555   cat conftest.err >&5
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); } &&
23558          { ac_try='test -z "$ac_c_werror_flag"
23559                          || test ! -s conftest.err'
23560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561   (eval $ac_try) 2>&5
23562   ac_status=$?
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); }; } &&
23565          { ac_try='test -s conftest.$ac_objext'
23566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23567   (eval $ac_try) 2>&5
23568   ac_status=$?
23569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570   (exit $ac_status); }; }; then
23571   gdb_cv_thread_db_h_has_td_notls=yes
23572 else
23573   echo "$as_me: failed program was:" >&5
23574 sed 's/^/| /' conftest.$ac_ext >&5
23575
23576 gdb_cv_thread_db_h_has_td_notls=no
23577
23578 fi
23579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23580
23581 fi
23582 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
23583 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
23584 fi
23585 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
23586
23587 cat >>confdefs.h <<\_ACEOF
23588 #define THREAD_DB_HAS_TD_NOTALLOC 1
23589 _ACEOF
23590
23591 fi
23592 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
23593
23594 cat >>confdefs.h <<\_ACEOF
23595 #define THREAD_DB_HAS_TD_VERSION 1
23596 _ACEOF
23597
23598 fi
23599 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
23600
23601 cat >>confdefs.h <<\_ACEOF
23602 #define THREAD_DB_HAS_TD_NOTLS 1
23603 _ACEOF
23604
23605 fi
23606
23607 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
23608    echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23609 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
23610 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23611   echo $ECHO_N "(cached) $ECHO_C" >&6
23612 else
23613   cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h.  */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h.  */
23619 #include <sys/syscall.h>
23620 int
23621 main ()
23622 {
23623 int i = __NR_tkill;
23624   ;
23625   return 0;
23626 }
23627 _ACEOF
23628 rm -f conftest.$ac_objext
23629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23630   (eval $ac_compile) 2>conftest.er1
23631   ac_status=$?
23632   grep -v '^ *+' conftest.er1 >conftest.err
23633   rm -f conftest.er1
23634   cat conftest.err >&5
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); } &&
23637          { ac_try='test -z "$ac_c_werror_flag"
23638                          || test ! -s conftest.err'
23639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640   (eval $ac_try) 2>&5
23641   ac_status=$?
23642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643   (exit $ac_status); }; } &&
23644          { ac_try='test -s conftest.$ac_objext'
23645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646   (eval $ac_try) 2>&5
23647   ac_status=$?
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); }; }; then
23650   gdb_cv_sys_syscall_h_has_tkill=yes
23651 else
23652   echo "$as_me: failed program was:" >&5
23653 sed 's/^/| /' conftest.$ac_ext >&5
23654
23655 gdb_cv_sys_syscall_h_has_tkill=no
23656
23657 fi
23658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23659
23660 fi
23661 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23662 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
23663 fi
23664 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
23665
23666 cat >>confdefs.h <<\_ACEOF
23667 #define HAVE_TKILL_SYSCALL 1
23668 _ACEOF
23669
23670 fi
23671
23672 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
23673 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
23674 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
23675   echo $ECHO_N "(cached) $ECHO_C" >&6
23676 else
23677   cat >conftest.$ac_ext <<_ACEOF
23678 /* confdefs.h.  */
23679 _ACEOF
23680 cat confdefs.h >>conftest.$ac_ext
23681 cat >>conftest.$ac_ext <<_ACEOF
23682 /* end confdefs.h.  */
23683 #include <sys/personality.h>
23684
23685 int
23686 main ()
23687 {
23688 #ifndef ADDR_NO_RANDOMIZE
23689   char *p = (char *) ADDR_NO_RANDOMIZE;
23690 #endif
23691
23692   ;
23693   return 0;
23694 }
23695 _ACEOF
23696 rm -f conftest.$ac_objext
23697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23698   (eval $ac_compile) 2>conftest.er1
23699   ac_status=$?
23700   grep -v '^ *+' conftest.er1 >conftest.err
23701   rm -f conftest.er1
23702   cat conftest.err >&5
23703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704   (exit $ac_status); } &&
23705          { ac_try='test -z "$ac_c_werror_flag"
23706                          || test ! -s conftest.err'
23707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23708   (eval $ac_try) 2>&5
23709   ac_status=$?
23710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711   (exit $ac_status); }; } &&
23712          { ac_try='test -s conftest.$ac_objext'
23713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23714   (eval $ac_try) 2>&5
23715   ac_status=$?
23716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717   (exit $ac_status); }; }; then
23718   ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
23719 else
23720   echo "$as_me: failed program was:" >&5
23721 sed 's/^/| /' conftest.$ac_ext >&5
23722
23723 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
23724 fi
23725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23726 fi
23727 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
23728 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
23729 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
23730
23731 cat >>confdefs.h <<_ACEOF
23732 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
23733 _ACEOF
23734
23735
23736 else
23737   cat >>confdefs.h <<_ACEOF
23738 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
23739 _ACEOF
23740
23741
23742 fi
23743
23744
23745
23746 if test "$cross_compiling" = yes; then
23747   cat >conftest.$ac_ext <<_ACEOF
23748 /* confdefs.h.  */
23749 _ACEOF
23750 cat confdefs.h >>conftest.$ac_ext
23751 cat >>conftest.$ac_ext <<_ACEOF
23752 /* end confdefs.h.  */
23753 #include <sys/personality.h>
23754 int
23755 main ()
23756 {
23757
23758 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
23759 #       define ADDR_NO_RANDOMIZE 0x0040000
23760 #      endif
23761        /* Test the flag could be set and stays set.  */
23762        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23763        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23764            return 1
23765   ;
23766   return 0;
23767 }
23768 _ACEOF
23769 rm -f conftest.$ac_objext conftest$ac_exeext
23770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23771   (eval $ac_link) 2>conftest.er1
23772   ac_status=$?
23773   grep -v '^ *+' conftest.er1 >conftest.err
23774   rm -f conftest.er1
23775   cat conftest.err >&5
23776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777   (exit $ac_status); } &&
23778          { ac_try='test -z "$ac_c_werror_flag"
23779                          || test ! -s conftest.err'
23780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23781   (eval $ac_try) 2>&5
23782   ac_status=$?
23783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784   (exit $ac_status); }; } &&
23785          { ac_try='test -s conftest$ac_exeext'
23786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787   (eval $ac_try) 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); }; }; then
23791   have_personality=true
23792 else
23793   echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23795
23796 have_personality=false
23797 fi
23798 rm -f conftest.err conftest.$ac_objext \
23799       conftest$ac_exeext conftest.$ac_ext
23800 else
23801   cat >conftest.$ac_ext <<_ACEOF
23802 /* confdefs.h.  */
23803 _ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h.  */
23807 #include <sys/personality.h>
23808 int
23809 main ()
23810 {
23811
23812 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
23813 #       define ADDR_NO_RANDOMIZE 0x0040000
23814 #      endif
23815        /* Test the flag could be set and stays set.  */
23816        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23817        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23818            return 1
23819   ;
23820   return 0;
23821 }
23822 _ACEOF
23823 rm -f conftest$ac_exeext
23824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23825   (eval $ac_link) 2>&5
23826   ac_status=$?
23827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23830   (eval $ac_try) 2>&5
23831   ac_status=$?
23832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833   (exit $ac_status); }; }; then
23834   have_personality=true
23835 else
23836   echo "$as_me: program exited with status $ac_status" >&5
23837 echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840 ( exit $ac_status )
23841 have_personality=false
23842 fi
23843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23844 fi
23845 if $have_personality
23846 then
23847
23848 cat >>confdefs.h <<\_ACEOF
23849 #define HAVE_PERSONALITY 1
23850 _ACEOF
23851
23852 fi
23853
23854
23855
23856 # Check whether --with-sysroot or --without-sysroot was given.
23857 if test "${with_sysroot+set}" = set; then
23858   withval="$with_sysroot"
23859
23860  case ${with_sysroot} in
23861  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
23862  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23863  esac
23864
23865  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23866
23867  if test "x$prefix" = xNONE; then
23868   test_prefix=/usr/local
23869  else
23870   test_prefix=$prefix
23871  fi
23872  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
23873   test_exec_prefix=$test_prefix
23874  else
23875   test_exec_prefix=$exec_prefix
23876  fi
23877  case ${TARGET_SYSTEM_ROOT} in
23878  "${test_prefix}"|"${test_prefix}/"*|\
23879  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
23880  '${prefix}'|'${prefix}/'*|\
23881  '${exec_prefix}'|'${exec_prefix}/'*)
23882    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23883    TARGET_SYSTEM_ROOT_DEFINE="$t"
23884    ;;
23885  esac
23886
23887 else
23888
23889  TARGET_SYSTEM_ROOT=
23890  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23891
23892 fi;
23893
23894
23895
23896 # Check whether --enable-werror or --disable-werror was given.
23897 if test "${enable_werror+set}" = set; then
23898   enableval="$enable_werror"
23899   case "${enableval}" in
23900      yes | y) ERROR_ON_WARNING="yes" ;;
23901      no | n)  ERROR_ON_WARNING="no" ;;
23902      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23903 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23904    { (exit 1); exit 1; }; } ;;
23905    esac
23906 fi;
23907
23908 # Enable -Werror by default when using gcc
23909 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
23910     ERROR_ON_WARNING=yes
23911 fi
23912
23913 WERROR_CFLAGS=""
23914 if test "${ERROR_ON_WARNING}" = yes ; then
23915     WERROR_CFLAGS="-Werror"
23916 fi
23917
23918 # The entries after -Wno-pointer-sign are disabled warnings which may
23919 # be enabled in the future, which can not currently be used to build
23920 # GDB.
23921 # NOTE: If you change this list, remember to update
23922 # gdb/doc/gdbint.texinfo.
23923 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
23924 -Wformat-nonliteral -Wno-pointer-sign \
23925 -Wno-unused -Wno-switch -Wno-char-subscripts"
23926
23927 # Enable -Wno-format by default when using gcc on mingw since many
23928 # GCC versions complain about %I64.
23929 case "${host}" in
23930   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
23931 esac
23932
23933 # Check whether --enable-build-warnings or --disable-build-warnings was given.
23934 if test "${enable_build_warnings+set}" = set; then
23935   enableval="$enable_build_warnings"
23936   case "${enableval}" in
23937   yes)  ;;
23938   no)   build_warnings="-w";;
23939   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
23940         build_warnings="${build_warnings} ${t}";;
23941   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
23942         build_warnings="${t} ${build_warnings}";;
23943   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23944 esac
23945 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23946   echo "Setting compiler warning flags = $build_warnings" 6>&1
23947 fi
23948 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
23949 if test "${enable_gdb_build_warnings+set}" = set; then
23950   enableval="$enable_gdb_build_warnings"
23951   case "${enableval}" in
23952   yes)  ;;
23953   no)   build_warnings="-w";;
23954   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
23955         build_warnings="${build_warnings} ${t}";;
23956   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
23957         build_warnings="${t} ${build_warnings}";;
23958   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23959 esac
23960 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23961   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
23962 fi
23963 fi; WARN_CFLAGS=""
23964 if test "x${build_warnings}" != x -a "x$GCC" = xyes
23965 then
23966     echo "$as_me:$LINENO: checking compiler warning flags" >&5
23967 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
23968     # Separate out the -Werror flag as some files just cannot be
23969     # compiled with it enabled.
23970     for w in ${build_warnings}; do
23971         case $w in
23972         -Werr*) WERROR_CFLAGS=-Werror ;;
23973         *) # Check that GCC accepts it
23974             saved_CFLAGS="$CFLAGS"
23975             CFLAGS="$CFLAGS $w"
23976             cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h.  */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h.  */
23982
23983 int
23984 main ()
23985 {
23986
23987   ;
23988   return 0;
23989 }
23990 _ACEOF
23991 rm -f conftest.$ac_objext
23992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23993   (eval $ac_compile) 2>conftest.er1
23994   ac_status=$?
23995   grep -v '^ *+' conftest.er1 >conftest.err
23996   rm -f conftest.er1
23997   cat conftest.err >&5
23998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999   (exit $ac_status); } &&
24000          { ac_try='test -z "$ac_c_werror_flag"
24001                          || test ! -s conftest.err'
24002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003   (eval $ac_try) 2>&5
24004   ac_status=$?
24005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006   (exit $ac_status); }; } &&
24007          { ac_try='test -s conftest.$ac_objext'
24008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24009   (eval $ac_try) 2>&5
24010   ac_status=$?
24011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012   (exit $ac_status); }; }; then
24013   WARN_CFLAGS="${WARN_CFLAGS} $w"
24014 else
24015   echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24017
24018 fi
24019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24020             CFLAGS="$saved_CFLAGS"
24021         esac
24022     done
24023     echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24024 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
24025 fi
24026
24027
24028
24029 # In the Cygwin environment, we need some additional flags.
24030 echo "$as_me:$LINENO: checking for cygwin" >&5
24031 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
24032 if test "${gdb_cv_os_cygwin+set}" = set; then
24033   echo $ECHO_N "(cached) $ECHO_C" >&6
24034 else
24035   cat >conftest.$ac_ext <<_ACEOF
24036 /* confdefs.h.  */
24037 _ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h.  */
24041
24042 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
24043 lose
24044 #endif
24045 _ACEOF
24046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24047   $EGREP "lose" >/dev/null 2>&1; then
24048   gdb_cv_os_cygwin=yes
24049 else
24050   gdb_cv_os_cygwin=no
24051 fi
24052 rm -f conftest*
24053
24054 fi
24055 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24056 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
24057
24058
24059 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
24060 case ${host} in
24061   *go32* ) SER_HARDWIRE=ser-go32.o ;;
24062   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
24063   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
24064 esac
24065
24066
24067 # libreadline needs libuser32.a in a cygwin environment
24068 WIN32LIBS=
24069 if test x$gdb_cv_os_cygwin = xyes; then
24070     WIN32LIBS="-luser32"
24071     case "${target}" in
24072         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24073         ;;
24074     esac
24075 fi
24076
24077 # The ser-tcp.c module requires sockets.
24078 case ${host} in
24079   *mingw32*)
24080
24081 cat >>confdefs.h <<\_ACEOF
24082 #define USE_WIN32API 1
24083 _ACEOF
24084
24085     WIN32LIBS="$WIN32LIBS -lws2_32"
24086     ;;
24087 esac
24088
24089
24090 # Add ELF support to GDB, but only if BFD includes ELF support.
24091 OLD_CFLAGS=$CFLAGS
24092 OLD_LDFLAGS=$LDFLAGS
24093 OLD_LIBS=$LIBS
24094 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
24095 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
24096 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
24097 LIBS="-lbfd -liberty $intl $LIBS"
24098 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24099 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24100 if test "${gdb_cv_var_elf+set}" = set; then
24101   echo $ECHO_N "(cached) $ECHO_C" >&6
24102 else
24103   cat >conftest.$ac_ext <<_ACEOF
24104 /* confdefs.h.  */
24105 _ACEOF
24106 cat confdefs.h >>conftest.$ac_ext
24107 cat >>conftest.$ac_ext <<_ACEOF
24108 /* end confdefs.h.  */
24109 #include <stdlib.h>
24110 #include "bfd.h"
24111 #include "elf-bfd.h"
24112
24113 int
24114 main ()
24115 {
24116 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24117   ;
24118   return 0;
24119 }
24120 _ACEOF
24121 rm -f conftest.$ac_objext conftest$ac_exeext
24122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24123   (eval $ac_link) 2>conftest.er1
24124   ac_status=$?
24125   grep -v '^ *+' conftest.er1 >conftest.err
24126   rm -f conftest.er1
24127   cat conftest.err >&5
24128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129   (exit $ac_status); } &&
24130          { ac_try='test -z "$ac_c_werror_flag"
24131                          || test ! -s conftest.err'
24132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133   (eval $ac_try) 2>&5
24134   ac_status=$?
24135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136   (exit $ac_status); }; } &&
24137          { ac_try='test -s conftest$ac_exeext'
24138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24139   (eval $ac_try) 2>&5
24140   ac_status=$?
24141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142   (exit $ac_status); }; }; then
24143   gdb_cv_var_elf=yes
24144 else
24145   echo "$as_me: failed program was:" >&5
24146 sed 's/^/| /' conftest.$ac_ext >&5
24147
24148 gdb_cv_var_elf=no
24149 fi
24150 rm -f conftest.err conftest.$ac_objext \
24151       conftest$ac_exeext conftest.$ac_ext
24152 fi
24153 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24154 echo "${ECHO_T}$gdb_cv_var_elf" >&6
24155 if test $gdb_cv_var_elf = yes; then
24156   CONFIG_OBS="$CONFIG_OBS elfread.o"
24157
24158 cat >>confdefs.h <<\_ACEOF
24159 #define HAVE_ELF 1
24160 _ACEOF
24161
24162 fi
24163 CFLAGS=$OLD_CFLAGS
24164 LDFLAGS=$OLD_LDFLAGS
24165 LIBS=$OLD_LIBS
24166
24167 # Add any host-specific objects to GDB.
24168 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24169
24170 LIBGUI="../libgui/src/libgui.a"
24171 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24172
24173
24174
24175 WIN32LDAPP=
24176
24177
24178
24179 case "${host}" in
24180 *-*-cygwin* | *-*-mingw* )
24181     configdir="win"
24182     ;;
24183 *)
24184     configdir="unix"
24185     ;;
24186 esac
24187
24188 GDBTKLIBS=
24189 if test "${enable_gdbtk}" = "yes"; then
24190
24191     # Gdbtk must have an absolute path to srcdir in order to run
24192     # properly when not installed.
24193     here=`pwd`
24194     cd ${srcdir}
24195     GDBTK_SRC_DIR=`pwd`
24196     cd $here
24197
24198
24199 #
24200 # Ok, lets find the tcl configuration
24201 # First, look for one uninstalled.
24202 # the alternative search directory is invoked by --with-tclconfig
24203 #
24204
24205 if test x"${no_tcl}" = x ; then
24206   # we reset no_tcl in case something fails here
24207   no_tcl=true
24208
24209 # Check whether --with-tclconfig or --without-tclconfig was given.
24210 if test "${with_tclconfig+set}" = set; then
24211   withval="$with_tclconfig"
24212   with_tclconfig=${withval}
24213 fi;
24214   echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24215 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
24216   if test "${ac_cv_c_tclconfig+set}" = set; then
24217   echo $ECHO_N "(cached) $ECHO_C" >&6
24218 else
24219
24220
24221   # First check to see if --with-tclconfig was specified.
24222   if test x"${with_tclconfig}" != x ; then
24223     if test -f "${with_tclconfig}/tclConfig.sh" ; then
24224       ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24225     else
24226       { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24227 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24228    { (exit 1); exit 1; }; }
24229     fi
24230   fi
24231
24232   # then check for a private Tcl installation
24233   if test x"${ac_cv_c_tclconfig}" = x ; then
24234     for i in \
24235                 ../tcl \
24236                 `ls -dr ../tcl[7-9]* 2>/dev/null` \
24237                 ../../tcl \
24238                 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
24239                 ../../../tcl \
24240                 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
24241       if test -f "$i/${configdir}/tclConfig.sh" ; then
24242         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24243         break
24244       fi
24245     done
24246   fi
24247   # check in a few common install locations
24248   if test x"${ac_cv_c_tclconfig}" = x ; then
24249     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24250       if test -f "$i/tclConfig.sh" ; then
24251         ac_cv_c_tclconfig=`(cd $i; pwd)`
24252         break
24253       fi
24254     done
24255   fi
24256   # check in a few other private locations
24257   if test x"${ac_cv_c_tclconfig}" = x ; then
24258     for i in \
24259                 ${srcdir}/../tcl \
24260                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
24261       if test -f "$i/${configdir}/tclConfig.sh" ; then
24262         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24263         break
24264       fi
24265     done
24266   fi
24267
24268 fi
24269
24270   if test x"${ac_cv_c_tclconfig}" = x ; then
24271     TCLCONFIG="# no Tcl configs found"
24272     { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24273 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
24274   else
24275     no_tcl=
24276     TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
24277     echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
24278 echo "${ECHO_T}found $TCLCONFIG" >&6
24279   fi
24280 fi
24281
24282     if test -z "${no_tcl}"; then
24283
24284     . $TCLCONFIG
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312 #
24313 # Ok, lets find the tk configuration
24314 # First, look for one uninstalled.
24315 # the alternative search directory is invoked by --with-tkconfig
24316 #
24317
24318 if test x"${no_tk}" = x ; then
24319   # we reset no_tk in case something fails here
24320   no_tk=true
24321
24322 # Check whether --with-tkconfig or --without-tkconfig was given.
24323 if test "${with_tkconfig+set}" = set; then
24324   withval="$with_tkconfig"
24325   with_tkconfig=${withval}
24326 fi;
24327   echo "$as_me:$LINENO: checking for Tk configuration" >&5
24328 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
24329   if test "${ac_cv_c_tkconfig+set}" = set; then
24330   echo $ECHO_N "(cached) $ECHO_C" >&6
24331 else
24332
24333
24334   # First check to see if --with-tkconfig was specified.
24335   if test x"${with_tkconfig}" != x ; then
24336     if test -f "${with_tkconfig}/tkConfig.sh" ; then
24337       ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
24338     else
24339       { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
24340 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
24341    { (exit 1); exit 1; }; }
24342     fi
24343   fi
24344
24345   # then check for a private Tk library
24346   if test x"${ac_cv_c_tkconfig}" = x ; then
24347     for i in \
24348                 ../tk \
24349                 `ls -dr ../tk[4-9]* 2>/dev/null` \
24350                 ../../tk \
24351                 `ls -dr ../../tk[4-9]* 2>/dev/null` \
24352                 ../../../tk \
24353                 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
24354       if test -f "$i/${configdir}/tkConfig.sh" ; then
24355         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24356         break
24357       fi
24358     done
24359   fi
24360   # check in a few common install locations
24361   if test x"${ac_cv_c_tkconfig}" = x ; then
24362     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24363       if test -f "$i/tkConfig.sh" ; then
24364         ac_cv_c_tkconfig=`(cd $i; pwd)`
24365         break
24366       fi
24367     done
24368   fi
24369   # check in a few other private locations
24370   if test x"${ac_cv_c_tkconfig}" = x ; then
24371     for i in \
24372                 ${srcdir}/../tk \
24373                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
24374       if test -f "$i/${configdir}/tkConfig.sh" ; then
24375         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24376         break
24377       fi
24378     done
24379   fi
24380
24381 fi
24382
24383   if test x"${ac_cv_c_tkconfig}" = x ; then
24384     TKCONFIG="# no Tk configs found"
24385     { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
24386 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
24387   else
24388     no_tk=
24389     TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
24390     echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
24391 echo "${ECHO_T}found $TKCONFIG" >&6
24392   fi
24393 fi
24394
24395
24396
24397         # now look for Tcl library stuff
24398
24399         tcldir="../tcl/${configdir}/"
24400
24401         TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
24402
24403         # If $no_tk is nonempty, then we can't do Tk, and there is no
24404         # point to doing Tcl.
24405         if test -z "${no_tk}"; then
24406
24407     if test -f "$TKCONFIG" ; then
24408       . $TKCONFIG
24409     fi
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424 #
24425 # Ok, lets find the tcl source trees so we can use the headers
24426 # Warning: transition of version 9 to 10 will break this algorithm
24427 # because 10 sorts before 9. We also look for just tcl. We have to
24428 # be careful that we don't match stuff like tclX by accident.
24429 # the alternative search directory is involked by --with-tclinclude
24430 #
24431
24432 no_tcl=true
24433 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
24434 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
24435
24436 # Check whether --with-tclinclude or --without-tclinclude was given.
24437 if test "${with_tclinclude+set}" = set; then
24438   withval="$with_tclinclude"
24439   with_tclinclude=${withval}
24440 fi;
24441 if test "${ac_cv_c_tclh+set}" = set; then
24442   echo $ECHO_N "(cached) $ECHO_C" >&6
24443 else
24444
24445 # first check to see if --with-tclinclude was specified
24446 if test x"${with_tclinclude}" != x ; then
24447   if test -f ${with_tclinclude}/tclInt.h ; then
24448     ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
24449   elif test -f ${with_tclinclude}/generic/tclInt.h ; then
24450     ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
24451   else
24452     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
24453 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
24454    { (exit 1); exit 1; }; }
24455   fi
24456 fi
24457
24458 # next check if it came with Tcl configuration file
24459 if test x"${ac_cv_c_tclconfig}" = x ; then
24460   if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
24461     ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
24462   fi
24463 fi
24464
24465 # next check in private source directory
24466 #
24467 # since ls returns lowest version numbers first, reverse its output
24468 if test x"${ac_cv_c_tclh}" = x ; then
24469   for i in \
24470                 ${srcdir}/../tcl \
24471                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
24472                 ${srcdir}/../../tcl \
24473                 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
24474                 ${srcdir}/../../../tcl \
24475                 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
24476     if test -f $i/generic/tclInt.h ; then
24477       ac_cv_c_tclh=`(cd $i/generic; pwd)`
24478       break
24479     fi
24480   done
24481 fi
24482 # finally check in a few common install locations
24483 #
24484 # since ls returns lowest version numbers first, reverse its output
24485 if test x"${ac_cv_c_tclh}" = x ; then
24486   for i in \
24487                 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
24488                 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
24489                 /usr/local/src/tcl \
24490                 /usr/local/lib/tcl \
24491                 ${prefix}/include ; do
24492     if test -f $i/generic/tclInt.h ; then
24493       ac_cv_c_tclh=`(cd $i/generic; pwd)`
24494       break
24495     fi
24496   done
24497 fi
24498 # see if one is installed
24499 if test x"${ac_cv_c_tclh}" = x ; then
24500    if test "${ac_cv_header_tclInt_h+set}" = set; then
24501   echo "$as_me:$LINENO: checking for tclInt.h" >&5
24502 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
24503 if test "${ac_cv_header_tclInt_h+set}" = set; then
24504   echo $ECHO_N "(cached) $ECHO_C" >&6
24505 fi
24506 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24507 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
24508 else
24509   # Is the header compilable?
24510 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
24511 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
24512 cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h.  */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h.  */
24518 $ac_includes_default
24519 #include <tclInt.h>
24520 _ACEOF
24521 rm -f conftest.$ac_objext
24522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24523   (eval $ac_compile) 2>conftest.er1
24524   ac_status=$?
24525   grep -v '^ *+' conftest.er1 >conftest.err
24526   rm -f conftest.er1
24527   cat conftest.err >&5
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); } &&
24530          { ac_try='test -z "$ac_c_werror_flag"
24531                          || test ! -s conftest.err'
24532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533   (eval $ac_try) 2>&5
24534   ac_status=$?
24535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536   (exit $ac_status); }; } &&
24537          { ac_try='test -s conftest.$ac_objext'
24538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539   (eval $ac_try) 2>&5
24540   ac_status=$?
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); }; }; then
24543   ac_header_compiler=yes
24544 else
24545   echo "$as_me: failed program was:" >&5
24546 sed 's/^/| /' conftest.$ac_ext >&5
24547
24548 ac_header_compiler=no
24549 fi
24550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24552 echo "${ECHO_T}$ac_header_compiler" >&6
24553
24554 # Is the header present?
24555 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
24556 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
24557 cat >conftest.$ac_ext <<_ACEOF
24558 /* confdefs.h.  */
24559 _ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h.  */
24563 #include <tclInt.h>
24564 _ACEOF
24565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24567   ac_status=$?
24568   grep -v '^ *+' conftest.er1 >conftest.err
24569   rm -f conftest.er1
24570   cat conftest.err >&5
24571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572   (exit $ac_status); } >/dev/null; then
24573   if test -s conftest.err; then
24574     ac_cpp_err=$ac_c_preproc_warn_flag
24575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24576   else
24577     ac_cpp_err=
24578   fi
24579 else
24580   ac_cpp_err=yes
24581 fi
24582 if test -z "$ac_cpp_err"; then
24583   ac_header_preproc=yes
24584 else
24585   echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24587
24588   ac_header_preproc=no
24589 fi
24590 rm -f conftest.err conftest.$ac_ext
24591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24592 echo "${ECHO_T}$ac_header_preproc" >&6
24593
24594 # So?  What about this header?
24595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24596   yes:no: )
24597     { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24598 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24599     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
24600 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
24601     ac_header_preproc=yes
24602     ;;
24603   no:yes:* )
24604     { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
24605 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
24606     { echo "$as_me:$LINENO: WARNING: tclInt.h:     check for missing prerequisite headers?" >&5
24607 echo "$as_me: WARNING: tclInt.h:     check for missing prerequisite headers?" >&2;}
24608     { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
24609 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
24610     { echo "$as_me:$LINENO: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&5
24611 echo "$as_me: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24612     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
24613 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
24614     { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
24615 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
24616     (
24617       cat <<\_ASBOX
24618 ## ------------------------------------------ ##
24619 ## Report this to the AC_PACKAGE_NAME lists.  ##
24620 ## ------------------------------------------ ##
24621 _ASBOX
24622     ) |
24623       sed "s/^/$as_me: WARNING:     /" >&2
24624     ;;
24625 esac
24626 echo "$as_me:$LINENO: checking for tclInt.h" >&5
24627 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
24628 if test "${ac_cv_header_tclInt_h+set}" = set; then
24629   echo $ECHO_N "(cached) $ECHO_C" >&6
24630 else
24631   ac_cv_header_tclInt_h=$ac_header_preproc
24632 fi
24633 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24634 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
24635
24636 fi
24637 if test $ac_cv_header_tclInt_h = yes; then
24638   ac_cv_c_tclh=installed
24639 else
24640   ac_cv_c_tclh=""
24641 fi
24642
24643
24644 fi
24645
24646 fi
24647
24648 if test x"${ac_cv_c_tclh}" = x ; then
24649   TCLHDIR="# no Tcl private headers found"
24650   { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
24651 echo "$as_me: error: Can't find Tcl private headers" >&2;}
24652    { (exit 1); exit 1; }; }
24653 fi
24654 if test x"${ac_cv_c_tclh}" != x ; then
24655   no_tcl=""
24656   if test x"${ac_cv_c_tclh}" = x"installed" ; then
24657     echo "$as_me:$LINENO: result: is installed" >&5
24658 echo "${ECHO_T}is installed" >&6
24659     TCLHDIR=""
24660   else
24661     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
24662 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
24663     # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
24664     TCLHDIR="-I${ac_cv_c_tclh}"
24665   fi
24666 fi
24667
24668
24669
24670
24671 #
24672 # Ok, lets find the tk source trees so we can use the headers
24673 # If the directory (presumably symlink) named "tk" exists, use that one
24674 # in preference to any others.  Same logic is used when choosing library
24675 # and again with Tcl. The search order is the best place to look first, then in
24676 # decreasing significance. The loop breaks if the trigger file is found.
24677 # Note the gross little conversion here of srcdir by cd'ing to the found
24678 # directory. This converts the path from a relative to an absolute, so
24679 # recursive cache variables for the path will work right. We check all
24680 # the possible paths in one loop rather than many seperate loops to speed
24681 # things up.
24682 # the alternative search directory is involked by --with-tkinclude
24683 #
24684 no_tk=true
24685 echo "$as_me:$LINENO: checking for Tk private headers" >&5
24686 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
24687
24688 # Check whether --with-tkinclude or --without-tkinclude was given.
24689 if test "${with_tkinclude+set}" = set; then
24690   withval="$with_tkinclude"
24691   with_tkinclude=${withval}
24692 fi;
24693 if test "${ac_cv_c_tkh+set}" = set; then
24694   echo $ECHO_N "(cached) $ECHO_C" >&6
24695 else
24696
24697 # first check to see if --with-tkinclude was specified
24698 if test x"${with_tkinclude}" != x ; then
24699   if test -f ${with_tkinclude}/tk.h ; then
24700     ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
24701   elif test -f ${with_tkinclude}/generic/tk.h ; then
24702     ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
24703   else
24704     { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
24705 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
24706    { (exit 1); exit 1; }; }
24707   fi
24708 fi
24709
24710 # next check if it came with Tk configuration file
24711 if test x"${ac_cv_c_tkconfig}" = x ; then
24712   if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
24713     ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
24714   fi
24715 fi
24716
24717 # next check in private source directory
24718 #
24719 # since ls returns lowest version numbers first, reverse its output
24720 if test x"${ac_cv_c_tkh}" = x ; then
24721   for i in \
24722                 ${srcdir}/../tk \
24723                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
24724                 ${srcdir}/../../tk \
24725                 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
24726                 ${srcdir}/../../../tk \
24727                 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
24728     if test -f $i/generic/tk.h ; then
24729       ac_cv_c_tkh=`(cd $i/generic; pwd)`
24730       break
24731     fi
24732   done
24733 fi
24734 # finally check in a few common install locations
24735 #
24736 # since ls returns lowest version numbers first, reverse its output
24737 if test x"${ac_cv_c_tkh}" = x ; then
24738   for i in \
24739                 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
24740                 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
24741                 /usr/local/src/tk \
24742                 /usr/local/lib/tk \
24743                 ${prefix}/include ; do
24744     if test -f $i/generic/tk.h ; then
24745       ac_cv_c_tkh=`(cd $i/generic; pwd)`
24746       break
24747     fi
24748   done
24749 fi
24750 # see if one is installed
24751 if test x"${ac_cv_c_tkh}" = x ; then
24752    if test "${ac_cv_header_tk_h+set}" = set; then
24753   echo "$as_me:$LINENO: checking for tk.h" >&5
24754 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
24755 if test "${ac_cv_header_tk_h+set}" = set; then
24756   echo $ECHO_N "(cached) $ECHO_C" >&6
24757 fi
24758 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24759 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
24760 else
24761   # Is the header compilable?
24762 echo "$as_me:$LINENO: checking tk.h usability" >&5
24763 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
24764 cat >conftest.$ac_ext <<_ACEOF
24765 /* confdefs.h.  */
24766 _ACEOF
24767 cat confdefs.h >>conftest.$ac_ext
24768 cat >>conftest.$ac_ext <<_ACEOF
24769 /* end confdefs.h.  */
24770 $ac_includes_default
24771 #include <tk.h>
24772 _ACEOF
24773 rm -f conftest.$ac_objext
24774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24775   (eval $ac_compile) 2>conftest.er1
24776   ac_status=$?
24777   grep -v '^ *+' conftest.er1 >conftest.err
24778   rm -f conftest.er1
24779   cat conftest.err >&5
24780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781   (exit $ac_status); } &&
24782          { ac_try='test -z "$ac_c_werror_flag"
24783                          || test ! -s conftest.err'
24784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24785   (eval $ac_try) 2>&5
24786   ac_status=$?
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); }; } &&
24789          { ac_try='test -s conftest.$ac_objext'
24790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24791   (eval $ac_try) 2>&5
24792   ac_status=$?
24793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794   (exit $ac_status); }; }; then
24795   ac_header_compiler=yes
24796 else
24797   echo "$as_me: failed program was:" >&5
24798 sed 's/^/| /' conftest.$ac_ext >&5
24799
24800 ac_header_compiler=no
24801 fi
24802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24804 echo "${ECHO_T}$ac_header_compiler" >&6
24805
24806 # Is the header present?
24807 echo "$as_me:$LINENO: checking tk.h presence" >&5
24808 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
24809 cat >conftest.$ac_ext <<_ACEOF
24810 /* confdefs.h.  */
24811 _ACEOF
24812 cat confdefs.h >>conftest.$ac_ext
24813 cat >>conftest.$ac_ext <<_ACEOF
24814 /* end confdefs.h.  */
24815 #include <tk.h>
24816 _ACEOF
24817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24819   ac_status=$?
24820   grep -v '^ *+' conftest.er1 >conftest.err
24821   rm -f conftest.er1
24822   cat conftest.err >&5
24823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); } >/dev/null; then
24825   if test -s conftest.err; then
24826     ac_cpp_err=$ac_c_preproc_warn_flag
24827     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24828   else
24829     ac_cpp_err=
24830   fi
24831 else
24832   ac_cpp_err=yes
24833 fi
24834 if test -z "$ac_cpp_err"; then
24835   ac_header_preproc=yes
24836 else
24837   echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24839
24840   ac_header_preproc=no
24841 fi
24842 rm -f conftest.err conftest.$ac_ext
24843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24844 echo "${ECHO_T}$ac_header_preproc" >&6
24845
24846 # So?  What about this header?
24847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24848   yes:no: )
24849     { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
24850 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24851     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
24852 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
24853     ac_header_preproc=yes
24854     ;;
24855   no:yes:* )
24856     { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
24857 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
24858     { echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
24859 echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
24860     { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
24861 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
24862     { echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
24863 echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24864     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
24865 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
24866     { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
24867 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
24868     (
24869       cat <<\_ASBOX
24870 ## ------------------------------------------ ##
24871 ## Report this to the AC_PACKAGE_NAME lists.  ##
24872 ## ------------------------------------------ ##
24873 _ASBOX
24874     ) |
24875       sed "s/^/$as_me: WARNING:     /" >&2
24876     ;;
24877 esac
24878 echo "$as_me:$LINENO: checking for tk.h" >&5
24879 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
24880 if test "${ac_cv_header_tk_h+set}" = set; then
24881   echo $ECHO_N "(cached) $ECHO_C" >&6
24882 else
24883   ac_cv_header_tk_h=$ac_header_preproc
24884 fi
24885 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24886 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
24887
24888 fi
24889 if test $ac_cv_header_tk_h = yes; then
24890   ac_cv_c_tkh=installed
24891 else
24892   ac_cv_c_tkh=""
24893 fi
24894
24895
24896 fi
24897
24898 fi
24899
24900 if test x"${ac_cv_c_tkh}" != x ; then
24901   no_tk=""
24902   if test x"${ac_cv_c_tkh}" = x"installed" ; then
24903     echo "$as_me:$LINENO: result: is installed" >&5
24904 echo "${ECHO_T}is installed" >&6
24905     TKHDIR=""
24906   else
24907     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
24908 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
24909     # this hack is cause the TKHDIR won't print if there is a "-I" in it.
24910     TKHDIR="-I${ac_cv_c_tkh}"
24911   fi
24912 else
24913   TKHDIR="# no Tk directory found"
24914   { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
24915 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
24916   no_tk=true
24917 fi
24918
24919
24920
24921
24922 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
24923 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
24924 if test x"${ac_cv_c_itclh}" = x ; then
24925   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
24926     if test -f $i/generic/itcl.h ; then
24927       ac_cv_c_itclh=`(cd $i/generic; pwd)`
24928       break
24929     fi
24930   done
24931 fi
24932 if test x"${ac_cv_c_itclh}" = x ; then
24933   ITCLHDIR="# no Itcl private headers found"
24934   { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
24935 echo "$as_me: error: Can't find Itcl private headers" >&2;}
24936    { (exit 1); exit 1; }; }
24937 fi
24938 if test x"${ac_cv_c_itclh}" != x ; then
24939      ITCLHDIR="-I${ac_cv_c_itclh}"
24940 fi
24941 # should always be here
24942 #     ITCLLIB="../itcl/itcl/unix/libitcl.a"
24943
24944 #AC_SUBST(ITCLLIB)
24945
24946
24947 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
24948 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
24949 if test x"${ac_cv_c_itkh}" = x ; then
24950   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
24951     if test -f $i/generic/itk.h ; then
24952       ac_cv_c_itkh=`(cd $i/generic; pwd)`
24953       break
24954     fi
24955   done
24956 fi
24957 if test x"${ac_cv_c_itkh}" = x ; then
24958   ITKHDIR="# no Itk private headers found"
24959   { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
24960 echo "$as_me: error: Can't find Itk private headers" >&2;}
24961    { (exit 1); exit 1; }; }
24962 fi
24963 if test x"${ac_cv_c_itkh}" != x ; then
24964      ITKHDIR="-I${ac_cv_c_itkh}"
24965 fi
24966 # should always be here
24967 #     ITKLIB="../itcl/itk/unix/libitk.a"
24968
24969 #AC_SUBST(ITKLIB)
24970
24971
24972
24973            # now look for Tk library stuff
24974
24975            tkdir="../tk/${configdir}/"
24976
24977            TK_DEPS="${tkdir}${TK_LIB_FILE}"
24978
24979            # now look for Itcl library stuff
24980
24981
24982 #
24983 # Ok, lets find the itcl configuration
24984 # First, look for one uninstalled.
24985 # the alternative search directory is invoked by --with-itclconfig
24986 #
24987
24988 if test x"${no_itcl}" = x ; then
24989   # we reset no_itcl in case something fails here
24990   no_itcl=true
24991
24992 # Check whether --with-itclconfig or --without-itclconfig was given.
24993 if test "${with_itclconfig+set}" = set; then
24994   withval="$with_itclconfig"
24995   with_itclconfig=${withval}
24996 fi;
24997   echo "$as_me:$LINENO: checking for Itcl configuration" >&5
24998 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
24999   if test "${ac_cv_c_itclconfig+set}" = set; then
25000   echo $ECHO_N "(cached) $ECHO_C" >&6
25001 else
25002
25003
25004   # First check to see if --with-itclconfig was specified.
25005   if test x"${with_itclconfig}" != x ; then
25006     if test -f "${with_itclconfig}/itclConfig.sh" ; then
25007       ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
25008     else
25009       { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
25010 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
25011    { (exit 1); exit 1; }; }
25012     fi
25013   fi
25014
25015   # then check for a private Itcl library
25016   if test x"${ac_cv_c_itclconfig}" = x ; then
25017     for i in \
25018                 ../itcl/itcl \
25019                 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
25020                 ../../itcl \
25021                 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
25022                 ../../../itcl \
25023                 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
25024       if test -f "$i/itclConfig.sh" ; then
25025         ac_cv_c_itclconfig=`(cd $i; pwd)`
25026         break
25027       fi
25028     done
25029   fi
25030   # check in a few common install locations
25031   if test x"${ac_cv_c_itclconfig}" = x ; then
25032     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
25033       if test -f "$i/itclConfig.sh" ; then
25034         ac_cv_c_itclconfig=`(cd $i; pwd)`
25035         break
25036       fi
25037     done
25038   fi
25039   # check in a few other private locations
25040   if test x"${ac_cv_c_itclconfig}" = x ; then
25041     for i in \
25042                 ${srcdir}/../itcl/itcl \
25043                 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
25044       if test -f "$i/itclConfig.sh" ; then
25045         ac_cv_c_itclconfig=`(cd $i; pwd)`
25046         break
25047       fi
25048     done
25049   fi
25050
25051 fi
25052
25053   if test x"${ac_cv_c_itclconfig}" = x ; then
25054     ITCLCONFIG="# no Itcl configs found"
25055     { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
25056 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
25057   else
25058     no_itcl=
25059     ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
25060     echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
25061 echo "${ECHO_T}found $ITCLCONFIG" >&6
25062   fi
25063 fi
25064
25065            if test -z "${no_itcl}"; then
25066
25067     if test -f "$ITCLCONFIG" ; then
25068       . $ITCLCONFIG
25069     fi
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082              ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
25083              ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
25084            fi
25085
25086
25087            # now look for Itk library stuff
25088
25089 #
25090 # Ok, lets find the itk configuration
25091 # First, look for one uninstalled.
25092 # the alternative search directory is invoked by --with-itkconfig
25093 #
25094
25095 if test x"${no_itk}" = x ; then
25096   # we reset no_itk in case something fails here
25097   no_itk=true
25098
25099 # Check whether --with-itkconfig or --without-itkconfig was given.
25100 if test "${with_itkconfig+set}" = set; then
25101   withval="$with_itkconfig"
25102   with_itkconfig=${withval}
25103 fi;
25104   echo "$as_me:$LINENO: checking for Itk configuration" >&5
25105 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
25106   if test "${ac_cv_c_itkconfig+set}" = set; then
25107   echo $ECHO_N "(cached) $ECHO_C" >&6
25108 else
25109
25110
25111   # First check to see if --with-itkconfig was specified.
25112   if test x"${with_itkconfig}" != x ; then
25113     if test -f "${with_itkconfig}/itkConfig.sh" ; then
25114       ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
25115     else
25116       { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
25117 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
25118    { (exit 1); exit 1; }; }
25119     fi
25120   fi
25121
25122   # then check for a private Itk library
25123   if test x"${ac_cv_c_itkconfig}" = x ; then
25124     for i in \
25125                 ../itcl/itk \
25126                 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
25127                 ../../itk \
25128                 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
25129                 ../../../itk \
25130                 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
25131       if test -f "$i/itkConfig.sh" ; then
25132         ac_cv_c_itkconfig=`(cd $i; pwd)`
25133         break
25134       fi
25135     done
25136   fi
25137   # check in a few common install locations
25138   if test x"${ac_cv_c_itkconfig}" = x ; then
25139     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
25140       if test -f "$i/itkConfig.sh" ; then
25141         ac_cv_c_itkconfig=`(cd $i; pwd)`
25142         break
25143       fi
25144     done
25145   fi
25146   # check in a few other private locations
25147   if test x"${ac_cv_c_itkconfig}" = x ; then
25148     for i in \
25149                 ${srcdir}/../itcl/itk \
25150                 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
25151       if test -f "$i/itkConfig.sh" ; then
25152         ac_cv_c_itkconfig=`(cd $i; pwd)`
25153         break
25154       fi
25155     done
25156   fi
25157
25158 fi
25159
25160   if test x"${ac_cv_c_itkconfig}" = x ; then
25161     ITKCONFIG="# no Itk configs found"
25162     { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
25163 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
25164   else
25165     no_itk=
25166     ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
25167     echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
25168 echo "${ECHO_T}found $ITKCONFIG" >&6
25169   fi
25170 fi
25171
25172
25173            if test -z "${no_itcl}"; then
25174
25175     if test -f "$ITKCONFIG" ; then
25176       . $ITKCONFIG
25177     fi
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190              ITKLIB="${ITK_BUILD_LIB_SPEC}"
25191              ITK_DEPS="${ITK_LIB_FULL_PATH}"
25192            fi
25193
25194            ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
25195
25196            # Include some libraries that Tcl and Tk want.
25197            TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
25198            # Yes, the ordering seems wrong here.  But it isn't.
25199            # TK_LIBS is the list of libraries that need to be linked
25200            # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
25201            # were in LIBS then any link tests after this point would
25202            # try to include things like `$(LIBGUI)', which wouldn't work.
25203            GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
25204
25205            CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25206            CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25207            CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
25208            CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25209            CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25210            CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25211            CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
25212
25213            if test x$gdb_cv_os_cygwin = xyes; then
25214               WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25215               WIN32LDAPP="-Wl,--subsystem,console"
25216               CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25217            fi
25218         fi
25219     fi
25220
25221
25222
25223 subdirs="$subdirs gdbtk"
25224
25225 fi
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240 echo "$as_me:$LINENO: checking for X" >&5
25241 echo $ECHO_N "checking for X... $ECHO_C" >&6
25242
25243
25244 # Check whether --with-x or --without-x was given.
25245 if test "${with_x+set}" = set; then
25246   withval="$with_x"
25247
25248 fi;
25249 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25250 if test "x$with_x" = xno; then
25251   # The user explicitly disabled X.
25252   have_x=disabled
25253 else
25254   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25255     # Both variables are already set.
25256     have_x=yes
25257   else
25258     if test "${ac_cv_have_x+set}" = set; then
25259   echo $ECHO_N "(cached) $ECHO_C" >&6
25260 else
25261   # One or both of the vars are not set, and there is no cached value.
25262 ac_x_includes=no ac_x_libraries=no
25263 rm -fr conftest.dir
25264 if mkdir conftest.dir; then
25265   cd conftest.dir
25266   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25267   cat >Imakefile <<'_ACEOF'
25268 acfindx:
25269         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25270 _ACEOF
25271   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25272     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25273     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25274     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25275     for ac_extension in a so sl; do
25276       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
25277          test -f $ac_im_libdir/libX11.$ac_extension; then
25278         ac_im_usrlibdir=$ac_im_libdir; break
25279       fi
25280     done
25281     # Screen out bogus values from the imake configuration.  They are
25282     # bogus both because they are the default anyway, and because
25283     # using them would break gcc on systems where it needs fixed includes.
25284     case $ac_im_incroot in
25285         /usr/include) ;;
25286         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25287     esac
25288     case $ac_im_usrlibdir in
25289         /usr/lib | /lib) ;;
25290         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25291     esac
25292   fi
25293   cd ..
25294   rm -fr conftest.dir
25295 fi
25296
25297 # Standard set of common directories for X headers.
25298 # Check X11 before X11Rn because it is often a symlink to the current release.
25299 ac_x_header_dirs='
25300 /usr/X11/include
25301 /usr/X11R6/include
25302 /usr/X11R5/include
25303 /usr/X11R4/include
25304
25305 /usr/include/X11
25306 /usr/include/X11R6
25307 /usr/include/X11R5
25308 /usr/include/X11R4
25309
25310 /usr/local/X11/include
25311 /usr/local/X11R6/include
25312 /usr/local/X11R5/include
25313 /usr/local/X11R4/include
25314
25315 /usr/local/include/X11
25316 /usr/local/include/X11R6
25317 /usr/local/include/X11R5
25318 /usr/local/include/X11R4
25319
25320 /usr/X386/include
25321 /usr/x386/include
25322 /usr/XFree86/include/X11
25323
25324 /usr/include
25325 /usr/local/include
25326 /usr/unsupported/include
25327 /usr/athena/include
25328 /usr/local/x11r5/include
25329 /usr/lpp/Xamples/include
25330
25331 /usr/openwin/include
25332 /usr/openwin/share/include'
25333
25334 if test "$ac_x_includes" = no; then
25335   # Guess where to find include files, by looking for Intrinsic.h.
25336   # First, try using that file with no special directory specified.
25337   cat >conftest.$ac_ext <<_ACEOF
25338 /* confdefs.h.  */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h.  */
25343 #include <X11/Intrinsic.h>
25344 _ACEOF
25345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25347   ac_status=$?
25348   grep -v '^ *+' conftest.er1 >conftest.err
25349   rm -f conftest.er1
25350   cat conftest.err >&5
25351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352   (exit $ac_status); } >/dev/null; then
25353   if test -s conftest.err; then
25354     ac_cpp_err=$ac_c_preproc_warn_flag
25355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25356   else
25357     ac_cpp_err=
25358   fi
25359 else
25360   ac_cpp_err=yes
25361 fi
25362 if test -z "$ac_cpp_err"; then
25363   # We can compile using X headers with no special include directory.
25364 ac_x_includes=
25365 else
25366   echo "$as_me: failed program was:" >&5
25367 sed 's/^/| /' conftest.$ac_ext >&5
25368
25369   for ac_dir in $ac_x_header_dirs; do
25370   if test -r "$ac_dir/X11/Intrinsic.h"; then
25371     ac_x_includes=$ac_dir
25372     break
25373   fi
25374 done
25375 fi
25376 rm -f conftest.err conftest.$ac_ext
25377 fi # $ac_x_includes = no
25378
25379 if test "$ac_x_libraries" = no; then
25380   # Check for the libraries.
25381   # See if we find them without any special options.
25382   # Don't add to $LIBS permanently.
25383   ac_save_LIBS=$LIBS
25384   LIBS="-lXt $LIBS"
25385   cat >conftest.$ac_ext <<_ACEOF
25386 /* confdefs.h.  */
25387 _ACEOF
25388 cat confdefs.h >>conftest.$ac_ext
25389 cat >>conftest.$ac_ext <<_ACEOF
25390 /* end confdefs.h.  */
25391 #include <X11/Intrinsic.h>
25392 int
25393 main ()
25394 {
25395 XtMalloc (0)
25396   ;
25397   return 0;
25398 }
25399 _ACEOF
25400 rm -f conftest.$ac_objext conftest$ac_exeext
25401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25402   (eval $ac_link) 2>conftest.er1
25403   ac_status=$?
25404   grep -v '^ *+' conftest.er1 >conftest.err
25405   rm -f conftest.er1
25406   cat conftest.err >&5
25407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408   (exit $ac_status); } &&
25409          { ac_try='test -z "$ac_c_werror_flag"
25410                          || test ! -s conftest.err'
25411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25412   (eval $ac_try) 2>&5
25413   ac_status=$?
25414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415   (exit $ac_status); }; } &&
25416          { ac_try='test -s conftest$ac_exeext'
25417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418   (eval $ac_try) 2>&5
25419   ac_status=$?
25420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421   (exit $ac_status); }; }; then
25422   LIBS=$ac_save_LIBS
25423 # We can link X programs with no special library path.
25424 ac_x_libraries=
25425 else
25426   echo "$as_me: failed program was:" >&5
25427 sed 's/^/| /' conftest.$ac_ext >&5
25428
25429 LIBS=$ac_save_LIBS
25430 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25431 do
25432   # Don't even attempt the hair of trying to link an X program!
25433   for ac_extension in a so sl; do
25434     if test -r $ac_dir/libXt.$ac_extension; then
25435       ac_x_libraries=$ac_dir
25436       break 2
25437     fi
25438   done
25439 done
25440 fi
25441 rm -f conftest.err conftest.$ac_objext \
25442       conftest$ac_exeext conftest.$ac_ext
25443 fi # $ac_x_libraries = no
25444
25445 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25446   # Didn't find X anywhere.  Cache the known absence of X.
25447   ac_cv_have_x="have_x=no"
25448 else
25449   # Record where we found X for the cache.
25450   ac_cv_have_x="have_x=yes \
25451                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
25452 fi
25453 fi
25454
25455   fi
25456   eval "$ac_cv_have_x"
25457 fi # $with_x != no
25458
25459 if test "$have_x" != yes; then
25460   echo "$as_me:$LINENO: result: $have_x" >&5
25461 echo "${ECHO_T}$have_x" >&6
25462   no_x=yes
25463 else
25464   # If each of the values was on the command line, it overrides each guess.
25465   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25466   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25467   # Update the cache value to reflect the command line values.
25468   ac_cv_have_x="have_x=yes \
25469                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
25470   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25471 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
25472 fi
25473
25474
25475 # Check whether we should enable the TUI, but only do so if we really
25476 # can.
25477 if test x"$enable_tui" != xno; then
25478   if test -d $srcdir/tui; then
25479     if test "$ac_cv_search_waddstr" != no; then
25480       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25481       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25482       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
25483       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25484       CONFIG_ALL="${CONFIG_ALL} all-tui"
25485       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25486       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25487       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25488     else
25489       if test x"$enable_tui" = xyes; then
25490         { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
25491 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
25492    { (exit 1); exit 1; }; }
25493       else
25494         { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
25495 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
25496       fi
25497     fi
25498   fi
25499 fi
25500
25501 # Unlike the sim directory, whether a simulator is linked is controlled by
25502 # presence of a gdb_sim definition in the target configure.tgt entry.
25503 # This code just checks for a few cases where we'd like to ignore those
25504 # definitions, even when they're present in the '.mt' file.  These cases
25505 # are when --disable-sim is specified, or if the simulator directory is
25506 # not part of the source tree.
25507 #
25508 # Check whether --enable-sim or --disable-sim was given.
25509 if test "${enable_sim+set}" = set; then
25510   enableval="$enable_sim"
25511   echo "enable_sim = $enable_sim";
25512  echo "enableval = ${enableval}";
25513  case "${enableval}" in
25514   yes) ignore_sim=false ;;
25515   no)  ignore_sim=true ;;
25516   *)   ignore_sim=false ;;
25517  esac
25518 else
25519   ignore_sim=false
25520 fi;
25521
25522 if test ! -d "${srcdir}/../sim"; then
25523   ignore_sim=true
25524 fi
25525
25526 SIM=
25527 SIM_OBS=
25528 if test "${ignore_sim}" = "false"; then
25529   if test x"${gdb_sim}" != x ; then
25530     SIM="${gdb_sim}"
25531     SIM_OBS="remote-sim.o"
25532
25533 cat >>confdefs.h <<\_ACEOF
25534 #define WITH_SIM 1
25535 _ACEOF
25536
25537   fi
25538 fi
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553 # List of host floatformats.
25554
25555 cat >>confdefs.h <<_ACEOF
25556 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
25557 _ACEOF
25558
25559
25560 cat >>confdefs.h <<_ACEOF
25561 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
25562 _ACEOF
25563
25564
25565 cat >>confdefs.h <<_ACEOF
25566 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
25567 _ACEOF
25568
25569
25570 # target_subdir is used by the testsuite to find the target libraries.
25571 target_subdir=
25572 if test "${host}" != "${target}"; then
25573     target_subdir="${target_alias}/"
25574 fi
25575
25576
25577 frags=
25578 if test "${gdb_native}" = "yes"; then
25579   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25580   if test ! -f ${host_makefile_frag}; then
25581     { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25582 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25583    { (exit 1); exit 1; }; }
25584   fi
25585   frags="$frags $host_makefile_frag"
25586 else
25587   host_makefile_frag=/dev/null
25588 fi
25589
25590
25591
25592
25593 if test "${gdb_native}" = "yes"; then
25594 # We pick this up from the host configuration file (.mh) because we
25595 # do not have a native configuration Makefile fragment.
25596 nativefile=`sed -n '
25597 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
25598 ' ${host_makefile_frag}`
25599 fi
25600
25601
25602 if test x"${gdb_osabi}" != x ; then
25603
25604 cat >>confdefs.h <<_ACEOF
25605 #define GDB_OSABI_DEFAULT $gdb_osabi
25606 _ACEOF
25607
25608 fi
25609
25610 # Enable multi-ice-gdb-server.
25611 # Check whether --enable-multi-ice or --disable-multi-ice was given.
25612 if test "${enable_multi_ice+set}" = set; then
25613   enableval="$enable_multi_ice"
25614   case $enableval in
25615     yes | no)
25616       ;;
25617     *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25618 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25619    { (exit 1); exit 1; }; } ;;
25620   esac
25621 fi;
25622 if test "x$enable_multi_ice" = xyes; then
25623
25624
25625 subdirs="$subdirs multi-ice"
25626
25627 fi
25628
25629 # We only build gdbserver automatically in a native configuration.
25630 if test "$gdb_native" = "yes"; then
25631   echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25632 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
25633   if test "x$build_gdbserver" = xyes; then
25634     echo "$as_me:$LINENO: result: yes" >&5
25635 echo "${ECHO_T}yes" >&6
25636
25637
25638 subdirs="$subdirs gdbserver"
25639
25640   else
25641     echo "$as_me:$LINENO: result: no" >&5
25642 echo "${ECHO_T}no" >&6
25643   fi
25644 fi
25645
25646 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
25647 # to an empty version.
25648
25649 files=
25650 links=
25651
25652 rm -f nm.h
25653 nm_h=""
25654 if test "${nativefile}" != ""; then
25655     nm_h=nm.h
25656     case "${nativefile}" in
25657       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25658       * ) GDB_NM_FILE="${nativefile}"
25659     esac
25660     files="${files} ${GDB_NM_FILE}"
25661     links="${links} nm.h"
25662
25663 cat >>confdefs.h <<_ACEOF
25664 #define GDB_NM_FILE "${GDB_NM_FILE}"
25665 _ACEOF
25666
25667 fi
25668
25669
25670 ac_sources="$files"
25671 ac_dests="$links"
25672 while test -n "$ac_sources"; do
25673   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25674   set $ac_sources; ac_source=$1; shift; ac_sources=$*
25675   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25676 done
25677           ac_config_links="$ac_config_links $ac_config_links_1"
25678
25679
25680
25681
25682
25683
25684 cat >>confdefs.h <<\_ACEOF
25685 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25686 _ACEOF
25687
25688
25689
25690
25691
25692 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25693 if test "${with_libiconv_prefix+set}" = set; then
25694   withval="$with_libiconv_prefix"
25695
25696     for dir in `echo "$withval" | tr : ' '`; do
25697       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25698       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25699     done
25700
25701 fi;
25702
25703   echo "$as_me:$LINENO: checking for iconv" >&5
25704 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25705 if test "${am_cv_func_iconv+set}" = set; then
25706   echo $ECHO_N "(cached) $ECHO_C" >&6
25707 else
25708
25709     am_cv_func_iconv="no, consider installing GNU libiconv"
25710     am_cv_lib_iconv=no
25711     cat >conftest.$ac_ext <<_ACEOF
25712 /* confdefs.h.  */
25713 _ACEOF
25714 cat confdefs.h >>conftest.$ac_ext
25715 cat >>conftest.$ac_ext <<_ACEOF
25716 /* end confdefs.h.  */
25717 #include <stdlib.h>
25718 #include <iconv.h>
25719 int
25720 main ()
25721 {
25722 iconv_t cd = iconv_open("","");
25723        iconv(cd,NULL,NULL,NULL,NULL);
25724        iconv_close(cd);
25725   ;
25726   return 0;
25727 }
25728 _ACEOF
25729 rm -f conftest.$ac_objext conftest$ac_exeext
25730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25731   (eval $ac_link) 2>conftest.er1
25732   ac_status=$?
25733   grep -v '^ *+' conftest.er1 >conftest.err
25734   rm -f conftest.er1
25735   cat conftest.err >&5
25736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737   (exit $ac_status); } &&
25738          { ac_try='test -z "$ac_c_werror_flag"
25739                          || test ! -s conftest.err'
25740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25741   (eval $ac_try) 2>&5
25742   ac_status=$?
25743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744   (exit $ac_status); }; } &&
25745          { ac_try='test -s conftest$ac_exeext'
25746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25747   (eval $ac_try) 2>&5
25748   ac_status=$?
25749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750   (exit $ac_status); }; }; then
25751   am_cv_func_iconv=yes
25752 else
25753   echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25755
25756 fi
25757 rm -f conftest.err conftest.$ac_objext \
25758       conftest$ac_exeext conftest.$ac_ext
25759     if test "$am_cv_func_iconv" != yes; then
25760       am_save_LIBS="$LIBS"
25761       LIBS="$LIBS -liconv"
25762       cat >conftest.$ac_ext <<_ACEOF
25763 /* confdefs.h.  */
25764 _ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h.  */
25768 #include <stdlib.h>
25769 #include <iconv.h>
25770 int
25771 main ()
25772 {
25773 iconv_t cd = iconv_open("","");
25774          iconv(cd,NULL,NULL,NULL,NULL);
25775          iconv_close(cd);
25776   ;
25777   return 0;
25778 }
25779 _ACEOF
25780 rm -f conftest.$ac_objext conftest$ac_exeext
25781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25782   (eval $ac_link) 2>conftest.er1
25783   ac_status=$?
25784   grep -v '^ *+' conftest.er1 >conftest.err
25785   rm -f conftest.er1
25786   cat conftest.err >&5
25787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788   (exit $ac_status); } &&
25789          { ac_try='test -z "$ac_c_werror_flag"
25790                          || test ! -s conftest.err'
25791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25792   (eval $ac_try) 2>&5
25793   ac_status=$?
25794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795   (exit $ac_status); }; } &&
25796          { ac_try='test -s conftest$ac_exeext'
25797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798   (eval $ac_try) 2>&5
25799   ac_status=$?
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); }; }; then
25802   am_cv_lib_iconv=yes
25803         am_cv_func_iconv=yes
25804 else
25805   echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25807
25808 fi
25809 rm -f conftest.err conftest.$ac_objext \
25810       conftest$ac_exeext conftest.$ac_ext
25811       LIBS="$am_save_LIBS"
25812     fi
25813
25814 fi
25815 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25816 echo "${ECHO_T}$am_cv_func_iconv" >&6
25817   if test "$am_cv_func_iconv" = yes; then
25818
25819 cat >>confdefs.h <<\_ACEOF
25820 #define HAVE_ICONV 1
25821 _ACEOF
25822
25823     echo "$as_me:$LINENO: checking for iconv declaration" >&5
25824 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25825     if test "${am_cv_proto_iconv+set}" = set; then
25826   echo $ECHO_N "(cached) $ECHO_C" >&6
25827 else
25828
25829       cat >conftest.$ac_ext <<_ACEOF
25830 /* confdefs.h.  */
25831 _ACEOF
25832 cat confdefs.h >>conftest.$ac_ext
25833 cat >>conftest.$ac_ext <<_ACEOF
25834 /* end confdefs.h.  */
25835
25836 #include <stdlib.h>
25837 #include <iconv.h>
25838 extern
25839 #ifdef __cplusplus
25840 "C"
25841 #endif
25842 #if defined(__STDC__) || defined(__cplusplus)
25843 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25844 #else
25845 size_t iconv();
25846 #endif
25847
25848 int
25849 main ()
25850 {
25851
25852   ;
25853   return 0;
25854 }
25855 _ACEOF
25856 rm -f conftest.$ac_objext
25857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25858   (eval $ac_compile) 2>conftest.er1
25859   ac_status=$?
25860   grep -v '^ *+' conftest.er1 >conftest.err
25861   rm -f conftest.er1
25862   cat conftest.err >&5
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); } &&
25865          { ac_try='test -z "$ac_c_werror_flag"
25866                          || test ! -s conftest.err'
25867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25868   (eval $ac_try) 2>&5
25869   ac_status=$?
25870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871   (exit $ac_status); }; } &&
25872          { ac_try='test -s conftest.$ac_objext'
25873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874   (eval $ac_try) 2>&5
25875   ac_status=$?
25876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877   (exit $ac_status); }; }; then
25878   am_cv_proto_iconv_arg1=""
25879 else
25880   echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25882
25883 am_cv_proto_iconv_arg1="const"
25884 fi
25885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25886       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);"
25887 fi
25888
25889     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25890     echo "$as_me:$LINENO: result: ${ac_t:-
25891          }$am_cv_proto_iconv" >&5
25892 echo "${ECHO_T}${ac_t:-
25893          }$am_cv_proto_iconv" >&6
25894
25895 cat >>confdefs.h <<_ACEOF
25896 #define ICONV_CONST $am_cv_proto_iconv_arg1
25897 _ACEOF
25898
25899   fi
25900   LIBICONV=
25901   if test "$am_cv_lib_iconv" = yes; then
25902     LIBICONV="-liconv"
25903   fi
25904
25905
25906
25907                               ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
25908           ac_config_commands="$ac_config_commands default"
25909 cat >confcache <<\_ACEOF
25910 # This file is a shell script that caches the results of configure
25911 # tests run on this system so they can be shared between configure
25912 # scripts and configure runs, see configure's option --config-cache.
25913 # It is not useful on other systems.  If it contains results you don't
25914 # want to keep, you may remove or edit it.
25915 #
25916 # config.status only pays attention to the cache file if you give it
25917 # the --recheck option to rerun configure.
25918 #
25919 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25920 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25921 # following values.
25922
25923 _ACEOF
25924
25925 # The following way of writing the cache mishandles newlines in values,
25926 # but we know of no workaround that is simple, portable, and efficient.
25927 # So, don't put newlines in cache variables' values.
25928 # Ultrix sh set writes to stderr and can't be redirected directly,
25929 # and sets the high bit in the cache file unless we assign to the vars.
25930 {
25931   (set) 2>&1 |
25932     case `(ac_space=' '; set | grep ac_space) 2>&1` in
25933     *ac_space=\ *)
25934       # `set' does not quote correctly, so add quotes (double-quote
25935       # substitution turns \\\\ into \\, and sed turns \\ into \).
25936       sed -n \
25937         "s/'/'\\\\''/g;
25938           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25939       ;;
25940     *)
25941       # `set' quotes correctly as required by POSIX, so do not add quotes.
25942       sed -n \
25943         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25944       ;;
25945     esac;
25946 } |
25947   sed '
25948      t clear
25949      : clear
25950      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25951      t end
25952      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25953      : end' >>confcache
25954 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25955   if test -w $cache_file; then
25956     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25957     cat confcache >$cache_file
25958   else
25959     echo "not updating unwritable cache $cache_file"
25960   fi
25961 fi
25962 rm -f confcache
25963
25964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25965 # Let make expand exec_prefix.
25966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25967
25968 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25969 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25970 # trailing colons and then remove the whole line if VPATH becomes empty
25971 # (actually we leave an empty line to preserve line numbers).
25972 if test "x$srcdir" = x.; then
25973   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25974 s/:*\$(srcdir):*/:/;
25975 s/:*\${srcdir}:*/:/;
25976 s/:*@srcdir@:*/:/;
25977 s/^\([^=]*=[     ]*\):*/\1/;
25978 s/:*$//;
25979 s/^[^=]*=[       ]*$//;
25980 }'
25981 fi
25982
25983 DEFS=-DHAVE_CONFIG_H
25984
25985 ac_libobjs=
25986 ac_ltlibobjs=
25987 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25988   # 1. Remove the extension, and $U if already installed.
25989   ac_i=`echo "$ac_i" |
25990          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25991   # 2. Add them.
25992   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25993   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25994 done
25995 LIBOBJS=$ac_libobjs
25996
25997 LTLIBOBJS=$ac_ltlibobjs
25998
25999
26000 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26001   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26002 Usually this means the macro was only invoked conditionally." >&5
26003 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26004 Usually this means the macro was only invoked conditionally." >&2;}
26005    { (exit 1); exit 1; }; }
26006 fi
26007 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26008   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26009 Usually this means the macro was only invoked conditionally." >&5
26010 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26011 Usually this means the macro was only invoked conditionally." >&2;}
26012    { (exit 1); exit 1; }; }
26013 fi
26014
26015     gl_libobjs=
26016     gl_ltlibobjs=
26017     if test -n "$gl_LIBOBJS"; then
26018       # Remove the extension.
26019       sed_drop_objext='s/\.o$//;s/\.obj$//'
26020       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26021         gl_libobjs="$gl_libobjs $i.$ac_objext"
26022         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26023       done
26024     fi
26025     gl_LIBOBJS=$gl_libobjs
26026
26027     gl_LTLIBOBJS=$gl_ltlibobjs
26028
26029
26030
26031     gltests_libobjs=
26032     gltests_ltlibobjs=
26033     if test -n "$gltests_LIBOBJS"; then
26034       # Remove the extension.
26035       sed_drop_objext='s/\.o$//;s/\.obj$//'
26036       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26037         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26038         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26039       done
26040     fi
26041     gltests_LIBOBJS=$gltests_libobjs
26042
26043     gltests_LTLIBOBJS=$gltests_ltlibobjs
26044
26045
26046 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26047   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26048 Usually this means the macro was only invoked conditionally." >&5
26049 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26050 Usually this means the macro was only invoked conditionally." >&2;}
26051    { (exit 1); exit 1; }; }
26052 fi
26053 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26054   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26055 Usually this means the macro was only invoked conditionally." >&5
26056 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26057 Usually this means the macro was only invoked conditionally." >&2;}
26058    { (exit 1); exit 1; }; }
26059 fi
26060
26061 : ${CONFIG_STATUS=./config.status}
26062 ac_clean_files_save=$ac_clean_files
26063 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26064 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26065 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26066 cat >$CONFIG_STATUS <<_ACEOF
26067 #! $SHELL
26068 # Generated by $as_me.
26069 # Run this file to recreate the current configuration.
26070 # Compiler output produced by configure, useful for debugging
26071 # configure, is in config.log if it exists.
26072
26073 debug=false
26074 ac_cs_recheck=false
26075 ac_cs_silent=false
26076 SHELL=\${CONFIG_SHELL-$SHELL}
26077 _ACEOF
26078
26079 cat >>$CONFIG_STATUS <<\_ACEOF
26080 ## --------------------- ##
26081 ## M4sh Initialization.  ##
26082 ## --------------------- ##
26083
26084 # Be Bourne compatible
26085 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26086   emulate sh
26087   NULLCMD=:
26088   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26089   # is contrary to our usage.  Disable this feature.
26090   alias -g '${1+"$@"}'='"$@"'
26091 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26092   set -o posix
26093 fi
26094 DUALCASE=1; export DUALCASE # for MKS sh
26095
26096 # Support unset when possible.
26097 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26098   as_unset=unset
26099 else
26100   as_unset=false
26101 fi
26102
26103
26104 # Work around bugs in pre-3.0 UWIN ksh.
26105 $as_unset ENV MAIL MAILPATH
26106 PS1='$ '
26107 PS2='> '
26108 PS4='+ '
26109
26110 # NLS nuisances.
26111 for as_var in \
26112   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26113   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26114   LC_TELEPHONE LC_TIME
26115 do
26116   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26117     eval $as_var=C; export $as_var
26118   else
26119     $as_unset $as_var
26120   fi
26121 done
26122
26123 # Required to use basename.
26124 if expr a : '\(a\)' >/dev/null 2>&1; then
26125   as_expr=expr
26126 else
26127   as_expr=false
26128 fi
26129
26130 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26131   as_basename=basename
26132 else
26133   as_basename=false
26134 fi
26135
26136
26137 # Name of the executable.
26138 as_me=`$as_basename "$0" ||
26139 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26140          X"$0" : 'X\(//\)$' \| \
26141          X"$0" : 'X\(/\)$' \| \
26142          .     : '\(.\)' 2>/dev/null ||
26143 echo X/"$0" |
26144     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26145           /^X\/\(\/\/\)$/{ s//\1/; q; }
26146           /^X\/\(\/\).*/{ s//\1/; q; }
26147           s/.*/./; q'`
26148
26149
26150 # PATH needs CR, and LINENO needs CR and PATH.
26151 # Avoid depending upon Character Ranges.
26152 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26153 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26154 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26155 as_cr_digits='0123456789'
26156 as_cr_alnum=$as_cr_Letters$as_cr_digits
26157
26158 # The user is always right.
26159 if test "${PATH_SEPARATOR+set}" != set; then
26160   echo "#! /bin/sh" >conf$$.sh
26161   echo  "exit 0"   >>conf$$.sh
26162   chmod +x conf$$.sh
26163   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26164     PATH_SEPARATOR=';'
26165   else
26166     PATH_SEPARATOR=:
26167   fi
26168   rm -f conf$$.sh
26169 fi
26170
26171
26172   as_lineno_1=$LINENO
26173   as_lineno_2=$LINENO
26174   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26175   test "x$as_lineno_1" != "x$as_lineno_2" &&
26176   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26177   # Find who we are.  Look in the path if we contain no path at all
26178   # relative or not.
26179   case $0 in
26180     *[\\/]* ) as_myself=$0 ;;
26181     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26182 for as_dir in $PATH
26183 do
26184   IFS=$as_save_IFS
26185   test -z "$as_dir" && as_dir=.
26186   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26187 done
26188
26189        ;;
26190   esac
26191   # We did not find ourselves, most probably we were run as `sh COMMAND'
26192   # in which case we are not to be found in the path.
26193   if test "x$as_myself" = x; then
26194     as_myself=$0
26195   fi
26196   if test ! -f "$as_myself"; then
26197     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26198 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26199    { (exit 1); exit 1; }; }
26200   fi
26201   case $CONFIG_SHELL in
26202   '')
26203     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26205 do
26206   IFS=$as_save_IFS
26207   test -z "$as_dir" && as_dir=.
26208   for as_base in sh bash ksh sh5; do
26209          case $as_dir in
26210          /*)
26211            if ("$as_dir/$as_base" -c '
26212   as_lineno_1=$LINENO
26213   as_lineno_2=$LINENO
26214   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26215   test "x$as_lineno_1" != "x$as_lineno_2" &&
26216   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26217              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26218              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26219              CONFIG_SHELL=$as_dir/$as_base
26220              export CONFIG_SHELL
26221              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26222            fi;;
26223          esac
26224        done
26225 done
26226 ;;
26227   esac
26228
26229   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26230   # uniformly replaced by the line number.  The first 'sed' inserts a
26231   # line-number line before each line; the second 'sed' does the real
26232   # work.  The second script uses 'N' to pair each line-number line
26233   # with the numbered line, and appends trailing '-' during
26234   # substitution so that $LINENO is not a special case at line end.
26235   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26236   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26237   sed '=' <$as_myself |
26238     sed '
26239       N
26240       s,$,-,
26241       : loop
26242       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26243       t loop
26244       s,-$,,
26245       s,^['$as_cr_digits']*\n,,
26246     ' >$as_me.lineno &&
26247   chmod +x $as_me.lineno ||
26248     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26249 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26250    { (exit 1); exit 1; }; }
26251
26252   # Don't try to exec as it changes $[0], causing all sort of problems
26253   # (the dirname of $[0] is not the place where we might find the
26254   # original and so on.  Autoconf is especially sensible to this).
26255   . ./$as_me.lineno
26256   # Exit status is that of the last command.
26257   exit
26258 }
26259
26260
26261 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26262   *c*,-n*) ECHO_N= ECHO_C='
26263 ' ECHO_T='      ' ;;
26264   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26265   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26266 esac
26267
26268 if expr a : '\(a\)' >/dev/null 2>&1; then
26269   as_expr=expr
26270 else
26271   as_expr=false
26272 fi
26273
26274 rm -f conf$$ conf$$.exe conf$$.file
26275 echo >conf$$.file
26276 if ln -s conf$$.file conf$$ 2>/dev/null; then
26277   # We could just check for DJGPP; but this test a) works b) is more generic
26278   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26279   if test -f conf$$.exe; then
26280     # Don't use ln at all; we don't have any links
26281     as_ln_s='cp -p'
26282   else
26283     as_ln_s='ln -s'
26284   fi
26285 elif ln conf$$.file conf$$ 2>/dev/null; then
26286   as_ln_s=ln
26287 else
26288   as_ln_s='cp -p'
26289 fi
26290 rm -f conf$$ conf$$.exe conf$$.file
26291
26292 if mkdir -p . 2>/dev/null; then
26293   as_mkdir_p=:
26294 else
26295   test -d ./-p && rmdir ./-p
26296   as_mkdir_p=false
26297 fi
26298
26299 as_executable_p="test -f"
26300
26301 # Sed expression to map a string onto a valid CPP name.
26302 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26303
26304 # Sed expression to map a string onto a valid variable name.
26305 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26306
26307
26308 # IFS
26309 # We need space, tab and new line, in precisely that order.
26310 as_nl='
26311 '
26312 IFS="   $as_nl"
26313
26314 # CDPATH.
26315 $as_unset CDPATH
26316
26317 exec 6>&1
26318
26319 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26320 # report actual input values of CONFIG_FILES etc. instead of their
26321 # values after options handling.  Logging --version etc. is OK.
26322 exec 5>>config.log
26323 {
26324   echo
26325   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26326 ## Running $as_me. ##
26327 _ASBOX
26328 } >&5
26329 cat >&5 <<_CSEOF
26330
26331 This file was extended by $as_me, which was
26332 generated by GNU Autoconf 2.59.  Invocation command line was
26333
26334   CONFIG_FILES    = $CONFIG_FILES
26335   CONFIG_HEADERS  = $CONFIG_HEADERS
26336   CONFIG_LINKS    = $CONFIG_LINKS
26337   CONFIG_COMMANDS = $CONFIG_COMMANDS
26338   $ $0 $@
26339
26340 _CSEOF
26341 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26342 echo >&5
26343 _ACEOF
26344
26345 # Files that config.status was made for.
26346 if test -n "$ac_config_files"; then
26347   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26348 fi
26349
26350 if test -n "$ac_config_headers"; then
26351   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26352 fi
26353
26354 if test -n "$ac_config_links"; then
26355   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26356 fi
26357
26358 if test -n "$ac_config_commands"; then
26359   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26360 fi
26361
26362 cat >>$CONFIG_STATUS <<\_ACEOF
26363
26364 ac_cs_usage="\
26365 \`$as_me' instantiates files from templates according to the
26366 current configuration.
26367
26368 Usage: $0 [OPTIONS] [FILE]...
26369
26370   -h, --help       print this help, then exit
26371   -V, --version    print version number, then exit
26372   -q, --quiet      do not print progress messages
26373   -d, --debug      don't remove temporary files
26374       --recheck    update $as_me by reconfiguring in the same conditions
26375   --file=FILE[:TEMPLATE]
26376                    instantiate the configuration file FILE
26377   --header=FILE[:TEMPLATE]
26378                    instantiate the configuration header FILE
26379
26380 Configuration files:
26381 $config_files
26382
26383 Configuration headers:
26384 $config_headers
26385
26386 Configuration links:
26387 $config_links
26388
26389 Configuration commands:
26390 $config_commands
26391
26392 Report bugs to <bug-autoconf@gnu.org>."
26393 _ACEOF
26394
26395 cat >>$CONFIG_STATUS <<_ACEOF
26396 ac_cs_version="\\
26397 config.status
26398 configured by $0, generated by GNU Autoconf 2.59,
26399   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26400
26401 Copyright (C) 2003 Free Software Foundation, Inc.
26402 This config.status script is free software; the Free Software Foundation
26403 gives unlimited permission to copy, distribute and modify it."
26404 srcdir=$srcdir
26405 INSTALL="$INSTALL"
26406 _ACEOF
26407
26408 cat >>$CONFIG_STATUS <<\_ACEOF
26409 # If no file are specified by the user, then we need to provide default
26410 # value.  By we need to know if files were specified by the user.
26411 ac_need_defaults=:
26412 while test $# != 0
26413 do
26414   case $1 in
26415   --*=*)
26416     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26417     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26418     ac_shift=:
26419     ;;
26420   -*)
26421     ac_option=$1
26422     ac_optarg=$2
26423     ac_shift=shift
26424     ;;
26425   *) # This is not an option, so the user has probably given explicit
26426      # arguments.
26427      ac_option=$1
26428      ac_need_defaults=false;;
26429   esac
26430
26431   case $ac_option in
26432   # Handling of the options.
26433 _ACEOF
26434 cat >>$CONFIG_STATUS <<\_ACEOF
26435   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26436     ac_cs_recheck=: ;;
26437   --version | --vers* | -V )
26438     echo "$ac_cs_version"; exit 0 ;;
26439   --he | --h)
26440     # Conflict between --help and --header
26441     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26442 Try \`$0 --help' for more information." >&5
26443 echo "$as_me: error: ambiguous option: $1
26444 Try \`$0 --help' for more information." >&2;}
26445    { (exit 1); exit 1; }; };;
26446   --help | --hel | -h )
26447     echo "$ac_cs_usage"; exit 0 ;;
26448   --debug | --d* | -d )
26449     debug=: ;;
26450   --file | --fil | --fi | --f )
26451     $ac_shift
26452     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26453     ac_need_defaults=false;;
26454   --header | --heade | --head | --hea )
26455     $ac_shift
26456     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26457     ac_need_defaults=false;;
26458   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26459   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26460     ac_cs_silent=: ;;
26461
26462   # This is an error.
26463   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26464 Try \`$0 --help' for more information." >&5
26465 echo "$as_me: error: unrecognized option: $1
26466 Try \`$0 --help' for more information." >&2;}
26467    { (exit 1); exit 1; }; } ;;
26468
26469   *) ac_config_targets="$ac_config_targets $1" ;;
26470
26471   esac
26472   shift
26473 done
26474
26475 ac_configure_extra_args=
26476
26477 if $ac_cs_silent; then
26478   exec 6>/dev/null
26479   ac_configure_extra_args="$ac_configure_extra_args --silent"
26480 fi
26481
26482 _ACEOF
26483 cat >>$CONFIG_STATUS <<_ACEOF
26484 if \$ac_cs_recheck; then
26485   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26486   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26487 fi
26488
26489 _ACEOF
26490
26491 cat >>$CONFIG_STATUS <<_ACEOF
26492 #
26493 # INIT-COMMANDS section.
26494 #
26495
26496 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26497
26498 gdb_host_cpu=$gdb_host_cpu
26499 nativefile=$nativefile
26500
26501
26502 _ACEOF
26503
26504
26505
26506 cat >>$CONFIG_STATUS <<\_ACEOF
26507 for ac_config_target in $ac_config_targets
26508 do
26509   case "$ac_config_target" in
26510   # Handling of arguments.
26511   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26512   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
26513   "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
26514   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
26515   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26516   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26517   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26518   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26519 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26520    { (exit 1); exit 1; }; };;
26521   esac
26522 done
26523
26524 # If the user did not use the arguments to specify the items to instantiate,
26525 # then the envvar interface is used.  Set only those that are not.
26526 # We use the long form for the default assignment because of an extremely
26527 # bizarre bug on SunOS 4.1.3.
26528 if $ac_need_defaults; then
26529   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26530   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26531   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26532   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26533 fi
26534
26535 # Have a temporary directory for convenience.  Make it in the build tree
26536 # simply because there is no reason to put it here, and in addition,
26537 # creating and moving files from /tmp can sometimes cause problems.
26538 # Create a temporary directory, and hook for its removal unless debugging.
26539 $debug ||
26540 {
26541   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26542   trap '{ (exit 1); exit 1; }' 1 2 13 15
26543 }
26544
26545 # Create a (secure) tmp directory for tmp files.
26546
26547 {
26548   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26549   test -n "$tmp" && test -d "$tmp"
26550 }  ||
26551 {
26552   tmp=./confstat$$-$RANDOM
26553   (umask 077 && mkdir $tmp)
26554 } ||
26555 {
26556    echo "$me: cannot create a temporary directory in ." >&2
26557    { (exit 1); exit 1; }
26558 }
26559
26560 _ACEOF
26561
26562 cat >>$CONFIG_STATUS <<_ACEOF
26563
26564 #
26565 # CONFIG_FILES section.
26566 #
26567
26568 # No need to generate the scripts if there are no CONFIG_FILES.
26569 # This happens for instance when ./config.status config.h
26570 if test -n "\$CONFIG_FILES"; then
26571   # Protect against being on the right side of a sed subst in config.status.
26572   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26573    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26574 s,@SHELL@,$SHELL,;t t
26575 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26576 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26577 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26578 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26579 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26580 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26581 s,@exec_prefix@,$exec_prefix,;t t
26582 s,@prefix@,$prefix,;t t
26583 s,@program_transform_name@,$program_transform_name,;t t
26584 s,@bindir@,$bindir,;t t
26585 s,@sbindir@,$sbindir,;t t
26586 s,@libexecdir@,$libexecdir,;t t
26587 s,@datadir@,$datadir,;t t
26588 s,@sysconfdir@,$sysconfdir,;t t
26589 s,@sharedstatedir@,$sharedstatedir,;t t
26590 s,@localstatedir@,$localstatedir,;t t
26591 s,@libdir@,$libdir,;t t
26592 s,@includedir@,$includedir,;t t
26593 s,@oldincludedir@,$oldincludedir,;t t
26594 s,@infodir@,$infodir,;t t
26595 s,@mandir@,$mandir,;t t
26596 s,@build_alias@,$build_alias,;t t
26597 s,@host_alias@,$host_alias,;t t
26598 s,@target_alias@,$target_alias,;t t
26599 s,@DEFS@,$DEFS,;t t
26600 s,@ECHO_C@,$ECHO_C,;t t
26601 s,@ECHO_N@,$ECHO_N,;t t
26602 s,@ECHO_T@,$ECHO_T,;t t
26603 s,@LIBS@,$LIBS,;t t
26604 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26605 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26606 s,@MAINT@,$MAINT,;t t
26607 s,@CC@,$CC,;t t
26608 s,@CFLAGS@,$CFLAGS,;t t
26609 s,@LDFLAGS@,$LDFLAGS,;t t
26610 s,@CPPFLAGS@,$CPPFLAGS,;t t
26611 s,@ac_ct_CC@,$ac_ct_CC,;t t
26612 s,@EXEEXT@,$EXEEXT,;t t
26613 s,@OBJEXT@,$OBJEXT,;t t
26614 s,@CPP@,$CPP,;t t
26615 s,@EGREP@,$EGREP,;t t
26616 s,@RANLIB@,$RANLIB,;t t
26617 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26618 s,@build@,$build,;t t
26619 s,@build_cpu@,$build_cpu,;t t
26620 s,@build_vendor@,$build_vendor,;t t
26621 s,@build_os@,$build_os,;t t
26622 s,@host@,$host,;t t
26623 s,@host_cpu@,$host_cpu,;t t
26624 s,@host_vendor@,$host_vendor,;t t
26625 s,@host_os@,$host_os,;t t
26626 s,@target@,$target,;t t
26627 s,@target_cpu@,$target_cpu,;t t
26628 s,@target_vendor@,$target_vendor,;t t
26629 s,@target_os@,$target_os,;t t
26630 s,@USE_NLS@,$USE_NLS,;t t
26631 s,@LIBINTL@,$LIBINTL,;t t
26632 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26633 s,@INCINTL@,$INCINTL,;t t
26634 s,@XGETTEXT@,$XGETTEXT,;t t
26635 s,@GMSGFMT@,$GMSGFMT,;t t
26636 s,@POSUB@,$POSUB,;t t
26637 s,@CATALOGS@,$CATALOGS,;t t
26638 s,@DATADIRNAME@,$DATADIRNAME,;t t
26639 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26640 s,@GENCAT@,$GENCAT,;t t
26641 s,@CATOBJEXT@,$CATOBJEXT,;t t
26642 s,@localedir@,$localedir,;t t
26643 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26644 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26645 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26646 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26647 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26648 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26649 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26650 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26651 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26652 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26653 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26654 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26655 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26656 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26657 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26658 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26659 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26660 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26661 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26662 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26663 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26664 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26665 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26666 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26667 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26668 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26669 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26670 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26671 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26672 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26673 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26674 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26675 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26676 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26677 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26678 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26679 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26680 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26681 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26682 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26683 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26684 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26685 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26686 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26687 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26688 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26689 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26690 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26691 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26692 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26693 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26694 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26695 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26696 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26697 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26698 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26699 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26700 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26701 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26702 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26703 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26704 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26705 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26706 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26707 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26708 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26709 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26710 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26711 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26712 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26713 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26714 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26715 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26716 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26717 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26718 s,@STDINT_H@,$STDINT_H,;t t
26719 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26720 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26721 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26722 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26723 s,@WCHAR_H@,$WCHAR_H,;t t
26724 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26725 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26726 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26727 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
26728 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
26729 s,@PACKAGE@,$PACKAGE,;t t
26730 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26731 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26732 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26733 s,@CYGPATH_W@,$CYGPATH_W,;t t
26734 s,@VERSION@,$VERSION,;t t
26735 s,@ACLOCAL@,$ACLOCAL,;t t
26736 s,@AUTOCONF@,$AUTOCONF,;t t
26737 s,@AUTOMAKE@,$AUTOMAKE,;t t
26738 s,@AUTOHEADER@,$AUTOHEADER,;t t
26739 s,@MAKEINFO@,$MAKEINFO,;t t
26740 s,@install_sh@,$install_sh,;t t
26741 s,@STRIP@,$STRIP,;t t
26742 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26743 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26744 s,@mkdir_p@,$mkdir_p,;t t
26745 s,@AWK@,$AWK,;t t
26746 s,@SET_MAKE@,$SET_MAKE,;t t
26747 s,@am__leading_dot@,$am__leading_dot,;t t
26748 s,@AMTAR@,$AMTAR,;t t
26749 s,@am__tar@,$am__tar,;t t
26750 s,@am__untar@,$am__untar,;t t
26751 s,@DEPDIR@,$DEPDIR,;t t
26752 s,@am__include@,$am__include,;t t
26753 s,@am__quote@,$am__quote,;t t
26754 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26755 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26756 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26757 s,@CCDEPMODE@,$CCDEPMODE,;t t
26758 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26759 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26760 s,@subdirs@,$subdirs,;t t
26761 s,@TARGET_OBS@,$TARGET_OBS,;t t
26762 s,@PKGVERSION@,$PKGVERSION,;t t
26763 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26764 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
26765 s,@LN_S@,$LN_S,;t t
26766 s,@YACC@,$YACC,;t t
26767 s,@AR@,$AR,;t t
26768 s,@ac_ct_AR@,$ac_ct_AR,;t t
26769 s,@DLLTOOL@,$DLLTOOL,;t t
26770 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26771 s,@WINDRES@,$WINDRES,;t t
26772 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26773 s,@MIG@,$MIG,;t t
26774 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
26775 s,@READLINE@,$READLINE,;t t
26776 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26777 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
26778 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26779 s,@LIBEXPAT@,$LIBEXPAT,;t t
26780 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
26781 s,@ALLOCA@,$ALLOCA,;t t
26782 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26783 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26784 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26785 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26786 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26787 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26788 s,@WIN32LIBS@,$WIN32LIBS,;t t
26789 s,@LIBGUI@,$LIBGUI,;t t
26790 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26791 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26792 s,@TCL_VERSION@,$TCL_VERSION,;t t
26793 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
26794 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
26795 s,@TCL_CC@,$TCL_CC,;t t
26796 s,@TCL_DEFS@,$TCL_DEFS,;t t
26797 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
26798 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
26799 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
26800 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
26801 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
26802 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
26803 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
26804 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
26805 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
26806 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
26807 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
26808 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26809 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
26810 s,@TK_VERSION@,$TK_VERSION,;t t
26811 s,@TK_DEFS@,$TK_DEFS,;t t
26812 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
26813 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26814 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
26815 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
26816 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26817 s,@TCLHDIR@,$TCLHDIR,;t t
26818 s,@TKHDIR@,$TKHDIR,;t t
26819 s,@ITCLHDIR@,$ITCLHDIR,;t t
26820 s,@ITKHDIR@,$ITKHDIR,;t t
26821 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
26822 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
26823 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
26824 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
26825 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
26826 s,@ITK_VERSION@,$ITK_VERSION,;t t
26827 s,@ITK_DEFS@,$ITK_DEFS,;t t
26828 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
26829 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
26830 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
26831 s,@X_CFLAGS@,$X_CFLAGS,;t t
26832 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26833 s,@X_LIBS@,$X_LIBS,;t t
26834 s,@TCL_DEPS@,$TCL_DEPS,;t t
26835 s,@TK_DEPS@,$TK_DEPS,;t t
26836 s,@ITCLLIB@,$ITCLLIB,;t t
26837 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
26838 s,@ITKLIB@,$ITKLIB,;t t
26839 s,@ITK_DEPS@,$ITK_DEPS,;t t
26840 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26841 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26842 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
26843 s,@SIM@,$SIM,;t t
26844 s,@SIM_OBS@,$SIM_OBS,;t t
26845 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26846 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26847 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26848 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26849 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26850 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26851 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26852 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26853 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26854 s,@target_subdir@,$target_subdir,;t t
26855 s,@frags@,$frags,;t t
26856 s,@nm_h@,$nm_h,;t t
26857 s,@LIBICONV@,$LIBICONV,;t t
26858 s,@LIBOBJS@,$LIBOBJS,;t t
26859 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26860 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26861 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26862 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26863 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
26864 /@host_makefile_frag@/r $host_makefile_frag
26865 s,@host_makefile_frag@,,;t t
26866 CEOF
26867
26868 _ACEOF
26869
26870   cat >>$CONFIG_STATUS <<\_ACEOF
26871   # Split the substitutions into bite-sized pieces for seds with
26872   # small command number limits, like on Digital OSF/1 and HP-UX.
26873   ac_max_sed_lines=48
26874   ac_sed_frag=1 # Number of current file.
26875   ac_beg=1 # First line for current file.
26876   ac_end=$ac_max_sed_lines # Line after last line for current file.
26877   ac_more_lines=:
26878   ac_sed_cmds=
26879   while $ac_more_lines; do
26880     if test $ac_beg -gt 1; then
26881       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26882     else
26883       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26884     fi
26885     if test ! -s $tmp/subs.frag; then
26886       ac_more_lines=false
26887     else
26888       # The purpose of the label and of the branching condition is to
26889       # speed up the sed processing (if there are no `@' at all, there
26890       # is no need to browse any of the substitutions).
26891       # These are the two extra sed commands mentioned above.
26892       (echo ':t
26893   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26894       if test -z "$ac_sed_cmds"; then
26895         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26896       else
26897         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26898       fi
26899       ac_sed_frag=`expr $ac_sed_frag + 1`
26900       ac_beg=$ac_end
26901       ac_end=`expr $ac_end + $ac_max_sed_lines`
26902     fi
26903   done
26904   if test -z "$ac_sed_cmds"; then
26905     ac_sed_cmds=cat
26906   fi
26907 fi # test -n "$CONFIG_FILES"
26908
26909 _ACEOF
26910 cat >>$CONFIG_STATUS <<\_ACEOF
26911 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26912   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26913   case $ac_file in
26914   - | *:- | *:-:* ) # input from stdin
26915         cat >$tmp/stdin
26916         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26917         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26918   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26919         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26920   * )   ac_file_in=$ac_file.in ;;
26921   esac
26922
26923   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26924   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26926          X"$ac_file" : 'X\(//\)[^/]' \| \
26927          X"$ac_file" : 'X\(//\)$' \| \
26928          X"$ac_file" : 'X\(/\)' \| \
26929          .     : '\(.\)' 2>/dev/null ||
26930 echo X"$ac_file" |
26931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26933           /^X\(\/\/\)$/{ s//\1/; q; }
26934           /^X\(\/\).*/{ s//\1/; q; }
26935           s/.*/./; q'`
26936   { if $as_mkdir_p; then
26937     mkdir -p "$ac_dir"
26938   else
26939     as_dir="$ac_dir"
26940     as_dirs=
26941     while test ! -d "$as_dir"; do
26942       as_dirs="$as_dir $as_dirs"
26943       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26945          X"$as_dir" : 'X\(//\)[^/]' \| \
26946          X"$as_dir" : 'X\(//\)$' \| \
26947          X"$as_dir" : 'X\(/\)' \| \
26948          .     : '\(.\)' 2>/dev/null ||
26949 echo X"$as_dir" |
26950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26951           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26952           /^X\(\/\/\)$/{ s//\1/; q; }
26953           /^X\(\/\).*/{ s//\1/; q; }
26954           s/.*/./; q'`
26955     done
26956     test ! -n "$as_dirs" || mkdir $as_dirs
26957   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26959    { (exit 1); exit 1; }; }; }
26960
26961   ac_builddir=.
26962
26963 if test "$ac_dir" != .; then
26964   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26965   # A "../" for each directory in $ac_dir_suffix.
26966   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26967 else
26968   ac_dir_suffix= ac_top_builddir=
26969 fi
26970
26971 case $srcdir in
26972   .)  # No --srcdir option.  We are building in place.
26973     ac_srcdir=.
26974     if test -z "$ac_top_builddir"; then
26975        ac_top_srcdir=.
26976     else
26977        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26978     fi ;;
26979   [\\/]* | ?:[\\/]* )  # Absolute path.
26980     ac_srcdir=$srcdir$ac_dir_suffix;
26981     ac_top_srcdir=$srcdir ;;
26982   *) # Relative path.
26983     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26984     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26985 esac
26986
26987 # Do not use `cd foo && pwd` to compute absolute paths, because
26988 # the directories may not exist.
26989 case `pwd` in
26990 .) ac_abs_builddir="$ac_dir";;
26991 *)
26992   case "$ac_dir" in
26993   .) ac_abs_builddir=`pwd`;;
26994   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26995   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26996   esac;;
26997 esac
26998 case $ac_abs_builddir in
26999 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27000 *)
27001   case ${ac_top_builddir}. in
27002   .) ac_abs_top_builddir=$ac_abs_builddir;;
27003   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27004   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27005   esac;;
27006 esac
27007 case $ac_abs_builddir in
27008 .) ac_abs_srcdir=$ac_srcdir;;
27009 *)
27010   case $ac_srcdir in
27011   .) ac_abs_srcdir=$ac_abs_builddir;;
27012   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27013   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27014   esac;;
27015 esac
27016 case $ac_abs_builddir in
27017 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27018 *)
27019   case $ac_top_srcdir in
27020   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27021   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27022   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27023   esac;;
27024 esac
27025
27026
27027   case $INSTALL in
27028   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27029   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27030   esac
27031
27032   if test x"$ac_file" != x-; then
27033     { echo "$as_me:$LINENO: creating $ac_file" >&5
27034 echo "$as_me: creating $ac_file" >&6;}
27035     rm -f "$ac_file"
27036   fi
27037   # Let's still pretend it is `configure' which instantiates (i.e., don't
27038   # use $as_me), people would be surprised to read:
27039   #    /* config.h.  Generated by config.status.  */
27040   if test x"$ac_file" = x-; then
27041     configure_input=
27042   else
27043     configure_input="$ac_file.  "
27044   fi
27045   configure_input=$configure_input"Generated from `echo $ac_file_in |
27046                                      sed 's,.*/,,'` by configure."
27047
27048   # First look for the input files in the build tree, otherwise in the
27049   # src tree.
27050   ac_file_inputs=`IFS=:
27051     for f in $ac_file_in; do
27052       case $f in
27053       -) echo $tmp/stdin ;;
27054       [\\/$]*)
27055          # Absolute (can't be DOS-style, as IFS=:)
27056          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27057 echo "$as_me: error: cannot find input file: $f" >&2;}
27058    { (exit 1); exit 1; }; }
27059          echo "$f";;
27060       *) # Relative
27061          if test -f "$f"; then
27062            # Build tree
27063            echo "$f"
27064          elif test -f "$srcdir/$f"; then
27065            # Source tree
27066            echo "$srcdir/$f"
27067          else
27068            # /dev/null tree
27069            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27070 echo "$as_me: error: cannot find input file: $f" >&2;}
27071    { (exit 1); exit 1; }; }
27072          fi;;
27073       esac
27074     done` || { (exit 1); exit 1; }
27075 _ACEOF
27076 cat >>$CONFIG_STATUS <<_ACEOF
27077   sed "$ac_vpsub
27078 $extrasub
27079 _ACEOF
27080 cat >>$CONFIG_STATUS <<\_ACEOF
27081 :t
27082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27083 s,@configure_input@,$configure_input,;t t
27084 s,@srcdir@,$ac_srcdir,;t t
27085 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27086 s,@top_srcdir@,$ac_top_srcdir,;t t
27087 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27088 s,@builddir@,$ac_builddir,;t t
27089 s,@abs_builddir@,$ac_abs_builddir,;t t
27090 s,@top_builddir@,$ac_top_builddir,;t t
27091 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27092 s,@INSTALL@,$ac_INSTALL,;t t
27093 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27094   rm -f $tmp/stdin
27095   if test x"$ac_file" != x-; then
27096     mv $tmp/out $ac_file
27097   else
27098     cat $tmp/out
27099     rm -f $tmp/out
27100   fi
27101
27102 done
27103 _ACEOF
27104 cat >>$CONFIG_STATUS <<\_ACEOF
27105
27106 #
27107 # CONFIG_HEADER section.
27108 #
27109
27110 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27111 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27112 #
27113 # ac_d sets the value in "#define NAME VALUE" lines.
27114 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27115 ac_dB='[         ].*$,\1#\2'
27116 ac_dC=' '
27117 ac_dD=',;t'
27118 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27119 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27120 ac_uB='$,\1#\2define\3'
27121 ac_uC=' '
27122 ac_uD=',;t'
27123
27124 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27125   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27126   case $ac_file in
27127   - | *:- | *:-:* ) # input from stdin
27128         cat >$tmp/stdin
27129         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27130         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27131   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27132         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27133   * )   ac_file_in=$ac_file.in ;;
27134   esac
27135
27136   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27137 echo "$as_me: creating $ac_file" >&6;}
27138
27139   # First look for the input files in the build tree, otherwise in the
27140   # src tree.
27141   ac_file_inputs=`IFS=:
27142     for f in $ac_file_in; do
27143       case $f in
27144       -) echo $tmp/stdin ;;
27145       [\\/$]*)
27146          # Absolute (can't be DOS-style, as IFS=:)
27147          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27148 echo "$as_me: error: cannot find input file: $f" >&2;}
27149    { (exit 1); exit 1; }; }
27150          # Do quote $f, to prevent DOS paths from being IFS'd.
27151          echo "$f";;
27152       *) # Relative
27153          if test -f "$f"; then
27154            # Build tree
27155            echo "$f"
27156          elif test -f "$srcdir/$f"; then
27157            # Source tree
27158            echo "$srcdir/$f"
27159          else
27160            # /dev/null tree
27161            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27162 echo "$as_me: error: cannot find input file: $f" >&2;}
27163    { (exit 1); exit 1; }; }
27164          fi;;
27165       esac
27166     done` || { (exit 1); exit 1; }
27167   # Remove the trailing spaces.
27168   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27169
27170 _ACEOF
27171
27172 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27173 # `conftest.undefs', that substitutes the proper values into
27174 # config.h.in to produce config.h.  The first handles `#define'
27175 # templates, and the second `#undef' templates.
27176 # And first: Protect against being on the right side of a sed subst in
27177 # config.status.  Protect against being in an unquoted here document
27178 # in config.status.
27179 rm -f conftest.defines conftest.undefs
27180 # Using a here document instead of a string reduces the quoting nightmare.
27181 # Putting comments in sed scripts is not portable.
27182 #
27183 # `end' is used to avoid that the second main sed command (meant for
27184 # 0-ary CPP macros) applies to n-ary macro definitions.
27185 # See the Autoconf documentation for `clear'.
27186 cat >confdef2sed.sed <<\_ACEOF
27187 s/[\\&,]/\\&/g
27188 s,[\\$`],\\&,g
27189 t clear
27190 : clear
27191 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27192 t end
27193 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27194 : end
27195 _ACEOF
27196 # If some macros were called several times there might be several times
27197 # the same #defines, which is useless.  Nevertheless, we may not want to
27198 # sort them, since we want the *last* AC-DEFINE to be honored.
27199 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27200 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27201 rm -f confdef2sed.sed
27202
27203 # This sed command replaces #undef with comments.  This is necessary, for
27204 # example, in the case of _POSIX_SOURCE, which is predefined and required
27205 # on some systems where configure will not decide to define it.
27206 cat >>conftest.undefs <<\_ACEOF
27207 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27208 _ACEOF
27209
27210 # Break up conftest.defines because some shells have a limit on the size
27211 # of here documents, and old seds have small limits too (100 cmds).
27212 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27213 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27214 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27215 echo '  :' >>$CONFIG_STATUS
27216 rm -f conftest.tail
27217 while grep . conftest.defines >/dev/null
27218 do
27219   # Write a limited-size here document to $tmp/defines.sed.
27220   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27221   # Speed up: don't consider the non `#define' lines.
27222   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27223   # Work around the forget-to-reset-the-flag bug.
27224   echo 't clr' >>$CONFIG_STATUS
27225   echo ': clr' >>$CONFIG_STATUS
27226   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27227   echo 'CEOF
27228   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27229   rm -f $tmp/in
27230   mv $tmp/out $tmp/in
27231 ' >>$CONFIG_STATUS
27232   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27233   rm -f conftest.defines
27234   mv conftest.tail conftest.defines
27235 done
27236 rm -f conftest.defines
27237 echo '  fi # grep' >>$CONFIG_STATUS
27238 echo >>$CONFIG_STATUS
27239
27240 # Break up conftest.undefs because some shells have a limit on the size
27241 # of here documents, and old seds have small limits too (100 cmds).
27242 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27243 rm -f conftest.tail
27244 while grep . conftest.undefs >/dev/null
27245 do
27246   # Write a limited-size here document to $tmp/undefs.sed.
27247   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27248   # Speed up: don't consider the non `#undef'
27249   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27250   # Work around the forget-to-reset-the-flag bug.
27251   echo 't clr' >>$CONFIG_STATUS
27252   echo ': clr' >>$CONFIG_STATUS
27253   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27254   echo 'CEOF
27255   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27256   rm -f $tmp/in
27257   mv $tmp/out $tmp/in
27258 ' >>$CONFIG_STATUS
27259   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27260   rm -f conftest.undefs
27261   mv conftest.tail conftest.undefs
27262 done
27263 rm -f conftest.undefs
27264
27265 cat >>$CONFIG_STATUS <<\_ACEOF
27266   # Let's still pretend it is `configure' which instantiates (i.e., don't
27267   # use $as_me), people would be surprised to read:
27268   #    /* config.h.  Generated by config.status.  */
27269   if test x"$ac_file" = x-; then
27270     echo "/* Generated by configure.  */" >$tmp/config.h
27271   else
27272     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27273   fi
27274   cat $tmp/in >>$tmp/config.h
27275   rm -f $tmp/in
27276   if test x"$ac_file" != x-; then
27277     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27278       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27279 echo "$as_me: $ac_file is unchanged" >&6;}
27280     else
27281       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27282 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27283          X"$ac_file" : 'X\(//\)[^/]' \| \
27284          X"$ac_file" : 'X\(//\)$' \| \
27285          X"$ac_file" : 'X\(/\)' \| \
27286          .     : '\(.\)' 2>/dev/null ||
27287 echo X"$ac_file" |
27288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27289           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27290           /^X\(\/\/\)$/{ s//\1/; q; }
27291           /^X\(\/\).*/{ s//\1/; q; }
27292           s/.*/./; q'`
27293       { if $as_mkdir_p; then
27294     mkdir -p "$ac_dir"
27295   else
27296     as_dir="$ac_dir"
27297     as_dirs=
27298     while test ! -d "$as_dir"; do
27299       as_dirs="$as_dir $as_dirs"
27300       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27302          X"$as_dir" : 'X\(//\)[^/]' \| \
27303          X"$as_dir" : 'X\(//\)$' \| \
27304          X"$as_dir" : 'X\(/\)' \| \
27305          .     : '\(.\)' 2>/dev/null ||
27306 echo X"$as_dir" |
27307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27308           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27309           /^X\(\/\/\)$/{ s//\1/; q; }
27310           /^X\(\/\).*/{ s//\1/; q; }
27311           s/.*/./; q'`
27312     done
27313     test ! -n "$as_dirs" || mkdir $as_dirs
27314   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27315 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27316    { (exit 1); exit 1; }; }; }
27317
27318       rm -f $ac_file
27319       mv $tmp/config.h $ac_file
27320     fi
27321   else
27322     cat $tmp/config.h
27323     rm -f $tmp/config.h
27324   fi
27325 # Compute $ac_file's index in $config_headers.
27326 _am_stamp_count=1
27327 for _am_header in $config_headers :; do
27328   case $_am_header in
27329     $ac_file | $ac_file:* )
27330       break ;;
27331     * )
27332       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27333   esac
27334 done
27335 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27336 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27337          X$ac_file : 'X\(//\)[^/]' \| \
27338          X$ac_file : 'X\(//\)$' \| \
27339          X$ac_file : 'X\(/\)' \| \
27340          .     : '\(.\)' 2>/dev/null ||
27341 echo X$ac_file |
27342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27343           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27344           /^X\(\/\/\)$/{ s//\1/; q; }
27345           /^X\(\/\).*/{ s//\1/; q; }
27346           s/.*/./; q'`/stamp-h$_am_stamp_count
27347 done
27348 _ACEOF
27349 cat >>$CONFIG_STATUS <<\_ACEOF
27350
27351 #
27352 # CONFIG_LINKS section.
27353 #
27354
27355 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27356   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27357   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27358
27359   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27360 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27361
27362   if test ! -r $srcdir/$ac_source; then
27363     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27364 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27365    { (exit 1); exit 1; }; }
27366   fi
27367   rm -f $ac_dest
27368
27369   # Make relative symlinks.
27370   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27371 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27372          X"$ac_dest" : 'X\(//\)[^/]' \| \
27373          X"$ac_dest" : 'X\(//\)$' \| \
27374          X"$ac_dest" : 'X\(/\)' \| \
27375          .     : '\(.\)' 2>/dev/null ||
27376 echo X"$ac_dest" |
27377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27378           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27379           /^X\(\/\/\)$/{ s//\1/; q; }
27380           /^X\(\/\).*/{ s//\1/; q; }
27381           s/.*/./; q'`
27382   { if $as_mkdir_p; then
27383     mkdir -p "$ac_dest_dir"
27384   else
27385     as_dir="$ac_dest_dir"
27386     as_dirs=
27387     while test ! -d "$as_dir"; do
27388       as_dirs="$as_dir $as_dirs"
27389       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27391          X"$as_dir" : 'X\(//\)[^/]' \| \
27392          X"$as_dir" : 'X\(//\)$' \| \
27393          X"$as_dir" : 'X\(/\)' \| \
27394          .     : '\(.\)' 2>/dev/null ||
27395 echo X"$as_dir" |
27396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27397           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27398           /^X\(\/\/\)$/{ s//\1/; q; }
27399           /^X\(\/\).*/{ s//\1/; q; }
27400           s/.*/./; q'`
27401     done
27402     test ! -n "$as_dirs" || mkdir $as_dirs
27403   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27404 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27405    { (exit 1); exit 1; }; }; }
27406
27407   ac_builddir=.
27408
27409 if test "$ac_dest_dir" != .; then
27410   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27411   # A "../" for each directory in $ac_dir_suffix.
27412   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27413 else
27414   ac_dir_suffix= ac_top_builddir=
27415 fi
27416
27417 case $srcdir in
27418   .)  # No --srcdir option.  We are building in place.
27419     ac_srcdir=.
27420     if test -z "$ac_top_builddir"; then
27421        ac_top_srcdir=.
27422     else
27423        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27424     fi ;;
27425   [\\/]* | ?:[\\/]* )  # Absolute path.
27426     ac_srcdir=$srcdir$ac_dir_suffix;
27427     ac_top_srcdir=$srcdir ;;
27428   *) # Relative path.
27429     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27430     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27431 esac
27432
27433 # Do not use `cd foo && pwd` to compute absolute paths, because
27434 # the directories may not exist.
27435 case `pwd` in
27436 .) ac_abs_builddir="$ac_dest_dir";;
27437 *)
27438   case "$ac_dest_dir" in
27439   .) ac_abs_builddir=`pwd`;;
27440   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27441   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27442   esac;;
27443 esac
27444 case $ac_abs_builddir in
27445 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27446 *)
27447   case ${ac_top_builddir}. in
27448   .) ac_abs_top_builddir=$ac_abs_builddir;;
27449   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27450   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27451   esac;;
27452 esac
27453 case $ac_abs_builddir in
27454 .) ac_abs_srcdir=$ac_srcdir;;
27455 *)
27456   case $ac_srcdir in
27457   .) ac_abs_srcdir=$ac_abs_builddir;;
27458   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27459   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27460   esac;;
27461 esac
27462 case $ac_abs_builddir in
27463 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27464 *)
27465   case $ac_top_srcdir in
27466   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27467   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27468   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27469   esac;;
27470 esac
27471
27472
27473   case $srcdir in
27474   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27475       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27476   esac
27477
27478   # Try a symlink, then a hard link, then a copy.
27479   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27480     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27481     cp -p $srcdir/$ac_source $ac_dest ||
27482     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27483 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27484    { (exit 1); exit 1; }; }
27485 done
27486 _ACEOF
27487 cat >>$CONFIG_STATUS <<\_ACEOF
27488
27489 #
27490 # CONFIG_COMMANDS section.
27491 #
27492 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27493   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27494   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27495   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27496 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27497          X"$ac_dest" : 'X\(//\)[^/]' \| \
27498          X"$ac_dest" : 'X\(//\)$' \| \
27499          X"$ac_dest" : 'X\(/\)' \| \
27500          .     : '\(.\)' 2>/dev/null ||
27501 echo X"$ac_dest" |
27502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27503           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27504           /^X\(\/\/\)$/{ s//\1/; q; }
27505           /^X\(\/\).*/{ s//\1/; q; }
27506           s/.*/./; q'`
27507   { if $as_mkdir_p; then
27508     mkdir -p "$ac_dir"
27509   else
27510     as_dir="$ac_dir"
27511     as_dirs=
27512     while test ! -d "$as_dir"; do
27513       as_dirs="$as_dir $as_dirs"
27514       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27516          X"$as_dir" : 'X\(//\)[^/]' \| \
27517          X"$as_dir" : 'X\(//\)$' \| \
27518          X"$as_dir" : 'X\(/\)' \| \
27519          .     : '\(.\)' 2>/dev/null ||
27520 echo X"$as_dir" |
27521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27522           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27523           /^X\(\/\/\)$/{ s//\1/; q; }
27524           /^X\(\/\).*/{ s//\1/; q; }
27525           s/.*/./; q'`
27526     done
27527     test ! -n "$as_dirs" || mkdir $as_dirs
27528   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27529 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27530    { (exit 1); exit 1; }; }; }
27531
27532   ac_builddir=.
27533
27534 if test "$ac_dir" != .; then
27535   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27536   # A "../" for each directory in $ac_dir_suffix.
27537   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27538 else
27539   ac_dir_suffix= ac_top_builddir=
27540 fi
27541
27542 case $srcdir in
27543   .)  # No --srcdir option.  We are building in place.
27544     ac_srcdir=.
27545     if test -z "$ac_top_builddir"; then
27546        ac_top_srcdir=.
27547     else
27548        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27549     fi ;;
27550   [\\/]* | ?:[\\/]* )  # Absolute path.
27551     ac_srcdir=$srcdir$ac_dir_suffix;
27552     ac_top_srcdir=$srcdir ;;
27553   *) # Relative path.
27554     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27555     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27556 esac
27557
27558 # Do not use `cd foo && pwd` to compute absolute paths, because
27559 # the directories may not exist.
27560 case `pwd` in
27561 .) ac_abs_builddir="$ac_dir";;
27562 *)
27563   case "$ac_dir" in
27564   .) ac_abs_builddir=`pwd`;;
27565   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27566   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27567   esac;;
27568 esac
27569 case $ac_abs_builddir in
27570 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27571 *)
27572   case ${ac_top_builddir}. in
27573   .) ac_abs_top_builddir=$ac_abs_builddir;;
27574   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27575   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27576   esac;;
27577 esac
27578 case $ac_abs_builddir in
27579 .) ac_abs_srcdir=$ac_srcdir;;
27580 *)
27581   case $ac_srcdir in
27582   .) ac_abs_srcdir=$ac_abs_builddir;;
27583   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27584   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27585   esac;;
27586 esac
27587 case $ac_abs_builddir in
27588 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27589 *)
27590   case $ac_top_srcdir in
27591   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27592   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27593   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27594   esac;;
27595 esac
27596
27597
27598   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27599 echo "$as_me: executing $ac_dest commands" >&6;}
27600   case $ac_dest in
27601     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27602   # Strip MF so we end up with the name of the file.
27603   mf=`echo "$mf" | sed -e 's/:.*$//'`
27604   # Check whether this is an Automake generated Makefile or not.
27605   # We used to match only the files named `Makefile.in', but
27606   # some people rename them; so instead we look at the file content.
27607   # Grep'ing the first line is not enough: some people post-process
27608   # each Makefile.in and add a new line on top of each file to say so.
27609   # So let's grep whole file.
27610   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27611     dirpart=`(dirname "$mf") 2>/dev/null ||
27612 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27613          X"$mf" : 'X\(//\)[^/]' \| \
27614          X"$mf" : 'X\(//\)$' \| \
27615          X"$mf" : 'X\(/\)' \| \
27616          .     : '\(.\)' 2>/dev/null ||
27617 echo X"$mf" |
27618     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27619           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27620           /^X\(\/\/\)$/{ s//\1/; q; }
27621           /^X\(\/\).*/{ s//\1/; q; }
27622           s/.*/./; q'`
27623   else
27624     continue
27625   fi
27626   # Extract the definition of DEPDIR, am__include, and am__quote
27627   # from the Makefile without running `make'.
27628   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27629   test -z "$DEPDIR" && continue
27630   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27631   test -z "am__include" && continue
27632   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27633   # When using ansi2knr, U may be empty or an underscore; expand it
27634   U=`sed -n 's/^U = //p' < "$mf"`
27635   # Find all dependency output files, they are included files with
27636   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27637   # simplest approach to changing $(DEPDIR) to its actual value in the
27638   # expansion.
27639   for file in `sed -n "
27640     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27641        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27642     # Make sure the directory exists.
27643     test -f "$dirpart/$file" && continue
27644     fdir=`(dirname "$file") 2>/dev/null ||
27645 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27646          X"$file" : 'X\(//\)[^/]' \| \
27647          X"$file" : 'X\(//\)$' \| \
27648          X"$file" : 'X\(/\)' \| \
27649          .     : '\(.\)' 2>/dev/null ||
27650 echo X"$file" |
27651     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27652           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27653           /^X\(\/\/\)$/{ s//\1/; q; }
27654           /^X\(\/\).*/{ s//\1/; q; }
27655           s/.*/./; q'`
27656     { if $as_mkdir_p; then
27657     mkdir -p $dirpart/$fdir
27658   else
27659     as_dir=$dirpart/$fdir
27660     as_dirs=
27661     while test ! -d "$as_dir"; do
27662       as_dirs="$as_dir $as_dirs"
27663       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27665          X"$as_dir" : 'X\(//\)[^/]' \| \
27666          X"$as_dir" : 'X\(//\)$' \| \
27667          X"$as_dir" : 'X\(/\)' \| \
27668          .     : '\(.\)' 2>/dev/null ||
27669 echo X"$as_dir" |
27670     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27671           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27672           /^X\(\/\/\)$/{ s//\1/; q; }
27673           /^X\(\/\).*/{ s//\1/; q; }
27674           s/.*/./; q'`
27675     done
27676     test ! -n "$as_dirs" || mkdir $as_dirs
27677   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27678 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27679    { (exit 1); exit 1; }; }; }
27680
27681     # echo "creating $dirpart/$file"
27682     echo '# dummy' > "$dirpart/$file"
27683   done
27684 done
27685  ;;
27686     default )
27687
27688 sed -e '/^NAT_FILE[     ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
27689 mv -f Makefile.tmp Makefile
27690
27691
27692 case x$CONFIG_HEADERS in
27693 xconfig.h:config.in)
27694 echo > stamp-h ;;
27695 esac
27696  ;;
27697   esac
27698 done
27699 _ACEOF
27700
27701 cat >>$CONFIG_STATUS <<\_ACEOF
27702
27703 { (exit 0); exit 0; }
27704 _ACEOF
27705 chmod +x $CONFIG_STATUS
27706 ac_clean_files=$ac_clean_files_save
27707
27708
27709 # configure is writing to config.log, and then calls config.status.
27710 # config.status does its own redirection, appending to config.log.
27711 # Unfortunately, on DOS this fails, as config.log is still kept open
27712 # by configure, so config.status won't be able to write to it; its
27713 # output is simply discarded.  So we exec the FD to /dev/null,
27714 # effectively closing config.log, so it can be properly (re)opened and
27715 # appended to by config.status.  When coming back to configure, we
27716 # need to make the FD available again.
27717 if test "$no_create" != yes; then
27718   ac_cs_success=:
27719   ac_config_status_args=
27720   test "$silent" = yes &&
27721     ac_config_status_args="$ac_config_status_args --quiet"
27722   exec 5>/dev/null
27723   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27724   exec 5>>config.log
27725   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27726   # would make configure fail if this is the last instruction.
27727   $ac_cs_success || { (exit 1); exit 1; }
27728 fi
27729
27730 #
27731 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
27732 #
27733 if test "$no_recursion" != yes; then
27734
27735   # Remove --cache-file and --srcdir arguments so they do not pile up.
27736   ac_sub_configure_args=
27737   ac_prev=
27738   eval "set x $ac_configure_args"
27739   shift
27740   for ac_arg
27741   do
27742     if test -n "$ac_prev"; then
27743       ac_prev=
27744       continue
27745     fi
27746     case $ac_arg in
27747     -cache-file | --cache-file | --cache-fil | --cache-fi \
27748     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27749       ac_prev=cache_file ;;
27750     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27751     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27752     | --c=*)
27753       ;;
27754     --config-cache | -C)
27755       ;;
27756     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27757       ac_prev=srcdir ;;
27758     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27759       ;;
27760     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27761       ac_prev=prefix ;;
27762     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27763       ;;
27764     *)
27765       case $ac_arg in
27766       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27767       esac
27768       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27769     esac
27770   done
27771
27772   # Always prepend --prefix to ensure using the same prefix
27773   # in subdir configurations.
27774   ac_arg="--prefix=$prefix"
27775   case $ac_arg in
27776   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27777   esac
27778   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
27779
27780   ac_popdir=`pwd`
27781   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27782
27783     # Do not complain, so a configure script can configure whichever
27784     # parts of a large source tree are present.
27785     test -d "$srcdir/$ac_dir" || continue
27786
27787     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27788 echo "$as_me: configuring in $ac_dir" >&6;}
27789     { if $as_mkdir_p; then
27790     mkdir -p "$ac_dir"
27791   else
27792     as_dir="$ac_dir"
27793     as_dirs=
27794     while test ! -d "$as_dir"; do
27795       as_dirs="$as_dir $as_dirs"
27796       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27798          X"$as_dir" : 'X\(//\)[^/]' \| \
27799          X"$as_dir" : 'X\(//\)$' \| \
27800          X"$as_dir" : 'X\(/\)' \| \
27801          .     : '\(.\)' 2>/dev/null ||
27802 echo X"$as_dir" |
27803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27804           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27805           /^X\(\/\/\)$/{ s//\1/; q; }
27806           /^X\(\/\).*/{ s//\1/; q; }
27807           s/.*/./; q'`
27808     done
27809     test ! -n "$as_dirs" || mkdir $as_dirs
27810   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27811 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27812    { (exit 1); exit 1; }; }; }
27813
27814     ac_builddir=.
27815
27816 if test "$ac_dir" != .; then
27817   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27818   # A "../" for each directory in $ac_dir_suffix.
27819   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27820 else
27821   ac_dir_suffix= ac_top_builddir=
27822 fi
27823
27824 case $srcdir in
27825   .)  # No --srcdir option.  We are building in place.
27826     ac_srcdir=.
27827     if test -z "$ac_top_builddir"; then
27828        ac_top_srcdir=.
27829     else
27830        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27831     fi ;;
27832   [\\/]* | ?:[\\/]* )  # Absolute path.
27833     ac_srcdir=$srcdir$ac_dir_suffix;
27834     ac_top_srcdir=$srcdir ;;
27835   *) # Relative path.
27836     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27837     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27838 esac
27839
27840 # Do not use `cd foo && pwd` to compute absolute paths, because
27841 # the directories may not exist.
27842 case `pwd` in
27843 .) ac_abs_builddir="$ac_dir";;
27844 *)
27845   case "$ac_dir" in
27846   .) ac_abs_builddir=`pwd`;;
27847   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27848   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27849   esac;;
27850 esac
27851 case $ac_abs_builddir in
27852 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27853 *)
27854   case ${ac_top_builddir}. in
27855   .) ac_abs_top_builddir=$ac_abs_builddir;;
27856   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27857   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27858   esac;;
27859 esac
27860 case $ac_abs_builddir in
27861 .) ac_abs_srcdir=$ac_srcdir;;
27862 *)
27863   case $ac_srcdir in
27864   .) ac_abs_srcdir=$ac_abs_builddir;;
27865   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27866   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27867   esac;;
27868 esac
27869 case $ac_abs_builddir in
27870 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27871 *)
27872   case $ac_top_srcdir in
27873   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27874   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27875   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27876   esac;;
27877 esac
27878
27879
27880     cd "$ac_dir"
27881
27882     # Check for guested configure; otherwise get Cygnus style configure.
27883     if test -f "$ac_srcdir/configure.gnu"; then
27884       ac_sub_configure=$ac_srcdir/configure.gnu
27885     elif test -f "$ac_srcdir/configure"; then
27886       ac_sub_configure=$ac_srcdir/configure
27887     elif test -f "$ac_srcdir/configure.in"; then
27888       # This should be Cygnus configure.
27889       ac_sub_configure=$ac_aux_dir/configure
27890     else
27891       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27892 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27893       ac_sub_configure=
27894     fi
27895
27896     # The recursion is here.
27897     if test -n "$ac_sub_configure"; then
27898       # Make the cache file name correct relative to the subdirectory.
27899       case $cache_file in
27900       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27901       *) # Relative path.
27902         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27903       esac
27904
27905       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27906 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27907       # The eval makes quoting arguments work.
27908       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27909            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27910         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27911 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27912    { (exit 1); exit 1; }; }
27913     fi
27914
27915     cd "$ac_popdir"
27916   done
27917 fi
27918
27919
27920 exit 0