* configure.ac: Check for the GNU/Linux ptrace signature.
[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.  Varargs (used on GNU/Linux) conflict with the
20120 # empty argument list, so check for that explicitly.
20121 echo "$as_me:$LINENO: checking return type of ptrace" >&5
20122 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
20123 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
20124   echo $ECHO_N "(cached) $ECHO_C" >&6
20125 else
20126   cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h.  */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h.  */
20132 $gdb_ptrace_headers
20133 int
20134 main ()
20135 {
20136 extern long ptrace (enum __ptrace_request, ...);
20137   ;
20138   return 0;
20139 }
20140 _ACEOF
20141 rm -f conftest.$ac_objext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20143   (eval $ac_compile) 2>conftest.er1
20144   ac_status=$?
20145   grep -v '^ *+' conftest.er1 >conftest.err
20146   rm -f conftest.er1
20147   cat conftest.err >&5
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); } &&
20150          { ac_try='test -z "$ac_c_werror_flag"
20151                          || test ! -s conftest.err'
20152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153   (eval $ac_try) 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); }; } &&
20157          { ac_try='test -s conftest.$ac_objext'
20158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159   (eval $ac_try) 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; }; then
20163   gdb_cv_func_ptrace_ret='long'
20164 else
20165   echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168 cat >conftest.$ac_ext <<_ACEOF
20169 /* confdefs.h.  */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h.  */
20174 $gdb_ptrace_headers
20175 int
20176 main ()
20177 {
20178 extern int ptrace ();
20179   ;
20180   return 0;
20181 }
20182 _ACEOF
20183 rm -f conftest.$ac_objext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20185   (eval $ac_compile) 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } &&
20192          { ac_try='test -z "$ac_c_werror_flag"
20193                          || test ! -s conftest.err'
20194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195   (eval $ac_try) 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; } &&
20199          { ac_try='test -s conftest.$ac_objext'
20200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201   (eval $ac_try) 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); }; }; then
20205   gdb_cv_func_ptrace_ret='int'
20206 else
20207   echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20209
20210 gdb_cv_func_ptrace_ret='long'
20211 fi
20212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20213 fi
20214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20215 fi
20216 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20217 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
20218
20219 cat >>confdefs.h <<_ACEOF
20220 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
20221 _ACEOF
20222
20223 # Check argument types.
20224 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20225 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
20226 if test "${gdb_cv_func_ptrace_args+set}" = set; then
20227   echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229
20230   cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h.  */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h.  */
20236 $gdb_ptrace_headers
20237 int
20238 main ()
20239 {
20240 extern long ptrace (enum __ptrace_request, ...);
20241   ;
20242   return 0;
20243 }
20244 _ACEOF
20245 rm -f conftest.$ac_objext
20246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20247   (eval $ac_compile) 2>conftest.er1
20248   ac_status=$?
20249   grep -v '^ *+' conftest.er1 >conftest.err
20250   rm -f conftest.er1
20251   cat conftest.err >&5
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); } &&
20254          { ac_try='test -z "$ac_c_werror_flag"
20255                          || test ! -s conftest.err'
20256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257   (eval $ac_try) 2>&5
20258   ac_status=$?
20259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260   (exit $ac_status); }; } &&
20261          { ac_try='test -s conftest.$ac_objext'
20262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263   (eval $ac_try) 2>&5
20264   ac_status=$?
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); }; }; then
20267   gdb_cv_func_ptrace_args='int,int,long,long'
20268 else
20269   echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272
20273 for gdb_arg1 in 'int' 'long'; do
20274  for gdb_arg2 in 'pid_t' 'int' 'long'; do
20275   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
20276    for gdb_arg4 in 'int' 'long'; do
20277      cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h.  */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h.  */
20283 $gdb_ptrace_headers
20284 int
20285 main ()
20286 {
20287
20288 extern $gdb_cv_func_ptrace_ret
20289   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20290
20291   ;
20292   return 0;
20293 }
20294 _ACEOF
20295 rm -f conftest.$ac_objext
20296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20297   (eval $ac_compile) 2>conftest.er1
20298   ac_status=$?
20299   grep -v '^ *+' conftest.er1 >conftest.err
20300   rm -f conftest.er1
20301   cat conftest.err >&5
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); } &&
20304          { ac_try='test -z "$ac_c_werror_flag"
20305                          || test ! -s conftest.err'
20306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307   (eval $ac_try) 2>&5
20308   ac_status=$?
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); }; } &&
20311          { ac_try='test -s conftest.$ac_objext'
20312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313   (eval $ac_try) 2>&5
20314   ac_status=$?
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); }; }; then
20317   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20318     break 4;
20319 else
20320   echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20322
20323 fi
20324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20325     for gdb_arg5 in 'int *' 'int' 'long'; do
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 $gdb_ptrace_headers
20333 int
20334 main ()
20335 {
20336
20337 extern $gdb_cv_func_ptrace_ret
20338   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20339
20340   ;
20341   return 0;
20342 }
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20346   (eval $ac_compile) 2>conftest.er1
20347   ac_status=$?
20348   grep -v '^ *+' conftest.er1 >conftest.err
20349   rm -f conftest.er1
20350   cat conftest.err >&5
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } &&
20353          { ac_try='test -z "$ac_c_werror_flag"
20354                          || test ! -s conftest.err'
20355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356   (eval $ac_try) 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); }; } &&
20360          { ac_try='test -s conftest.$ac_objext'
20361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362   (eval $ac_try) 2>&5
20363   ac_status=$?
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); }; }; then
20366
20367 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20368     break 5;
20369 else
20370   echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20372
20373 fi
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375     done
20376    done
20377   done
20378  done
20379 done
20380 # Provide a safe default value.
20381 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20382
20383 fi
20384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20385 fi
20386 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20387 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
20388 ac_save_IFS=$IFS; IFS=','
20389 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20390 IFS=$ac_save_IFS
20391 shift
20392
20393 cat >>confdefs.h <<_ACEOF
20394 #define PTRACE_TYPE_ARG3 $3
20395 _ACEOF
20396
20397 if test -n "$5"; then
20398
20399 cat >>confdefs.h <<_ACEOF
20400 #define PTRACE_TYPE_ARG5 $5
20401 _ACEOF
20402
20403 fi
20404
20405 if test "$cross_compiling" = no; then
20406   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20407 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20408 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20409   echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411   if test "$cross_compiling" = yes; then
20412   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20413 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20414    { (exit 1); exit 1; }; }
20415 else
20416   cat >conftest.$ac_ext <<_ACEOF
20417 /* confdefs.h.  */
20418 _ACEOF
20419 cat confdefs.h >>conftest.$ac_ext
20420 cat >>conftest.$ac_ext <<_ACEOF
20421 /* end confdefs.h.  */
20422 #if HAVE_UNISTD_H
20423 # include <unistd.h>
20424 #endif
20425
20426 int
20427 main ()
20428 {
20429 /* If this system has a BSD-style setpgrp which takes arguments,
20430   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20431   exit successfully. */
20432   exit (setpgrp (1,1) == -1 ? 0 : 1);
20433   ;
20434   return 0;
20435 }
20436 _ACEOF
20437 rm -f conftest$ac_exeext
20438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20439   (eval $ac_link) 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444   (eval $ac_try) 2>&5
20445   ac_status=$?
20446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447   (exit $ac_status); }; }; then
20448   ac_cv_func_setpgrp_void=no
20449 else
20450   echo "$as_me: program exited with status $ac_status" >&5
20451 echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20453
20454 ( exit $ac_status )
20455 ac_cv_func_setpgrp_void=yes
20456 fi
20457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20458 fi
20459 fi
20460 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20461 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20462 if test $ac_cv_func_setpgrp_void = yes; then
20463
20464 cat >>confdefs.h <<\_ACEOF
20465 #define SETPGRP_VOID 1
20466 _ACEOF
20467
20468 fi
20469
20470 else
20471   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20472 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20473 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476   cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h.  */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h.  */
20482
20483 #include <unistd.h>
20484
20485 int
20486 main ()
20487 {
20488
20489   if (setpgrp(1,1) == -1)
20490     exit (0);
20491   else
20492     exit (1);
20493
20494   ;
20495   return 0;
20496 }
20497 _ACEOF
20498 rm -f conftest.$ac_objext
20499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20500   (eval $ac_compile) 2>conftest.er1
20501   ac_status=$?
20502   grep -v '^ *+' conftest.er1 >conftest.err
20503   rm -f conftest.er1
20504   cat conftest.err >&5
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); } &&
20507          { ac_try='test -z "$ac_c_werror_flag"
20508                          || test ! -s conftest.err'
20509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510   (eval $ac_try) 2>&5
20511   ac_status=$?
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); }; } &&
20514          { ac_try='test -s conftest.$ac_objext'
20515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516   (eval $ac_try) 2>&5
20517   ac_status=$?
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); }; }; then
20520   ac_cv_func_setpgrp_void=no
20521 else
20522   echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20524
20525 ac_cv_func_setpgrp_void=yes
20526 fi
20527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20528 fi
20529 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20530 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20531 if test $ac_cv_func_setpgrp_void = yes; then
20532   cat >>confdefs.h <<\_ACEOF
20533 #define SETPGRP_VOID 1
20534 _ACEOF
20535
20536 fi
20537 fi
20538
20539 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
20540 # since sigsetjmp might only be defined as a macro.
20541 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20542 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
20543 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
20544   echo $ECHO_N "(cached) $ECHO_C" >&6
20545 else
20546   cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552
20553 #include <setjmp.h>
20554
20555 int
20556 main ()
20557 {
20558 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20559   ;
20560   return 0;
20561 }
20562 _ACEOF
20563 rm -f conftest.$ac_objext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20565   (eval $ac_compile) 2>conftest.er1
20566   ac_status=$?
20567   grep -v '^ *+' conftest.er1 >conftest.err
20568   rm -f conftest.er1
20569   cat conftest.err >&5
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); } &&
20572          { ac_try='test -z "$ac_c_werror_flag"
20573                          || test ! -s conftest.err'
20574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575   (eval $ac_try) 2>&5
20576   ac_status=$?
20577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578   (exit $ac_status); }; } &&
20579          { ac_try='test -s conftest.$ac_objext'
20580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581   (eval $ac_try) 2>&5
20582   ac_status=$?
20583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584   (exit $ac_status); }; }; then
20585   gdb_cv_func_sigsetjmp=yes
20586 else
20587   echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20589
20590 gdb_cv_func_sigsetjmp=no
20591 fi
20592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20593 fi
20594 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20595 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
20596 if test $gdb_cv_func_sigsetjmp = yes; then
20597
20598 cat >>confdefs.h <<\_ACEOF
20599 #define HAVE_SIGSETJMP 1
20600 _ACEOF
20601
20602 fi
20603
20604 # Assume we'll default to using the included libiberty regex.
20605 gdb_use_included_regex=yes
20606
20607 # However, if the system regex is GNU regex, then default to *not*
20608 # using the included regex.
20609 echo "$as_me:$LINENO: checking for GNU regex" >&5
20610 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
20611 if test "${gdb_cv_have_gnu_regex+set}" = set; then
20612   echo $ECHO_N "(cached) $ECHO_C" >&6
20613 else
20614   cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620 #include <gnu-versions.h>
20621 int
20622 main ()
20623 {
20624 #define REGEX_INTERFACE_VERSION 1
20625 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20626 # error "Version mismatch"
20627 #endif
20628   ;
20629   return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest.$ac_objext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20634   (eval $ac_compile) 2>conftest.er1
20635   ac_status=$?
20636   grep -v '^ *+' conftest.er1 >conftest.err
20637   rm -f conftest.er1
20638   cat conftest.err >&5
20639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640   (exit $ac_status); } &&
20641          { ac_try='test -z "$ac_c_werror_flag"
20642                          || test ! -s conftest.err'
20643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644   (eval $ac_try) 2>&5
20645   ac_status=$?
20646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); }; } &&
20648          { ac_try='test -s conftest.$ac_objext'
20649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650   (eval $ac_try) 2>&5
20651   ac_status=$?
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); }; }; then
20654   gdb_cv_have_gnu_regex=yes
20655 else
20656   echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20658
20659 gdb_cv_have_gnu_regex=no
20660 fi
20661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20662 fi
20663 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20664 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
20665 if test $gdb_cv_have_gnu_regex = yes; then
20666   gdb_use_included_regex=no
20667 fi
20668
20669
20670 # Check whether --with-included-regex or --without-included-regex was given.
20671 if test "${with_included_regex+set}" = set; then
20672   withval="$with_included_regex"
20673   gdb_with_regex=$withval
20674 else
20675   gdb_with_regex=$gdb_use_included_regex
20676 fi;
20677 if test "$gdb_with_regex" = yes; then
20678
20679 cat >>confdefs.h <<\_ACEOF
20680 #define USE_INCLUDED_REGEX 1
20681 _ACEOF
20682
20683 fi
20684
20685 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
20686 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20687 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
20688 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
20689   echo $ECHO_N "(cached) $ECHO_C" >&6
20690 else
20691   cat >conftest.$ac_ext <<_ACEOF
20692 /* confdefs.h.  */
20693 _ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h.  */
20697 #include <sys/param.h>
20698 #include <sys/proc.h>
20699
20700
20701 int
20702 main ()
20703 {
20704 static struct thread ac_aggr;
20705 if (ac_aggr.td_pcb)
20706 return 0;
20707   ;
20708   return 0;
20709 }
20710 _ACEOF
20711 rm -f conftest.$ac_objext
20712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20713   (eval $ac_compile) 2>conftest.er1
20714   ac_status=$?
20715   grep -v '^ *+' conftest.er1 >conftest.err
20716   rm -f conftest.er1
20717   cat conftest.err >&5
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); } &&
20720          { ac_try='test -z "$ac_c_werror_flag"
20721                          || test ! -s conftest.err'
20722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723   (eval $ac_try) 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; } &&
20727          { ac_try='test -s conftest.$ac_objext'
20728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729   (eval $ac_try) 2>&5
20730   ac_status=$?
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); }; }; then
20733   ac_cv_member_struct_thread_td_pcb=yes
20734 else
20735   echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744 #include <sys/param.h>
20745 #include <sys/proc.h>
20746
20747
20748 int
20749 main ()
20750 {
20751 static struct thread ac_aggr;
20752 if (sizeof ac_aggr.td_pcb)
20753 return 0;
20754   ;
20755   return 0;
20756 }
20757 _ACEOF
20758 rm -f conftest.$ac_objext
20759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20760   (eval $ac_compile) 2>conftest.er1
20761   ac_status=$?
20762   grep -v '^ *+' conftest.er1 >conftest.err
20763   rm -f conftest.er1
20764   cat conftest.err >&5
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); } &&
20767          { ac_try='test -z "$ac_c_werror_flag"
20768                          || test ! -s conftest.err'
20769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770   (eval $ac_try) 2>&5
20771   ac_status=$?
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); }; } &&
20774          { ac_try='test -s conftest.$ac_objext'
20775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776   (eval $ac_try) 2>&5
20777   ac_status=$?
20778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779   (exit $ac_status); }; }; then
20780   ac_cv_member_struct_thread_td_pcb=yes
20781 else
20782   echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20784
20785 ac_cv_member_struct_thread_td_pcb=no
20786 fi
20787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20788 fi
20789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20790 fi
20791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20792 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
20793 if test $ac_cv_member_struct_thread_td_pcb = yes; then
20794
20795 cat >>confdefs.h <<_ACEOF
20796 #define HAVE_STRUCT_THREAD_TD_PCB 1
20797 _ACEOF
20798
20799
20800 fi
20801
20802
20803 # See if <sys/lwp.h> defines `struct lwp`.
20804 echo "$as_me:$LINENO: checking for struct lwp" >&5
20805 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
20806 if test "${gdb_cv_struct_lwp+set}" = set; then
20807   echo $ECHO_N "(cached) $ECHO_C" >&6
20808 else
20809   cat >conftest.$ac_ext <<_ACEOF
20810 /* confdefs.h.  */
20811 _ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h.  */
20815 #include <sys/param.h>
20816 #include <sys/lwp.h>
20817 int
20818 main ()
20819 {
20820 struct lwp l;
20821   ;
20822   return 0;
20823 }
20824 _ACEOF
20825 rm -f conftest.$ac_objext
20826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20827   (eval $ac_compile) 2>conftest.er1
20828   ac_status=$?
20829   grep -v '^ *+' conftest.er1 >conftest.err
20830   rm -f conftest.er1
20831   cat conftest.err >&5
20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); } &&
20834          { ac_try='test -z "$ac_c_werror_flag"
20835                          || test ! -s conftest.err'
20836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837   (eval $ac_try) 2>&5
20838   ac_status=$?
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); }; } &&
20841          { ac_try='test -s conftest.$ac_objext'
20842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843   (eval $ac_try) 2>&5
20844   ac_status=$?
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); }; }; then
20847   gdb_cv_struct_lwp=yes
20848 else
20849   echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 gdb_cv_struct_lwp=no
20853 fi
20854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20855 fi
20856 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20857 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
20858 if test $gdb_cv_struct_lwp = yes; then
20859
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_STRUCT_LWP 1
20862 _ACEOF
20863
20864 fi
20865
20866 # See if <machine/reg.h> degines `struct reg'.
20867 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20868 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
20869 if test "${gdb_cv_struct_reg+set}" = set; then
20870   echo $ECHO_N "(cached) $ECHO_C" >&6
20871 else
20872   cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h.  */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h.  */
20878 #include <sys/types.h>
20879 #include <machine/reg.h>
20880 int
20881 main ()
20882 {
20883 struct reg r;
20884   ;
20885   return 0;
20886 }
20887 _ACEOF
20888 rm -f conftest.$ac_objext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20890   (eval $ac_compile) 2>conftest.er1
20891   ac_status=$?
20892   grep -v '^ *+' conftest.er1 >conftest.err
20893   rm -f conftest.er1
20894   cat conftest.err >&5
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); } &&
20897          { ac_try='test -z "$ac_c_werror_flag"
20898                          || test ! -s conftest.err'
20899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900   (eval $ac_try) 2>&5
20901   ac_status=$?
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); }; } &&
20904          { ac_try='test -s conftest.$ac_objext'
20905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906   (eval $ac_try) 2>&5
20907   ac_status=$?
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); }; }; then
20910   gdb_cv_struct_reg=yes
20911 else
20912   echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915 gdb_cv_struct_reg=no
20916 fi
20917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20918 fi
20919 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20920 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
20921 if test $gdb_cv_struct_reg = yes; then
20922
20923 cat >>confdefs.h <<\_ACEOF
20924 #define HAVE_STRUCT_REG 1
20925 _ACEOF
20926
20927 fi
20928
20929 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20930 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
20931 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20932 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
20933 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
20934   echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936   cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h.  */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h.  */
20942 #include <machine/reg.h>
20943
20944 int
20945 main ()
20946 {
20947 static struct reg ac_aggr;
20948 if (ac_aggr.r_fs)
20949 return 0;
20950   ;
20951   return 0;
20952 }
20953 _ACEOF
20954 rm -f conftest.$ac_objext
20955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20956   (eval $ac_compile) 2>conftest.er1
20957   ac_status=$?
20958   grep -v '^ *+' conftest.er1 >conftest.err
20959   rm -f conftest.er1
20960   cat conftest.err >&5
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); } &&
20963          { ac_try='test -z "$ac_c_werror_flag"
20964                          || test ! -s conftest.err'
20965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966   (eval $ac_try) 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); }; } &&
20970          { ac_try='test -s conftest.$ac_objext'
20971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972   (eval $ac_try) 2>&5
20973   ac_status=$?
20974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975   (exit $ac_status); }; }; then
20976   ac_cv_member_struct_reg_r_fs=yes
20977 else
20978   echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20980
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h.  */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h.  */
20987 #include <machine/reg.h>
20988
20989 int
20990 main ()
20991 {
20992 static struct reg ac_aggr;
20993 if (sizeof ac_aggr.r_fs)
20994 return 0;
20995   ;
20996   return 0;
20997 }
20998 _ACEOF
20999 rm -f conftest.$ac_objext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001   (eval $ac_compile) 2>conftest.er1
21002   ac_status=$?
21003   grep -v '^ *+' conftest.er1 >conftest.err
21004   rm -f conftest.er1
21005   cat conftest.err >&5
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); } &&
21008          { ac_try='test -z "$ac_c_werror_flag"
21009                          || test ! -s conftest.err'
21010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011   (eval $ac_try) 2>&5
21012   ac_status=$?
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); }; } &&
21015          { ac_try='test -s conftest.$ac_objext'
21016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017   (eval $ac_try) 2>&5
21018   ac_status=$?
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); }; }; then
21021   ac_cv_member_struct_reg_r_fs=yes
21022 else
21023   echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026 ac_cv_member_struct_reg_r_fs=no
21027 fi
21028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21029 fi
21030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21031 fi
21032 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21033 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
21034 if test $ac_cv_member_struct_reg_r_fs = yes; then
21035
21036 cat >>confdefs.h <<_ACEOF
21037 #define HAVE_STRUCT_REG_R_FS 1
21038 _ACEOF
21039
21040
21041 fi
21042 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21043 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
21044 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
21045   echo $ECHO_N "(cached) $ECHO_C" >&6
21046 else
21047   cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053 #include <machine/reg.h>
21054
21055 int
21056 main ()
21057 {
21058 static struct reg ac_aggr;
21059 if (ac_aggr.r_gs)
21060 return 0;
21061   ;
21062   return 0;
21063 }
21064 _ACEOF
21065 rm -f conftest.$ac_objext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21067   (eval $ac_compile) 2>conftest.er1
21068   ac_status=$?
21069   grep -v '^ *+' conftest.er1 >conftest.err
21070   rm -f conftest.er1
21071   cat conftest.err >&5
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); } &&
21074          { ac_try='test -z "$ac_c_werror_flag"
21075                          || test ! -s conftest.err'
21076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077   (eval $ac_try) 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); }; } &&
21081          { ac_try='test -s conftest.$ac_objext'
21082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083   (eval $ac_try) 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); }; }; then
21087   ac_cv_member_struct_reg_r_gs=yes
21088 else
21089   echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21091
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098 #include <machine/reg.h>
21099
21100 int
21101 main ()
21102 {
21103 static struct reg ac_aggr;
21104 if (sizeof ac_aggr.r_gs)
21105 return 0;
21106   ;
21107   return 0;
21108 }
21109 _ACEOF
21110 rm -f conftest.$ac_objext
21111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21112   (eval $ac_compile) 2>conftest.er1
21113   ac_status=$?
21114   grep -v '^ *+' conftest.er1 >conftest.err
21115   rm -f conftest.er1
21116   cat conftest.err >&5
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); } &&
21119          { ac_try='test -z "$ac_c_werror_flag"
21120                          || test ! -s conftest.err'
21121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122   (eval $ac_try) 2>&5
21123   ac_status=$?
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); }; } &&
21126          { ac_try='test -s conftest.$ac_objext'
21127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128   (eval $ac_try) 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); }; }; then
21132   ac_cv_member_struct_reg_r_gs=yes
21133 else
21134   echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21136
21137 ac_cv_member_struct_reg_r_gs=no
21138 fi
21139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21140 fi
21141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21142 fi
21143 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21144 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
21145 if test $ac_cv_member_struct_reg_r_gs = yes; then
21146
21147 cat >>confdefs.h <<_ACEOF
21148 #define HAVE_STRUCT_REG_R_GS 1
21149 _ACEOF
21150
21151
21152 fi
21153
21154
21155 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
21156 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21157 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
21158 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
21159   echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161   cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h.  */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h.  */
21167 #include <sys/ptrace.h>
21168 int
21169 main ()
21170 {
21171 PTRACE_GETREGS;
21172   ;
21173   return 0;
21174 }
21175 _ACEOF
21176 rm -f conftest.$ac_objext
21177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21178   (eval $ac_compile) 2>conftest.er1
21179   ac_status=$?
21180   grep -v '^ *+' conftest.er1 >conftest.err
21181   rm -f conftest.er1
21182   cat conftest.err >&5
21183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184   (exit $ac_status); } &&
21185          { ac_try='test -z "$ac_c_werror_flag"
21186                          || test ! -s conftest.err'
21187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188   (eval $ac_try) 2>&5
21189   ac_status=$?
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); }; } &&
21192          { ac_try='test -s conftest.$ac_objext'
21193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194   (eval $ac_try) 2>&5
21195   ac_status=$?
21196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197   (exit $ac_status); }; }; then
21198   gdb_cv_have_ptrace_getregs=yes
21199 else
21200   echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21202
21203 gdb_cv_have_ptrace_getregs=no
21204 fi
21205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21206 fi
21207
21208 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21209 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
21210 if test $gdb_cv_have_ptrace_getregs = yes; then
21211
21212 cat >>confdefs.h <<\_ACEOF
21213 #define HAVE_PTRACE_GETREGS 1
21214 _ACEOF
21215
21216 fi
21217
21218 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
21219 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21220 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
21221 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
21222   echo $ECHO_N "(cached) $ECHO_C" >&6
21223 else
21224   cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h.  */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h.  */
21230 #include <sys/ptrace.h>
21231 int
21232 main ()
21233 {
21234 PTRACE_GETFPXREGS;
21235   ;
21236   return 0;
21237 }
21238 _ACEOF
21239 rm -f conftest.$ac_objext
21240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21241   (eval $ac_compile) 2>conftest.er1
21242   ac_status=$?
21243   grep -v '^ *+' conftest.er1 >conftest.err
21244   rm -f conftest.er1
21245   cat conftest.err >&5
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); } &&
21248          { ac_try='test -z "$ac_c_werror_flag"
21249                          || test ! -s conftest.err'
21250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251   (eval $ac_try) 2>&5
21252   ac_status=$?
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); }; } &&
21255          { ac_try='test -s conftest.$ac_objext'
21256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257   (eval $ac_try) 2>&5
21258   ac_status=$?
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); }; }; then
21261   gdb_cv_have_ptrace_getfpxregs=yes
21262 else
21263   echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21265
21266 gdb_cv_have_ptrace_getfpxregs=no
21267 fi
21268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21269 fi
21270
21271 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21272 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
21273 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
21274
21275 cat >>confdefs.h <<\_ACEOF
21276 #define HAVE_PTRACE_GETFPXREGS 1
21277 _ACEOF
21278
21279 fi
21280
21281 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
21282 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21283 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
21284 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
21285   echo $ECHO_N "(cached) $ECHO_C" >&6
21286 else
21287   cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h.  */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h.  */
21293 #include <sys/types.h>
21294 #include <sys/ptrace.h>
21295 int
21296 main ()
21297 {
21298 PT_GETDBREGS;
21299   ;
21300   return 0;
21301 }
21302 _ACEOF
21303 rm -f conftest.$ac_objext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305   (eval $ac_compile) 2>conftest.er1
21306   ac_status=$?
21307   grep -v '^ *+' conftest.er1 >conftest.err
21308   rm -f conftest.er1
21309   cat conftest.err >&5
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); } &&
21312          { ac_try='test -z "$ac_c_werror_flag"
21313                          || test ! -s conftest.err'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; } &&
21319          { ac_try='test -s conftest.$ac_objext'
21320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321   (eval $ac_try) 2>&5
21322   ac_status=$?
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); }; }; then
21325   gdb_cv_have_pt_getdbregs=yes
21326 else
21327   echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 gdb_cv_have_pt_getdbregs=no
21331 fi
21332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21333 fi
21334
21335 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21336 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
21337 if test $gdb_cv_have_pt_getdbregs = yes; then
21338
21339 cat >>confdefs.h <<\_ACEOF
21340 #define HAVE_PT_GETDBREGS 1
21341 _ACEOF
21342
21343 fi
21344
21345 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
21346 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21347 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
21348 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
21349   echo $ECHO_N "(cached) $ECHO_C" >&6
21350 else
21351   cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h.  */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h.  */
21357 #include <sys/types.h>
21358 #include <sys/ptrace.h>
21359 int
21360 main ()
21361 {
21362 PT_GETXMMREGS;
21363   ;
21364   return 0;
21365 }
21366 _ACEOF
21367 rm -f conftest.$ac_objext
21368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21369   (eval $ac_compile) 2>conftest.er1
21370   ac_status=$?
21371   grep -v '^ *+' conftest.er1 >conftest.err
21372   rm -f conftest.er1
21373   cat conftest.err >&5
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); } &&
21376          { ac_try='test -z "$ac_c_werror_flag"
21377                          || test ! -s conftest.err'
21378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379   (eval $ac_try) 2>&5
21380   ac_status=$?
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); }; } &&
21383          { ac_try='test -s conftest.$ac_objext'
21384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385   (eval $ac_try) 2>&5
21386   ac_status=$?
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); }; }; then
21389   gdb_cv_have_pt_getxmmregs=yes
21390 else
21391   echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21393
21394 gdb_cv_have_pt_getxmmregs=no
21395 fi
21396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21397 fi
21398
21399 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21400 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
21401 if test $gdb_cv_have_pt_getxmmregs = yes; then
21402
21403 cat >>confdefs.h <<\_ACEOF
21404 #define HAVE_PT_GETXMMREGS 1
21405 _ACEOF
21406
21407 fi
21408
21409 # Detect which type of /proc is in use, such as for Unixware or Solaris.
21410
21411 if test "${target}" = "${host}"; then
21412   case "${host}" in
21413   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
21414
21415 cat >>confdefs.h <<\_ACEOF
21416 #define NEW_PROC_API 1
21417 _ACEOF
21418
21419       ;;
21420   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
21421
21422 cat >>confdefs.h <<\_ACEOF
21423 #define NEW_PROC_API 1
21424 _ACEOF
21425
21426       ;;
21427   mips-sgi-irix5*)
21428       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
21429
21430 cat >>confdefs.h <<\_ACEOF
21431 #define _KMEMUSER 1
21432 _ACEOF
21433
21434       ;;
21435   esac
21436 fi
21437
21438 if test "$ac_cv_header_sys_procfs_h" = yes; then
21439   echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21440 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
21441  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21442   echo $ECHO_N "(cached) $ECHO_C" >&6
21443 else
21444   cat >conftest.$ac_ext <<_ACEOF
21445 /* confdefs.h.  */
21446 _ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h.  */
21450
21451 #define _SYSCALL32
21452 #include <sys/procfs.h>
21453 int
21454 main ()
21455 {
21456 pstatus_t avar
21457   ;
21458   return 0;
21459 }
21460 _ACEOF
21461 rm -f conftest.$ac_objext
21462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21463   (eval $ac_compile) 2>conftest.er1
21464   ac_status=$?
21465   grep -v '^ *+' conftest.er1 >conftest.err
21466   rm -f conftest.er1
21467   cat conftest.err >&5
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); } &&
21470          { ac_try='test -z "$ac_c_werror_flag"
21471                          || test ! -s conftest.err'
21472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473   (eval $ac_try) 2>&5
21474   ac_status=$?
21475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476   (exit $ac_status); }; } &&
21477          { ac_try='test -s conftest.$ac_objext'
21478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479   (eval $ac_try) 2>&5
21480   ac_status=$?
21481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); }; }; then
21483   bfd_cv_have_sys_procfs_type_pstatus_t=yes
21484 else
21485   echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21487
21488 bfd_cv_have_sys_procfs_type_pstatus_t=no
21489
21490 fi
21491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21492 fi
21493
21494  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
21495
21496 cat >>confdefs.h <<\_ACEOF
21497 #define HAVE_PSTATUS_T 1
21498 _ACEOF
21499
21500  fi
21501  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21502 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
21503
21504   echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21505 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
21506  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21507   echo $ECHO_N "(cached) $ECHO_C" >&6
21508 else
21509   cat >conftest.$ac_ext <<_ACEOF
21510 /* confdefs.h.  */
21511 _ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h.  */
21515
21516 #define _SYSCALL32
21517 #include <sys/procfs.h>
21518 int
21519 main ()
21520 {
21521 prrun_t avar
21522   ;
21523   return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest.$ac_objext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21528   (eval $ac_compile) 2>conftest.er1
21529   ac_status=$?
21530   grep -v '^ *+' conftest.er1 >conftest.err
21531   rm -f conftest.er1
21532   cat conftest.err >&5
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); } &&
21535          { ac_try='test -z "$ac_c_werror_flag"
21536                          || test ! -s conftest.err'
21537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538   (eval $ac_try) 2>&5
21539   ac_status=$?
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); }; } &&
21542          { ac_try='test -s conftest.$ac_objext'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; }; then
21548   bfd_cv_have_sys_procfs_type_prrun_t=yes
21549 else
21550   echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553 bfd_cv_have_sys_procfs_type_prrun_t=no
21554
21555 fi
21556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21557 fi
21558
21559  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
21560
21561 cat >>confdefs.h <<\_ACEOF
21562 #define HAVE_PRRUN_T 1
21563 _ACEOF
21564
21565  fi
21566  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21567 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
21568
21569   echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21570 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
21571  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21572   echo $ECHO_N "(cached) $ECHO_C" >&6
21573 else
21574   cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h.  */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h.  */
21580
21581 #define _SYSCALL32
21582 #include <sys/procfs.h>
21583 int
21584 main ()
21585 {
21586 gregset_t avar
21587   ;
21588   return 0;
21589 }
21590 _ACEOF
21591 rm -f conftest.$ac_objext
21592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21593   (eval $ac_compile) 2>conftest.er1
21594   ac_status=$?
21595   grep -v '^ *+' conftest.er1 >conftest.err
21596   rm -f conftest.er1
21597   cat conftest.err >&5
21598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599   (exit $ac_status); } &&
21600          { ac_try='test -z "$ac_c_werror_flag"
21601                          || test ! -s conftest.err'
21602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603   (eval $ac_try) 2>&5
21604   ac_status=$?
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); }; } &&
21607          { ac_try='test -s conftest.$ac_objext'
21608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609   (eval $ac_try) 2>&5
21610   ac_status=$?
21611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612   (exit $ac_status); }; }; then
21613   bfd_cv_have_sys_procfs_type_gregset_t=yes
21614 else
21615   echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21617
21618 bfd_cv_have_sys_procfs_type_gregset_t=no
21619
21620 fi
21621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21622 fi
21623
21624  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21625
21626 cat >>confdefs.h <<\_ACEOF
21627 #define HAVE_GREGSET_T 1
21628 _ACEOF
21629
21630  fi
21631  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21632 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
21633
21634   echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21635 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
21636  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21637   echo $ECHO_N "(cached) $ECHO_C" >&6
21638 else
21639   cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h.  */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h.  */
21645
21646 #define _SYSCALL32
21647 #include <sys/procfs.h>
21648 int
21649 main ()
21650 {
21651 fpregset_t avar
21652   ;
21653   return 0;
21654 }
21655 _ACEOF
21656 rm -f conftest.$ac_objext
21657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21658   (eval $ac_compile) 2>conftest.er1
21659   ac_status=$?
21660   grep -v '^ *+' conftest.er1 >conftest.err
21661   rm -f conftest.er1
21662   cat conftest.err >&5
21663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664   (exit $ac_status); } &&
21665          { ac_try='test -z "$ac_c_werror_flag"
21666                          || test ! -s conftest.err'
21667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668   (eval $ac_try) 2>&5
21669   ac_status=$?
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); }; } &&
21672          { ac_try='test -s conftest.$ac_objext'
21673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674   (eval $ac_try) 2>&5
21675   ac_status=$?
21676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677   (exit $ac_status); }; }; then
21678   bfd_cv_have_sys_procfs_type_fpregset_t=yes
21679 else
21680   echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21682
21683 bfd_cv_have_sys_procfs_type_fpregset_t=no
21684
21685 fi
21686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21687 fi
21688
21689  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
21690
21691 cat >>confdefs.h <<\_ACEOF
21692 #define HAVE_FPREGSET_T 1
21693 _ACEOF
21694
21695  fi
21696  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21697 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
21698
21699   echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21700 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
21701  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21702   echo $ECHO_N "(cached) $ECHO_C" >&6
21703 else
21704   cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h.  */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h.  */
21710
21711 #define _SYSCALL32
21712 #include <sys/procfs.h>
21713 int
21714 main ()
21715 {
21716 prgregset_t avar
21717   ;
21718   return 0;
21719 }
21720 _ACEOF
21721 rm -f conftest.$ac_objext
21722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21723   (eval $ac_compile) 2>conftest.er1
21724   ac_status=$?
21725   grep -v '^ *+' conftest.er1 >conftest.err
21726   rm -f conftest.er1
21727   cat conftest.err >&5
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); } &&
21730          { ac_try='test -z "$ac_c_werror_flag"
21731                          || test ! -s conftest.err'
21732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733   (eval $ac_try) 2>&5
21734   ac_status=$?
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); }; } &&
21737          { ac_try='test -s conftest.$ac_objext'
21738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739   (eval $ac_try) 2>&5
21740   ac_status=$?
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); }; }; then
21743   bfd_cv_have_sys_procfs_type_prgregset_t=yes
21744 else
21745   echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21747
21748 bfd_cv_have_sys_procfs_type_prgregset_t=no
21749
21750 fi
21751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21752 fi
21753
21754  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21755
21756 cat >>confdefs.h <<\_ACEOF
21757 #define HAVE_PRGREGSET_T 1
21758 _ACEOF
21759
21760  fi
21761  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21762 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
21763
21764   echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21765 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
21766  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21767   echo $ECHO_N "(cached) $ECHO_C" >&6
21768 else
21769   cat >conftest.$ac_ext <<_ACEOF
21770 /* confdefs.h.  */
21771 _ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h.  */
21775
21776 #define _SYSCALL32
21777 #include <sys/procfs.h>
21778 int
21779 main ()
21780 {
21781 prfpregset_t avar
21782   ;
21783   return 0;
21784 }
21785 _ACEOF
21786 rm -f conftest.$ac_objext
21787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21788   (eval $ac_compile) 2>conftest.er1
21789   ac_status=$?
21790   grep -v '^ *+' conftest.er1 >conftest.err
21791   rm -f conftest.er1
21792   cat conftest.err >&5
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); } &&
21795          { ac_try='test -z "$ac_c_werror_flag"
21796                          || test ! -s conftest.err'
21797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21798   (eval $ac_try) 2>&5
21799   ac_status=$?
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); }; } &&
21802          { ac_try='test -s conftest.$ac_objext'
21803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804   (eval $ac_try) 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); }; }; then
21808   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
21809 else
21810   echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21812
21813 bfd_cv_have_sys_procfs_type_prfpregset_t=no
21814
21815 fi
21816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21817 fi
21818
21819  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21820
21821 cat >>confdefs.h <<\_ACEOF
21822 #define HAVE_PRFPREGSET_T 1
21823 _ACEOF
21824
21825  fi
21826  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21827 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
21828
21829   echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21830 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
21831  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21832   echo $ECHO_N "(cached) $ECHO_C" >&6
21833 else
21834   cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h.  */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h.  */
21840
21841 #define _SYSCALL32
21842 #include <sys/procfs.h>
21843 int
21844 main ()
21845 {
21846 prgregset32_t avar
21847   ;
21848   return 0;
21849 }
21850 _ACEOF
21851 rm -f conftest.$ac_objext
21852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21853   (eval $ac_compile) 2>conftest.er1
21854   ac_status=$?
21855   grep -v '^ *+' conftest.er1 >conftest.err
21856   rm -f conftest.er1
21857   cat conftest.err >&5
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); } &&
21860          { ac_try='test -z "$ac_c_werror_flag"
21861                          || test ! -s conftest.err'
21862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863   (eval $ac_try) 2>&5
21864   ac_status=$?
21865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866   (exit $ac_status); }; } &&
21867          { ac_try='test -s conftest.$ac_objext'
21868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869   (eval $ac_try) 2>&5
21870   ac_status=$?
21871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872   (exit $ac_status); }; }; then
21873   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
21874 else
21875   echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21877
21878 bfd_cv_have_sys_procfs_type_prgregset32_t=no
21879
21880 fi
21881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21882 fi
21883
21884  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21885
21886 cat >>confdefs.h <<\_ACEOF
21887 #define HAVE_PRGREGSET32_T 1
21888 _ACEOF
21889
21890  fi
21891  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21892 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
21893
21894   echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21895 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
21896  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21897   echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899   cat >conftest.$ac_ext <<_ACEOF
21900 /* confdefs.h.  */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h.  */
21905
21906 #define _SYSCALL32
21907 #include <sys/procfs.h>
21908 int
21909 main ()
21910 {
21911 prfpregset32_t avar
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest.$ac_objext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21918   (eval $ac_compile) 2>conftest.er1
21919   ac_status=$?
21920   grep -v '^ *+' conftest.er1 >conftest.err
21921   rm -f conftest.er1
21922   cat conftest.err >&5
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); } &&
21925          { ac_try='test -z "$ac_c_werror_flag"
21926                          || test ! -s conftest.err'
21927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928   (eval $ac_try) 2>&5
21929   ac_status=$?
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); }; } &&
21932          { ac_try='test -s conftest.$ac_objext'
21933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934   (eval $ac_try) 2>&5
21935   ac_status=$?
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); }; }; then
21938   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
21939 else
21940   echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
21944
21945 fi
21946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21947 fi
21948
21949  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
21950
21951 cat >>confdefs.h <<\_ACEOF
21952 #define HAVE_PRFPREGSET32_T 1
21953 _ACEOF
21954
21955  fi
21956  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21957 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
21958
21959   echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21960 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
21961  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21962   echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21964   cat >conftest.$ac_ext <<_ACEOF
21965 /* confdefs.h.  */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h.  */
21970
21971 #define _SYSCALL32
21972 #include <sys/procfs.h>
21973 int
21974 main ()
21975 {
21976 lwpid_t avar
21977   ;
21978   return 0;
21979 }
21980 _ACEOF
21981 rm -f conftest.$ac_objext
21982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21983   (eval $ac_compile) 2>conftest.er1
21984   ac_status=$?
21985   grep -v '^ *+' conftest.er1 >conftest.err
21986   rm -f conftest.er1
21987   cat conftest.err >&5
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); } &&
21990          { ac_try='test -z "$ac_c_werror_flag"
21991                          || test ! -s conftest.err'
21992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21993   (eval $ac_try) 2>&5
21994   ac_status=$?
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); }; } &&
21997          { ac_try='test -s conftest.$ac_objext'
21998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999   (eval $ac_try) 2>&5
22000   ac_status=$?
22001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002   (exit $ac_status); }; }; then
22003   bfd_cv_have_sys_procfs_type_lwpid_t=yes
22004 else
22005   echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22007
22008 bfd_cv_have_sys_procfs_type_lwpid_t=no
22009
22010 fi
22011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22012 fi
22013
22014  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
22015
22016 cat >>confdefs.h <<\_ACEOF
22017 #define HAVE_LWPID_T 1
22018 _ACEOF
22019
22020  fi
22021  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22022 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
22023
22024   echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22025 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
22026  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22027   echo $ECHO_N "(cached) $ECHO_C" >&6
22028 else
22029   cat >conftest.$ac_ext <<_ACEOF
22030 /* confdefs.h.  */
22031 _ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h.  */
22035
22036 #define _SYSCALL32
22037 #include <sys/procfs.h>
22038 int
22039 main ()
22040 {
22041 psaddr_t avar
22042   ;
22043   return 0;
22044 }
22045 _ACEOF
22046 rm -f conftest.$ac_objext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048   (eval $ac_compile) 2>conftest.er1
22049   ac_status=$?
22050   grep -v '^ *+' conftest.er1 >conftest.err
22051   rm -f conftest.er1
22052   cat conftest.err >&5
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); } &&
22055          { ac_try='test -z "$ac_c_werror_flag"
22056                          || test ! -s conftest.err'
22057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058   (eval $ac_try) 2>&5
22059   ac_status=$?
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); }; } &&
22062          { ac_try='test -s conftest.$ac_objext'
22063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064   (eval $ac_try) 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); }; }; then
22068   bfd_cv_have_sys_procfs_type_psaddr_t=yes
22069 else
22070   echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22072
22073 bfd_cv_have_sys_procfs_type_psaddr_t=no
22074
22075 fi
22076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22077 fi
22078
22079  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
22080
22081 cat >>confdefs.h <<\_ACEOF
22082 #define HAVE_PSADDR_T 1
22083 _ACEOF
22084
22085  fi
22086  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22087 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
22088
22089   echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22090 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
22091  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22092   echo $ECHO_N "(cached) $ECHO_C" >&6
22093 else
22094   cat >conftest.$ac_ext <<_ACEOF
22095 /* confdefs.h.  */
22096 _ACEOF
22097 cat confdefs.h >>conftest.$ac_ext
22098 cat >>conftest.$ac_ext <<_ACEOF
22099 /* end confdefs.h.  */
22100
22101 #define _SYSCALL32
22102 #include <sys/procfs.h>
22103 int
22104 main ()
22105 {
22106 prsysent_t avar
22107   ;
22108   return 0;
22109 }
22110 _ACEOF
22111 rm -f conftest.$ac_objext
22112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22113   (eval $ac_compile) 2>conftest.er1
22114   ac_status=$?
22115   grep -v '^ *+' conftest.er1 >conftest.err
22116   rm -f conftest.er1
22117   cat conftest.err >&5
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); } &&
22120          { ac_try='test -z "$ac_c_werror_flag"
22121                          || test ! -s conftest.err'
22122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123   (eval $ac_try) 2>&5
22124   ac_status=$?
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); }; } &&
22127          { ac_try='test -s conftest.$ac_objext'
22128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22129   (eval $ac_try) 2>&5
22130   ac_status=$?
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); }; }; then
22133   bfd_cv_have_sys_procfs_type_prsysent_t=yes
22134 else
22135   echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138 bfd_cv_have_sys_procfs_type_prsysent_t=no
22139
22140 fi
22141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22142 fi
22143
22144  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
22145
22146 cat >>confdefs.h <<\_ACEOF
22147 #define HAVE_PRSYSENT_T 1
22148 _ACEOF
22149
22150  fi
22151  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22152 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
22153
22154   echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22155 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
22156  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22157   echo $ECHO_N "(cached) $ECHO_C" >&6
22158 else
22159   cat >conftest.$ac_ext <<_ACEOF
22160 /* confdefs.h.  */
22161 _ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h.  */
22165
22166 #define _SYSCALL32
22167 #include <sys/procfs.h>
22168 int
22169 main ()
22170 {
22171 pr_sigset_t avar
22172   ;
22173   return 0;
22174 }
22175 _ACEOF
22176 rm -f conftest.$ac_objext
22177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22178   (eval $ac_compile) 2>conftest.er1
22179   ac_status=$?
22180   grep -v '^ *+' conftest.er1 >conftest.err
22181   rm -f conftest.er1
22182   cat conftest.err >&5
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); } &&
22185          { ac_try='test -z "$ac_c_werror_flag"
22186                          || test ! -s conftest.err'
22187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188   (eval $ac_try) 2>&5
22189   ac_status=$?
22190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191   (exit $ac_status); }; } &&
22192          { ac_try='test -s conftest.$ac_objext'
22193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194   (eval $ac_try) 2>&5
22195   ac_status=$?
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); }; }; then
22198   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
22199 else
22200   echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22202
22203 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
22204
22205 fi
22206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22207 fi
22208
22209  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
22210
22211 cat >>confdefs.h <<\_ACEOF
22212 #define HAVE_PR_SIGSET_T 1
22213 _ACEOF
22214
22215  fi
22216  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22217 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
22218
22219   echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22220 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
22221  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22222   echo $ECHO_N "(cached) $ECHO_C" >&6
22223 else
22224   cat >conftest.$ac_ext <<_ACEOF
22225 /* confdefs.h.  */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h.  */
22230
22231 #define _SYSCALL32
22232 #include <sys/procfs.h>
22233 int
22234 main ()
22235 {
22236 pr_sigaction64_t avar
22237   ;
22238   return 0;
22239 }
22240 _ACEOF
22241 rm -f conftest.$ac_objext
22242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22243   (eval $ac_compile) 2>conftest.er1
22244   ac_status=$?
22245   grep -v '^ *+' conftest.er1 >conftest.err
22246   rm -f conftest.er1
22247   cat conftest.err >&5
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); } &&
22250          { ac_try='test -z "$ac_c_werror_flag"
22251                          || test ! -s conftest.err'
22252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253   (eval $ac_try) 2>&5
22254   ac_status=$?
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); }; } &&
22257          { ac_try='test -s conftest.$ac_objext'
22258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259   (eval $ac_try) 2>&5
22260   ac_status=$?
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); }; }; then
22263   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
22264 else
22265   echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22267
22268 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
22269
22270 fi
22271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22272 fi
22273
22274  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
22275
22276 cat >>confdefs.h <<\_ACEOF
22277 #define HAVE_PR_SIGACTION64_T 1
22278 _ACEOF
22279
22280  fi
22281  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22282 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
22283
22284   echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22285 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
22286  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22287   echo $ECHO_N "(cached) $ECHO_C" >&6
22288 else
22289   cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h.  */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h.  */
22295
22296 #define _SYSCALL32
22297 #include <sys/procfs.h>
22298 int
22299 main ()
22300 {
22301 pr_siginfo64_t avar
22302   ;
22303   return 0;
22304 }
22305 _ACEOF
22306 rm -f conftest.$ac_objext
22307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22308   (eval $ac_compile) 2>conftest.er1
22309   ac_status=$?
22310   grep -v '^ *+' conftest.er1 >conftest.err
22311   rm -f conftest.er1
22312   cat conftest.err >&5
22313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314   (exit $ac_status); } &&
22315          { ac_try='test -z "$ac_c_werror_flag"
22316                          || test ! -s conftest.err'
22317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318   (eval $ac_try) 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; } &&
22322          { ac_try='test -s conftest.$ac_objext'
22323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324   (eval $ac_try) 2>&5
22325   ac_status=$?
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); }; }; then
22328   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22329 else
22330   echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22332
22333 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
22334
22335 fi
22336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22337 fi
22338
22339  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
22340
22341 cat >>confdefs.h <<\_ACEOF
22342 #define HAVE_PR_SIGINFO64_T 1
22343 _ACEOF
22344
22345  fi
22346  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22347 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
22348
22349
22350
22351
22352
22353   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22354     echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22355 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
22356     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22357   echo $ECHO_N "(cached) $ECHO_C" >&6
22358 else
22359   if test "$cross_compiling" = yes; then
22360   gdb_cv_prfpregset_t_broken=yes
22361 else
22362   cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h.  */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h.  */
22368 #include <sys/procfs.h>
22369        int main ()
22370        {
22371          if (sizeof (prfpregset_t) == sizeof (void *))
22372            return 1;
22373          return 0;
22374        }
22375 _ACEOF
22376 rm -f conftest$ac_exeext
22377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22378   (eval $ac_link) 2>&5
22379   ac_status=$?
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383   (eval $ac_try) 2>&5
22384   ac_status=$?
22385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386   (exit $ac_status); }; }; then
22387   gdb_cv_prfpregset_t_broken=no
22388 else
22389   echo "$as_me: program exited with status $ac_status" >&5
22390 echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.$ac_ext >&5
22392
22393 ( exit $ac_status )
22394 gdb_cv_prfpregset_t_broken=yes
22395 fi
22396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22397 fi
22398 fi
22399
22400     echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22401 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
22402     if test $gdb_cv_prfpregset_t_broken = yes; then
22403
22404 cat >>confdefs.h <<\_ACEOF
22405 #define PRFPREGSET_T_BROKEN 1
22406 _ACEOF
22407
22408     fi
22409   fi
22410
22411
22412   echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22413 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
22414   if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22415   echo $ECHO_N "(cached) $ECHO_C" >&6
22416 else
22417   cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h.  */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h.  */
22423 #include <unistd.h>
22424 #include <sys/types.h>
22425 #include <sys/procfs.h>
22426
22427 int
22428 main ()
22429 {
22430
22431     int dummy;;
22432     dummy = ioctl(0, PIOCSET, &dummy);
22433
22434   ;
22435   return 0;
22436 }
22437 _ACEOF
22438 rm -f conftest.$ac_objext
22439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22440   (eval $ac_compile) 2>conftest.er1
22441   ac_status=$?
22442   grep -v '^ *+' conftest.er1 >conftest.err
22443   rm -f conftest.er1
22444   cat conftest.err >&5
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } &&
22447          { ac_try='test -z "$ac_c_werror_flag"
22448                          || test ! -s conftest.err'
22449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450   (eval $ac_try) 2>&5
22451   ac_status=$?
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); }; } &&
22454          { ac_try='test -s conftest.$ac_objext'
22455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456   (eval $ac_try) 2>&5
22457   ac_status=$?
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); }; }; then
22460   gdb_cv_have_procfs_piocset=yes
22461 else
22462   echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22464
22465 gdb_cv_have_procfs_piocset=no
22466 fi
22467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22468 fi
22469
22470   echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22471 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
22472   if test $gdb_cv_have_procfs_piocset = yes; then
22473
22474 cat >>confdefs.h <<\_ACEOF
22475 #define HAVE_PROCFS_PIOCSET 1
22476 _ACEOF
22477
22478   fi
22479 fi
22480
22481 if test ${host} = ${target} ; then
22482
22483   echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22484 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
22485   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22486   echo $ECHO_N "(cached) $ECHO_C" >&6
22487 else
22488   cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494 #include <link.h>
22495 int
22496 main ()
22497 {
22498 struct link_map lm; (void) lm.l_addr;
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22505   (eval $ac_compile) 2>conftest.er1
22506   ac_status=$?
22507   grep -v '^ *+' conftest.er1 >conftest.err
22508   rm -f conftest.er1
22509   cat conftest.err >&5
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); } &&
22512          { ac_try='test -z "$ac_c_werror_flag"
22513                          || test ! -s conftest.err'
22514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515   (eval $ac_try) 2>&5
22516   ac_status=$?
22517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518   (exit $ac_status); }; } &&
22519          { ac_try='test -s conftest.$ac_objext'
22520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521   (eval $ac_try) 2>&5
22522   ac_status=$?
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); }; }; then
22525   gdb_cv_have_struct_link_map_with_l_members=yes
22526 else
22527   echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530 gdb_cv_have_struct_link_map_with_l_members=no
22531 fi
22532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22533 fi
22534
22535   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22536 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
22537   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
22538
22539 cat >>confdefs.h <<\_ACEOF
22540 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
22541 _ACEOF
22542
22543   fi
22544
22545
22546   echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22547 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
22548   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22549   echo $ECHO_N "(cached) $ECHO_C" >&6
22550 else
22551   cat >conftest.$ac_ext <<_ACEOF
22552 /* confdefs.h.  */
22553 _ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h.  */
22557 #include <sys/types.h>
22558 #include <link.h>
22559 int
22560 main ()
22561 {
22562 struct link_map lm; (void) lm.lm_addr;
22563   ;
22564   return 0;
22565 }
22566 _ACEOF
22567 rm -f conftest.$ac_objext
22568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22569   (eval $ac_compile) 2>conftest.er1
22570   ac_status=$?
22571   grep -v '^ *+' conftest.er1 >conftest.err
22572   rm -f conftest.er1
22573   cat conftest.err >&5
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); } &&
22576          { ac_try='test -z "$ac_c_werror_flag"
22577                          || test ! -s conftest.err'
22578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579   (eval $ac_try) 2>&5
22580   ac_status=$?
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); }; } &&
22583          { ac_try='test -s conftest.$ac_objext'
22584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585   (eval $ac_try) 2>&5
22586   ac_status=$?
22587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588   (exit $ac_status); }; }; then
22589   gdb_cv_have_struct_link_map_with_lm_members=yes
22590 else
22591   echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22593
22594 gdb_cv_have_struct_link_map_with_lm_members=no
22595 fi
22596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22597 fi
22598
22599   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22600 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
22601   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
22602
22603 cat >>confdefs.h <<\_ACEOF
22604 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
22605 _ACEOF
22606
22607   fi
22608
22609
22610   echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22611 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
22612   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22613   echo $ECHO_N "(cached) $ECHO_C" >&6
22614 else
22615   cat >conftest.$ac_ext <<_ACEOF
22616 /* confdefs.h.  */
22617 _ACEOF
22618 cat confdefs.h >>conftest.$ac_ext
22619 cat >>conftest.$ac_ext <<_ACEOF
22620 /* end confdefs.h.  */
22621 #include <sys/types.h>
22622 #ifdef HAVE_NLIST_H
22623 #include <nlist.h>
22624 #endif
22625 #include <link.h>
22626 int
22627 main ()
22628 {
22629 struct so_map lm; (void) lm.som_addr;
22630   ;
22631   return 0;
22632 }
22633 _ACEOF
22634 rm -f conftest.$ac_objext
22635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22636   (eval $ac_compile) 2>conftest.er1
22637   ac_status=$?
22638   grep -v '^ *+' conftest.er1 >conftest.err
22639   rm -f conftest.er1
22640   cat conftest.err >&5
22641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); } &&
22643          { ac_try='test -z "$ac_c_werror_flag"
22644                          || test ! -s conftest.err'
22645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646   (eval $ac_try) 2>&5
22647   ac_status=$?
22648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649   (exit $ac_status); }; } &&
22650          { ac_try='test -s conftest.$ac_objext'
22651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22652   (eval $ac_try) 2>&5
22653   ac_status=$?
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); }; }; then
22656   gdb_cv_have_struct_so_map_with_som_members=yes
22657 else
22658   echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22660
22661 gdb_cv_have_struct_so_map_with_som_members=no
22662 fi
22663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22664 fi
22665
22666   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22667 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
22668   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
22669
22670 cat >>confdefs.h <<\_ACEOF
22671 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
22672 _ACEOF
22673
22674   fi
22675
22676
22677   echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22678 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
22679   if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22680   echo $ECHO_N "(cached) $ECHO_C" >&6
22681 else
22682   cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688 #define _SYSCALL32
22689 #include <sys/link.h>
22690 int
22691 main ()
22692 {
22693 struct link_map32 l;
22694   ;
22695   return 0;
22696 }
22697 _ACEOF
22698 rm -f conftest.$ac_objext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22700   (eval $ac_compile) 2>conftest.er1
22701   ac_status=$?
22702   grep -v '^ *+' conftest.er1 >conftest.err
22703   rm -f conftest.er1
22704   cat conftest.err >&5
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); } &&
22707          { ac_try='test -z "$ac_c_werror_flag"
22708                          || test ! -s conftest.err'
22709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710   (eval $ac_try) 2>&5
22711   ac_status=$?
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); }; } &&
22714          { ac_try='test -s conftest.$ac_objext'
22715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716   (eval $ac_try) 2>&5
22717   ac_status=$?
22718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); }; }; then
22720   gdb_cv_have_struct_link_map32=yes
22721 else
22722   echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22724
22725 gdb_cv_have_struct_link_map32=no
22726 fi
22727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22728 fi
22729
22730   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22731 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
22732   if test $gdb_cv_have_struct_link_map32 = yes; then
22733
22734 cat >>confdefs.h <<\_ACEOF
22735 #define HAVE_STRUCT_LINK_MAP32 1
22736 _ACEOF
22737
22738
22739 cat >>confdefs.h <<\_ACEOF
22740 #define _SYSCALL32 1
22741 _ACEOF
22742
22743   fi
22744 fi
22745
22746 # Check if the compiler supports the `long long' type.
22747
22748 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22749 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
22750 if test "${gdb_cv_c_long_long+set}" = set; then
22751   echo $ECHO_N "(cached) $ECHO_C" >&6
22752 else
22753   cat >conftest.$ac_ext <<_ACEOF
22754 /* confdefs.h.  */
22755 _ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h.  */
22759 extern long long foo;
22760 int
22761 main ()
22762 {
22763 switch (foo & 2) { case 0: return 1; }
22764   ;
22765   return 0;
22766 }
22767 _ACEOF
22768 rm -f conftest.$ac_objext
22769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22770   (eval $ac_compile) 2>conftest.er1
22771   ac_status=$?
22772   grep -v '^ *+' conftest.er1 >conftest.err
22773   rm -f conftest.er1
22774   cat conftest.err >&5
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); } &&
22777          { ac_try='test -z "$ac_c_werror_flag"
22778                          || test ! -s conftest.err'
22779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22780   (eval $ac_try) 2>&5
22781   ac_status=$?
22782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783   (exit $ac_status); }; } &&
22784          { ac_try='test -s conftest.$ac_objext'
22785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22786   (eval $ac_try) 2>&5
22787   ac_status=$?
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); }; }; then
22790   gdb_cv_c_long_long=yes
22791 else
22792   echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22794
22795 gdb_cv_c_long_long=no
22796 fi
22797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22798 fi
22799 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22800 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
22801 if test $gdb_cv_c_long_long = yes; then
22802
22803 cat >>confdefs.h <<\_ACEOF
22804 #define CC_HAS_LONG_LONG 1
22805 _ACEOF
22806
22807 fi
22808
22809 # Check if the compiler and runtime support printing long longs.
22810
22811 echo "$as_me:$LINENO: checking for long long support in printf" >&5
22812 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
22813 if test "${gdb_cv_printf_has_long_long+set}" = set; then
22814   echo $ECHO_N "(cached) $ECHO_C" >&6
22815 else
22816   if test "$cross_compiling" = yes; then
22817   gdb_cv_printf_has_long_long=no
22818 else
22819   cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h.  */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h.  */
22825 $ac_includes_default
22826 int
22827 main ()
22828 {
22829 char buf[32];
22830   long long l = 0;
22831   l = (l << 16) + 0x0123;
22832   l = (l << 16) + 0x4567;
22833   l = (l << 16) + 0x89ab;
22834   l = (l << 16) + 0xcdef;
22835   sprintf (buf, "0x%016llx", l);
22836   return (strcmp ("0x0123456789abcdef", buf));
22837   ;
22838   return 0;
22839 }
22840 _ACEOF
22841 rm -f conftest$ac_exeext
22842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22843   (eval $ac_link) 2>&5
22844   ac_status=$?
22845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848   (eval $ac_try) 2>&5
22849   ac_status=$?
22850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851   (exit $ac_status); }; }; then
22852   gdb_cv_printf_has_long_long=yes
22853 else
22854   echo "$as_me: program exited with status $ac_status" >&5
22855 echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22857
22858 ( exit $ac_status )
22859 gdb_cv_printf_has_long_long=no
22860 fi
22861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22862 fi
22863 fi
22864 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22865 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
22866 if test $gdb_cv_printf_has_long_long = yes; then
22867
22868 cat >>confdefs.h <<\_ACEOF
22869 #define PRINTF_HAS_LONG_LONG 1
22870 _ACEOF
22871
22872 fi
22873
22874 # Check if the compiler and runtime support printing decfloats.
22875
22876 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
22877 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
22878 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
22879   echo $ECHO_N "(cached) $ECHO_C" >&6
22880 else
22881   if test "$cross_compiling" = yes; then
22882   gdb_cv_printf_has_decfloat=no
22883 else
22884   cat >conftest.$ac_ext <<_ACEOF
22885 /* confdefs.h.  */
22886 _ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h.  */
22890 $ac_includes_default
22891 int
22892 main ()
22893 {
22894 char buf[64];
22895   _Decimal32 d32 = 1.2345df;
22896   _Decimal64 d64 = 1.2345dd;
22897   _Decimal128 d128 = 1.2345dl;
22898   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
22899   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
22900   ;
22901   return 0;
22902 }
22903 _ACEOF
22904 rm -f conftest$ac_exeext
22905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22906   (eval $ac_link) 2>&5
22907   ac_status=$?
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911   (eval $ac_try) 2>&5
22912   ac_status=$?
22913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); }; }; then
22915   gdb_cv_printf_has_decfloat=yes
22916 else
22917   echo "$as_me: program exited with status $ac_status" >&5
22918 echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22920
22921 ( exit $ac_status )
22922 gdb_cv_printf_has_decfloat=no
22923 fi
22924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22925 fi
22926 fi
22927 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
22928 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
22929 if test $gdb_cv_printf_has_decfloat = yes; then
22930
22931 cat >>confdefs.h <<\_ACEOF
22932 #define PRINTF_HAS_DECFLOAT 1
22933 _ACEOF
22934
22935 fi
22936
22937 # Check if the compiler supports the `long double' type.  We can't use
22938 # AC_C_LONG_DOUBLE because that one does additional checks on the
22939 # constants defined in <float.h> that fail on some systems,
22940 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
22941
22942 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22943 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
22944 if test "${gdb_cv_c_long_double+set}" = set; then
22945   echo $ECHO_N "(cached) $ECHO_C" >&6
22946 else
22947   cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h.  */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h.  */
22953 long double foo;
22954 _ACEOF
22955 rm -f conftest.$ac_objext
22956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22957   (eval $ac_compile) 2>conftest.er1
22958   ac_status=$?
22959   grep -v '^ *+' conftest.er1 >conftest.err
22960   rm -f conftest.er1
22961   cat conftest.err >&5
22962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963   (exit $ac_status); } &&
22964          { ac_try='test -z "$ac_c_werror_flag"
22965                          || test ! -s conftest.err'
22966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967   (eval $ac_try) 2>&5
22968   ac_status=$?
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); }; } &&
22971          { ac_try='test -s conftest.$ac_objext'
22972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973   (eval $ac_try) 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; }; then
22977   gdb_cv_c_long_double=yes
22978 else
22979   echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22981
22982 gdb_cv_c_long_double=no
22983 fi
22984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22985 fi
22986 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22987 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
22988 if test $gdb_cv_c_long_double = yes; then
22989
22990 cat >>confdefs.h <<\_ACEOF
22991 #define HAVE_LONG_DOUBLE 1
22992 _ACEOF
22993
22994 fi
22995
22996 # Check if the compiler and runtime support printing long doubles.
22997
22998 echo "$as_me:$LINENO: checking for long double support in printf" >&5
22999 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
23000 if test "${gdb_cv_printf_has_long_double+set}" = set; then
23001   echo $ECHO_N "(cached) $ECHO_C" >&6
23002 else
23003   if test "$cross_compiling" = yes; then
23004   gdb_cv_printf_has_long_double=no
23005 else
23006   cat >conftest.$ac_ext <<_ACEOF
23007 /* confdefs.h.  */
23008 _ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h.  */
23012 $ac_includes_default
23013 int
23014 main ()
23015 {
23016 char buf[16];
23017   long double f = 3.141592653;
23018   sprintf (buf, "%Lg", f);
23019   return (strncmp ("3.14159", buf, 7));
23020   ;
23021   return 0;
23022 }
23023 _ACEOF
23024 rm -f conftest$ac_exeext
23025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23026   (eval $ac_link) 2>&5
23027   ac_status=$?
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031   (eval $ac_try) 2>&5
23032   ac_status=$?
23033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034   (exit $ac_status); }; }; then
23035   gdb_cv_printf_has_long_double=yes
23036 else
23037   echo "$as_me: program exited with status $ac_status" >&5
23038 echo "$as_me: failed program was:" >&5
23039 sed 's/^/| /' conftest.$ac_ext >&5
23040
23041 ( exit $ac_status )
23042 gdb_cv_printf_has_long_double=no
23043 fi
23044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23045 fi
23046 fi
23047 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23048 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
23049 if test $gdb_cv_printf_has_long_double = yes; then
23050
23051 cat >>confdefs.h <<\_ACEOF
23052 #define PRINTF_HAS_LONG_DOUBLE 1
23053 _ACEOF
23054
23055 fi
23056
23057 # Check if the compiler and runtime support scanning long doubles.
23058
23059 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23060 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
23061 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23062   echo $ECHO_N "(cached) $ECHO_C" >&6
23063 else
23064   if test "$cross_compiling" = yes; then
23065   gdb_cv_scanf_has_long_double=no
23066 else
23067   cat >conftest.$ac_ext <<_ACEOF
23068 /* confdefs.h.  */
23069 _ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h.  */
23073 #include <stdio.h>
23074 int
23075 main ()
23076 {
23077 char *buf = "3.141592653";
23078   long double f = 0;
23079   sscanf (buf, "%Lg", &f);
23080   return !(f > 3.14159 && f < 3.14160);
23081   ;
23082   return 0;
23083 }
23084 _ACEOF
23085 rm -f conftest$ac_exeext
23086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23087   (eval $ac_link) 2>&5
23088   ac_status=$?
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092   (eval $ac_try) 2>&5
23093   ac_status=$?
23094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095   (exit $ac_status); }; }; then
23096   gdb_cv_scanf_has_long_double=yes
23097 else
23098   echo "$as_me: program exited with status $ac_status" >&5
23099 echo "$as_me: failed program was:" >&5
23100 sed 's/^/| /' conftest.$ac_ext >&5
23101
23102 ( exit $ac_status )
23103 gdb_cv_scanf_has_long_double=no
23104 fi
23105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23106 fi
23107 fi
23108 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23109 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
23110 if test $gdb_cv_scanf_has_long_double = yes; then
23111
23112 cat >>confdefs.h <<\_ACEOF
23113 #define SCANF_HAS_LONG_DOUBLE 1
23114 _ACEOF
23115
23116 fi
23117
23118 case ${host_os} in
23119 aix*)
23120   echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23121 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
23122 if test "${gdb_cv_bigtoc+set}" = set; then
23123   echo $ECHO_N "(cached) $ECHO_C" >&6
23124 else
23125
23126     SAVE_LDFLAGS=$LDFLAGS
23127
23128     case $GCC in
23129     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23130     *) gdb_cv_bigtoc=-bbigtoc ;;
23131     esac
23132
23133     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
23134     cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h.  */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h.  */
23140
23141 int
23142 main ()
23143 {
23144 int i;
23145   ;
23146   return 0;
23147 }
23148 _ACEOF
23149 rm -f conftest.$ac_objext conftest$ac_exeext
23150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23151   (eval $ac_link) 2>conftest.er1
23152   ac_status=$?
23153   grep -v '^ *+' conftest.er1 >conftest.err
23154   rm -f conftest.er1
23155   cat conftest.err >&5
23156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); } &&
23158          { ac_try='test -z "$ac_c_werror_flag"
23159                          || test ! -s conftest.err'
23160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161   (eval $ac_try) 2>&5
23162   ac_status=$?
23163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164   (exit $ac_status); }; } &&
23165          { ac_try='test -s conftest$ac_exeext'
23166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167   (eval $ac_try) 2>&5
23168   ac_status=$?
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); }; }; then
23171   :
23172 else
23173   echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23175
23176 gdb_cv_bigtoc=
23177 fi
23178 rm -f conftest.err conftest.$ac_objext \
23179       conftest$ac_exeext conftest.$ac_ext
23180     LDFLAGS="${SAVE_LDFLAGS}"
23181
23182 fi
23183 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23184 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
23185   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23186   ;;
23187 esac
23188
23189
23190
23191 if test ${build} = ${host} -a ${host} = ${target} ; then
23192    case ${host_os} in
23193    hpux*)
23194       echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23195 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
23196       if test -f /usr/include/dce/cma_config.h ; then
23197          if test "$GCC" = "yes" ; then
23198             echo "$as_me:$LINENO: result: yes" >&5
23199 echo "${ECHO_T}yes" >&6
23200
23201 cat >>confdefs.h <<\_ACEOF
23202 #define HAVE_HPUX_THREAD_SUPPORT 1
23203 _ACEOF
23204
23205             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
23206             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23207          else
23208             echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23209 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
23210          fi
23211       else
23212          echo "$as_me:$LINENO: result: no" >&5
23213 echo "${ECHO_T}no" >&6
23214       fi
23215       ;;
23216    solaris*)
23217       # See if thread_db library is around for Solaris thread debugging.
23218       # Note that we must explicitly test for version 1 of the library
23219       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23220       # the same API.
23221       echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23222 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
23223       if test -f /usr/lib/libthread_db.so.1 ; then
23224          echo "$as_me:$LINENO: result: yes" >&5
23225 echo "${ECHO_T}yes" >&6
23226
23227 cat >>confdefs.h <<\_ACEOF
23228 #define HAVE_THREAD_DB_LIB 1
23229 _ACEOF
23230
23231          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
23232          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
23233
23234 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23235 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23236 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23237   echo $ECHO_N "(cached) $ECHO_C" >&6
23238 else
23239   ac_check_lib_save_LIBS=$LIBS
23240 LIBS="-ldl  $LIBS"
23241 cat >conftest.$ac_ext <<_ACEOF
23242 /* confdefs.h.  */
23243 _ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h.  */
23247
23248 /* Override any gcc2 internal prototype to avoid an error.  */
23249 #ifdef __cplusplus
23250 extern "C"
23251 #endif
23252 /* We use char because int might match the return type of a gcc2
23253    builtin and then its argument prototype would still apply.  */
23254 char dlopen ();
23255 int
23256 main ()
23257 {
23258 dlopen ();
23259   ;
23260   return 0;
23261 }
23262 _ACEOF
23263 rm -f conftest.$ac_objext conftest$ac_exeext
23264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23265   (eval $ac_link) 2>conftest.er1
23266   ac_status=$?
23267   grep -v '^ *+' conftest.er1 >conftest.err
23268   rm -f conftest.er1
23269   cat conftest.err >&5
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); } &&
23272          { ac_try='test -z "$ac_c_werror_flag"
23273                          || test ! -s conftest.err'
23274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275   (eval $ac_try) 2>&5
23276   ac_status=$?
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); }; } &&
23279          { ac_try='test -s conftest$ac_exeext'
23280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281   (eval $ac_try) 2>&5
23282   ac_status=$?
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); }; }; then
23285   ac_cv_lib_dl_dlopen=yes
23286 else
23287   echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23289
23290 ac_cv_lib_dl_dlopen=no
23291 fi
23292 rm -f conftest.err conftest.$ac_objext \
23293       conftest$ac_exeext conftest.$ac_ext
23294 LIBS=$ac_check_lib_save_LIBS
23295 fi
23296 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23297 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23298 if test $ac_cv_lib_dl_dlopen = yes; then
23299   cat >>confdefs.h <<_ACEOF
23300 #define HAVE_LIBDL 1
23301 _ACEOF
23302
23303   LIBS="-ldl $LIBS"
23304
23305 fi
23306
23307          if test "$GCC" = "yes" ; then
23308             # The GNU linker requires the -export-dynamic option to make
23309             # all symbols visible in the dynamic symbol table.
23310             hold_ldflags=$LDFLAGS
23311             echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23312 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
23313             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
23314             cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h.  */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h.  */
23320
23321 int
23322 main ()
23323 {
23324 int i;
23325   ;
23326   return 0;
23327 }
23328 _ACEOF
23329 rm -f conftest.$ac_objext conftest$ac_exeext
23330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23331   (eval $ac_link) 2>conftest.er1
23332   ac_status=$?
23333   grep -v '^ *+' conftest.er1 >conftest.err
23334   rm -f conftest.er1
23335   cat conftest.err >&5
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); } &&
23338          { ac_try='test -z "$ac_c_werror_flag"
23339                          || test ! -s conftest.err'
23340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341   (eval $ac_try) 2>&5
23342   ac_status=$?
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); }; } &&
23345          { ac_try='test -s conftest$ac_exeext'
23346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347   (eval $ac_try) 2>&5
23348   ac_status=$?
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); }; }; then
23351   found=yes
23352 else
23353   echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23355
23356 found=no
23357 fi
23358 rm -f conftest.err conftest.$ac_objext \
23359       conftest$ac_exeext conftest.$ac_ext
23360             LDFLAGS=$hold_ldflags
23361             echo "$as_me:$LINENO: result: $found" >&5
23362 echo "${ECHO_T}$found" >&6
23363             if test $found = yes; then
23364                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23365             fi
23366          fi
23367          # Sun randomly tweaked the prototypes in <proc_service.h>
23368          # at one point.
23369          echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23370 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
23371          if test "${gdb_cv_proc_service_is_old+set}" = set; then
23372   echo $ECHO_N "(cached) $ECHO_C" >&6
23373 else
23374
23375             cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h.  */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h.  */
23381
23382                 #include <proc_service.h>
23383                 ps_err_e ps_pdwrite
23384                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
23385
23386 int
23387 main ()
23388 {
23389
23390   ;
23391   return 0;
23392 }
23393 _ACEOF
23394 rm -f conftest.$ac_objext
23395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23396   (eval $ac_compile) 2>conftest.er1
23397   ac_status=$?
23398   grep -v '^ *+' conftest.er1 >conftest.err
23399   rm -f conftest.er1
23400   cat conftest.err >&5
23401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402   (exit $ac_status); } &&
23403          { ac_try='test -z "$ac_c_werror_flag"
23404                          || test ! -s conftest.err'
23405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23406   (eval $ac_try) 2>&5
23407   ac_status=$?
23408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409   (exit $ac_status); }; } &&
23410          { ac_try='test -s conftest.$ac_objext'
23411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23412   (eval $ac_try) 2>&5
23413   ac_status=$?
23414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); }; }; then
23416   gdb_cv_proc_service_is_old=no
23417 else
23418   echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23420
23421 gdb_cv_proc_service_is_old=yes
23422 fi
23423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23424
23425 fi
23426
23427          echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23428 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
23429          if test $gdb_cv_proc_service_is_old = yes; then
23430
23431 cat >>confdefs.h <<\_ACEOF
23432 #define PROC_SERVICE_IS_OLD 1
23433 _ACEOF
23434
23435          fi
23436       else
23437          echo "$as_me:$LINENO: result: no" >&5
23438 echo "${ECHO_T}no" >&6
23439       fi
23440       ;;
23441    aix*)
23442       echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23443 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
23444       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23445   echo $ECHO_N "(cached) $ECHO_C" >&6
23446 else
23447   cat >conftest.$ac_ext <<_ACEOF
23448 /* confdefs.h.  */
23449 _ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h.  */
23453 #include <sys/pthdebug.h>
23454 int
23455 main ()
23456 {
23457 #ifndef PTHDB_VERSION_3
23458                                     #error
23459                                     #endif
23460   ;
23461   return 0;
23462 }
23463 _ACEOF
23464 rm -f conftest.$ac_objext
23465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23466   (eval $ac_compile) 2>conftest.er1
23467   ac_status=$?
23468   grep -v '^ *+' conftest.er1 >conftest.err
23469   rm -f conftest.er1
23470   cat conftest.err >&5
23471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472   (exit $ac_status); } &&
23473          { ac_try='test -z "$ac_c_werror_flag"
23474                          || test ! -s conftest.err'
23475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476   (eval $ac_try) 2>&5
23477   ac_status=$?
23478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479   (exit $ac_status); }; } &&
23480          { ac_try='test -s conftest.$ac_objext'
23481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482   (eval $ac_try) 2>&5
23483   ac_status=$?
23484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485   (exit $ac_status); }; }; then
23486   gdb_cv_have_aix_thread_debug=yes
23487 else
23488   echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23490
23491 gdb_cv_have_aix_thread_debug=no
23492 fi
23493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23494 fi
23495
23496       echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23497 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
23498       if test $gdb_cv_have_aix_thread_debug = yes; then
23499          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
23500          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
23501          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23502       fi
23503       ;;
23504    esac
23505
23506 fi
23507
23508 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
23509    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23510 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
23511 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23512   echo $ECHO_N "(cached) $ECHO_C" >&6
23513 else
23514   cat >conftest.$ac_ext <<_ACEOF
23515 /* confdefs.h.  */
23516 _ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h.  */
23520 #include <thread_db.h>
23521 int
23522 main ()
23523 {
23524 int i = TD_NOTALLOC;
23525   ;
23526   return 0;
23527 }
23528 _ACEOF
23529 rm -f conftest.$ac_objext
23530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23531   (eval $ac_compile) 2>conftest.er1
23532   ac_status=$?
23533   grep -v '^ *+' conftest.er1 >conftest.err
23534   rm -f conftest.er1
23535   cat conftest.err >&5
23536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537   (exit $ac_status); } &&
23538          { ac_try='test -z "$ac_c_werror_flag"
23539                          || test ! -s conftest.err'
23540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541   (eval $ac_try) 2>&5
23542   ac_status=$?
23543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544   (exit $ac_status); }; } &&
23545          { ac_try='test -s conftest.$ac_objext'
23546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547   (eval $ac_try) 2>&5
23548   ac_status=$?
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); }; }; then
23551   gdb_cv_thread_db_h_has_td_notalloc=yes
23552 else
23553   echo "$as_me: failed program was:" >&5
23554 sed 's/^/| /' conftest.$ac_ext >&5
23555
23556 gdb_cv_thread_db_h_has_td_notalloc=no
23557
23558 fi
23559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23560
23561 fi
23562 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23563 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
23564    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
23565 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
23566 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
23567   echo $ECHO_N "(cached) $ECHO_C" >&6
23568 else
23569   cat >conftest.$ac_ext <<_ACEOF
23570 /* confdefs.h.  */
23571 _ACEOF
23572 cat confdefs.h >>conftest.$ac_ext
23573 cat >>conftest.$ac_ext <<_ACEOF
23574 /* end confdefs.h.  */
23575 #include <thread_db.h>
23576 int
23577 main ()
23578 {
23579 int i = TD_VERSION;
23580   ;
23581   return 0;
23582 }
23583 _ACEOF
23584 rm -f conftest.$ac_objext
23585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23586   (eval $ac_compile) 2>conftest.er1
23587   ac_status=$?
23588   grep -v '^ *+' conftest.er1 >conftest.err
23589   rm -f conftest.er1
23590   cat conftest.err >&5
23591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592   (exit $ac_status); } &&
23593          { ac_try='test -z "$ac_c_werror_flag"
23594                          || test ! -s conftest.err'
23595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596   (eval $ac_try) 2>&5
23597   ac_status=$?
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); }; } &&
23600          { ac_try='test -s conftest.$ac_objext'
23601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23602   (eval $ac_try) 2>&5
23603   ac_status=$?
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); }; }; then
23606   gdb_cv_thread_db_h_has_td_version=yes
23607 else
23608   echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23610
23611 gdb_cv_thread_db_h_has_td_version=no
23612
23613 fi
23614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23615
23616 fi
23617 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
23618 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
23619    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
23620 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
23621 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
23622   echo $ECHO_N "(cached) $ECHO_C" >&6
23623 else
23624   cat >conftest.$ac_ext <<_ACEOF
23625 /* confdefs.h.  */
23626 _ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h.  */
23630 #include <thread_db.h>
23631 int
23632 main ()
23633 {
23634 int i = TD_NOTLS;
23635   ;
23636   return 0;
23637 }
23638 _ACEOF
23639 rm -f conftest.$ac_objext
23640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23641   (eval $ac_compile) 2>conftest.er1
23642   ac_status=$?
23643   grep -v '^ *+' conftest.er1 >conftest.err
23644   rm -f conftest.er1
23645   cat conftest.err >&5
23646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); } &&
23648          { ac_try='test -z "$ac_c_werror_flag"
23649                          || test ! -s conftest.err'
23650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651   (eval $ac_try) 2>&5
23652   ac_status=$?
23653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654   (exit $ac_status); }; } &&
23655          { ac_try='test -s conftest.$ac_objext'
23656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657   (eval $ac_try) 2>&5
23658   ac_status=$?
23659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); }; }; then
23661   gdb_cv_thread_db_h_has_td_notls=yes
23662 else
23663   echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.$ac_ext >&5
23665
23666 gdb_cv_thread_db_h_has_td_notls=no
23667
23668 fi
23669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23670
23671 fi
23672 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
23673 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
23674 fi
23675 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
23676
23677 cat >>confdefs.h <<\_ACEOF
23678 #define THREAD_DB_HAS_TD_NOTALLOC 1
23679 _ACEOF
23680
23681 fi
23682 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
23683
23684 cat >>confdefs.h <<\_ACEOF
23685 #define THREAD_DB_HAS_TD_VERSION 1
23686 _ACEOF
23687
23688 fi
23689 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
23690
23691 cat >>confdefs.h <<\_ACEOF
23692 #define THREAD_DB_HAS_TD_NOTLS 1
23693 _ACEOF
23694
23695 fi
23696
23697 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
23698    echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23699 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
23700 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23701   echo $ECHO_N "(cached) $ECHO_C" >&6
23702 else
23703   cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h.  */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h.  */
23709 #include <sys/syscall.h>
23710 int
23711 main ()
23712 {
23713 int i = __NR_tkill;
23714   ;
23715   return 0;
23716 }
23717 _ACEOF
23718 rm -f conftest.$ac_objext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23720   (eval $ac_compile) 2>conftest.er1
23721   ac_status=$?
23722   grep -v '^ *+' conftest.er1 >conftest.err
23723   rm -f conftest.er1
23724   cat conftest.err >&5
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); } &&
23727          { ac_try='test -z "$ac_c_werror_flag"
23728                          || test ! -s conftest.err'
23729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730   (eval $ac_try) 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; } &&
23734          { ac_try='test -s conftest.$ac_objext'
23735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736   (eval $ac_try) 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; }; then
23740   gdb_cv_sys_syscall_h_has_tkill=yes
23741 else
23742   echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23744
23745 gdb_cv_sys_syscall_h_has_tkill=no
23746
23747 fi
23748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23749
23750 fi
23751 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23752 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
23753 fi
23754 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
23755
23756 cat >>confdefs.h <<\_ACEOF
23757 #define HAVE_TKILL_SYSCALL 1
23758 _ACEOF
23759
23760 fi
23761
23762 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
23763 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
23764 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
23765   echo $ECHO_N "(cached) $ECHO_C" >&6
23766 else
23767   cat >conftest.$ac_ext <<_ACEOF
23768 /* confdefs.h.  */
23769 _ACEOF
23770 cat confdefs.h >>conftest.$ac_ext
23771 cat >>conftest.$ac_ext <<_ACEOF
23772 /* end confdefs.h.  */
23773 #include <sys/personality.h>
23774
23775 int
23776 main ()
23777 {
23778 #ifndef ADDR_NO_RANDOMIZE
23779   char *p = (char *) ADDR_NO_RANDOMIZE;
23780 #endif
23781
23782   ;
23783   return 0;
23784 }
23785 _ACEOF
23786 rm -f conftest.$ac_objext
23787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23788   (eval $ac_compile) 2>conftest.er1
23789   ac_status=$?
23790   grep -v '^ *+' conftest.er1 >conftest.err
23791   rm -f conftest.er1
23792   cat conftest.err >&5
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); } &&
23795          { ac_try='test -z "$ac_c_werror_flag"
23796                          || test ! -s conftest.err'
23797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798   (eval $ac_try) 2>&5
23799   ac_status=$?
23800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801   (exit $ac_status); }; } &&
23802          { ac_try='test -s conftest.$ac_objext'
23803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23804   (eval $ac_try) 2>&5
23805   ac_status=$?
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); }; }; then
23808   ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
23809 else
23810   echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
23814 fi
23815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23816 fi
23817 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
23818 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
23819 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
23820
23821 cat >>confdefs.h <<_ACEOF
23822 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
23823 _ACEOF
23824
23825
23826 else
23827   cat >>confdefs.h <<_ACEOF
23828 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
23829 _ACEOF
23830
23831
23832 fi
23833
23834
23835
23836 if test "$cross_compiling" = yes; then
23837   cat >conftest.$ac_ext <<_ACEOF
23838 /* confdefs.h.  */
23839 _ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h.  */
23843 #include <sys/personality.h>
23844 int
23845 main ()
23846 {
23847
23848 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
23849 #       define ADDR_NO_RANDOMIZE 0x0040000
23850 #      endif
23851        /* Test the flag could be set and stays set.  */
23852        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23853        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23854            return 1
23855   ;
23856   return 0;
23857 }
23858 _ACEOF
23859 rm -f conftest.$ac_objext conftest$ac_exeext
23860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23861   (eval $ac_link) 2>conftest.er1
23862   ac_status=$?
23863   grep -v '^ *+' conftest.er1 >conftest.err
23864   rm -f conftest.er1
23865   cat conftest.err >&5
23866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867   (exit $ac_status); } &&
23868          { ac_try='test -z "$ac_c_werror_flag"
23869                          || test ! -s conftest.err'
23870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871   (eval $ac_try) 2>&5
23872   ac_status=$?
23873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874   (exit $ac_status); }; } &&
23875          { ac_try='test -s conftest$ac_exeext'
23876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877   (eval $ac_try) 2>&5
23878   ac_status=$?
23879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880   (exit $ac_status); }; }; then
23881   have_personality=true
23882 else
23883   echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23885
23886 have_personality=false
23887 fi
23888 rm -f conftest.err conftest.$ac_objext \
23889       conftest$ac_exeext conftest.$ac_ext
23890 else
23891   cat >conftest.$ac_ext <<_ACEOF
23892 /* confdefs.h.  */
23893 _ACEOF
23894 cat confdefs.h >>conftest.$ac_ext
23895 cat >>conftest.$ac_ext <<_ACEOF
23896 /* end confdefs.h.  */
23897 #include <sys/personality.h>
23898 int
23899 main ()
23900 {
23901
23902 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
23903 #       define ADDR_NO_RANDOMIZE 0x0040000
23904 #      endif
23905        /* Test the flag could be set and stays set.  */
23906        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23907        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23908            return 1
23909   ;
23910   return 0;
23911 }
23912 _ACEOF
23913 rm -f conftest$ac_exeext
23914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23915   (eval $ac_link) 2>&5
23916   ac_status=$?
23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23920   (eval $ac_try) 2>&5
23921   ac_status=$?
23922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923   (exit $ac_status); }; }; then
23924   have_personality=true
23925 else
23926   echo "$as_me: program exited with status $ac_status" >&5
23927 echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23929
23930 ( exit $ac_status )
23931 have_personality=false
23932 fi
23933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23934 fi
23935 if $have_personality
23936 then
23937
23938 cat >>confdefs.h <<\_ACEOF
23939 #define HAVE_PERSONALITY 1
23940 _ACEOF
23941
23942 fi
23943
23944
23945
23946 # Check whether --with-sysroot or --without-sysroot was given.
23947 if test "${with_sysroot+set}" = set; then
23948   withval="$with_sysroot"
23949
23950  case ${with_sysroot} in
23951  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
23952  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23953  esac
23954
23955  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23956
23957  if test "x$prefix" = xNONE; then
23958   test_prefix=/usr/local
23959  else
23960   test_prefix=$prefix
23961  fi
23962  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
23963   test_exec_prefix=$test_prefix
23964  else
23965   test_exec_prefix=$exec_prefix
23966  fi
23967  case ${TARGET_SYSTEM_ROOT} in
23968  "${test_prefix}"|"${test_prefix}/"*|\
23969  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
23970  '${prefix}'|'${prefix}/'*|\
23971  '${exec_prefix}'|'${exec_prefix}/'*)
23972    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23973    TARGET_SYSTEM_ROOT_DEFINE="$t"
23974    ;;
23975  esac
23976
23977 else
23978
23979  TARGET_SYSTEM_ROOT=
23980  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23981
23982 fi;
23983
23984
23985
23986 # Check whether --enable-werror or --disable-werror was given.
23987 if test "${enable_werror+set}" = set; then
23988   enableval="$enable_werror"
23989   case "${enableval}" in
23990      yes | y) ERROR_ON_WARNING="yes" ;;
23991      no | n)  ERROR_ON_WARNING="no" ;;
23992      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23993 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23994    { (exit 1); exit 1; }; } ;;
23995    esac
23996 fi;
23997
23998 # Enable -Werror by default when using gcc
23999 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
24000     ERROR_ON_WARNING=yes
24001 fi
24002
24003 WERROR_CFLAGS=""
24004 if test "${ERROR_ON_WARNING}" = yes ; then
24005     WERROR_CFLAGS="-Werror"
24006 fi
24007
24008 # The entries after -Wno-pointer-sign are disabled warnings which may
24009 # be enabled in the future, which can not currently be used to build
24010 # GDB.
24011 # NOTE: If you change this list, remember to update
24012 # gdb/doc/gdbint.texinfo.
24013 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24014 -Wformat-nonliteral -Wno-pointer-sign \
24015 -Wno-unused -Wno-switch -Wno-char-subscripts"
24016
24017 # Enable -Wno-format by default when using gcc on mingw since many
24018 # GCC versions complain about %I64.
24019 case "${host}" in
24020   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
24021 esac
24022
24023 # Check whether --enable-build-warnings or --disable-build-warnings was given.
24024 if test "${enable_build_warnings+set}" = set; then
24025   enableval="$enable_build_warnings"
24026   case "${enableval}" in
24027   yes)  ;;
24028   no)   build_warnings="-w";;
24029   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24030         build_warnings="${build_warnings} ${t}";;
24031   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24032         build_warnings="${t} ${build_warnings}";;
24033   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24034 esac
24035 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24036   echo "Setting compiler warning flags = $build_warnings" 6>&1
24037 fi
24038 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
24039 if test "${enable_gdb_build_warnings+set}" = set; then
24040   enableval="$enable_gdb_build_warnings"
24041   case "${enableval}" in
24042   yes)  ;;
24043   no)   build_warnings="-w";;
24044   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24045         build_warnings="${build_warnings} ${t}";;
24046   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24047         build_warnings="${t} ${build_warnings}";;
24048   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24049 esac
24050 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24051   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24052 fi
24053 fi; WARN_CFLAGS=""
24054 if test "x${build_warnings}" != x -a "x$GCC" = xyes
24055 then
24056     echo "$as_me:$LINENO: checking compiler warning flags" >&5
24057 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
24058     # Separate out the -Werror flag as some files just cannot be
24059     # compiled with it enabled.
24060     for w in ${build_warnings}; do
24061         case $w in
24062         -Werr*) WERROR_CFLAGS=-Werror ;;
24063         *) # Check that GCC accepts it
24064             saved_CFLAGS="$CFLAGS"
24065             CFLAGS="$CFLAGS $w"
24066             cat >conftest.$ac_ext <<_ACEOF
24067 /* confdefs.h.  */
24068 _ACEOF
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h.  */
24072
24073 int
24074 main ()
24075 {
24076
24077   ;
24078   return 0;
24079 }
24080 _ACEOF
24081 rm -f conftest.$ac_objext
24082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24083   (eval $ac_compile) 2>conftest.er1
24084   ac_status=$?
24085   grep -v '^ *+' conftest.er1 >conftest.err
24086   rm -f conftest.er1
24087   cat conftest.err >&5
24088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089   (exit $ac_status); } &&
24090          { ac_try='test -z "$ac_c_werror_flag"
24091                          || test ! -s conftest.err'
24092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093   (eval $ac_try) 2>&5
24094   ac_status=$?
24095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096   (exit $ac_status); }; } &&
24097          { ac_try='test -s conftest.$ac_objext'
24098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24099   (eval $ac_try) 2>&5
24100   ac_status=$?
24101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102   (exit $ac_status); }; }; then
24103   WARN_CFLAGS="${WARN_CFLAGS} $w"
24104 else
24105   echo "$as_me: failed program was:" >&5
24106 sed 's/^/| /' conftest.$ac_ext >&5
24107
24108 fi
24109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24110             CFLAGS="$saved_CFLAGS"
24111         esac
24112     done
24113     echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24114 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
24115 fi
24116
24117
24118
24119 # In the Cygwin environment, we need some additional flags.
24120 echo "$as_me:$LINENO: checking for cygwin" >&5
24121 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
24122 if test "${gdb_cv_os_cygwin+set}" = set; then
24123   echo $ECHO_N "(cached) $ECHO_C" >&6
24124 else
24125   cat >conftest.$ac_ext <<_ACEOF
24126 /* confdefs.h.  */
24127 _ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h.  */
24131
24132 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
24133 lose
24134 #endif
24135 _ACEOF
24136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24137   $EGREP "lose" >/dev/null 2>&1; then
24138   gdb_cv_os_cygwin=yes
24139 else
24140   gdb_cv_os_cygwin=no
24141 fi
24142 rm -f conftest*
24143
24144 fi
24145 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24146 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
24147
24148
24149 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
24150 case ${host} in
24151   *go32* ) SER_HARDWIRE=ser-go32.o ;;
24152   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
24153   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
24154 esac
24155
24156
24157 # libreadline needs libuser32.a in a cygwin environment
24158 WIN32LIBS=
24159 if test x$gdb_cv_os_cygwin = xyes; then
24160     WIN32LIBS="-luser32"
24161     case "${target}" in
24162         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24163         ;;
24164     esac
24165 fi
24166
24167 # The ser-tcp.c module requires sockets.
24168 case ${host} in
24169   *mingw32*)
24170
24171 cat >>confdefs.h <<\_ACEOF
24172 #define USE_WIN32API 1
24173 _ACEOF
24174
24175     WIN32LIBS="$WIN32LIBS -lws2_32"
24176     ;;
24177 esac
24178
24179
24180 # Add ELF support to GDB, but only if BFD includes ELF support.
24181 OLD_CFLAGS=$CFLAGS
24182 OLD_LDFLAGS=$LDFLAGS
24183 OLD_LIBS=$LIBS
24184 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
24185 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
24186 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
24187 LIBS="-lbfd -liberty $intl $LIBS"
24188 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24189 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24190 if test "${gdb_cv_var_elf+set}" = set; then
24191   echo $ECHO_N "(cached) $ECHO_C" >&6
24192 else
24193   cat >conftest.$ac_ext <<_ACEOF
24194 /* confdefs.h.  */
24195 _ACEOF
24196 cat confdefs.h >>conftest.$ac_ext
24197 cat >>conftest.$ac_ext <<_ACEOF
24198 /* end confdefs.h.  */
24199 #include <stdlib.h>
24200 #include "bfd.h"
24201 #include "elf-bfd.h"
24202
24203 int
24204 main ()
24205 {
24206 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24207   ;
24208   return 0;
24209 }
24210 _ACEOF
24211 rm -f conftest.$ac_objext conftest$ac_exeext
24212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24213   (eval $ac_link) 2>conftest.er1
24214   ac_status=$?
24215   grep -v '^ *+' conftest.er1 >conftest.err
24216   rm -f conftest.er1
24217   cat conftest.err >&5
24218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219   (exit $ac_status); } &&
24220          { ac_try='test -z "$ac_c_werror_flag"
24221                          || test ! -s conftest.err'
24222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24223   (eval $ac_try) 2>&5
24224   ac_status=$?
24225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226   (exit $ac_status); }; } &&
24227          { ac_try='test -s conftest$ac_exeext'
24228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24229   (eval $ac_try) 2>&5
24230   ac_status=$?
24231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); }; }; then
24233   gdb_cv_var_elf=yes
24234 else
24235   echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24237
24238 gdb_cv_var_elf=no
24239 fi
24240 rm -f conftest.err conftest.$ac_objext \
24241       conftest$ac_exeext conftest.$ac_ext
24242 fi
24243 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24244 echo "${ECHO_T}$gdb_cv_var_elf" >&6
24245 if test $gdb_cv_var_elf = yes; then
24246   CONFIG_OBS="$CONFIG_OBS elfread.o"
24247
24248 cat >>confdefs.h <<\_ACEOF
24249 #define HAVE_ELF 1
24250 _ACEOF
24251
24252 fi
24253 CFLAGS=$OLD_CFLAGS
24254 LDFLAGS=$OLD_LDFLAGS
24255 LIBS=$OLD_LIBS
24256
24257 # Add any host-specific objects to GDB.
24258 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24259
24260 LIBGUI="../libgui/src/libgui.a"
24261 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24262
24263
24264
24265 WIN32LDAPP=
24266
24267
24268
24269 case "${host}" in
24270 *-*-cygwin* | *-*-mingw* )
24271     configdir="win"
24272     ;;
24273 *)
24274     configdir="unix"
24275     ;;
24276 esac
24277
24278 GDBTKLIBS=
24279 if test "${enable_gdbtk}" = "yes"; then
24280
24281     # Gdbtk must have an absolute path to srcdir in order to run
24282     # properly when not installed.
24283     here=`pwd`
24284     cd ${srcdir}
24285     GDBTK_SRC_DIR=`pwd`
24286     cd $here
24287
24288
24289 #
24290 # Ok, lets find the tcl configuration
24291 # First, look for one uninstalled.
24292 # the alternative search directory is invoked by --with-tclconfig
24293 #
24294
24295 if test x"${no_tcl}" = x ; then
24296   # we reset no_tcl in case something fails here
24297   no_tcl=true
24298
24299 # Check whether --with-tclconfig or --without-tclconfig was given.
24300 if test "${with_tclconfig+set}" = set; then
24301   withval="$with_tclconfig"
24302   with_tclconfig=${withval}
24303 fi;
24304   echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24305 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
24306   if test "${ac_cv_c_tclconfig+set}" = set; then
24307   echo $ECHO_N "(cached) $ECHO_C" >&6
24308 else
24309
24310
24311   # First check to see if --with-tclconfig was specified.
24312   if test x"${with_tclconfig}" != x ; then
24313     if test -f "${with_tclconfig}/tclConfig.sh" ; then
24314       ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24315     else
24316       { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24317 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24318    { (exit 1); exit 1; }; }
24319     fi
24320   fi
24321
24322   # then check for a private Tcl installation
24323   if test x"${ac_cv_c_tclconfig}" = x ; then
24324     for i in \
24325                 ../tcl \
24326                 `ls -dr ../tcl[7-9]* 2>/dev/null` \
24327                 ../../tcl \
24328                 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
24329                 ../../../tcl \
24330                 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
24331       if test -f "$i/${configdir}/tclConfig.sh" ; then
24332         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24333         break
24334       fi
24335     done
24336   fi
24337   # check in a few common install locations
24338   if test x"${ac_cv_c_tclconfig}" = x ; then
24339     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24340       if test -f "$i/tclConfig.sh" ; then
24341         ac_cv_c_tclconfig=`(cd $i; pwd)`
24342         break
24343       fi
24344     done
24345   fi
24346   # check in a few other private locations
24347   if test x"${ac_cv_c_tclconfig}" = x ; then
24348     for i in \
24349                 ${srcdir}/../tcl \
24350                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
24351       if test -f "$i/${configdir}/tclConfig.sh" ; then
24352         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24353         break
24354       fi
24355     done
24356   fi
24357
24358 fi
24359
24360   if test x"${ac_cv_c_tclconfig}" = x ; then
24361     TCLCONFIG="# no Tcl configs found"
24362     { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24363 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
24364   else
24365     no_tcl=
24366     TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
24367     echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
24368 echo "${ECHO_T}found $TCLCONFIG" >&6
24369   fi
24370 fi
24371
24372     if test -z "${no_tcl}"; then
24373
24374     . $TCLCONFIG
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402 #
24403 # Ok, lets find the tk configuration
24404 # First, look for one uninstalled.
24405 # the alternative search directory is invoked by --with-tkconfig
24406 #
24407
24408 if test x"${no_tk}" = x ; then
24409   # we reset no_tk in case something fails here
24410   no_tk=true
24411
24412 # Check whether --with-tkconfig or --without-tkconfig was given.
24413 if test "${with_tkconfig+set}" = set; then
24414   withval="$with_tkconfig"
24415   with_tkconfig=${withval}
24416 fi;
24417   echo "$as_me:$LINENO: checking for Tk configuration" >&5
24418 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
24419   if test "${ac_cv_c_tkconfig+set}" = set; then
24420   echo $ECHO_N "(cached) $ECHO_C" >&6
24421 else
24422
24423
24424   # First check to see if --with-tkconfig was specified.
24425   if test x"${with_tkconfig}" != x ; then
24426     if test -f "${with_tkconfig}/tkConfig.sh" ; then
24427       ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
24428     else
24429       { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
24430 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
24431    { (exit 1); exit 1; }; }
24432     fi
24433   fi
24434
24435   # then check for a private Tk library
24436   if test x"${ac_cv_c_tkconfig}" = x ; then
24437     for i in \
24438                 ../tk \
24439                 `ls -dr ../tk[4-9]* 2>/dev/null` \
24440                 ../../tk \
24441                 `ls -dr ../../tk[4-9]* 2>/dev/null` \
24442                 ../../../tk \
24443                 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
24444       if test -f "$i/${configdir}/tkConfig.sh" ; then
24445         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24446         break
24447       fi
24448     done
24449   fi
24450   # check in a few common install locations
24451   if test x"${ac_cv_c_tkconfig}" = x ; then
24452     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24453       if test -f "$i/tkConfig.sh" ; then
24454         ac_cv_c_tkconfig=`(cd $i; pwd)`
24455         break
24456       fi
24457     done
24458   fi
24459   # check in a few other private locations
24460   if test x"${ac_cv_c_tkconfig}" = x ; then
24461     for i in \
24462                 ${srcdir}/../tk \
24463                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
24464       if test -f "$i/${configdir}/tkConfig.sh" ; then
24465         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24466         break
24467       fi
24468     done
24469   fi
24470
24471 fi
24472
24473   if test x"${ac_cv_c_tkconfig}" = x ; then
24474     TKCONFIG="# no Tk configs found"
24475     { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
24476 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
24477   else
24478     no_tk=
24479     TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
24480     echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
24481 echo "${ECHO_T}found $TKCONFIG" >&6
24482   fi
24483 fi
24484
24485
24486
24487         # now look for Tcl library stuff
24488
24489         tcldir="../tcl/${configdir}/"
24490
24491         TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
24492
24493         # If $no_tk is nonempty, then we can't do Tk, and there is no
24494         # point to doing Tcl.
24495         if test -z "${no_tk}"; then
24496
24497     if test -f "$TKCONFIG" ; then
24498       . $TKCONFIG
24499     fi
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514 #
24515 # Ok, lets find the tcl source trees so we can use the headers
24516 # Warning: transition of version 9 to 10 will break this algorithm
24517 # because 10 sorts before 9. We also look for just tcl. We have to
24518 # be careful that we don't match stuff like tclX by accident.
24519 # the alternative search directory is involked by --with-tclinclude
24520 #
24521
24522 no_tcl=true
24523 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
24524 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
24525
24526 # Check whether --with-tclinclude or --without-tclinclude was given.
24527 if test "${with_tclinclude+set}" = set; then
24528   withval="$with_tclinclude"
24529   with_tclinclude=${withval}
24530 fi;
24531 if test "${ac_cv_c_tclh+set}" = set; then
24532   echo $ECHO_N "(cached) $ECHO_C" >&6
24533 else
24534
24535 # first check to see if --with-tclinclude was specified
24536 if test x"${with_tclinclude}" != x ; then
24537   if test -f ${with_tclinclude}/tclInt.h ; then
24538     ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
24539   elif test -f ${with_tclinclude}/generic/tclInt.h ; then
24540     ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
24541   else
24542     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
24543 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
24544    { (exit 1); exit 1; }; }
24545   fi
24546 fi
24547
24548 # next check if it came with Tcl configuration file
24549 if test x"${ac_cv_c_tclconfig}" = x ; then
24550   if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
24551     ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
24552   fi
24553 fi
24554
24555 # next check in private source directory
24556 #
24557 # since ls returns lowest version numbers first, reverse its output
24558 if test x"${ac_cv_c_tclh}" = x ; then
24559   for i in \
24560                 ${srcdir}/../tcl \
24561                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
24562                 ${srcdir}/../../tcl \
24563                 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
24564                 ${srcdir}/../../../tcl \
24565                 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
24566     if test -f $i/generic/tclInt.h ; then
24567       ac_cv_c_tclh=`(cd $i/generic; pwd)`
24568       break
24569     fi
24570   done
24571 fi
24572 # finally check in a few common install locations
24573 #
24574 # since ls returns lowest version numbers first, reverse its output
24575 if test x"${ac_cv_c_tclh}" = x ; then
24576   for i in \
24577                 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
24578                 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
24579                 /usr/local/src/tcl \
24580                 /usr/local/lib/tcl \
24581                 ${prefix}/include ; do
24582     if test -f $i/generic/tclInt.h ; then
24583       ac_cv_c_tclh=`(cd $i/generic; pwd)`
24584       break
24585     fi
24586   done
24587 fi
24588 # see if one is installed
24589 if test x"${ac_cv_c_tclh}" = x ; then
24590    if test "${ac_cv_header_tclInt_h+set}" = set; then
24591   echo "$as_me:$LINENO: checking for tclInt.h" >&5
24592 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
24593 if test "${ac_cv_header_tclInt_h+set}" = set; then
24594   echo $ECHO_N "(cached) $ECHO_C" >&6
24595 fi
24596 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24597 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
24598 else
24599   # Is the header compilable?
24600 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
24601 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
24602 cat >conftest.$ac_ext <<_ACEOF
24603 /* confdefs.h.  */
24604 _ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h.  */
24608 $ac_includes_default
24609 #include <tclInt.h>
24610 _ACEOF
24611 rm -f conftest.$ac_objext
24612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24613   (eval $ac_compile) 2>conftest.er1
24614   ac_status=$?
24615   grep -v '^ *+' conftest.er1 >conftest.err
24616   rm -f conftest.er1
24617   cat conftest.err >&5
24618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619   (exit $ac_status); } &&
24620          { ac_try='test -z "$ac_c_werror_flag"
24621                          || test ! -s conftest.err'
24622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623   (eval $ac_try) 2>&5
24624   ac_status=$?
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); }; } &&
24627          { ac_try='test -s conftest.$ac_objext'
24628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629   (eval $ac_try) 2>&5
24630   ac_status=$?
24631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632   (exit $ac_status); }; }; then
24633   ac_header_compiler=yes
24634 else
24635   echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24637
24638 ac_header_compiler=no
24639 fi
24640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24642 echo "${ECHO_T}$ac_header_compiler" >&6
24643
24644 # Is the header present?
24645 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
24646 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
24647 cat >conftest.$ac_ext <<_ACEOF
24648 /* confdefs.h.  */
24649 _ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h.  */
24653 #include <tclInt.h>
24654 _ACEOF
24655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24657   ac_status=$?
24658   grep -v '^ *+' conftest.er1 >conftest.err
24659   rm -f conftest.er1
24660   cat conftest.err >&5
24661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); } >/dev/null; then
24663   if test -s conftest.err; then
24664     ac_cpp_err=$ac_c_preproc_warn_flag
24665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24666   else
24667     ac_cpp_err=
24668   fi
24669 else
24670   ac_cpp_err=yes
24671 fi
24672 if test -z "$ac_cpp_err"; then
24673   ac_header_preproc=yes
24674 else
24675   echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24677
24678   ac_header_preproc=no
24679 fi
24680 rm -f conftest.err conftest.$ac_ext
24681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24682 echo "${ECHO_T}$ac_header_preproc" >&6
24683
24684 # So?  What about this header?
24685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24686   yes:no: )
24687     { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24688 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24689     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
24690 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
24691     ac_header_preproc=yes
24692     ;;
24693   no:yes:* )
24694     { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
24695 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
24696     { echo "$as_me:$LINENO: WARNING: tclInt.h:     check for missing prerequisite headers?" >&5
24697 echo "$as_me: WARNING: tclInt.h:     check for missing prerequisite headers?" >&2;}
24698     { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
24699 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
24700     { echo "$as_me:$LINENO: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&5
24701 echo "$as_me: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24702     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
24703 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
24704     { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
24705 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
24706     (
24707       cat <<\_ASBOX
24708 ## ------------------------------------------ ##
24709 ## Report this to the AC_PACKAGE_NAME lists.  ##
24710 ## ------------------------------------------ ##
24711 _ASBOX
24712     ) |
24713       sed "s/^/$as_me: WARNING:     /" >&2
24714     ;;
24715 esac
24716 echo "$as_me:$LINENO: checking for tclInt.h" >&5
24717 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
24718 if test "${ac_cv_header_tclInt_h+set}" = set; then
24719   echo $ECHO_N "(cached) $ECHO_C" >&6
24720 else
24721   ac_cv_header_tclInt_h=$ac_header_preproc
24722 fi
24723 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24724 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
24725
24726 fi
24727 if test $ac_cv_header_tclInt_h = yes; then
24728   ac_cv_c_tclh=installed
24729 else
24730   ac_cv_c_tclh=""
24731 fi
24732
24733
24734 fi
24735
24736 fi
24737
24738 if test x"${ac_cv_c_tclh}" = x ; then
24739   TCLHDIR="# no Tcl private headers found"
24740   { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
24741 echo "$as_me: error: Can't find Tcl private headers" >&2;}
24742    { (exit 1); exit 1; }; }
24743 fi
24744 if test x"${ac_cv_c_tclh}" != x ; then
24745   no_tcl=""
24746   if test x"${ac_cv_c_tclh}" = x"installed" ; then
24747     echo "$as_me:$LINENO: result: is installed" >&5
24748 echo "${ECHO_T}is installed" >&6
24749     TCLHDIR=""
24750   else
24751     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
24752 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
24753     # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
24754     TCLHDIR="-I${ac_cv_c_tclh}"
24755   fi
24756 fi
24757
24758
24759
24760
24761 #
24762 # Ok, lets find the tk source trees so we can use the headers
24763 # If the directory (presumably symlink) named "tk" exists, use that one
24764 # in preference to any others.  Same logic is used when choosing library
24765 # and again with Tcl. The search order is the best place to look first, then in
24766 # decreasing significance. The loop breaks if the trigger file is found.
24767 # Note the gross little conversion here of srcdir by cd'ing to the found
24768 # directory. This converts the path from a relative to an absolute, so
24769 # recursive cache variables for the path will work right. We check all
24770 # the possible paths in one loop rather than many seperate loops to speed
24771 # things up.
24772 # the alternative search directory is involked by --with-tkinclude
24773 #
24774 no_tk=true
24775 echo "$as_me:$LINENO: checking for Tk private headers" >&5
24776 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
24777
24778 # Check whether --with-tkinclude or --without-tkinclude was given.
24779 if test "${with_tkinclude+set}" = set; then
24780   withval="$with_tkinclude"
24781   with_tkinclude=${withval}
24782 fi;
24783 if test "${ac_cv_c_tkh+set}" = set; then
24784   echo $ECHO_N "(cached) $ECHO_C" >&6
24785 else
24786
24787 # first check to see if --with-tkinclude was specified
24788 if test x"${with_tkinclude}" != x ; then
24789   if test -f ${with_tkinclude}/tk.h ; then
24790     ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
24791   elif test -f ${with_tkinclude}/generic/tk.h ; then
24792     ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
24793   else
24794     { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
24795 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
24796    { (exit 1); exit 1; }; }
24797   fi
24798 fi
24799
24800 # next check if it came with Tk configuration file
24801 if test x"${ac_cv_c_tkconfig}" = x ; then
24802   if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
24803     ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
24804   fi
24805 fi
24806
24807 # next check in private source directory
24808 #
24809 # since ls returns lowest version numbers first, reverse its output
24810 if test x"${ac_cv_c_tkh}" = x ; then
24811   for i in \
24812                 ${srcdir}/../tk \
24813                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
24814                 ${srcdir}/../../tk \
24815                 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
24816                 ${srcdir}/../../../tk \
24817                 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
24818     if test -f $i/generic/tk.h ; then
24819       ac_cv_c_tkh=`(cd $i/generic; pwd)`
24820       break
24821     fi
24822   done
24823 fi
24824 # finally check in a few common install locations
24825 #
24826 # since ls returns lowest version numbers first, reverse its output
24827 if test x"${ac_cv_c_tkh}" = x ; then
24828   for i in \
24829                 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
24830                 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
24831                 /usr/local/src/tk \
24832                 /usr/local/lib/tk \
24833                 ${prefix}/include ; do
24834     if test -f $i/generic/tk.h ; then
24835       ac_cv_c_tkh=`(cd $i/generic; pwd)`
24836       break
24837     fi
24838   done
24839 fi
24840 # see if one is installed
24841 if test x"${ac_cv_c_tkh}" = x ; then
24842    if test "${ac_cv_header_tk_h+set}" = set; then
24843   echo "$as_me:$LINENO: checking for tk.h" >&5
24844 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
24845 if test "${ac_cv_header_tk_h+set}" = set; then
24846   echo $ECHO_N "(cached) $ECHO_C" >&6
24847 fi
24848 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24849 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
24850 else
24851   # Is the header compilable?
24852 echo "$as_me:$LINENO: checking tk.h usability" >&5
24853 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
24854 cat >conftest.$ac_ext <<_ACEOF
24855 /* confdefs.h.  */
24856 _ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h.  */
24860 $ac_includes_default
24861 #include <tk.h>
24862 _ACEOF
24863 rm -f conftest.$ac_objext
24864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24865   (eval $ac_compile) 2>conftest.er1
24866   ac_status=$?
24867   grep -v '^ *+' conftest.er1 >conftest.err
24868   rm -f conftest.er1
24869   cat conftest.err >&5
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); } &&
24872          { ac_try='test -z "$ac_c_werror_flag"
24873                          || test ! -s conftest.err'
24874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875   (eval $ac_try) 2>&5
24876   ac_status=$?
24877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878   (exit $ac_status); }; } &&
24879          { ac_try='test -s conftest.$ac_objext'
24880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881   (eval $ac_try) 2>&5
24882   ac_status=$?
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); }; }; then
24885   ac_header_compiler=yes
24886 else
24887   echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24889
24890 ac_header_compiler=no
24891 fi
24892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24894 echo "${ECHO_T}$ac_header_compiler" >&6
24895
24896 # Is the header present?
24897 echo "$as_me:$LINENO: checking tk.h presence" >&5
24898 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
24899 cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h.  */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h.  */
24905 #include <tk.h>
24906 _ACEOF
24907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24908   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24909   ac_status=$?
24910   grep -v '^ *+' conftest.er1 >conftest.err
24911   rm -f conftest.er1
24912   cat conftest.err >&5
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); } >/dev/null; then
24915   if test -s conftest.err; then
24916     ac_cpp_err=$ac_c_preproc_warn_flag
24917     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24918   else
24919     ac_cpp_err=
24920   fi
24921 else
24922   ac_cpp_err=yes
24923 fi
24924 if test -z "$ac_cpp_err"; then
24925   ac_header_preproc=yes
24926 else
24927   echo "$as_me: failed program was:" >&5
24928 sed 's/^/| /' conftest.$ac_ext >&5
24929
24930   ac_header_preproc=no
24931 fi
24932 rm -f conftest.err conftest.$ac_ext
24933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24934 echo "${ECHO_T}$ac_header_preproc" >&6
24935
24936 # So?  What about this header?
24937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24938   yes:no: )
24939     { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
24940 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24941     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
24942 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
24943     ac_header_preproc=yes
24944     ;;
24945   no:yes:* )
24946     { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
24947 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
24948     { echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
24949 echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
24950     { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
24951 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
24952     { echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
24953 echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24954     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
24955 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
24956     { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
24957 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
24958     (
24959       cat <<\_ASBOX
24960 ## ------------------------------------------ ##
24961 ## Report this to the AC_PACKAGE_NAME lists.  ##
24962 ## ------------------------------------------ ##
24963 _ASBOX
24964     ) |
24965       sed "s/^/$as_me: WARNING:     /" >&2
24966     ;;
24967 esac
24968 echo "$as_me:$LINENO: checking for tk.h" >&5
24969 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
24970 if test "${ac_cv_header_tk_h+set}" = set; then
24971   echo $ECHO_N "(cached) $ECHO_C" >&6
24972 else
24973   ac_cv_header_tk_h=$ac_header_preproc
24974 fi
24975 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24976 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
24977
24978 fi
24979 if test $ac_cv_header_tk_h = yes; then
24980   ac_cv_c_tkh=installed
24981 else
24982   ac_cv_c_tkh=""
24983 fi
24984
24985
24986 fi
24987
24988 fi
24989
24990 if test x"${ac_cv_c_tkh}" != x ; then
24991   no_tk=""
24992   if test x"${ac_cv_c_tkh}" = x"installed" ; then
24993     echo "$as_me:$LINENO: result: is installed" >&5
24994 echo "${ECHO_T}is installed" >&6
24995     TKHDIR=""
24996   else
24997     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
24998 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
24999     # this hack is cause the TKHDIR won't print if there is a "-I" in it.
25000     TKHDIR="-I${ac_cv_c_tkh}"
25001   fi
25002 else
25003   TKHDIR="# no Tk directory found"
25004   { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
25005 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
25006   no_tk=true
25007 fi
25008
25009
25010
25011
25012 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
25013 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
25014 if test x"${ac_cv_c_itclh}" = x ; then
25015   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
25016     if test -f $i/generic/itcl.h ; then
25017       ac_cv_c_itclh=`(cd $i/generic; pwd)`
25018       break
25019     fi
25020   done
25021 fi
25022 if test x"${ac_cv_c_itclh}" = x ; then
25023   ITCLHDIR="# no Itcl private headers found"
25024   { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
25025 echo "$as_me: error: Can't find Itcl private headers" >&2;}
25026    { (exit 1); exit 1; }; }
25027 fi
25028 if test x"${ac_cv_c_itclh}" != x ; then
25029      ITCLHDIR="-I${ac_cv_c_itclh}"
25030 fi
25031 # should always be here
25032 #     ITCLLIB="../itcl/itcl/unix/libitcl.a"
25033
25034 #AC_SUBST(ITCLLIB)
25035
25036
25037 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
25038 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
25039 if test x"${ac_cv_c_itkh}" = x ; then
25040   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
25041     if test -f $i/generic/itk.h ; then
25042       ac_cv_c_itkh=`(cd $i/generic; pwd)`
25043       break
25044     fi
25045   done
25046 fi
25047 if test x"${ac_cv_c_itkh}" = x ; then
25048   ITKHDIR="# no Itk private headers found"
25049   { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
25050 echo "$as_me: error: Can't find Itk private headers" >&2;}
25051    { (exit 1); exit 1; }; }
25052 fi
25053 if test x"${ac_cv_c_itkh}" != x ; then
25054      ITKHDIR="-I${ac_cv_c_itkh}"
25055 fi
25056 # should always be here
25057 #     ITKLIB="../itcl/itk/unix/libitk.a"
25058
25059 #AC_SUBST(ITKLIB)
25060
25061
25062
25063            # now look for Tk library stuff
25064
25065            tkdir="../tk/${configdir}/"
25066
25067            TK_DEPS="${tkdir}${TK_LIB_FILE}"
25068
25069            # now look for Itcl library stuff
25070
25071
25072 #
25073 # Ok, lets find the itcl configuration
25074 # First, look for one uninstalled.
25075 # the alternative search directory is invoked by --with-itclconfig
25076 #
25077
25078 if test x"${no_itcl}" = x ; then
25079   # we reset no_itcl in case something fails here
25080   no_itcl=true
25081
25082 # Check whether --with-itclconfig or --without-itclconfig was given.
25083 if test "${with_itclconfig+set}" = set; then
25084   withval="$with_itclconfig"
25085   with_itclconfig=${withval}
25086 fi;
25087   echo "$as_me:$LINENO: checking for Itcl configuration" >&5
25088 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
25089   if test "${ac_cv_c_itclconfig+set}" = set; then
25090   echo $ECHO_N "(cached) $ECHO_C" >&6
25091 else
25092
25093
25094   # First check to see if --with-itclconfig was specified.
25095   if test x"${with_itclconfig}" != x ; then
25096     if test -f "${with_itclconfig}/itclConfig.sh" ; then
25097       ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
25098     else
25099       { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
25100 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
25101    { (exit 1); exit 1; }; }
25102     fi
25103   fi
25104
25105   # then check for a private Itcl library
25106   if test x"${ac_cv_c_itclconfig}" = x ; then
25107     for i in \
25108                 ../itcl/itcl \
25109                 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
25110                 ../../itcl \
25111                 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
25112                 ../../../itcl \
25113                 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
25114       if test -f "$i/itclConfig.sh" ; then
25115         ac_cv_c_itclconfig=`(cd $i; pwd)`
25116         break
25117       fi
25118     done
25119   fi
25120   # check in a few common install locations
25121   if test x"${ac_cv_c_itclconfig}" = x ; then
25122     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
25123       if test -f "$i/itclConfig.sh" ; then
25124         ac_cv_c_itclconfig=`(cd $i; pwd)`
25125         break
25126       fi
25127     done
25128   fi
25129   # check in a few other private locations
25130   if test x"${ac_cv_c_itclconfig}" = x ; then
25131     for i in \
25132                 ${srcdir}/../itcl/itcl \
25133                 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
25134       if test -f "$i/itclConfig.sh" ; then
25135         ac_cv_c_itclconfig=`(cd $i; pwd)`
25136         break
25137       fi
25138     done
25139   fi
25140
25141 fi
25142
25143   if test x"${ac_cv_c_itclconfig}" = x ; then
25144     ITCLCONFIG="# no Itcl configs found"
25145     { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
25146 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
25147   else
25148     no_itcl=
25149     ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
25150     echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
25151 echo "${ECHO_T}found $ITCLCONFIG" >&6
25152   fi
25153 fi
25154
25155            if test -z "${no_itcl}"; then
25156
25157     if test -f "$ITCLCONFIG" ; then
25158       . $ITCLCONFIG
25159     fi
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172              ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
25173              ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
25174            fi
25175
25176
25177            # now look for Itk library stuff
25178
25179 #
25180 # Ok, lets find the itk configuration
25181 # First, look for one uninstalled.
25182 # the alternative search directory is invoked by --with-itkconfig
25183 #
25184
25185 if test x"${no_itk}" = x ; then
25186   # we reset no_itk in case something fails here
25187   no_itk=true
25188
25189 # Check whether --with-itkconfig or --without-itkconfig was given.
25190 if test "${with_itkconfig+set}" = set; then
25191   withval="$with_itkconfig"
25192   with_itkconfig=${withval}
25193 fi;
25194   echo "$as_me:$LINENO: checking for Itk configuration" >&5
25195 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
25196   if test "${ac_cv_c_itkconfig+set}" = set; then
25197   echo $ECHO_N "(cached) $ECHO_C" >&6
25198 else
25199
25200
25201   # First check to see if --with-itkconfig was specified.
25202   if test x"${with_itkconfig}" != x ; then
25203     if test -f "${with_itkconfig}/itkConfig.sh" ; then
25204       ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
25205     else
25206       { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
25207 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
25208    { (exit 1); exit 1; }; }
25209     fi
25210   fi
25211
25212   # then check for a private Itk library
25213   if test x"${ac_cv_c_itkconfig}" = x ; then
25214     for i in \
25215                 ../itcl/itk \
25216                 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
25217                 ../../itk \
25218                 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
25219                 ../../../itk \
25220                 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
25221       if test -f "$i/itkConfig.sh" ; then
25222         ac_cv_c_itkconfig=`(cd $i; pwd)`
25223         break
25224       fi
25225     done
25226   fi
25227   # check in a few common install locations
25228   if test x"${ac_cv_c_itkconfig}" = x ; then
25229     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
25230       if test -f "$i/itkConfig.sh" ; then
25231         ac_cv_c_itkconfig=`(cd $i; pwd)`
25232         break
25233       fi
25234     done
25235   fi
25236   # check in a few other private locations
25237   if test x"${ac_cv_c_itkconfig}" = x ; then
25238     for i in \
25239                 ${srcdir}/../itcl/itk \
25240                 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
25241       if test -f "$i/itkConfig.sh" ; then
25242         ac_cv_c_itkconfig=`(cd $i; pwd)`
25243         break
25244       fi
25245     done
25246   fi
25247
25248 fi
25249
25250   if test x"${ac_cv_c_itkconfig}" = x ; then
25251     ITKCONFIG="# no Itk configs found"
25252     { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
25253 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
25254   else
25255     no_itk=
25256     ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
25257     echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
25258 echo "${ECHO_T}found $ITKCONFIG" >&6
25259   fi
25260 fi
25261
25262
25263            if test -z "${no_itcl}"; then
25264
25265     if test -f "$ITKCONFIG" ; then
25266       . $ITKCONFIG
25267     fi
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280              ITKLIB="${ITK_BUILD_LIB_SPEC}"
25281              ITK_DEPS="${ITK_LIB_FULL_PATH}"
25282            fi
25283
25284            ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
25285
25286            # Include some libraries that Tcl and Tk want.
25287            TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
25288            # Yes, the ordering seems wrong here.  But it isn't.
25289            # TK_LIBS is the list of libraries that need to be linked
25290            # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
25291            # were in LIBS then any link tests after this point would
25292            # try to include things like `$(LIBGUI)', which wouldn't work.
25293            GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
25294
25295            CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25296            CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25297            CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
25298            CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25299            CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25300            CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25301            CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
25302
25303            if test x$gdb_cv_os_cygwin = xyes; then
25304               WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25305               WIN32LDAPP="-Wl,--subsystem,console"
25306               CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25307            fi
25308         fi
25309     fi
25310
25311
25312
25313 subdirs="$subdirs gdbtk"
25314
25315 fi
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330 echo "$as_me:$LINENO: checking for X" >&5
25331 echo $ECHO_N "checking for X... $ECHO_C" >&6
25332
25333
25334 # Check whether --with-x or --without-x was given.
25335 if test "${with_x+set}" = set; then
25336   withval="$with_x"
25337
25338 fi;
25339 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25340 if test "x$with_x" = xno; then
25341   # The user explicitly disabled X.
25342   have_x=disabled
25343 else
25344   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25345     # Both variables are already set.
25346     have_x=yes
25347   else
25348     if test "${ac_cv_have_x+set}" = set; then
25349   echo $ECHO_N "(cached) $ECHO_C" >&6
25350 else
25351   # One or both of the vars are not set, and there is no cached value.
25352 ac_x_includes=no ac_x_libraries=no
25353 rm -fr conftest.dir
25354 if mkdir conftest.dir; then
25355   cd conftest.dir
25356   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25357   cat >Imakefile <<'_ACEOF'
25358 acfindx:
25359         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25360 _ACEOF
25361   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25362     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25363     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25364     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25365     for ac_extension in a so sl; do
25366       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
25367          test -f $ac_im_libdir/libX11.$ac_extension; then
25368         ac_im_usrlibdir=$ac_im_libdir; break
25369       fi
25370     done
25371     # Screen out bogus values from the imake configuration.  They are
25372     # bogus both because they are the default anyway, and because
25373     # using them would break gcc on systems where it needs fixed includes.
25374     case $ac_im_incroot in
25375         /usr/include) ;;
25376         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25377     esac
25378     case $ac_im_usrlibdir in
25379         /usr/lib | /lib) ;;
25380         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25381     esac
25382   fi
25383   cd ..
25384   rm -fr conftest.dir
25385 fi
25386
25387 # Standard set of common directories for X headers.
25388 # Check X11 before X11Rn because it is often a symlink to the current release.
25389 ac_x_header_dirs='
25390 /usr/X11/include
25391 /usr/X11R6/include
25392 /usr/X11R5/include
25393 /usr/X11R4/include
25394
25395 /usr/include/X11
25396 /usr/include/X11R6
25397 /usr/include/X11R5
25398 /usr/include/X11R4
25399
25400 /usr/local/X11/include
25401 /usr/local/X11R6/include
25402 /usr/local/X11R5/include
25403 /usr/local/X11R4/include
25404
25405 /usr/local/include/X11
25406 /usr/local/include/X11R6
25407 /usr/local/include/X11R5
25408 /usr/local/include/X11R4
25409
25410 /usr/X386/include
25411 /usr/x386/include
25412 /usr/XFree86/include/X11
25413
25414 /usr/include
25415 /usr/local/include
25416 /usr/unsupported/include
25417 /usr/athena/include
25418 /usr/local/x11r5/include
25419 /usr/lpp/Xamples/include
25420
25421 /usr/openwin/include
25422 /usr/openwin/share/include'
25423
25424 if test "$ac_x_includes" = no; then
25425   # Guess where to find include files, by looking for Intrinsic.h.
25426   # First, try using that file with no special directory specified.
25427   cat >conftest.$ac_ext <<_ACEOF
25428 /* confdefs.h.  */
25429 _ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h.  */
25433 #include <X11/Intrinsic.h>
25434 _ACEOF
25435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25437   ac_status=$?
25438   grep -v '^ *+' conftest.er1 >conftest.err
25439   rm -f conftest.er1
25440   cat conftest.err >&5
25441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442   (exit $ac_status); } >/dev/null; then
25443   if test -s conftest.err; then
25444     ac_cpp_err=$ac_c_preproc_warn_flag
25445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25446   else
25447     ac_cpp_err=
25448   fi
25449 else
25450   ac_cpp_err=yes
25451 fi
25452 if test -z "$ac_cpp_err"; then
25453   # We can compile using X headers with no special include directory.
25454 ac_x_includes=
25455 else
25456   echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.$ac_ext >&5
25458
25459   for ac_dir in $ac_x_header_dirs; do
25460   if test -r "$ac_dir/X11/Intrinsic.h"; then
25461     ac_x_includes=$ac_dir
25462     break
25463   fi
25464 done
25465 fi
25466 rm -f conftest.err conftest.$ac_ext
25467 fi # $ac_x_includes = no
25468
25469 if test "$ac_x_libraries" = no; then
25470   # Check for the libraries.
25471   # See if we find them without any special options.
25472   # Don't add to $LIBS permanently.
25473   ac_save_LIBS=$LIBS
25474   LIBS="-lXt $LIBS"
25475   cat >conftest.$ac_ext <<_ACEOF
25476 /* confdefs.h.  */
25477 _ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h.  */
25481 #include <X11/Intrinsic.h>
25482 int
25483 main ()
25484 {
25485 XtMalloc (0)
25486   ;
25487   return 0;
25488 }
25489 _ACEOF
25490 rm -f conftest.$ac_objext conftest$ac_exeext
25491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25492   (eval $ac_link) 2>conftest.er1
25493   ac_status=$?
25494   grep -v '^ *+' conftest.er1 >conftest.err
25495   rm -f conftest.er1
25496   cat conftest.err >&5
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); } &&
25499          { ac_try='test -z "$ac_c_werror_flag"
25500                          || test ! -s conftest.err'
25501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25502   (eval $ac_try) 2>&5
25503   ac_status=$?
25504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505   (exit $ac_status); }; } &&
25506          { ac_try='test -s conftest$ac_exeext'
25507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508   (eval $ac_try) 2>&5
25509   ac_status=$?
25510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511   (exit $ac_status); }; }; then
25512   LIBS=$ac_save_LIBS
25513 # We can link X programs with no special library path.
25514 ac_x_libraries=
25515 else
25516   echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.$ac_ext >&5
25518
25519 LIBS=$ac_save_LIBS
25520 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25521 do
25522   # Don't even attempt the hair of trying to link an X program!
25523   for ac_extension in a so sl; do
25524     if test -r $ac_dir/libXt.$ac_extension; then
25525       ac_x_libraries=$ac_dir
25526       break 2
25527     fi
25528   done
25529 done
25530 fi
25531 rm -f conftest.err conftest.$ac_objext \
25532       conftest$ac_exeext conftest.$ac_ext
25533 fi # $ac_x_libraries = no
25534
25535 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25536   # Didn't find X anywhere.  Cache the known absence of X.
25537   ac_cv_have_x="have_x=no"
25538 else
25539   # Record where we found X for the cache.
25540   ac_cv_have_x="have_x=yes \
25541                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
25542 fi
25543 fi
25544
25545   fi
25546   eval "$ac_cv_have_x"
25547 fi # $with_x != no
25548
25549 if test "$have_x" != yes; then
25550   echo "$as_me:$LINENO: result: $have_x" >&5
25551 echo "${ECHO_T}$have_x" >&6
25552   no_x=yes
25553 else
25554   # If each of the values was on the command line, it overrides each guess.
25555   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25556   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25557   # Update the cache value to reflect the command line values.
25558   ac_cv_have_x="have_x=yes \
25559                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
25560   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25561 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
25562 fi
25563
25564
25565 # Check whether we should enable the TUI, but only do so if we really
25566 # can.
25567 if test x"$enable_tui" != xno; then
25568   if test -d $srcdir/tui; then
25569     if test "$ac_cv_search_waddstr" != no; then
25570       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25571       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25572       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
25573       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25574       CONFIG_ALL="${CONFIG_ALL} all-tui"
25575       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25576       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25577       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25578     else
25579       if test x"$enable_tui" = xyes; then
25580         { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
25581 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
25582    { (exit 1); exit 1; }; }
25583       else
25584         { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
25585 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
25586       fi
25587     fi
25588   fi
25589 fi
25590
25591 # Unlike the sim directory, whether a simulator is linked is controlled by
25592 # presence of a gdb_sim definition in the target configure.tgt entry.
25593 # This code just checks for a few cases where we'd like to ignore those
25594 # definitions, even when they're present in the '.mt' file.  These cases
25595 # are when --disable-sim is specified, or if the simulator directory is
25596 # not part of the source tree.
25597 #
25598 # Check whether --enable-sim or --disable-sim was given.
25599 if test "${enable_sim+set}" = set; then
25600   enableval="$enable_sim"
25601   echo "enable_sim = $enable_sim";
25602  echo "enableval = ${enableval}";
25603  case "${enableval}" in
25604   yes) ignore_sim=false ;;
25605   no)  ignore_sim=true ;;
25606   *)   ignore_sim=false ;;
25607  esac
25608 else
25609   ignore_sim=false
25610 fi;
25611
25612 if test ! -d "${srcdir}/../sim"; then
25613   ignore_sim=true
25614 fi
25615
25616 SIM=
25617 SIM_OBS=
25618 if test "${ignore_sim}" = "false"; then
25619   if test x"${gdb_sim}" != x ; then
25620     SIM="${gdb_sim}"
25621     SIM_OBS="remote-sim.o"
25622
25623 cat >>confdefs.h <<\_ACEOF
25624 #define WITH_SIM 1
25625 _ACEOF
25626
25627   fi
25628 fi
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643 # List of host floatformats.
25644
25645 cat >>confdefs.h <<_ACEOF
25646 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
25647 _ACEOF
25648
25649
25650 cat >>confdefs.h <<_ACEOF
25651 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
25652 _ACEOF
25653
25654
25655 cat >>confdefs.h <<_ACEOF
25656 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
25657 _ACEOF
25658
25659
25660 # target_subdir is used by the testsuite to find the target libraries.
25661 target_subdir=
25662 if test "${host}" != "${target}"; then
25663     target_subdir="${target_alias}/"
25664 fi
25665
25666
25667 frags=
25668 if test "${gdb_native}" = "yes"; then
25669   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25670   if test ! -f ${host_makefile_frag}; then
25671     { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25672 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25673    { (exit 1); exit 1; }; }
25674   fi
25675   frags="$frags $host_makefile_frag"
25676 else
25677   host_makefile_frag=/dev/null
25678 fi
25679
25680
25681
25682
25683 if test "${gdb_native}" = "yes"; then
25684 # We pick this up from the host configuration file (.mh) because we
25685 # do not have a native configuration Makefile fragment.
25686 nativefile=`sed -n '
25687 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
25688 ' ${host_makefile_frag}`
25689 fi
25690
25691
25692 if test x"${gdb_osabi}" != x ; then
25693
25694 cat >>confdefs.h <<_ACEOF
25695 #define GDB_OSABI_DEFAULT $gdb_osabi
25696 _ACEOF
25697
25698 fi
25699
25700 # Enable multi-ice-gdb-server.
25701 # Check whether --enable-multi-ice or --disable-multi-ice was given.
25702 if test "${enable_multi_ice+set}" = set; then
25703   enableval="$enable_multi_ice"
25704   case $enableval in
25705     yes | no)
25706       ;;
25707     *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25708 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25709    { (exit 1); exit 1; }; } ;;
25710   esac
25711 fi;
25712 if test "x$enable_multi_ice" = xyes; then
25713
25714
25715 subdirs="$subdirs multi-ice"
25716
25717 fi
25718
25719 # We only build gdbserver automatically in a native configuration.
25720 if test "$gdb_native" = "yes"; then
25721   echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25722 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
25723   if test "x$build_gdbserver" = xyes; then
25724     echo "$as_me:$LINENO: result: yes" >&5
25725 echo "${ECHO_T}yes" >&6
25726
25727
25728 subdirs="$subdirs gdbserver"
25729
25730   else
25731     echo "$as_me:$LINENO: result: no" >&5
25732 echo "${ECHO_T}no" >&6
25733   fi
25734 fi
25735
25736 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
25737 # to an empty version.
25738
25739 files=
25740 links=
25741
25742 rm -f nm.h
25743 nm_h=""
25744 if test "${nativefile}" != ""; then
25745     nm_h=nm.h
25746     case "${nativefile}" in
25747       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25748       * ) GDB_NM_FILE="${nativefile}"
25749     esac
25750     files="${files} ${GDB_NM_FILE}"
25751     links="${links} nm.h"
25752
25753 cat >>confdefs.h <<_ACEOF
25754 #define GDB_NM_FILE "${GDB_NM_FILE}"
25755 _ACEOF
25756
25757 fi
25758
25759
25760 ac_sources="$files"
25761 ac_dests="$links"
25762 while test -n "$ac_sources"; do
25763   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25764   set $ac_sources; ac_source=$1; shift; ac_sources=$*
25765   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25766 done
25767           ac_config_links="$ac_config_links $ac_config_links_1"
25768
25769
25770
25771
25772
25773
25774 cat >>confdefs.h <<\_ACEOF
25775 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25776 _ACEOF
25777
25778
25779
25780
25781
25782 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25783 if test "${with_libiconv_prefix+set}" = set; then
25784   withval="$with_libiconv_prefix"
25785
25786     for dir in `echo "$withval" | tr : ' '`; do
25787       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25788       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25789     done
25790
25791 fi;
25792
25793   echo "$as_me:$LINENO: checking for iconv" >&5
25794 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25795 if test "${am_cv_func_iconv+set}" = set; then
25796   echo $ECHO_N "(cached) $ECHO_C" >&6
25797 else
25798
25799     am_cv_func_iconv="no, consider installing GNU libiconv"
25800     am_cv_lib_iconv=no
25801     cat >conftest.$ac_ext <<_ACEOF
25802 /* confdefs.h.  */
25803 _ACEOF
25804 cat confdefs.h >>conftest.$ac_ext
25805 cat >>conftest.$ac_ext <<_ACEOF
25806 /* end confdefs.h.  */
25807 #include <stdlib.h>
25808 #include <iconv.h>
25809 int
25810 main ()
25811 {
25812 iconv_t cd = iconv_open("","");
25813        iconv(cd,NULL,NULL,NULL,NULL);
25814        iconv_close(cd);
25815   ;
25816   return 0;
25817 }
25818 _ACEOF
25819 rm -f conftest.$ac_objext conftest$ac_exeext
25820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25821   (eval $ac_link) 2>conftest.er1
25822   ac_status=$?
25823   grep -v '^ *+' conftest.er1 >conftest.err
25824   rm -f conftest.er1
25825   cat conftest.err >&5
25826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827   (exit $ac_status); } &&
25828          { ac_try='test -z "$ac_c_werror_flag"
25829                          || test ! -s conftest.err'
25830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25831   (eval $ac_try) 2>&5
25832   ac_status=$?
25833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); }; } &&
25835          { ac_try='test -s conftest$ac_exeext'
25836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837   (eval $ac_try) 2>&5
25838   ac_status=$?
25839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840   (exit $ac_status); }; }; then
25841   am_cv_func_iconv=yes
25842 else
25843   echo "$as_me: failed program was:" >&5
25844 sed 's/^/| /' conftest.$ac_ext >&5
25845
25846 fi
25847 rm -f conftest.err conftest.$ac_objext \
25848       conftest$ac_exeext conftest.$ac_ext
25849     if test "$am_cv_func_iconv" != yes; then
25850       am_save_LIBS="$LIBS"
25851       LIBS="$LIBS -liconv"
25852       cat >conftest.$ac_ext <<_ACEOF
25853 /* confdefs.h.  */
25854 _ACEOF
25855 cat confdefs.h >>conftest.$ac_ext
25856 cat >>conftest.$ac_ext <<_ACEOF
25857 /* end confdefs.h.  */
25858 #include <stdlib.h>
25859 #include <iconv.h>
25860 int
25861 main ()
25862 {
25863 iconv_t cd = iconv_open("","");
25864          iconv(cd,NULL,NULL,NULL,NULL);
25865          iconv_close(cd);
25866   ;
25867   return 0;
25868 }
25869 _ACEOF
25870 rm -f conftest.$ac_objext conftest$ac_exeext
25871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25872   (eval $ac_link) 2>conftest.er1
25873   ac_status=$?
25874   grep -v '^ *+' conftest.er1 >conftest.err
25875   rm -f conftest.er1
25876   cat conftest.err >&5
25877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878   (exit $ac_status); } &&
25879          { ac_try='test -z "$ac_c_werror_flag"
25880                          || test ! -s conftest.err'
25881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882   (eval $ac_try) 2>&5
25883   ac_status=$?
25884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885   (exit $ac_status); }; } &&
25886          { ac_try='test -s conftest$ac_exeext'
25887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25888   (eval $ac_try) 2>&5
25889   ac_status=$?
25890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891   (exit $ac_status); }; }; then
25892   am_cv_lib_iconv=yes
25893         am_cv_func_iconv=yes
25894 else
25895   echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25897
25898 fi
25899 rm -f conftest.err conftest.$ac_objext \
25900       conftest$ac_exeext conftest.$ac_ext
25901       LIBS="$am_save_LIBS"
25902     fi
25903
25904 fi
25905 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25906 echo "${ECHO_T}$am_cv_func_iconv" >&6
25907   if test "$am_cv_func_iconv" = yes; then
25908
25909 cat >>confdefs.h <<\_ACEOF
25910 #define HAVE_ICONV 1
25911 _ACEOF
25912
25913     echo "$as_me:$LINENO: checking for iconv declaration" >&5
25914 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25915     if test "${am_cv_proto_iconv+set}" = set; then
25916   echo $ECHO_N "(cached) $ECHO_C" >&6
25917 else
25918
25919       cat >conftest.$ac_ext <<_ACEOF
25920 /* confdefs.h.  */
25921 _ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h.  */
25925
25926 #include <stdlib.h>
25927 #include <iconv.h>
25928 extern
25929 #ifdef __cplusplus
25930 "C"
25931 #endif
25932 #if defined(__STDC__) || defined(__cplusplus)
25933 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25934 #else
25935 size_t iconv();
25936 #endif
25937
25938 int
25939 main ()
25940 {
25941
25942   ;
25943   return 0;
25944 }
25945 _ACEOF
25946 rm -f conftest.$ac_objext
25947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25948   (eval $ac_compile) 2>conftest.er1
25949   ac_status=$?
25950   grep -v '^ *+' conftest.er1 >conftest.err
25951   rm -f conftest.er1
25952   cat conftest.err >&5
25953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954   (exit $ac_status); } &&
25955          { ac_try='test -z "$ac_c_werror_flag"
25956                          || test ! -s conftest.err'
25957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958   (eval $ac_try) 2>&5
25959   ac_status=$?
25960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961   (exit $ac_status); }; } &&
25962          { ac_try='test -s conftest.$ac_objext'
25963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964   (eval $ac_try) 2>&5
25965   ac_status=$?
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); }; }; then
25968   am_cv_proto_iconv_arg1=""
25969 else
25970   echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25972
25973 am_cv_proto_iconv_arg1="const"
25974 fi
25975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25976       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);"
25977 fi
25978
25979     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25980     echo "$as_me:$LINENO: result: ${ac_t:-
25981          }$am_cv_proto_iconv" >&5
25982 echo "${ECHO_T}${ac_t:-
25983          }$am_cv_proto_iconv" >&6
25984
25985 cat >>confdefs.h <<_ACEOF
25986 #define ICONV_CONST $am_cv_proto_iconv_arg1
25987 _ACEOF
25988
25989   fi
25990   LIBICONV=
25991   if test "$am_cv_lib_iconv" = yes; then
25992     LIBICONV="-liconv"
25993   fi
25994
25995
25996
25997                               ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
25998           ac_config_commands="$ac_config_commands default"
25999 cat >confcache <<\_ACEOF
26000 # This file is a shell script that caches the results of configure
26001 # tests run on this system so they can be shared between configure
26002 # scripts and configure runs, see configure's option --config-cache.
26003 # It is not useful on other systems.  If it contains results you don't
26004 # want to keep, you may remove or edit it.
26005 #
26006 # config.status only pays attention to the cache file if you give it
26007 # the --recheck option to rerun configure.
26008 #
26009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26011 # following values.
26012
26013 _ACEOF
26014
26015 # The following way of writing the cache mishandles newlines in values,
26016 # but we know of no workaround that is simple, portable, and efficient.
26017 # So, don't put newlines in cache variables' values.
26018 # Ultrix sh set writes to stderr and can't be redirected directly,
26019 # and sets the high bit in the cache file unless we assign to the vars.
26020 {
26021   (set) 2>&1 |
26022     case `(ac_space=' '; set | grep ac_space) 2>&1` in
26023     *ac_space=\ *)
26024       # `set' does not quote correctly, so add quotes (double-quote
26025       # substitution turns \\\\ into \\, and sed turns \\ into \).
26026       sed -n \
26027         "s/'/'\\\\''/g;
26028           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26029       ;;
26030     *)
26031       # `set' quotes correctly as required by POSIX, so do not add quotes.
26032       sed -n \
26033         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26034       ;;
26035     esac;
26036 } |
26037   sed '
26038      t clear
26039      : clear
26040      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26041      t end
26042      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26043      : end' >>confcache
26044 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26045   if test -w $cache_file; then
26046     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26047     cat confcache >$cache_file
26048   else
26049     echo "not updating unwritable cache $cache_file"
26050   fi
26051 fi
26052 rm -f confcache
26053
26054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26055 # Let make expand exec_prefix.
26056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26057
26058 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26059 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26060 # trailing colons and then remove the whole line if VPATH becomes empty
26061 # (actually we leave an empty line to preserve line numbers).
26062 if test "x$srcdir" = x.; then
26063   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26064 s/:*\$(srcdir):*/:/;
26065 s/:*\${srcdir}:*/:/;
26066 s/:*@srcdir@:*/:/;
26067 s/^\([^=]*=[     ]*\):*/\1/;
26068 s/:*$//;
26069 s/^[^=]*=[       ]*$//;
26070 }'
26071 fi
26072
26073 DEFS=-DHAVE_CONFIG_H
26074
26075 ac_libobjs=
26076 ac_ltlibobjs=
26077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26078   # 1. Remove the extension, and $U if already installed.
26079   ac_i=`echo "$ac_i" |
26080          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26081   # 2. Add them.
26082   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26083   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26084 done
26085 LIBOBJS=$ac_libobjs
26086
26087 LTLIBOBJS=$ac_ltlibobjs
26088
26089
26090 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26091   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26092 Usually this means the macro was only invoked conditionally." >&5
26093 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26094 Usually this means the macro was only invoked conditionally." >&2;}
26095    { (exit 1); exit 1; }; }
26096 fi
26097 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26098   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26099 Usually this means the macro was only invoked conditionally." >&5
26100 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26101 Usually this means the macro was only invoked conditionally." >&2;}
26102    { (exit 1); exit 1; }; }
26103 fi
26104
26105     gl_libobjs=
26106     gl_ltlibobjs=
26107     if test -n "$gl_LIBOBJS"; then
26108       # Remove the extension.
26109       sed_drop_objext='s/\.o$//;s/\.obj$//'
26110       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26111         gl_libobjs="$gl_libobjs $i.$ac_objext"
26112         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26113       done
26114     fi
26115     gl_LIBOBJS=$gl_libobjs
26116
26117     gl_LTLIBOBJS=$gl_ltlibobjs
26118
26119
26120
26121     gltests_libobjs=
26122     gltests_ltlibobjs=
26123     if test -n "$gltests_LIBOBJS"; then
26124       # Remove the extension.
26125       sed_drop_objext='s/\.o$//;s/\.obj$//'
26126       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26127         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26128         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26129       done
26130     fi
26131     gltests_LIBOBJS=$gltests_libobjs
26132
26133     gltests_LTLIBOBJS=$gltests_ltlibobjs
26134
26135
26136 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26137   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26138 Usually this means the macro was only invoked conditionally." >&5
26139 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26140 Usually this means the macro was only invoked conditionally." >&2;}
26141    { (exit 1); exit 1; }; }
26142 fi
26143 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26144   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26145 Usually this means the macro was only invoked conditionally." >&5
26146 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26147 Usually this means the macro was only invoked conditionally." >&2;}
26148    { (exit 1); exit 1; }; }
26149 fi
26150
26151 : ${CONFIG_STATUS=./config.status}
26152 ac_clean_files_save=$ac_clean_files
26153 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26154 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26155 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26156 cat >$CONFIG_STATUS <<_ACEOF
26157 #! $SHELL
26158 # Generated by $as_me.
26159 # Run this file to recreate the current configuration.
26160 # Compiler output produced by configure, useful for debugging
26161 # configure, is in config.log if it exists.
26162
26163 debug=false
26164 ac_cs_recheck=false
26165 ac_cs_silent=false
26166 SHELL=\${CONFIG_SHELL-$SHELL}
26167 _ACEOF
26168
26169 cat >>$CONFIG_STATUS <<\_ACEOF
26170 ## --------------------- ##
26171 ## M4sh Initialization.  ##
26172 ## --------------------- ##
26173
26174 # Be Bourne compatible
26175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26176   emulate sh
26177   NULLCMD=:
26178   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26179   # is contrary to our usage.  Disable this feature.
26180   alias -g '${1+"$@"}'='"$@"'
26181 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26182   set -o posix
26183 fi
26184 DUALCASE=1; export DUALCASE # for MKS sh
26185
26186 # Support unset when possible.
26187 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26188   as_unset=unset
26189 else
26190   as_unset=false
26191 fi
26192
26193
26194 # Work around bugs in pre-3.0 UWIN ksh.
26195 $as_unset ENV MAIL MAILPATH
26196 PS1='$ '
26197 PS2='> '
26198 PS4='+ '
26199
26200 # NLS nuisances.
26201 for as_var in \
26202   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26203   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26204   LC_TELEPHONE LC_TIME
26205 do
26206   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26207     eval $as_var=C; export $as_var
26208   else
26209     $as_unset $as_var
26210   fi
26211 done
26212
26213 # Required to use basename.
26214 if expr a : '\(a\)' >/dev/null 2>&1; then
26215   as_expr=expr
26216 else
26217   as_expr=false
26218 fi
26219
26220 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26221   as_basename=basename
26222 else
26223   as_basename=false
26224 fi
26225
26226
26227 # Name of the executable.
26228 as_me=`$as_basename "$0" ||
26229 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26230          X"$0" : 'X\(//\)$' \| \
26231          X"$0" : 'X\(/\)$' \| \
26232          .     : '\(.\)' 2>/dev/null ||
26233 echo X/"$0" |
26234     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26235           /^X\/\(\/\/\)$/{ s//\1/; q; }
26236           /^X\/\(\/\).*/{ s//\1/; q; }
26237           s/.*/./; q'`
26238
26239
26240 # PATH needs CR, and LINENO needs CR and PATH.
26241 # Avoid depending upon Character Ranges.
26242 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26243 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26244 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26245 as_cr_digits='0123456789'
26246 as_cr_alnum=$as_cr_Letters$as_cr_digits
26247
26248 # The user is always right.
26249 if test "${PATH_SEPARATOR+set}" != set; then
26250   echo "#! /bin/sh" >conf$$.sh
26251   echo  "exit 0"   >>conf$$.sh
26252   chmod +x conf$$.sh
26253   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26254     PATH_SEPARATOR=';'
26255   else
26256     PATH_SEPARATOR=:
26257   fi
26258   rm -f conf$$.sh
26259 fi
26260
26261
26262   as_lineno_1=$LINENO
26263   as_lineno_2=$LINENO
26264   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26265   test "x$as_lineno_1" != "x$as_lineno_2" &&
26266   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26267   # Find who we are.  Look in the path if we contain no path at all
26268   # relative or not.
26269   case $0 in
26270     *[\\/]* ) as_myself=$0 ;;
26271     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26272 for as_dir in $PATH
26273 do
26274   IFS=$as_save_IFS
26275   test -z "$as_dir" && as_dir=.
26276   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26277 done
26278
26279        ;;
26280   esac
26281   # We did not find ourselves, most probably we were run as `sh COMMAND'
26282   # in which case we are not to be found in the path.
26283   if test "x$as_myself" = x; then
26284     as_myself=$0
26285   fi
26286   if test ! -f "$as_myself"; then
26287     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26288 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26289    { (exit 1); exit 1; }; }
26290   fi
26291   case $CONFIG_SHELL in
26292   '')
26293     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26294 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26295 do
26296   IFS=$as_save_IFS
26297   test -z "$as_dir" && as_dir=.
26298   for as_base in sh bash ksh sh5; do
26299          case $as_dir in
26300          /*)
26301            if ("$as_dir/$as_base" -c '
26302   as_lineno_1=$LINENO
26303   as_lineno_2=$LINENO
26304   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26305   test "x$as_lineno_1" != "x$as_lineno_2" &&
26306   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26307              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26308              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26309              CONFIG_SHELL=$as_dir/$as_base
26310              export CONFIG_SHELL
26311              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26312            fi;;
26313          esac
26314        done
26315 done
26316 ;;
26317   esac
26318
26319   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26320   # uniformly replaced by the line number.  The first 'sed' inserts a
26321   # line-number line before each line; the second 'sed' does the real
26322   # work.  The second script uses 'N' to pair each line-number line
26323   # with the numbered line, and appends trailing '-' during
26324   # substitution so that $LINENO is not a special case at line end.
26325   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26326   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26327   sed '=' <$as_myself |
26328     sed '
26329       N
26330       s,$,-,
26331       : loop
26332       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26333       t loop
26334       s,-$,,
26335       s,^['$as_cr_digits']*\n,,
26336     ' >$as_me.lineno &&
26337   chmod +x $as_me.lineno ||
26338     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26339 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26340    { (exit 1); exit 1; }; }
26341
26342   # Don't try to exec as it changes $[0], causing all sort of problems
26343   # (the dirname of $[0] is not the place where we might find the
26344   # original and so on.  Autoconf is especially sensible to this).
26345   . ./$as_me.lineno
26346   # Exit status is that of the last command.
26347   exit
26348 }
26349
26350
26351 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26352   *c*,-n*) ECHO_N= ECHO_C='
26353 ' ECHO_T='      ' ;;
26354   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26355   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26356 esac
26357
26358 if expr a : '\(a\)' >/dev/null 2>&1; then
26359   as_expr=expr
26360 else
26361   as_expr=false
26362 fi
26363
26364 rm -f conf$$ conf$$.exe conf$$.file
26365 echo >conf$$.file
26366 if ln -s conf$$.file conf$$ 2>/dev/null; then
26367   # We could just check for DJGPP; but this test a) works b) is more generic
26368   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26369   if test -f conf$$.exe; then
26370     # Don't use ln at all; we don't have any links
26371     as_ln_s='cp -p'
26372   else
26373     as_ln_s='ln -s'
26374   fi
26375 elif ln conf$$.file conf$$ 2>/dev/null; then
26376   as_ln_s=ln
26377 else
26378   as_ln_s='cp -p'
26379 fi
26380 rm -f conf$$ conf$$.exe conf$$.file
26381
26382 if mkdir -p . 2>/dev/null; then
26383   as_mkdir_p=:
26384 else
26385   test -d ./-p && rmdir ./-p
26386   as_mkdir_p=false
26387 fi
26388
26389 as_executable_p="test -f"
26390
26391 # Sed expression to map a string onto a valid CPP name.
26392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26393
26394 # Sed expression to map a string onto a valid variable name.
26395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26396
26397
26398 # IFS
26399 # We need space, tab and new line, in precisely that order.
26400 as_nl='
26401 '
26402 IFS="   $as_nl"
26403
26404 # CDPATH.
26405 $as_unset CDPATH
26406
26407 exec 6>&1
26408
26409 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26410 # report actual input values of CONFIG_FILES etc. instead of their
26411 # values after options handling.  Logging --version etc. is OK.
26412 exec 5>>config.log
26413 {
26414   echo
26415   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26416 ## Running $as_me. ##
26417 _ASBOX
26418 } >&5
26419 cat >&5 <<_CSEOF
26420
26421 This file was extended by $as_me, which was
26422 generated by GNU Autoconf 2.59.  Invocation command line was
26423
26424   CONFIG_FILES    = $CONFIG_FILES
26425   CONFIG_HEADERS  = $CONFIG_HEADERS
26426   CONFIG_LINKS    = $CONFIG_LINKS
26427   CONFIG_COMMANDS = $CONFIG_COMMANDS
26428   $ $0 $@
26429
26430 _CSEOF
26431 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26432 echo >&5
26433 _ACEOF
26434
26435 # Files that config.status was made for.
26436 if test -n "$ac_config_files"; then
26437   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26438 fi
26439
26440 if test -n "$ac_config_headers"; then
26441   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26442 fi
26443
26444 if test -n "$ac_config_links"; then
26445   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26446 fi
26447
26448 if test -n "$ac_config_commands"; then
26449   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26450 fi
26451
26452 cat >>$CONFIG_STATUS <<\_ACEOF
26453
26454 ac_cs_usage="\
26455 \`$as_me' instantiates files from templates according to the
26456 current configuration.
26457
26458 Usage: $0 [OPTIONS] [FILE]...
26459
26460   -h, --help       print this help, then exit
26461   -V, --version    print version number, then exit
26462   -q, --quiet      do not print progress messages
26463   -d, --debug      don't remove temporary files
26464       --recheck    update $as_me by reconfiguring in the same conditions
26465   --file=FILE[:TEMPLATE]
26466                    instantiate the configuration file FILE
26467   --header=FILE[:TEMPLATE]
26468                    instantiate the configuration header FILE
26469
26470 Configuration files:
26471 $config_files
26472
26473 Configuration headers:
26474 $config_headers
26475
26476 Configuration links:
26477 $config_links
26478
26479 Configuration commands:
26480 $config_commands
26481
26482 Report bugs to <bug-autoconf@gnu.org>."
26483 _ACEOF
26484
26485 cat >>$CONFIG_STATUS <<_ACEOF
26486 ac_cs_version="\\
26487 config.status
26488 configured by $0, generated by GNU Autoconf 2.59,
26489   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26490
26491 Copyright (C) 2003 Free Software Foundation, Inc.
26492 This config.status script is free software; the Free Software Foundation
26493 gives unlimited permission to copy, distribute and modify it."
26494 srcdir=$srcdir
26495 INSTALL="$INSTALL"
26496 _ACEOF
26497
26498 cat >>$CONFIG_STATUS <<\_ACEOF
26499 # If no file are specified by the user, then we need to provide default
26500 # value.  By we need to know if files were specified by the user.
26501 ac_need_defaults=:
26502 while test $# != 0
26503 do
26504   case $1 in
26505   --*=*)
26506     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26507     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26508     ac_shift=:
26509     ;;
26510   -*)
26511     ac_option=$1
26512     ac_optarg=$2
26513     ac_shift=shift
26514     ;;
26515   *) # This is not an option, so the user has probably given explicit
26516      # arguments.
26517      ac_option=$1
26518      ac_need_defaults=false;;
26519   esac
26520
26521   case $ac_option in
26522   # Handling of the options.
26523 _ACEOF
26524 cat >>$CONFIG_STATUS <<\_ACEOF
26525   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26526     ac_cs_recheck=: ;;
26527   --version | --vers* | -V )
26528     echo "$ac_cs_version"; exit 0 ;;
26529   --he | --h)
26530     # Conflict between --help and --header
26531     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26532 Try \`$0 --help' for more information." >&5
26533 echo "$as_me: error: ambiguous option: $1
26534 Try \`$0 --help' for more information." >&2;}
26535    { (exit 1); exit 1; }; };;
26536   --help | --hel | -h )
26537     echo "$ac_cs_usage"; exit 0 ;;
26538   --debug | --d* | -d )
26539     debug=: ;;
26540   --file | --fil | --fi | --f )
26541     $ac_shift
26542     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26543     ac_need_defaults=false;;
26544   --header | --heade | --head | --hea )
26545     $ac_shift
26546     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26547     ac_need_defaults=false;;
26548   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26549   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26550     ac_cs_silent=: ;;
26551
26552   # This is an error.
26553   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26554 Try \`$0 --help' for more information." >&5
26555 echo "$as_me: error: unrecognized option: $1
26556 Try \`$0 --help' for more information." >&2;}
26557    { (exit 1); exit 1; }; } ;;
26558
26559   *) ac_config_targets="$ac_config_targets $1" ;;
26560
26561   esac
26562   shift
26563 done
26564
26565 ac_configure_extra_args=
26566
26567 if $ac_cs_silent; then
26568   exec 6>/dev/null
26569   ac_configure_extra_args="$ac_configure_extra_args --silent"
26570 fi
26571
26572 _ACEOF
26573 cat >>$CONFIG_STATUS <<_ACEOF
26574 if \$ac_cs_recheck; then
26575   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26576   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26577 fi
26578
26579 _ACEOF
26580
26581 cat >>$CONFIG_STATUS <<_ACEOF
26582 #
26583 # INIT-COMMANDS section.
26584 #
26585
26586 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26587
26588 gdb_host_cpu=$gdb_host_cpu
26589 nativefile=$nativefile
26590
26591
26592 _ACEOF
26593
26594
26595
26596 cat >>$CONFIG_STATUS <<\_ACEOF
26597 for ac_config_target in $ac_config_targets
26598 do
26599   case "$ac_config_target" in
26600   # Handling of arguments.
26601   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26602   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
26603   "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
26604   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
26605   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26606   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26607   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26608   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26609 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26610    { (exit 1); exit 1; }; };;
26611   esac
26612 done
26613
26614 # If the user did not use the arguments to specify the items to instantiate,
26615 # then the envvar interface is used.  Set only those that are not.
26616 # We use the long form for the default assignment because of an extremely
26617 # bizarre bug on SunOS 4.1.3.
26618 if $ac_need_defaults; then
26619   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26620   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26621   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26622   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26623 fi
26624
26625 # Have a temporary directory for convenience.  Make it in the build tree
26626 # simply because there is no reason to put it here, and in addition,
26627 # creating and moving files from /tmp can sometimes cause problems.
26628 # Create a temporary directory, and hook for its removal unless debugging.
26629 $debug ||
26630 {
26631   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26632   trap '{ (exit 1); exit 1; }' 1 2 13 15
26633 }
26634
26635 # Create a (secure) tmp directory for tmp files.
26636
26637 {
26638   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26639   test -n "$tmp" && test -d "$tmp"
26640 }  ||
26641 {
26642   tmp=./confstat$$-$RANDOM
26643   (umask 077 && mkdir $tmp)
26644 } ||
26645 {
26646    echo "$me: cannot create a temporary directory in ." >&2
26647    { (exit 1); exit 1; }
26648 }
26649
26650 _ACEOF
26651
26652 cat >>$CONFIG_STATUS <<_ACEOF
26653
26654 #
26655 # CONFIG_FILES section.
26656 #
26657
26658 # No need to generate the scripts if there are no CONFIG_FILES.
26659 # This happens for instance when ./config.status config.h
26660 if test -n "\$CONFIG_FILES"; then
26661   # Protect against being on the right side of a sed subst in config.status.
26662   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26663    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26664 s,@SHELL@,$SHELL,;t t
26665 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26666 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26667 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26668 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26669 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26670 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26671 s,@exec_prefix@,$exec_prefix,;t t
26672 s,@prefix@,$prefix,;t t
26673 s,@program_transform_name@,$program_transform_name,;t t
26674 s,@bindir@,$bindir,;t t
26675 s,@sbindir@,$sbindir,;t t
26676 s,@libexecdir@,$libexecdir,;t t
26677 s,@datadir@,$datadir,;t t
26678 s,@sysconfdir@,$sysconfdir,;t t
26679 s,@sharedstatedir@,$sharedstatedir,;t t
26680 s,@localstatedir@,$localstatedir,;t t
26681 s,@libdir@,$libdir,;t t
26682 s,@includedir@,$includedir,;t t
26683 s,@oldincludedir@,$oldincludedir,;t t
26684 s,@infodir@,$infodir,;t t
26685 s,@mandir@,$mandir,;t t
26686 s,@build_alias@,$build_alias,;t t
26687 s,@host_alias@,$host_alias,;t t
26688 s,@target_alias@,$target_alias,;t t
26689 s,@DEFS@,$DEFS,;t t
26690 s,@ECHO_C@,$ECHO_C,;t t
26691 s,@ECHO_N@,$ECHO_N,;t t
26692 s,@ECHO_T@,$ECHO_T,;t t
26693 s,@LIBS@,$LIBS,;t t
26694 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26695 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26696 s,@MAINT@,$MAINT,;t t
26697 s,@CC@,$CC,;t t
26698 s,@CFLAGS@,$CFLAGS,;t t
26699 s,@LDFLAGS@,$LDFLAGS,;t t
26700 s,@CPPFLAGS@,$CPPFLAGS,;t t
26701 s,@ac_ct_CC@,$ac_ct_CC,;t t
26702 s,@EXEEXT@,$EXEEXT,;t t
26703 s,@OBJEXT@,$OBJEXT,;t t
26704 s,@CPP@,$CPP,;t t
26705 s,@EGREP@,$EGREP,;t t
26706 s,@RANLIB@,$RANLIB,;t t
26707 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26708 s,@build@,$build,;t t
26709 s,@build_cpu@,$build_cpu,;t t
26710 s,@build_vendor@,$build_vendor,;t t
26711 s,@build_os@,$build_os,;t t
26712 s,@host@,$host,;t t
26713 s,@host_cpu@,$host_cpu,;t t
26714 s,@host_vendor@,$host_vendor,;t t
26715 s,@host_os@,$host_os,;t t
26716 s,@target@,$target,;t t
26717 s,@target_cpu@,$target_cpu,;t t
26718 s,@target_vendor@,$target_vendor,;t t
26719 s,@target_os@,$target_os,;t t
26720 s,@USE_NLS@,$USE_NLS,;t t
26721 s,@LIBINTL@,$LIBINTL,;t t
26722 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26723 s,@INCINTL@,$INCINTL,;t t
26724 s,@XGETTEXT@,$XGETTEXT,;t t
26725 s,@GMSGFMT@,$GMSGFMT,;t t
26726 s,@POSUB@,$POSUB,;t t
26727 s,@CATALOGS@,$CATALOGS,;t t
26728 s,@DATADIRNAME@,$DATADIRNAME,;t t
26729 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26730 s,@GENCAT@,$GENCAT,;t t
26731 s,@CATOBJEXT@,$CATOBJEXT,;t t
26732 s,@localedir@,$localedir,;t t
26733 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26734 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26735 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26736 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26737 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26738 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26739 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26740 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26741 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26742 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26743 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26744 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26745 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26746 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26747 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26748 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26749 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26750 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26751 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26752 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26753 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26754 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26755 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26756 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26757 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26758 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26759 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26760 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26761 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26762 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26763 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26764 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26765 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26766 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26767 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26768 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26769 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26770 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26771 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26772 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26773 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26774 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26775 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26776 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26777 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26778 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26779 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26780 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26781 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26782 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26783 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26784 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26785 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26786 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26787 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26788 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26789 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26790 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26791 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26792 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26793 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26794 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26795 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26796 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26797 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26798 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26799 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26800 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26801 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26802 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26803 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26804 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26805 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26806 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26807 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26808 s,@STDINT_H@,$STDINT_H,;t t
26809 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26810 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26811 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26812 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26813 s,@WCHAR_H@,$WCHAR_H,;t t
26814 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26815 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26816 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26817 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
26818 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
26819 s,@PACKAGE@,$PACKAGE,;t t
26820 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26821 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26822 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26823 s,@CYGPATH_W@,$CYGPATH_W,;t t
26824 s,@VERSION@,$VERSION,;t t
26825 s,@ACLOCAL@,$ACLOCAL,;t t
26826 s,@AUTOCONF@,$AUTOCONF,;t t
26827 s,@AUTOMAKE@,$AUTOMAKE,;t t
26828 s,@AUTOHEADER@,$AUTOHEADER,;t t
26829 s,@MAKEINFO@,$MAKEINFO,;t t
26830 s,@install_sh@,$install_sh,;t t
26831 s,@STRIP@,$STRIP,;t t
26832 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26833 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26834 s,@mkdir_p@,$mkdir_p,;t t
26835 s,@AWK@,$AWK,;t t
26836 s,@SET_MAKE@,$SET_MAKE,;t t
26837 s,@am__leading_dot@,$am__leading_dot,;t t
26838 s,@AMTAR@,$AMTAR,;t t
26839 s,@am__tar@,$am__tar,;t t
26840 s,@am__untar@,$am__untar,;t t
26841 s,@DEPDIR@,$DEPDIR,;t t
26842 s,@am__include@,$am__include,;t t
26843 s,@am__quote@,$am__quote,;t t
26844 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26845 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26846 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26847 s,@CCDEPMODE@,$CCDEPMODE,;t t
26848 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26849 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26850 s,@subdirs@,$subdirs,;t t
26851 s,@TARGET_OBS@,$TARGET_OBS,;t t
26852 s,@PKGVERSION@,$PKGVERSION,;t t
26853 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26854 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
26855 s,@LN_S@,$LN_S,;t t
26856 s,@YACC@,$YACC,;t t
26857 s,@AR@,$AR,;t t
26858 s,@ac_ct_AR@,$ac_ct_AR,;t t
26859 s,@DLLTOOL@,$DLLTOOL,;t t
26860 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26861 s,@WINDRES@,$WINDRES,;t t
26862 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26863 s,@MIG@,$MIG,;t t
26864 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
26865 s,@READLINE@,$READLINE,;t t
26866 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26867 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
26868 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26869 s,@LIBEXPAT@,$LIBEXPAT,;t t
26870 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
26871 s,@ALLOCA@,$ALLOCA,;t t
26872 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26873 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26874 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26875 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26876 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26877 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26878 s,@WIN32LIBS@,$WIN32LIBS,;t t
26879 s,@LIBGUI@,$LIBGUI,;t t
26880 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26881 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26882 s,@TCL_VERSION@,$TCL_VERSION,;t t
26883 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
26884 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
26885 s,@TCL_CC@,$TCL_CC,;t t
26886 s,@TCL_DEFS@,$TCL_DEFS,;t t
26887 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
26888 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
26889 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
26890 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
26891 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
26892 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
26893 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
26894 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
26895 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
26896 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
26897 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
26898 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26899 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
26900 s,@TK_VERSION@,$TK_VERSION,;t t
26901 s,@TK_DEFS@,$TK_DEFS,;t t
26902 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
26903 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26904 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
26905 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
26906 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26907 s,@TCLHDIR@,$TCLHDIR,;t t
26908 s,@TKHDIR@,$TKHDIR,;t t
26909 s,@ITCLHDIR@,$ITCLHDIR,;t t
26910 s,@ITKHDIR@,$ITKHDIR,;t t
26911 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
26912 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
26913 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
26914 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
26915 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
26916 s,@ITK_VERSION@,$ITK_VERSION,;t t
26917 s,@ITK_DEFS@,$ITK_DEFS,;t t
26918 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
26919 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
26920 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
26921 s,@X_CFLAGS@,$X_CFLAGS,;t t
26922 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26923 s,@X_LIBS@,$X_LIBS,;t t
26924 s,@TCL_DEPS@,$TCL_DEPS,;t t
26925 s,@TK_DEPS@,$TK_DEPS,;t t
26926 s,@ITCLLIB@,$ITCLLIB,;t t
26927 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
26928 s,@ITKLIB@,$ITKLIB,;t t
26929 s,@ITK_DEPS@,$ITK_DEPS,;t t
26930 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26931 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26932 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
26933 s,@SIM@,$SIM,;t t
26934 s,@SIM_OBS@,$SIM_OBS,;t t
26935 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26936 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26937 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26938 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26939 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26940 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26941 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26942 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26943 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26944 s,@target_subdir@,$target_subdir,;t t
26945 s,@frags@,$frags,;t t
26946 s,@nm_h@,$nm_h,;t t
26947 s,@LIBICONV@,$LIBICONV,;t t
26948 s,@LIBOBJS@,$LIBOBJS,;t t
26949 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26950 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26951 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26952 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26953 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
26954 /@host_makefile_frag@/r $host_makefile_frag
26955 s,@host_makefile_frag@,,;t t
26956 CEOF
26957
26958 _ACEOF
26959
26960   cat >>$CONFIG_STATUS <<\_ACEOF
26961   # Split the substitutions into bite-sized pieces for seds with
26962   # small command number limits, like on Digital OSF/1 and HP-UX.
26963   ac_max_sed_lines=48
26964   ac_sed_frag=1 # Number of current file.
26965   ac_beg=1 # First line for current file.
26966   ac_end=$ac_max_sed_lines # Line after last line for current file.
26967   ac_more_lines=:
26968   ac_sed_cmds=
26969   while $ac_more_lines; do
26970     if test $ac_beg -gt 1; then
26971       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26972     else
26973       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26974     fi
26975     if test ! -s $tmp/subs.frag; then
26976       ac_more_lines=false
26977     else
26978       # The purpose of the label and of the branching condition is to
26979       # speed up the sed processing (if there are no `@' at all, there
26980       # is no need to browse any of the substitutions).
26981       # These are the two extra sed commands mentioned above.
26982       (echo ':t
26983   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26984       if test -z "$ac_sed_cmds"; then
26985         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26986       else
26987         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26988       fi
26989       ac_sed_frag=`expr $ac_sed_frag + 1`
26990       ac_beg=$ac_end
26991       ac_end=`expr $ac_end + $ac_max_sed_lines`
26992     fi
26993   done
26994   if test -z "$ac_sed_cmds"; then
26995     ac_sed_cmds=cat
26996   fi
26997 fi # test -n "$CONFIG_FILES"
26998
26999 _ACEOF
27000 cat >>$CONFIG_STATUS <<\_ACEOF
27001 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27002   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27003   case $ac_file in
27004   - | *:- | *:-:* ) # input from stdin
27005         cat >$tmp/stdin
27006         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27007         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27008   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27009         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27010   * )   ac_file_in=$ac_file.in ;;
27011   esac
27012
27013   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27014   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27016          X"$ac_file" : 'X\(//\)[^/]' \| \
27017          X"$ac_file" : 'X\(//\)$' \| \
27018          X"$ac_file" : 'X\(/\)' \| \
27019          .     : '\(.\)' 2>/dev/null ||
27020 echo X"$ac_file" |
27021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27022           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27023           /^X\(\/\/\)$/{ s//\1/; q; }
27024           /^X\(\/\).*/{ s//\1/; q; }
27025           s/.*/./; q'`
27026   { if $as_mkdir_p; then
27027     mkdir -p "$ac_dir"
27028   else
27029     as_dir="$ac_dir"
27030     as_dirs=
27031     while test ! -d "$as_dir"; do
27032       as_dirs="$as_dir $as_dirs"
27033       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27035          X"$as_dir" : 'X\(//\)[^/]' \| \
27036          X"$as_dir" : 'X\(//\)$' \| \
27037          X"$as_dir" : 'X\(/\)' \| \
27038          .     : '\(.\)' 2>/dev/null ||
27039 echo X"$as_dir" |
27040     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27041           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27042           /^X\(\/\/\)$/{ s//\1/; q; }
27043           /^X\(\/\).*/{ s//\1/; q; }
27044           s/.*/./; q'`
27045     done
27046     test ! -n "$as_dirs" || mkdir $as_dirs
27047   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27049    { (exit 1); exit 1; }; }; }
27050
27051   ac_builddir=.
27052
27053 if test "$ac_dir" != .; then
27054   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27055   # A "../" for each directory in $ac_dir_suffix.
27056   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27057 else
27058   ac_dir_suffix= ac_top_builddir=
27059 fi
27060
27061 case $srcdir in
27062   .)  # No --srcdir option.  We are building in place.
27063     ac_srcdir=.
27064     if test -z "$ac_top_builddir"; then
27065        ac_top_srcdir=.
27066     else
27067        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27068     fi ;;
27069   [\\/]* | ?:[\\/]* )  # Absolute path.
27070     ac_srcdir=$srcdir$ac_dir_suffix;
27071     ac_top_srcdir=$srcdir ;;
27072   *) # Relative path.
27073     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27074     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27075 esac
27076
27077 # Do not use `cd foo && pwd` to compute absolute paths, because
27078 # the directories may not exist.
27079 case `pwd` in
27080 .) ac_abs_builddir="$ac_dir";;
27081 *)
27082   case "$ac_dir" in
27083   .) ac_abs_builddir=`pwd`;;
27084   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27085   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27086   esac;;
27087 esac
27088 case $ac_abs_builddir in
27089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27090 *)
27091   case ${ac_top_builddir}. in
27092   .) ac_abs_top_builddir=$ac_abs_builddir;;
27093   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27094   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27095   esac;;
27096 esac
27097 case $ac_abs_builddir in
27098 .) ac_abs_srcdir=$ac_srcdir;;
27099 *)
27100   case $ac_srcdir in
27101   .) ac_abs_srcdir=$ac_abs_builddir;;
27102   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27103   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27104   esac;;
27105 esac
27106 case $ac_abs_builddir in
27107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27108 *)
27109   case $ac_top_srcdir in
27110   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27111   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27112   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27113   esac;;
27114 esac
27115
27116
27117   case $INSTALL in
27118   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27119   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27120   esac
27121
27122   if test x"$ac_file" != x-; then
27123     { echo "$as_me:$LINENO: creating $ac_file" >&5
27124 echo "$as_me: creating $ac_file" >&6;}
27125     rm -f "$ac_file"
27126   fi
27127   # Let's still pretend it is `configure' which instantiates (i.e., don't
27128   # use $as_me), people would be surprised to read:
27129   #    /* config.h.  Generated by config.status.  */
27130   if test x"$ac_file" = x-; then
27131     configure_input=
27132   else
27133     configure_input="$ac_file.  "
27134   fi
27135   configure_input=$configure_input"Generated from `echo $ac_file_in |
27136                                      sed 's,.*/,,'` by configure."
27137
27138   # First look for the input files in the build tree, otherwise in the
27139   # src tree.
27140   ac_file_inputs=`IFS=:
27141     for f in $ac_file_in; do
27142       case $f in
27143       -) echo $tmp/stdin ;;
27144       [\\/$]*)
27145          # Absolute (can't be DOS-style, as IFS=:)
27146          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27147 echo "$as_me: error: cannot find input file: $f" >&2;}
27148    { (exit 1); exit 1; }; }
27149          echo "$f";;
27150       *) # Relative
27151          if test -f "$f"; then
27152            # Build tree
27153            echo "$f"
27154          elif test -f "$srcdir/$f"; then
27155            # Source tree
27156            echo "$srcdir/$f"
27157          else
27158            # /dev/null tree
27159            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27160 echo "$as_me: error: cannot find input file: $f" >&2;}
27161    { (exit 1); exit 1; }; }
27162          fi;;
27163       esac
27164     done` || { (exit 1); exit 1; }
27165 _ACEOF
27166 cat >>$CONFIG_STATUS <<_ACEOF
27167   sed "$ac_vpsub
27168 $extrasub
27169 _ACEOF
27170 cat >>$CONFIG_STATUS <<\_ACEOF
27171 :t
27172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27173 s,@configure_input@,$configure_input,;t t
27174 s,@srcdir@,$ac_srcdir,;t t
27175 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27176 s,@top_srcdir@,$ac_top_srcdir,;t t
27177 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27178 s,@builddir@,$ac_builddir,;t t
27179 s,@abs_builddir@,$ac_abs_builddir,;t t
27180 s,@top_builddir@,$ac_top_builddir,;t t
27181 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27182 s,@INSTALL@,$ac_INSTALL,;t t
27183 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27184   rm -f $tmp/stdin
27185   if test x"$ac_file" != x-; then
27186     mv $tmp/out $ac_file
27187   else
27188     cat $tmp/out
27189     rm -f $tmp/out
27190   fi
27191
27192 done
27193 _ACEOF
27194 cat >>$CONFIG_STATUS <<\_ACEOF
27195
27196 #
27197 # CONFIG_HEADER section.
27198 #
27199
27200 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27201 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27202 #
27203 # ac_d sets the value in "#define NAME VALUE" lines.
27204 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27205 ac_dB='[         ].*$,\1#\2'
27206 ac_dC=' '
27207 ac_dD=',;t'
27208 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27209 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27210 ac_uB='$,\1#\2define\3'
27211 ac_uC=' '
27212 ac_uD=',;t'
27213
27214 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27215   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27216   case $ac_file in
27217   - | *:- | *:-:* ) # input from stdin
27218         cat >$tmp/stdin
27219         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27220         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27221   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27222         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27223   * )   ac_file_in=$ac_file.in ;;
27224   esac
27225
27226   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27227 echo "$as_me: creating $ac_file" >&6;}
27228
27229   # First look for the input files in the build tree, otherwise in the
27230   # src tree.
27231   ac_file_inputs=`IFS=:
27232     for f in $ac_file_in; do
27233       case $f in
27234       -) echo $tmp/stdin ;;
27235       [\\/$]*)
27236          # Absolute (can't be DOS-style, as IFS=:)
27237          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27238 echo "$as_me: error: cannot find input file: $f" >&2;}
27239    { (exit 1); exit 1; }; }
27240          # Do quote $f, to prevent DOS paths from being IFS'd.
27241          echo "$f";;
27242       *) # Relative
27243          if test -f "$f"; then
27244            # Build tree
27245            echo "$f"
27246          elif test -f "$srcdir/$f"; then
27247            # Source tree
27248            echo "$srcdir/$f"
27249          else
27250            # /dev/null tree
27251            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27252 echo "$as_me: error: cannot find input file: $f" >&2;}
27253    { (exit 1); exit 1; }; }
27254          fi;;
27255       esac
27256     done` || { (exit 1); exit 1; }
27257   # Remove the trailing spaces.
27258   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27259
27260 _ACEOF
27261
27262 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27263 # `conftest.undefs', that substitutes the proper values into
27264 # config.h.in to produce config.h.  The first handles `#define'
27265 # templates, and the second `#undef' templates.
27266 # And first: Protect against being on the right side of a sed subst in
27267 # config.status.  Protect against being in an unquoted here document
27268 # in config.status.
27269 rm -f conftest.defines conftest.undefs
27270 # Using a here document instead of a string reduces the quoting nightmare.
27271 # Putting comments in sed scripts is not portable.
27272 #
27273 # `end' is used to avoid that the second main sed command (meant for
27274 # 0-ary CPP macros) applies to n-ary macro definitions.
27275 # See the Autoconf documentation for `clear'.
27276 cat >confdef2sed.sed <<\_ACEOF
27277 s/[\\&,]/\\&/g
27278 s,[\\$`],\\&,g
27279 t clear
27280 : clear
27281 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27282 t end
27283 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27284 : end
27285 _ACEOF
27286 # If some macros were called several times there might be several times
27287 # the same #defines, which is useless.  Nevertheless, we may not want to
27288 # sort them, since we want the *last* AC-DEFINE to be honored.
27289 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27290 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27291 rm -f confdef2sed.sed
27292
27293 # This sed command replaces #undef with comments.  This is necessary, for
27294 # example, in the case of _POSIX_SOURCE, which is predefined and required
27295 # on some systems where configure will not decide to define it.
27296 cat >>conftest.undefs <<\_ACEOF
27297 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27298 _ACEOF
27299
27300 # Break up conftest.defines because some shells have a limit on the size
27301 # of here documents, and old seds have small limits too (100 cmds).
27302 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27303 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27304 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27305 echo '  :' >>$CONFIG_STATUS
27306 rm -f conftest.tail
27307 while grep . conftest.defines >/dev/null
27308 do
27309   # Write a limited-size here document to $tmp/defines.sed.
27310   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27311   # Speed up: don't consider the non `#define' lines.
27312   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27313   # Work around the forget-to-reset-the-flag bug.
27314   echo 't clr' >>$CONFIG_STATUS
27315   echo ': clr' >>$CONFIG_STATUS
27316   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27317   echo 'CEOF
27318   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27319   rm -f $tmp/in
27320   mv $tmp/out $tmp/in
27321 ' >>$CONFIG_STATUS
27322   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27323   rm -f conftest.defines
27324   mv conftest.tail conftest.defines
27325 done
27326 rm -f conftest.defines
27327 echo '  fi # grep' >>$CONFIG_STATUS
27328 echo >>$CONFIG_STATUS
27329
27330 # Break up conftest.undefs because some shells have a limit on the size
27331 # of here documents, and old seds have small limits too (100 cmds).
27332 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27333 rm -f conftest.tail
27334 while grep . conftest.undefs >/dev/null
27335 do
27336   # Write a limited-size here document to $tmp/undefs.sed.
27337   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27338   # Speed up: don't consider the non `#undef'
27339   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27340   # Work around the forget-to-reset-the-flag bug.
27341   echo 't clr' >>$CONFIG_STATUS
27342   echo ': clr' >>$CONFIG_STATUS
27343   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27344   echo 'CEOF
27345   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27346   rm -f $tmp/in
27347   mv $tmp/out $tmp/in
27348 ' >>$CONFIG_STATUS
27349   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27350   rm -f conftest.undefs
27351   mv conftest.tail conftest.undefs
27352 done
27353 rm -f conftest.undefs
27354
27355 cat >>$CONFIG_STATUS <<\_ACEOF
27356   # Let's still pretend it is `configure' which instantiates (i.e., don't
27357   # use $as_me), people would be surprised to read:
27358   #    /* config.h.  Generated by config.status.  */
27359   if test x"$ac_file" = x-; then
27360     echo "/* Generated by configure.  */" >$tmp/config.h
27361   else
27362     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27363   fi
27364   cat $tmp/in >>$tmp/config.h
27365   rm -f $tmp/in
27366   if test x"$ac_file" != x-; then
27367     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27368       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27369 echo "$as_me: $ac_file is unchanged" >&6;}
27370     else
27371       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27372 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27373          X"$ac_file" : 'X\(//\)[^/]' \| \
27374          X"$ac_file" : 'X\(//\)$' \| \
27375          X"$ac_file" : 'X\(/\)' \| \
27376          .     : '\(.\)' 2>/dev/null ||
27377 echo X"$ac_file" |
27378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27379           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27380           /^X\(\/\/\)$/{ s//\1/; q; }
27381           /^X\(\/\).*/{ s//\1/; q; }
27382           s/.*/./; q'`
27383       { if $as_mkdir_p; then
27384     mkdir -p "$ac_dir"
27385   else
27386     as_dir="$ac_dir"
27387     as_dirs=
27388     while test ! -d "$as_dir"; do
27389       as_dirs="$as_dir $as_dirs"
27390       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27392          X"$as_dir" : 'X\(//\)[^/]' \| \
27393          X"$as_dir" : 'X\(//\)$' \| \
27394          X"$as_dir" : 'X\(/\)' \| \
27395          .     : '\(.\)' 2>/dev/null ||
27396 echo X"$as_dir" |
27397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27398           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27399           /^X\(\/\/\)$/{ s//\1/; q; }
27400           /^X\(\/\).*/{ s//\1/; q; }
27401           s/.*/./; q'`
27402     done
27403     test ! -n "$as_dirs" || mkdir $as_dirs
27404   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27405 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27406    { (exit 1); exit 1; }; }; }
27407
27408       rm -f $ac_file
27409       mv $tmp/config.h $ac_file
27410     fi
27411   else
27412     cat $tmp/config.h
27413     rm -f $tmp/config.h
27414   fi
27415 # Compute $ac_file's index in $config_headers.
27416 _am_stamp_count=1
27417 for _am_header in $config_headers :; do
27418   case $_am_header in
27419     $ac_file | $ac_file:* )
27420       break ;;
27421     * )
27422       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27423   esac
27424 done
27425 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27426 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27427          X$ac_file : 'X\(//\)[^/]' \| \
27428          X$ac_file : 'X\(//\)$' \| \
27429          X$ac_file : 'X\(/\)' \| \
27430          .     : '\(.\)' 2>/dev/null ||
27431 echo X$ac_file |
27432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27433           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27434           /^X\(\/\/\)$/{ s//\1/; q; }
27435           /^X\(\/\).*/{ s//\1/; q; }
27436           s/.*/./; q'`/stamp-h$_am_stamp_count
27437 done
27438 _ACEOF
27439 cat >>$CONFIG_STATUS <<\_ACEOF
27440
27441 #
27442 # CONFIG_LINKS section.
27443 #
27444
27445 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27446   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27447   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27448
27449   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27450 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27451
27452   if test ! -r $srcdir/$ac_source; then
27453     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27454 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27455    { (exit 1); exit 1; }; }
27456   fi
27457   rm -f $ac_dest
27458
27459   # Make relative symlinks.
27460   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27461 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27462          X"$ac_dest" : 'X\(//\)[^/]' \| \
27463          X"$ac_dest" : 'X\(//\)$' \| \
27464          X"$ac_dest" : 'X\(/\)' \| \
27465          .     : '\(.\)' 2>/dev/null ||
27466 echo X"$ac_dest" |
27467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27469           /^X\(\/\/\)$/{ s//\1/; q; }
27470           /^X\(\/\).*/{ s//\1/; q; }
27471           s/.*/./; q'`
27472   { if $as_mkdir_p; then
27473     mkdir -p "$ac_dest_dir"
27474   else
27475     as_dir="$ac_dest_dir"
27476     as_dirs=
27477     while test ! -d "$as_dir"; do
27478       as_dirs="$as_dir $as_dirs"
27479       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27481          X"$as_dir" : 'X\(//\)[^/]' \| \
27482          X"$as_dir" : 'X\(//\)$' \| \
27483          X"$as_dir" : 'X\(/\)' \| \
27484          .     : '\(.\)' 2>/dev/null ||
27485 echo X"$as_dir" |
27486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27488           /^X\(\/\/\)$/{ s//\1/; q; }
27489           /^X\(\/\).*/{ s//\1/; q; }
27490           s/.*/./; q'`
27491     done
27492     test ! -n "$as_dirs" || mkdir $as_dirs
27493   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27494 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27495    { (exit 1); exit 1; }; }; }
27496
27497   ac_builddir=.
27498
27499 if test "$ac_dest_dir" != .; then
27500   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27501   # A "../" for each directory in $ac_dir_suffix.
27502   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27503 else
27504   ac_dir_suffix= ac_top_builddir=
27505 fi
27506
27507 case $srcdir in
27508   .)  # No --srcdir option.  We are building in place.
27509     ac_srcdir=.
27510     if test -z "$ac_top_builddir"; then
27511        ac_top_srcdir=.
27512     else
27513        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27514     fi ;;
27515   [\\/]* | ?:[\\/]* )  # Absolute path.
27516     ac_srcdir=$srcdir$ac_dir_suffix;
27517     ac_top_srcdir=$srcdir ;;
27518   *) # Relative path.
27519     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27520     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27521 esac
27522
27523 # Do not use `cd foo && pwd` to compute absolute paths, because
27524 # the directories may not exist.
27525 case `pwd` in
27526 .) ac_abs_builddir="$ac_dest_dir";;
27527 *)
27528   case "$ac_dest_dir" in
27529   .) ac_abs_builddir=`pwd`;;
27530   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27531   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27532   esac;;
27533 esac
27534 case $ac_abs_builddir in
27535 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27536 *)
27537   case ${ac_top_builddir}. in
27538   .) ac_abs_top_builddir=$ac_abs_builddir;;
27539   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27540   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27541   esac;;
27542 esac
27543 case $ac_abs_builddir in
27544 .) ac_abs_srcdir=$ac_srcdir;;
27545 *)
27546   case $ac_srcdir in
27547   .) ac_abs_srcdir=$ac_abs_builddir;;
27548   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27549   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27550   esac;;
27551 esac
27552 case $ac_abs_builddir in
27553 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27554 *)
27555   case $ac_top_srcdir in
27556   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27557   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27558   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27559   esac;;
27560 esac
27561
27562
27563   case $srcdir in
27564   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27565       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27566   esac
27567
27568   # Try a symlink, then a hard link, then a copy.
27569   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27570     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27571     cp -p $srcdir/$ac_source $ac_dest ||
27572     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27573 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27574    { (exit 1); exit 1; }; }
27575 done
27576 _ACEOF
27577 cat >>$CONFIG_STATUS <<\_ACEOF
27578
27579 #
27580 # CONFIG_COMMANDS section.
27581 #
27582 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27583   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27584   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27585   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27586 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27587          X"$ac_dest" : 'X\(//\)[^/]' \| \
27588          X"$ac_dest" : 'X\(//\)$' \| \
27589          X"$ac_dest" : 'X\(/\)' \| \
27590          .     : '\(.\)' 2>/dev/null ||
27591 echo X"$ac_dest" |
27592     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27593           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27594           /^X\(\/\/\)$/{ s//\1/; q; }
27595           /^X\(\/\).*/{ s//\1/; q; }
27596           s/.*/./; q'`
27597   { if $as_mkdir_p; then
27598     mkdir -p "$ac_dir"
27599   else
27600     as_dir="$ac_dir"
27601     as_dirs=
27602     while test ! -d "$as_dir"; do
27603       as_dirs="$as_dir $as_dirs"
27604       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27606          X"$as_dir" : 'X\(//\)[^/]' \| \
27607          X"$as_dir" : 'X\(//\)$' \| \
27608          X"$as_dir" : 'X\(/\)' \| \
27609          .     : '\(.\)' 2>/dev/null ||
27610 echo X"$as_dir" |
27611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27612           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27613           /^X\(\/\/\)$/{ s//\1/; q; }
27614           /^X\(\/\).*/{ s//\1/; q; }
27615           s/.*/./; q'`
27616     done
27617     test ! -n "$as_dirs" || mkdir $as_dirs
27618   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27620    { (exit 1); exit 1; }; }; }
27621
27622   ac_builddir=.
27623
27624 if test "$ac_dir" != .; then
27625   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27626   # A "../" for each directory in $ac_dir_suffix.
27627   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27628 else
27629   ac_dir_suffix= ac_top_builddir=
27630 fi
27631
27632 case $srcdir in
27633   .)  # No --srcdir option.  We are building in place.
27634     ac_srcdir=.
27635     if test -z "$ac_top_builddir"; then
27636        ac_top_srcdir=.
27637     else
27638        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27639     fi ;;
27640   [\\/]* | ?:[\\/]* )  # Absolute path.
27641     ac_srcdir=$srcdir$ac_dir_suffix;
27642     ac_top_srcdir=$srcdir ;;
27643   *) # Relative path.
27644     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27645     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27646 esac
27647
27648 # Do not use `cd foo && pwd` to compute absolute paths, because
27649 # the directories may not exist.
27650 case `pwd` in
27651 .) ac_abs_builddir="$ac_dir";;
27652 *)
27653   case "$ac_dir" in
27654   .) ac_abs_builddir=`pwd`;;
27655   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27656   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27657   esac;;
27658 esac
27659 case $ac_abs_builddir in
27660 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27661 *)
27662   case ${ac_top_builddir}. in
27663   .) ac_abs_top_builddir=$ac_abs_builddir;;
27664   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27665   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27666   esac;;
27667 esac
27668 case $ac_abs_builddir in
27669 .) ac_abs_srcdir=$ac_srcdir;;
27670 *)
27671   case $ac_srcdir in
27672   .) ac_abs_srcdir=$ac_abs_builddir;;
27673   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27674   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27675   esac;;
27676 esac
27677 case $ac_abs_builddir in
27678 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27679 *)
27680   case $ac_top_srcdir in
27681   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27682   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27683   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27684   esac;;
27685 esac
27686
27687
27688   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27689 echo "$as_me: executing $ac_dest commands" >&6;}
27690   case $ac_dest in
27691     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27692   # Strip MF so we end up with the name of the file.
27693   mf=`echo "$mf" | sed -e 's/:.*$//'`
27694   # Check whether this is an Automake generated Makefile or not.
27695   # We used to match only the files named `Makefile.in', but
27696   # some people rename them; so instead we look at the file content.
27697   # Grep'ing the first line is not enough: some people post-process
27698   # each Makefile.in and add a new line on top of each file to say so.
27699   # So let's grep whole file.
27700   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27701     dirpart=`(dirname "$mf") 2>/dev/null ||
27702 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27703          X"$mf" : 'X\(//\)[^/]' \| \
27704          X"$mf" : 'X\(//\)$' \| \
27705          X"$mf" : 'X\(/\)' \| \
27706          .     : '\(.\)' 2>/dev/null ||
27707 echo X"$mf" |
27708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27709           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27710           /^X\(\/\/\)$/{ s//\1/; q; }
27711           /^X\(\/\).*/{ s//\1/; q; }
27712           s/.*/./; q'`
27713   else
27714     continue
27715   fi
27716   # Extract the definition of DEPDIR, am__include, and am__quote
27717   # from the Makefile without running `make'.
27718   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27719   test -z "$DEPDIR" && continue
27720   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27721   test -z "am__include" && continue
27722   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27723   # When using ansi2knr, U may be empty or an underscore; expand it
27724   U=`sed -n 's/^U = //p' < "$mf"`
27725   # Find all dependency output files, they are included files with
27726   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27727   # simplest approach to changing $(DEPDIR) to its actual value in the
27728   # expansion.
27729   for file in `sed -n "
27730     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27731        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27732     # Make sure the directory exists.
27733     test -f "$dirpart/$file" && continue
27734     fdir=`(dirname "$file") 2>/dev/null ||
27735 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27736          X"$file" : 'X\(//\)[^/]' \| \
27737          X"$file" : 'X\(//\)$' \| \
27738          X"$file" : 'X\(/\)' \| \
27739          .     : '\(.\)' 2>/dev/null ||
27740 echo X"$file" |
27741     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27742           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27743           /^X\(\/\/\)$/{ s//\1/; q; }
27744           /^X\(\/\).*/{ s//\1/; q; }
27745           s/.*/./; q'`
27746     { if $as_mkdir_p; then
27747     mkdir -p $dirpart/$fdir
27748   else
27749     as_dir=$dirpart/$fdir
27750     as_dirs=
27751     while test ! -d "$as_dir"; do
27752       as_dirs="$as_dir $as_dirs"
27753       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27755          X"$as_dir" : 'X\(//\)[^/]' \| \
27756          X"$as_dir" : 'X\(//\)$' \| \
27757          X"$as_dir" : 'X\(/\)' \| \
27758          .     : '\(.\)' 2>/dev/null ||
27759 echo X"$as_dir" |
27760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27761           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27762           /^X\(\/\/\)$/{ s//\1/; q; }
27763           /^X\(\/\).*/{ s//\1/; q; }
27764           s/.*/./; q'`
27765     done
27766     test ! -n "$as_dirs" || mkdir $as_dirs
27767   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27768 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27769    { (exit 1); exit 1; }; }; }
27770
27771     # echo "creating $dirpart/$file"
27772     echo '# dummy' > "$dirpart/$file"
27773   done
27774 done
27775  ;;
27776     default )
27777
27778 sed -e '/^NAT_FILE[     ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
27779 mv -f Makefile.tmp Makefile
27780
27781
27782 case x$CONFIG_HEADERS in
27783 xconfig.h:config.in)
27784 echo > stamp-h ;;
27785 esac
27786  ;;
27787   esac
27788 done
27789 _ACEOF
27790
27791 cat >>$CONFIG_STATUS <<\_ACEOF
27792
27793 { (exit 0); exit 0; }
27794 _ACEOF
27795 chmod +x $CONFIG_STATUS
27796 ac_clean_files=$ac_clean_files_save
27797
27798
27799 # configure is writing to config.log, and then calls config.status.
27800 # config.status does its own redirection, appending to config.log.
27801 # Unfortunately, on DOS this fails, as config.log is still kept open
27802 # by configure, so config.status won't be able to write to it; its
27803 # output is simply discarded.  So we exec the FD to /dev/null,
27804 # effectively closing config.log, so it can be properly (re)opened and
27805 # appended to by config.status.  When coming back to configure, we
27806 # need to make the FD available again.
27807 if test "$no_create" != yes; then
27808   ac_cs_success=:
27809   ac_config_status_args=
27810   test "$silent" = yes &&
27811     ac_config_status_args="$ac_config_status_args --quiet"
27812   exec 5>/dev/null
27813   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27814   exec 5>>config.log
27815   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27816   # would make configure fail if this is the last instruction.
27817   $ac_cs_success || { (exit 1); exit 1; }
27818 fi
27819
27820 #
27821 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
27822 #
27823 if test "$no_recursion" != yes; then
27824
27825   # Remove --cache-file and --srcdir arguments so they do not pile up.
27826   ac_sub_configure_args=
27827   ac_prev=
27828   eval "set x $ac_configure_args"
27829   shift
27830   for ac_arg
27831   do
27832     if test -n "$ac_prev"; then
27833       ac_prev=
27834       continue
27835     fi
27836     case $ac_arg in
27837     -cache-file | --cache-file | --cache-fil | --cache-fi \
27838     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27839       ac_prev=cache_file ;;
27840     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27841     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27842     | --c=*)
27843       ;;
27844     --config-cache | -C)
27845       ;;
27846     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27847       ac_prev=srcdir ;;
27848     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27849       ;;
27850     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27851       ac_prev=prefix ;;
27852     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27853       ;;
27854     *)
27855       case $ac_arg in
27856       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27857       esac
27858       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27859     esac
27860   done
27861
27862   # Always prepend --prefix to ensure using the same prefix
27863   # in subdir configurations.
27864   ac_arg="--prefix=$prefix"
27865   case $ac_arg in
27866   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27867   esac
27868   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
27869
27870   ac_popdir=`pwd`
27871   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27872
27873     # Do not complain, so a configure script can configure whichever
27874     # parts of a large source tree are present.
27875     test -d "$srcdir/$ac_dir" || continue
27876
27877     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27878 echo "$as_me: configuring in $ac_dir" >&6;}
27879     { if $as_mkdir_p; then
27880     mkdir -p "$ac_dir"
27881   else
27882     as_dir="$ac_dir"
27883     as_dirs=
27884     while test ! -d "$as_dir"; do
27885       as_dirs="$as_dir $as_dirs"
27886       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27887 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27888          X"$as_dir" : 'X\(//\)[^/]' \| \
27889          X"$as_dir" : 'X\(//\)$' \| \
27890          X"$as_dir" : 'X\(/\)' \| \
27891          .     : '\(.\)' 2>/dev/null ||
27892 echo X"$as_dir" |
27893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27894           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27895           /^X\(\/\/\)$/{ s//\1/; q; }
27896           /^X\(\/\).*/{ s//\1/; q; }
27897           s/.*/./; q'`
27898     done
27899     test ! -n "$as_dirs" || mkdir $as_dirs
27900   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27901 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27902    { (exit 1); exit 1; }; }; }
27903
27904     ac_builddir=.
27905
27906 if test "$ac_dir" != .; then
27907   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27908   # A "../" for each directory in $ac_dir_suffix.
27909   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27910 else
27911   ac_dir_suffix= ac_top_builddir=
27912 fi
27913
27914 case $srcdir in
27915   .)  # No --srcdir option.  We are building in place.
27916     ac_srcdir=.
27917     if test -z "$ac_top_builddir"; then
27918        ac_top_srcdir=.
27919     else
27920        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27921     fi ;;
27922   [\\/]* | ?:[\\/]* )  # Absolute path.
27923     ac_srcdir=$srcdir$ac_dir_suffix;
27924     ac_top_srcdir=$srcdir ;;
27925   *) # Relative path.
27926     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27927     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27928 esac
27929
27930 # Do not use `cd foo && pwd` to compute absolute paths, because
27931 # the directories may not exist.
27932 case `pwd` in
27933 .) ac_abs_builddir="$ac_dir";;
27934 *)
27935   case "$ac_dir" in
27936   .) ac_abs_builddir=`pwd`;;
27937   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27938   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27939   esac;;
27940 esac
27941 case $ac_abs_builddir in
27942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27943 *)
27944   case ${ac_top_builddir}. in
27945   .) ac_abs_top_builddir=$ac_abs_builddir;;
27946   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27947   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27948   esac;;
27949 esac
27950 case $ac_abs_builddir in
27951 .) ac_abs_srcdir=$ac_srcdir;;
27952 *)
27953   case $ac_srcdir in
27954   .) ac_abs_srcdir=$ac_abs_builddir;;
27955   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27956   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27957   esac;;
27958 esac
27959 case $ac_abs_builddir in
27960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27961 *)
27962   case $ac_top_srcdir in
27963   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27964   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27965   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27966   esac;;
27967 esac
27968
27969
27970     cd "$ac_dir"
27971
27972     # Check for guested configure; otherwise get Cygnus style configure.
27973     if test -f "$ac_srcdir/configure.gnu"; then
27974       ac_sub_configure=$ac_srcdir/configure.gnu
27975     elif test -f "$ac_srcdir/configure"; then
27976       ac_sub_configure=$ac_srcdir/configure
27977     elif test -f "$ac_srcdir/configure.in"; then
27978       # This should be Cygnus configure.
27979       ac_sub_configure=$ac_aux_dir/configure
27980     else
27981       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27983       ac_sub_configure=
27984     fi
27985
27986     # The recursion is here.
27987     if test -n "$ac_sub_configure"; then
27988       # Make the cache file name correct relative to the subdirectory.
27989       case $cache_file in
27990       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27991       *) # Relative path.
27992         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27993       esac
27994
27995       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27996 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27997       # The eval makes quoting arguments work.
27998       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27999            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28000         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28001 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28002    { (exit 1); exit 1; }; }
28003     fi
28004
28005     cd "$ac_popdir"
28006   done
28007 fi
28008
28009
28010 exit 0