* config/tcl.m4 (SC_PATH_TCLCONFIG): Don't exit 0 if tclconfig fails.
[external/binutils.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 gl_header_list=
313 ac_subdirs_all="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all="$ac_subdirs_all gdbtk"
315 ac_subdirs_all="$ac_subdirs_all multi-ice"
316 ac_subdirs_all="$ac_subdirs_all gdbserver"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE 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 AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT PYTHON_CFLAGS ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files='host_makefile_frag'
319 ac_pwd=`pwd`
320
321 # Initialize some variables set by options.
322 ac_init_help=
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
326 cache_file=/dev/null
327 exec_prefix=NONE
328 no_create=
329 no_recursion=
330 prefix=NONE
331 program_prefix=NONE
332 program_suffix=NONE
333 program_transform_name=s,x,x,
334 silent=
335 site=
336 srcdir=
337 verbose=
338 x_includes=NONE
339 x_libraries=NONE
340
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
358
359 ac_prev=
360 for ac_option
361 do
362   # If the previous option needs an argument, assign it.
363   if test -n "$ac_prev"; then
364     eval "$ac_prev=\$ac_option"
365     ac_prev=
366     continue
367   fi
368
369   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
371   # Accept the important Cygnus configure options, so we can diagnose typos.
372
373   case $ac_option in
374
375   -bindir | --bindir | --bindi | --bind | --bin | --bi)
376     ac_prev=bindir ;;
377   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378     bindir=$ac_optarg ;;
379
380   -build | --build | --buil | --bui | --bu)
381     ac_prev=build_alias ;;
382   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383     build_alias=$ac_optarg ;;
384
385   -cache-file | --cache-file | --cache-fil | --cache-fi \
386   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387     ac_prev=cache_file ;;
388   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390     cache_file=$ac_optarg ;;
391
392   --config-cache | -C)
393     cache_file=config.cache ;;
394
395   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396     ac_prev=datadir ;;
397   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398   | --da=*)
399     datadir=$ac_optarg ;;
400
401   -disable-* | --disable-*)
402     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403     # Reject names that are not valid shell variable names.
404     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406    { (exit 1); exit 1; }; }
407     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408     eval "enable_$ac_feature=no" ;;
409
410   -enable-* | --enable-*)
411     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412     # Reject names that are not valid shell variable names.
413     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415    { (exit 1); exit 1; }; }
416     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417     case $ac_option in
418       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419       *) ac_optarg=yes ;;
420     esac
421     eval "enable_$ac_feature='$ac_optarg'" ;;
422
423   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425   | --exec | --exe | --ex)
426     ac_prev=exec_prefix ;;
427   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429   | --exec=* | --exe=* | --ex=*)
430     exec_prefix=$ac_optarg ;;
431
432   -gas | --gas | --ga | --g)
433     # Obsolete; use --with-gas.
434     with_gas=yes ;;
435
436   -help | --help | --hel | --he | -h)
437     ac_init_help=long ;;
438   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439     ac_init_help=recursive ;;
440   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441     ac_init_help=short ;;
442
443   -host | --host | --hos | --ho)
444     ac_prev=host_alias ;;
445   -host=* | --host=* | --hos=* | --ho=*)
446     host_alias=$ac_optarg ;;
447
448   -includedir | --includedir | --includedi | --included | --include \
449   | --includ | --inclu | --incl | --inc)
450     ac_prev=includedir ;;
451   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452   | --includ=* | --inclu=* | --incl=* | --inc=*)
453     includedir=$ac_optarg ;;
454
455   -infodir | --infodir | --infodi | --infod | --info | --inf)
456     ac_prev=infodir ;;
457   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458     infodir=$ac_optarg ;;
459
460   -libdir | --libdir | --libdi | --libd)
461     ac_prev=libdir ;;
462   -libdir=* | --libdir=* | --libdi=* | --libd=*)
463     libdir=$ac_optarg ;;
464
465   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466   | --libexe | --libex | --libe)
467     ac_prev=libexecdir ;;
468   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469   | --libexe=* | --libex=* | --libe=*)
470     libexecdir=$ac_optarg ;;
471
472   -localstatedir | --localstatedir | --localstatedi | --localstated \
473   | --localstate | --localstat | --localsta | --localst \
474   | --locals | --local | --loca | --loc | --lo)
475     ac_prev=localstatedir ;;
476   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479     localstatedir=$ac_optarg ;;
480
481   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482     ac_prev=mandir ;;
483   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484     mandir=$ac_optarg ;;
485
486   -nfp | --nfp | --nf)
487     # Obsolete; use --without-fp.
488     with_fp=no ;;
489
490   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491   | --no-cr | --no-c | -n)
492     no_create=yes ;;
493
494   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496     no_recursion=yes ;;
497
498   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500   | --oldin | --oldi | --old | --ol | --o)
501     ac_prev=oldincludedir ;;
502   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505     oldincludedir=$ac_optarg ;;
506
507   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508     ac_prev=prefix ;;
509   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510     prefix=$ac_optarg ;;
511
512   -program-prefix | --program-prefix | --program-prefi | --program-pref \
513   | --program-pre | --program-pr | --program-p)
514     ac_prev=program_prefix ;;
515   -program-prefix=* | --program-prefix=* | --program-prefi=* \
516   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517     program_prefix=$ac_optarg ;;
518
519   -program-suffix | --program-suffix | --program-suffi | --program-suff \
520   | --program-suf | --program-su | --program-s)
521     ac_prev=program_suffix ;;
522   -program-suffix=* | --program-suffix=* | --program-suffi=* \
523   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524     program_suffix=$ac_optarg ;;
525
526   -program-transform-name | --program-transform-name \
527   | --program-transform-nam | --program-transform-na \
528   | --program-transform-n | --program-transform- \
529   | --program-transform | --program-transfor \
530   | --program-transfo | --program-transf \
531   | --program-trans | --program-tran \
532   | --progr-tra | --program-tr | --program-t)
533     ac_prev=program_transform_name ;;
534   -program-transform-name=* | --program-transform-name=* \
535   | --program-transform-nam=* | --program-transform-na=* \
536   | --program-transform-n=* | --program-transform-=* \
537   | --program-transform=* | --program-transfor=* \
538   | --program-transfo=* | --program-transf=* \
539   | --program-trans=* | --program-tran=* \
540   | --progr-tra=* | --program-tr=* | --program-t=*)
541     program_transform_name=$ac_optarg ;;
542
543   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544   | -silent | --silent | --silen | --sile | --sil)
545     silent=yes ;;
546
547   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548     ac_prev=sbindir ;;
549   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550   | --sbi=* | --sb=*)
551     sbindir=$ac_optarg ;;
552
553   -sharedstatedir | --sharedstatedir | --sharedstatedi \
554   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555   | --sharedst | --shareds | --shared | --share | --shar \
556   | --sha | --sh)
557     ac_prev=sharedstatedir ;;
558   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561   | --sha=* | --sh=*)
562     sharedstatedir=$ac_optarg ;;
563
564   -site | --site | --sit)
565     ac_prev=site ;;
566   -site=* | --site=* | --sit=*)
567     site=$ac_optarg ;;
568
569   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570     ac_prev=srcdir ;;
571   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572     srcdir=$ac_optarg ;;
573
574   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575   | --syscon | --sysco | --sysc | --sys | --sy)
576     ac_prev=sysconfdir ;;
577   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579     sysconfdir=$ac_optarg ;;
580
581   -target | --target | --targe | --targ | --tar | --ta | --t)
582     ac_prev=target_alias ;;
583   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584     target_alias=$ac_optarg ;;
585
586   -v | -verbose | --verbose | --verbos | --verbo | --verb)
587     verbose=yes ;;
588
589   -version | --version | --versio | --versi | --vers | -V)
590     ac_init_version=: ;;
591
592   -with-* | --with-*)
593     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594     # Reject names that are not valid shell variable names.
595     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596       { echo "$as_me: error: invalid package name: $ac_package" >&2
597    { (exit 1); exit 1; }; }
598     ac_package=`echo $ac_package| sed 's/-/_/g'`
599     case $ac_option in
600       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601       *) ac_optarg=yes ;;
602     esac
603     eval "with_$ac_package='$ac_optarg'" ;;
604
605   -without-* | --without-*)
606     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607     # Reject names that are not valid shell variable names.
608     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609       { echo "$as_me: error: invalid package name: $ac_package" >&2
610    { (exit 1); exit 1; }; }
611     ac_package=`echo $ac_package | sed 's/-/_/g'`
612     eval "with_$ac_package=no" ;;
613
614   --x)
615     # Obsolete; use --with-x.
616     with_x=yes ;;
617
618   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619   | --x-incl | --x-inc | --x-in | --x-i)
620     ac_prev=x_includes ;;
621   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623     x_includes=$ac_optarg ;;
624
625   -x-libraries | --x-libraries | --x-librarie | --x-librari \
626   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627     ac_prev=x_libraries ;;
628   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630     x_libraries=$ac_optarg ;;
631
632   -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634    { (exit 1); exit 1; }; }
635     ;;
636
637   *=*)
638     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639     # Reject names that are not valid shell variable names.
640     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642    { (exit 1); exit 1; }; }
643     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644     eval "$ac_envvar='$ac_optarg'"
645     export $ac_envvar ;;
646
647   *)
648     # FIXME: should be removed in autoconf 3.0.
649     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653     ;;
654
655   esac
656 done
657
658 if test -n "$ac_prev"; then
659   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660   { echo "$as_me: error: missing argument to $ac_option" >&2
661    { (exit 1); exit 1; }; }
662 fi
663
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
666 do
667   eval ac_val=$`echo $ac_var`
668   case $ac_val in
669     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671    { (exit 1); exit 1; }; };;
672   esac
673 done
674
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677               localstatedir libdir includedir oldincludedir infodir mandir
678 do
679   eval ac_val=$`echo $ac_var`
680   case $ac_val in
681     [\\/$]* | ?:[\\/]* ) ;;
682     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683    { (exit 1); exit 1; }; };;
684   esac
685 done
686
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
690 build=$build_alias
691 host=$host_alias
692 target=$target_alias
693
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696   if test "x$build_alias" = x; then
697     cross_compiling=maybe
698     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699     If a cross compiler is detected then cross compile mode will be used." >&2
700   elif test "x$build_alias" != "x$host_alias"; then
701     cross_compiling=yes
702   fi
703 fi
704
705 ac_tool_prefix=
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708 test "$silent" = yes && exec 6>/dev/null
709
710
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713   ac_srcdir_defaulted=yes
714   # Try the directory containing this script, then its parent.
715   ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717          X"$0" : 'X\(//\)[^/]' \| \
718          X"$0" : 'X\(//\)$' \| \
719          X"$0" : 'X\(/\)' \| \
720          .     : '\(.\)' 2>/dev/null ||
721 echo X"$0" |
722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724           /^X\(\/\/\)$/{ s//\1/; q; }
725           /^X\(\/\).*/{ s//\1/; q; }
726           s/.*/./; q'`
727   srcdir=$ac_confdir
728   if test ! -r $srcdir/$ac_unique_file; then
729     srcdir=..
730   fi
731 else
732   ac_srcdir_defaulted=no
733 fi
734 if test ! -r $srcdir/$ac_unique_file; then
735   if test "$ac_srcdir_defaulted" = yes; then
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737    { (exit 1); exit 1; }; }
738   else
739     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740    { (exit 1); exit 1; }; }
741   fi
742 fi
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745    { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
760 ac_env_CC_value=$CC
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784   # Omit some internal or obsolete options to make the list less imposing.
785   # This message is too long to be a string in the A/UX 3.1 sh.
786   cat <<_ACEOF
787 \`configure' configures this package to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE.  See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797   -h, --help              display this help and exit
798       --help=short        display options specific to this package
799       --help=recursive    display the short help of all the included packages
800   -V, --version           display version information and exit
801   -q, --quiet, --silent   do not print \`checking...' messages
802       --cache-file=FILE   cache test results in FILE [disabled]
803   -C, --config-cache      alias for \`--cache-file=config.cache'
804   -n, --no-create         do not create output files
805       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809   cat <<_ACEOF
810 Installation directories:
811   --prefix=PREFIX         install architecture-independent files in PREFIX
812                           [$ac_default_prefix]
813   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
814                           [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824   --bindir=DIR           user executables [EPREFIX/bin]
825   --sbindir=DIR          system admin executables [EPREFIX/sbin]
826   --libexecdir=DIR       program executables [EPREFIX/libexec]
827   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
828   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
829   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
830   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
831   --libdir=DIR           object code libraries [EPREFIX/lib]
832   --includedir=DIR       C header files [PREFIX/include]
833   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
834   --infodir=DIR          info documentation [PREFIX/info]
835   --mandir=DIR           man documentation [PREFIX/man]
836 _ACEOF
837
838   cat <<\_ACEOF
839
840 Program names:
841   --program-prefix=PREFIX            prepend PREFIX to installed program names
842   --program-suffix=SUFFIX            append SUFFIX to installed program names
843   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
844
845 X features:
846   --x-includes=DIR    X include files are in DIR
847   --x-libraries=DIR   X library files are in DIR
848
849 System types:
850   --build=BUILD     configure for building on BUILD [guessed]
851   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852   --target=TARGET   configure for building compilers for TARGET [HOST]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --enable-maintainer-mode  enable make rules and dependencies not useful
864                           (and sometimes confusing) to the casual installer
865   --disable-dependency-tracking  speeds up one-time build
866   --enable-dependency-tracking   do not reject slow dependency extractors
867   --enable-targets        alternative target configurations
868   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
869   --disable-gdbcli        disable command-line interface (CLI)
870   --disable-gdbmi         disable machine-interface (MI)
871   --enable-tui            enable full-screen terminal user interface (TUI)
872   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
873   --enable-profiling      enable profiling of GDB
874   --disable-rpath         do not hardcode runtime library paths
875   --enable-werror    treat compile warnings as errors
876   --enable-build-warnings Enable build-time compiler warnings if gcc is used
877   --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
878   --enable-sim            Link gdb with simulator
879   --enable-multi-ice      build the multi-ice-gdb-server
880
881 Optional Packages:
882   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
883   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
884   --with-separate-debug-dir=path   Look for global separate debug info in this path LIBDIR/debug
885   --with-libunwind            Use libunwind frame unwinding support
886   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
887   --with-bugurl=URL       Direct users to URL to report a bug
888   --with-system-readline  use installed readline library
889   --with-expat            include expat support (auto/yes/no)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
892   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
893   --with-python           include python support (auto/yes/no/<path>)
894   --without-included-regex don't use included regex; this is the default
895                           on systems with version 2 of the GNU C library
896                           (use with caution on other system)
897   --with-sysroot=DIR Search for usr/lib et al within DIR.
898   --with-system-gdbinit=file       Automatically load a system-wide gdbinit file
899   --with-tcl              directory containing tcl configuration (tclConfig.sh)
900   --with-tk               directory containing tk configuration (tkConfig.sh)
901   --with-x                use the X Window System
902   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
903
904 Some influential environment variables:
905   CC          C compiler command
906   CFLAGS      C compiler flags
907   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
908               nonstandard directory <lib dir>
909   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
910               headers in a nonstandard directory <include dir>
911   CPP         C preprocessor
912
913 Use these variables to override the choices made by `configure' or to help
914 it to find libraries and programs with nonstandard names/locations.
915
916 _ACEOF
917 fi
918
919 if test "$ac_init_help" = "recursive"; then
920   # If there are subdirs, report their specific --help.
921   ac_popdir=`pwd`
922   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923     test -d $ac_dir || continue
924     ac_builddir=.
925
926 if test "$ac_dir" != .; then
927   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928   # A "../" for each directory in $ac_dir_suffix.
929   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 else
931   ac_dir_suffix= ac_top_builddir=
932 fi
933
934 case $srcdir in
935   .)  # No --srcdir option.  We are building in place.
936     ac_srcdir=.
937     if test -z "$ac_top_builddir"; then
938        ac_top_srcdir=.
939     else
940        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941     fi ;;
942   [\\/]* | ?:[\\/]* )  # Absolute path.
943     ac_srcdir=$srcdir$ac_dir_suffix;
944     ac_top_srcdir=$srcdir ;;
945   *) # Relative path.
946     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947     ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 esac
949
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
952 case `pwd` in
953 .) ac_abs_builddir="$ac_dir";;
954 *)
955   case "$ac_dir" in
956   .) ac_abs_builddir=`pwd`;;
957   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958   *) ac_abs_builddir=`pwd`/"$ac_dir";;
959   esac;;
960 esac
961 case $ac_abs_builddir in
962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 *)
964   case ${ac_top_builddir}. in
965   .) ac_abs_top_builddir=$ac_abs_builddir;;
966   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968   esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_srcdir=$ac_srcdir;;
972 *)
973   case $ac_srcdir in
974   .) ac_abs_srcdir=$ac_abs_builddir;;
975   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977   esac;;
978 esac
979 case $ac_abs_builddir in
980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 *)
982   case $ac_top_srcdir in
983   .) ac_abs_top_srcdir=$ac_abs_builddir;;
984   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
986   esac;;
987 esac
988
989     cd $ac_dir
990     # Check for guested configure; otherwise get Cygnus style configure.
991     if test -f $ac_srcdir/configure.gnu; then
992       echo
993       $SHELL $ac_srcdir/configure.gnu  --help=recursive
994     elif test -f $ac_srcdir/configure; then
995       echo
996       $SHELL $ac_srcdir/configure  --help=recursive
997     elif test -f $ac_srcdir/configure.ac ||
998            test -f $ac_srcdir/configure.in; then
999       echo
1000       $ac_configure --help
1001     else
1002       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003     fi
1004     cd $ac_popdir
1005   done
1006 fi
1007
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1010   cat <<\_ACEOF
1011
1012 Copyright (C) 2003 Free Software Foundation, Inc.
1013 This configure script is free software; the Free Software Foundation
1014 gives unlimited permission to copy, distribute and modify it.
1015 _ACEOF
1016   exit 0
1017 fi
1018 exec 5>config.log
1019 cat >&5 <<_ACEOF
1020 This file contains any messages produced by compilers while
1021 running configure, to aid debugging if configure makes a mistake.
1022
1023 It was created by $as_me, which was
1024 generated by GNU Autoconf 2.59.  Invocation command line was
1025
1026   $ $0 $@
1027
1028 _ACEOF
1029 {
1030 cat <<_ASUNAME
1031 ## --------- ##
1032 ## Platform. ##
1033 ## --------- ##
1034
1035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040
1041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1043
1044 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1045 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1047 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1048 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1049 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1050 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1051
1052 _ASUNAME
1053
1054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055 for as_dir in $PATH
1056 do
1057   IFS=$as_save_IFS
1058   test -z "$as_dir" && as_dir=.
1059   echo "PATH: $as_dir"
1060 done
1061
1062 } >&5
1063
1064 cat >&5 <<_ACEOF
1065
1066
1067 ## ----------- ##
1068 ## Core tests. ##
1069 ## ----------- ##
1070
1071 _ACEOF
1072
1073
1074 # Keep a trace of the command line.
1075 # Strip out --no-create and --no-recursion so they do not pile up.
1076 # Strip out --silent because we don't want to record it for future runs.
1077 # Also quote any args containing shell meta-characters.
1078 # Make two passes to allow for proper duplicate-argument suppression.
1079 ac_configure_args=
1080 ac_configure_args0=
1081 ac_configure_args1=
1082 ac_sep=
1083 ac_must_keep_next=false
1084 for ac_pass in 1 2
1085 do
1086   for ac_arg
1087   do
1088     case $ac_arg in
1089     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091     | -silent | --silent | --silen | --sile | --sil)
1092       continue ;;
1093     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095     esac
1096     case $ac_pass in
1097     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098     2)
1099       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100       if test $ac_must_keep_next = true; then
1101         ac_must_keep_next=false # Got value, back to normal.
1102       else
1103         case $ac_arg in
1104           *=* | --config-cache | -C | -disable-* | --disable-* \
1105           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107           | -with-* | --with-* | -without-* | --without-* | --x)
1108             case "$ac_configure_args0 " in
1109               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110             esac
1111             ;;
1112           -* ) ac_must_keep_next=true ;;
1113         esac
1114       fi
1115       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116       # Get rid of the leading space.
1117       ac_sep=" "
1118       ;;
1119     esac
1120   done
1121 done
1122 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124
1125 # When interrupted or exit'd, cleanup temporary files, and complete
1126 # config.log.  We remove comments because anyway the quotes in there
1127 # would cause problems or look ugly.
1128 # WARNING: Be sure not to use single quotes in there, as some shells,
1129 # such as our DU 5.0 friend, will then `close' the trap.
1130 trap 'exit_status=$?
1131   # Save into config.log some information that might help in debugging.
1132   {
1133     echo
1134
1135     cat <<\_ASBOX
1136 ## ---------------- ##
1137 ## Cache variables. ##
1138 ## ---------------- ##
1139 _ASBOX
1140     echo
1141     # The following way of writing the cache mishandles newlines in values,
1142 {
1143   (set) 2>&1 |
1144     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145     *ac_space=\ *)
1146       sed -n \
1147         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1149       ;;
1150     *)
1151       sed -n \
1152         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1153       ;;
1154     esac;
1155 }
1156     echo
1157
1158     cat <<\_ASBOX
1159 ## ----------------- ##
1160 ## Output variables. ##
1161 ## ----------------- ##
1162 _ASBOX
1163     echo
1164     for ac_var in $ac_subst_vars
1165     do
1166       eval ac_val=$`echo $ac_var`
1167       echo "$ac_var='"'"'$ac_val'"'"'"
1168     done | sort
1169     echo
1170
1171     if test -n "$ac_subst_files"; then
1172       cat <<\_ASBOX
1173 ## ------------- ##
1174 ## Output files. ##
1175 ## ------------- ##
1176 _ASBOX
1177       echo
1178       for ac_var in $ac_subst_files
1179       do
1180         eval ac_val=$`echo $ac_var`
1181         echo "$ac_var='"'"'$ac_val'"'"'"
1182       done | sort
1183       echo
1184     fi
1185
1186     if test -s confdefs.h; then
1187       cat <<\_ASBOX
1188 ## ----------- ##
1189 ## confdefs.h. ##
1190 ## ----------- ##
1191 _ASBOX
1192       echo
1193       sed "/^$/d" confdefs.h | sort
1194       echo
1195     fi
1196     test "$ac_signal" != 0 &&
1197       echo "$as_me: caught signal $ac_signal"
1198     echo "$as_me: exit $exit_status"
1199   } >&5
1200   rm -f core *.core &&
1201   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202     exit $exit_status
1203      ' 0
1204 for ac_signal in 1 2 13 15; do
1205   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206 done
1207 ac_signal=0
1208
1209 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1210 rm -rf conftest* confdefs.h
1211 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212 echo >confdefs.h
1213
1214 # Predefined preprocessor variables.
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_NAME "$PACKAGE_NAME"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_STRING "$PACKAGE_STRING"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238 _ACEOF
1239
1240
1241 # Let the site file select an alternate cache file if it wants to.
1242 # Prefer explicitly selected file to automatically selected ones.
1243 if test -z "$CONFIG_SITE"; then
1244   if test "x$prefix" != xNONE; then
1245     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246   else
1247     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248   fi
1249 fi
1250 for ac_site_file in $CONFIG_SITE; do
1251   if test -r "$ac_site_file"; then
1252     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253 echo "$as_me: loading site script $ac_site_file" >&6;}
1254     sed 's/^/| /' "$ac_site_file" >&5
1255     . "$ac_site_file"
1256   fi
1257 done
1258
1259 if test -r "$cache_file"; then
1260   # Some versions of bash will fail to source /dev/null (special
1261   # files actually), so we avoid doing that.
1262   if test -f "$cache_file"; then
1263     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1264 echo "$as_me: loading cache $cache_file" >&6;}
1265     case $cache_file in
1266       [\\/]* | ?:[\\/]* ) . $cache_file;;
1267       *)                      . ./$cache_file;;
1268     esac
1269   fi
1270 else
1271   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1272 echo "$as_me: creating cache $cache_file" >&6;}
1273   >$cache_file
1274 fi
1275
1276 # Check that the precious variables saved in the cache have kept the same
1277 # value.
1278 ac_cache_corrupted=false
1279 for ac_var in `(set) 2>&1 |
1280                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1281   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282   eval ac_new_set=\$ac_env_${ac_var}_set
1283   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284   eval ac_new_val="\$ac_env_${ac_var}_value"
1285   case $ac_old_set,$ac_new_set in
1286     set,)
1287       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1289       ac_cache_corrupted=: ;;
1290     ,set)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,);;
1295     *)
1296       if test "x$ac_old_val" != "x$ac_new_val"; then
1297         # differences in whitespace do not lead to failure.
1298         ac_old_val_w=`echo x $ac_old_val`
1299         ac_new_val_w=`echo x $ac_new_val`
1300         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1301           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303           ac_cache_corrupted=:
1304         else
1305           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1306 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1307           eval $ac_var=\$ac_old_val
1308         fi
1309         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1310 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1311         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1312 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1313       fi;;
1314   esac
1315   # Pass precious variables to config.status.
1316   if test "$ac_new_set" = set; then
1317     case $ac_new_val in
1318     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1320     *) ac_arg=$ac_var=$ac_new_val ;;
1321     esac
1322     case " $ac_configure_args " in
1323       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1324       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1325     esac
1326   fi
1327 done
1328 if $ac_cache_corrupted; then
1329   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1330 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1331   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1332 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1333   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1334 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1335    { (exit 1); exit 1; }; }
1336 fi
1337
1338 ac_ext=c
1339 ac_cpp='$CPP $CPPFLAGS'
1340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1343
1344
1345 gl_header_list="$gl_header_list stdint.h"
1346 gl_header_list="$gl_header_list wchar.h"
1347 gl_header_list="$gl_header_list string.h"
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368           ac_config_headers="$ac_config_headers config.h:config.in"
1369
1370 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1371 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1372     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1373 if test "${enable_maintainer_mode+set}" = set; then
1374   enableval="$enable_maintainer_mode"
1375   USE_MAINTAINER_MODE=$enableval
1376 else
1377   USE_MAINTAINER_MODE=no
1378 fi;
1379   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1380 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1381
1382
1383 if test $USE_MAINTAINER_MODE = yes; then
1384   MAINTAINER_MODE_TRUE=
1385   MAINTAINER_MODE_FALSE='#'
1386 else
1387   MAINTAINER_MODE_TRUE='#'
1388   MAINTAINER_MODE_FALSE=
1389 fi
1390
1391   MAINT=$MAINTAINER_MODE_TRUE
1392
1393
1394
1395 ac_ext=c
1396 ac_cpp='$CPP $CPPFLAGS'
1397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1400 if test -n "$ac_tool_prefix"; then
1401   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_CC+set}" = set; then
1406   echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408   if test -n "$CC"; then
1409   ac_cv_prog_CC="$CC" # Let the user override the test.
1410 else
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 for as_dir in $PATH
1413 do
1414   IFS=$as_save_IFS
1415   test -z "$as_dir" && as_dir=.
1416   for ac_exec_ext in '' $ac_executable_extensions; do
1417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420     break 2
1421   fi
1422 done
1423 done
1424
1425 fi
1426 fi
1427 CC=$ac_cv_prog_CC
1428 if test -n "$CC"; then
1429   echo "$as_me:$LINENO: result: $CC" >&5
1430 echo "${ECHO_T}$CC" >&6
1431 else
1432   echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1434 fi
1435
1436 fi
1437 if test -z "$ac_cv_prog_CC"; then
1438   ac_ct_CC=$CC
1439   # Extract the first word of "gcc", so it can be a program name with args.
1440 set dummy gcc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444   echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446   if test -n "$ac_ct_CC"; then
1447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1451 do
1452   IFS=$as_save_IFS
1453   test -z "$as_dir" && as_dir=.
1454   for ac_exec_ext in '' $ac_executable_extensions; do
1455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456     ac_cv_prog_ac_ct_CC="gcc"
1457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458     break 2
1459   fi
1460 done
1461 done
1462
1463 fi
1464 fi
1465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466 if test -n "$ac_ct_CC"; then
1467   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1468 echo "${ECHO_T}$ac_ct_CC" >&6
1469 else
1470   echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1472 fi
1473
1474   CC=$ac_ct_CC
1475 else
1476   CC="$ac_cv_prog_CC"
1477 fi
1478
1479 if test -z "$CC"; then
1480   if test -n "$ac_tool_prefix"; then
1481   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1482 set dummy ${ac_tool_prefix}cc; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_CC+set}" = set; then
1486   echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488   if test -n "$CC"; then
1489   ac_cv_prog_CC="$CC" # Let the user override the test.
1490 else
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494   IFS=$as_save_IFS
1495   test -z "$as_dir" && as_dir=.
1496   for ac_exec_ext in '' $ac_executable_extensions; do
1497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498     ac_cv_prog_CC="${ac_tool_prefix}cc"
1499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500     break 2
1501   fi
1502 done
1503 done
1504
1505 fi
1506 fi
1507 CC=$ac_cv_prog_CC
1508 if test -n "$CC"; then
1509   echo "$as_me:$LINENO: result: $CC" >&5
1510 echo "${ECHO_T}$CC" >&6
1511 else
1512   echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1514 fi
1515
1516 fi
1517 if test -z "$ac_cv_prog_CC"; then
1518   ac_ct_CC=$CC
1519   # Extract the first word of "cc", so it can be a program name with args.
1520 set dummy cc; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1524   echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526   if test -n "$ac_ct_CC"; then
1527   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1528 else
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 for as_dir in $PATH
1531 do
1532   IFS=$as_save_IFS
1533   test -z "$as_dir" && as_dir=.
1534   for ac_exec_ext in '' $ac_executable_extensions; do
1535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536     ac_cv_prog_ac_ct_CC="cc"
1537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538     break 2
1539   fi
1540 done
1541 done
1542
1543 fi
1544 fi
1545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1546 if test -n "$ac_ct_CC"; then
1547   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1548 echo "${ECHO_T}$ac_ct_CC" >&6
1549 else
1550   echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1552 fi
1553
1554   CC=$ac_ct_CC
1555 else
1556   CC="$ac_cv_prog_CC"
1557 fi
1558
1559 fi
1560 if test -z "$CC"; then
1561   # Extract the first word of "cc", so it can be a program name with args.
1562 set dummy cc; ac_word=$2
1563 echo "$as_me:$LINENO: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_CC+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   if test -n "$CC"; then
1569   ac_cv_prog_CC="$CC" # Let the user override the test.
1570 else
1571   ac_prog_rejected=no
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575   IFS=$as_save_IFS
1576   test -z "$as_dir" && as_dir=.
1577   for ac_exec_ext in '' $ac_executable_extensions; do
1578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1580        ac_prog_rejected=yes
1581        continue
1582      fi
1583     ac_cv_prog_CC="cc"
1584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585     break 2
1586   fi
1587 done
1588 done
1589
1590 if test $ac_prog_rejected = yes; then
1591   # We found a bogon in the path, so make sure we never use it.
1592   set dummy $ac_cv_prog_CC
1593   shift
1594   if test $# != 0; then
1595     # We chose a different compiler from the bogus one.
1596     # However, it has the same basename, so the bogon will be chosen
1597     # first if we set CC to just the basename; use the full file name.
1598     shift
1599     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1600   fi
1601 fi
1602 fi
1603 fi
1604 CC=$ac_cv_prog_CC
1605 if test -n "$CC"; then
1606   echo "$as_me:$LINENO: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1608 else
1609   echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1611 fi
1612
1613 fi
1614 if test -z "$CC"; then
1615   if test -n "$ac_tool_prefix"; then
1616   for ac_prog in cl
1617   do
1618     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623   echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625   if test -n "$CC"; then
1626   ac_cv_prog_CC="$CC" # Let the user override the test.
1627 else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631   IFS=$as_save_IFS
1632   test -z "$as_dir" && as_dir=.
1633   for ac_exec_ext in '' $ac_executable_extensions; do
1634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637     break 2
1638   fi
1639 done
1640 done
1641
1642 fi
1643 fi
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646   echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649   echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653     test -n "$CC" && break
1654   done
1655 fi
1656 if test -z "$CC"; then
1657   ac_ct_CC=$CC
1658   for ac_prog in cl
1659 do
1660   # Extract the first word of "$ac_prog", so it can be a program name with args.
1661 set dummy $ac_prog; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   if test -n "$ac_ct_CC"; then
1668   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1669 else
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673   IFS=$as_save_IFS
1674   test -z "$as_dir" && as_dir=.
1675   for ac_exec_ext in '' $ac_executable_extensions; do
1676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677     ac_cv_prog_ac_ct_CC="$ac_prog"
1678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679     break 2
1680   fi
1681 done
1682 done
1683
1684 fi
1685 fi
1686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1687 if test -n "$ac_ct_CC"; then
1688   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1689 echo "${ECHO_T}$ac_ct_CC" >&6
1690 else
1691   echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1693 fi
1694
1695   test -n "$ac_ct_CC" && break
1696 done
1697
1698   CC=$ac_ct_CC
1699 fi
1700
1701 fi
1702
1703
1704 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1705 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1706 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1707 See \`config.log' for more details." >&5
1708 echo "$as_me: error: no acceptable C compiler found in \$PATH
1709 See \`config.log' for more details." >&2;}
1710    { (exit 1); exit 1; }; }; }
1711
1712 # Provide some information about the compiler.
1713 echo "$as_me:$LINENO:" \
1714      "checking for C compiler version" >&5
1715 ac_compiler=`set X $ac_compile; echo $2`
1716 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1717   (eval $ac_compiler --version </dev/null >&5) 2>&5
1718   ac_status=$?
1719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720   (exit $ac_status); }
1721 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1722   (eval $ac_compiler -v </dev/null >&5) 2>&5
1723   ac_status=$?
1724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725   (exit $ac_status); }
1726 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1727   (eval $ac_compiler -V </dev/null >&5) 2>&5
1728   ac_status=$?
1729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730   (exit $ac_status); }
1731
1732 cat >conftest.$ac_ext <<_ACEOF
1733 /* confdefs.h.  */
1734 _ACEOF
1735 cat confdefs.h >>conftest.$ac_ext
1736 cat >>conftest.$ac_ext <<_ACEOF
1737 /* end confdefs.h.  */
1738
1739 int
1740 main ()
1741 {
1742
1743   ;
1744   return 0;
1745 }
1746 _ACEOF
1747 ac_clean_files_save=$ac_clean_files
1748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1749 # Try to create an executable without -o first, disregard a.out.
1750 # It will help us diagnose broken compilers, and finding out an intuition
1751 # of exeext.
1752 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1755 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1756   (eval $ac_link_default) 2>&5
1757   ac_status=$?
1758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759   (exit $ac_status); }; then
1760   # Find the output, starting from the most likely.  This scheme is
1761 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1762 # resort.
1763
1764 # Be careful to initialize this variable, since it used to be cached.
1765 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1766 ac_cv_exeext=
1767 # b.out is created by i960 compilers.
1768 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1769 do
1770   test -f "$ac_file" || continue
1771   case $ac_file in
1772     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1773         ;;
1774     conftest.$ac_ext )
1775         # This is the source file.
1776         ;;
1777     [ab].out )
1778         # We found the default executable, but exeext='' is most
1779         # certainly right.
1780         break;;
1781     *.* )
1782         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783         # FIXME: I believe we export ac_cv_exeext for Libtool,
1784         # but it would be cool to find out if it's true.  Does anybody
1785         # maintain Libtool? --akim.
1786         export ac_cv_exeext
1787         break;;
1788     * )
1789         break;;
1790   esac
1791 done
1792 else
1793   echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1797 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1798 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1799 See \`config.log' for more details." >&5
1800 echo "$as_me: error: C compiler cannot create executables
1801 See \`config.log' for more details." >&2;}
1802    { (exit 77); exit 77; }; }; }
1803 fi
1804
1805 ac_exeext=$ac_cv_exeext
1806 echo "$as_me:$LINENO: result: $ac_file" >&5
1807 echo "${ECHO_T}$ac_file" >&6
1808
1809 # Check the compiler produces executables we can run.  If not, either
1810 # the compiler is broken, or we cross compile.
1811 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1812 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1813 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1814 # If not cross compiling, check that we can run a simple program.
1815 if test "$cross_compiling" != yes; then
1816   if { ac_try='./$ac_file'
1817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1818   (eval $ac_try) 2>&5
1819   ac_status=$?
1820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821   (exit $ac_status); }; }; then
1822     cross_compiling=no
1823   else
1824     if test "$cross_compiling" = maybe; then
1825         cross_compiling=yes
1826     else
1827         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1828 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1829 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1830 If you meant to cross compile, use \`--host'.
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: cannot run C compiled programs.
1833 If you meant to cross compile, use \`--host'.
1834 See \`config.log' for more details." >&2;}
1835    { (exit 1); exit 1; }; }; }
1836     fi
1837   fi
1838 fi
1839 echo "$as_me:$LINENO: result: yes" >&5
1840 echo "${ECHO_T}yes" >&6
1841
1842 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1843 ac_clean_files=$ac_clean_files_save
1844 # Check the compiler produces executables we can run.  If not, either
1845 # the compiler is broken, or we cross compile.
1846 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1847 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1848 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1849 echo "${ECHO_T}$cross_compiling" >&6
1850
1851 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1852 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1854   (eval $ac_link) 2>&5
1855   ac_status=$?
1856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857   (exit $ac_status); }; then
1858   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1859 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1860 # work properly (i.e., refer to `conftest.exe'), while it won't with
1861 # `rm'.
1862 for ac_file in conftest.exe conftest conftest.*; do
1863   test -f "$ac_file" || continue
1864   case $ac_file in
1865     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1866     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1867           export ac_cv_exeext
1868           break;;
1869     * ) break;;
1870   esac
1871 done
1872 else
1873   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1874 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1875 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1876 See \`config.log' for more details." >&5
1877 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1878 See \`config.log' for more details." >&2;}
1879    { (exit 1); exit 1; }; }; }
1880 fi
1881
1882 rm -f conftest$ac_cv_exeext
1883 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1884 echo "${ECHO_T}$ac_cv_exeext" >&6
1885
1886 rm -f conftest.$ac_ext
1887 EXEEXT=$ac_cv_exeext
1888 ac_exeext=$EXEEXT
1889 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1890 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1891 if test "${ac_cv_objext+set}" = set; then
1892   echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894   cat >conftest.$ac_ext <<_ACEOF
1895 /* confdefs.h.  */
1896 _ACEOF
1897 cat confdefs.h >>conftest.$ac_ext
1898 cat >>conftest.$ac_ext <<_ACEOF
1899 /* end confdefs.h.  */
1900
1901 int
1902 main ()
1903 {
1904
1905   ;
1906   return 0;
1907 }
1908 _ACEOF
1909 rm -f conftest.o conftest.obj
1910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1911   (eval $ac_compile) 2>&5
1912   ac_status=$?
1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914   (exit $ac_status); }; then
1915   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1916   case $ac_file in
1917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1918     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1919        break;;
1920   esac
1921 done
1922 else
1923   echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1927 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1928 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1929 See \`config.log' for more details." >&5
1930 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1931 See \`config.log' for more details." >&2;}
1932    { (exit 1); exit 1; }; }; }
1933 fi
1934
1935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1936 fi
1937 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1938 echo "${ECHO_T}$ac_cv_objext" >&6
1939 OBJEXT=$ac_cv_objext
1940 ac_objext=$OBJEXT
1941 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1942 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1943 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1944   echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946   cat >conftest.$ac_ext <<_ACEOF
1947 /* confdefs.h.  */
1948 _ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h.  */
1952
1953 int
1954 main ()
1955 {
1956 #ifndef __GNUC__
1957        choke me
1958 #endif
1959
1960   ;
1961   return 0;
1962 }
1963 _ACEOF
1964 rm -f conftest.$ac_objext
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966   (eval $ac_compile) 2>conftest.er1
1967   ac_status=$?
1968   grep -v '^ *+' conftest.er1 >conftest.err
1969   rm -f conftest.er1
1970   cat conftest.err >&5
1971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972   (exit $ac_status); } &&
1973          { ac_try='test -z "$ac_c_werror_flag"
1974                          || test ! -s conftest.err'
1975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1976   (eval $ac_try) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); }; } &&
1980          { ac_try='test -s conftest.$ac_objext'
1981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982   (eval $ac_try) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; }; then
1986   ac_compiler_gnu=yes
1987 else
1988   echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1990
1991 ac_compiler_gnu=no
1992 fi
1993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1995
1996 fi
1997 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1998 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1999 GCC=`test $ac_compiler_gnu = yes && echo yes`
2000 ac_test_CFLAGS=${CFLAGS+set}
2001 ac_save_CFLAGS=$CFLAGS
2002 CFLAGS="-g"
2003 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2004 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2005 if test "${ac_cv_prog_cc_g+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   cat >conftest.$ac_ext <<_ACEOF
2009 /* confdefs.h.  */
2010 _ACEOF
2011 cat confdefs.h >>conftest.$ac_ext
2012 cat >>conftest.$ac_ext <<_ACEOF
2013 /* end confdefs.h.  */
2014
2015 int
2016 main ()
2017 {
2018
2019   ;
2020   return 0;
2021 }
2022 _ACEOF
2023 rm -f conftest.$ac_objext
2024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025   (eval $ac_compile) 2>conftest.er1
2026   ac_status=$?
2027   grep -v '^ *+' conftest.er1 >conftest.err
2028   rm -f conftest.er1
2029   cat conftest.err >&5
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); } &&
2032          { ac_try='test -z "$ac_c_werror_flag"
2033                          || test ! -s conftest.err'
2034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035   (eval $ac_try) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }; } &&
2039          { ac_try='test -s conftest.$ac_objext'
2040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041   (eval $ac_try) 2>&5
2042   ac_status=$?
2043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044   (exit $ac_status); }; }; then
2045   ac_cv_prog_cc_g=yes
2046 else
2047   echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2049
2050 ac_cv_prog_cc_g=no
2051 fi
2052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2055 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2056 if test "$ac_test_CFLAGS" = set; then
2057   CFLAGS=$ac_save_CFLAGS
2058 elif test $ac_cv_prog_cc_g = yes; then
2059   if test "$GCC" = yes; then
2060     CFLAGS="-g -O2"
2061   else
2062     CFLAGS="-g"
2063   fi
2064 else
2065   if test "$GCC" = yes; then
2066     CFLAGS="-O2"
2067   else
2068     CFLAGS=
2069   fi
2070 fi
2071 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2072 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2073 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2074   echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076   ac_cv_prog_cc_stdc=no
2077 ac_save_CC=$CC
2078 cat >conftest.$ac_ext <<_ACEOF
2079 /* confdefs.h.  */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h.  */
2084 #include <stdarg.h>
2085 #include <stdio.h>
2086 #include <sys/types.h>
2087 #include <sys/stat.h>
2088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2089 struct buf { int x; };
2090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2091 static char *e (p, i)
2092      char **p;
2093      int i;
2094 {
2095   return p[i];
2096 }
2097 static char *f (char * (*g) (char **, int), char **p, ...)
2098 {
2099   char *s;
2100   va_list v;
2101   va_start (v,p);
2102   s = g (p, va_arg (v,int));
2103   va_end (v);
2104   return s;
2105 }
2106
2107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2108    function prototypes and stuff, but not '\xHH' hex character constants.
2109    These don't provoke an error unfortunately, instead are silently treated
2110    as 'x'.  The following induces an error, until -std1 is added to get
2111    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2112    array size at least.  It's necessary to write '\x00'==0 to get something
2113    that's true only with -std1.  */
2114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2115
2116 int test (int i, double x);
2117 struct s1 {int (*f) (int a);};
2118 struct s2 {int (*f) (double a);};
2119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2120 int argc;
2121 char **argv;
2122 int
2123 main ()
2124 {
2125 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 # Don't try gcc -ansi; that turns off useful extensions and
2131 # breaks some systems' header files.
2132 # AIX                   -qlanglvl=ansi
2133 # Ultrix and OSF/1      -std1
2134 # HP-UX 10.20 and later -Ae
2135 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2136 # SVR4                  -Xc -D__EXTENSIONS__
2137 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2138 do
2139   CC="$ac_save_CC $ac_arg"
2140   rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142   (eval $ac_compile) 2>conftest.er1
2143   ac_status=$?
2144   grep -v '^ *+' conftest.er1 >conftest.err
2145   rm -f conftest.er1
2146   cat conftest.err >&5
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); } &&
2149          { ac_try='test -z "$ac_c_werror_flag"
2150                          || test ! -s conftest.err'
2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; } &&
2156          { ac_try='test -s conftest.$ac_objext'
2157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158   (eval $ac_try) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; }; then
2162   ac_cv_prog_cc_stdc=$ac_arg
2163 break
2164 else
2165   echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 fi
2169 rm -f conftest.err conftest.$ac_objext
2170 done
2171 rm -f conftest.$ac_ext conftest.$ac_objext
2172 CC=$ac_save_CC
2173
2174 fi
2175
2176 case "x$ac_cv_prog_cc_stdc" in
2177   x|xno)
2178     echo "$as_me:$LINENO: result: none needed" >&5
2179 echo "${ECHO_T}none needed" >&6 ;;
2180   *)
2181     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2182 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2183     CC="$CC $ac_cv_prog_cc_stdc" ;;
2184 esac
2185
2186 # Some people use a C++ compiler to compile C.  Since we use `exit',
2187 # in C++ we need to declare it.  In case someone uses the same compiler
2188 # for both compiling C and C++ we need to have the C++ compiler decide
2189 # the declaration of exit, since it's the most demanding environment.
2190 cat >conftest.$ac_ext <<_ACEOF
2191 #ifndef __cplusplus
2192   choke me
2193 #endif
2194 _ACEOF
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197   (eval $ac_compile) 2>conftest.er1
2198   ac_status=$?
2199   grep -v '^ *+' conftest.er1 >conftest.err
2200   rm -f conftest.er1
2201   cat conftest.err >&5
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); } &&
2204          { ac_try='test -z "$ac_c_werror_flag"
2205                          || test ! -s conftest.err'
2206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207   (eval $ac_try) 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }; } &&
2211          { ac_try='test -s conftest.$ac_objext'
2212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213   (eval $ac_try) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; }; then
2217   for ac_declaration in \
2218    '' \
2219    'extern "C" void std::exit (int) throw (); using std::exit;' \
2220    'extern "C" void std::exit (int); using std::exit;' \
2221    'extern "C" void exit (int) throw ();' \
2222    'extern "C" void exit (int);' \
2223    'void exit (int);'
2224 do
2225   cat >conftest.$ac_ext <<_ACEOF
2226 /* confdefs.h.  */
2227 _ACEOF
2228 cat confdefs.h >>conftest.$ac_ext
2229 cat >>conftest.$ac_ext <<_ACEOF
2230 /* end confdefs.h.  */
2231 $ac_declaration
2232 #include <stdlib.h>
2233 int
2234 main ()
2235 {
2236 exit (42);
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243   (eval $ac_compile) 2>conftest.er1
2244   ac_status=$?
2245   grep -v '^ *+' conftest.er1 >conftest.err
2246   rm -f conftest.er1
2247   cat conftest.err >&5
2248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249   (exit $ac_status); } &&
2250          { ac_try='test -z "$ac_c_werror_flag"
2251                          || test ! -s conftest.err'
2252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253   (eval $ac_try) 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); }; } &&
2257          { ac_try='test -s conftest.$ac_objext'
2258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259   (eval $ac_try) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; }; then
2263   :
2264 else
2265   echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2267
2268 continue
2269 fi
2270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2271   cat >conftest.$ac_ext <<_ACEOF
2272 /* confdefs.h.  */
2273 _ACEOF
2274 cat confdefs.h >>conftest.$ac_ext
2275 cat >>conftest.$ac_ext <<_ACEOF
2276 /* end confdefs.h.  */
2277 $ac_declaration
2278 int
2279 main ()
2280 {
2281 exit (42);
2282   ;
2283   return 0;
2284 }
2285 _ACEOF
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288   (eval $ac_compile) 2>conftest.er1
2289   ac_status=$?
2290   grep -v '^ *+' conftest.er1 >conftest.err
2291   rm -f conftest.er1
2292   cat conftest.err >&5
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); } &&
2295          { ac_try='test -z "$ac_c_werror_flag"
2296                          || test ! -s conftest.err'
2297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298   (eval $ac_try) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); }; } &&
2302          { ac_try='test -s conftest.$ac_objext'
2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304   (eval $ac_try) 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; }; then
2308   break
2309 else
2310   echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 fi
2314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2315 done
2316 rm -f conftest*
2317 if test -n "$ac_declaration"; then
2318   echo '#ifdef __cplusplus' >>confdefs.h
2319   echo $ac_declaration      >>confdefs.h
2320   echo '#endif'             >>confdefs.h
2321 fi
2322
2323 else
2324   echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 fi
2328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336 cat >>confdefs.h <<\_ACEOF
2337 #define _GNU_SOURCE 1
2338 _ACEOF
2339
2340
2341
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2348 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2349 # On Suns, sometimes $CPP names a directory.
2350 if test -n "$CPP" && test -d "$CPP"; then
2351   CPP=
2352 fi
2353 if test -z "$CPP"; then
2354   if test "${ac_cv_prog_CPP+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357       # Double quotes because CPP needs to be expanded
2358     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2359     do
2360       ac_preproc_ok=false
2361 for ac_c_preproc_warn_flag in '' yes
2362 do
2363   # Use a header file that comes with gcc, so configuring glibc
2364   # with a fresh cross-compiler works.
2365   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2366   # <limits.h> exists even on freestanding compilers.
2367   # On the NeXT, cc -E runs the code through the compiler's parser,
2368   # not just through cpp. "Syntax error" is here to catch this case.
2369   cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h.  */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h.  */
2375 #ifdef __STDC__
2376 # include <limits.h>
2377 #else
2378 # include <assert.h>
2379 #endif
2380                      Syntax error
2381 _ACEOF
2382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2384   ac_status=$?
2385   grep -v '^ *+' conftest.er1 >conftest.err
2386   rm -f conftest.er1
2387   cat conftest.err >&5
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); } >/dev/null; then
2390   if test -s conftest.err; then
2391     ac_cpp_err=$ac_c_preproc_warn_flag
2392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2393   else
2394     ac_cpp_err=
2395   fi
2396 else
2397   ac_cpp_err=yes
2398 fi
2399 if test -z "$ac_cpp_err"; then
2400   :
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405   # Broken: fails on valid input.
2406 continue
2407 fi
2408 rm -f conftest.err conftest.$ac_ext
2409
2410   # OK, works on sane cases.  Now check whether non-existent headers
2411   # can be detected and how.
2412   cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h.  */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h.  */
2418 #include <ac_nonexistent.h>
2419 _ACEOF
2420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2422   ac_status=$?
2423   grep -v '^ *+' conftest.er1 >conftest.err
2424   rm -f conftest.er1
2425   cat conftest.err >&5
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); } >/dev/null; then
2428   if test -s conftest.err; then
2429     ac_cpp_err=$ac_c_preproc_warn_flag
2430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2431   else
2432     ac_cpp_err=
2433   fi
2434 else
2435   ac_cpp_err=yes
2436 fi
2437 if test -z "$ac_cpp_err"; then
2438   # Broken: success on invalid input.
2439 continue
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444   # Passes both tests.
2445 ac_preproc_ok=:
2446 break
2447 fi
2448 rm -f conftest.err conftest.$ac_ext
2449
2450 done
2451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2452 rm -f conftest.err conftest.$ac_ext
2453 if $ac_preproc_ok; then
2454   break
2455 fi
2456
2457     done
2458     ac_cv_prog_CPP=$CPP
2459
2460 fi
2461   CPP=$ac_cv_prog_CPP
2462 else
2463   ac_cv_prog_CPP=$CPP
2464 fi
2465 echo "$as_me:$LINENO: result: $CPP" >&5
2466 echo "${ECHO_T}$CPP" >&6
2467 ac_preproc_ok=false
2468 for ac_c_preproc_warn_flag in '' yes
2469 do
2470   # Use a header file that comes with gcc, so configuring glibc
2471   # with a fresh cross-compiler works.
2472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2473   # <limits.h> exists even on freestanding compilers.
2474   # On the NeXT, cc -E runs the code through the compiler's parser,
2475   # not just through cpp. "Syntax error" is here to catch this case.
2476   cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h.  */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h.  */
2482 #ifdef __STDC__
2483 # include <limits.h>
2484 #else
2485 # include <assert.h>
2486 #endif
2487                      Syntax error
2488 _ACEOF
2489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2491   ac_status=$?
2492   grep -v '^ *+' conftest.er1 >conftest.err
2493   rm -f conftest.er1
2494   cat conftest.err >&5
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); } >/dev/null; then
2497   if test -s conftest.err; then
2498     ac_cpp_err=$ac_c_preproc_warn_flag
2499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2500   else
2501     ac_cpp_err=
2502   fi
2503 else
2504   ac_cpp_err=yes
2505 fi
2506 if test -z "$ac_cpp_err"; then
2507   :
2508 else
2509   echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512   # Broken: fails on valid input.
2513 continue
2514 fi
2515 rm -f conftest.err conftest.$ac_ext
2516
2517   # OK, works on sane cases.  Now check whether non-existent headers
2518   # can be detected and how.
2519   cat >conftest.$ac_ext <<_ACEOF
2520 /* confdefs.h.  */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h.  */
2525 #include <ac_nonexistent.h>
2526 _ACEOF
2527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2529   ac_status=$?
2530   grep -v '^ *+' conftest.er1 >conftest.err
2531   rm -f conftest.er1
2532   cat conftest.err >&5
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); } >/dev/null; then
2535   if test -s conftest.err; then
2536     ac_cpp_err=$ac_c_preproc_warn_flag
2537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2538   else
2539     ac_cpp_err=
2540   fi
2541 else
2542   ac_cpp_err=yes
2543 fi
2544 if test -z "$ac_cpp_err"; then
2545   # Broken: success on invalid input.
2546 continue
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551   # Passes both tests.
2552 ac_preproc_ok=:
2553 break
2554 fi
2555 rm -f conftest.err conftest.$ac_ext
2556
2557 done
2558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2559 rm -f conftest.err conftest.$ac_ext
2560 if $ac_preproc_ok; then
2561   :
2562 else
2563   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2564 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2568 See \`config.log' for more details." >&2;}
2569    { (exit 1); exit 1; }; }; }
2570 fi
2571
2572 ac_ext=c
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577
2578
2579 echo "$as_me:$LINENO: checking for egrep" >&5
2580 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2581 if test "${ac_cv_prog_egrep+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2585     then ac_cv_prog_egrep='grep -E'
2586     else ac_cv_prog_egrep='egrep'
2587     fi
2588 fi
2589 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2590 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2591  EGREP=$ac_cv_prog_egrep
2592
2593
2594
2595 echo "$as_me:$LINENO: checking for AIX" >&5
2596 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2597 cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h.  */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h.  */
2603 #ifdef _AIX
2604   yes
2605 #endif
2606
2607 _ACEOF
2608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2609   $EGREP "yes" >/dev/null 2>&1; then
2610   echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6
2612 cat >>confdefs.h <<\_ACEOF
2613 #define _ALL_SOURCE 1
2614 _ACEOF
2615
2616 else
2617   echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2619 fi
2620 rm -f conftest*
2621
2622
2623 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2624 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2625 if test "${ac_cv_search_strerror+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   ac_func_search_save_LIBS=$LIBS
2629 ac_cv_search_strerror=no
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636
2637 /* Override any gcc2 internal prototype to avoid an error.  */
2638 #ifdef __cplusplus
2639 extern "C"
2640 #endif
2641 /* We use char because int might match the return type of a gcc2
2642    builtin and then its argument prototype would still apply.  */
2643 char strerror ();
2644 int
2645 main ()
2646 {
2647 strerror ();
2648   ;
2649   return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext conftest$ac_exeext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2654   (eval $ac_link) 2>conftest.er1
2655   ac_status=$?
2656   grep -v '^ *+' conftest.er1 >conftest.err
2657   rm -f conftest.er1
2658   cat conftest.err >&5
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); } &&
2661          { ac_try='test -z "$ac_c_werror_flag"
2662                          || test ! -s conftest.err'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; } &&
2668          { ac_try='test -s conftest$ac_exeext'
2669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670   (eval $ac_try) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }; }; then
2674   ac_cv_search_strerror="none required"
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 fi
2680 rm -f conftest.err conftest.$ac_objext \
2681       conftest$ac_exeext conftest.$ac_ext
2682 if test "$ac_cv_search_strerror" = no; then
2683   for ac_lib in cposix; do
2684     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2685     cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 /* Override any gcc2 internal prototype to avoid an error.  */
2693 #ifdef __cplusplus
2694 extern "C"
2695 #endif
2696 /* We use char because int might match the return type of a gcc2
2697    builtin and then its argument prototype would still apply.  */
2698 char strerror ();
2699 int
2700 main ()
2701 {
2702 strerror ();
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.$ac_objext conftest$ac_exeext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2709   (eval $ac_link) 2>conftest.er1
2710   ac_status=$?
2711   grep -v '^ *+' conftest.er1 >conftest.err
2712   rm -f conftest.er1
2713   cat conftest.err >&5
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); } &&
2716          { ac_try='test -z "$ac_c_werror_flag"
2717                          || test ! -s conftest.err'
2718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; } &&
2723          { ac_try='test -s conftest$ac_exeext'
2724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725   (eval $ac_try) 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }; }; then
2729   ac_cv_search_strerror="-l$ac_lib"
2730 break
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 fi
2736 rm -f conftest.err conftest.$ac_objext \
2737       conftest$ac_exeext conftest.$ac_ext
2738   done
2739 fi
2740 LIBS=$ac_func_search_save_LIBS
2741 fi
2742 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2743 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2744 if test "$ac_cv_search_strerror" != no; then
2745   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2746
2747 fi
2748
2749 if test -n "$ac_tool_prefix"; then
2750   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2752 echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754 if test "${ac_cv_prog_RANLIB+set}" = set; then
2755   echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757   if test -n "$RANLIB"; then
2758   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763   IFS=$as_save_IFS
2764   test -z "$as_dir" && as_dir=.
2765   for ac_exec_ext in '' $ac_executable_extensions; do
2766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769     break 2
2770   fi
2771 done
2772 done
2773
2774 fi
2775 fi
2776 RANLIB=$ac_cv_prog_RANLIB
2777 if test -n "$RANLIB"; then
2778   echo "$as_me:$LINENO: result: $RANLIB" >&5
2779 echo "${ECHO_T}$RANLIB" >&6
2780 else
2781   echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6
2783 fi
2784
2785 fi
2786 if test -z "$ac_cv_prog_RANLIB"; then
2787   ac_ct_RANLIB=$RANLIB
2788   # Extract the first word of "ranlib", so it can be a program name with args.
2789 set dummy ranlib; ac_word=$2
2790 echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   if test -n "$ac_ct_RANLIB"; then
2796   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801   IFS=$as_save_IFS
2802   test -z "$as_dir" && as_dir=.
2803   for ac_exec_ext in '' $ac_executable_extensions; do
2804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805     ac_cv_prog_ac_ct_RANLIB="ranlib"
2806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807     break 2
2808   fi
2809 done
2810 done
2811
2812   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2813 fi
2814 fi
2815 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2816 if test -n "$ac_ct_RANLIB"; then
2817   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2818 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2819 else
2820   echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6
2822 fi
2823
2824   RANLIB=$ac_ct_RANLIB
2825 else
2826   RANLIB="$ac_cv_prog_RANLIB"
2827 fi
2828
2829 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2831 if test "${ac_cv_header_stdc+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h.  */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h.  */
2840 #include <stdlib.h>
2841 #include <stdarg.h>
2842 #include <string.h>
2843 #include <float.h>
2844
2845 int
2846 main ()
2847 {
2848
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855   (eval $ac_compile) 2>conftest.er1
2856   ac_status=$?
2857   grep -v '^ *+' conftest.er1 >conftest.err
2858   rm -f conftest.er1
2859   cat conftest.err >&5
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } &&
2862          { ac_try='test -z "$ac_c_werror_flag"
2863                          || test ! -s conftest.err'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; } &&
2869          { ac_try='test -s conftest.$ac_objext'
2870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871   (eval $ac_try) 2>&5
2872   ac_status=$?
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); }; }; then
2875   ac_cv_header_stdc=yes
2876 else
2877   echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880 ac_cv_header_stdc=no
2881 fi
2882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2883
2884 if test $ac_cv_header_stdc = yes; then
2885   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2886   cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892 #include <string.h>
2893
2894 _ACEOF
2895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2896   $EGREP "memchr" >/dev/null 2>&1; then
2897   :
2898 else
2899   ac_cv_header_stdc=no
2900 fi
2901 rm -f conftest*
2902
2903 fi
2904
2905 if test $ac_cv_header_stdc = yes; then
2906   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2907   cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913 #include <stdlib.h>
2914
2915 _ACEOF
2916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2917   $EGREP "free" >/dev/null 2>&1; then
2918   :
2919 else
2920   ac_cv_header_stdc=no
2921 fi
2922 rm -f conftest*
2923
2924 fi
2925
2926 if test $ac_cv_header_stdc = yes; then
2927   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2928   if test "$cross_compiling" = yes; then
2929   :
2930 else
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937 #include <ctype.h>
2938 #if ((' ' & 0x0FF) == 0x020)
2939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2941 #else
2942 # define ISLOWER(c) \
2943                    (('a' <= (c) && (c) <= 'i') \
2944                      || ('j' <= (c) && (c) <= 'r') \
2945                      || ('s' <= (c) && (c) <= 'z'))
2946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2947 #endif
2948
2949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2950 int
2951 main ()
2952 {
2953   int i;
2954   for (i = 0; i < 256; i++)
2955     if (XOR (islower (i), ISLOWER (i))
2956         || toupper (i) != TOUPPER (i))
2957       exit(2);
2958   exit (0);
2959 }
2960 _ACEOF
2961 rm -f conftest$ac_exeext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2963   (eval $ac_link) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968   (eval $ac_try) 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; }; then
2972   :
2973 else
2974   echo "$as_me: program exited with status $ac_status" >&5
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 ( exit $ac_status )
2979 ac_cv_header_stdc=no
2980 fi
2981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2982 fi
2983 fi
2984 fi
2985 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2986 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2987 if test $ac_cv_header_stdc = yes; then
2988
2989 cat >>confdefs.h <<\_ACEOF
2990 #define STDC_HEADERS 1
2991 _ACEOF
2992
2993 fi
2994
2995 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3006                   inttypes.h stdint.h unistd.h
3007 do
3008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3009 echo "$as_me:$LINENO: checking for $ac_header" >&5
3010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3012   echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014   cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h.  */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h.  */
3020 $ac_includes_default
3021
3022 #include <$ac_header>
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3026   (eval $ac_compile) 2>conftest.er1
3027   ac_status=$?
3028   grep -v '^ *+' conftest.er1 >conftest.err
3029   rm -f conftest.er1
3030   cat conftest.err >&5
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); } &&
3033          { ac_try='test -z "$ac_c_werror_flag"
3034                          || test ! -s conftest.err'
3035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036   (eval $ac_try) 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; } &&
3040          { ac_try='test -s conftest.$ac_objext'
3041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042   (eval $ac_try) 2>&5
3043   ac_status=$?
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); }; }; then
3046   eval "$as_ac_Header=yes"
3047 else
3048   echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 eval "$as_ac_Header=no"
3052 fi
3053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054 fi
3055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3058   cat >>confdefs.h <<_ACEOF
3059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3060 _ACEOF
3061
3062 fi
3063
3064 done
3065
3066
3067
3068   if test "${ac_cv_header_minix_config_h+set}" = set; then
3069   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3070 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3071 if test "${ac_cv_header_minix_config_h+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 fi
3074 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3075 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3076 else
3077   # Is the header compilable?
3078 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3079 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086 $ac_includes_default
3087 #include <minix/config.h>
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091   (eval $ac_compile) 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } &&
3098          { ac_try='test -z "$ac_c_werror_flag"
3099                          || test ! -s conftest.err'
3100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101   (eval $ac_try) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; } &&
3105          { ac_try='test -s conftest.$ac_objext'
3106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107   (eval $ac_try) 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); }; }; then
3111   ac_header_compiler=yes
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 ac_header_compiler=no
3117 fi
3118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3120 echo "${ECHO_T}$ac_header_compiler" >&6
3121
3122 # Is the header present?
3123 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3124 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h.  */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h.  */
3131 #include <minix/config.h>
3132 _ACEOF
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } >/dev/null; then
3141   if test -s conftest.err; then
3142     ac_cpp_err=$ac_c_preproc_warn_flag
3143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3144   else
3145     ac_cpp_err=
3146   fi
3147 else
3148   ac_cpp_err=yes
3149 fi
3150 if test -z "$ac_cpp_err"; then
3151   ac_header_preproc=yes
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156   ac_header_preproc=no
3157 fi
3158 rm -f conftest.err conftest.$ac_ext
3159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3160 echo "${ECHO_T}$ac_header_preproc" >&6
3161
3162 # So?  What about this header?
3163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3164   yes:no: )
3165     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3166 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3167     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3168 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3169     ac_header_preproc=yes
3170     ;;
3171   no:yes:* )
3172     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3173 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3174     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3175 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3176     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3177 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3178     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3179 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3180     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3181 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3182     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3183 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3184     (
3185       cat <<\_ASBOX
3186 ## ------------------------------------------ ##
3187 ## Report this to the AC_PACKAGE_NAME lists.  ##
3188 ## ------------------------------------------ ##
3189 _ASBOX
3190     ) |
3191       sed "s/^/$as_me: WARNING:     /" >&2
3192     ;;
3193 esac
3194 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3195 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3196 if test "${ac_cv_header_minix_config_h+set}" = set; then
3197   echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199   ac_cv_header_minix_config_h=$ac_header_preproc
3200 fi
3201 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3202 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3203
3204 fi
3205 if test $ac_cv_header_minix_config_h = yes; then
3206   MINIX=yes
3207 else
3208   MINIX=
3209 fi
3210
3211
3212   if test "$MINIX" = yes; then
3213
3214 cat >>confdefs.h <<\_ACEOF
3215 #define _POSIX_SOURCE 1
3216 _ACEOF
3217
3218
3219 cat >>confdefs.h <<\_ACEOF
3220 #define _POSIX_1_SOURCE 2
3221 _ACEOF
3222
3223
3224 cat >>confdefs.h <<\_ACEOF
3225 #define _MINIX 1
3226 _ACEOF
3227
3228   fi
3229
3230
3231
3232   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3233 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3234 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243
3244 #         define __EXTENSIONS__ 1
3245           $ac_includes_default
3246 int
3247 main ()
3248 {
3249
3250   ;
3251   return 0;
3252 }
3253 _ACEOF
3254 rm -f conftest.$ac_objext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256   (eval $ac_compile) 2>conftest.er1
3257   ac_status=$?
3258   grep -v '^ *+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } &&
3263          { ac_try='test -z "$ac_c_werror_flag"
3264                          || test ! -s conftest.err'
3265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266   (eval $ac_try) 2>&5
3267   ac_status=$?
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); }; } &&
3270          { ac_try='test -s conftest.$ac_objext'
3271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272   (eval $ac_try) 2>&5
3273   ac_status=$?
3274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }; }; then
3276   ac_cv_safe_to_define___extensions__=yes
3277 else
3278   echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 ac_cv_safe_to_define___extensions__=no
3282 fi
3283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3284 fi
3285 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3286 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3287   test $ac_cv_safe_to_define___extensions__ = yes &&
3288     cat >>confdefs.h <<\_ACEOF
3289 #define __EXTENSIONS__ 1
3290 _ACEOF
3291
3292   cat >>confdefs.h <<\_ACEOF
3293 #define _ALL_SOURCE 1
3294 _ACEOF
3295
3296   cat >>confdefs.h <<\_ACEOF
3297 #define _GNU_SOURCE 1
3298 _ACEOF
3299
3300   cat >>confdefs.h <<\_ACEOF
3301 #define _POSIX_PTHREAD_SEMANTICS 1
3302 _ACEOF
3303
3304   cat >>confdefs.h <<\_ACEOF
3305 #define _TANDEM_SOURCE 1
3306 _ACEOF
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3318 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3319 if test "${am_cv_prog_cc_stdc+set}" = set; then
3320   echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322   am_cv_prog_cc_stdc=no
3323 ac_save_CC="$CC"
3324 # Don't try gcc -ansi; that turns off useful extensions and
3325 # breaks some systems' header files.
3326 # AIX                   -qlanglvl=ansi
3327 # Ultrix and OSF/1      -std1
3328 # HP-UX 10.20 and later -Ae
3329 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3330 # SVR4                  -Xc -D__EXTENSIONS__
3331 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 do
3333   CC="$ac_save_CC $ac_arg"
3334   cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h.  */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h.  */
3340 #include <stdarg.h>
3341 #include <stdio.h>
3342 #include <sys/types.h>
3343 #include <sys/stat.h>
3344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3345 struct buf { int x; };
3346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347 static char *e (p, i)
3348      char **p;
3349      int i;
3350 {
3351   return p[i];
3352 }
3353 static char *f (char * (*g) (char **, int), char **p, ...)
3354 {
3355   char *s;
3356   va_list v;
3357   va_start (v,p);
3358   s = g (p, va_arg (v,int));
3359   va_end (v);
3360   return s;
3361 }
3362 int test (int i, double x);
3363 struct s1 {int (*f) (int a);};
3364 struct s2 {int (*f) (double a);};
3365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3366 int argc;
3367 char **argv;
3368
3369 int
3370 main ()
3371 {
3372
3373 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3374
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381   (eval $ac_compile) 2>conftest.er1
3382   ac_status=$?
3383   grep -v '^ *+' conftest.er1 >conftest.err
3384   rm -f conftest.er1
3385   cat conftest.err >&5
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); } &&
3388          { ac_try='test -z "$ac_c_werror_flag"
3389                          || test ! -s conftest.err'
3390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391   (eval $ac_try) 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; } &&
3395          { ac_try='test -s conftest.$ac_objext'
3396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397   (eval $ac_try) 2>&5
3398   ac_status=$?
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); }; }; then
3401   am_cv_prog_cc_stdc="$ac_arg"; break
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 fi
3407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3408 done
3409 CC="$ac_save_CC"
3410
3411 fi
3412
3413 if test -z "$am_cv_prog_cc_stdc"; then
3414   echo "$as_me:$LINENO: result: none needed" >&5
3415 echo "${ECHO_T}none needed" >&6
3416 else
3417   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3418 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3419 fi
3420 case "x$am_cv_prog_cc_stdc" in
3421   x|xno) ;;
3422   *) CC="$CC $am_cv_prog_cc_stdc" ;;
3423 esac
3424
3425
3426 ac_aux_dir=
3427 for ac_dir in .. $srcdir/..; do
3428   if test -f $ac_dir/install-sh; then
3429     ac_aux_dir=$ac_dir
3430     ac_install_sh="$ac_aux_dir/install-sh -c"
3431     break
3432   elif test -f $ac_dir/install.sh; then
3433     ac_aux_dir=$ac_dir
3434     ac_install_sh="$ac_aux_dir/install.sh -c"
3435     break
3436   elif test -f $ac_dir/shtool; then
3437     ac_aux_dir=$ac_dir
3438     ac_install_sh="$ac_aux_dir/shtool install -c"
3439     break
3440   fi
3441 done
3442 if test -z "$ac_aux_dir"; then
3443   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3444 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3445    { (exit 1); exit 1; }; }
3446 fi
3447 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3448 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3449 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3450
3451 # Make sure we can run config.sub.
3452 $ac_config_sub sun4 >/dev/null 2>&1 ||
3453   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3454 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3455    { (exit 1); exit 1; }; }
3456
3457 echo "$as_me:$LINENO: checking build system type" >&5
3458 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3459 if test "${ac_cv_build+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   ac_cv_build_alias=$build_alias
3463 test -z "$ac_cv_build_alias" &&
3464   ac_cv_build_alias=`$ac_config_guess`
3465 test -z "$ac_cv_build_alias" &&
3466   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3467 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3468    { (exit 1); exit 1; }; }
3469 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3470   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3471 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3472    { (exit 1); exit 1; }; }
3473
3474 fi
3475 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3476 echo "${ECHO_T}$ac_cv_build" >&6
3477 build=$ac_cv_build
3478 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3479 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3480 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3481
3482
3483 echo "$as_me:$LINENO: checking host system type" >&5
3484 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3485 if test "${ac_cv_host+set}" = set; then
3486   echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488   ac_cv_host_alias=$host_alias
3489 test -z "$ac_cv_host_alias" &&
3490   ac_cv_host_alias=$ac_cv_build_alias
3491 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3492   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3493 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3494    { (exit 1); exit 1; }; }
3495
3496 fi
3497 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3498 echo "${ECHO_T}$ac_cv_host" >&6
3499 host=$ac_cv_host
3500 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3501 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3502 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3503
3504
3505 echo "$as_me:$LINENO: checking target system type" >&5
3506 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3507 if test "${ac_cv_target+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   ac_cv_target_alias=$target_alias
3511 test "x$ac_cv_target_alias" = "x" &&
3512   ac_cv_target_alias=$ac_cv_host_alias
3513 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3514   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3515 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3516    { (exit 1); exit 1; }; }
3517
3518 fi
3519 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3520 echo "${ECHO_T}$ac_cv_target" >&6
3521 target=$ac_cv_target
3522 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3523 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3524 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3525
3526
3527 # The aliases save the names the user supplied, while $host etc.
3528 # will get canonicalized.
3529 test -n "$target_alias" &&
3530   test "$program_prefix$program_suffix$program_transform_name" = \
3531     NONENONEs,x,x, &&
3532   program_prefix=${target_alias}-
3533
3534 # Dependency checking.
3535 rm -rf .tst 2>/dev/null
3536 mkdir .tst 2>/dev/null
3537 if test -d .tst; then
3538   am__leading_dot=.
3539 else
3540   am__leading_dot=_
3541 fi
3542 rmdir .tst 2>/dev/null
3543
3544 DEPDIR="${am__leading_dot}deps"
3545
3546           ac_config_commands="$ac_config_commands depdir"
3547
3548
3549 depcc="$CC"   am_compiler_list=
3550
3551 am_depcomp=$ac_aux_dir/depcomp
3552 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3553 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3554 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   if test -f "$am_depcomp"; then
3558   # We make a subdir and do the tests there.  Otherwise we can end up
3559   # making bogus files that we don't know about and never remove.  For
3560   # instance it was reported that on HP-UX the gcc test will end up
3561   # making a dummy file named `D' -- because `-MD' means `put the output
3562   # in D'.
3563   mkdir conftest.dir
3564   # Copy depcomp to subdir because otherwise we won't find it if we're
3565   # using a relative directory.
3566   cp "$am_depcomp" conftest.dir
3567   cd conftest.dir
3568   # We will build objects and dependencies in a subdirectory because
3569   # it helps to detect inapplicable dependency modes.  For instance
3570   # both Tru64's cc and ICC support -MD to output dependencies as a
3571   # side effect of compilation, but ICC will put the dependencies in
3572   # the current directory while Tru64 will put them in the object
3573   # directory.
3574   mkdir sub
3575
3576   am_cv_CC_dependencies_compiler_type=none
3577   if test "$am_compiler_list" = ""; then
3578      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3579   fi
3580   for depmode in $am_compiler_list; do
3581     if test $depmode = none; then break; fi
3582
3583     echo "$as_me:$LINENO: trying $depmode" >&5
3584     # Setup a source with many dependencies, because some compilers
3585     # like to wrap large dependency lists on column 80 (with \), and
3586     # we should not choose a depcomp mode which is confused by this.
3587     #
3588     # We need to recreate these files for each test, as the compiler may
3589     # overwrite some of them when testing with obscure command lines.
3590     # This happens at least with the AIX C compiler.
3591     : > sub/conftest.c
3592     for i in 1 2 3 4 5 6; do
3593       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3594       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3595       # Solaris 8's {/usr,}/bin/sh.
3596       touch sub/conftst$i.h
3597     done
3598     echo "include sub/conftest.Po" > confmf
3599
3600     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3601     # mode.  It turns out that the SunPro C++ compiler does not properly
3602     # handle `-M -o', and we need to detect this.
3603     depcmd="depmode=$depmode \
3604        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3605        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3606        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3607     echo "| $depcmd" | sed -e 's/  */ /g' >&5
3608     if env $depcmd > conftest.err 2>&1 &&
3609        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3610        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3611        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3612       # icc doesn't choke on unknown options, it will just issue warnings
3613       # or remarks (even with -Werror).  So we grep stderr for any message
3614       # that says an option was ignored or not supported.
3615       # When given -MP, icc 7.0 and 7.1 complain thusly:
3616       #   icc: Command line warning: ignoring option '-M'; no argument required
3617       # The diagnosis changed in icc 8.0:
3618       #   icc: Command line remark: option '-MP' not supported
3619       if (grep 'ignoring option' conftest.err ||
3620           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3621         am_cv_CC_dependencies_compiler_type=$depmode
3622         echo "$as_me:$LINENO: success" >&5
3623         break
3624       fi
3625     fi
3626     echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3627     sed -e 's/^/| /' < conftest.err >&5
3628   done
3629
3630   cd ..
3631   rm -rf conftest.dir
3632 else
3633   am_cv_CC_dependencies_compiler_type=none
3634 fi
3635
3636 fi
3637 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3638 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3639 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3640 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3641 echo "$as_me: error: no usable dependency style found" >&2;}
3642    { (exit 1); exit 1; }; }
3643 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3644
3645 fi
3646
3647
3648 # Check for the 'make' the user wants to use.
3649 for ac_prog in make
3650 do
3651   # Extract the first word of "$ac_prog", so it can be a program name with args.
3652 set dummy $ac_prog; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_MAKE+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   if test -n "$MAKE"; then
3659   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668     ac_cv_prog_MAKE="$ac_prog"
3669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673 done
3674
3675 fi
3676 fi
3677 MAKE=$ac_cv_prog_MAKE
3678 if test -n "$MAKE"; then
3679   echo "$as_me:$LINENO: result: $MAKE" >&5
3680 echo "${ECHO_T}$MAKE" >&6
3681 else
3682   echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3684 fi
3685
3686   test -n "$MAKE" && break
3687 done
3688
3689 MAKE_IS_GNU=
3690 case "`$MAKE --version 2>&1 | sed 1q`" in
3691   *GNU*)
3692     MAKE_IS_GNU=yes
3693     ;;
3694 esac
3695
3696
3697 if test "$MAKE_IS_GNU" = yes; then
3698   GMAKE_TRUE=
3699   GMAKE_FALSE='#'
3700 else
3701   GMAKE_TRUE='#'
3702   GMAKE_FALSE=
3703 fi
3704
3705 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3706 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3707 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3708 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   cat >conftest.make <<\_ACEOF
3712 all:
3713         @echo 'ac_maketemp="$(MAKE)"'
3714 _ACEOF
3715 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3716 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3717 if test -n "$ac_maketemp"; then
3718   eval ac_cv_prog_make_${ac_make}_set=yes
3719 else
3720   eval ac_cv_prog_make_${ac_make}_set=no
3721 fi
3722 rm -f conftest.make
3723 fi
3724 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3725   echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6
3727   SET_MAKE=
3728 else
3729   echo "$as_me:$LINENO: result: no" >&5
3730 echo "${ECHO_T}no" >&6
3731   SET_MAKE="MAKE=${MAKE-make}"
3732 fi
3733
3734
3735
3736 CONFIG_OBS=
3737 CONFIG_DEPS=
3738 CONFIG_SRCS=
3739 ENABLE_CFLAGS=
3740
3741 CONFIG_ALL=
3742 CONFIG_CLEAN=
3743 CONFIG_INSTALL=
3744 CONFIG_UNINSTALL=
3745
3746 # If we haven't got the data from the intl directory,
3747 # assume NLS is disabled.
3748 USE_NLS=no
3749 LIBINTL=
3750 LIBINTL_DEP=
3751 INCINTL=
3752 XGETTEXT=
3753 GMSGFMT=
3754 POSUB=
3755
3756 if test -f  ../intl/config.intl; then
3757   .  ../intl/config.intl
3758 fi
3759 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3760 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3761 if test x"$USE_NLS" != xyes; then
3762   echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3764 else
3765   echo "$as_me:$LINENO: result: yes" >&5
3766 echo "${ECHO_T}yes" >&6
3767
3768 cat >>confdefs.h <<\_ACEOF
3769 #define ENABLE_NLS 1
3770 _ACEOF
3771
3772
3773   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3774 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3775   # Look for .po and .gmo files in the source directory.
3776   CATALOGS=
3777   XLINGUAS=
3778   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3779     # If there aren't any .gmo files the shell will give us the
3780     # literal string "../path/to/srcdir/po/*.gmo" which has to be
3781     # weeded out.
3782     case "$cat" in *\**)
3783       continue;;
3784     esac
3785     # The quadruple backslash is collapsed to a double backslash
3786     # by the backticks, then collapsed again by the double quotes,
3787     # leaving us with one backslash in the sed expression (right
3788     # before the dot that mustn't act as a wildcard).
3789     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3790     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3791     # The user is allowed to set LINGUAS to a list of languages to
3792     # install catalogs for.  If it's empty that means "all of them."
3793     if test "x$LINGUAS" = x; then
3794       CATALOGS="$CATALOGS $cat"
3795       XLINGUAS="$XLINGUAS $lang"
3796     else
3797       case "$LINGUAS" in *$lang*)
3798         CATALOGS="$CATALOGS $cat"
3799         XLINGUAS="$XLINGUAS $lang"
3800         ;;
3801       esac
3802     fi
3803   done
3804   LINGUAS="$XLINGUAS"
3805   echo "$as_me:$LINENO: result: $LINGUAS" >&5
3806 echo "${ECHO_T}$LINGUAS" >&6
3807
3808
3809     DATADIRNAME=share
3810
3811   INSTOBJEXT=.mo
3812
3813   GENCAT=gencat
3814
3815   CATOBJEXT=.gmo
3816
3817 fi
3818
3819 localedir='${datadir}/locale'
3820
3821
3822 if test x"$USE_NLS" = xyes; then
3823    CONFIG_ALL="$CONFIG_ALL all-po"
3824    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3825    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3826    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3827 fi
3828
3829
3830   GNULIB_MEMMEM=0;
3831   GNULIB_MEMPCPY=0;
3832   GNULIB_MEMRCHR=0;
3833   GNULIB_STPCPY=0;
3834   GNULIB_STPNCPY=0;
3835   GNULIB_STRCHRNUL=0;
3836   GNULIB_STRDUP=0;
3837   GNULIB_STRNDUP=0;
3838   GNULIB_STRNLEN=0;
3839   GNULIB_STRPBRK=0;
3840   GNULIB_STRSEP=0;
3841   GNULIB_STRSTR=0;
3842   GNULIB_STRCASESTR=0;
3843   GNULIB_STRTOK_R=0;
3844   GNULIB_MBSLEN=0;
3845   GNULIB_MBSNLEN=0;
3846   GNULIB_MBSCHR=0;
3847   GNULIB_MBSRCHR=0;
3848   GNULIB_MBSSTR=0;
3849   GNULIB_MBSCASECMP=0;
3850   GNULIB_MBSNCASECMP=0;
3851   GNULIB_MBSPCASECMP=0;
3852   GNULIB_MBSCASESTR=0;
3853   GNULIB_MBSCSPN=0;
3854   GNULIB_MBSPBRK=0;
3855   GNULIB_MBSSPN=0;
3856   GNULIB_MBSSEP=0;
3857   GNULIB_MBSTOK_R=0;
3858   GNULIB_STRERROR=0;
3859   GNULIB_STRSIGNAL=0;
3860     HAVE_DECL_MEMMEM=1;
3861   HAVE_MEMPCPY=1;
3862   HAVE_DECL_MEMRCHR=1;
3863   HAVE_STPCPY=1;
3864   HAVE_STPNCPY=1;
3865   HAVE_STRCHRNUL=1;
3866   HAVE_DECL_STRDUP=1;
3867   HAVE_STRNDUP=1;
3868   HAVE_DECL_STRNDUP=1;
3869   HAVE_DECL_STRNLEN=1;
3870   HAVE_STRPBRK=1;
3871   HAVE_STRSEP=1;
3872   HAVE_STRCASESTR=1;
3873   HAVE_DECL_STRTOK_R=1;
3874   HAVE_DECL_STRERROR=1;
3875   HAVE_DECL_STRSIGNAL=1;
3876   REPLACE_STRERROR=0;
3877   REPLACE_STRSIGNAL=0;
3878   REPLACE_MEMMEM=0;
3879   REPLACE_STRCASESTR=0;
3880   REPLACE_STRSTR=0;
3881
3882
3883       echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3884 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3885 if test "${ac_cv_have_decl_memmem+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894 $ac_includes_default
3895 int
3896 main ()
3897 {
3898 #ifndef memmem
3899   char *p = (char *) memmem;
3900 #endif
3901
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908   (eval $ac_compile) 2>conftest.er1
3909   ac_status=$?
3910   grep -v '^ *+' conftest.er1 >conftest.err
3911   rm -f conftest.er1
3912   cat conftest.err >&5
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); } &&
3915          { ac_try='test -z "$ac_c_werror_flag"
3916                          || test ! -s conftest.err'
3917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918   (eval $ac_try) 2>&5
3919   ac_status=$?
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); }; } &&
3922          { ac_try='test -s conftest.$ac_objext'
3923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924   (eval $ac_try) 2>&5
3925   ac_status=$?
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); }; }; then
3928   ac_cv_have_decl_memmem=yes
3929 else
3930   echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933 ac_cv_have_decl_memmem=no
3934 fi
3935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936 fi
3937 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3938 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3939 if test $ac_cv_have_decl_memmem = yes; then
3940
3941 cat >>confdefs.h <<_ACEOF
3942 #define HAVE_DECL_MEMMEM 1
3943 _ACEOF
3944
3945
3946 else
3947   cat >>confdefs.h <<_ACEOF
3948 #define HAVE_DECL_MEMMEM 0
3949 _ACEOF
3950
3951
3952 fi
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968 for ac_func in memmem
3969 do
3970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3971 echo "$as_me:$LINENO: checking for $ac_func" >&5
3972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3973 if eval "test \"\${$as_ac_var+set}\" = set"; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h.  */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h.  */
3982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3984 #define $ac_func innocuous_$ac_func
3985
3986 /* System header to define __stub macros and hopefully few prototypes,
3987     which can conflict with char $ac_func (); below.
3988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989     <limits.h> exists even on freestanding compilers.  */
3990
3991 #ifdef __STDC__
3992 # include <limits.h>
3993 #else
3994 # include <assert.h>
3995 #endif
3996
3997 #undef $ac_func
3998
3999 /* Override any gcc2 internal prototype to avoid an error.  */
4000 #ifdef __cplusplus
4001 extern "C"
4002 {
4003 #endif
4004 /* We use char because int might match the return type of a gcc2
4005    builtin and then its argument prototype would still apply.  */
4006 char $ac_func ();
4007 /* The GNU C library defines this for functions which it implements
4008     to always fail with ENOSYS.  Some functions are actually named
4009     something starting with __ and the normal name is an alias.  */
4010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4011 choke me
4012 #else
4013 char (*f) () = $ac_func;
4014 #endif
4015 #ifdef __cplusplus
4016 }
4017 #endif
4018
4019 int
4020 main ()
4021 {
4022 return f != $ac_func;
4023   ;
4024   return 0;
4025 }
4026 _ACEOF
4027 rm -f conftest.$ac_objext conftest$ac_exeext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4029   (eval $ac_link) 2>conftest.er1
4030   ac_status=$?
4031   grep -v '^ *+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } &&
4036          { ac_try='test -z "$ac_c_werror_flag"
4037                          || test ! -s conftest.err'
4038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039   (eval $ac_try) 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; } &&
4043          { ac_try='test -s conftest$ac_exeext'
4044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045   (eval $ac_try) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; }; then
4049   eval "$as_ac_var=yes"
4050 else
4051   echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 eval "$as_ac_var=no"
4055 fi
4056 rm -f conftest.err conftest.$ac_objext \
4057       conftest$ac_exeext conftest.$ac_ext
4058 fi
4059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4061 if test `eval echo '${'$as_ac_var'}'` = yes; then
4062   cat >>confdefs.h <<_ACEOF
4063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4064 _ACEOF
4065
4066 else
4067
4068     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4069
4070 fi
4071 done
4072
4073
4074
4075   :
4076
4077
4078
4079
4080
4081   if test $ac_cv_have_decl_memmem = no; then
4082     HAVE_DECL_MEMMEM=0
4083   fi
4084   :
4085
4086
4087   echo "$as_me:$LINENO: checking for long long int" >&5
4088 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4089 if test "${ac_cv_type_long_long_int+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   cat >conftest.$ac_ext <<_ACEOF
4093
4094   /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099 /* For now, do not test the preprocessor; as of 2007 there are too many
4100          implementations with broken preprocessors.  Perhaps this can
4101          be revisited in 2012.  In the meantime, code should not expect
4102          #if to work with literals wider than 32 bits.  */
4103       /* Test literals.  */
4104       long long int ll = 9223372036854775807ll;
4105       long long int nll = -9223372036854775807LL;
4106       unsigned long long int ull = 18446744073709551615ULL;
4107       /* Test constant expressions.   */
4108       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4109                      ? 1 : -1)];
4110       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4111                      ? 1 : -1)];
4112       int i = 63;
4113 int
4114 main ()
4115 {
4116 /* Test availability of runtime routines for shift and division.  */
4117       long long int llmax = 9223372036854775807ll;
4118       unsigned long long int ullmax = 18446744073709551615ull;
4119       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4120               | (llmax / ll) | (llmax % ll)
4121               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4122               | (ullmax / ull) | (ullmax % ull));
4123   ;
4124   return 0;
4125 }
4126
4127 _ACEOF
4128 rm -f conftest.$ac_objext conftest$ac_exeext
4129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4130   (eval $ac_link) 2>conftest.er1
4131   ac_status=$?
4132   grep -v '^ *+' conftest.er1 >conftest.err
4133   rm -f conftest.er1
4134   cat conftest.err >&5
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); } &&
4137          { ac_try='test -z "$ac_c_werror_flag"
4138                          || test ! -s conftest.err'
4139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140   (eval $ac_try) 2>&5
4141   ac_status=$?
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); }; } &&
4144          { ac_try='test -s conftest$ac_exeext'
4145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146   (eval $ac_try) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; }; then
4150                         if test "$cross_compiling" = yes; then
4151   ac_cv_type_long_long_int=yes
4152 else
4153   cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h.  */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h.  */
4159 #include <limits.h>
4160                #ifndef LLONG_MAX
4161                # define HALF \
4162                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4163                # define LLONG_MAX (HALF - 1 + HALF)
4164                #endif
4165 int
4166 main ()
4167 {
4168 long long int n = 1;
4169                int i;
4170                for (i = 0; ; i++)
4171                  {
4172                    long long int m = n << i;
4173                    if (m >> i != n)
4174                      return 1;
4175                    if (LLONG_MAX / 2 < m)
4176                      break;
4177                  }
4178                return 0;
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 rm -f conftest$ac_exeext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4185   (eval $ac_link) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190   (eval $ac_try) 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); }; }; then
4194   ac_cv_type_long_long_int=yes
4195 else
4196   echo "$as_me: program exited with status $ac_status" >&5
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 ( exit $ac_status )
4201 ac_cv_type_long_long_int=no
4202 fi
4203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4204 fi
4205 else
4206   echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209 ac_cv_type_long_long_int=no
4210 fi
4211 rm -f conftest.err conftest.$ac_objext \
4212       conftest$ac_exeext conftest.$ac_ext
4213 fi
4214 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4215 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4216   if test $ac_cv_type_long_long_int = yes; then
4217
4218 cat >>confdefs.h <<\_ACEOF
4219 #define HAVE_LONG_LONG_INT 1
4220 _ACEOF
4221
4222   fi
4223
4224
4225   echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4226 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4227 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   cat >conftest.$ac_ext <<_ACEOF
4231
4232   /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237 /* For now, do not test the preprocessor; as of 2007 there are too many
4238          implementations with broken preprocessors.  Perhaps this can
4239          be revisited in 2012.  In the meantime, code should not expect
4240          #if to work with literals wider than 32 bits.  */
4241       /* Test literals.  */
4242       long long int ll = 9223372036854775807ll;
4243       long long int nll = -9223372036854775807LL;
4244       unsigned long long int ull = 18446744073709551615ULL;
4245       /* Test constant expressions.   */
4246       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4247                      ? 1 : -1)];
4248       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4249                      ? 1 : -1)];
4250       int i = 63;
4251 int
4252 main ()
4253 {
4254 /* Test availability of runtime routines for shift and division.  */
4255       long long int llmax = 9223372036854775807ll;
4256       unsigned long long int ullmax = 18446744073709551615ull;
4257       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4258               | (llmax / ll) | (llmax % ll)
4259               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4260               | (ullmax / ull) | (ullmax % ull));
4261   ;
4262   return 0;
4263 }
4264
4265 _ACEOF
4266 rm -f conftest.$ac_objext conftest$ac_exeext
4267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4268   (eval $ac_link) 2>conftest.er1
4269   ac_status=$?
4270   grep -v '^ *+' conftest.er1 >conftest.err
4271   rm -f conftest.er1
4272   cat conftest.err >&5
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } &&
4275          { ac_try='test -z "$ac_c_werror_flag"
4276                          || test ! -s conftest.err'
4277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278   (eval $ac_try) 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; } &&
4282          { ac_try='test -s conftest$ac_exeext'
4283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284   (eval $ac_try) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; }; then
4288   ac_cv_type_unsigned_long_long_int=yes
4289 else
4290   echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293 ac_cv_type_unsigned_long_long_int=no
4294 fi
4295 rm -f conftest.err conftest.$ac_objext \
4296       conftest$ac_exeext conftest.$ac_ext
4297 fi
4298 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4299 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4300   if test $ac_cv_type_unsigned_long_long_int = yes; then
4301
4302 cat >>confdefs.h <<\_ACEOF
4303 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4304 _ACEOF
4305
4306   fi
4307
4308
4309
4310   echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4311 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4312 if test "${gl_cv_have_include_next+set}" = set; then
4313   echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315   rm -rf conftestd1 conftestd2
4316      mkdir conftestd1 conftestd2
4317      cat <<EOF > conftestd1/conftest.h
4318 #define DEFINED_IN_CONFTESTD1
4319 #include_next <conftest.h>
4320 #ifdef DEFINED_IN_CONFTESTD2
4321 int foo;
4322 #else
4323 #error "include_next doesn't work"
4324 #endif
4325 EOF
4326      cat <<EOF > conftestd2/conftest.h
4327 #ifndef DEFINED_IN_CONFTESTD1
4328 #error "include_next test doesn't work"
4329 #endif
4330 #define DEFINED_IN_CONFTESTD2
4331 EOF
4332      save_CPPFLAGS="$CPPFLAGS"
4333      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4334      cat >conftest.$ac_ext <<_ACEOF
4335 #include <conftest.h>
4336 _ACEOF
4337 rm -f conftest.$ac_objext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339   (eval $ac_compile) 2>conftest.er1
4340   ac_status=$?
4341   grep -v '^ *+' conftest.er1 >conftest.err
4342   rm -f conftest.er1
4343   cat conftest.err >&5
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); } &&
4346          { ac_try='test -z "$ac_c_werror_flag"
4347                          || test ! -s conftest.err'
4348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349   (eval $ac_try) 2>&5
4350   ac_status=$?
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); }; } &&
4353          { ac_try='test -s conftest.$ac_objext'
4354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; }; then
4359   gl_cv_have_include_next=yes
4360 else
4361   echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 gl_cv_have_include_next=no
4365 fi
4366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4367      CPPFLAGS="$save_CPPFLAGS"
4368      rm -rf conftestd1 conftestd2
4369
4370 fi
4371 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4372 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4373   if test $gl_cv_have_include_next = yes; then
4374
4375
4376 cat >>confdefs.h <<\_ACEOF
4377 #define HAVE_INCLUDE_NEXT 1
4378 _ACEOF
4379
4380
4381     INCLUDE_NEXT=include_next
4382   else
4383     INCLUDE_NEXT=include
4384   fi
4385
4386
4387
4388
4389
4390
4391
4392 for ac_header in $gl_header_list
4393 do
4394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4396   echo "$as_me:$LINENO: checking for $ac_header" >&5
4397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 fi
4401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4403 else
4404   # Is the header compilable?
4405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h.  */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h.  */
4413 $ac_includes_default
4414 #include <$ac_header>
4415 _ACEOF
4416 rm -f conftest.$ac_objext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418   (eval $ac_compile) 2>conftest.er1
4419   ac_status=$?
4420   grep -v '^ *+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } &&
4425          { ac_try='test -z "$ac_c_werror_flag"
4426                          || test ! -s conftest.err'
4427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428   (eval $ac_try) 2>&5
4429   ac_status=$?
4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); }; } &&
4432          { ac_try='test -s conftest.$ac_objext'
4433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434   (eval $ac_try) 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; }; then
4438   ac_header_compiler=yes
4439 else
4440   echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443 ac_header_compiler=no
4444 fi
4445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4447 echo "${ECHO_T}$ac_header_compiler" >&6
4448
4449 # Is the header present?
4450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h.  */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h.  */
4458 #include <$ac_header>
4459 _ACEOF
4460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462   ac_status=$?
4463   grep -v '^ *+' conftest.er1 >conftest.err
4464   rm -f conftest.er1
4465   cat conftest.err >&5
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); } >/dev/null; then
4468   if test -s conftest.err; then
4469     ac_cpp_err=$ac_c_preproc_warn_flag
4470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4471   else
4472     ac_cpp_err=
4473   fi
4474 else
4475   ac_cpp_err=yes
4476 fi
4477 if test -z "$ac_cpp_err"; then
4478   ac_header_preproc=yes
4479 else
4480   echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4482
4483   ac_header_preproc=no
4484 fi
4485 rm -f conftest.err conftest.$ac_ext
4486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4487 echo "${ECHO_T}$ac_header_preproc" >&6
4488
4489 # So?  What about this header?
4490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4491   yes:no: )
4492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4496     ac_header_preproc=yes
4497     ;;
4498   no:yes:* )
4499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4511     (
4512       cat <<\_ASBOX
4513 ## ------------------------------------------ ##
4514 ## Report this to the AC_PACKAGE_NAME lists.  ##
4515 ## ------------------------------------------ ##
4516 _ASBOX
4517     ) |
4518       sed "s/^/$as_me: WARNING:     /" >&2
4519     ;;
4520 esac
4521 echo "$as_me:$LINENO: checking for $ac_header" >&5
4522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4524   echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526   eval "$as_ac_Header=\$ac_header_preproc"
4527 fi
4528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4530
4531 fi
4532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4533   cat >>confdefs.h <<_ACEOF
4534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4535 _ACEOF
4536
4537 fi
4538
4539 done
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4553 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4554 if test "${ac_cv_c_restrict+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   ac_cv_c_restrict=no
4558    # The order here caters to the fact that C++ does not require restrict.
4559    for ac_kw in __restrict __restrict__ _Restrict restrict; do
4560      cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 typedef int * int_ptr;
4567         int foo (int_ptr $ac_kw ip) {
4568         return ip[0];
4569        }
4570 int
4571 main ()
4572 {
4573 int s[1];
4574         int * $ac_kw t = s;
4575         t[0] = 0;
4576         return foo(t)
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583   (eval $ac_compile) 2>conftest.er1
4584   ac_status=$?
4585   grep -v '^ *+' conftest.er1 >conftest.err
4586   rm -f conftest.er1
4587   cat conftest.err >&5
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); } &&
4590          { ac_try='test -z "$ac_c_werror_flag"
4591                          || test ! -s conftest.err'
4592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; } &&
4597          { ac_try='test -s conftest.$ac_objext'
4598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   ac_cv_c_restrict=$ac_kw
4604 else
4605   echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 fi
4609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4610      test "$ac_cv_c_restrict" != no && break
4611    done
4612
4613 fi
4614 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4615 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4616
4617
4618  case $ac_cv_c_restrict in
4619    restrict) ;;
4620    no) cat >>confdefs.h <<\_ACEOF
4621 #define restrict
4622 _ACEOF
4623  ;;
4624    *)  cat >>confdefs.h <<_ACEOF
4625 #define restrict $ac_cv_c_restrict
4626 _ACEOF
4627  ;;
4628  esac
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642   :
4643
4644
4645
4646
4647
4648
4649
4650      if test $gl_cv_have_include_next = yes; then
4651        gl_cv_next_string_h='<'string.h'>'
4652      else
4653        echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4654 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4655 if test "${gl_cv_next_string_h+set}" = set; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658
4659           if test $ac_cv_header_string_h = yes; then
4660             cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666 #include <string.h>
4667
4668 _ACEOF
4669                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670                sed -n '\#/string.h#{
4671                  s#.*"\(.*/string.h\)".*#\1#
4672                  s#^/[^/]#//&#
4673                  p
4674                  q
4675                }'`'"'
4676           else
4677             gl_cv_next_string_h='<'string.h'>'
4678           fi
4679
4680 fi
4681 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4682 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4683      fi
4684      NEXT_STRING_H=$gl_cv_next_string_h
4685
4686
4687
4688
4689
4690   GNULIB_WCWIDTH=0;
4691     HAVE_DECL_WCWIDTH=1;
4692   REPLACE_WCWIDTH=0;
4693   WCHAR_H=
4694
4695
4696
4697
4698
4699 if false; then
4700   GL_COND_LIBTOOL_TRUE=
4701   GL_COND_LIBTOOL_FALSE='#'
4702 else
4703   GL_COND_LIBTOOL_TRUE='#'
4704   GL_COND_LIBTOOL_FALSE=
4705 fi
4706
4707   gl_cond_libtool=false
4708   gl_libdeps=
4709   gl_ltlibdeps=
4710
4711
4712
4713   gl_source_base='gnulib'
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723 for ac_func in memchr
4724 do
4725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4726 echo "$as_me:$LINENO: checking for $ac_func" >&5
4727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4728 if eval "test \"\${$as_ac_var+set}\" = set"; then
4729   echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731   cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4739 #define $ac_func innocuous_$ac_func
4740
4741 /* System header to define __stub macros and hopefully few prototypes,
4742     which can conflict with char $ac_func (); below.
4743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4744     <limits.h> exists even on freestanding compilers.  */
4745
4746 #ifdef __STDC__
4747 # include <limits.h>
4748 #else
4749 # include <assert.h>
4750 #endif
4751
4752 #undef $ac_func
4753
4754 /* Override any gcc2 internal prototype to avoid an error.  */
4755 #ifdef __cplusplus
4756 extern "C"
4757 {
4758 #endif
4759 /* We use char because int might match the return type of a gcc2
4760    builtin and then its argument prototype would still apply.  */
4761 char $ac_func ();
4762 /* The GNU C library defines this for functions which it implements
4763     to always fail with ENOSYS.  Some functions are actually named
4764     something starting with __ and the normal name is an alias.  */
4765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4766 choke me
4767 #else
4768 char (*f) () = $ac_func;
4769 #endif
4770 #ifdef __cplusplus
4771 }
4772 #endif
4773
4774 int
4775 main ()
4776 {
4777 return f != $ac_func;
4778   ;
4779   return 0;
4780 }
4781 _ACEOF
4782 rm -f conftest.$ac_objext conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784   (eval $ac_link) 2>conftest.er1
4785   ac_status=$?
4786   grep -v '^ *+' conftest.er1 >conftest.err
4787   rm -f conftest.er1
4788   cat conftest.err >&5
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } &&
4791          { ac_try='test -z "$ac_c_werror_flag"
4792                          || test ! -s conftest.err'
4793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794   (eval $ac_try) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); }; } &&
4798          { ac_try='test -s conftest$ac_exeext'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; }; then
4804   eval "$as_ac_var=yes"
4805 else
4806   echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809 eval "$as_ac_var=no"
4810 fi
4811 rm -f conftest.err conftest.$ac_objext \
4812       conftest$ac_exeext conftest.$ac_ext
4813 fi
4814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4816 if test `eval echo '${'$as_ac_var'}'` = yes; then
4817   cat >>confdefs.h <<_ACEOF
4818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4819 _ACEOF
4820
4821 else
4822
4823     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4824
4825 fi
4826 done
4827
4828
4829   if test $ac_cv_func_memchr = no; then
4830
4831
4832 for ac_header in bp-sym.h
4833 do
4834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836   echo "$as_me:$LINENO: checking for $ac_header" >&5
4837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 fi
4841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843 else
4844   # Is the header compilable?
4845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h.  */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h.  */
4853 $ac_includes_default
4854 #include <$ac_header>
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858   (eval $ac_compile) 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } &&
4865          { ac_try='test -z "$ac_c_werror_flag"
4866                          || test ! -s conftest.err'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; } &&
4872          { ac_try='test -s conftest.$ac_objext'
4873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874   (eval $ac_try) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; }; then
4878   ac_header_compiler=yes
4879 else
4880   echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ac_header_compiler=no
4884 fi
4885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4887 echo "${ECHO_T}$ac_header_compiler" >&6
4888
4889 # Is the header present?
4890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h.  */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h.  */
4898 #include <$ac_header>
4899 _ACEOF
4900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4902   ac_status=$?
4903   grep -v '^ *+' conftest.er1 >conftest.err
4904   rm -f conftest.er1
4905   cat conftest.err >&5
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); } >/dev/null; then
4908   if test -s conftest.err; then
4909     ac_cpp_err=$ac_c_preproc_warn_flag
4910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4911   else
4912     ac_cpp_err=
4913   fi
4914 else
4915   ac_cpp_err=yes
4916 fi
4917 if test -z "$ac_cpp_err"; then
4918   ac_header_preproc=yes
4919 else
4920   echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923   ac_header_preproc=no
4924 fi
4925 rm -f conftest.err conftest.$ac_ext
4926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4927 echo "${ECHO_T}$ac_header_preproc" >&6
4928
4929 # So?  What about this header?
4930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4931   yes:no: )
4932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4936     ac_header_preproc=yes
4937     ;;
4938   no:yes:* )
4939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4951     (
4952       cat <<\_ASBOX
4953 ## ------------------------------------------ ##
4954 ## Report this to the AC_PACKAGE_NAME lists.  ##
4955 ## ------------------------------------------ ##
4956 _ASBOX
4957     ) |
4958       sed "s/^/$as_me: WARNING:     /" >&2
4959     ;;
4960 esac
4961 echo "$as_me:$LINENO: checking for $ac_header" >&5
4962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966   eval "$as_ac_Header=\$ac_header_preproc"
4967 fi
4968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4970
4971 fi
4972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4973   cat >>confdefs.h <<_ACEOF
4974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4975 _ACEOF
4976
4977 fi
4978
4979 done
4980
4981
4982   fi
4983
4984
4985   echo "$as_me:$LINENO: checking for working memcmp" >&5
4986 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4987 if test "${ac_cv_func_memcmp_working+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   if test "$cross_compiling" = yes; then
4991   ac_cv_func_memcmp_working=no
4992 else
4993   cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h.  */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h.  */
4999 $ac_includes_default
5000 int
5001 main ()
5002 {
5003
5004   /* Some versions of memcmp are not 8-bit clean.  */
5005   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5006   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5007     exit (1);
5008
5009   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5010      or more and with at least one buffer not starting on a 4-byte boundary.
5011      William Lewis provided this test program.   */
5012   {
5013     char foo[21];
5014     char bar[21];
5015     int i;
5016     for (i = 0; i < 4; i++)
5017       {
5018         char *a = foo + i;
5019         char *b = bar + i;
5020         strcpy (a, "--------01111111");
5021         strcpy (b, "--------10000000");
5022         if (memcmp (a, b, 16) >= 0)
5023           exit (1);
5024       }
5025     exit (0);
5026   }
5027
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034   (eval $ac_link) 2>&5
5035   ac_status=$?
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; }; then
5043   ac_cv_func_memcmp_working=yes
5044 else
5045   echo "$as_me: program exited with status $ac_status" >&5
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ( exit $ac_status )
5050 ac_cv_func_memcmp_working=no
5051 fi
5052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5053 fi
5054 fi
5055 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5056 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5057 test $ac_cv_func_memcmp_working = no &&
5058
5059
5060
5061
5062
5063
5064   gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5065
5066
5067     if test $ac_cv_func_memcmp_working = no; then
5068
5069 cat >>confdefs.h <<\_ACEOF
5070 #define memcmp rpl_memcmp
5071 _ACEOF
5072
5073     :
5074   fi
5075
5076
5077
5078   if test $ac_cv_have_decl_memmem = yes; then
5079     echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5080 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5081 if test "${gl_cv_func_memmem_works+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   if test "$cross_compiling" = yes; then
5085                  gl_cv_func_memmem_works="guessing no"
5086 else
5087   cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093
5094 #include <string.h> /* for memmem */
5095 #include <stdlib.h> /* for malloc */
5096 #include <unistd.h> /* for alarm */
5097
5098 int
5099 main ()
5100 {
5101 size_t m = 1000000;
5102     char *haystack = (char *) malloc (2 * m + 1);
5103     char *needle = (char *) malloc (m + 1);
5104     void *result = 0;
5105     /* Failure to compile this test due to missing alarm is okay,
5106        since all such platforms (mingw) also lack memmem.  */
5107     alarm (5);
5108     /* Check for quadratic performance.  */
5109     if (haystack && needle)
5110       {
5111         memset (haystack, 'A', 2 * m);
5112         haystack[2 * m] = 'B';
5113         memset (needle, 'A', m);
5114         needle[m] = 'B';
5115         result = memmem (haystack, 2 * m + 1, needle, m + 1);
5116       }
5117     /* Check for empty needle behavior.  */
5118     return !result || !memmem ("a", 1, 0, 0);
5119   ;
5120   return 0;
5121 }
5122 _ACEOF
5123 rm -f conftest$ac_exeext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125   (eval $ac_link) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130   (eval $ac_try) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); }; }; then
5134   gl_cv_func_memmem_works=yes
5135 else
5136   echo "$as_me: program exited with status $ac_status" >&5
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140 ( exit $ac_status )
5141 gl_cv_func_memmem_works=no
5142 fi
5143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5144 fi
5145 fi
5146 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5147 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5148     if test "$gl_cv_func_memmem_works" != yes; then
5149       REPLACE_MEMMEM=1
5150
5151
5152
5153
5154
5155
5156
5157   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5158
5159     fi
5160   fi
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174 for ac_func in memmem
5175 do
5176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5177 echo "$as_me:$LINENO: checking for $ac_func" >&5
5178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5179 if eval "test \"\${$as_ac_var+set}\" = set"; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5190 #define $ac_func innocuous_$ac_func
5191
5192 /* System header to define __stub macros and hopefully few prototypes,
5193     which can conflict with char $ac_func (); below.
5194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195     <limits.h> exists even on freestanding compilers.  */
5196
5197 #ifdef __STDC__
5198 # include <limits.h>
5199 #else
5200 # include <assert.h>
5201 #endif
5202
5203 #undef $ac_func
5204
5205 /* Override any gcc2 internal prototype to avoid an error.  */
5206 #ifdef __cplusplus
5207 extern "C"
5208 {
5209 #endif
5210 /* We use char because int might match the return type of a gcc2
5211    builtin and then its argument prototype would still apply.  */
5212 char $ac_func ();
5213 /* The GNU C library defines this for functions which it implements
5214     to always fail with ENOSYS.  Some functions are actually named
5215     something starting with __ and the normal name is an alias.  */
5216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5217 choke me
5218 #else
5219 char (*f) () = $ac_func;
5220 #endif
5221 #ifdef __cplusplus
5222 }
5223 #endif
5224
5225 int
5226 main ()
5227 {
5228 return f != $ac_func;
5229   ;
5230   return 0;
5231 }
5232 _ACEOF
5233 rm -f conftest.$ac_objext conftest$ac_exeext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235   (eval $ac_link) 2>conftest.er1
5236   ac_status=$?
5237   grep -v '^ *+' conftest.er1 >conftest.err
5238   rm -f conftest.er1
5239   cat conftest.err >&5
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } &&
5242          { ac_try='test -z "$ac_c_werror_flag"
5243                          || test ! -s conftest.err'
5244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245   (eval $ac_try) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }; } &&
5249          { ac_try='test -s conftest$ac_exeext'
5250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251   (eval $ac_try) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; }; then
5255   eval "$as_ac_var=yes"
5256 else
5257   echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 eval "$as_ac_var=no"
5261 fi
5262 rm -f conftest.err conftest.$ac_objext \
5263       conftest$ac_exeext conftest.$ac_ext
5264 fi
5265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5267 if test `eval echo '${'$as_ac_var'}'` = yes; then
5268   cat >>confdefs.h <<_ACEOF
5269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5270 _ACEOF
5271
5272 else
5273
5274     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5275
5276 fi
5277 done
5278
5279
5280
5281   :
5282
5283
5284
5285
5286
5287   if test $ac_cv_have_decl_memmem = no; then
5288     HAVE_DECL_MEMMEM=0
5289   fi
5290   :
5291
5292
5293
5294   GNULIB_MEMMEM=1
5295
5296
5297
5298
5299   if test $ac_cv_type_long_long_int = yes; then
5300     HAVE_LONG_LONG_INT=1
5301   else
5302     HAVE_LONG_LONG_INT=0
5303   fi
5304
5305
5306   if test $ac_cv_type_unsigned_long_long_int = yes; then
5307     HAVE_UNSIGNED_LONG_LONG_INT=1
5308   else
5309     HAVE_UNSIGNED_LONG_LONG_INT=0
5310   fi
5311
5312
5313       if test $ac_cv_header_inttypes_h = yes; then
5314     HAVE_INTTYPES_H=1
5315   else
5316     HAVE_INTTYPES_H=0
5317   fi
5318
5319
5320       if test $ac_cv_header_sys_types_h = yes; then
5321     HAVE_SYS_TYPES_H=1
5322   else
5323     HAVE_SYS_TYPES_H=0
5324   fi
5325
5326
5327
5328
5329
5330   :
5331
5332
5333
5334
5335
5336
5337
5338      if test $gl_cv_have_include_next = yes; then
5339        gl_cv_next_stdint_h='<'stdint.h'>'
5340      else
5341        echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5342 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5343 if test "${gl_cv_next_stdint_h+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346
5347           if test $ac_cv_header_stdint_h = yes; then
5348             cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354 #include <stdint.h>
5355
5356 _ACEOF
5357                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358                sed -n '\#/stdint.h#{
5359                  s#.*"\(.*/stdint.h\)".*#\1#
5360                  s#^/[^/]#//&#
5361                  p
5362                  q
5363                }'`'"'
5364           else
5365             gl_cv_next_stdint_h='<'stdint.h'>'
5366           fi
5367
5368 fi
5369 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5370 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5371      fi
5372      NEXT_STDINT_H=$gl_cv_next_stdint_h
5373
5374
5375
5376   if test $ac_cv_header_stdint_h = yes; then
5377     HAVE_STDINT_H=1
5378   else
5379     HAVE_STDINT_H=0
5380   fi
5381
5382
5383     if test $ac_cv_header_stdint_h = yes; then
5384     echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5385 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5386 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5387   echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389   gl_cv_header_working_stdint_h=no
5390        cat >conftest.$ac_ext <<_ACEOF
5391
5392          /* confdefs.h.  */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h.  */
5397
5398 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5399 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5400 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5401 #include <stdint.h>
5402 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
5403 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5404 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5405 #endif
5406
5407
5408   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5409      included before <wchar.h>.  */
5410   #include <stddef.h>
5411   #include <signal.h>
5412   #if HAVE_WCHAR_H
5413   # include <stdio.h>
5414   # include <time.h>
5415   # include <wchar.h>
5416   #endif
5417
5418
5419 #ifdef INT8_MAX
5420 int8_t a1 = INT8_MAX;
5421 int8_t a1min = INT8_MIN;
5422 #endif
5423 #ifdef INT16_MAX
5424 int16_t a2 = INT16_MAX;
5425 int16_t a2min = INT16_MIN;
5426 #endif
5427 #ifdef INT32_MAX
5428 int32_t a3 = INT32_MAX;
5429 int32_t a3min = INT32_MIN;
5430 #endif
5431 #ifdef INT64_MAX
5432 int64_t a4 = INT64_MAX;
5433 int64_t a4min = INT64_MIN;
5434 #endif
5435 #ifdef UINT8_MAX
5436 uint8_t b1 = UINT8_MAX;
5437 #else
5438 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5439 #endif
5440 #ifdef UINT16_MAX
5441 uint16_t b2 = UINT16_MAX;
5442 #endif
5443 #ifdef UINT32_MAX
5444 uint32_t b3 = UINT32_MAX;
5445 #endif
5446 #ifdef UINT64_MAX
5447 uint64_t b4 = UINT64_MAX;
5448 #endif
5449 int_least8_t c1 = INT8_C (0x7f);
5450 int_least8_t c1max = INT_LEAST8_MAX;
5451 int_least8_t c1min = INT_LEAST8_MIN;
5452 int_least16_t c2 = INT16_C (0x7fff);
5453 int_least16_t c2max = INT_LEAST16_MAX;
5454 int_least16_t c2min = INT_LEAST16_MIN;
5455 int_least32_t c3 = INT32_C (0x7fffffff);
5456 int_least32_t c3max = INT_LEAST32_MAX;
5457 int_least32_t c3min = INT_LEAST32_MIN;
5458 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5459 int_least64_t c4max = INT_LEAST64_MAX;
5460 int_least64_t c4min = INT_LEAST64_MIN;
5461 uint_least8_t d1 = UINT8_C (0xff);
5462 uint_least8_t d1max = UINT_LEAST8_MAX;
5463 uint_least16_t d2 = UINT16_C (0xffff);
5464 uint_least16_t d2max = UINT_LEAST16_MAX;
5465 uint_least32_t d3 = UINT32_C (0xffffffff);
5466 uint_least32_t d3max = UINT_LEAST32_MAX;
5467 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5468 uint_least64_t d4max = UINT_LEAST64_MAX;
5469 int_fast8_t e1 = INT_FAST8_MAX;
5470 int_fast8_t e1min = INT_FAST8_MIN;
5471 int_fast16_t e2 = INT_FAST16_MAX;
5472 int_fast16_t e2min = INT_FAST16_MIN;
5473 int_fast32_t e3 = INT_FAST32_MAX;
5474 int_fast32_t e3min = INT_FAST32_MIN;
5475 int_fast64_t e4 = INT_FAST64_MAX;
5476 int_fast64_t e4min = INT_FAST64_MIN;
5477 uint_fast8_t f1 = UINT_FAST8_MAX;
5478 uint_fast16_t f2 = UINT_FAST16_MAX;
5479 uint_fast32_t f3 = UINT_FAST32_MAX;
5480 uint_fast64_t f4 = UINT_FAST64_MAX;
5481 #ifdef INTPTR_MAX
5482 intptr_t g = INTPTR_MAX;
5483 intptr_t gmin = INTPTR_MIN;
5484 #endif
5485 #ifdef UINTPTR_MAX
5486 uintptr_t h = UINTPTR_MAX;
5487 #endif
5488 intmax_t i = INTMAX_MAX;
5489 uintmax_t j = UINTMAX_MAX;
5490
5491 #include <limits.h> /* for CHAR_BIT */
5492 #define TYPE_MINIMUM(t) \
5493   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5494 #define TYPE_MAXIMUM(t) \
5495   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5496 struct s {
5497   int check_PTRDIFF:
5498       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5499       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5500       ? 1 : -1;
5501   /* Detect bug in FreeBSD 6.0 / ia64.  */
5502   int check_SIG_ATOMIC:
5503       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5504       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5505       ? 1 : -1;
5506   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5507   int check_WCHAR:
5508       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5509       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5510       ? 1 : -1;
5511   /* Detect bug in mingw.  */
5512   int check_WINT:
5513       WINT_MIN == TYPE_MINIMUM (wint_t)
5514       && WINT_MAX == TYPE_MAXIMUM (wint_t)
5515       ? 1 : -1;
5516
5517   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
5518   int check_UINT8_C:
5519         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5520   int check_UINT16_C:
5521         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5522
5523   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
5524 #ifdef UINT8_MAX
5525   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5526 #endif
5527 #ifdef UINT16_MAX
5528   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5529 #endif
5530 #ifdef UINT32_MAX
5531   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5532 #endif
5533 #ifdef UINT64_MAX
5534   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5535 #endif
5536   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5537   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5538   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5539   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5540   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5541   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5542   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5543   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5544   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5545   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5546   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5547 };
5548
5549 int
5550 main ()
5551 {
5552
5553   ;
5554   return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559   (eval $ac_compile) 2>conftest.er1
5560   ac_status=$?
5561   grep -v '^ *+' conftest.er1 >conftest.err
5562   rm -f conftest.er1
5563   cat conftest.err >&5
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); } &&
5566          { ac_try='test -z "$ac_c_werror_flag"
5567                          || test ! -s conftest.err'
5568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569   (eval $ac_try) 2>&5
5570   ac_status=$?
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); }; } &&
5573          { ac_try='test -s conftest.$ac_objext'
5574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575   (eval $ac_try) 2>&5
5576   ac_status=$?
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); }; }; then
5579   gl_cv_header_working_stdint_h=yes
5580 else
5581   echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5583
5584 fi
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5588 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5589   fi
5590   if test "$gl_cv_header_working_stdint_h" = yes; then
5591     STDINT_H=
5592   else
5593
5594
5595 for ac_header in sys/inttypes.h sys/bitypes.h
5596 do
5597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5599   echo "$as_me:$LINENO: checking for $ac_header" >&5
5600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602   echo $ECHO_N "(cached) $ECHO_C" >&6
5603 fi
5604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5606 else
5607   # Is the header compilable?
5608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h.  */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h.  */
5616 $ac_includes_default
5617 #include <$ac_header>
5618 _ACEOF
5619 rm -f conftest.$ac_objext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621   (eval $ac_compile) 2>conftest.er1
5622   ac_status=$?
5623   grep -v '^ *+' conftest.er1 >conftest.err
5624   rm -f conftest.er1
5625   cat conftest.err >&5
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); } &&
5628          { ac_try='test -z "$ac_c_werror_flag"
5629                          || test ! -s conftest.err'
5630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631   (eval $ac_try) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; } &&
5635          { ac_try='test -s conftest.$ac_objext'
5636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637   (eval $ac_try) 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); }; }; then
5641   ac_header_compiler=yes
5642 else
5643   echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646 ac_header_compiler=no
5647 fi
5648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5650 echo "${ECHO_T}$ac_header_compiler" >&6
5651
5652 # Is the header present?
5653 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h.  */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h.  */
5661 #include <$ac_header>
5662 _ACEOF
5663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5664   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5671   if test -s conftest.err; then
5672     ac_cpp_err=$ac_c_preproc_warn_flag
5673     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5674   else
5675     ac_cpp_err=
5676   fi
5677 else
5678   ac_cpp_err=yes
5679 fi
5680 if test -z "$ac_cpp_err"; then
5681   ac_header_preproc=yes
5682 else
5683   echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686   ac_header_preproc=no
5687 fi
5688 rm -f conftest.err conftest.$ac_ext
5689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5690 echo "${ECHO_T}$ac_header_preproc" >&6
5691
5692 # So?  What about this header?
5693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5694   yes:no: )
5695     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5699     ac_header_preproc=yes
5700     ;;
5701   no:yes:* )
5702     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5704     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5705 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5706     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5708     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5709 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5712     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5714     (
5715       cat <<\_ASBOX
5716 ## ------------------------------------------ ##
5717 ## Report this to the AC_PACKAGE_NAME lists.  ##
5718 ## ------------------------------------------ ##
5719 _ASBOX
5720     ) |
5721       sed "s/^/$as_me: WARNING:     /" >&2
5722     ;;
5723 esac
5724 echo "$as_me:$LINENO: checking for $ac_header" >&5
5725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729   eval "$as_ac_Header=\$ac_header_preproc"
5730 fi
5731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5733
5734 fi
5735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5736   cat >>confdefs.h <<_ACEOF
5737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5738 _ACEOF
5739
5740 fi
5741
5742 done
5743
5744     if test $ac_cv_header_sys_inttypes_h = yes; then
5745       HAVE_SYS_INTTYPES_H=1
5746     else
5747       HAVE_SYS_INTTYPES_H=0
5748     fi
5749
5750     if test $ac_cv_header_sys_bitypes_h = yes; then
5751       HAVE_SYS_BITYPES_H=1
5752     else
5753       HAVE_SYS_BITYPES_H=0
5754     fi
5755
5756
5757
5758   :
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5774     echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5775 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5776 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   if test "$cross_compiling" = yes; then
5780   # Depending upon the size, compute the lo and hi bounds.
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787
5788   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5789      included before <wchar.h>.  */
5790   #include <stddef.h>
5791   #include <signal.h>
5792   #if HAVE_WCHAR_H
5793   # include <stdio.h>
5794   # include <time.h>
5795   # include <wchar.h>
5796   #endif
5797
5798 #include <limits.h>
5799 int
5800 main ()
5801 {
5802 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5803 test_array [0] = 0
5804
5805   ;
5806   return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811   (eval $ac_compile) 2>conftest.er1
5812   ac_status=$?
5813   grep -v '^ *+' conftest.er1 >conftest.err
5814   rm -f conftest.er1
5815   cat conftest.err >&5
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); } &&
5818          { ac_try='test -z "$ac_c_werror_flag"
5819                          || test ! -s conftest.err'
5820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821   (eval $ac_try) 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; } &&
5825          { ac_try='test -s conftest.$ac_objext'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; }; then
5831   ac_lo=0 ac_mid=0
5832   while :; do
5833     cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h.  */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h.  */
5839
5840   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5841      included before <wchar.h>.  */
5842   #include <stddef.h>
5843   #include <signal.h>
5844   #if HAVE_WCHAR_H
5845   # include <stdio.h>
5846   # include <time.h>
5847   # include <wchar.h>
5848   #endif
5849
5850 #include <limits.h>
5851 int
5852 main ()
5853 {
5854 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5855 test_array [0] = 0
5856
5857   ;
5858   return 0;
5859 }
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863   (eval $ac_compile) 2>conftest.er1
5864   ac_status=$?
5865   grep -v '^ *+' conftest.er1 >conftest.err
5866   rm -f conftest.er1
5867   cat conftest.err >&5
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); } &&
5870          { ac_try='test -z "$ac_c_werror_flag"
5871                          || test ! -s conftest.err'
5872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873   (eval $ac_try) 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }; } &&
5877          { ac_try='test -s conftest.$ac_objext'
5878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879   (eval $ac_try) 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }; }; then
5883   ac_hi=$ac_mid; break
5884 else
5885   echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888 ac_lo=`expr $ac_mid + 1`
5889                     if test $ac_lo -le $ac_mid; then
5890                       ac_lo= ac_hi=
5891                       break
5892                     fi
5893                     ac_mid=`expr 2 '*' $ac_mid + 1`
5894 fi
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896   done
5897 else
5898   echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h.  */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h.  */
5907
5908   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5909      included before <wchar.h>.  */
5910   #include <stddef.h>
5911   #include <signal.h>
5912   #if HAVE_WCHAR_H
5913   # include <stdio.h>
5914   # include <time.h>
5915   # include <wchar.h>
5916   #endif
5917
5918 #include <limits.h>
5919 int
5920 main ()
5921 {
5922 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5923 test_array [0] = 0
5924
5925   ;
5926   return 0;
5927 }
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931   (eval $ac_compile) 2>conftest.er1
5932   ac_status=$?
5933   grep -v '^ *+' conftest.er1 >conftest.err
5934   rm -f conftest.er1
5935   cat conftest.err >&5
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); } &&
5938          { ac_try='test -z "$ac_c_werror_flag"
5939                          || test ! -s conftest.err'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; } &&
5945          { ac_try='test -s conftest.$ac_objext'
5946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947   (eval $ac_try) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; }; then
5951   ac_hi=-1 ac_mid=-1
5952   while :; do
5953     cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959
5960   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5961      included before <wchar.h>.  */
5962   #include <stddef.h>
5963   #include <signal.h>
5964   #if HAVE_WCHAR_H
5965   # include <stdio.h>
5966   # include <time.h>
5967   # include <wchar.h>
5968   #endif
5969
5970 #include <limits.h>
5971 int
5972 main ()
5973 {
5974 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5975 test_array [0] = 0
5976
5977   ;
5978   return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest.$ac_objext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983   (eval $ac_compile) 2>conftest.er1
5984   ac_status=$?
5985   grep -v '^ *+' conftest.er1 >conftest.err
5986   rm -f conftest.er1
5987   cat conftest.err >&5
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); } &&
5990          { ac_try='test -z "$ac_c_werror_flag"
5991                          || test ! -s conftest.err'
5992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993   (eval $ac_try) 2>&5
5994   ac_status=$?
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); }; } &&
5997          { ac_try='test -s conftest.$ac_objext'
5998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999   (eval $ac_try) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; }; then
6003   ac_lo=$ac_mid; break
6004 else
6005   echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6007
6008 ac_hi=`expr '(' $ac_mid ')' - 1`
6009                        if test $ac_mid -le $ac_hi; then
6010                          ac_lo= ac_hi=
6011                          break
6012                        fi
6013                        ac_mid=`expr 2 '*' $ac_mid`
6014 fi
6015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016   done
6017 else
6018   echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6020
6021 ac_lo= ac_hi=
6022 fi
6023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6024 fi
6025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026 # Binary search between lo and hi bounds.
6027 while test "x$ac_lo" != "x$ac_hi"; do
6028   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6029   cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h.  */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h.  */
6035
6036   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6037      included before <wchar.h>.  */
6038   #include <stddef.h>
6039   #include <signal.h>
6040   #if HAVE_WCHAR_H
6041   # include <stdio.h>
6042   # include <time.h>
6043   # include <wchar.h>
6044   #endif
6045
6046 #include <limits.h>
6047 int
6048 main ()
6049 {
6050 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6051 test_array [0] = 0
6052
6053   ;
6054   return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059   (eval $ac_compile) 2>conftest.er1
6060   ac_status=$?
6061   grep -v '^ *+' conftest.er1 >conftest.err
6062   rm -f conftest.er1
6063   cat conftest.err >&5
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } &&
6066          { ac_try='test -z "$ac_c_werror_flag"
6067                          || test ! -s conftest.err'
6068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069   (eval $ac_try) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); }; } &&
6073          { ac_try='test -s conftest.$ac_objext'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; }; then
6079   ac_hi=$ac_mid
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ac_lo=`expr '(' $ac_mid ')' + 1`
6085 fi
6086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6087 done
6088 case $ac_lo in
6089 ?*) result=$ac_lo;;
6090 '') result=unknown ;;
6091 esac
6092 else
6093   if test "$cross_compiling" = yes; then
6094   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6095 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6096 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6097 See \`config.log' for more details." >&5
6098 echo "$as_me: error: cannot run test program while cross compiling
6099 See \`config.log' for more details." >&2;}
6100    { (exit 1); exit 1; }; }; }
6101 else
6102   cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h.  */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h.  */
6108
6109   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6110      included before <wchar.h>.  */
6111   #include <stddef.h>
6112   #include <signal.h>
6113   #if HAVE_WCHAR_H
6114   # include <stdio.h>
6115   # include <time.h>
6116   # include <wchar.h>
6117   #endif
6118
6119 #include <limits.h>
6120 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6121 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6122 #include <stdio.h>
6123 #include <stdlib.h>
6124 int
6125 main ()
6126 {
6127
6128   FILE *f = fopen ("conftest.val", "w");
6129   if (! f)
6130     exit (1);
6131   if ((sizeof ($gltype) * CHAR_BIT) < 0)
6132     {
6133       long i = longval ();
6134       if (i != (sizeof ($gltype) * CHAR_BIT))
6135         exit (1);
6136       fprintf (f, "%ld\n", i);
6137     }
6138   else
6139     {
6140       unsigned long i = ulongval ();
6141       if (i != (sizeof ($gltype) * CHAR_BIT))
6142         exit (1);
6143       fprintf (f, "%lu\n", i);
6144     }
6145   exit (ferror (f) || fclose (f) != 0);
6146
6147   ;
6148   return 0;
6149 }
6150 _ACEOF
6151 rm -f conftest$ac_exeext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6153   (eval $ac_link) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   result=`cat conftest.val`
6163 else
6164   echo "$as_me: program exited with status $ac_status" >&5
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 ( exit $ac_status )
6169 result=unknown
6170 fi
6171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6172 fi
6173 fi
6174 rm -f conftest.val
6175        eval gl_cv_bitsizeof_${gltype}=\$result
6176
6177 fi
6178 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6180     eval result=\$gl_cv_bitsizeof_${gltype}
6181     if test $result = unknown; then
6182                                                 result=0
6183     fi
6184     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6185     cat >>confdefs.h <<_ACEOF
6186 #define BITSIZEOF_${GLTYPE} $result
6187 _ACEOF
6188
6189     eval BITSIZEOF_${GLTYPE}=\$result
6190   done
6191
6192
6193
6194
6195
6196
6197
6198   for gltype in sig_atomic_t wchar_t wint_t ; do
6199     echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6200 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6201 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6202   echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204   cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210
6211   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6212      included before <wchar.h>.  */
6213   #include <stddef.h>
6214   #include <signal.h>
6215   #if HAVE_WCHAR_H
6216   # include <stdio.h>
6217   # include <time.h>
6218   # include <wchar.h>
6219   #endif
6220
6221             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6222 int
6223 main ()
6224 {
6225
6226   ;
6227   return 0;
6228 }
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232   (eval $ac_compile) 2>conftest.er1
6233   ac_status=$?
6234   grep -v '^ *+' conftest.er1 >conftest.err
6235   rm -f conftest.er1
6236   cat conftest.err >&5
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); } &&
6239          { ac_try='test -z "$ac_c_werror_flag"
6240                          || test ! -s conftest.err'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; } &&
6246          { ac_try='test -s conftest.$ac_objext'
6247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248   (eval $ac_try) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; }; then
6252   result=yes
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 result=no
6258 fi
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260        eval gl_cv_type_${gltype}_signed=\$result
6261
6262 fi
6263 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6264 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6265     eval result=\$gl_cv_type_${gltype}_signed
6266     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6267     if test "$result" = yes; then
6268       cat >>confdefs.h <<_ACEOF
6269 #define HAVE_SIGNED_${GLTYPE} 1
6270 _ACEOF
6271
6272       eval HAVE_SIGNED_${GLTYPE}=1
6273     else
6274       eval HAVE_SIGNED_${GLTYPE}=0
6275     fi
6276   done
6277
6278
6279   gl_cv_type_ptrdiff_t_signed=yes
6280   gl_cv_type_size_t_signed=no
6281
6282
6283
6284
6285
6286
6287
6288   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6289     echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6290 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6291 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   eval gl_cv_type_${gltype}_suffix=no
6295        eval result=\$gl_cv_type_${gltype}_signed
6296        if test "$result" = yes; then
6297          glsufu=
6298        else
6299          glsufu=u
6300        fi
6301        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6302          case $glsuf in
6303            '')  gltype1='int';;
6304            l)   gltype1='long int';;
6305            ll)  gltype1='long long int';;
6306            i64) gltype1='__int64';;
6307            u)   gltype1='unsigned int';;
6308            ul)  gltype1='unsigned long int';;
6309            ull) gltype1='unsigned long long int';;
6310            ui64)gltype1='unsigned __int64';;
6311          esac
6312          cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h.  */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h.  */
6318
6319   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6320      included before <wchar.h>.  */
6321   #include <stddef.h>
6322   #include <signal.h>
6323   #if HAVE_WCHAR_H
6324   # include <stdio.h>
6325   # include <time.h>
6326   # include <wchar.h>
6327   #endif
6328
6329               extern $gltype foo;
6330               extern $gltype1 foo;
6331 int
6332 main ()
6333 {
6334
6335   ;
6336   return 0;
6337 }
6338 _ACEOF
6339 rm -f conftest.$ac_objext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341   (eval $ac_compile) 2>conftest.er1
6342   ac_status=$?
6343   grep -v '^ *+' conftest.er1 >conftest.err
6344   rm -f conftest.er1
6345   cat conftest.err >&5
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); } &&
6348          { ac_try='test -z "$ac_c_werror_flag"
6349                          || test ! -s conftest.err'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; } &&
6355          { ac_try='test -s conftest.$ac_objext'
6356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357   (eval $ac_try) 2>&5
6358   ac_status=$?
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); }; }; then
6361   eval gl_cv_type_${gltype}_suffix=\$glsuf
6362 else
6363   echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 fi
6367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6368          eval result=\$gl_cv_type_${gltype}_suffix
6369          test "$result" != no && break
6370        done
6371 fi
6372 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6374     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6375     eval result=\$gl_cv_type_${gltype}_suffix
6376     test "$result" = no && result=
6377     eval ${GLTYPE}_SUFFIX=\$result
6378     cat >>confdefs.h <<_ACEOF
6379 #define ${GLTYPE}_SUFFIX $result
6380 _ACEOF
6381
6382   done
6383
6384
6385
6386     STDINT_H=stdint.h
6387   fi
6388
6389
6390
6391
6392
6393
6394
6395   echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6396 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6397 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400   cat >conftest.$ac_ext <<_ACEOF
6401 #include <wchar.h>
6402 wchar_t w;
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406   (eval $ac_compile) 2>conftest.er1
6407   ac_status=$?
6408   grep -v '^ *+' conftest.er1 >conftest.err
6409   rm -f conftest.er1
6410   cat conftest.err >&5
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } &&
6413          { ac_try='test -z "$ac_c_werror_flag"
6414                          || test ! -s conftest.err'
6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416   (eval $ac_try) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; } &&
6420          { ac_try='test -s conftest.$ac_objext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   gl_cv_header_wchar_h_standalone=yes
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 gl_cv_header_wchar_h_standalone=no
6432 fi
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6436 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6437   if test $gl_cv_header_wchar_h_standalone != yes; then
6438     WCHAR_H=wchar.h
6439   fi
6440
6441
6442   :
6443
6444
6445
6446
6447
6448   if test $ac_cv_header_wchar_h = yes; then
6449     HAVE_WCHAR_H=1
6450   else
6451     HAVE_WCHAR_H=0
6452   fi
6453
6454
6455
6456
6457   :
6458
6459
6460
6461
6462
6463
6464
6465      if test $gl_cv_have_include_next = yes; then
6466        gl_cv_next_wchar_h='<'wchar.h'>'
6467      else
6468        echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6469 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6470 if test "${gl_cv_next_wchar_h+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473
6474           if test $ac_cv_header_wchar_h = yes; then
6475             cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h.  */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h.  */
6481 #include <wchar.h>
6482
6483 _ACEOF
6484                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6485                sed -n '\#/wchar.h#{
6486                  s#.*"\(.*/wchar.h\)".*#\1#
6487                  s#^/[^/]#//&#
6488                  p
6489                  q
6490                }'`'"'
6491           else
6492             gl_cv_next_wchar_h='<'wchar.h'>'
6493           fi
6494
6495 fi
6496 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6497 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6498      fi
6499      NEXT_WCHAR_H=$gl_cv_next_wchar_h
6500
6501
6502
6503
6504
6505
6506
6507
6508   gltests_libdeps=
6509   gltests_ltlibdeps=
6510
6511
6512
6513   gl_source_base='tests'
6514
6515
6516
6517
6518   LIBGNU_LIBDEPS="$gl_libdeps"
6519
6520   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6521
6522
6523
6524 # For Makefile dependencies.
6525 GNULIB_STDINT_H=
6526 if test x"$STDINT_H" != x; then
6527   GNULIB_STDINT_H=gnulib/$STDINT_H
6528 fi
6529
6530
6531 PACKAGE=gdb
6532
6533 cat >>confdefs.h <<_ACEOF
6534 #define PACKAGE "$PACKAGE"
6535 _ACEOF
6536
6537
6538
6539 # GDB does not use automake, but gnulib does.  This line lets us
6540 # generate its Makefile.in.
6541 am__api_version="1.9"
6542 # Find a good install program.  We prefer a C program (faster),
6543 # so one script is as good as another.  But avoid the broken or
6544 # incompatible versions:
6545 # SysV /etc/install, /usr/sbin/install
6546 # SunOS /usr/etc/install
6547 # IRIX /sbin/install
6548 # AIX /bin/install
6549 # AmigaOS /C/install, which installs bootblocks on floppy discs
6550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6553 # OS/2's system install, which has a completely different semantic
6554 # ./install, which can be erroneously created by make from ./install.sh.
6555 # Reject install programs that cannot install multiple files.
6556 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6557 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6558 if test -z "$INSTALL"; then
6559 if test "${ac_cv_path_install+set}" = set; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565   IFS=$as_save_IFS
6566   test -z "$as_dir" && as_dir=.
6567   # Account for people who put trailing slashes in PATH elements.
6568 case $as_dir/ in
6569   ./ | .// | /cC/* | \
6570   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6571   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6572   /usr/ucb/* ) ;;
6573   *)
6574     # OSF1 and SCO ODT 3.0 have their own names for install.
6575     # Don't use installbsd from OSF since it installs stuff as root
6576     # by default.
6577     for ac_prog in ginstall scoinst install; do
6578       for ac_exec_ext in '' $ac_executable_extensions; do
6579         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6580           if test $ac_prog = install &&
6581             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6582             # AIX install.  It has an incompatible calling convention.
6583             :
6584           elif test $ac_prog = install &&
6585             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6586             # program-specific install script used by HP pwplus--don't use.
6587             :
6588           else
6589             rm -rf conftest.one conftest.two conftest.dir
6590             echo one > conftest.one
6591             echo two > conftest.two
6592             mkdir conftest.dir
6593             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6594               test -s conftest.one && test -s conftest.two &&
6595               test -s conftest.dir/conftest.one &&
6596               test -s conftest.dir/conftest.two
6597             then
6598               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6599               break 3
6600             fi
6601           fi
6602         fi
6603       done
6604     done
6605     ;;
6606 esac
6607 done
6608
6609 rm -rf conftest.one conftest.two conftest.dir
6610
6611 fi
6612   if test "${ac_cv_path_install+set}" = set; then
6613     INSTALL=$ac_cv_path_install
6614   else
6615     # As a last resort, use the slow shell script.  Don't cache a
6616     # value for INSTALL within a source directory, because that will
6617     # break other packages using the cache if that directory is
6618     # removed, or if the value is a relative name.
6619     INSTALL=$ac_install_sh
6620   fi
6621 fi
6622 echo "$as_me:$LINENO: result: $INSTALL" >&5
6623 echo "${ECHO_T}$INSTALL" >&6
6624
6625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6626 # It thinks the first close brace ends the variable substitution.
6627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6628
6629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6630
6631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6632
6633 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6634 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6635 # Just in case
6636 sleep 1
6637 echo timestamp > conftest.file
6638 # Do `set' in a subshell so we don't clobber the current shell's
6639 # arguments.  Must try -L first in case configure is actually a
6640 # symlink; some systems play weird games with the mod time of symlinks
6641 # (eg FreeBSD returns the mod time of the symlink's containing
6642 # directory).
6643 if (
6644    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6645    if test "$*" = "X"; then
6646       # -L didn't work.
6647       set X `ls -t $srcdir/configure conftest.file`
6648    fi
6649    rm -f conftest.file
6650    if test "$*" != "X $srcdir/configure conftest.file" \
6651       && test "$*" != "X conftest.file $srcdir/configure"; then
6652
6653       # If neither matched, then we have a broken ls.  This can happen
6654       # if, for instance, CONFIG_SHELL is bash and it inherits a
6655       # broken ls alias from the environment.  This has actually
6656       # happened.  Such a system could not be considered "sane".
6657       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
6658 alias in your environment" >&5
6659 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
6660 alias in your environment" >&2;}
6661    { (exit 1); exit 1; }; }
6662    fi
6663
6664    test "$2" = conftest.file
6665    )
6666 then
6667    # Ok.
6668    :
6669 else
6670    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6671 Check your system clock" >&5
6672 echo "$as_me: error: newly created file is older than distributed files!
6673 Check your system clock" >&2;}
6674    { (exit 1); exit 1; }; }
6675 fi
6676 echo "$as_me:$LINENO: result: yes" >&5
6677 echo "${ECHO_T}yes" >&6
6678 test "$program_prefix" != NONE &&
6679   program_transform_name="s,^,$program_prefix,;$program_transform_name"
6680 # Use a double $ so make ignores it.
6681 test "$program_suffix" != NONE &&
6682   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6683 # Double any \ or $.  echo might interpret backslashes.
6684 # By default was `s,x,x', remove it if useless.
6685 cat <<\_ACEOF >conftest.sed
6686 s/[\\$]/&&/g;s/;s,x,x,$//
6687 _ACEOF
6688 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6689 rm conftest.sed
6690
6691 # expand $ac_aux_dir to an absolute path
6692 am_aux_dir=`cd $ac_aux_dir && pwd`
6693
6694 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6695 # Use eval to expand $SHELL
6696 if eval "$MISSING --run true"; then
6697   am_missing_run="$MISSING --run "
6698 else
6699   am_missing_run=
6700   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6701 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6702 fi
6703
6704 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6705   # We used to keeping the `.' as first argument, in order to
6706   # allow $(mkdir_p) to be used without argument.  As in
6707   #   $(mkdir_p) $(somedir)
6708   # where $(somedir) is conditionally defined.  However this is wrong
6709   # for two reasons:
6710   #  1. if the package is installed by a user who cannot write `.'
6711   #     make install will fail,
6712   #  2. the above comment should most certainly read
6713   #     $(mkdir_p) $(DESTDIR)$(somedir)
6714   #     so it does not work when $(somedir) is undefined and
6715   #     $(DESTDIR) is not.
6716   #  To support the latter case, we have to write
6717   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6718   #  so the `.' trick is pointless.
6719   mkdir_p='mkdir -p --'
6720 else
6721   # On NextStep and OpenStep, the `mkdir' command does not
6722   # recognize any option.  It will interpret all options as
6723   # directories to create, and then abort because `.' already
6724   # exists.
6725   for d in ./-p ./--version;
6726   do
6727     test -d $d && rmdir $d
6728   done
6729   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6730   if test -f "$ac_aux_dir/mkinstalldirs"; then
6731     mkdir_p='$(mkinstalldirs)'
6732   else
6733     mkdir_p='$(install_sh) -d'
6734   fi
6735 fi
6736
6737 for ac_prog in gawk mawk nawk awk
6738 do
6739   # Extract the first word of "$ac_prog", so it can be a program name with args.
6740 set dummy $ac_prog; ac_word=$2
6741 echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6743 if test "${ac_cv_prog_AWK+set}" = set; then
6744   echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746   if test -n "$AWK"; then
6747   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754   for ac_exec_ext in '' $ac_executable_extensions; do
6755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756     ac_cv_prog_AWK="$ac_prog"
6757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761 done
6762
6763 fi
6764 fi
6765 AWK=$ac_cv_prog_AWK
6766 if test -n "$AWK"; then
6767   echo "$as_me:$LINENO: result: $AWK" >&5
6768 echo "${ECHO_T}$AWK" >&6
6769 else
6770   echo "$as_me:$LINENO: result: no" >&5
6771 echo "${ECHO_T}no" >&6
6772 fi
6773
6774   test -n "$AWK" && break
6775 done
6776
6777           ac_config_commands="$ac_config_commands depfiles"
6778
6779
6780 am_make=${MAKE-make}
6781 cat > confinc << 'END'
6782 am__doit:
6783         @echo done
6784 .PHONY: am__doit
6785 END
6786 # If we don't find an include directive, just comment out the code.
6787 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6788 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6789 am__include="#"
6790 am__quote=
6791 _am_result=none
6792 # First try GNU make style include.
6793 echo "include confinc" > confmf
6794 # We grep out `Entering directory' and `Leaving directory'
6795 # messages which can occur if `w' ends up in MAKEFLAGS.
6796 # In particular we don't look at `^make:' because GNU make might
6797 # be invoked under some other name (usually "gmake"), in which
6798 # case it prints its new name instead of `make'.
6799 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6800    am__include=include
6801    am__quote=
6802    _am_result=GNU
6803 fi
6804 # Now try BSD make style include.
6805 if test "$am__include" = "#"; then
6806    echo '.include "confinc"' > confmf
6807    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6808       am__include=.include
6809       am__quote="\""
6810       _am_result=BSD
6811    fi
6812 fi
6813
6814
6815 echo "$as_me:$LINENO: result: $_am_result" >&5
6816 echo "${ECHO_T}$_am_result" >&6
6817 rm -f confinc confmf
6818
6819 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6820 if test "${enable_dependency_tracking+set}" = set; then
6821   enableval="$enable_dependency_tracking"
6822
6823 fi;
6824 if test "x$enable_dependency_tracking" != xno; then
6825   am_depcomp="$ac_aux_dir/depcomp"
6826   AMDEPBACKSLASH='\'
6827 fi
6828
6829
6830 if test "x$enable_dependency_tracking" != xno; then
6831   AMDEP_TRUE=
6832   AMDEP_FALSE='#'
6833 else
6834   AMDEP_TRUE='#'
6835   AMDEP_FALSE=
6836 fi
6837
6838
6839
6840 # test to see if srcdir already configured
6841 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6842    test -f $srcdir/config.status; then
6843   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6844 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6845    { (exit 1); exit 1; }; }
6846 fi
6847
6848 # test whether we have cygpath
6849 if test -z "$CYGPATH_W"; then
6850   if (cygpath --version) >/dev/null 2>/dev/null; then
6851     CYGPATH_W='cygpath -w'
6852   else
6853     CYGPATH_W=echo
6854   fi
6855 fi
6856
6857
6858 # Define the identity of the package.
6859  PACKAGE=gdb
6860  VERSION=UNUSED-VERSION
6861
6862
6863 # Some tools Automake needs.
6864
6865 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6866
6867
6868 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6869
6870
6871 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6872
6873
6874 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6875
6876
6877 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6878
6879 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6880
6881 # Installed binaries are usually stripped using `strip' when the user
6882 # run `make install-strip'.  However `strip' might not be the right
6883 # tool to use in cross-compilation environments, therefore Automake
6884 # will honor the `STRIP' environment variable to overrule this program.
6885 if test "$cross_compiling" != no; then
6886   if test -n "$ac_tool_prefix"; then
6887   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6888 set dummy ${ac_tool_prefix}strip; ac_word=$2
6889 echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6891 if test "${ac_cv_prog_STRIP+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   if test -n "$STRIP"; then
6895   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900   IFS=$as_save_IFS
6901   test -z "$as_dir" && as_dir=.
6902   for ac_exec_ext in '' $ac_executable_extensions; do
6903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906     break 2
6907   fi
6908 done
6909 done
6910
6911 fi
6912 fi
6913 STRIP=$ac_cv_prog_STRIP
6914 if test -n "$STRIP"; then
6915   echo "$as_me:$LINENO: result: $STRIP" >&5
6916 echo "${ECHO_T}$STRIP" >&6
6917 else
6918   echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6
6920 fi
6921
6922 fi
6923 if test -z "$ac_cv_prog_STRIP"; then
6924   ac_ct_STRIP=$STRIP
6925   # Extract the first word of "strip", so it can be a program name with args.
6926 set dummy strip; ac_word=$2
6927 echo "$as_me:$LINENO: checking for $ac_word" >&5
6928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6929 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6930   echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932   if test -n "$ac_ct_STRIP"; then
6933   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940   for ac_exec_ext in '' $ac_executable_extensions; do
6941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942     ac_cv_prog_ac_ct_STRIP="strip"
6943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947 done
6948
6949   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6950 fi
6951 fi
6952 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6953 if test -n "$ac_ct_STRIP"; then
6954   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6955 echo "${ECHO_T}$ac_ct_STRIP" >&6
6956 else
6957   echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6
6959 fi
6960
6961   STRIP=$ac_ct_STRIP
6962 else
6963   STRIP="$ac_cv_prog_STRIP"
6964 fi
6965
6966 fi
6967 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6968
6969 # We need awk for the "check" target.  The system "awk" is bad on
6970 # some platforms.
6971 # Always define AMTAR for backward compatibility.
6972
6973 AMTAR=${AMTAR-"${am_missing_run}tar"}
6974
6975 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6976
6977
6978
6979
6980 depcc="$CC"   am_compiler_list=
6981
6982 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6983 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6984 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6988   # We make a subdir and do the tests there.  Otherwise we can end up
6989   # making bogus files that we don't know about and never remove.  For
6990   # instance it was reported that on HP-UX the gcc test will end up
6991   # making a dummy file named `D' -- because `-MD' means `put the output
6992   # in D'.
6993   mkdir conftest.dir
6994   # Copy depcomp to subdir because otherwise we won't find it if we're
6995   # using a relative directory.
6996   cp "$am_depcomp" conftest.dir
6997   cd conftest.dir
6998   # We will build objects and dependencies in a subdirectory because
6999   # it helps to detect inapplicable dependency modes.  For instance
7000   # both Tru64's cc and ICC support -MD to output dependencies as a
7001   # side effect of compilation, but ICC will put the dependencies in
7002   # the current directory while Tru64 will put them in the object
7003   # directory.
7004   mkdir sub
7005
7006   am_cv_CC_dependencies_compiler_type=none
7007   if test "$am_compiler_list" = ""; then
7008      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7009   fi
7010   for depmode in $am_compiler_list; do
7011     # Setup a source with many dependencies, because some compilers
7012     # like to wrap large dependency lists on column 80 (with \), and
7013     # we should not choose a depcomp mode which is confused by this.
7014     #
7015     # We need to recreate these files for each test, as the compiler may
7016     # overwrite some of them when testing with obscure command lines.
7017     # This happens at least with the AIX C compiler.
7018     : > sub/conftest.c
7019     for i in 1 2 3 4 5 6; do
7020       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7021       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7022       # Solaris 8's {/usr,}/bin/sh.
7023       touch sub/conftst$i.h
7024     done
7025     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7026
7027     case $depmode in
7028     nosideeffect)
7029       # after this tag, mechanisms are not by side-effect, so they'll
7030       # only be used when explicitly requested
7031       if test "x$enable_dependency_tracking" = xyes; then
7032         continue
7033       else
7034         break
7035       fi
7036       ;;
7037     none) break ;;
7038     esac
7039     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7040     # mode.  It turns out that the SunPro C++ compiler does not properly
7041     # handle `-M -o', and we need to detect this.
7042     if depmode=$depmode \
7043        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7044        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7045        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7046          >/dev/null 2>conftest.err &&
7047        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7048        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7049        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7050       # icc doesn't choke on unknown options, it will just issue warnings
7051       # or remarks (even with -Werror).  So we grep stderr for any message
7052       # that says an option was ignored or not supported.
7053       # When given -MP, icc 7.0 and 7.1 complain thusly:
7054       #   icc: Command line warning: ignoring option '-M'; no argument required
7055       # The diagnosis changed in icc 8.0:
7056       #   icc: Command line remark: option '-MP' not supported
7057       if (grep 'ignoring option' conftest.err ||
7058           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7059         am_cv_CC_dependencies_compiler_type=$depmode
7060         break
7061       fi
7062     fi
7063   done
7064
7065   cd ..
7066   rm -rf conftest.dir
7067 else
7068   am_cv_CC_dependencies_compiler_type=none
7069 fi
7070
7071 fi
7072 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7073 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7074 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7075
7076
7077
7078 if
7079   test "x$enable_dependency_tracking" != xno \
7080   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7081   am__fastdepCC_TRUE=
7082   am__fastdepCC_FALSE='#'
7083 else
7084   am__fastdepCC_TRUE='#'
7085   am__fastdepCC_FALSE=
7086 fi
7087
7088
7089
7090
7091 debugdir=${libdir}/debug
7092
7093
7094 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7095 if test "${with_separate_debug_dir+set}" = set; then
7096   withval="$with_separate_debug_dir"
7097   debugdir="${withval}"
7098 fi;
7099
7100
7101   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7102   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7103   ac_define_dir=`eval echo $debugdir`
7104   ac_define_dir=`eval echo $ac_define_dir`
7105
7106 cat >>confdefs.h <<_ACEOF
7107 #define DEBUGDIR "$ac_define_dir"
7108 _ACEOF
7109
7110
7111 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7112
7113 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7114   if test "x$prefix" = xNONE; then
7115     test_prefix=/usr/local
7116   else
7117     test_prefix=$prefix
7118   fi
7119 else
7120   test_prefix=$exec_prefix
7121 fi
7122 case ${debugdir} in
7123 "${test_prefix}"|"${test_prefix}/"*|\
7124 '${exec_prefix}'|'${exec_prefix}/'*)
7125
7126 cat >>confdefs.h <<\_ACEOF
7127 #define DEBUGDIR_RELOCATABLE 1
7128 _ACEOF
7129
7130   ;;
7131 esac
7132
7133
7134
7135 subdirs="$subdirs doc testsuite"
7136
7137
7138 # Check whether to support alternative target configurations
7139 # Check whether --enable-targets or --disable-targets was given.
7140 if test "${enable_targets+set}" = set; then
7141   enableval="$enable_targets"
7142   case "${enableval}" in
7143   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7144 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7145    { (exit 1); exit 1; }; }
7146             ;;
7147   no)       enable_targets= ;;
7148   *)        enable_targets=$enableval ;;
7149 esac
7150 fi;
7151
7152 # Check whether to enable 64-bit support on 32-bit hosts
7153 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7154 if test "${enable_64_bit_bfd+set}" = set; then
7155   enableval="$enable_64_bit_bfd"
7156   case "${enableval}" in
7157   yes)  want64=true  ;;
7158   no)   want64=false ;;
7159   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7160 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7161    { (exit 1); exit 1; }; } ;;
7162 esac
7163 else
7164   want64=false
7165 fi;
7166 # Provide defaults for some variables set by the per-host and per-target
7167 # configuration.
7168 gdb_host_obs=posix-hdep.o
7169
7170 if test "${target}" = "${host}"; then
7171   gdb_native=yes
7172 else
7173   gdb_native=no
7174 fi
7175
7176 . $srcdir/configure.host
7177
7178 # Accumulate some settings from configure.tgt over all enabled targets
7179
7180 TARGET_OBS=
7181 all_targets=
7182
7183 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7184 do
7185   if test "$targ_alias" = "all"; then
7186     all_targets=true
7187   else
7188     # Canonicalize the secondary target names.
7189     result=`$ac_config_sub $targ_alias 2>/dev/null`
7190     if test -n "$result"; then
7191         targ=$result
7192     else
7193         targ=$targ_alias
7194     fi
7195
7196     . ${srcdir}/configure.tgt
7197
7198     # Target-specific object files
7199     for i in ${gdb_target_obs}; do
7200         case " $TARGET_OBS " in
7201         *" ${i} "*) ;;
7202         *)
7203           TARGET_OBS="$TARGET_OBS ${i}"
7204           ;;
7205         esac
7206     done
7207
7208     # Check whether this target needs 64-bit CORE_ADDR
7209     if test x${want64} = xfalse; then
7210       . ${srcdir}/../bfd/config.bfd
7211     fi
7212   fi
7213 done
7214
7215 if test x${all_targets} = xtrue; then
7216
7217   # We want all 64-bit targets if we either:
7218   #  - run on a 64-bit host  or
7219   #  - already require 64-bit support for some other target  or
7220   #  - the --enable-64-bit-bfd option was supplied
7221   # Otherwise we only support all 32-bit targets.
7222   #
7223   # NOTE: This test must be in sync with the corresponding
7224   #       tests in BFD!
7225
7226   if test x${want64} = xfalse; then
7227     echo "$as_me:$LINENO: checking for long" >&5
7228 echo $ECHO_N "checking for long... $ECHO_C" >&6
7229 if test "${ac_cv_type_long+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   cat >conftest.$ac_ext <<_ACEOF
7233 /* confdefs.h.  */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h.  */
7238 $ac_includes_default
7239 int
7240 main ()
7241 {
7242 if ((long *) 0)
7243   return 0;
7244 if (sizeof (long))
7245   return 0;
7246   ;
7247   return 0;
7248 }
7249 _ACEOF
7250 rm -f conftest.$ac_objext
7251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7252   (eval $ac_compile) 2>conftest.er1
7253   ac_status=$?
7254   grep -v '^ *+' conftest.er1 >conftest.err
7255   rm -f conftest.er1
7256   cat conftest.err >&5
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } &&
7259          { ac_try='test -z "$ac_c_werror_flag"
7260                          || test ! -s conftest.err'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; } &&
7266          { ac_try='test -s conftest.$ac_objext'
7267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268   (eval $ac_try) 2>&5
7269   ac_status=$?
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); }; }; then
7272   ac_cv_type_long=yes
7273 else
7274   echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7276
7277 ac_cv_type_long=no
7278 fi
7279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7280 fi
7281 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7282 echo "${ECHO_T}$ac_cv_type_long" >&6
7283
7284 echo "$as_me:$LINENO: checking size of long" >&5
7285 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7286 if test "${ac_cv_sizeof_long+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   if test "$ac_cv_type_long" = yes; then
7290   # The cast to unsigned long works around a bug in the HP C Compiler
7291   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7292   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7293   # This bug is HP SR number 8606223364.
7294   if test "$cross_compiling" = yes; then
7295   # Depending upon the size, compute the lo and hi bounds.
7296 cat >conftest.$ac_ext <<_ACEOF
7297 /* confdefs.h.  */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h.  */
7302 $ac_includes_default
7303 int
7304 main ()
7305 {
7306 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7307 test_array [0] = 0
7308
7309   ;
7310   return 0;
7311 }
7312 _ACEOF
7313 rm -f conftest.$ac_objext
7314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7315   (eval $ac_compile) 2>conftest.er1
7316   ac_status=$?
7317   grep -v '^ *+' conftest.er1 >conftest.err
7318   rm -f conftest.er1
7319   cat conftest.err >&5
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); } &&
7322          { ac_try='test -z "$ac_c_werror_flag"
7323                          || test ! -s conftest.err'
7324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325   (eval $ac_try) 2>&5
7326   ac_status=$?
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); }; } &&
7329          { ac_try='test -s conftest.$ac_objext'
7330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331   (eval $ac_try) 2>&5
7332   ac_status=$?
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); }; }; then
7335   ac_lo=0 ac_mid=0
7336   while :; do
7337     cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h.  */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h.  */
7343 $ac_includes_default
7344 int
7345 main ()
7346 {
7347 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7348 test_array [0] = 0
7349
7350   ;
7351   return 0;
7352 }
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356   (eval $ac_compile) 2>conftest.er1
7357   ac_status=$?
7358   grep -v '^ *+' conftest.er1 >conftest.err
7359   rm -f conftest.er1
7360   cat conftest.err >&5
7361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362   (exit $ac_status); } &&
7363          { ac_try='test -z "$ac_c_werror_flag"
7364                          || test ! -s conftest.err'
7365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366   (eval $ac_try) 2>&5
7367   ac_status=$?
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); }; } &&
7370          { ac_try='test -s conftest.$ac_objext'
7371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372   (eval $ac_try) 2>&5
7373   ac_status=$?
7374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375   (exit $ac_status); }; }; then
7376   ac_hi=$ac_mid; break
7377 else
7378   echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7380
7381 ac_lo=`expr $ac_mid + 1`
7382                     if test $ac_lo -le $ac_mid; then
7383                       ac_lo= ac_hi=
7384                       break
7385                     fi
7386                     ac_mid=`expr 2 '*' $ac_mid + 1`
7387 fi
7388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7389   done
7390 else
7391   echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7393
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h.  */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h.  */
7400 $ac_includes_default
7401 int
7402 main ()
7403 {
7404 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7405 test_array [0] = 0
7406
7407   ;
7408   return 0;
7409 }
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7413   (eval $ac_compile) 2>conftest.er1
7414   ac_status=$?
7415   grep -v '^ *+' conftest.er1 >conftest.err
7416   rm -f conftest.er1
7417   cat conftest.err >&5
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } &&
7420          { ac_try='test -z "$ac_c_werror_flag"
7421                          || test ! -s conftest.err'
7422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423   (eval $ac_try) 2>&5
7424   ac_status=$?
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); }; } &&
7427          { ac_try='test -s conftest.$ac_objext'
7428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429   (eval $ac_try) 2>&5
7430   ac_status=$?
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); }; }; then
7433   ac_hi=-1 ac_mid=-1
7434   while :; do
7435     cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441 $ac_includes_default
7442 int
7443 main ()
7444 {
7445 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7446 test_array [0] = 0
7447
7448   ;
7449   return 0;
7450 }
7451 _ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454   (eval $ac_compile) 2>conftest.er1
7455   ac_status=$?
7456   grep -v '^ *+' conftest.er1 >conftest.err
7457   rm -f conftest.er1
7458   cat conftest.err >&5
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); } &&
7461          { ac_try='test -z "$ac_c_werror_flag"
7462                          || test ! -s conftest.err'
7463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464   (eval $ac_try) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); }; } &&
7468          { ac_try='test -s conftest.$ac_objext'
7469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470   (eval $ac_try) 2>&5
7471   ac_status=$?
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); }; }; then
7474   ac_lo=$ac_mid; break
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 ac_hi=`expr '(' $ac_mid ')' - 1`
7480                        if test $ac_mid -le $ac_hi; then
7481                          ac_lo= ac_hi=
7482                          break
7483                        fi
7484                        ac_mid=`expr 2 '*' $ac_mid`
7485 fi
7486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7487   done
7488 else
7489   echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7491
7492 ac_lo= ac_hi=
7493 fi
7494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7495 fi
7496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497 # Binary search between lo and hi bounds.
7498 while test "x$ac_lo" != "x$ac_hi"; do
7499   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7500   cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 $ac_includes_default
7507 int
7508 main ()
7509 {
7510 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7511 test_array [0] = 0
7512
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519   (eval $ac_compile) 2>conftest.er1
7520   ac_status=$?
7521   grep -v '^ *+' conftest.er1 >conftest.err
7522   rm -f conftest.er1
7523   cat conftest.err >&5
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } &&
7526          { ac_try='test -z "$ac_c_werror_flag"
7527                          || test ! -s conftest.err'
7528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; } &&
7533          { ac_try='test -s conftest.$ac_objext'
7534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535   (eval $ac_try) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); }; }; then
7539   ac_hi=$ac_mid
7540 else
7541   echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7543
7544 ac_lo=`expr '(' $ac_mid ')' + 1`
7545 fi
7546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7547 done
7548 case $ac_lo in
7549 ?*) ac_cv_sizeof_long=$ac_lo;;
7550 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7551 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7553 See \`config.log' for more details." >&5
7554 echo "$as_me: error: cannot compute sizeof (long), 77
7555 See \`config.log' for more details." >&2;}
7556    { (exit 1); exit 1; }; }; } ;;
7557 esac
7558 else
7559   if test "$cross_compiling" = yes; then
7560   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7561 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7562 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7563 See \`config.log' for more details." >&5
7564 echo "$as_me: error: cannot run test program while cross compiling
7565 See \`config.log' for more details." >&2;}
7566    { (exit 1); exit 1; }; }; }
7567 else
7568   cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h.  */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h.  */
7574 $ac_includes_default
7575 long longval () { return (long) (sizeof (long)); }
7576 unsigned long ulongval () { return (long) (sizeof (long)); }
7577 #include <stdio.h>
7578 #include <stdlib.h>
7579 int
7580 main ()
7581 {
7582
7583   FILE *f = fopen ("conftest.val", "w");
7584   if (! f)
7585     exit (1);
7586   if (((long) (sizeof (long))) < 0)
7587     {
7588       long i = longval ();
7589       if (i != ((long) (sizeof (long))))
7590         exit (1);
7591       fprintf (f, "%ld\n", i);
7592     }
7593   else
7594     {
7595       unsigned long i = ulongval ();
7596       if (i != ((long) (sizeof (long))))
7597         exit (1);
7598       fprintf (f, "%lu\n", i);
7599     }
7600   exit (ferror (f) || fclose (f) != 0);
7601
7602   ;
7603   return 0;
7604 }
7605 _ACEOF
7606 rm -f conftest$ac_exeext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7608   (eval $ac_link) 2>&5
7609   ac_status=$?
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613   (eval $ac_try) 2>&5
7614   ac_status=$?
7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); }; }; then
7617   ac_cv_sizeof_long=`cat conftest.val`
7618 else
7619   echo "$as_me: program exited with status $ac_status" >&5
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 ( exit $ac_status )
7624 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7625 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7627 See \`config.log' for more details." >&5
7628 echo "$as_me: error: cannot compute sizeof (long), 77
7629 See \`config.log' for more details." >&2;}
7630    { (exit 1); exit 1; }; }; }
7631 fi
7632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7633 fi
7634 fi
7635 rm -f conftest.val
7636 else
7637   ac_cv_sizeof_long=0
7638 fi
7639 fi
7640 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7641 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7642 cat >>confdefs.h <<_ACEOF
7643 #define SIZEOF_LONG $ac_cv_sizeof_long
7644 _ACEOF
7645
7646
7647     if test "x${ac_cv_sizeof_long}" = "x8"; then
7648       want64=true
7649     fi
7650   fi
7651   if test x${want64} = xtrue; then
7652     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7653   else
7654     TARGET_OBS='$(ALL_TARGET_OBS)'
7655   fi
7656 fi
7657
7658
7659
7660 # For other settings, only the main target counts.
7661 gdb_sim=
7662 gdb_osabi=
7663 build_gdbserver=
7664 targ=$target; . ${srcdir}/configure.tgt
7665
7666 # Fetch the default architecture and default target vector from BFD.
7667 targ=$target; . $srcdir/../bfd/config.bfd
7668
7669 # We only want the first architecture, so strip off the others if
7670 # there is more than one.
7671 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7672
7673 if test "x$targ_archs" != x; then
7674
7675 cat >>confdefs.h <<_ACEOF
7676 #define DEFAULT_BFD_ARCH $targ_archs
7677 _ACEOF
7678
7679 fi
7680 if test "x$targ_defvec" != x; then
7681
7682 cat >>confdefs.h <<_ACEOF
7683 #define DEFAULT_BFD_VEC $targ_defvec
7684 _ACEOF
7685
7686 fi
7687
7688 # The CLI cannot be disabled yet, but may be in the future.
7689
7690 # Enable CLI.
7691 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7692 if test "${enable_gdbcli+set}" = set; then
7693   enableval="$enable_gdbcli"
7694   case $enableval in
7695     yes)
7696       ;;
7697     no)
7698       { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7699 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7700    { (exit 1); exit 1; }; } ;;
7701     *)
7702       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7703 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7704    { (exit 1); exit 1; }; } ;;
7705   esac
7706 else
7707   enable_gdbcli=yes
7708 fi;
7709 if test x"$enable_gdbcli" = xyes; then
7710   if test -d $srcdir/cli; then
7711     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7712     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7713     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7714     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7715   fi
7716 fi
7717
7718 # Enable MI.
7719 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7720 if test "${enable_gdbmi+set}" = set; then
7721   enableval="$enable_gdbmi"
7722   case $enableval in
7723     yes | no)
7724       ;;
7725     *)
7726       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7727 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7728    { (exit 1); exit 1; }; } ;;
7729   esac
7730 else
7731   enable_gdbmi=yes
7732 fi;
7733 if test x"$enable_gdbmi" = xyes; then
7734   if test -d $srcdir/mi; then
7735     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7736     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7737     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7738     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7739   fi
7740 fi
7741
7742 # Enable TUI.
7743 # Check whether --enable-tui or --disable-tui was given.
7744 if test "${enable_tui+set}" = set; then
7745   enableval="$enable_tui"
7746   case $enableval in
7747     yes | no | auto)
7748       ;;
7749     *)
7750       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7751 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7752    { (exit 1); exit 1; }; } ;;
7753   esac
7754 else
7755   enable_tui=auto
7756 fi;
7757
7758 # Enable gdbtk.
7759 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7760 if test "${enable_gdbtk+set}" = set; then
7761   enableval="$enable_gdbtk"
7762   case $enableval in
7763     yes | no)
7764       ;;
7765     *)
7766       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7767 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7768    { (exit 1); exit 1; }; } ;;
7769   esac
7770 else
7771   if test -d $srcdir/gdbtk; then
7772     enable_gdbtk=yes
7773   else
7774     enable_gdbtk=no
7775   fi
7776 fi;
7777 # We unconditionally disable gdbtk tests on selected platforms.
7778 case $host_os in
7779   go32* | windows*)
7780     { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7781 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7782     enable_gdbtk=no ;;
7783 esac
7784
7785 # Libunwind support.
7786
7787 # Check whether --with-libunwind or --without-libunwind was given.
7788 if test "${with_libunwind+set}" = set; then
7789   withval="$with_libunwind"
7790   case "${withval}" in
7791   yes)  enable_libunwind=yes ;;
7792   no)   enable_libunwind=no ;;
7793   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7794 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7795    { (exit 1); exit 1; }; } ;;
7796 esac
7797 else
7798
7799
7800
7801 for ac_header in libunwind.h libunwind-ia64.h
7802 do
7803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7805   echo "$as_me:$LINENO: checking for $ac_header" >&5
7806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 fi
7810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7812 else
7813   # Is the header compilable?
7814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7816 cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h.  */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h.  */
7822 $ac_includes_default
7823 #include <$ac_header>
7824 _ACEOF
7825 rm -f conftest.$ac_objext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7827   (eval $ac_compile) 2>conftest.er1
7828   ac_status=$?
7829   grep -v '^ *+' conftest.er1 >conftest.err
7830   rm -f conftest.er1
7831   cat conftest.err >&5
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } &&
7834          { ac_try='test -z "$ac_c_werror_flag"
7835                          || test ! -s conftest.err'
7836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837   (eval $ac_try) 2>&5
7838   ac_status=$?
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); }; } &&
7841          { ac_try='test -s conftest.$ac_objext'
7842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843   (eval $ac_try) 2>&5
7844   ac_status=$?
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); }; }; then
7847   ac_header_compiler=yes
7848 else
7849   echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 ac_header_compiler=no
7853 fi
7854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7856 echo "${ECHO_T}$ac_header_compiler" >&6
7857
7858 # Is the header present?
7859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h.  */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h.  */
7867 #include <$ac_header>
7868 _ACEOF
7869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7871   ac_status=$?
7872   grep -v '^ *+' conftest.er1 >conftest.err
7873   rm -f conftest.er1
7874   cat conftest.err >&5
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); } >/dev/null; then
7877   if test -s conftest.err; then
7878     ac_cpp_err=$ac_c_preproc_warn_flag
7879     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7880   else
7881     ac_cpp_err=
7882   fi
7883 else
7884   ac_cpp_err=yes
7885 fi
7886 if test -z "$ac_cpp_err"; then
7887   ac_header_preproc=yes
7888 else
7889   echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892   ac_header_preproc=no
7893 fi
7894 rm -f conftest.err conftest.$ac_ext
7895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7896 echo "${ECHO_T}$ac_header_preproc" >&6
7897
7898 # So?  What about this header?
7899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7900   yes:no: )
7901     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7905     ac_header_preproc=yes
7906     ;;
7907   no:yes:* )
7908     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7910     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7911 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7912     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7914     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7915 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7918     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7920     (
7921       cat <<\_ASBOX
7922 ## ------------------------------------------ ##
7923 ## Report this to the AC_PACKAGE_NAME lists.  ##
7924 ## ------------------------------------------ ##
7925 _ASBOX
7926     ) |
7927       sed "s/^/$as_me: WARNING:     /" >&2
7928     ;;
7929 esac
7930 echo "$as_me:$LINENO: checking for $ac_header" >&5
7931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7933   echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935   eval "$as_ac_Header=\$ac_header_preproc"
7936 fi
7937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7939
7940 fi
7941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7942   cat >>confdefs.h <<_ACEOF
7943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7944 _ACEOF
7945
7946 fi
7947
7948 done
7949
7950   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7951     enable_libunwind=yes;
7952   fi
7953
7954 fi;
7955
7956 if test x"$enable_libunwind" = xyes; then
7957
7958
7959 for ac_header in libunwind.h libunwind-ia64.h
7960 do
7961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7963   echo "$as_me:$LINENO: checking for $ac_header" >&5
7964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 fi
7968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7970 else
7971   # Is the header compilable?
7972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h.  */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h.  */
7980 $ac_includes_default
7981 #include <$ac_header>
7982 _ACEOF
7983 rm -f conftest.$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985   (eval $ac_compile) 2>conftest.er1
7986   ac_status=$?
7987   grep -v '^ *+' conftest.er1 >conftest.err
7988   rm -f conftest.er1
7989   cat conftest.err >&5
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); } &&
7992          { ac_try='test -z "$ac_c_werror_flag"
7993                          || test ! -s conftest.err'
7994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995   (eval $ac_try) 2>&5
7996   ac_status=$?
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); }; } &&
7999          { ac_try='test -s conftest.$ac_objext'
8000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001   (eval $ac_try) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); }; }; then
8005   ac_header_compiler=yes
8006 else
8007   echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8009
8010 ac_header_compiler=no
8011 fi
8012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8014 echo "${ECHO_T}$ac_header_compiler" >&6
8015
8016 # Is the header present?
8017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 #include <$ac_header>
8026 _ACEOF
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8029   ac_status=$?
8030   grep -v '^ *+' conftest.er1 >conftest.err
8031   rm -f conftest.er1
8032   cat conftest.err >&5
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } >/dev/null; then
8035   if test -s conftest.err; then
8036     ac_cpp_err=$ac_c_preproc_warn_flag
8037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8038   else
8039     ac_cpp_err=
8040   fi
8041 else
8042   ac_cpp_err=yes
8043 fi
8044 if test -z "$ac_cpp_err"; then
8045   ac_header_preproc=yes
8046 else
8047   echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050   ac_header_preproc=no
8051 fi
8052 rm -f conftest.err conftest.$ac_ext
8053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8054 echo "${ECHO_T}$ac_header_preproc" >&6
8055
8056 # So?  What about this header?
8057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8058   yes:no: )
8059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8063     ac_header_preproc=yes
8064     ;;
8065   no:yes:* )
8066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8069 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8070     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8072     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8073 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8076     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8078     (
8079       cat <<\_ASBOX
8080 ## ------------------------------------------ ##
8081 ## Report this to the AC_PACKAGE_NAME lists.  ##
8082 ## ------------------------------------------ ##
8083 _ASBOX
8084     ) |
8085       sed "s/^/$as_me: WARNING:     /" >&2
8086     ;;
8087 esac
8088 echo "$as_me:$LINENO: checking for $ac_header" >&5
8089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8091   echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093   eval "$as_ac_Header=\$ac_header_preproc"
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
8098 fi
8099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8100   cat >>confdefs.h <<_ACEOF
8101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8102 _ACEOF
8103
8104 fi
8105
8106 done
8107
8108
8109 cat >>confdefs.h <<\_ACEOF
8110 #define HAVE_LIBUNWIND 1
8111 _ACEOF
8112
8113   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8114   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8115   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8116 fi
8117
8118 # Profiling support.
8119 # Check whether --enable-profiling or --disable-profiling was given.
8120 if test "${enable_profiling+set}" = set; then
8121   enableval="$enable_profiling"
8122   case $enableval in
8123     yes | no)
8124       ;;
8125     *)
8126       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8127 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8128    { (exit 1); exit 1; }; } ;;
8129   esac
8130 else
8131   enable_profiling=no
8132 fi;
8133
8134
8135
8136 for ac_func in monstartup _mcleanup
8137 do
8138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8139 echo "$as_me:$LINENO: checking for $ac_func" >&5
8140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8141 if eval "test \"\${$as_ac_var+set}\" = set"; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h.  */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h.  */
8150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8152 #define $ac_func innocuous_$ac_func
8153
8154 /* System header to define __stub macros and hopefully few prototypes,
8155     which can conflict with char $ac_func (); below.
8156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8157     <limits.h> exists even on freestanding compilers.  */
8158
8159 #ifdef __STDC__
8160 # include <limits.h>
8161 #else
8162 # include <assert.h>
8163 #endif
8164
8165 #undef $ac_func
8166
8167 /* Override any gcc2 internal prototype to avoid an error.  */
8168 #ifdef __cplusplus
8169 extern "C"
8170 {
8171 #endif
8172 /* We use char because int might match the return type of a gcc2
8173    builtin and then its argument prototype would still apply.  */
8174 char $ac_func ();
8175 /* The GNU C library defines this for functions which it implements
8176     to always fail with ENOSYS.  Some functions are actually named
8177     something starting with __ and the normal name is an alias.  */
8178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8179 choke me
8180 #else
8181 char (*f) () = $ac_func;
8182 #endif
8183 #ifdef __cplusplus
8184 }
8185 #endif
8186
8187 int
8188 main ()
8189 {
8190 return f != $ac_func;
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197   (eval $ac_link) 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -z "$ac_c_werror_flag"
8205                          || test ! -s conftest.err'
8206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207   (eval $ac_try) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); }; } &&
8211          { ac_try='test -s conftest$ac_exeext'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; }; then
8217   eval "$as_ac_var=yes"
8218 else
8219   echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 eval "$as_ac_var=no"
8223 fi
8224 rm -f conftest.err conftest.$ac_objext \
8225       conftest$ac_exeext conftest.$ac_ext
8226 fi
8227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8229 if test `eval echo '${'$as_ac_var'}'` = yes; then
8230   cat >>confdefs.h <<_ACEOF
8231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8232 _ACEOF
8233
8234 fi
8235 done
8236
8237 echo "$as_me:$LINENO: checking for _etext" >&5
8238 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8239 if test "${ac_cv_var__etext+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242   cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h.  */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h.  */
8248 #include <stdlib.h>
8249 extern char _etext;
8250
8251 int
8252 main ()
8253 {
8254 free (&_etext);
8255   ;
8256   return 0;
8257 }
8258 _ACEOF
8259 rm -f conftest.$ac_objext conftest$ac_exeext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8261   (eval $ac_link) 2>conftest.er1
8262   ac_status=$?
8263   grep -v '^ *+' conftest.er1 >conftest.err
8264   rm -f conftest.er1
8265   cat conftest.err >&5
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } &&
8268          { ac_try='test -z "$ac_c_werror_flag"
8269                          || test ! -s conftest.err'
8270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271   (eval $ac_try) 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; } &&
8275          { ac_try='test -s conftest$ac_exeext'
8276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277   (eval $ac_try) 2>&5
8278   ac_status=$?
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); }; }; then
8281   ac_cv_var__etext=yes
8282 else
8283   echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 ac_cv_var__etext=no
8287 fi
8288 rm -f conftest.err conftest.$ac_objext \
8289       conftest$ac_exeext conftest.$ac_ext
8290 fi
8291 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8292 echo "${ECHO_T}$ac_cv_var__etext" >&6
8293 if test $ac_cv_var__etext = yes; then
8294
8295 cat >>confdefs.h <<\_ACEOF
8296 #define HAVE__ETEXT 1
8297 _ACEOF
8298
8299 fi
8300 echo "$as_me:$LINENO: checking for etext" >&5
8301 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8302 if test "${ac_cv_var_etext+set}" = set; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311 #include <stdlib.h>
8312 extern char etext;
8313
8314 int
8315 main ()
8316 {
8317 free (&etext);
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   ac_cv_var_etext=yes
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349 ac_cv_var_etext=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: $ac_cv_var_etext" >&5
8355 echo "${ECHO_T}$ac_cv_var_etext" >&6
8356 if test $ac_cv_var_etext = yes; then
8357
8358 cat >>confdefs.h <<\_ACEOF
8359 #define HAVE_ETEXT 1
8360 _ACEOF
8361
8362 fi
8363 if test "$enable_profiling" = yes ; then
8364   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8365     { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8366 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8367    { (exit 1); exit 1; }; }
8368   fi
8369   PROFILE_CFLAGS=-pg
8370   OLD_CFLAGS="$CFLAGS"
8371   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8372
8373   echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8374 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8375 if test "${ac_cv_cc_supports_pg+set}" = set; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378   cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h.  */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h.  */
8384
8385 int
8386 main ()
8387 {
8388 int x;
8389   ;
8390   return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395   (eval $ac_compile) 2>conftest.er1
8396   ac_status=$?
8397   grep -v '^ *+' conftest.er1 >conftest.err
8398   rm -f conftest.er1
8399   cat conftest.err >&5
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); } &&
8402          { ac_try='test -z "$ac_c_werror_flag"
8403                          || test ! -s conftest.err'
8404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405   (eval $ac_try) 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; } &&
8409          { ac_try='test -s conftest.$ac_objext'
8410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411   (eval $ac_try) 2>&5
8412   ac_status=$?
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); }; }; then
8415   ac_cv_cc_supports_pg=yes
8416 else
8417   echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8419
8420 ac_cv_cc_supports_pg=no
8421 fi
8422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8423 fi
8424 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8425 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8426
8427   if test $ac_cv_cc_supports_pg = no; then
8428     { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8429 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8430    { (exit 1); exit 1; }; }
8431   fi
8432
8433   CFLAGS="$OLD_CFLAGS"
8434 fi
8435
8436
8437
8438 # Check whether --with-pkgversion or --without-pkgversion was given.
8439 if test "${with_pkgversion+set}" = set; then
8440   withval="$with_pkgversion"
8441   case "$withval" in
8442       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8443 echo "$as_me: error: package version not specified" >&2;}
8444    { (exit 1); exit 1; }; } ;;
8445       no)  PKGVERSION= ;;
8446       *)   PKGVERSION="($withval) " ;;
8447      esac
8448 else
8449   PKGVERSION="(GDB) "
8450
8451 fi;
8452
8453
8454
8455
8456 # Check whether --with-bugurl or --without-bugurl was given.
8457 if test "${with_bugurl+set}" = set; then
8458   withval="$with_bugurl"
8459   case "$withval" in
8460       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8461 echo "$as_me: error: bug URL not specified" >&2;}
8462    { (exit 1); exit 1; }; } ;;
8463       no)  BUGURL=
8464            ;;
8465       *)   BUGURL="$withval"
8466            ;;
8467      esac
8468 else
8469   BUGURL="http://www.gnu.org/software/gdb/bugs/"
8470
8471 fi;
8472   case ${BUGURL} in
8473   "")
8474     REPORT_BUGS_TO=
8475     REPORT_BUGS_TEXI=
8476     ;;
8477   *)
8478     REPORT_BUGS_TO="<$BUGURL>"
8479     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8480     ;;
8481   esac;
8482
8483
8484
8485
8486 cat >>confdefs.h <<_ACEOF
8487 #define PKGVERSION "$PKGVERSION"
8488 _ACEOF
8489
8490
8491 cat >>confdefs.h <<_ACEOF
8492 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8493 _ACEOF
8494
8495
8496 # --------------------- #
8497 # Checks for programs.  #
8498 # --------------------- #
8499
8500 for ac_prog in gawk mawk nawk awk
8501 do
8502   # Extract the first word of "$ac_prog", so it can be a program name with args.
8503 set dummy $ac_prog; ac_word=$2
8504 echo "$as_me:$LINENO: checking for $ac_word" >&5
8505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8506 if test "${ac_cv_prog_AWK+set}" = set; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509   if test -n "$AWK"; then
8510   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8511 else
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 for as_dir in $PATH
8514 do
8515   IFS=$as_save_IFS
8516   test -z "$as_dir" && as_dir=.
8517   for ac_exec_ext in '' $ac_executable_extensions; do
8518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519     ac_cv_prog_AWK="$ac_prog"
8520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8521     break 2
8522   fi
8523 done
8524 done
8525
8526 fi
8527 fi
8528 AWK=$ac_cv_prog_AWK
8529 if test -n "$AWK"; then
8530   echo "$as_me:$LINENO: result: $AWK" >&5
8531 echo "${ECHO_T}$AWK" >&6
8532 else
8533   echo "$as_me:$LINENO: result: no" >&5
8534 echo "${ECHO_T}no" >&6
8535 fi
8536
8537   test -n "$AWK" && break
8538 done
8539
8540 # Find a good install program.  We prefer a C program (faster),
8541 # so one script is as good as another.  But avoid the broken or
8542 # incompatible versions:
8543 # SysV /etc/install, /usr/sbin/install
8544 # SunOS /usr/etc/install
8545 # IRIX /sbin/install
8546 # AIX /bin/install
8547 # AmigaOS /C/install, which installs bootblocks on floppy discs
8548 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8549 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8550 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8551 # OS/2's system install, which has a completely different semantic
8552 # ./install, which can be erroneously created by make from ./install.sh.
8553 # Reject install programs that cannot install multiple files.
8554 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8556 if test -z "$INSTALL"; then
8557 if test "${ac_cv_path_install+set}" = set; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8562 do
8563   IFS=$as_save_IFS
8564   test -z "$as_dir" && as_dir=.
8565   # Account for people who put trailing slashes in PATH elements.
8566 case $as_dir/ in
8567   ./ | .// | /cC/* | \
8568   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8569   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8570   /usr/ucb/* ) ;;
8571   *)
8572     # OSF1 and SCO ODT 3.0 have their own names for install.
8573     # Don't use installbsd from OSF since it installs stuff as root
8574     # by default.
8575     for ac_prog in ginstall scoinst install; do
8576       for ac_exec_ext in '' $ac_executable_extensions; do
8577         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8578           if test $ac_prog = install &&
8579             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8580             # AIX install.  It has an incompatible calling convention.
8581             :
8582           elif test $ac_prog = install &&
8583             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8584             # program-specific install script used by HP pwplus--don't use.
8585             :
8586           else
8587             rm -rf conftest.one conftest.two conftest.dir
8588             echo one > conftest.one
8589             echo two > conftest.two
8590             mkdir conftest.dir
8591             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8592               test -s conftest.one && test -s conftest.two &&
8593               test -s conftest.dir/conftest.one &&
8594               test -s conftest.dir/conftest.two
8595             then
8596               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8597               break 3
8598             fi
8599           fi
8600         fi
8601       done
8602     done
8603     ;;
8604 esac
8605 done
8606
8607 rm -rf conftest.one conftest.two conftest.dir
8608
8609 fi
8610   if test "${ac_cv_path_install+set}" = set; then
8611     INSTALL=$ac_cv_path_install
8612   else
8613     # As a last resort, use the slow shell script.  Don't cache a
8614     # value for INSTALL within a source directory, because that will
8615     # break other packages using the cache if that directory is
8616     # removed, or if the value is a relative name.
8617     INSTALL=$ac_install_sh
8618   fi
8619 fi
8620 echo "$as_me:$LINENO: result: $INSTALL" >&5
8621 echo "${ECHO_T}$INSTALL" >&6
8622
8623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8624 # It thinks the first close brace ends the variable substitution.
8625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8626
8627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8628
8629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8630
8631 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8632 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8633 LN_S=$as_ln_s
8634 if test "$LN_S" = "ln -s"; then
8635   echo "$as_me:$LINENO: result: yes" >&5
8636 echo "${ECHO_T}yes" >&6
8637 else
8638   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8639 echo "${ECHO_T}no, using $LN_S" >&6
8640 fi
8641
8642 if test -n "$ac_tool_prefix"; then
8643   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8645 echo "$as_me:$LINENO: checking for $ac_word" >&5
8646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8647 if test "${ac_cv_prog_RANLIB+set}" = set; then
8648   echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650   if test -n "$RANLIB"; then
8651   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8652 else
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $PATH
8655 do
8656   IFS=$as_save_IFS
8657   test -z "$as_dir" && as_dir=.
8658   for ac_exec_ext in '' $ac_executable_extensions; do
8659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8662     break 2
8663   fi
8664 done
8665 done
8666
8667 fi
8668 fi
8669 RANLIB=$ac_cv_prog_RANLIB
8670 if test -n "$RANLIB"; then
8671   echo "$as_me:$LINENO: result: $RANLIB" >&5
8672 echo "${ECHO_T}$RANLIB" >&6
8673 else
8674   echo "$as_me:$LINENO: result: no" >&5
8675 echo "${ECHO_T}no" >&6
8676 fi
8677
8678 fi
8679 if test -z "$ac_cv_prog_RANLIB"; then
8680   ac_ct_RANLIB=$RANLIB
8681   # Extract the first word of "ranlib", so it can be a program name with args.
8682 set dummy ranlib; ac_word=$2
8683 echo "$as_me:$LINENO: checking for $ac_word" >&5
8684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8685 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688   if test -n "$ac_ct_RANLIB"; then
8689   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8693 do
8694   IFS=$as_save_IFS
8695   test -z "$as_dir" && as_dir=.
8696   for ac_exec_ext in '' $ac_executable_extensions; do
8697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698     ac_cv_prog_ac_ct_RANLIB="ranlib"
8699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8700     break 2
8701   fi
8702 done
8703 done
8704
8705   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8706 fi
8707 fi
8708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8709 if test -n "$ac_ct_RANLIB"; then
8710   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8711 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8712 else
8713   echo "$as_me:$LINENO: result: no" >&5
8714 echo "${ECHO_T}no" >&6
8715 fi
8716
8717   RANLIB=$ac_ct_RANLIB
8718 else
8719   RANLIB="$ac_cv_prog_RANLIB"
8720 fi
8721
8722 for ac_prog in 'bison -y' byacc
8723 do
8724   # Extract the first word of "$ac_prog", so it can be a program name with args.
8725 set dummy $ac_prog; ac_word=$2
8726 echo "$as_me:$LINENO: checking for $ac_word" >&5
8727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8728 if test "${ac_cv_prog_YACC+set}" = set; then
8729   echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731   if test -n "$YACC"; then
8732   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8733 else
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 for as_dir in $PATH
8736 do
8737   IFS=$as_save_IFS
8738   test -z "$as_dir" && as_dir=.
8739   for ac_exec_ext in '' $ac_executable_extensions; do
8740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741     ac_cv_prog_YACC="$ac_prog"
8742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8743     break 2
8744   fi
8745 done
8746 done
8747
8748 fi
8749 fi
8750 YACC=$ac_cv_prog_YACC
8751 if test -n "$YACC"; then
8752   echo "$as_me:$LINENO: result: $YACC" >&5
8753 echo "${ECHO_T}$YACC" >&6
8754 else
8755   echo "$as_me:$LINENO: result: no" >&5
8756 echo "${ECHO_T}no" >&6
8757 fi
8758
8759   test -n "$YACC" && break
8760 done
8761 test -n "$YACC" || YACC="yacc"
8762
8763
8764 if test -n "$ac_tool_prefix"; then
8765   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8766 set dummy ${ac_tool_prefix}ar; ac_word=$2
8767 echo "$as_me:$LINENO: checking for $ac_word" >&5
8768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8769 if test "${ac_cv_prog_AR+set}" = set; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772   if test -n "$AR"; then
8773   ac_cv_prog_AR="$AR" # Let the user override the test.
8774 else
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8777 do
8778   IFS=$as_save_IFS
8779   test -z "$as_dir" && as_dir=.
8780   for ac_exec_ext in '' $ac_executable_extensions; do
8781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782     ac_cv_prog_AR="${ac_tool_prefix}ar"
8783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8784     break 2
8785   fi
8786 done
8787 done
8788
8789 fi
8790 fi
8791 AR=$ac_cv_prog_AR
8792 if test -n "$AR"; then
8793   echo "$as_me:$LINENO: result: $AR" >&5
8794 echo "${ECHO_T}$AR" >&6
8795 else
8796   echo "$as_me:$LINENO: result: no" >&5
8797 echo "${ECHO_T}no" >&6
8798 fi
8799
8800 fi
8801 if test -z "$ac_cv_prog_AR"; then
8802   ac_ct_AR=$AR
8803   # Extract the first word of "ar", so it can be a program name with args.
8804 set dummy ar; ac_word=$2
8805 echo "$as_me:$LINENO: checking for $ac_word" >&5
8806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8807 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8808   echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810   if test -n "$ac_ct_AR"; then
8811   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8812 else
8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 for as_dir in $PATH
8815 do
8816   IFS=$as_save_IFS
8817   test -z "$as_dir" && as_dir=.
8818   for ac_exec_ext in '' $ac_executable_extensions; do
8819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820     ac_cv_prog_ac_ct_AR="ar"
8821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8822     break 2
8823   fi
8824 done
8825 done
8826
8827 fi
8828 fi
8829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8830 if test -n "$ac_ct_AR"; then
8831   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8832 echo "${ECHO_T}$ac_ct_AR" >&6
8833 else
8834   echo "$as_me:$LINENO: result: no" >&5
8835 echo "${ECHO_T}no" >&6
8836 fi
8837
8838   AR=$ac_ct_AR
8839 else
8840   AR="$ac_cv_prog_AR"
8841 fi
8842
8843 if test -n "$ac_tool_prefix"; then
8844   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8845 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8846 echo "$as_me:$LINENO: checking for $ac_word" >&5
8847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8848 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8849   echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851   if test -n "$DLLTOOL"; then
8852   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8853 else
8854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855 for as_dir in $PATH
8856 do
8857   IFS=$as_save_IFS
8858   test -z "$as_dir" && as_dir=.
8859   for ac_exec_ext in '' $ac_executable_extensions; do
8860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8861     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8863     break 2
8864   fi
8865 done
8866 done
8867
8868 fi
8869 fi
8870 DLLTOOL=$ac_cv_prog_DLLTOOL
8871 if test -n "$DLLTOOL"; then
8872   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8873 echo "${ECHO_T}$DLLTOOL" >&6
8874 else
8875   echo "$as_me:$LINENO: result: no" >&5
8876 echo "${ECHO_T}no" >&6
8877 fi
8878
8879 fi
8880 if test -z "$ac_cv_prog_DLLTOOL"; then
8881   ac_ct_DLLTOOL=$DLLTOOL
8882   # Extract the first word of "dlltool", so it can be a program name with args.
8883 set dummy dlltool; ac_word=$2
8884 echo "$as_me:$LINENO: checking for $ac_word" >&5
8885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8886 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8887   echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889   if test -n "$ac_ct_DLLTOOL"; then
8890   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8891 else
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 for as_dir in $PATH
8894 do
8895   IFS=$as_save_IFS
8896   test -z "$as_dir" && as_dir=.
8897   for ac_exec_ext in '' $ac_executable_extensions; do
8898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8899     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8901     break 2
8902   fi
8903 done
8904 done
8905
8906 fi
8907 fi
8908 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8909 if test -n "$ac_ct_DLLTOOL"; then
8910   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8911 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8912 else
8913   echo "$as_me:$LINENO: result: no" >&5
8914 echo "${ECHO_T}no" >&6
8915 fi
8916
8917   DLLTOOL=$ac_ct_DLLTOOL
8918 else
8919   DLLTOOL="$ac_cv_prog_DLLTOOL"
8920 fi
8921
8922 if test -n "$ac_tool_prefix"; then
8923   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8924 set dummy ${ac_tool_prefix}windres; ac_word=$2
8925 echo "$as_me:$LINENO: checking for $ac_word" >&5
8926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8927 if test "${ac_cv_prog_WINDRES+set}" = set; then
8928   echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930   if test -n "$WINDRES"; then
8931   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8932 else
8933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 for as_dir in $PATH
8935 do
8936   IFS=$as_save_IFS
8937   test -z "$as_dir" && as_dir=.
8938   for ac_exec_ext in '' $ac_executable_extensions; do
8939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8940     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8942     break 2
8943   fi
8944 done
8945 done
8946
8947 fi
8948 fi
8949 WINDRES=$ac_cv_prog_WINDRES
8950 if test -n "$WINDRES"; then
8951   echo "$as_me:$LINENO: result: $WINDRES" >&5
8952 echo "${ECHO_T}$WINDRES" >&6
8953 else
8954   echo "$as_me:$LINENO: result: no" >&5
8955 echo "${ECHO_T}no" >&6
8956 fi
8957
8958 fi
8959 if test -z "$ac_cv_prog_WINDRES"; then
8960   ac_ct_WINDRES=$WINDRES
8961   # Extract the first word of "windres", so it can be a program name with args.
8962 set dummy windres; ac_word=$2
8963 echo "$as_me:$LINENO: checking for $ac_word" >&5
8964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8965 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8966   echo $ECHO_N "(cached) $ECHO_C" >&6
8967 else
8968   if test -n "$ac_ct_WINDRES"; then
8969   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8970 else
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8973 do
8974   IFS=$as_save_IFS
8975   test -z "$as_dir" && as_dir=.
8976   for ac_exec_ext in '' $ac_executable_extensions; do
8977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8978     ac_cv_prog_ac_ct_WINDRES="windres"
8979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8980     break 2
8981   fi
8982 done
8983 done
8984
8985 fi
8986 fi
8987 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8988 if test -n "$ac_ct_WINDRES"; then
8989   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
8990 echo "${ECHO_T}$ac_ct_WINDRES" >&6
8991 else
8992   echo "$as_me:$LINENO: result: no" >&5
8993 echo "${ECHO_T}no" >&6
8994 fi
8995
8996   WINDRES=$ac_ct_WINDRES
8997 else
8998   WINDRES="$ac_cv_prog_WINDRES"
8999 fi
9000
9001
9002 # Needed for GNU/Hurd.
9003 if test -n "$ac_tool_prefix"; then
9004   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9005 set dummy ${ac_tool_prefix}mig; ac_word=$2
9006 echo "$as_me:$LINENO: checking for $ac_word" >&5
9007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9008 if test "${ac_cv_prog_MIG+set}" = set; then
9009   echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011   if test -n "$MIG"; then
9012   ac_cv_prog_MIG="$MIG" # Let the user override the test.
9013 else
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 for as_dir in $PATH
9016 do
9017   IFS=$as_save_IFS
9018   test -z "$as_dir" && as_dir=.
9019   for ac_exec_ext in '' $ac_executable_extensions; do
9020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9021     ac_cv_prog_MIG="${ac_tool_prefix}mig"
9022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9023     break 2
9024   fi
9025 done
9026 done
9027
9028 fi
9029 fi
9030 MIG=$ac_cv_prog_MIG
9031 if test -n "$MIG"; then
9032   echo "$as_me:$LINENO: result: $MIG" >&5
9033 echo "${ECHO_T}$MIG" >&6
9034 else
9035   echo "$as_me:$LINENO: result: no" >&5
9036 echo "${ECHO_T}no" >&6
9037 fi
9038
9039 fi
9040 if test -z "$ac_cv_prog_MIG"; then
9041   ac_ct_MIG=$MIG
9042   # Extract the first word of "mig", so it can be a program name with args.
9043 set dummy mig; ac_word=$2
9044 echo "$as_me:$LINENO: checking for $ac_word" >&5
9045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9046 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9047   echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049   if test -n "$ac_ct_MIG"; then
9050   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9051 else
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9054 do
9055   IFS=$as_save_IFS
9056   test -z "$as_dir" && as_dir=.
9057   for ac_exec_ext in '' $ac_executable_extensions; do
9058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059     ac_cv_prog_ac_ct_MIG="mig"
9060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9061     break 2
9062   fi
9063 done
9064 done
9065
9066 fi
9067 fi
9068 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9069 if test -n "$ac_ct_MIG"; then
9070   echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9071 echo "${ECHO_T}$ac_ct_MIG" >&6
9072 else
9073   echo "$as_me:$LINENO: result: no" >&5
9074 echo "${ECHO_T}no" >&6
9075 fi
9076
9077   MIG=$ac_ct_MIG
9078 else
9079   MIG="$ac_cv_prog_MIG"
9080 fi
9081
9082
9083 # ---------------------- #
9084 # Checks for libraries.  #
9085 # ---------------------- #
9086
9087 # We might need to link with -lm; most simulators need it.
9088
9089 echo "$as_me:$LINENO: checking for main in -lm" >&5
9090 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9091 if test "${ac_cv_lib_m_main+set}" = set; then
9092   echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094   ac_check_lib_save_LIBS=$LIBS
9095 LIBS="-lm  $LIBS"
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h.  */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h.  */
9102
9103
9104 int
9105 main ()
9106 {
9107 main ();
9108   ;
9109   return 0;
9110 }
9111 _ACEOF
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114   (eval $ac_link) 2>conftest.er1
9115   ac_status=$?
9116   grep -v '^ *+' conftest.er1 >conftest.err
9117   rm -f conftest.er1
9118   cat conftest.err >&5
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); } &&
9121          { ac_try='test -z "$ac_c_werror_flag"
9122                          || test ! -s conftest.err'
9123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124   (eval $ac_try) 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); }; } &&
9128          { ac_try='test -s conftest$ac_exeext'
9129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130   (eval $ac_try) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; }; then
9134   ac_cv_lib_m_main=yes
9135 else
9136   echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9138
9139 ac_cv_lib_m_main=no
9140 fi
9141 rm -f conftest.err conftest.$ac_objext \
9142       conftest$ac_exeext conftest.$ac_ext
9143 LIBS=$ac_check_lib_save_LIBS
9144 fi
9145 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9146 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9147 if test $ac_cv_lib_m_main = yes; then
9148   cat >>confdefs.h <<_ACEOF
9149 #define HAVE_LIBM 1
9150 _ACEOF
9151
9152   LIBS="-lm $LIBS"
9153
9154 fi
9155
9156
9157 # We need to link with -lw to get `wctype' on Solaris before Solaris
9158 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
9159 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9160 # is known to have this problem).  Therefore we avoid libw if we can.
9161 echo "$as_me:$LINENO: checking for wctype" >&5
9162 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9163 if test "${ac_cv_func_wctype+set}" = set; then
9164   echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166   cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h.  */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h.  */
9172 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9174 #define wctype innocuous_wctype
9175
9176 /* System header to define __stub macros and hopefully few prototypes,
9177     which can conflict with char wctype (); below.
9178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9179     <limits.h> exists even on freestanding compilers.  */
9180
9181 #ifdef __STDC__
9182 # include <limits.h>
9183 #else
9184 # include <assert.h>
9185 #endif
9186
9187 #undef wctype
9188
9189 /* Override any gcc2 internal prototype to avoid an error.  */
9190 #ifdef __cplusplus
9191 extern "C"
9192 {
9193 #endif
9194 /* We use char because int might match the return type of a gcc2
9195    builtin and then its argument prototype would still apply.  */
9196 char wctype ();
9197 /* The GNU C library defines this for functions which it implements
9198     to always fail with ENOSYS.  Some functions are actually named
9199     something starting with __ and the normal name is an alias.  */
9200 #if defined (__stub_wctype) || defined (__stub___wctype)
9201 choke me
9202 #else
9203 char (*f) () = wctype;
9204 #endif
9205 #ifdef __cplusplus
9206 }
9207 #endif
9208
9209 int
9210 main ()
9211 {
9212 return f != wctype;
9213   ;
9214   return 0;
9215 }
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219   (eval $ac_link) 2>conftest.er1
9220   ac_status=$?
9221   grep -v '^ *+' conftest.er1 >conftest.err
9222   rm -f conftest.er1
9223   cat conftest.err >&5
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); } &&
9226          { ac_try='test -z "$ac_c_werror_flag"
9227                          || test ! -s conftest.err'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; } &&
9233          { ac_try='test -s conftest$ac_exeext'
9234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235   (eval $ac_try) 2>&5
9236   ac_status=$?
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); }; }; then
9239   ac_cv_func_wctype=yes
9240 else
9241   echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9243
9244 ac_cv_func_wctype=no
9245 fi
9246 rm -f conftest.err conftest.$ac_objext \
9247       conftest$ac_exeext conftest.$ac_ext
9248 fi
9249 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9250 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9251 if test $ac_cv_func_wctype = yes; then
9252   :
9253 else
9254
9255 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9256 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9257 if test "${ac_cv_lib_w_wctype+set}" = set; then
9258   echo $ECHO_N "(cached) $ECHO_C" >&6
9259 else
9260   ac_check_lib_save_LIBS=$LIBS
9261 LIBS="-lw  $LIBS"
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h.  */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h.  */
9268
9269 /* Override any gcc2 internal prototype to avoid an error.  */
9270 #ifdef __cplusplus
9271 extern "C"
9272 #endif
9273 /* We use char because int might match the return type of a gcc2
9274    builtin and then its argument prototype would still apply.  */
9275 char wctype ();
9276 int
9277 main ()
9278 {
9279 wctype ();
9280   ;
9281   return 0;
9282 }
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286   (eval $ac_link) 2>conftest.er1
9287   ac_status=$?
9288   grep -v '^ *+' conftest.er1 >conftest.err
9289   rm -f conftest.er1
9290   cat conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } &&
9293          { ac_try='test -z "$ac_c_werror_flag"
9294                          || test ! -s conftest.err'
9295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296   (eval $ac_try) 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); }; } &&
9300          { ac_try='test -s conftest$ac_exeext'
9301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302   (eval $ac_try) 2>&5
9303   ac_status=$?
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); }; }; then
9306   ac_cv_lib_w_wctype=yes
9307 else
9308   echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 ac_cv_lib_w_wctype=no
9312 fi
9313 rm -f conftest.err conftest.$ac_objext \
9314       conftest$ac_exeext conftest.$ac_ext
9315 LIBS=$ac_check_lib_save_LIBS
9316 fi
9317 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9318 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9319 if test $ac_cv_lib_w_wctype = yes; then
9320   cat >>confdefs.h <<_ACEOF
9321 #define HAVE_LIBW 1
9322 _ACEOF
9323
9324   LIBS="-lw $LIBS"
9325
9326 fi
9327
9328 fi
9329
9330
9331 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9332 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9333 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9334 if test "${ac_cv_search_gethostbyname+set}" = set; then
9335   echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337   ac_func_search_save_LIBS=$LIBS
9338 ac_cv_search_gethostbyname=no
9339 cat >conftest.$ac_ext <<_ACEOF
9340 /* confdefs.h.  */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h.  */
9345
9346 /* Override any gcc2 internal prototype to avoid an error.  */
9347 #ifdef __cplusplus
9348 extern "C"
9349 #endif
9350 /* We use char because int might match the return type of a gcc2
9351    builtin and then its argument prototype would still apply.  */
9352 char gethostbyname ();
9353 int
9354 main ()
9355 {
9356 gethostbyname ();
9357   ;
9358   return 0;
9359 }
9360 _ACEOF
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363   (eval $ac_link) 2>conftest.er1
9364   ac_status=$?
9365   grep -v '^ *+' conftest.er1 >conftest.err
9366   rm -f conftest.er1
9367   cat conftest.err >&5
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); } &&
9370          { ac_try='test -z "$ac_c_werror_flag"
9371                          || test ! -s conftest.err'
9372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373   (eval $ac_try) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; } &&
9377          { ac_try='test -s conftest$ac_exeext'
9378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379   (eval $ac_try) 2>&5
9380   ac_status=$?
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); }; }; then
9383   ac_cv_search_gethostbyname="none required"
9384 else
9385   echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 fi
9389 rm -f conftest.err conftest.$ac_objext \
9390       conftest$ac_exeext conftest.$ac_ext
9391 if test "$ac_cv_search_gethostbyname" = no; then
9392   for ac_lib in nsl; do
9393     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9394     cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h.  */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h.  */
9400
9401 /* Override any gcc2 internal prototype to avoid an error.  */
9402 #ifdef __cplusplus
9403 extern "C"
9404 #endif
9405 /* We use char because int might match the return type of a gcc2
9406    builtin and then its argument prototype would still apply.  */
9407 char gethostbyname ();
9408 int
9409 main ()
9410 {
9411 gethostbyname ();
9412   ;
9413   return 0;
9414 }
9415 _ACEOF
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418   (eval $ac_link) 2>conftest.er1
9419   ac_status=$?
9420   grep -v '^ *+' conftest.er1 >conftest.err
9421   rm -f conftest.er1
9422   cat conftest.err >&5
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } &&
9425          { ac_try='test -z "$ac_c_werror_flag"
9426                          || test ! -s conftest.err'
9427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428   (eval $ac_try) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); }; } &&
9432          { ac_try='test -s conftest$ac_exeext'
9433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434   (eval $ac_try) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; }; then
9438   ac_cv_search_gethostbyname="-l$ac_lib"
9439 break
9440 else
9441   echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9443
9444 fi
9445 rm -f conftest.err conftest.$ac_objext \
9446       conftest$ac_exeext conftest.$ac_ext
9447   done
9448 fi
9449 LIBS=$ac_func_search_save_LIBS
9450 fi
9451 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9452 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9453 if test "$ac_cv_search_gethostbyname" != no; then
9454   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9455
9456 fi
9457
9458
9459 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9460 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9461 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9462 if test "${ac_cv_search_socketpair+set}" = set; then
9463   echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465   ac_func_search_save_LIBS=$LIBS
9466 ac_cv_search_socketpair=no
9467 cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h.  */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h.  */
9473
9474 /* Override any gcc2 internal prototype to avoid an error.  */
9475 #ifdef __cplusplus
9476 extern "C"
9477 #endif
9478 /* We use char because int might match the return type of a gcc2
9479    builtin and then its argument prototype would still apply.  */
9480 char socketpair ();
9481 int
9482 main ()
9483 {
9484 socketpair ();
9485   ;
9486   return 0;
9487 }
9488 _ACEOF
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491   (eval $ac_link) 2>conftest.er1
9492   ac_status=$?
9493   grep -v '^ *+' conftest.er1 >conftest.err
9494   rm -f conftest.er1
9495   cat conftest.err >&5
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); } &&
9498          { ac_try='test -z "$ac_c_werror_flag"
9499                          || test ! -s conftest.err'
9500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501   (eval $ac_try) 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); }; } &&
9505          { ac_try='test -s conftest$ac_exeext'
9506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507   (eval $ac_try) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); }; }; then
9511   ac_cv_search_socketpair="none required"
9512 else
9513   echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9515
9516 fi
9517 rm -f conftest.err conftest.$ac_objext \
9518       conftest$ac_exeext conftest.$ac_ext
9519 if test "$ac_cv_search_socketpair" = no; then
9520   for ac_lib in socket; do
9521     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9522     cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h.  */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h.  */
9528
9529 /* Override any gcc2 internal prototype to avoid an error.  */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 /* We use char because int might match the return type of a gcc2
9534    builtin and then its argument prototype would still apply.  */
9535 char socketpair ();
9536 int
9537 main ()
9538 {
9539 socketpair ();
9540   ;
9541   return 0;
9542 }
9543 _ACEOF
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546   (eval $ac_link) 2>conftest.er1
9547   ac_status=$?
9548   grep -v '^ *+' conftest.er1 >conftest.err
9549   rm -f conftest.er1
9550   cat conftest.err >&5
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); } &&
9553          { ac_try='test -z "$ac_c_werror_flag"
9554                          || test ! -s conftest.err'
9555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556   (eval $ac_try) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; } &&
9560          { ac_try='test -s conftest$ac_exeext'
9561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562   (eval $ac_try) 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); }; }; then
9566   ac_cv_search_socketpair="-l$ac_lib"
9567 break
9568 else
9569   echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572 fi
9573 rm -f conftest.err conftest.$ac_objext \
9574       conftest$ac_exeext conftest.$ac_ext
9575   done
9576 fi
9577 LIBS=$ac_func_search_save_LIBS
9578 fi
9579 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9580 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9581 if test "$ac_cv_search_socketpair" != no; then
9582   test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9583
9584 fi
9585
9586
9587 # Link in zlib if we can.  This allows us to read compressed debug sections.
9588 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9589 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9590 if test "${ac_cv_search_zlibVersion+set}" = set; then
9591   echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593   ac_func_search_save_LIBS=$LIBS
9594 ac_cv_search_zlibVersion=no
9595 cat >conftest.$ac_ext <<_ACEOF
9596 /* confdefs.h.  */
9597 _ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h.  */
9601
9602 /* Override any gcc2 internal prototype to avoid an error.  */
9603 #ifdef __cplusplus
9604 extern "C"
9605 #endif
9606 /* We use char because int might match the return type of a gcc2
9607    builtin and then its argument prototype would still apply.  */
9608 char zlibVersion ();
9609 int
9610 main ()
9611 {
9612 zlibVersion ();
9613   ;
9614   return 0;
9615 }
9616 _ACEOF
9617 rm -f conftest.$ac_objext conftest$ac_exeext
9618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9619   (eval $ac_link) 2>conftest.er1
9620   ac_status=$?
9621   grep -v '^ *+' conftest.er1 >conftest.err
9622   rm -f conftest.er1
9623   cat conftest.err >&5
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); } &&
9626          { ac_try='test -z "$ac_c_werror_flag"
9627                          || test ! -s conftest.err'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; } &&
9633          { ac_try='test -s conftest$ac_exeext'
9634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635   (eval $ac_try) 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); }; }; then
9639   ac_cv_search_zlibVersion="none required"
9640 else
9641   echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9643
9644 fi
9645 rm -f conftest.err conftest.$ac_objext \
9646       conftest$ac_exeext conftest.$ac_ext
9647 if test "$ac_cv_search_zlibVersion" = no; then
9648   for ac_lib in z; do
9649     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9650     cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h.  */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h.  */
9656
9657 /* Override any gcc2 internal prototype to avoid an error.  */
9658 #ifdef __cplusplus
9659 extern "C"
9660 #endif
9661 /* We use char because int might match the return type of a gcc2
9662    builtin and then its argument prototype would still apply.  */
9663 char zlibVersion ();
9664 int
9665 main ()
9666 {
9667 zlibVersion ();
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9674   (eval $ac_link) 2>conftest.er1
9675   ac_status=$?
9676   grep -v '^ *+' conftest.er1 >conftest.err
9677   rm -f conftest.er1
9678   cat conftest.err >&5
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); } &&
9681          { ac_try='test -z "$ac_c_werror_flag"
9682                          || test ! -s conftest.err'
9683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684   (eval $ac_try) 2>&5
9685   ac_status=$?
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); }; } &&
9688          { ac_try='test -s conftest$ac_exeext'
9689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690   (eval $ac_try) 2>&5
9691   ac_status=$?
9692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693   (exit $ac_status); }; }; then
9694   ac_cv_search_zlibVersion="-l$ac_lib"
9695 break
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 fi
9701 rm -f conftest.err conftest.$ac_objext \
9702       conftest$ac_exeext conftest.$ac_ext
9703   done
9704 fi
9705 LIBS=$ac_func_search_save_LIBS
9706 fi
9707 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9708 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9709 if test "$ac_cv_search_zlibVersion" != no; then
9710   test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9711
9712 for ac_header in zlib.h
9713 do
9714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9716   echo "$as_me:$LINENO: checking for $ac_header" >&5
9717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9719   echo $ECHO_N "(cached) $ECHO_C" >&6
9720 fi
9721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9723 else
9724   # Is the header compilable?
9725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733 $ac_includes_default
9734 #include <$ac_header>
9735 _ACEOF
9736 rm -f conftest.$ac_objext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738   (eval $ac_compile) 2>conftest.er1
9739   ac_status=$?
9740   grep -v '^ *+' conftest.er1 >conftest.err
9741   rm -f conftest.er1
9742   cat conftest.err >&5
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); } &&
9745          { ac_try='test -z "$ac_c_werror_flag"
9746                          || test ! -s conftest.err'
9747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748   (eval $ac_try) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; } &&
9752          { ac_try='test -s conftest.$ac_objext'
9753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754   (eval $ac_try) 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; }; then
9758   ac_header_compiler=yes
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763 ac_header_compiler=no
9764 fi
9765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9767 echo "${ECHO_T}$ac_header_compiler" >&6
9768
9769 # Is the header present?
9770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778 #include <$ac_header>
9779 _ACEOF
9780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9781   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } >/dev/null; then
9788   if test -s conftest.err; then
9789     ac_cpp_err=$ac_c_preproc_warn_flag
9790     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9791   else
9792     ac_cpp_err=
9793   fi
9794 else
9795   ac_cpp_err=yes
9796 fi
9797 if test -z "$ac_cpp_err"; then
9798   ac_header_preproc=yes
9799 else
9800   echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803   ac_header_preproc=no
9804 fi
9805 rm -f conftest.err conftest.$ac_ext
9806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9807 echo "${ECHO_T}$ac_header_preproc" >&6
9808
9809 # So?  What about this header?
9810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9811   yes:no: )
9812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9816     ac_header_preproc=yes
9817     ;;
9818   no:yes:* )
9819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9821     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9822 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9823     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9825     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9826 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9829     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9831     (
9832       cat <<\_ASBOX
9833 ## ------------------------------------------ ##
9834 ## Report this to the AC_PACKAGE_NAME lists.  ##
9835 ## ------------------------------------------ ##
9836 _ASBOX
9837     ) |
9838       sed "s/^/$as_me: WARNING:     /" >&2
9839     ;;
9840 esac
9841 echo "$as_me:$LINENO: checking for $ac_header" >&5
9842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9844   echo $ECHO_N "(cached) $ECHO_C" >&6
9845 else
9846   eval "$as_ac_Header=\$ac_header_preproc"
9847 fi
9848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9850
9851 fi
9852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9853   cat >>confdefs.h <<_ACEOF
9854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9855 _ACEOF
9856
9857 fi
9858
9859 done
9860
9861 fi
9862
9863
9864 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9865 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9866 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9867 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9868   echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870   ac_func_search_save_LIBS=$LIBS
9871 ac_cv_search_dlgetmodinfo=no
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878
9879 /* Override any gcc2 internal prototype to avoid an error.  */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 /* We use char because int might match the return type of a gcc2
9884    builtin and then its argument prototype would still apply.  */
9885 char dlgetmodinfo ();
9886 int
9887 main ()
9888 {
9889 dlgetmodinfo ();
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896   (eval $ac_link) 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); } &&
9903          { ac_try='test -z "$ac_c_werror_flag"
9904                          || test ! -s conftest.err'
9905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906   (eval $ac_try) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; } &&
9910          { ac_try='test -s conftest$ac_exeext'
9911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912   (eval $ac_try) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; }; then
9916   ac_cv_search_dlgetmodinfo="none required"
9917 else
9918   echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9920
9921 fi
9922 rm -f conftest.err conftest.$ac_objext \
9923       conftest$ac_exeext conftest.$ac_ext
9924 if test "$ac_cv_search_dlgetmodinfo" = no; then
9925   for ac_lib in dl xpdl; do
9926     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9927     cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933
9934 /* Override any gcc2 internal prototype to avoid an error.  */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 /* We use char because int might match the return type of a gcc2
9939    builtin and then its argument prototype would still apply.  */
9940 char dlgetmodinfo ();
9941 int
9942 main ()
9943 {
9944 dlgetmodinfo ();
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951   (eval $ac_link) 2>conftest.er1
9952   ac_status=$?
9953   grep -v '^ *+' conftest.er1 >conftest.err
9954   rm -f conftest.er1
9955   cat conftest.err >&5
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); } &&
9958          { ac_try='test -z "$ac_c_werror_flag"
9959                          || test ! -s conftest.err'
9960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961   (eval $ac_try) 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; } &&
9965          { ac_try='test -s conftest$ac_exeext'
9966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967   (eval $ac_try) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; }; then
9971   ac_cv_search_dlgetmodinfo="-l$ac_lib"
9972 break
9973 else
9974   echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977 fi
9978 rm -f conftest.err conftest.$ac_objext \
9979       conftest$ac_exeext conftest.$ac_ext
9980   done
9981 fi
9982 LIBS=$ac_func_search_save_LIBS
9983 fi
9984 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
9985 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
9986 if test "$ac_cv_search_dlgetmodinfo" != no; then
9987   test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
9988
9989 fi
9990
9991
9992 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9993 # There is a very specific comment in /usr/include/curses.h explaining that
9994 # termcap routines built into libcurses must not be used.
9995 #
9996 # The symptoms we observed so far is GDB unexpectedly changing
9997 # the terminal settings when tgetent is called - this is particularly
9998 # visible as the output is missing carriage returns, and so rapidly
9999 # becomes very hard to read.
10000 #
10001 # The readline configure script has already decided that libtermcap
10002 # was enough for its purposes, and so decided to build readline using
10003 # libtermcap.  Since the TUI mode requires curses, building GDB with
10004 # TUI enabled results in both libraries to be used at the same time,
10005 # which is not allowed.  This basically means that GDB with TUI is
10006 # broken on alpha-osf.
10007
10008 case $host_os in
10009   alpha*-*-osf* )
10010     if "$enable_tui" = "yes"; then
10011       { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10012 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10013    { (exit 1); exit 1; }; }
10014     fi
10015     if "$enable_tui" = "auto"; then
10016       enable_tui=no
10017     fi
10018     ;;
10019 esac
10020
10021 # Check whether we should enable the TUI, but only do so if we really
10022 # can.
10023 if test x"$enable_tui" != xno; then
10024   if test -d $srcdir/tui; then
10025     # For the TUI, we need enhanced curses functionality.
10026     #
10027     # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10028     # curses library because the latter might not provide all the
10029     # functionality we need.  However, this leads to problems on systems
10030     # where the linker searches /usr/local/lib, but the compiler doesn't
10031     # search /usr/local/include, if ncurses is installed in /usr/local.  A
10032     # default installation of ncurses on alpha*-dec-osf* will lead to such
10033     # a situation.
10034     echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10035 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10036 if test "${ac_cv_search_waddstr+set}" = set; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   ac_func_search_save_LIBS=$LIBS
10040 ac_cv_search_waddstr=no
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h.  */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h.  */
10047
10048 /* Override any gcc2 internal prototype to avoid an error.  */
10049 #ifdef __cplusplus
10050 extern "C"
10051 #endif
10052 /* We use char because int might match the return type of a gcc2
10053    builtin and then its argument prototype would still apply.  */
10054 char waddstr ();
10055 int
10056 main ()
10057 {
10058 waddstr ();
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065   (eval $ac_link) 2>conftest.er1
10066   ac_status=$?
10067   grep -v '^ *+' conftest.er1 >conftest.err
10068   rm -f conftest.er1
10069   cat conftest.err >&5
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); } &&
10072          { ac_try='test -z "$ac_c_werror_flag"
10073                          || test ! -s conftest.err'
10074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075   (eval $ac_try) 2>&5
10076   ac_status=$?
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); }; } &&
10079          { ac_try='test -s conftest$ac_exeext'
10080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081   (eval $ac_try) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; }; then
10085   ac_cv_search_waddstr="none required"
10086 else
10087   echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090 fi
10091 rm -f conftest.err conftest.$ac_objext \
10092       conftest$ac_exeext conftest.$ac_ext
10093 if test "$ac_cv_search_waddstr" = no; then
10094   for ac_lib in ncurses cursesX curses; do
10095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10096     cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h.  */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h.  */
10102
10103 /* Override any gcc2 internal prototype to avoid an error.  */
10104 #ifdef __cplusplus
10105 extern "C"
10106 #endif
10107 /* We use char because int might match the return type of a gcc2
10108    builtin and then its argument prototype would still apply.  */
10109 char waddstr ();
10110 int
10111 main ()
10112 {
10113 waddstr ();
10114   ;
10115   return 0;
10116 }
10117 _ACEOF
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10120   (eval $ac_link) 2>conftest.er1
10121   ac_status=$?
10122   grep -v '^ *+' conftest.er1 >conftest.err
10123   rm -f conftest.er1
10124   cat conftest.err >&5
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); } &&
10127          { ac_try='test -z "$ac_c_werror_flag"
10128                          || test ! -s conftest.err'
10129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130   (eval $ac_try) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; } &&
10134          { ac_try='test -s conftest$ac_exeext'
10135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136   (eval $ac_try) 2>&5
10137   ac_status=$?
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); }; }; then
10140   ac_cv_search_waddstr="-l$ac_lib"
10141 break
10142 else
10143   echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 fi
10147 rm -f conftest.err conftest.$ac_objext \
10148       conftest$ac_exeext conftest.$ac_ext
10149   done
10150 fi
10151 LIBS=$ac_func_search_save_LIBS
10152 fi
10153 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10154 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10155 if test "$ac_cv_search_waddstr" != no; then
10156   test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10157
10158 fi
10159
10160
10161     if test "$ac_cv_search_waddstr" != no; then
10162       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10163       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10164       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10165       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10166       CONFIG_ALL="${CONFIG_ALL} all-tui"
10167       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10168       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10169       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10170     else
10171       if test x"$enable_tui" = xyes; then
10172         { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10173 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10174    { (exit 1); exit 1; }; }
10175       else
10176         { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10177 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10178       fi
10179     fi
10180   fi
10181 fi
10182
10183 # Since GDB uses Readline, we need termcap functionality.  In many
10184 # cases this will be provided by the curses library, but some systems
10185 # have a seperate termcap library, or no curses library at all.
10186
10187 case $host_os in
10188   cygwin*)
10189     if test -d $srcdir/libtermcap; then
10190       LIBS="../libtermcap/libtermcap.a $LIBS"
10191       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10192     fi ;;
10193   go32* | *djgpp*)
10194     ac_cv_search_tgetent="none required"
10195     ;;
10196   *mingw32*)
10197     ac_cv_search_tgetent="none required"
10198     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
10199     ;;
10200 esac
10201
10202 # These are the libraries checked by Readline.
10203 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10204 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10205 if test "${ac_cv_search_tgetent+set}" = set; then
10206   echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208   ac_func_search_save_LIBS=$LIBS
10209 ac_cv_search_tgetent=no
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h.  */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h.  */
10216
10217 /* Override any gcc2 internal prototype to avoid an error.  */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 /* We use char because int might match the return type of a gcc2
10222    builtin and then its argument prototype would still apply.  */
10223 char tgetent ();
10224 int
10225 main ()
10226 {
10227 tgetent ();
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234   (eval $ac_link) 2>conftest.er1
10235   ac_status=$?
10236   grep -v '^ *+' conftest.er1 >conftest.err
10237   rm -f conftest.er1
10238   cat conftest.err >&5
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); } &&
10241          { ac_try='test -z "$ac_c_werror_flag"
10242                          || test ! -s conftest.err'
10243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244   (eval $ac_try) 2>&5
10245   ac_status=$?
10246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247   (exit $ac_status); }; } &&
10248          { ac_try='test -s conftest$ac_exeext'
10249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250   (eval $ac_try) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; }; then
10254   ac_cv_search_tgetent="none required"
10255 else
10256   echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10258
10259 fi
10260 rm -f conftest.err conftest.$ac_objext \
10261       conftest$ac_exeext conftest.$ac_ext
10262 if test "$ac_cv_search_tgetent" = no; then
10263   for ac_lib in termcap tinfo curses ncurses; do
10264     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10265     cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h.  */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h.  */
10271
10272 /* Override any gcc2 internal prototype to avoid an error.  */
10273 #ifdef __cplusplus
10274 extern "C"
10275 #endif
10276 /* We use char because int might match the return type of a gcc2
10277    builtin and then its argument prototype would still apply.  */
10278 char tgetent ();
10279 int
10280 main ()
10281 {
10282 tgetent ();
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289   (eval $ac_link) 2>conftest.er1
10290   ac_status=$?
10291   grep -v '^ *+' conftest.er1 >conftest.err
10292   rm -f conftest.er1
10293   cat conftest.err >&5
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); } &&
10296          { ac_try='test -z "$ac_c_werror_flag"
10297                          || test ! -s conftest.err'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; } &&
10303          { ac_try='test -s conftest$ac_exeext'
10304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305   (eval $ac_try) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; }; then
10309   ac_cv_search_tgetent="-l$ac_lib"
10310 break
10311 else
10312   echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10314
10315 fi
10316 rm -f conftest.err conftest.$ac_objext \
10317       conftest$ac_exeext conftest.$ac_ext
10318   done
10319 fi
10320 LIBS=$ac_func_search_save_LIBS
10321 fi
10322 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10323 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10324 if test "$ac_cv_search_tgetent" != no; then
10325   test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10326
10327 fi
10328
10329
10330 if test "$ac_cv_search_tgetent" = no; then
10331   { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10332 echo "$as_me: error: no termcap library found" >&2;}
10333    { (exit 1); exit 1; }; }
10334 fi
10335
10336
10337 # Check whether --with-system-readline or --without-system-readline was given.
10338 if test "${with_system_readline+set}" = set; then
10339   withval="$with_system_readline"
10340
10341 fi;
10342
10343 if test "$with_system_readline" = yes; then
10344   READLINE=-lreadline
10345   READLINE_DEPS=
10346   READLINE_CFLAGS=
10347 else
10348   READLINE='$(READLINE_DIR)/libreadline.a'
10349   READLINE_DEPS='$(READLINE)'
10350   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10351 fi
10352
10353
10354
10355
10356
10357 # Check whether --with-expat or --without-expat was given.
10358 if test "${with_expat+set}" = set; then
10359   withval="$with_expat"
10360
10361 else
10362   with_expat=auto
10363 fi;
10364 echo "$as_me:$LINENO: checking whether to use expat" >&5
10365 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10366 echo "$as_me:$LINENO: result: $with_expat" >&5
10367 echo "${ECHO_T}$with_expat" >&6
10368
10369 if test "${with_expat}" = no; then
10370   { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10371 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10372   HAVE_LIBEXPAT=no
10373 else
10374
10375       if test "X$prefix" = "XNONE"; then
10376     acl_final_prefix="$ac_default_prefix"
10377   else
10378     acl_final_prefix="$prefix"
10379   fi
10380   if test "X$exec_prefix" = "XNONE"; then
10381     acl_final_exec_prefix='${prefix}'
10382   else
10383     acl_final_exec_prefix="$exec_prefix"
10384   fi
10385   acl_save_prefix="$prefix"
10386   prefix="$acl_final_prefix"
10387   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10388   prefix="$acl_save_prefix"
10389
10390
10391 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10392 if test "${with_gnu_ld+set}" = set; then
10393   withval="$with_gnu_ld"
10394   test "$withval" = no || with_gnu_ld=yes
10395 else
10396   with_gnu_ld=no
10397 fi;
10398 # Prepare PATH_SEPARATOR.
10399 # The user is always right.
10400 if test "${PATH_SEPARATOR+set}" != set; then
10401   echo "#! /bin/sh" >conf$$.sh
10402   echo  "exit 0"   >>conf$$.sh
10403   chmod +x conf$$.sh
10404   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10405     PATH_SEPARATOR=';'
10406   else
10407     PATH_SEPARATOR=:
10408   fi
10409   rm -f conf$$.sh
10410 fi
10411 ac_prog=ld
10412 if test "$GCC" = yes; then
10413   # Check if gcc -print-prog-name=ld gives a path.
10414   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10415 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10416   case $host in
10417   *-*-mingw*)
10418     # gcc leaves a trailing carriage return which upsets mingw
10419     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10420   *)
10421     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10422   esac
10423   case $ac_prog in
10424     # Accept absolute paths.
10425     [\\/]* | [A-Za-z]:[\\/]*)
10426       re_direlt='/[^/][^/]*/\.\./'
10427       # Canonicalize the path of ld
10428       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10429       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10430         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10431       done
10432       test -z "$LD" && LD="$ac_prog"
10433       ;;
10434   "")
10435     # If it fails, then pretend we aren't using GCC.
10436     ac_prog=ld
10437     ;;
10438   *)
10439     # If it is relative, then search for the first ld in PATH.
10440     with_gnu_ld=unknown
10441     ;;
10442   esac
10443 elif test "$with_gnu_ld" = yes; then
10444   echo "$as_me:$LINENO: checking for GNU ld" >&5
10445 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10446 else
10447   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10448 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10449 fi
10450 if test "${acl_cv_path_LD+set}" = set; then
10451   echo $ECHO_N "(cached) $ECHO_C" >&6
10452 else
10453   if test -z "$LD"; then
10454   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10455   for ac_dir in $PATH; do
10456     test -z "$ac_dir" && ac_dir=.
10457     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10458       acl_cv_path_LD="$ac_dir/$ac_prog"
10459       # Check to see if the program is GNU ld.  I'd rather use --version,
10460       # but apparently some GNU ld's only accept -v.
10461       # Break only if it was the GNU/non-GNU ld that we prefer.
10462       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10463         test "$with_gnu_ld" != no && break
10464       else
10465         test "$with_gnu_ld" != yes && break
10466       fi
10467     fi
10468   done
10469   IFS="$ac_save_ifs"
10470 else
10471   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10472 fi
10473 fi
10474
10475 LD="$acl_cv_path_LD"
10476 if test -n "$LD"; then
10477   echo "$as_me:$LINENO: result: $LD" >&5
10478 echo "${ECHO_T}$LD" >&6
10479 else
10480   echo "$as_me:$LINENO: result: no" >&5
10481 echo "${ECHO_T}no" >&6
10482 fi
10483 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10484 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10485    { (exit 1); exit 1; }; }
10486 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10487 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10488 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10489   echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10492 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10493   acl_cv_prog_gnu_ld=yes
10494 else
10495   acl_cv_prog_gnu_ld=no
10496 fi
10497 fi
10498 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10499 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10500 with_gnu_ld=$acl_cv_prog_gnu_ld
10501
10502
10503
10504                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10505 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10506 if test "${acl_cv_rpath+set}" = set; then
10507   echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509
10510     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10511     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10512     . ./conftest.sh
10513     rm -f ./conftest.sh
10514     acl_cv_rpath=done
10515
10516 fi
10517 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10518 echo "${ECHO_T}$acl_cv_rpath" >&6
10519   wl="$acl_cv_wl"
10520   libext="$acl_cv_libext"
10521   shlibext="$acl_cv_shlibext"
10522   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10523   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10524   hardcode_direct="$acl_cv_hardcode_direct"
10525   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10526     # Check whether --enable-rpath or --disable-rpath was given.
10527 if test "${enable_rpath+set}" = set; then
10528   enableval="$enable_rpath"
10529   :
10530 else
10531   enable_rpath=yes
10532 fi;
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542     use_additional=yes
10543
10544   acl_save_prefix="$prefix"
10545   prefix="$acl_final_prefix"
10546   acl_save_exec_prefix="$exec_prefix"
10547   exec_prefix="$acl_final_exec_prefix"
10548
10549     eval additional_includedir=\"$includedir\"
10550     eval additional_libdir=\"$libdir\"
10551
10552   exec_prefix="$acl_save_exec_prefix"
10553   prefix="$acl_save_prefix"
10554
10555
10556 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10557 if test "${with_libexpat_prefix+set}" = set; then
10558   withval="$with_libexpat_prefix"
10559
10560     if test "X$withval" = "Xno"; then
10561       use_additional=no
10562     else
10563       if test "X$withval" = "X"; then
10564
10565   acl_save_prefix="$prefix"
10566   prefix="$acl_final_prefix"
10567   acl_save_exec_prefix="$exec_prefix"
10568   exec_prefix="$acl_final_exec_prefix"
10569
10570           eval additional_includedir=\"$includedir\"
10571           eval additional_libdir=\"$libdir\"
10572
10573   exec_prefix="$acl_save_exec_prefix"
10574   prefix="$acl_save_prefix"
10575
10576       else
10577         additional_includedir="$withval/include"
10578         additional_libdir="$withval/lib"
10579       fi
10580     fi
10581
10582 fi;
10583       LIBEXPAT=
10584   LTLIBEXPAT=
10585   INCEXPAT=
10586   rpathdirs=
10587   ltrpathdirs=
10588   names_already_handled=
10589   names_next_round='expat '
10590   while test -n "$names_next_round"; do
10591     names_this_round="$names_next_round"
10592     names_next_round=
10593     for name in $names_this_round; do
10594       already_handled=
10595       for n in $names_already_handled; do
10596         if test "$n" = "$name"; then
10597           already_handled=yes
10598           break
10599         fi
10600       done
10601       if test -z "$already_handled"; then
10602         names_already_handled="$names_already_handled $name"
10603                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10604         eval value=\"\$HAVE_LIB$uppername\"
10605         if test -n "$value"; then
10606           if test "$value" = yes; then
10607             eval value=\"\$LIB$uppername\"
10608             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10609             eval value=\"\$LTLIB$uppername\"
10610             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10611           else
10612                                     :
10613           fi
10614         else
10615                               found_dir=
10616           found_la=
10617           found_so=
10618           found_a=
10619           if test $use_additional = yes; then
10620             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10621               found_dir="$additional_libdir"
10622               found_so="$additional_libdir/lib$name.$shlibext"
10623               if test -f "$additional_libdir/lib$name.la"; then
10624                 found_la="$additional_libdir/lib$name.la"
10625               fi
10626             else
10627               if test -f "$additional_libdir/lib$name.$libext"; then
10628                 found_dir="$additional_libdir"
10629                 found_a="$additional_libdir/lib$name.$libext"
10630                 if test -f "$additional_libdir/lib$name.la"; then
10631                   found_la="$additional_libdir/lib$name.la"
10632                 fi
10633               fi
10634             fi
10635           fi
10636           if test "X$found_dir" = "X"; then
10637             for x in $LDFLAGS $LTLIBEXPAT; do
10638
10639   acl_save_prefix="$prefix"
10640   prefix="$acl_final_prefix"
10641   acl_save_exec_prefix="$exec_prefix"
10642   exec_prefix="$acl_final_exec_prefix"
10643   eval x=\"$x\"
10644   exec_prefix="$acl_save_exec_prefix"
10645   prefix="$acl_save_prefix"
10646
10647               case "$x" in
10648                 -L*)
10649                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10650                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10651                     found_dir="$dir"
10652                     found_so="$dir/lib$name.$shlibext"
10653                     if test -f "$dir/lib$name.la"; then
10654                       found_la="$dir/lib$name.la"
10655                     fi
10656                   else
10657                     if test -f "$dir/lib$name.$libext"; then
10658                       found_dir="$dir"
10659                       found_a="$dir/lib$name.$libext"
10660                       if test -f "$dir/lib$name.la"; then
10661                         found_la="$dir/lib$name.la"
10662                       fi
10663                     fi
10664                   fi
10665                   ;;
10666               esac
10667               if test "X$found_dir" != "X"; then
10668                 break
10669               fi
10670             done
10671           fi
10672           if test "X$found_dir" != "X"; then
10673                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10674             if test "X$found_so" != "X"; then
10675                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10676                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10677               else
10678                                                                                 haveit=
10679                 for x in $ltrpathdirs; do
10680                   if test "X$x" = "X$found_dir"; then
10681                     haveit=yes
10682                     break
10683                   fi
10684                 done
10685                 if test -z "$haveit"; then
10686                   ltrpathdirs="$ltrpathdirs $found_dir"
10687                 fi
10688                                 if test "$hardcode_direct" = yes; then
10689                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10690                 else
10691                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10692                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10693                                                             haveit=
10694                     for x in $rpathdirs; do
10695                       if test "X$x" = "X$found_dir"; then
10696                         haveit=yes
10697                         break
10698                       fi
10699                     done
10700                     if test -z "$haveit"; then
10701                       rpathdirs="$rpathdirs $found_dir"
10702                     fi
10703                   else
10704                                                                                 haveit=
10705                     for x in $LDFLAGS $LIBEXPAT; do
10706
10707   acl_save_prefix="$prefix"
10708   prefix="$acl_final_prefix"
10709   acl_save_exec_prefix="$exec_prefix"
10710   exec_prefix="$acl_final_exec_prefix"
10711   eval x=\"$x\"
10712   exec_prefix="$acl_save_exec_prefix"
10713   prefix="$acl_save_prefix"
10714
10715                       if test "X$x" = "X-L$found_dir"; then
10716                         haveit=yes
10717                         break
10718                       fi
10719                     done
10720                     if test -z "$haveit"; then
10721                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10722                     fi
10723                     if test "$hardcode_minus_L" != no; then
10724                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10725                     else
10726                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10727                     fi
10728                   fi
10729                 fi
10730               fi
10731             else
10732               if test "X$found_a" != "X"; then
10733                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10734               else
10735                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10736               fi
10737             fi
10738                         additional_includedir=
10739             case "$found_dir" in
10740               */lib | */lib/)
10741                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10742                 additional_includedir="$basedir/include"
10743                 ;;
10744             esac
10745             if test "X$additional_includedir" != "X"; then
10746                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10747                 haveit=
10748                 if test "X$additional_includedir" = "X/usr/local/include"; then
10749                   if test -n "$GCC"; then
10750                     case $host_os in
10751                       linux*) haveit=yes;;
10752                     esac
10753                   fi
10754                 fi
10755                 if test -z "$haveit"; then
10756                   for x in $CPPFLAGS $INCEXPAT; do
10757
10758   acl_save_prefix="$prefix"
10759   prefix="$acl_final_prefix"
10760   acl_save_exec_prefix="$exec_prefix"
10761   exec_prefix="$acl_final_exec_prefix"
10762   eval x=\"$x\"
10763   exec_prefix="$acl_save_exec_prefix"
10764   prefix="$acl_save_prefix"
10765
10766                     if test "X$x" = "X-I$additional_includedir"; then
10767                       haveit=yes
10768                       break
10769                     fi
10770                   done
10771                   if test -z "$haveit"; then
10772                     if test -d "$additional_includedir"; then
10773                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10774                     fi
10775                   fi
10776                 fi
10777               fi
10778             fi
10779                         if test -n "$found_la"; then
10780                                                         save_libdir="$libdir"
10781               case "$found_la" in
10782                 */* | *\\*) . "$found_la" ;;
10783                 *) . "./$found_la" ;;
10784               esac
10785               libdir="$save_libdir"
10786                             for dep in $dependency_libs; do
10787                 case "$dep" in
10788                   -L*)
10789                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10790                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10791                       haveit=
10792                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10793                         if test -n "$GCC"; then
10794                           case $host_os in
10795                             linux*) haveit=yes;;
10796                           esac
10797                         fi
10798                       fi
10799                       if test -z "$haveit"; then
10800                         haveit=
10801                         for x in $LDFLAGS $LIBEXPAT; do
10802
10803   acl_save_prefix="$prefix"
10804   prefix="$acl_final_prefix"
10805   acl_save_exec_prefix="$exec_prefix"
10806   exec_prefix="$acl_final_exec_prefix"
10807   eval x=\"$x\"
10808   exec_prefix="$acl_save_exec_prefix"
10809   prefix="$acl_save_prefix"
10810
10811                           if test "X$x" = "X-L$additional_libdir"; then
10812                             haveit=yes
10813                             break
10814                           fi
10815                         done
10816                         if test -z "$haveit"; then
10817                           if test -d "$additional_libdir"; then
10818                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10819                           fi
10820                         fi
10821                         haveit=
10822                         for x in $LDFLAGS $LTLIBEXPAT; do
10823
10824   acl_save_prefix="$prefix"
10825   prefix="$acl_final_prefix"
10826   acl_save_exec_prefix="$exec_prefix"
10827   exec_prefix="$acl_final_exec_prefix"
10828   eval x=\"$x\"
10829   exec_prefix="$acl_save_exec_prefix"
10830   prefix="$acl_save_prefix"
10831
10832                           if test "X$x" = "X-L$additional_libdir"; then
10833                             haveit=yes
10834                             break
10835                           fi
10836                         done
10837                         if test -z "$haveit"; then
10838                           if test -d "$additional_libdir"; then
10839                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10840                           fi
10841                         fi
10842                       fi
10843                     fi
10844                     ;;
10845                   -R*)
10846                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10847                     if test "$enable_rpath" != no; then
10848                                                                   haveit=
10849                       for x in $rpathdirs; do
10850                         if test "X$x" = "X$dir"; then
10851                           haveit=yes
10852                           break
10853                         fi
10854                       done
10855                       if test -z "$haveit"; then
10856                         rpathdirs="$rpathdirs $dir"
10857                       fi
10858                                                                   haveit=
10859                       for x in $ltrpathdirs; do
10860                         if test "X$x" = "X$dir"; then
10861                           haveit=yes
10862                           break
10863                         fi
10864                       done
10865                       if test -z "$haveit"; then
10866                         ltrpathdirs="$ltrpathdirs $dir"
10867                       fi
10868                     fi
10869                     ;;
10870                   -l*)
10871                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10872                     ;;
10873                   *.la)
10874                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10875                     ;;
10876                   *)
10877                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10878                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10879                     ;;
10880                 esac
10881               done
10882             fi
10883           else
10884                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10885             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10886           fi
10887         fi
10888       fi
10889     done
10890   done
10891   if test "X$rpathdirs" != "X"; then
10892     if test -n "$hardcode_libdir_separator"; then
10893                         alldirs=
10894       for found_dir in $rpathdirs; do
10895         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10896       done
10897             acl_save_libdir="$libdir"
10898       libdir="$alldirs"
10899       eval flag=\"$hardcode_libdir_flag_spec\"
10900       libdir="$acl_save_libdir"
10901       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10902     else
10903             for found_dir in $rpathdirs; do
10904         acl_save_libdir="$libdir"
10905         libdir="$found_dir"
10906         eval flag=\"$hardcode_libdir_flag_spec\"
10907         libdir="$acl_save_libdir"
10908         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10909       done
10910     fi
10911   fi
10912   if test "X$ltrpathdirs" != "X"; then
10913             for found_dir in $ltrpathdirs; do
10914       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10915     done
10916   fi
10917
10918
10919         ac_save_CPPFLAGS="$CPPFLAGS"
10920
10921   for element in $INCEXPAT; do
10922     haveit=
10923     for x in $CPPFLAGS; do
10924
10925   acl_save_prefix="$prefix"
10926   prefix="$acl_final_prefix"
10927   acl_save_exec_prefix="$exec_prefix"
10928   exec_prefix="$acl_final_exec_prefix"
10929   eval x=\"$x\"
10930   exec_prefix="$acl_save_exec_prefix"
10931   prefix="$acl_save_prefix"
10932
10933       if test "X$x" = "X$element"; then
10934         haveit=yes
10935         break
10936       fi
10937     done
10938     if test -z "$haveit"; then
10939       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10940     fi
10941   done
10942
10943
10944   echo "$as_me:$LINENO: checking for libexpat" >&5
10945 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
10946 if test "${ac_cv_libexpat+set}" = set; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949
10950     ac_save_LIBS="$LIBS"
10951     LIBS="$LIBS $LIBEXPAT"
10952     cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h.  */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h.  */
10958 #include "expat.h"
10959 int
10960 main ()
10961 {
10962 XML_Parser p = XML_ParserCreate (0);
10963   ;
10964   return 0;
10965 }
10966 _ACEOF
10967 rm -f conftest.$ac_objext conftest$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969   (eval $ac_link) 2>conftest.er1
10970   ac_status=$?
10971   grep -v '^ *+' conftest.er1 >conftest.err
10972   rm -f conftest.er1
10973   cat conftest.err >&5
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); } &&
10976          { ac_try='test -z "$ac_c_werror_flag"
10977                          || test ! -s conftest.err'
10978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979   (eval $ac_try) 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); }; } &&
10983          { ac_try='test -s conftest$ac_exeext'
10984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985   (eval $ac_try) 2>&5
10986   ac_status=$?
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); }; }; then
10989   ac_cv_libexpat=yes
10990 else
10991   echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994 ac_cv_libexpat=no
10995 fi
10996 rm -f conftest.err conftest.$ac_objext \
10997       conftest$ac_exeext conftest.$ac_ext
10998     LIBS="$ac_save_LIBS"
10999
11000 fi
11001 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11002 echo "${ECHO_T}$ac_cv_libexpat" >&6
11003   if test "$ac_cv_libexpat" = yes; then
11004     HAVE_LIBEXPAT=yes
11005
11006 cat >>confdefs.h <<\_ACEOF
11007 #define HAVE_LIBEXPAT 1
11008 _ACEOF
11009
11010     echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11011 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11012     echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11013 echo "${ECHO_T}$LIBEXPAT" >&6
11014   else
11015     HAVE_LIBEXPAT=no
11016             CPPFLAGS="$ac_save_CPPFLAGS"
11017     LIBEXPAT=
11018     LTLIBEXPAT=
11019   fi
11020
11021
11022
11023
11024
11025
11026   if test "$HAVE_LIBEXPAT" != yes; then
11027     if test "$with_expat" = yes; then
11028       { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11029 echo "$as_me: error: expat is missing or unusable" >&2;}
11030    { (exit 1); exit 1; }; }
11031     else
11032       { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11033 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11034     fi
11035   else
11036     save_LIBS=$LIBS
11037     LIBS="$LIBS $LIBEXPAT"
11038
11039 for ac_func in XML_StopParser
11040 do
11041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11042 echo "$as_me:$LINENO: checking for $ac_func" >&5
11043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11044 if eval "test \"\${$as_ac_var+set}\" = set"; then
11045   echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047   cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h.  */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h.  */
11053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11055 #define $ac_func innocuous_$ac_func
11056
11057 /* System header to define __stub macros and hopefully few prototypes,
11058     which can conflict with char $ac_func (); below.
11059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060     <limits.h> exists even on freestanding compilers.  */
11061
11062 #ifdef __STDC__
11063 # include <limits.h>
11064 #else
11065 # include <assert.h>
11066 #endif
11067
11068 #undef $ac_func
11069
11070 /* Override any gcc2 internal prototype to avoid an error.  */
11071 #ifdef __cplusplus
11072 extern "C"
11073 {
11074 #endif
11075 /* We use char because int might match the return type of a gcc2
11076    builtin and then its argument prototype would still apply.  */
11077 char $ac_func ();
11078 /* The GNU C library defines this for functions which it implements
11079     to always fail with ENOSYS.  Some functions are actually named
11080     something starting with __ and the normal name is an alias.  */
11081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11082 choke me
11083 #else
11084 char (*f) () = $ac_func;
11085 #endif
11086 #ifdef __cplusplus
11087 }
11088 #endif
11089
11090 int
11091 main ()
11092 {
11093 return f != $ac_func;
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 rm -f conftest.$ac_objext conftest$ac_exeext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100   (eval $ac_link) 2>conftest.er1
11101   ac_status=$?
11102   grep -v '^ *+' conftest.er1 >conftest.err
11103   rm -f conftest.er1
11104   cat conftest.err >&5
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); } &&
11107          { ac_try='test -z "$ac_c_werror_flag"
11108                          || test ! -s conftest.err'
11109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110   (eval $ac_try) 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; } &&
11114          { ac_try='test -s conftest$ac_exeext'
11115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116   (eval $ac_try) 2>&5
11117   ac_status=$?
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); }; }; then
11120   eval "$as_ac_var=yes"
11121 else
11122   echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11124
11125 eval "$as_ac_var=no"
11126 fi
11127 rm -f conftest.err conftest.$ac_objext \
11128       conftest$ac_exeext conftest.$ac_ext
11129 fi
11130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11132 if test `eval echo '${'$as_ac_var'}'` = yes; then
11133   cat >>confdefs.h <<_ACEOF
11134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11135 _ACEOF
11136
11137 fi
11138 done
11139
11140     LIBS=$save_LIBS
11141   fi
11142 fi
11143
11144
11145
11146
11147 # Check whether --with-python or --without-python was given.
11148 if test "${with_python+set}" = set; then
11149   withval="$with_python"
11150
11151 else
11152   with_python=auto
11153 fi;
11154 echo "$as_me:$LINENO: checking whether to use python" >&5
11155 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11156 echo "$as_me:$LINENO: result: $with_python" >&5
11157 echo "${ECHO_T}$with_python" >&6
11158
11159 if test "${with_python}" = no; then
11160   { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11161 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11162   have_libpython=no
11163 else
11164   case "${with_python}" in
11165   yes | auto)
11166     # Leave as empty, use defaults.
11167     python_includes=
11168     python_libs=
11169     ;;
11170   /*)
11171     python_includes="-I${with_python}/include"
11172     python_libs="-L${with_python}/lib"
11173     ;;
11174   *)
11175     { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11176 echo "$as_me: error: invalid value for --with-python" >&2;}
11177    { (exit 1); exit 1; }; }
11178     ;;
11179   esac
11180
11181   save_CPPFLAGS=$CPPFLAGS
11182   CPPFLAGS="$CPPFLAGS ${python_includes}"
11183   save_LIBS=$LIBS
11184   LIBS="$LIBS ${python_libs}"
11185   have_libpython=no
11186   if test "${have_libpython}" = no; then
11187
11188   version=python2.6
11189
11190
11191   HAVE_LIBPYTHON2_6=no
11192   echo "$as_me:$LINENO: checking for ${version}" >&5
11193 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11194   save_LIBS=$LIBS
11195   LIBS="$LIBS -l${version}"
11196   cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h.  */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h.  */
11202 #include "${version}/Python.h"
11203 int
11204 main ()
11205 {
11206 Py_Initialize ();
11207   ;
11208   return 0;
11209 }
11210 _ACEOF
11211 rm -f conftest.$ac_objext conftest$ac_exeext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213   (eval $ac_link) 2>conftest.er1
11214   ac_status=$?
11215   grep -v '^ *+' conftest.er1 >conftest.err
11216   rm -f conftest.er1
11217   cat conftest.err >&5
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); } &&
11220          { ac_try='test -z "$ac_c_werror_flag"
11221                          || test ! -s conftest.err'
11222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11223   (eval $ac_try) 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); }; } &&
11227          { ac_try='test -s conftest$ac_exeext'
11228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229   (eval $ac_try) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }; }; then
11233   HAVE_LIBPYTHON2_6=yes
11234                   have_libpython=yes
11235 else
11236   echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239 LIBS=$save_LIBS
11240 fi
11241 rm -f conftest.err conftest.$ac_objext \
11242       conftest$ac_exeext conftest.$ac_ext
11243   echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11244 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11245
11246     if test "${HAVE_LIBPYTHON2_6}" = yes; then
11247
11248 cat >>confdefs.h <<\_ACEOF
11249 #define HAVE_LIBPYTHON2_6 1
11250 _ACEOF
11251
11252     fi
11253   fi
11254   if test ${have_libpython} = no; then
11255
11256   version=python2.5
11257
11258
11259   HAVE_LIBPYTHON2_5=no
11260   echo "$as_me:$LINENO: checking for ${version}" >&5
11261 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11262   save_LIBS=$LIBS
11263   LIBS="$LIBS -l${version}"
11264   cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h.  */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h.  */
11270 #include "${version}/Python.h"
11271 int
11272 main ()
11273 {
11274 Py_Initialize ();
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281   (eval $ac_link) 2>conftest.er1
11282   ac_status=$?
11283   grep -v '^ *+' conftest.er1 >conftest.err
11284   rm -f conftest.er1
11285   cat conftest.err >&5
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); } &&
11288          { ac_try='test -z "$ac_c_werror_flag"
11289                          || test ! -s conftest.err'
11290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291   (eval $ac_try) 2>&5
11292   ac_status=$?
11293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); }; } &&
11295          { ac_try='test -s conftest$ac_exeext'
11296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297   (eval $ac_try) 2>&5
11298   ac_status=$?
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); }; }; then
11301   HAVE_LIBPYTHON2_5=yes
11302                   have_libpython=yes
11303 else
11304   echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11306
11307 LIBS=$save_LIBS
11308 fi
11309 rm -f conftest.err conftest.$ac_objext \
11310       conftest$ac_exeext conftest.$ac_ext
11311   echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11312 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11313
11314     if test "${HAVE_LIBPYTHON2_5}" = yes; then
11315
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_LIBPYTHON2_5 1
11318 _ACEOF
11319
11320     fi
11321   fi
11322   if test ${have_libpython} = no; then
11323
11324   version=python2.4
11325
11326
11327   HAVE_LIBPYTHON2_4=no
11328   echo "$as_me:$LINENO: checking for ${version}" >&5
11329 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11330   save_LIBS=$LIBS
11331   LIBS="$LIBS -l${version}"
11332   cat >conftest.$ac_ext <<_ACEOF
11333 /* confdefs.h.  */
11334 _ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h.  */
11338 #include "${version}/Python.h"
11339 int
11340 main ()
11341 {
11342 Py_Initialize ();
11343   ;
11344   return 0;
11345 }
11346 _ACEOF
11347 rm -f conftest.$ac_objext conftest$ac_exeext
11348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11349   (eval $ac_link) 2>conftest.er1
11350   ac_status=$?
11351   grep -v '^ *+' conftest.er1 >conftest.err
11352   rm -f conftest.er1
11353   cat conftest.err >&5
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); } &&
11356          { ac_try='test -z "$ac_c_werror_flag"
11357                          || test ! -s conftest.err'
11358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359   (eval $ac_try) 2>&5
11360   ac_status=$?
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); }; } &&
11363          { ac_try='test -s conftest$ac_exeext'
11364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365   (eval $ac_try) 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); }; }; then
11369   HAVE_LIBPYTHON2_4=yes
11370                   have_libpython=yes
11371 else
11372   echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 LIBS=$save_LIBS
11376 fi
11377 rm -f conftest.err conftest.$ac_objext \
11378       conftest$ac_exeext conftest.$ac_ext
11379   echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11380 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11381
11382     if test "${HAVE_LIBPYTHON2_4}" = yes; then
11383
11384 cat >>confdefs.h <<\_ACEOF
11385 #define HAVE_LIBPYTHON2_4 1
11386 _ACEOF
11387
11388     fi
11389   fi
11390   if test ${have_libpython} = no; then
11391     case "${with_python}" in
11392     yes)
11393       { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11394 echo "$as_me: error: python is missing or unusable" >&2;}
11395    { (exit 1); exit 1; }; }
11396       ;;
11397     auto)
11398       { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11399 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11400       ;;
11401     *)
11402       { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11403 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11404    { (exit 1); exit 1; }; }
11405       ;;
11406     esac
11407     CPPFLAGS=$save_CPPFLAGS
11408     LIBS=$save_LIBS
11409   fi
11410 fi
11411
11412 if test "${have_libpython}" = yes; then
11413
11414 cat >>confdefs.h <<\_ACEOF
11415 #define HAVE_PYTHON 1
11416 _ACEOF
11417
11418   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11419   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11420   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11421   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11422
11423   # Flags needed to compile Python code (taken from python-config --cflags).
11424   # We cannot call python-config directly because it will output whatever was
11425   # used when compiling the Python interpreter itself, including flags which
11426   # would make the python-related objects be compiled differently from the
11427   # rest of GDB (e.g., -O2 and -fPIC).
11428   if test "${GCC}" = yes; then
11429     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11430   fi
11431
11432   if test "x${tentative_python_cflags}" != x; then
11433     echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11434 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11435     for flag in ${tentative_python_cflags}; do
11436       # Check that the compiler accepts it
11437       saved_CFLAGS="$CFLAGS"
11438       CFLAGS="$CFLAGS $flag"
11439       cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h.  */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h.  */
11445
11446 int
11447 main ()
11448 {
11449
11450   ;
11451   return 0;
11452 }
11453 _ACEOF
11454 rm -f conftest.$ac_objext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11456   (eval $ac_compile) 2>conftest.er1
11457   ac_status=$?
11458   grep -v '^ *+' conftest.er1 >conftest.err
11459   rm -f conftest.er1
11460   cat conftest.err >&5
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); } &&
11463          { ac_try='test -z "$ac_c_werror_flag"
11464                          || test ! -s conftest.err'
11465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466   (eval $ac_try) 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; } &&
11470          { ac_try='test -s conftest.$ac_objext'
11471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472   (eval $ac_try) 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); }; }; then
11476   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11477 else
11478   echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481 fi
11482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11483       CFLAGS="$saved_CFLAGS"
11484     done
11485     echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11486 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11487   fi
11488 else
11489   # Even if Python support is not compiled in, we need to have these files
11490   # included in order to recognize the GDB command "python".
11491   CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11492   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11493 fi
11494
11495
11496 # ------------------------- #
11497 # Checks for header files.  #
11498 # ------------------------- #
11499
11500
11501
11502
11503
11504
11505 ac_header_dirent=no
11506 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11507   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11508 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11509 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11511   echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513   cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h.  */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h.  */
11519 #include <sys/types.h>
11520 #include <$ac_hdr>
11521
11522 int
11523 main ()
11524 {
11525 if ((DIR *) 0)
11526 return 0;
11527   ;
11528   return 0;
11529 }
11530 _ACEOF
11531 rm -f conftest.$ac_objext
11532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11533   (eval $ac_compile) 2>conftest.er1
11534   ac_status=$?
11535   grep -v '^ *+' conftest.er1 >conftest.err
11536   rm -f conftest.er1
11537   cat conftest.err >&5
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); } &&
11540          { ac_try='test -z "$ac_c_werror_flag"
11541                          || test ! -s conftest.err'
11542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543   (eval $ac_try) 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); }; } &&
11547          { ac_try='test -s conftest.$ac_objext'
11548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549   (eval $ac_try) 2>&5
11550   ac_status=$?
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); }; }; then
11553   eval "$as_ac_Header=yes"
11554 else
11555   echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558 eval "$as_ac_Header=no"
11559 fi
11560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11561 fi
11562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11565   cat >>confdefs.h <<_ACEOF
11566 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11567 _ACEOF
11568
11569 ac_header_dirent=$ac_hdr; break
11570 fi
11571
11572 done
11573 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11574 if test $ac_header_dirent = dirent.h; then
11575   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11576 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11577 if test "${ac_cv_search_opendir+set}" = set; then
11578   echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580   ac_func_search_save_LIBS=$LIBS
11581 ac_cv_search_opendir=no
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h.  */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h.  */
11588
11589 /* Override any gcc2 internal prototype to avoid an error.  */
11590 #ifdef __cplusplus
11591 extern "C"
11592 #endif
11593 /* We use char because int might match the return type of a gcc2
11594    builtin and then its argument prototype would still apply.  */
11595 char opendir ();
11596 int
11597 main ()
11598 {
11599 opendir ();
11600   ;
11601   return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext conftest$ac_exeext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606   (eval $ac_link) 2>conftest.er1
11607   ac_status=$?
11608   grep -v '^ *+' conftest.er1 >conftest.err
11609   rm -f conftest.er1
11610   cat conftest.err >&5
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); } &&
11613          { ac_try='test -z "$ac_c_werror_flag"
11614                          || test ! -s conftest.err'
11615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616   (eval $ac_try) 2>&5
11617   ac_status=$?
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); }; } &&
11620          { ac_try='test -s conftest$ac_exeext'
11621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622   (eval $ac_try) 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }; }; then
11626   ac_cv_search_opendir="none required"
11627 else
11628   echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 fi
11632 rm -f conftest.err conftest.$ac_objext \
11633       conftest$ac_exeext conftest.$ac_ext
11634 if test "$ac_cv_search_opendir" = no; then
11635   for ac_lib in dir; do
11636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11637     cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h.  */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h.  */
11643
11644 /* Override any gcc2 internal prototype to avoid an error.  */
11645 #ifdef __cplusplus
11646 extern "C"
11647 #endif
11648 /* We use char because int might match the return type of a gcc2
11649    builtin and then its argument prototype would still apply.  */
11650 char opendir ();
11651 int
11652 main ()
11653 {
11654 opendir ();
11655   ;
11656   return 0;
11657 }
11658 _ACEOF
11659 rm -f conftest.$ac_objext conftest$ac_exeext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11661   (eval $ac_link) 2>conftest.er1
11662   ac_status=$?
11663   grep -v '^ *+' conftest.er1 >conftest.err
11664   rm -f conftest.er1
11665   cat conftest.err >&5
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); } &&
11668          { ac_try='test -z "$ac_c_werror_flag"
11669                          || test ! -s conftest.err'
11670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671   (eval $ac_try) 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); }; } &&
11675          { ac_try='test -s conftest$ac_exeext'
11676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677   (eval $ac_try) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; }; then
11681   ac_cv_search_opendir="-l$ac_lib"
11682 break
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687 fi
11688 rm -f conftest.err conftest.$ac_objext \
11689       conftest$ac_exeext conftest.$ac_ext
11690   done
11691 fi
11692 LIBS=$ac_func_search_save_LIBS
11693 fi
11694 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11695 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11696 if test "$ac_cv_search_opendir" != no; then
11697   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11698
11699 fi
11700
11701 else
11702   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11703 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11704 if test "${ac_cv_search_opendir+set}" = set; then
11705   echo $ECHO_N "(cached) $ECHO_C" >&6
11706 else
11707   ac_func_search_save_LIBS=$LIBS
11708 ac_cv_search_opendir=no
11709 cat >conftest.$ac_ext <<_ACEOF
11710 /* confdefs.h.  */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h.  */
11715
11716 /* Override any gcc2 internal prototype to avoid an error.  */
11717 #ifdef __cplusplus
11718 extern "C"
11719 #endif
11720 /* We use char because int might match the return type of a gcc2
11721    builtin and then its argument prototype would still apply.  */
11722 char opendir ();
11723 int
11724 main ()
11725 {
11726 opendir ();
11727   ;
11728   return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733   (eval $ac_link) 2>conftest.er1
11734   ac_status=$?
11735   grep -v '^ *+' conftest.er1 >conftest.err
11736   rm -f conftest.er1
11737   cat conftest.err >&5
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); } &&
11740          { ac_try='test -z "$ac_c_werror_flag"
11741                          || test ! -s conftest.err'
11742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743   (eval $ac_try) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); }; } &&
11747          { ac_try='test -s conftest$ac_exeext'
11748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749   (eval $ac_try) 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }; }; then
11753   ac_cv_search_opendir="none required"
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758 fi
11759 rm -f conftest.err conftest.$ac_objext \
11760       conftest$ac_exeext conftest.$ac_ext
11761 if test "$ac_cv_search_opendir" = no; then
11762   for ac_lib in x; do
11763     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11764     cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h.  */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h.  */
11770
11771 /* Override any gcc2 internal prototype to avoid an error.  */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 /* We use char because int might match the return type of a gcc2
11776    builtin and then its argument prototype would still apply.  */
11777 char opendir ();
11778 int
11779 main ()
11780 {
11781 opendir ();
11782   ;
11783   return 0;
11784 }
11785 _ACEOF
11786 rm -f conftest.$ac_objext conftest$ac_exeext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11788   (eval $ac_link) 2>conftest.er1
11789   ac_status=$?
11790   grep -v '^ *+' conftest.er1 >conftest.err
11791   rm -f conftest.er1
11792   cat conftest.err >&5
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); } &&
11795          { ac_try='test -z "$ac_c_werror_flag"
11796                          || test ! -s conftest.err'
11797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798   (eval $ac_try) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; } &&
11802          { ac_try='test -s conftest$ac_exeext'
11803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804   (eval $ac_try) 2>&5
11805   ac_status=$?
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); }; }; then
11808   ac_cv_search_opendir="-l$ac_lib"
11809 break
11810 else
11811   echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 fi
11815 rm -f conftest.err conftest.$ac_objext \
11816       conftest$ac_exeext conftest.$ac_ext
11817   done
11818 fi
11819 LIBS=$ac_func_search_save_LIBS
11820 fi
11821 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11822 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11823 if test "$ac_cv_search_opendir" != no; then
11824   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11825
11826 fi
11827
11828 fi
11829
11830 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11831 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11832 if test "${ac_cv_header_stat_broken+set}" = set; then
11833   echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835   cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h.  */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h.  */
11841 #include <sys/types.h>
11842 #include <sys/stat.h>
11843
11844 #if defined(S_ISBLK) && defined(S_IFDIR)
11845 # if S_ISBLK (S_IFDIR)
11846 You lose.
11847 # endif
11848 #endif
11849
11850 #if defined(S_ISBLK) && defined(S_IFCHR)
11851 # if S_ISBLK (S_IFCHR)
11852 You lose.
11853 # endif
11854 #endif
11855
11856 #if defined(S_ISLNK) && defined(S_IFREG)
11857 # if S_ISLNK (S_IFREG)
11858 You lose.
11859 # endif
11860 #endif
11861
11862 #if defined(S_ISSOCK) && defined(S_IFREG)
11863 # if S_ISSOCK (S_IFREG)
11864 You lose.
11865 # endif
11866 #endif
11867
11868 _ACEOF
11869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11870   $EGREP "You lose" >/dev/null 2>&1; then
11871   ac_cv_header_stat_broken=yes
11872 else
11873   ac_cv_header_stat_broken=no
11874 fi
11875 rm -f conftest*
11876
11877 fi
11878 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11879 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11880 if test $ac_cv_header_stat_broken = yes; then
11881
11882 cat >>confdefs.h <<\_ACEOF
11883 #define STAT_MACROS_BROKEN 1
11884 _ACEOF
11885
11886 fi
11887
11888 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11889 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11890 if test "${ac_cv_header_stdc+set}" = set; then
11891   echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893   cat >conftest.$ac_ext <<_ACEOF
11894 /* confdefs.h.  */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h.  */
11899 #include <stdlib.h>
11900 #include <stdarg.h>
11901 #include <string.h>
11902 #include <float.h>
11903
11904 int
11905 main ()
11906 {
11907
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 rm -f conftest.$ac_objext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914   (eval $ac_compile) 2>conftest.er1
11915   ac_status=$?
11916   grep -v '^ *+' conftest.er1 >conftest.err
11917   rm -f conftest.er1
11918   cat conftest.err >&5
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); } &&
11921          { ac_try='test -z "$ac_c_werror_flag"
11922                          || test ! -s conftest.err'
11923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924   (eval $ac_try) 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; } &&
11928          { ac_try='test -s conftest.$ac_objext'
11929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930   (eval $ac_try) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; }; then
11934   ac_cv_header_stdc=yes
11935 else
11936   echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11938
11939 ac_cv_header_stdc=no
11940 fi
11941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11942
11943 if test $ac_cv_header_stdc = yes; then
11944   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11945   cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951 #include <string.h>
11952
11953 _ACEOF
11954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11955   $EGREP "memchr" >/dev/null 2>&1; then
11956   :
11957 else
11958   ac_cv_header_stdc=no
11959 fi
11960 rm -f conftest*
11961
11962 fi
11963
11964 if test $ac_cv_header_stdc = yes; then
11965   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11966   cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h.  */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h.  */
11972 #include <stdlib.h>
11973
11974 _ACEOF
11975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11976   $EGREP "free" >/dev/null 2>&1; then
11977   :
11978 else
11979   ac_cv_header_stdc=no
11980 fi
11981 rm -f conftest*
11982
11983 fi
11984
11985 if test $ac_cv_header_stdc = yes; then
11986   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11987   if test "$cross_compiling" = yes; then
11988   :
11989 else
11990   cat >conftest.$ac_ext <<_ACEOF
11991 /* confdefs.h.  */
11992 _ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h.  */
11996 #include <ctype.h>
11997 #if ((' ' & 0x0FF) == 0x020)
11998 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11999 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12000 #else
12001 # define ISLOWER(c) \
12002                    (('a' <= (c) && (c) <= 'i') \
12003                      || ('j' <= (c) && (c) <= 'r') \
12004                      || ('s' <= (c) && (c) <= 'z'))
12005 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12006 #endif
12007
12008 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12009 int
12010 main ()
12011 {
12012   int i;
12013   for (i = 0; i < 256; i++)
12014     if (XOR (islower (i), ISLOWER (i))
12015         || toupper (i) != TOUPPER (i))
12016       exit(2);
12017   exit (0);
12018 }
12019 _ACEOF
12020 rm -f conftest$ac_exeext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022   (eval $ac_link) 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027   (eval $ac_try) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); }; }; then
12031   :
12032 else
12033   echo "$as_me: program exited with status $ac_status" >&5
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12036
12037 ( exit $ac_status )
12038 ac_cv_header_stdc=no
12039 fi
12040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12041 fi
12042 fi
12043 fi
12044 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12045 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12046 if test $ac_cv_header_stdc = yes; then
12047
12048 cat >>confdefs.h <<\_ACEOF
12049 #define STDC_HEADERS 1
12050 _ACEOF
12051
12052 fi
12053
12054 # elf_hp.h is for HP/UX 64-bit shared library support.
12055 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12056 # unconditionally, so what's the point in checking these?
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12095                   thread_db.h gnu/libc-version.h signal.h stddef.h \
12096                   stdlib.h string.h memory.h strings.h sys/fault.h \
12097                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12098                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12099                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
12100                   sys/types.h sys/wait.h wait.h termios.h termio.h \
12101                   sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
12102 do
12103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12105   echo "$as_me:$LINENO: checking for $ac_header" >&5
12106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12108   echo $ECHO_N "(cached) $ECHO_C" >&6
12109 fi
12110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12112 else
12113   # Is the header compilable?
12114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12116 cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h.  */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h.  */
12122 $ac_includes_default
12123 #include <$ac_header>
12124 _ACEOF
12125 rm -f conftest.$ac_objext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12127   (eval $ac_compile) 2>conftest.er1
12128   ac_status=$?
12129   grep -v '^ *+' conftest.er1 >conftest.err
12130   rm -f conftest.er1
12131   cat conftest.err >&5
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } &&
12134          { ac_try='test -z "$ac_c_werror_flag"
12135                          || test ! -s conftest.err'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; } &&
12141          { ac_try='test -s conftest.$ac_objext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_header_compiler=yes
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 ac_header_compiler=no
12153 fi
12154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12156 echo "${ECHO_T}$ac_header_compiler" >&6
12157
12158 # Is the header present?
12159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h.  */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h.  */
12167 #include <$ac_header>
12168 _ACEOF
12169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12171   ac_status=$?
12172   grep -v '^ *+' conftest.er1 >conftest.err
12173   rm -f conftest.er1
12174   cat conftest.err >&5
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } >/dev/null; then
12177   if test -s conftest.err; then
12178     ac_cpp_err=$ac_c_preproc_warn_flag
12179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12180   else
12181     ac_cpp_err=
12182   fi
12183 else
12184   ac_cpp_err=yes
12185 fi
12186 if test -z "$ac_cpp_err"; then
12187   ac_header_preproc=yes
12188 else
12189   echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12191
12192   ac_header_preproc=no
12193 fi
12194 rm -f conftest.err conftest.$ac_ext
12195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12196 echo "${ECHO_T}$ac_header_preproc" >&6
12197
12198 # So?  What about this header?
12199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12200   yes:no: )
12201     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12205     ac_header_preproc=yes
12206     ;;
12207   no:yes:* )
12208     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12210     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12211 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12212     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12214     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12215 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12218     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12220     (
12221       cat <<\_ASBOX
12222 ## ------------------------------------------ ##
12223 ## Report this to the AC_PACKAGE_NAME lists.  ##
12224 ## ------------------------------------------ ##
12225 _ASBOX
12226     ) |
12227       sed "s/^/$as_me: WARNING:     /" >&2
12228     ;;
12229 esac
12230 echo "$as_me:$LINENO: checking for $ac_header" >&5
12231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12233   echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235   eval "$as_ac_Header=\$ac_header_preproc"
12236 fi
12237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12239
12240 fi
12241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12242   cat >>confdefs.h <<_ACEOF
12243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12244 _ACEOF
12245
12246 fi
12247
12248 done
12249
12250
12251 for ac_header in link.h
12252 do
12253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12254 echo "$as_me:$LINENO: checking for $ac_header" >&5
12255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12257   echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259   cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h.  */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h.  */
12265 #if HAVE_SYS_TYPES_H
12266 # include <sys/types.h>
12267 #endif
12268 #if HAVE_NLIST_H
12269 # include <nlist.h>
12270 #endif
12271
12272
12273 #include <$ac_header>
12274 _ACEOF
12275 rm -f conftest.$ac_objext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277   (eval $ac_compile) 2>conftest.er1
12278   ac_status=$?
12279   grep -v '^ *+' conftest.er1 >conftest.err
12280   rm -f conftest.er1
12281   cat conftest.err >&5
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); } &&
12284          { ac_try='test -z "$ac_c_werror_flag"
12285                          || test ! -s conftest.err'
12286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287   (eval $ac_try) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; } &&
12291          { ac_try='test -s conftest.$ac_objext'
12292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293   (eval $ac_try) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; }; then
12297   eval "$as_ac_Header=yes"
12298 else
12299   echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302 eval "$as_ac_Header=no"
12303 fi
12304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12305 fi
12306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12309   cat >>confdefs.h <<_ACEOF
12310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12311 _ACEOF
12312
12313 fi
12314
12315 done
12316
12317
12318 for ac_header in sys/proc.h
12319 do
12320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12321 echo "$as_me:$LINENO: checking for $ac_header" >&5
12322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326   cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h.  */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h.  */
12332 #if HAVE_SYS_PARAM_H
12333 # include <sys/param.h>
12334 #endif
12335
12336
12337 #include <$ac_header>
12338 _ACEOF
12339 rm -f conftest.$ac_objext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12341   (eval $ac_compile) 2>conftest.er1
12342   ac_status=$?
12343   grep -v '^ *+' conftest.er1 >conftest.err
12344   rm -f conftest.er1
12345   cat conftest.err >&5
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } &&
12348          { ac_try='test -z "$ac_c_werror_flag"
12349                          || test ! -s conftest.err'
12350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351   (eval $ac_try) 2>&5
12352   ac_status=$?
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); }; } &&
12355          { ac_try='test -s conftest.$ac_objext'
12356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357   (eval $ac_try) 2>&5
12358   ac_status=$?
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); }; }; then
12361   eval "$as_ac_Header=yes"
12362 else
12363   echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12365
12366 eval "$as_ac_Header=no"
12367 fi
12368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12369 fi
12370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12373   cat >>confdefs.h <<_ACEOF
12374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12375 _ACEOF
12376
12377 fi
12378
12379 done
12380
12381
12382 for ac_header in sys/user.h
12383 do
12384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12385 echo "$as_me:$LINENO: checking for $ac_header" >&5
12386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12388   echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390   cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h.  */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h.  */
12396 #if HAVE_SYS_PARAM_H
12397 # include <sys/param.h>
12398 #endif
12399
12400
12401 #include <$ac_header>
12402 _ACEOF
12403 rm -f conftest.$ac_objext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12405   (eval $ac_compile) 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } &&
12412          { ac_try='test -z "$ac_c_werror_flag"
12413                          || test ! -s conftest.err'
12414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415   (eval $ac_try) 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); }; } &&
12419          { ac_try='test -s conftest.$ac_objext'
12420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421   (eval $ac_try) 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; }; then
12425   eval "$as_ac_Header=yes"
12426 else
12427   echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12429
12430 eval "$as_ac_Header=no"
12431 fi
12432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12433 fi
12434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12437   cat >>confdefs.h <<_ACEOF
12438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12439 _ACEOF
12440
12441 fi
12442
12443 done
12444
12445
12446 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12447 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12448 # think that we don't have <curses.h> if we're using GCC.
12449 case $host_os in
12450   solaris2.[789])
12451     if test "$GCC" = yes; then
12452
12453 cat >>confdefs.h <<\_ACEOF
12454 #define _MSE_INT_H 1
12455 _ACEOF
12456
12457     fi ;;
12458 esac
12459
12460
12461
12462
12463
12464 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
12465 do
12466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12468   echo "$as_me:$LINENO: checking for $ac_header" >&5
12469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 fi
12473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12475 else
12476   # Is the header compilable?
12477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485 $ac_includes_default
12486 #include <$ac_header>
12487 _ACEOF
12488 rm -f conftest.$ac_objext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490   (eval $ac_compile) 2>conftest.er1
12491   ac_status=$?
12492   grep -v '^ *+' conftest.er1 >conftest.err
12493   rm -f conftest.er1
12494   cat conftest.err >&5
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); } &&
12497          { ac_try='test -z "$ac_c_werror_flag"
12498                          || test ! -s conftest.err'
12499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500   (eval $ac_try) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; } &&
12504          { ac_try='test -s conftest.$ac_objext'
12505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506   (eval $ac_try) 2>&5
12507   ac_status=$?
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); }; }; then
12510   ac_header_compiler=yes
12511 else
12512   echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12514
12515 ac_header_compiler=no
12516 fi
12517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12519 echo "${ECHO_T}$ac_header_compiler" >&6
12520
12521 # Is the header present?
12522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530 #include <$ac_header>
12531 _ACEOF
12532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12534   ac_status=$?
12535   grep -v '^ *+' conftest.er1 >conftest.err
12536   rm -f conftest.er1
12537   cat conftest.err >&5
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } >/dev/null; then
12540   if test -s conftest.err; then
12541     ac_cpp_err=$ac_c_preproc_warn_flag
12542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12543   else
12544     ac_cpp_err=
12545   fi
12546 else
12547   ac_cpp_err=yes
12548 fi
12549 if test -z "$ac_cpp_err"; then
12550   ac_header_preproc=yes
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555   ac_header_preproc=no
12556 fi
12557 rm -f conftest.err conftest.$ac_ext
12558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12559 echo "${ECHO_T}$ac_header_preproc" >&6
12560
12561 # So?  What about this header?
12562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12563   yes:no: )
12564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12568     ac_header_preproc=yes
12569     ;;
12570   no:yes:* )
12571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12583     (
12584       cat <<\_ASBOX
12585 ## ------------------------------------------ ##
12586 ## Report this to the AC_PACKAGE_NAME lists.  ##
12587 ## ------------------------------------------ ##
12588 _ASBOX
12589     ) |
12590       sed "s/^/$as_me: WARNING:     /" >&2
12591     ;;
12592 esac
12593 echo "$as_me:$LINENO: checking for $ac_header" >&5
12594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12596   echo $ECHO_N "(cached) $ECHO_C" >&6
12597 else
12598   eval "$as_ac_Header=\$ac_header_preproc"
12599 fi
12600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12602
12603 fi
12604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12605   cat >>confdefs.h <<_ACEOF
12606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12607 _ACEOF
12608
12609 fi
12610
12611 done
12612
12613
12614 for ac_header in term.h
12615 do
12616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12617 echo "$as_me:$LINENO: checking for $ac_header" >&5
12618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12620   echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622   cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628 #if HAVE_CURSES_H
12629 # include <curses.h>
12630 #endif
12631
12632
12633 #include <$ac_header>
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637   (eval $ac_compile) 2>conftest.er1
12638   ac_status=$?
12639   grep -v '^ *+' conftest.er1 >conftest.err
12640   rm -f conftest.er1
12641   cat conftest.err >&5
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } &&
12644          { ac_try='test -z "$ac_c_werror_flag"
12645                          || test ! -s conftest.err'
12646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647   (eval $ac_try) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; } &&
12651          { ac_try='test -s conftest.$ac_objext'
12652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653   (eval $ac_try) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); }; }; then
12657   eval "$as_ac_Header=yes"
12658 else
12659   echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12661
12662 eval "$as_ac_Header=no"
12663 fi
12664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12665 fi
12666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12669   cat >>confdefs.h <<_ACEOF
12670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12671 _ACEOF
12672
12673 fi
12674
12675 done
12676
12677
12678 # ------------------------- #
12679 # Checks for declarations.  #
12680 # ------------------------- #
12681
12682 echo "$as_me:$LINENO: checking whether free is declared" >&5
12683 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12684 if test "${ac_cv_have_decl_free+set}" = set; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687   cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693 $ac_includes_default
12694 int
12695 main ()
12696 {
12697 #ifndef free
12698   char *p = (char *) free;
12699 #endif
12700
12701   ;
12702   return 0;
12703 }
12704 _ACEOF
12705 rm -f conftest.$ac_objext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707   (eval $ac_compile) 2>conftest.er1
12708   ac_status=$?
12709   grep -v '^ *+' conftest.er1 >conftest.err
12710   rm -f conftest.er1
12711   cat conftest.err >&5
12712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); } &&
12714          { ac_try='test -z "$ac_c_werror_flag"
12715                          || test ! -s conftest.err'
12716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717   (eval $ac_try) 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; } &&
12721          { ac_try='test -s conftest.$ac_objext'
12722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723   (eval $ac_try) 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); }; }; then
12727   ac_cv_have_decl_free=yes
12728 else
12729   echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732 ac_cv_have_decl_free=no
12733 fi
12734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12735 fi
12736 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12737 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12738 if test $ac_cv_have_decl_free = yes; then
12739
12740 cat >>confdefs.h <<_ACEOF
12741 #define HAVE_DECL_FREE 1
12742 _ACEOF
12743
12744
12745 else
12746   cat >>confdefs.h <<_ACEOF
12747 #define HAVE_DECL_FREE 0
12748 _ACEOF
12749
12750
12751 fi
12752 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12753 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12754 if test "${ac_cv_have_decl_malloc+set}" = set; then
12755   echo $ECHO_N "(cached) $ECHO_C" >&6
12756 else
12757   cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h.  */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h.  */
12763 $ac_includes_default
12764 int
12765 main ()
12766 {
12767 #ifndef malloc
12768   char *p = (char *) malloc;
12769 #endif
12770
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777   (eval $ac_compile) 2>conftest.er1
12778   ac_status=$?
12779   grep -v '^ *+' conftest.er1 >conftest.err
12780   rm -f conftest.er1
12781   cat conftest.err >&5
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); } &&
12784          { ac_try='test -z "$ac_c_werror_flag"
12785                          || test ! -s conftest.err'
12786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787   (eval $ac_try) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; } &&
12791          { ac_try='test -s conftest.$ac_objext'
12792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793   (eval $ac_try) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; }; then
12797   ac_cv_have_decl_malloc=yes
12798 else
12799   echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802 ac_cv_have_decl_malloc=no
12803 fi
12804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12805 fi
12806 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12807 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12808 if test $ac_cv_have_decl_malloc = yes; then
12809
12810 cat >>confdefs.h <<_ACEOF
12811 #define HAVE_DECL_MALLOC 1
12812 _ACEOF
12813
12814
12815 else
12816   cat >>confdefs.h <<_ACEOF
12817 #define HAVE_DECL_MALLOC 0
12818 _ACEOF
12819
12820
12821 fi
12822 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12823 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
12824 if test "${ac_cv_have_decl_realloc+set}" = set; then
12825   echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12827   cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h.  */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h.  */
12833 $ac_includes_default
12834 int
12835 main ()
12836 {
12837 #ifndef realloc
12838   char *p = (char *) realloc;
12839 #endif
12840
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847   (eval $ac_compile) 2>conftest.er1
12848   ac_status=$?
12849   grep -v '^ *+' conftest.er1 >conftest.err
12850   rm -f conftest.er1
12851   cat conftest.err >&5
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } &&
12854          { ac_try='test -z "$ac_c_werror_flag"
12855                          || test ! -s conftest.err'
12856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857   (eval $ac_try) 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; } &&
12861          { ac_try='test -s conftest.$ac_objext'
12862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863   (eval $ac_try) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; }; then
12867   ac_cv_have_decl_realloc=yes
12868 else
12869   echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872 ac_cv_have_decl_realloc=no
12873 fi
12874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12875 fi
12876 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
12877 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
12878 if test $ac_cv_have_decl_realloc = yes; then
12879
12880 cat >>confdefs.h <<_ACEOF
12881 #define HAVE_DECL_REALLOC 1
12882 _ACEOF
12883
12884
12885 else
12886   cat >>confdefs.h <<_ACEOF
12887 #define HAVE_DECL_REALLOC 0
12888 _ACEOF
12889
12890
12891 fi
12892 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
12893 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
12894 if test "${ac_cv_have_decl_strerror+set}" = set; then
12895   echo $ECHO_N "(cached) $ECHO_C" >&6
12896 else
12897   cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h.  */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h.  */
12903 $ac_includes_default
12904 int
12905 main ()
12906 {
12907 #ifndef strerror
12908   char *p = (char *) strerror;
12909 #endif
12910
12911   ;
12912   return 0;
12913 }
12914 _ACEOF
12915 rm -f conftest.$ac_objext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12917   (eval $ac_compile) 2>conftest.er1
12918   ac_status=$?
12919   grep -v '^ *+' conftest.er1 >conftest.err
12920   rm -f conftest.er1
12921   cat conftest.err >&5
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); } &&
12924          { ac_try='test -z "$ac_c_werror_flag"
12925                          || test ! -s conftest.err'
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); }; } &&
12931          { ac_try='test -s conftest.$ac_objext'
12932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933   (eval $ac_try) 2>&5
12934   ac_status=$?
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); }; }; then
12937   ac_cv_have_decl_strerror=yes
12938 else
12939   echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12941
12942 ac_cv_have_decl_strerror=no
12943 fi
12944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12945 fi
12946 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
12947 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
12948 if test $ac_cv_have_decl_strerror = yes; then
12949
12950 cat >>confdefs.h <<_ACEOF
12951 #define HAVE_DECL_STRERROR 1
12952 _ACEOF
12953
12954
12955 else
12956   cat >>confdefs.h <<_ACEOF
12957 #define HAVE_DECL_STRERROR 0
12958 _ACEOF
12959
12960
12961 fi
12962 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12963 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12964 if test "${ac_cv_have_decl_strstr+set}" = set; then
12965   echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967   cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h.  */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h.  */
12973 $ac_includes_default
12974 int
12975 main ()
12976 {
12977 #ifndef strstr
12978   char *p = (char *) strstr;
12979 #endif
12980
12981   ;
12982   return 0;
12983 }
12984 _ACEOF
12985 rm -f conftest.$ac_objext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987   (eval $ac_compile) 2>conftest.er1
12988   ac_status=$?
12989   grep -v '^ *+' conftest.er1 >conftest.err
12990   rm -f conftest.er1
12991   cat conftest.err >&5
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } &&
12994          { ac_try='test -z "$ac_c_werror_flag"
12995                          || test ! -s conftest.err'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; } &&
13001          { ac_try='test -s conftest.$ac_objext'
13002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003   (eval $ac_try) 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; }; then
13007   ac_cv_have_decl_strstr=yes
13008 else
13009   echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012 ac_cv_have_decl_strstr=no
13013 fi
13014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13015 fi
13016 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13017 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13018 if test $ac_cv_have_decl_strstr = yes; then
13019
13020 cat >>confdefs.h <<_ACEOF
13021 #define HAVE_DECL_STRSTR 1
13022 _ACEOF
13023
13024
13025 else
13026   cat >>confdefs.h <<_ACEOF
13027 #define HAVE_DECL_STRSTR 0
13028 _ACEOF
13029
13030
13031 fi
13032 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13033 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13034 if test "${ac_cv_have_decl_getopt+set}" = set; then
13035   echo $ECHO_N "(cached) $ECHO_C" >&6
13036 else
13037   cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h.  */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h.  */
13043 $ac_includes_default
13044 int
13045 main ()
13046 {
13047 #ifndef getopt
13048   char *p = (char *) getopt;
13049 #endif
13050
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 rm -f conftest.$ac_objext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057   (eval $ac_compile) 2>conftest.er1
13058   ac_status=$?
13059   grep -v '^ *+' conftest.er1 >conftest.err
13060   rm -f conftest.er1
13061   cat conftest.err >&5
13062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); } &&
13064          { ac_try='test -z "$ac_c_werror_flag"
13065                          || test ! -s conftest.err'
13066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067   (eval $ac_try) 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); }; } &&
13071          { ac_try='test -s conftest.$ac_objext'
13072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073   (eval $ac_try) 2>&5
13074   ac_status=$?
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); }; }; then
13077   ac_cv_have_decl_getopt=yes
13078 else
13079   echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13081
13082 ac_cv_have_decl_getopt=no
13083 fi
13084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13085 fi
13086 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13087 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13088 if test $ac_cv_have_decl_getopt = yes; then
13089
13090 cat >>confdefs.h <<_ACEOF
13091 #define HAVE_DECL_GETOPT 1
13092 _ACEOF
13093
13094
13095 else
13096   cat >>confdefs.h <<_ACEOF
13097 #define HAVE_DECL_GETOPT 0
13098 _ACEOF
13099
13100
13101 fi
13102 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13103 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13104 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13105   echo $ECHO_N "(cached) $ECHO_C" >&6
13106 else
13107   cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h.  */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h.  */
13113 $ac_includes_default
13114 int
13115 main ()
13116 {
13117 #ifndef snprintf
13118   char *p = (char *) snprintf;
13119 #endif
13120
13121   ;
13122   return 0;
13123 }
13124 _ACEOF
13125 rm -f conftest.$ac_objext
13126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13127   (eval $ac_compile) 2>conftest.er1
13128   ac_status=$?
13129   grep -v '^ *+' conftest.er1 >conftest.err
13130   rm -f conftest.er1
13131   cat conftest.err >&5
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); } &&
13134          { ac_try='test -z "$ac_c_werror_flag"
13135                          || test ! -s conftest.err'
13136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137   (eval $ac_try) 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); }; } &&
13141          { ac_try='test -s conftest.$ac_objext'
13142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143   (eval $ac_try) 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); }; }; then
13147   ac_cv_have_decl_snprintf=yes
13148 else
13149   echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13151
13152 ac_cv_have_decl_snprintf=no
13153 fi
13154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13155 fi
13156 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13157 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13158 if test $ac_cv_have_decl_snprintf = yes; then
13159
13160 cat >>confdefs.h <<_ACEOF
13161 #define HAVE_DECL_SNPRINTF 1
13162 _ACEOF
13163
13164
13165 else
13166   cat >>confdefs.h <<_ACEOF
13167 #define HAVE_DECL_SNPRINTF 0
13168 _ACEOF
13169
13170
13171 fi
13172 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13173 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13174 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13175   echo $ECHO_N "(cached) $ECHO_C" >&6
13176 else
13177   cat >conftest.$ac_ext <<_ACEOF
13178 /* confdefs.h.  */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h.  */
13183 $ac_includes_default
13184 int
13185 main ()
13186 {
13187 #ifndef vsnprintf
13188   char *p = (char *) vsnprintf;
13189 #endif
13190
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 rm -f conftest.$ac_objext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197   (eval $ac_compile) 2>conftest.er1
13198   ac_status=$?
13199   grep -v '^ *+' conftest.er1 >conftest.err
13200   rm -f conftest.er1
13201   cat conftest.err >&5
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); } &&
13204          { ac_try='test -z "$ac_c_werror_flag"
13205                          || test ! -s conftest.err'
13206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207   (eval $ac_try) 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); }; } &&
13211          { ac_try='test -s conftest.$ac_objext'
13212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213   (eval $ac_try) 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); }; }; then
13217   ac_cv_have_decl_vsnprintf=yes
13218 else
13219   echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13221
13222 ac_cv_have_decl_vsnprintf=no
13223 fi
13224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13225 fi
13226 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13227 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13228 if test $ac_cv_have_decl_vsnprintf = yes; then
13229
13230 cat >>confdefs.h <<_ACEOF
13231 #define HAVE_DECL_VSNPRINTF 1
13232 _ACEOF
13233
13234
13235 else
13236   cat >>confdefs.h <<_ACEOF
13237 #define HAVE_DECL_VSNPRINTF 0
13238 _ACEOF
13239
13240
13241 fi
13242
13243
13244
13245   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13246 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13247 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13248   echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250   cat >conftest.$ac_ext <<_ACEOF
13251 /* confdefs.h.  */
13252 _ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h.  */
13256 #include <locale.h>
13257 int
13258 main ()
13259 {
13260 return LC_MESSAGES
13261   ;
13262   return 0;
13263 }
13264 _ACEOF
13265 rm -f conftest.$ac_objext conftest$ac_exeext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13267   (eval $ac_link) 2>conftest.er1
13268   ac_status=$?
13269   grep -v '^ *+' conftest.er1 >conftest.err
13270   rm -f conftest.er1
13271   cat conftest.err >&5
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); } &&
13274          { ac_try='test -z "$ac_c_werror_flag"
13275                          || test ! -s conftest.err'
13276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277   (eval $ac_try) 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }; } &&
13281          { ac_try='test -s conftest$ac_exeext'
13282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283   (eval $ac_try) 2>&5
13284   ac_status=$?
13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286   (exit $ac_status); }; }; then
13287   am_cv_val_LC_MESSAGES=yes
13288 else
13289   echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13291
13292 am_cv_val_LC_MESSAGES=no
13293 fi
13294 rm -f conftest.err conftest.$ac_objext \
13295       conftest$ac_exeext conftest.$ac_ext
13296 fi
13297 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13298 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13299   if test $am_cv_val_LC_MESSAGES = yes; then
13300
13301 cat >>confdefs.h <<\_ACEOF
13302 #define HAVE_LC_MESSAGES 1
13303 _ACEOF
13304
13305   fi
13306
13307
13308 # ----------------------- #
13309 # Checks for structures.  #
13310 # ----------------------- #
13311
13312 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13313 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13314 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13315   echo $ECHO_N "(cached) $ECHO_C" >&6
13316 else
13317   cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h.  */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h.  */
13323 $ac_includes_default
13324 int
13325 main ()
13326 {
13327 static struct stat ac_aggr;
13328 if (ac_aggr.st_blocks)
13329 return 0;
13330   ;
13331   return 0;
13332 }
13333 _ACEOF
13334 rm -f conftest.$ac_objext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336   (eval $ac_compile) 2>conftest.er1
13337   ac_status=$?
13338   grep -v '^ *+' conftest.er1 >conftest.err
13339   rm -f conftest.er1
13340   cat conftest.err >&5
13341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342   (exit $ac_status); } &&
13343          { ac_try='test -z "$ac_c_werror_flag"
13344                          || test ! -s conftest.err'
13345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346   (eval $ac_try) 2>&5
13347   ac_status=$?
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); }; } &&
13350          { ac_try='test -s conftest.$ac_objext'
13351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352   (eval $ac_try) 2>&5
13353   ac_status=$?
13354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); }; }; then
13356   ac_cv_member_struct_stat_st_blocks=yes
13357 else
13358   echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361 cat >conftest.$ac_ext <<_ACEOF
13362 /* confdefs.h.  */
13363 _ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h.  */
13367 $ac_includes_default
13368 int
13369 main ()
13370 {
13371 static struct stat ac_aggr;
13372 if (sizeof ac_aggr.st_blocks)
13373 return 0;
13374   ;
13375   return 0;
13376 }
13377 _ACEOF
13378 rm -f conftest.$ac_objext
13379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13380   (eval $ac_compile) 2>conftest.er1
13381   ac_status=$?
13382   grep -v '^ *+' conftest.er1 >conftest.err
13383   rm -f conftest.er1
13384   cat conftest.err >&5
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); } &&
13387          { ac_try='test -z "$ac_c_werror_flag"
13388                          || test ! -s conftest.err'
13389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390   (eval $ac_try) 2>&5
13391   ac_status=$?
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); }; } &&
13394          { ac_try='test -s conftest.$ac_objext'
13395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396   (eval $ac_try) 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); }; }; then
13400   ac_cv_member_struct_stat_st_blocks=yes
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 ac_cv_member_struct_stat_st_blocks=no
13406 fi
13407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13408 fi
13409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13410 fi
13411 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13412 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13413 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13414
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13417 _ACEOF
13418
13419
13420 fi
13421 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13422 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13423 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13424   echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426   cat >conftest.$ac_ext <<_ACEOF
13427 /* confdefs.h.  */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h.  */
13432 $ac_includes_default
13433 int
13434 main ()
13435 {
13436 static struct stat ac_aggr;
13437 if (ac_aggr.st_blksize)
13438 return 0;
13439   ;
13440   return 0;
13441 }
13442 _ACEOF
13443 rm -f conftest.$ac_objext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13445   (eval $ac_compile) 2>conftest.er1
13446   ac_status=$?
13447   grep -v '^ *+' conftest.er1 >conftest.err
13448   rm -f conftest.er1
13449   cat conftest.err >&5
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); } &&
13452          { ac_try='test -z "$ac_c_werror_flag"
13453                          || test ! -s conftest.err'
13454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455   (eval $ac_try) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; } &&
13459          { ac_try='test -s conftest.$ac_objext'
13460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461   (eval $ac_try) 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); }; }; then
13465   ac_cv_member_struct_stat_st_blksize=yes
13466 else
13467   echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h.  */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h.  */
13476 $ac_includes_default
13477 int
13478 main ()
13479 {
13480 static struct stat ac_aggr;
13481 if (sizeof ac_aggr.st_blksize)
13482 return 0;
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489   (eval $ac_compile) 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -z "$ac_c_werror_flag"
13497                          || test ! -s conftest.err'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; } &&
13503          { ac_try='test -s conftest.$ac_objext'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_cv_member_struct_stat_st_blksize=yes
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ac_cv_member_struct_stat_st_blksize=no
13515 fi
13516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13517 fi
13518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13519 fi
13520 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13521 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13522 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13523
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13526 _ACEOF
13527
13528
13529 fi
13530
13531
13532 # ------------------ #
13533 # Checks for types.  #
13534 # ------------------ #
13535
13536 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13537 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13538 if test "${ac_cv_type_signal+set}" = set; then
13539   echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541   cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547 #include <sys/types.h>
13548 #include <signal.h>
13549 #ifdef signal
13550 # undef signal
13551 #endif
13552 #ifdef __cplusplus
13553 extern "C" void (*signal (int, void (*)(int)))(int);
13554 #else
13555 void (*signal ()) ();
13556 #endif
13557
13558 int
13559 main ()
13560 {
13561 int i;
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568   (eval $ac_compile) 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } &&
13575          { ac_try='test -z "$ac_c_werror_flag"
13576                          || test ! -s conftest.err'
13577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578   (eval $ac_try) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; } &&
13582          { ac_try='test -s conftest.$ac_objext'
13583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584   (eval $ac_try) 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }; }; then
13588   ac_cv_type_signal=void
13589 else
13590   echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 ac_cv_type_signal=int
13594 fi
13595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13596 fi
13597 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13598 echo "${ECHO_T}$ac_cv_type_signal" >&6
13599
13600 cat >>confdefs.h <<_ACEOF
13601 #define RETSIGTYPE $ac_cv_type_signal
13602 _ACEOF
13603
13604
13605 echo "$as_me:$LINENO: checking for socklen_t" >&5
13606 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13607 if test "${ac_cv_type_socklen_t+set}" = set; then
13608   echo $ECHO_N "(cached) $ECHO_C" >&6
13609 else
13610   cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h.  */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h.  */
13616 #include <sys/types.h>
13617 #include <sys/socket.h>
13618
13619
13620 int
13621 main ()
13622 {
13623 if ((socklen_t *) 0)
13624   return 0;
13625 if (sizeof (socklen_t))
13626   return 0;
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 rm -f conftest.$ac_objext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13633   (eval $ac_compile) 2>conftest.er1
13634   ac_status=$?
13635   grep -v '^ *+' conftest.er1 >conftest.err
13636   rm -f conftest.er1
13637   cat conftest.err >&5
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } &&
13640          { ac_try='test -z "$ac_c_werror_flag"
13641                          || test ! -s conftest.err'
13642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643   (eval $ac_try) 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; } &&
13647          { ac_try='test -s conftest.$ac_objext'
13648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649   (eval $ac_try) 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); }; }; then
13653   ac_cv_type_socklen_t=yes
13654 else
13655   echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13657
13658 ac_cv_type_socklen_t=no
13659 fi
13660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13661 fi
13662 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13663 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13664 if test $ac_cv_type_socklen_t = yes; then
13665
13666 cat >>confdefs.h <<_ACEOF
13667 #define HAVE_SOCKLEN_T 1
13668 _ACEOF
13669
13670
13671 fi
13672
13673
13674 # ------------------------------------- #
13675 # Checks for compiler characteristics.  #
13676 # ------------------------------------- #
13677
13678 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13679 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13680 if test "${ac_cv_c_const+set}" = set; then
13681   echo $ECHO_N "(cached) $ECHO_C" >&6
13682 else
13683   cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h.  */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h.  */
13689
13690 int
13691 main ()
13692 {
13693 /* FIXME: Include the comments suggested by Paul. */
13694 #ifndef __cplusplus
13695   /* Ultrix mips cc rejects this.  */
13696   typedef int charset[2];
13697   const charset x;
13698   /* SunOS 4.1.1 cc rejects this.  */
13699   char const *const *ccp;
13700   char **p;
13701   /* NEC SVR4.0.2 mips cc rejects this.  */
13702   struct point {int x, y;};
13703   static struct point const zero = {0,0};
13704   /* AIX XL C 1.02.0.0 rejects this.
13705      It does not let you subtract one const X* pointer from another in
13706      an arm of an if-expression whose if-part is not a constant
13707      expression */
13708   const char *g = "string";
13709   ccp = &g + (g ? g-g : 0);
13710   /* HPUX 7.0 cc rejects these. */
13711   ++ccp;
13712   p = (char**) ccp;
13713   ccp = (char const *const *) p;
13714   { /* SCO 3.2v4 cc rejects this.  */
13715     char *t;
13716     char const *s = 0 ? (char *) 0 : (char const *) 0;
13717
13718     *t++ = 0;
13719   }
13720   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13721     int x[] = {25, 17};
13722     const int *foo = &x[0];
13723     ++foo;
13724   }
13725   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13726     typedef const int *iptr;
13727     iptr p = 0;
13728     ++p;
13729   }
13730   { /* AIX XL C 1.02.0.0 rejects this saying
13731        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13732     struct s { int j; const int *ap[3]; };
13733     struct s *b; b->j = 5;
13734   }
13735   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13736     const int foo = 10;
13737   }
13738 #endif
13739
13740   ;
13741   return 0;
13742 }
13743 _ACEOF
13744 rm -f conftest.$ac_objext
13745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13746   (eval $ac_compile) 2>conftest.er1
13747   ac_status=$?
13748   grep -v '^ *+' conftest.er1 >conftest.err
13749   rm -f conftest.er1
13750   cat conftest.err >&5
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); } &&
13753          { ac_try='test -z "$ac_c_werror_flag"
13754                          || test ! -s conftest.err'
13755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756   (eval $ac_try) 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); }; } &&
13760          { ac_try='test -s conftest.$ac_objext'
13761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762   (eval $ac_try) 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; }; then
13766   ac_cv_c_const=yes
13767 else
13768   echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771 ac_cv_c_const=no
13772 fi
13773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13774 fi
13775 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13776 echo "${ECHO_T}$ac_cv_c_const" >&6
13777 if test $ac_cv_c_const = no; then
13778
13779 cat >>confdefs.h <<\_ACEOF
13780 #define const
13781 _ACEOF
13782
13783 fi
13784
13785 echo "$as_me:$LINENO: checking for inline" >&5
13786 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13787 if test "${ac_cv_c_inline+set}" = set; then
13788   echo $ECHO_N "(cached) $ECHO_C" >&6
13789 else
13790   ac_cv_c_inline=no
13791 for ac_kw in inline __inline__ __inline; do
13792   cat >conftest.$ac_ext <<_ACEOF
13793 /* confdefs.h.  */
13794 _ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h.  */
13798 #ifndef __cplusplus
13799 typedef int foo_t;
13800 static $ac_kw foo_t static_foo () {return 0; }
13801 $ac_kw foo_t foo () {return 0; }
13802 #endif
13803
13804 _ACEOF
13805 rm -f conftest.$ac_objext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13807   (eval $ac_compile) 2>conftest.er1
13808   ac_status=$?
13809   grep -v '^ *+' conftest.er1 >conftest.err
13810   rm -f conftest.er1
13811   cat conftest.err >&5
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); } &&
13814          { ac_try='test -z "$ac_c_werror_flag"
13815                          || test ! -s conftest.err'
13816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817   (eval $ac_try) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; } &&
13821          { ac_try='test -s conftest.$ac_objext'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; }; then
13827   ac_cv_c_inline=$ac_kw; break
13828 else
13829   echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832 fi
13833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13834 done
13835
13836 fi
13837 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13838 echo "${ECHO_T}$ac_cv_c_inline" >&6
13839
13840
13841 case $ac_cv_c_inline in
13842   inline | yes) ;;
13843   *)
13844     case $ac_cv_c_inline in
13845       no) ac_val=;;
13846       *) ac_val=$ac_cv_c_inline;;
13847     esac
13848     cat >>confdefs.h <<_ACEOF
13849 #ifndef __cplusplus
13850 #define inline $ac_val
13851 #endif
13852 _ACEOF
13853     ;;
13854 esac
13855
13856 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13857 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13858 if test "${ac_cv_c_bigendian+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   # See if sys/param.h defines the BYTE_ORDER macro.
13862 cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h.  */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h.  */
13868 #include <sys/types.h>
13869 #include <sys/param.h>
13870
13871 int
13872 main ()
13873 {
13874 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13875  bogus endian macros
13876 #endif
13877
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884   (eval $ac_compile) 2>conftest.er1
13885   ac_status=$?
13886   grep -v '^ *+' conftest.er1 >conftest.err
13887   rm -f conftest.er1
13888   cat conftest.err >&5
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } &&
13891          { ac_try='test -z "$ac_c_werror_flag"
13892                          || test ! -s conftest.err'
13893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894   (eval $ac_try) 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); }; } &&
13898          { ac_try='test -s conftest.$ac_objext'
13899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900   (eval $ac_try) 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; }; then
13904   # It does; now see whether it defined to BIG_ENDIAN or not.
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h.  */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h.  */
13911 #include <sys/types.h>
13912 #include <sys/param.h>
13913
13914 int
13915 main ()
13916 {
13917 #if BYTE_ORDER != BIG_ENDIAN
13918  not big endian
13919 #endif
13920
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 rm -f conftest.$ac_objext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13927   (eval $ac_compile) 2>conftest.er1
13928   ac_status=$?
13929   grep -v '^ *+' conftest.er1 >conftest.err
13930   rm -f conftest.er1
13931   cat conftest.err >&5
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } &&
13934          { ac_try='test -z "$ac_c_werror_flag"
13935                          || test ! -s conftest.err'
13936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937   (eval $ac_try) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; } &&
13941          { ac_try='test -s conftest.$ac_objext'
13942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943   (eval $ac_try) 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; }; then
13947   ac_cv_c_bigendian=yes
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952 ac_cv_c_bigendian=no
13953 fi
13954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13955 else
13956   echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13958
13959 # It does not; compile a test program.
13960 if test "$cross_compiling" = yes; then
13961   # try to guess the endianness by grepping values into an object file
13962   ac_cv_c_bigendian=unknown
13963   cat >conftest.$ac_ext <<_ACEOF
13964 /* confdefs.h.  */
13965 _ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h.  */
13969 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13970 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13971 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13972 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13973 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13974 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13975 int
13976 main ()
13977 {
13978  _ascii (); _ebcdic ();
13979   ;
13980   return 0;
13981 }
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985   (eval $ac_compile) 2>conftest.er1
13986   ac_status=$?
13987   grep -v '^ *+' conftest.er1 >conftest.err
13988   rm -f conftest.er1
13989   cat conftest.err >&5
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); } &&
13992          { ac_try='test -z "$ac_c_werror_flag"
13993                          || test ! -s conftest.err'
13994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995   (eval $ac_try) 2>&5
13996   ac_status=$?
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); }; } &&
13999          { ac_try='test -s conftest.$ac_objext'
14000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001   (eval $ac_try) 2>&5
14002   ac_status=$?
14003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004   (exit $ac_status); }; }; then
14005   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14006   ac_cv_c_bigendian=yes
14007 fi
14008 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14009   if test "$ac_cv_c_bigendian" = unknown; then
14010     ac_cv_c_bigendian=no
14011   else
14012     # finding both strings is unlikely to happen, but who knows?
14013     ac_cv_c_bigendian=unknown
14014   fi
14015 fi
14016 else
14017   echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 fi
14021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14022 else
14023   cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h.  */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h.  */
14029 int
14030 main ()
14031 {
14032   /* Are we little or big endian?  From Harbison&Steele.  */
14033   union
14034   {
14035     long l;
14036     char c[sizeof (long)];
14037   } u;
14038   u.l = 1;
14039   exit (u.c[sizeof (long) - 1] == 1);
14040 }
14041 _ACEOF
14042 rm -f conftest$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044   (eval $ac_link) 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049   (eval $ac_try) 2>&5
14050   ac_status=$?
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); }; }; then
14053   ac_cv_c_bigendian=no
14054 else
14055   echo "$as_me: program exited with status $ac_status" >&5
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14058
14059 ( exit $ac_status )
14060 ac_cv_c_bigendian=yes
14061 fi
14062 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14063 fi
14064 fi
14065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14066 fi
14067 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14068 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14069 case $ac_cv_c_bigendian in
14070   yes)
14071
14072 cat >>confdefs.h <<\_ACEOF
14073 #define WORDS_BIGENDIAN 1
14074 _ACEOF
14075  ;;
14076   no)
14077      ;;
14078   *)
14079     { { echo "$as_me:$LINENO: error: unknown endianness
14080 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14081 echo "$as_me: error: unknown endianness
14082 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14083    { (exit 1); exit 1; }; } ;;
14084 esac
14085
14086
14087 # ------------------------------ #
14088 # Checks for library functions.  #
14089 # ------------------------------ #
14090
14091 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14092 # for constant arguments.  Useless!
14093 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14094 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14095 if test "${ac_cv_working_alloca_h+set}" = set; then
14096   echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098   cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h.  */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h.  */
14104 #include <alloca.h>
14105 int
14106 main ()
14107 {
14108 char *p = (char *) alloca (2 * sizeof (int));
14109   ;
14110   return 0;
14111 }
14112 _ACEOF
14113 rm -f conftest.$ac_objext conftest$ac_exeext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115   (eval $ac_link) 2>conftest.er1
14116   ac_status=$?
14117   grep -v '^ *+' conftest.er1 >conftest.err
14118   rm -f conftest.er1
14119   cat conftest.err >&5
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); } &&
14122          { ac_try='test -z "$ac_c_werror_flag"
14123                          || test ! -s conftest.err'
14124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125   (eval $ac_try) 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; } &&
14129          { ac_try='test -s conftest$ac_exeext'
14130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131   (eval $ac_try) 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; }; then
14135   ac_cv_working_alloca_h=yes
14136 else
14137   echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14139
14140 ac_cv_working_alloca_h=no
14141 fi
14142 rm -f conftest.err conftest.$ac_objext \
14143       conftest$ac_exeext conftest.$ac_ext
14144 fi
14145 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14146 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14147 if test $ac_cv_working_alloca_h = yes; then
14148
14149 cat >>confdefs.h <<\_ACEOF
14150 #define HAVE_ALLOCA_H 1
14151 _ACEOF
14152
14153 fi
14154
14155 echo "$as_me:$LINENO: checking for alloca" >&5
14156 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14157 if test "${ac_cv_func_alloca_works+set}" = set; then
14158   echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160   cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h.  */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h.  */
14166 #ifdef __GNUC__
14167 # define alloca __builtin_alloca
14168 #else
14169 # ifdef _MSC_VER
14170 #  include <malloc.h>
14171 #  define alloca _alloca
14172 # else
14173 #  if HAVE_ALLOCA_H
14174 #   include <alloca.h>
14175 #  else
14176 #   ifdef _AIX
14177  #pragma alloca
14178 #   else
14179 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14180 char *alloca ();
14181 #    endif
14182 #   endif
14183 #  endif
14184 # endif
14185 #endif
14186
14187 int
14188 main ()
14189 {
14190 char *p = (char *) alloca (1);
14191   ;
14192   return 0;
14193 }
14194 _ACEOF
14195 rm -f conftest.$ac_objext conftest$ac_exeext
14196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14197   (eval $ac_link) 2>conftest.er1
14198   ac_status=$?
14199   grep -v '^ *+' conftest.er1 >conftest.err
14200   rm -f conftest.er1
14201   cat conftest.err >&5
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); } &&
14204          { ac_try='test -z "$ac_c_werror_flag"
14205                          || test ! -s conftest.err'
14206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207   (eval $ac_try) 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; } &&
14211          { ac_try='test -s conftest$ac_exeext'
14212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213   (eval $ac_try) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); }; }; then
14217   ac_cv_func_alloca_works=yes
14218 else
14219   echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222 ac_cv_func_alloca_works=no
14223 fi
14224 rm -f conftest.err conftest.$ac_objext \
14225       conftest$ac_exeext conftest.$ac_ext
14226 fi
14227 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14228 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14229
14230 if test $ac_cv_func_alloca_works = yes; then
14231
14232 cat >>confdefs.h <<\_ACEOF
14233 #define HAVE_ALLOCA 1
14234 _ACEOF
14235
14236 else
14237   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14238 # that cause trouble.  Some versions do not even contain alloca or
14239 # contain a buggy version.  If you still want to use their alloca,
14240 # use ar to extract alloca.o from them instead of compiling alloca.c.
14241
14242 ALLOCA=alloca.$ac_objext
14243
14244 cat >>confdefs.h <<\_ACEOF
14245 #define C_ALLOCA 1
14246 _ACEOF
14247
14248
14249 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14250 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14251 if test "${ac_cv_os_cray+set}" = set; then
14252   echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254   cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h.  */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h.  */
14260 #if defined(CRAY) && ! defined(CRAY2)
14261 webecray
14262 #else
14263 wenotbecray
14264 #endif
14265
14266 _ACEOF
14267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14268   $EGREP "webecray" >/dev/null 2>&1; then
14269   ac_cv_os_cray=yes
14270 else
14271   ac_cv_os_cray=no
14272 fi
14273 rm -f conftest*
14274
14275 fi
14276 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14277 echo "${ECHO_T}$ac_cv_os_cray" >&6
14278 if test $ac_cv_os_cray = yes; then
14279   for ac_func in _getb67 GETB67 getb67; do
14280     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14281 echo "$as_me:$LINENO: checking for $ac_func" >&5
14282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14283 if eval "test \"\${$as_ac_var+set}\" = set"; then
14284   echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286   cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14294 #define $ac_func innocuous_$ac_func
14295
14296 /* System header to define __stub macros and hopefully few prototypes,
14297     which can conflict with char $ac_func (); below.
14298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14299     <limits.h> exists even on freestanding compilers.  */
14300
14301 #ifdef __STDC__
14302 # include <limits.h>
14303 #else
14304 # include <assert.h>
14305 #endif
14306
14307 #undef $ac_func
14308
14309 /* Override any gcc2 internal prototype to avoid an error.  */
14310 #ifdef __cplusplus
14311 extern "C"
14312 {
14313 #endif
14314 /* We use char because int might match the return type of a gcc2
14315    builtin and then its argument prototype would still apply.  */
14316 char $ac_func ();
14317 /* The GNU C library defines this for functions which it implements
14318     to always fail with ENOSYS.  Some functions are actually named
14319     something starting with __ and the normal name is an alias.  */
14320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14321 choke me
14322 #else
14323 char (*f) () = $ac_func;
14324 #endif
14325 #ifdef __cplusplus
14326 }
14327 #endif
14328
14329 int
14330 main ()
14331 {
14332 return f != $ac_func;
14333   ;
14334   return 0;
14335 }
14336 _ACEOF
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339   (eval $ac_link) 2>conftest.er1
14340   ac_status=$?
14341   grep -v '^ *+' conftest.er1 >conftest.err
14342   rm -f conftest.er1
14343   cat conftest.err >&5
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); } &&
14346          { ac_try='test -z "$ac_c_werror_flag"
14347                          || test ! -s conftest.err'
14348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349   (eval $ac_try) 2>&5
14350   ac_status=$?
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); }; } &&
14353          { ac_try='test -s conftest$ac_exeext'
14354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355   (eval $ac_try) 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }; }; then
14359   eval "$as_ac_var=yes"
14360 else
14361   echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14363
14364 eval "$as_ac_var=no"
14365 fi
14366 rm -f conftest.err conftest.$ac_objext \
14367       conftest$ac_exeext conftest.$ac_ext
14368 fi
14369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14371 if test `eval echo '${'$as_ac_var'}'` = yes; then
14372
14373 cat >>confdefs.h <<_ACEOF
14374 #define CRAY_STACKSEG_END $ac_func
14375 _ACEOF
14376
14377     break
14378 fi
14379
14380   done
14381 fi
14382
14383 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14384 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14385 if test "${ac_cv_c_stack_direction+set}" = set; then
14386   echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388   if test "$cross_compiling" = yes; then
14389   ac_cv_c_stack_direction=0
14390 else
14391   cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h.  */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h.  */
14397 int
14398 find_stack_direction ()
14399 {
14400   static char *addr = 0;
14401   auto char dummy;
14402   if (addr == 0)
14403     {
14404       addr = &dummy;
14405       return find_stack_direction ();
14406     }
14407   else
14408     return (&dummy > addr) ? 1 : -1;
14409 }
14410
14411 int
14412 main ()
14413 {
14414   exit (find_stack_direction () < 0);
14415 }
14416 _ACEOF
14417 rm -f conftest$ac_exeext
14418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14419   (eval $ac_link) 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424   (eval $ac_try) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; }; then
14428   ac_cv_c_stack_direction=1
14429 else
14430   echo "$as_me: program exited with status $ac_status" >&5
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14433
14434 ( exit $ac_status )
14435 ac_cv_c_stack_direction=-1
14436 fi
14437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14438 fi
14439 fi
14440 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14441 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14442
14443 cat >>confdefs.h <<_ACEOF
14444 #define STACK_DIRECTION $ac_cv_c_stack_direction
14445 _ACEOF
14446
14447
14448 fi
14449
14450
14451
14452 for ac_header in stdlib.h unistd.h
14453 do
14454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14456   echo "$as_me:$LINENO: checking for $ac_header" >&5
14457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14459   echo $ECHO_N "(cached) $ECHO_C" >&6
14460 fi
14461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14463 else
14464   # Is the header compilable?
14465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14467 cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h.  */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h.  */
14473 $ac_includes_default
14474 #include <$ac_header>
14475 _ACEOF
14476 rm -f conftest.$ac_objext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14478   (eval $ac_compile) 2>conftest.er1
14479   ac_status=$?
14480   grep -v '^ *+' conftest.er1 >conftest.err
14481   rm -f conftest.er1
14482   cat conftest.err >&5
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); } &&
14485          { ac_try='test -z "$ac_c_werror_flag"
14486                          || test ! -s conftest.err'
14487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488   (eval $ac_try) 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; } &&
14492          { ac_try='test -s conftest.$ac_objext'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; }; then
14498   ac_header_compiler=yes
14499 else
14500   echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 ac_header_compiler=no
14504 fi
14505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14507 echo "${ECHO_T}$ac_header_compiler" >&6
14508
14509 # Is the header present?
14510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14512 cat >conftest.$ac_ext <<_ACEOF
14513 /* confdefs.h.  */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h.  */
14518 #include <$ac_header>
14519 _ACEOF
14520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14522   ac_status=$?
14523   grep -v '^ *+' conftest.er1 >conftest.err
14524   rm -f conftest.er1
14525   cat conftest.err >&5
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); } >/dev/null; then
14528   if test -s conftest.err; then
14529     ac_cpp_err=$ac_c_preproc_warn_flag
14530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14531   else
14532     ac_cpp_err=
14533   fi
14534 else
14535   ac_cpp_err=yes
14536 fi
14537 if test -z "$ac_cpp_err"; then
14538   ac_header_preproc=yes
14539 else
14540   echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14542
14543   ac_header_preproc=no
14544 fi
14545 rm -f conftest.err conftest.$ac_ext
14546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14547 echo "${ECHO_T}$ac_header_preproc" >&6
14548
14549 # So?  What about this header?
14550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14551   yes:no: )
14552     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14556     ac_header_preproc=yes
14557     ;;
14558   no:yes:* )
14559     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14561     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14562 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14563     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14565     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14566 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14569     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14571     (
14572       cat <<\_ASBOX
14573 ## ------------------------------------------ ##
14574 ## Report this to the AC_PACKAGE_NAME lists.  ##
14575 ## ------------------------------------------ ##
14576 _ASBOX
14577     ) |
14578       sed "s/^/$as_me: WARNING:     /" >&2
14579     ;;
14580 esac
14581 echo "$as_me:$LINENO: checking for $ac_header" >&5
14582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14584   echo $ECHO_N "(cached) $ECHO_C" >&6
14585 else
14586   eval "$as_ac_Header=\$ac_header_preproc"
14587 fi
14588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14590
14591 fi
14592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14593   cat >>confdefs.h <<_ACEOF
14594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14595 _ACEOF
14596
14597 fi
14598
14599 done
14600
14601
14602 for ac_func in getpagesize
14603 do
14604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14605 echo "$as_me:$LINENO: checking for $ac_func" >&5
14606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14607 if eval "test \"\${$as_ac_var+set}\" = set"; then
14608   echo $ECHO_N "(cached) $ECHO_C" >&6
14609 else
14610   cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h.  */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h.  */
14616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14618 #define $ac_func innocuous_$ac_func
14619
14620 /* System header to define __stub macros and hopefully few prototypes,
14621     which can conflict with char $ac_func (); below.
14622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14623     <limits.h> exists even on freestanding compilers.  */
14624
14625 #ifdef __STDC__
14626 # include <limits.h>
14627 #else
14628 # include <assert.h>
14629 #endif
14630
14631 #undef $ac_func
14632
14633 /* Override any gcc2 internal prototype to avoid an error.  */
14634 #ifdef __cplusplus
14635 extern "C"
14636 {
14637 #endif
14638 /* We use char because int might match the return type of a gcc2
14639    builtin and then its argument prototype would still apply.  */
14640 char $ac_func ();
14641 /* The GNU C library defines this for functions which it implements
14642     to always fail with ENOSYS.  Some functions are actually named
14643     something starting with __ and the normal name is an alias.  */
14644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14645 choke me
14646 #else
14647 char (*f) () = $ac_func;
14648 #endif
14649 #ifdef __cplusplus
14650 }
14651 #endif
14652
14653 int
14654 main ()
14655 {
14656 return f != $ac_func;
14657   ;
14658   return 0;
14659 }
14660 _ACEOF
14661 rm -f conftest.$ac_objext conftest$ac_exeext
14662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14663   (eval $ac_link) 2>conftest.er1
14664   ac_status=$?
14665   grep -v '^ *+' conftest.er1 >conftest.err
14666   rm -f conftest.er1
14667   cat conftest.err >&5
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); } &&
14670          { ac_try='test -z "$ac_c_werror_flag"
14671                          || test ! -s conftest.err'
14672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673   (eval $ac_try) 2>&5
14674   ac_status=$?
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); }; } &&
14677          { ac_try='test -s conftest$ac_exeext'
14678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679   (eval $ac_try) 2>&5
14680   ac_status=$?
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); }; }; then
14683   eval "$as_ac_var=yes"
14684 else
14685   echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688 eval "$as_ac_var=no"
14689 fi
14690 rm -f conftest.err conftest.$ac_objext \
14691       conftest$ac_exeext conftest.$ac_ext
14692 fi
14693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14695 if test `eval echo '${'$as_ac_var'}'` = yes; then
14696   cat >>confdefs.h <<_ACEOF
14697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14698 _ACEOF
14699
14700 fi
14701 done
14702
14703 echo "$as_me:$LINENO: checking for working mmap" >&5
14704 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14705 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14706   echo $ECHO_N "(cached) $ECHO_C" >&6
14707 else
14708   if test "$cross_compiling" = yes; then
14709   ac_cv_func_mmap_fixed_mapped=no
14710 else
14711   cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h.  */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h.  */
14717 $ac_includes_default
14718 /* malloc might have been renamed as rpl_malloc. */
14719 #undef malloc
14720
14721 /* Thanks to Mike Haertel and Jim Avera for this test.
14722    Here is a matrix of mmap possibilities:
14723         mmap private not fixed
14724         mmap private fixed at somewhere currently unmapped
14725         mmap private fixed at somewhere already mapped
14726         mmap shared not fixed
14727         mmap shared fixed at somewhere currently unmapped
14728         mmap shared fixed at somewhere already mapped
14729    For private mappings, we should verify that changes cannot be read()
14730    back from the file, nor mmap's back from the file at a different
14731    address.  (There have been systems where private was not correctly
14732    implemented like the infamous i386 svr4.0, and systems where the
14733    VM page cache was not coherent with the file system buffer cache
14734    like early versions of FreeBSD and possibly contemporary NetBSD.)
14735    For shared mappings, we should conversely verify that changes get
14736    propagated back to all the places they're supposed to be.
14737
14738    Grep wants private fixed already mapped.
14739    The main things grep needs to know about mmap are:
14740    * does it exist and is it safe to write into the mmap'd area
14741    * how to use it (BSD variants)  */
14742
14743 #include <fcntl.h>
14744 #include <sys/mman.h>
14745
14746 #if !STDC_HEADERS && !HAVE_STDLIB_H
14747 char *malloc ();
14748 #endif
14749
14750 /* This mess was copied from the GNU getpagesize.h.  */
14751 #if !HAVE_GETPAGESIZE
14752 /* Assume that all systems that can run configure have sys/param.h.  */
14753 # if !HAVE_SYS_PARAM_H
14754 #  define HAVE_SYS_PARAM_H 1
14755 # endif
14756
14757 # ifdef _SC_PAGESIZE
14758 #  define getpagesize() sysconf(_SC_PAGESIZE)
14759 # else /* no _SC_PAGESIZE */
14760 #  if HAVE_SYS_PARAM_H
14761 #   include <sys/param.h>
14762 #   ifdef EXEC_PAGESIZE
14763 #    define getpagesize() EXEC_PAGESIZE
14764 #   else /* no EXEC_PAGESIZE */
14765 #    ifdef NBPG
14766 #     define getpagesize() NBPG * CLSIZE
14767 #     ifndef CLSIZE
14768 #      define CLSIZE 1
14769 #     endif /* no CLSIZE */
14770 #    else /* no NBPG */
14771 #     ifdef NBPC
14772 #      define getpagesize() NBPC
14773 #     else /* no NBPC */
14774 #      ifdef PAGESIZE
14775 #       define getpagesize() PAGESIZE
14776 #      endif /* PAGESIZE */
14777 #     endif /* no NBPC */
14778 #    endif /* no NBPG */
14779 #   endif /* no EXEC_PAGESIZE */
14780 #  else /* no HAVE_SYS_PARAM_H */
14781 #   define getpagesize() 8192   /* punt totally */
14782 #  endif /* no HAVE_SYS_PARAM_H */
14783 # endif /* no _SC_PAGESIZE */
14784
14785 #endif /* no HAVE_GETPAGESIZE */
14786
14787 int
14788 main ()
14789 {
14790   char *data, *data2, *data3;
14791   int i, pagesize;
14792   int fd;
14793
14794   pagesize = getpagesize ();
14795
14796   /* First, make a file with some known garbage in it. */
14797   data = (char *) malloc (pagesize);
14798   if (!data)
14799     exit (1);
14800   for (i = 0; i < pagesize; ++i)
14801     *(data + i) = rand ();
14802   umask (0);
14803   fd = creat ("conftest.mmap", 0600);
14804   if (fd < 0)
14805     exit (1);
14806   if (write (fd, data, pagesize) != pagesize)
14807     exit (1);
14808   close (fd);
14809
14810   /* Next, try to mmap the file at a fixed address which already has
14811      something else allocated at it.  If we can, also make sure that
14812      we see the same garbage.  */
14813   fd = open ("conftest.mmap", O_RDWR);
14814   if (fd < 0)
14815     exit (1);
14816   data2 = (char *) malloc (2 * pagesize);
14817   if (!data2)
14818     exit (1);
14819   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14820   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14821                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14822     exit (1);
14823   for (i = 0; i < pagesize; ++i)
14824     if (*(data + i) != *(data2 + i))
14825       exit (1);
14826
14827   /* Finally, make sure that changes to the mapped area do not
14828      percolate back to the file as seen by read().  (This is a bug on
14829      some variants of i386 svr4.0.)  */
14830   for (i = 0; i < pagesize; ++i)
14831     *(data2 + i) = *(data2 + i) + 1;
14832   data3 = (char *) malloc (pagesize);
14833   if (!data3)
14834     exit (1);
14835   if (read (fd, data3, pagesize) != pagesize)
14836     exit (1);
14837   for (i = 0; i < pagesize; ++i)
14838     if (*(data + i) != *(data3 + i))
14839       exit (1);
14840   close (fd);
14841   exit (0);
14842 }
14843 _ACEOF
14844 rm -f conftest$ac_exeext
14845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14846   (eval $ac_link) 2>&5
14847   ac_status=$?
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851   (eval $ac_try) 2>&5
14852   ac_status=$?
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); }; }; then
14855   ac_cv_func_mmap_fixed_mapped=yes
14856 else
14857   echo "$as_me: program exited with status $ac_status" >&5
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861 ( exit $ac_status )
14862 ac_cv_func_mmap_fixed_mapped=no
14863 fi
14864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14865 fi
14866 fi
14867 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14868 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14869 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14870
14871 cat >>confdefs.h <<\_ACEOF
14872 #define HAVE_MMAP 1
14873 _ACEOF
14874
14875 fi
14876 rm -f conftest.mmap
14877
14878 echo "$as_me:$LINENO: checking for pid_t" >&5
14879 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14880 if test "${ac_cv_type_pid_t+set}" = set; then
14881   echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883   cat >conftest.$ac_ext <<_ACEOF
14884 /* confdefs.h.  */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h.  */
14889 $ac_includes_default
14890 int
14891 main ()
14892 {
14893 if ((pid_t *) 0)
14894   return 0;
14895 if (sizeof (pid_t))
14896   return 0;
14897   ;
14898   return 0;
14899 }
14900 _ACEOF
14901 rm -f conftest.$ac_objext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903   (eval $ac_compile) 2>conftest.er1
14904   ac_status=$?
14905   grep -v '^ *+' conftest.er1 >conftest.err
14906   rm -f conftest.er1
14907   cat conftest.err >&5
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } &&
14910          { ac_try='test -z "$ac_c_werror_flag"
14911                          || test ! -s conftest.err'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; } &&
14917          { ac_try='test -s conftest.$ac_objext'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923   ac_cv_type_pid_t=yes
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_cv_type_pid_t=no
14929 fi
14930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14931 fi
14932 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14933 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14934 if test $ac_cv_type_pid_t = yes; then
14935   :
14936 else
14937
14938 cat >>confdefs.h <<_ACEOF
14939 #define pid_t int
14940 _ACEOF
14941
14942 fi
14943
14944
14945
14946 for ac_header in unistd.h vfork.h
14947 do
14948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14950   echo "$as_me:$LINENO: checking for $ac_header" >&5
14951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14953   echo $ECHO_N "(cached) $ECHO_C" >&6
14954 fi
14955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14957 else
14958   # Is the header compilable?
14959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14961 cat >conftest.$ac_ext <<_ACEOF
14962 /* confdefs.h.  */
14963 _ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h.  */
14967 $ac_includes_default
14968 #include <$ac_header>
14969 _ACEOF
14970 rm -f conftest.$ac_objext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972   (eval $ac_compile) 2>conftest.er1
14973   ac_status=$?
14974   grep -v '^ *+' conftest.er1 >conftest.err
14975   rm -f conftest.er1
14976   cat conftest.err >&5
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } &&
14979          { ac_try='test -z "$ac_c_werror_flag"
14980                          || test ! -s conftest.err'
14981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982   (eval $ac_try) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }; } &&
14986          { ac_try='test -s conftest.$ac_objext'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; }; then
14992   ac_header_compiler=yes
14993 else
14994   echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997 ac_header_compiler=no
14998 fi
14999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15001 echo "${ECHO_T}$ac_header_compiler" >&6
15002
15003 # Is the header present?
15004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012 #include <$ac_header>
15013 _ACEOF
15014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15016   ac_status=$?
15017   grep -v '^ *+' conftest.er1 >conftest.err
15018   rm -f conftest.er1
15019   cat conftest.err >&5
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); } >/dev/null; then
15022   if test -s conftest.err; then
15023     ac_cpp_err=$ac_c_preproc_warn_flag
15024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15025   else
15026     ac_cpp_err=
15027   fi
15028 else
15029   ac_cpp_err=yes
15030 fi
15031 if test -z "$ac_cpp_err"; then
15032   ac_header_preproc=yes
15033 else
15034   echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15036
15037   ac_header_preproc=no
15038 fi
15039 rm -f conftest.err conftest.$ac_ext
15040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15041 echo "${ECHO_T}$ac_header_preproc" >&6
15042
15043 # So?  What about this header?
15044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15045   yes:no: )
15046     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15050     ac_header_preproc=yes
15051     ;;
15052   no:yes:* )
15053     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15055     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15056 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15057     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15059     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15060 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15063     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15065     (
15066       cat <<\_ASBOX
15067 ## ------------------------------------------ ##
15068 ## Report this to the AC_PACKAGE_NAME lists.  ##
15069 ## ------------------------------------------ ##
15070 _ASBOX
15071     ) |
15072       sed "s/^/$as_me: WARNING:     /" >&2
15073     ;;
15074 esac
15075 echo "$as_me:$LINENO: checking for $ac_header" >&5
15076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080   eval "$as_ac_Header=\$ac_header_preproc"
15081 fi
15082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15084
15085 fi
15086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15087   cat >>confdefs.h <<_ACEOF
15088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15089 _ACEOF
15090
15091 fi
15092
15093 done
15094
15095
15096
15097 for ac_func in fork vfork
15098 do
15099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15100 echo "$as_me:$LINENO: checking for $ac_func" >&5
15101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15102 if eval "test \"\${$as_ac_var+set}\" = set"; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105   cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h.  */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h.  */
15111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15113 #define $ac_func innocuous_$ac_func
15114
15115 /* System header to define __stub macros and hopefully few prototypes,
15116     which can conflict with char $ac_func (); below.
15117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15118     <limits.h> exists even on freestanding compilers.  */
15119
15120 #ifdef __STDC__
15121 # include <limits.h>
15122 #else
15123 # include <assert.h>
15124 #endif
15125
15126 #undef $ac_func
15127
15128 /* Override any gcc2 internal prototype to avoid an error.  */
15129 #ifdef __cplusplus
15130 extern "C"
15131 {
15132 #endif
15133 /* We use char because int might match the return type of a gcc2
15134    builtin and then its argument prototype would still apply.  */
15135 char $ac_func ();
15136 /* The GNU C library defines this for functions which it implements
15137     to always fail with ENOSYS.  Some functions are actually named
15138     something starting with __ and the normal name is an alias.  */
15139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15140 choke me
15141 #else
15142 char (*f) () = $ac_func;
15143 #endif
15144 #ifdef __cplusplus
15145 }
15146 #endif
15147
15148 int
15149 main ()
15150 {
15151 return f != $ac_func;
15152   ;
15153   return 0;
15154 }
15155 _ACEOF
15156 rm -f conftest.$ac_objext conftest$ac_exeext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15158   (eval $ac_link) 2>conftest.er1
15159   ac_status=$?
15160   grep -v '^ *+' conftest.er1 >conftest.err
15161   rm -f conftest.er1
15162   cat conftest.err >&5
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); } &&
15165          { ac_try='test -z "$ac_c_werror_flag"
15166                          || test ! -s conftest.err'
15167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168   (eval $ac_try) 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; } &&
15172          { ac_try='test -s conftest$ac_exeext'
15173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174   (eval $ac_try) 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; }; then
15178   eval "$as_ac_var=yes"
15179 else
15180   echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15182
15183 eval "$as_ac_var=no"
15184 fi
15185 rm -f conftest.err conftest.$ac_objext \
15186       conftest$ac_exeext conftest.$ac_ext
15187 fi
15188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15190 if test `eval echo '${'$as_ac_var'}'` = yes; then
15191   cat >>confdefs.h <<_ACEOF
15192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15193 _ACEOF
15194
15195 fi
15196 done
15197
15198 if test "x$ac_cv_func_fork" = xyes; then
15199   echo "$as_me:$LINENO: checking for working fork" >&5
15200 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15201 if test "${ac_cv_func_fork_works+set}" = set; then
15202   echo $ECHO_N "(cached) $ECHO_C" >&6
15203 else
15204   if test "$cross_compiling" = yes; then
15205   ac_cv_func_fork_works=cross
15206 else
15207   cat >conftest.$ac_ext <<_ACEOF
15208 /* By Ruediger Kuhlmann. */
15209       #include <sys/types.h>
15210       #if HAVE_UNISTD_H
15211       # include <unistd.h>
15212       #endif
15213       /* Some systems only have a dummy stub for fork() */
15214       int main ()
15215       {
15216         if (fork() < 0)
15217           exit (1);
15218         exit (0);
15219       }
15220 _ACEOF
15221 rm -f conftest$ac_exeext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15223   (eval $ac_link) 2>&5
15224   ac_status=$?
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228   (eval $ac_try) 2>&5
15229   ac_status=$?
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); }; }; then
15232   ac_cv_func_fork_works=yes
15233 else
15234   echo "$as_me: program exited with status $ac_status" >&5
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238 ( exit $ac_status )
15239 ac_cv_func_fork_works=no
15240 fi
15241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15242 fi
15243 fi
15244 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15245 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15246
15247 else
15248   ac_cv_func_fork_works=$ac_cv_func_fork
15249 fi
15250 if test "x$ac_cv_func_fork_works" = xcross; then
15251   case $host in
15252     *-*-amigaos* | *-*-msdosdjgpp*)
15253       # Override, as these systems have only a dummy fork() stub
15254       ac_cv_func_fork_works=no
15255       ;;
15256     *)
15257       ac_cv_func_fork_works=yes
15258       ;;
15259   esac
15260   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15261 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15262 fi
15263 ac_cv_func_vfork_works=$ac_cv_func_vfork
15264 if test "x$ac_cv_func_vfork" = xyes; then
15265   echo "$as_me:$LINENO: checking for working vfork" >&5
15266 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15267 if test "${ac_cv_func_vfork_works+set}" = set; then
15268   echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270   if test "$cross_compiling" = yes; then
15271   ac_cv_func_vfork_works=cross
15272 else
15273   cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279 /* Thanks to Paul Eggert for this test.  */
15280 #include <stdio.h>
15281 #include <stdlib.h>
15282 #include <sys/types.h>
15283 #include <sys/stat.h>
15284 #include <sys/wait.h>
15285 #if HAVE_UNISTD_H
15286 # include <unistd.h>
15287 #endif
15288 #if HAVE_VFORK_H
15289 # include <vfork.h>
15290 #endif
15291 /* On some sparc systems, changes by the child to local and incoming
15292    argument registers are propagated back to the parent.  The compiler
15293    is told about this with #include <vfork.h>, but some compilers
15294    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15295    static variable whose address is put into a register that is
15296    clobbered by the vfork.  */
15297 static void
15298 #ifdef __cplusplus
15299 sparc_address_test (int arg)
15300 # else
15301 sparc_address_test (arg) int arg;
15302 #endif
15303 {
15304   static pid_t child;
15305   if (!child) {
15306     child = vfork ();
15307     if (child < 0) {
15308       perror ("vfork");
15309       _exit(2);
15310     }
15311     if (!child) {
15312       arg = getpid();
15313       write(-1, "", 0);
15314       _exit (arg);
15315     }
15316   }
15317 }
15318
15319 int
15320 main ()
15321 {
15322   pid_t parent = getpid ();
15323   pid_t child;
15324
15325   sparc_address_test (0);
15326
15327   child = vfork ();
15328
15329   if (child == 0) {
15330     /* Here is another test for sparc vfork register problems.  This
15331        test uses lots of local variables, at least as many local
15332        variables as main has allocated so far including compiler
15333        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15334        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15335        reuse the register of parent for one of the local variables,
15336        since it will think that parent can't possibly be used any more
15337        in this routine.  Assigning to the local variable will thus
15338        munge parent in the parent process.  */
15339     pid_t
15340       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15341       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15342     /* Convince the compiler that p..p7 are live; otherwise, it might
15343        use the same hardware register for all 8 local variables.  */
15344     if (p != p1 || p != p2 || p != p3 || p != p4
15345         || p != p5 || p != p6 || p != p7)
15346       _exit(1);
15347
15348     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15349        from child file descriptors.  If the child closes a descriptor
15350        before it execs or exits, this munges the parent's descriptor
15351        as well.  Test for this by closing stdout in the child.  */
15352     _exit(close(fileno(stdout)) != 0);
15353   } else {
15354     int status;
15355     struct stat st;
15356
15357     while (wait(&status) != child)
15358       ;
15359     exit(
15360          /* Was there some problem with vforking?  */
15361          child < 0
15362
15363          /* Did the child fail?  (This shouldn't happen.)  */
15364          || status
15365
15366          /* Did the vfork/compiler bug occur?  */
15367          || parent != getpid()
15368
15369          /* Did the file descriptor bug occur?  */
15370          || fstat(fileno(stdout), &st) != 0
15371          );
15372   }
15373 }
15374 _ACEOF
15375 rm -f conftest$ac_exeext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15377   (eval $ac_link) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382   (eval $ac_try) 2>&5
15383   ac_status=$?
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); }; }; then
15386   ac_cv_func_vfork_works=yes
15387 else
15388   echo "$as_me: program exited with status $ac_status" >&5
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ( exit $ac_status )
15393 ac_cv_func_vfork_works=no
15394 fi
15395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15396 fi
15397 fi
15398 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15399 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15400
15401 fi;
15402 if test "x$ac_cv_func_fork_works" = xcross; then
15403   ac_cv_func_vfork_works=$ac_cv_func_vfork
15404   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15405 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15406 fi
15407
15408 if test "x$ac_cv_func_vfork_works" = xyes; then
15409
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_WORKING_VFORK 1
15412 _ACEOF
15413
15414 else
15415
15416 cat >>confdefs.h <<\_ACEOF
15417 #define vfork fork
15418 _ACEOF
15419
15420 fi
15421 if test "x$ac_cv_func_fork_works" = xyes; then
15422
15423 cat >>confdefs.h <<\_ACEOF
15424 #define HAVE_WORKING_FORK 1
15425 _ACEOF
15426
15427 fi
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448 for ac_func in canonicalize_file_name realpath getrusage getuid \
15449                 getgid poll pread64 sbrk setpgid setpgrp setsid \
15450                 sigaction sigprocmask sigsetmask socketpair syscall \
15451                 ttrace wborder setlocale
15452 do
15453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15454 echo "$as_me:$LINENO: checking for $ac_func" >&5
15455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15456 if eval "test \"\${$as_ac_var+set}\" = set"; then
15457   echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459   cat >conftest.$ac_ext <<_ACEOF
15460 /* confdefs.h.  */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h.  */
15465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15467 #define $ac_func innocuous_$ac_func
15468
15469 /* System header to define __stub macros and hopefully few prototypes,
15470     which can conflict with char $ac_func (); below.
15471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15472     <limits.h> exists even on freestanding compilers.  */
15473
15474 #ifdef __STDC__
15475 # include <limits.h>
15476 #else
15477 # include <assert.h>
15478 #endif
15479
15480 #undef $ac_func
15481
15482 /* Override any gcc2 internal prototype to avoid an error.  */
15483 #ifdef __cplusplus
15484 extern "C"
15485 {
15486 #endif
15487 /* We use char because int might match the return type of a gcc2
15488    builtin and then its argument prototype would still apply.  */
15489 char $ac_func ();
15490 /* The GNU C library defines this for functions which it implements
15491     to always fail with ENOSYS.  Some functions are actually named
15492     something starting with __ and the normal name is an alias.  */
15493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15494 choke me
15495 #else
15496 char (*f) () = $ac_func;
15497 #endif
15498 #ifdef __cplusplus
15499 }
15500 #endif
15501
15502 int
15503 main ()
15504 {
15505 return f != $ac_func;
15506   ;
15507   return 0;
15508 }
15509 _ACEOF
15510 rm -f conftest.$ac_objext conftest$ac_exeext
15511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15512   (eval $ac_link) 2>conftest.er1
15513   ac_status=$?
15514   grep -v '^ *+' conftest.er1 >conftest.err
15515   rm -f conftest.er1
15516   cat conftest.err >&5
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); } &&
15519          { ac_try='test -z "$ac_c_werror_flag"
15520                          || test ! -s conftest.err'
15521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522   (eval $ac_try) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; } &&
15526          { ac_try='test -s conftest$ac_exeext'
15527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528   (eval $ac_try) 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); }; }; then
15532   eval "$as_ac_var=yes"
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 eval "$as_ac_var=no"
15538 fi
15539 rm -f conftest.err conftest.$ac_objext \
15540       conftest$ac_exeext conftest.$ac_ext
15541 fi
15542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15544 if test `eval echo '${'$as_ac_var'}'` = yes; then
15545   cat >>confdefs.h <<_ACEOF
15546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15547 _ACEOF
15548
15549 fi
15550 done
15551
15552
15553 # Check the return and argument types of ptrace.  No canned test for
15554 # this, so roll our own.
15555 gdb_ptrace_headers='
15556 #if HAVE_SYS_TYPES_H
15557 # include <sys/types.h>
15558 #endif
15559 #if HAVE_SYS_PTRACE_H
15560 # include <sys/ptrace.h>
15561 #endif
15562 #if HAVE_UNISTD_H
15563 # include <unistd.h>
15564 #endif
15565 '
15566 # There is no point in checking if we don't have a prototype.
15567 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15568 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15569 if test "${ac_cv_have_decl_ptrace+set}" = set; then
15570   echo $ECHO_N "(cached) $ECHO_C" >&6
15571 else
15572   cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h.  */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h.  */
15578 $gdb_ptrace_headers
15579
15580 int
15581 main ()
15582 {
15583 #ifndef ptrace
15584   char *p = (char *) ptrace;
15585 #endif
15586
15587   ;
15588   return 0;
15589 }
15590 _ACEOF
15591 rm -f conftest.$ac_objext
15592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15593   (eval $ac_compile) 2>conftest.er1
15594   ac_status=$?
15595   grep -v '^ *+' conftest.er1 >conftest.err
15596   rm -f conftest.er1
15597   cat conftest.err >&5
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } &&
15600          { ac_try='test -z "$ac_c_werror_flag"
15601                          || test ! -s conftest.err'
15602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603   (eval $ac_try) 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); }; } &&
15607          { ac_try='test -s conftest.$ac_objext'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }; then
15613   ac_cv_have_decl_ptrace=yes
15614 else
15615   echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 ac_cv_have_decl_ptrace=no
15619 fi
15620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15621 fi
15622 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
15623 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
15624 if test $ac_cv_have_decl_ptrace = yes; then
15625
15626 cat >>confdefs.h <<_ACEOF
15627 #define HAVE_DECL_PTRACE 1
15628 _ACEOF
15629
15630
15631 else
15632   cat >>confdefs.h <<_ACEOF
15633 #define HAVE_DECL_PTRACE 0
15634 _ACEOF
15635
15636
15637   : ${gdb_cv_func_ptrace_ret='int'}
15638   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15639
15640 fi
15641
15642
15643 # Check return type.  Varargs (used on GNU/Linux) conflict with the
15644 # empty argument list, so check for that explicitly.
15645 echo "$as_me:$LINENO: checking return type of ptrace" >&5
15646 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
15647 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
15648   echo $ECHO_N "(cached) $ECHO_C" >&6
15649 else
15650   cat >conftest.$ac_ext <<_ACEOF
15651 /* confdefs.h.  */
15652 _ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h.  */
15656 $gdb_ptrace_headers
15657 int
15658 main ()
15659 {
15660 extern long ptrace (enum __ptrace_request, ...);
15661   ;
15662   return 0;
15663 }
15664 _ACEOF
15665 rm -f conftest.$ac_objext
15666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15667   (eval $ac_compile) 2>conftest.er1
15668   ac_status=$?
15669   grep -v '^ *+' conftest.er1 >conftest.err
15670   rm -f conftest.er1
15671   cat conftest.err >&5
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); } &&
15674          { ac_try='test -z "$ac_c_werror_flag"
15675                          || test ! -s conftest.err'
15676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677   (eval $ac_try) 2>&5
15678   ac_status=$?
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); }; } &&
15681          { ac_try='test -s conftest.$ac_objext'
15682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683   (eval $ac_try) 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); }; }; then
15687   gdb_cv_func_ptrace_ret='long'
15688 else
15689   echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15691
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698 $gdb_ptrace_headers
15699 int
15700 main ()
15701 {
15702 extern int ptrace ();
15703   ;
15704   return 0;
15705 }
15706 _ACEOF
15707 rm -f conftest.$ac_objext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15709   (eval $ac_compile) 2>conftest.er1
15710   ac_status=$?
15711   grep -v '^ *+' conftest.er1 >conftest.err
15712   rm -f conftest.er1
15713   cat conftest.err >&5
15714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715   (exit $ac_status); } &&
15716          { ac_try='test -z "$ac_c_werror_flag"
15717                          || test ! -s conftest.err'
15718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719   (eval $ac_try) 2>&5
15720   ac_status=$?
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); }; } &&
15723          { ac_try='test -s conftest.$ac_objext'
15724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725   (eval $ac_try) 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); }; }; then
15729   gdb_cv_func_ptrace_ret='int'
15730 else
15731   echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15733
15734 gdb_cv_func_ptrace_ret='long'
15735 fi
15736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15737 fi
15738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15739 fi
15740 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
15741 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
15742
15743 cat >>confdefs.h <<_ACEOF
15744 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15745 _ACEOF
15746
15747 # Check argument types.
15748 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
15749 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
15750 if test "${gdb_cv_func_ptrace_args+set}" = set; then
15751   echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753
15754   cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h.  */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h.  */
15760 $gdb_ptrace_headers
15761 int
15762 main ()
15763 {
15764 extern long ptrace (enum __ptrace_request, ...);
15765   ;
15766   return 0;
15767 }
15768 _ACEOF
15769 rm -f conftest.$ac_objext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15771   (eval $ac_compile) 2>conftest.er1
15772   ac_status=$?
15773   grep -v '^ *+' conftest.er1 >conftest.err
15774   rm -f conftest.er1
15775   cat conftest.err >&5
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); } &&
15778          { ac_try='test -z "$ac_c_werror_flag"
15779                          || test ! -s conftest.err'
15780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781   (eval $ac_try) 2>&5
15782   ac_status=$?
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); }; } &&
15785          { ac_try='test -s conftest.$ac_objext'
15786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787   (eval $ac_try) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; }; then
15791   gdb_cv_func_ptrace_args='int,int,long,long'
15792 else
15793   echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15795
15796
15797 for gdb_arg1 in 'int' 'long'; do
15798  for gdb_arg2 in 'pid_t' 'int' 'long'; do
15799   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15800    for gdb_arg4 in 'int' 'long'; do
15801      cat >conftest.$ac_ext <<_ACEOF
15802 /* confdefs.h.  */
15803 _ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h.  */
15807 $gdb_ptrace_headers
15808 int
15809 main ()
15810 {
15811
15812 extern $gdb_cv_func_ptrace_ret
15813   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15814
15815   ;
15816   return 0;
15817 }
15818 _ACEOF
15819 rm -f conftest.$ac_objext
15820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15821   (eval $ac_compile) 2>conftest.er1
15822   ac_status=$?
15823   grep -v '^ *+' conftest.er1 >conftest.err
15824   rm -f conftest.er1
15825   cat conftest.err >&5
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } &&
15828          { ac_try='test -z "$ac_c_werror_flag"
15829                          || test ! -s conftest.err'
15830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831   (eval $ac_try) 2>&5
15832   ac_status=$?
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); }; } &&
15835          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15841   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15842     break 4;
15843 else
15844   echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15846
15847 fi
15848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15849     for gdb_arg5 in 'int *' 'int' 'long'; do
15850      cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h.  */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h.  */
15856 $gdb_ptrace_headers
15857 int
15858 main ()
15859 {
15860
15861 extern $gdb_cv_func_ptrace_ret
15862   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15863
15864   ;
15865   return 0;
15866 }
15867 _ACEOF
15868 rm -f conftest.$ac_objext
15869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15870   (eval $ac_compile) 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); } &&
15877          { ac_try='test -z "$ac_c_werror_flag"
15878                          || test ! -s conftest.err'
15879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880   (eval $ac_try) 2>&5
15881   ac_status=$?
15882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883   (exit $ac_status); }; } &&
15884          { ac_try='test -s conftest.$ac_objext'
15885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886   (eval $ac_try) 2>&5
15887   ac_status=$?
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); }; }; then
15890
15891 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15892     break 5;
15893 else
15894   echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897 fi
15898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15899     done
15900    done
15901   done
15902  done
15903 done
15904 # Provide a safe default value.
15905 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15906
15907 fi
15908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15909 fi
15910 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
15911 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
15912 ac_save_IFS=$IFS; IFS=','
15913 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15914 IFS=$ac_save_IFS
15915 shift
15916
15917 cat >>confdefs.h <<_ACEOF
15918 #define PTRACE_TYPE_ARG3 $3
15919 _ACEOF
15920
15921 if test -n "$5"; then
15922
15923 cat >>confdefs.h <<_ACEOF
15924 #define PTRACE_TYPE_ARG5 $5
15925 _ACEOF
15926
15927 fi
15928
15929 if test "$cross_compiling" = no; then
15930   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
15931 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
15932 if test "${ac_cv_func_setpgrp_void+set}" = set; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935   if test "$cross_compiling" = yes; then
15936   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
15937 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
15938    { (exit 1); exit 1; }; }
15939 else
15940   cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946 #if HAVE_UNISTD_H
15947 # include <unistd.h>
15948 #endif
15949
15950 int
15951 main ()
15952 {
15953 /* If this system has a BSD-style setpgrp which takes arguments,
15954   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15955   exit successfully. */
15956   exit (setpgrp (1,1) == -1 ? 0 : 1);
15957   ;
15958   return 0;
15959 }
15960 _ACEOF
15961 rm -f conftest$ac_exeext
15962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15963   (eval $ac_link) 2>&5
15964   ac_status=$?
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968   (eval $ac_try) 2>&5
15969   ac_status=$?
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); }; }; then
15972   ac_cv_func_setpgrp_void=no
15973 else
15974   echo "$as_me: program exited with status $ac_status" >&5
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978 ( exit $ac_status )
15979 ac_cv_func_setpgrp_void=yes
15980 fi
15981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15982 fi
15983 fi
15984 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
15985 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
15986 if test $ac_cv_func_setpgrp_void = yes; then
15987
15988 cat >>confdefs.h <<\_ACEOF
15989 #define SETPGRP_VOID 1
15990 _ACEOF
15991
15992 fi
15993
15994 else
15995   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
15996 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
15997 if test "${ac_cv_func_setpgrp_void+set}" = set; then
15998   echo $ECHO_N "(cached) $ECHO_C" >&6
15999 else
16000   cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16006
16007 #include <unistd.h>
16008
16009 int
16010 main ()
16011 {
16012
16013   if (setpgrp(1,1) == -1)
16014     exit (0);
16015   else
16016     exit (1);
16017
16018   ;
16019   return 0;
16020 }
16021 _ACEOF
16022 rm -f conftest.$ac_objext
16023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16024   (eval $ac_compile) 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); } &&
16031          { ac_try='test -z "$ac_c_werror_flag"
16032                          || test ! -s conftest.err'
16033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034   (eval $ac_try) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; } &&
16038          { ac_try='test -s conftest.$ac_objext'
16039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040   (eval $ac_try) 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); }; }; then
16044   ac_cv_func_setpgrp_void=no
16045 else
16046   echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049 ac_cv_func_setpgrp_void=yes
16050 fi
16051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16052 fi
16053 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16054 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16055 if test $ac_cv_func_setpgrp_void = yes; then
16056   cat >>confdefs.h <<\_ACEOF
16057 #define SETPGRP_VOID 1
16058 _ACEOF
16059
16060 fi
16061 fi
16062
16063 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
16064 # since sigsetjmp might only be defined as a macro.
16065 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16066 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16067 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16068   echo $ECHO_N "(cached) $ECHO_C" >&6
16069 else
16070   cat >conftest.$ac_ext <<_ACEOF
16071 /* confdefs.h.  */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h.  */
16076
16077 #include <setjmp.h>
16078
16079 int
16080 main ()
16081 {
16082 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16083   ;
16084   return 0;
16085 }
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089   (eval $ac_compile) 2>conftest.er1
16090   ac_status=$?
16091   grep -v '^ *+' conftest.er1 >conftest.err
16092   rm -f conftest.er1
16093   cat conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } &&
16096          { ac_try='test -z "$ac_c_werror_flag"
16097                          || test ! -s conftest.err'
16098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099   (eval $ac_try) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; } &&
16103          { ac_try='test -s conftest.$ac_objext'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   gdb_cv_func_sigsetjmp=yes
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16113
16114 gdb_cv_func_sigsetjmp=no
16115 fi
16116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16117 fi
16118 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16119 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16120 if test $gdb_cv_func_sigsetjmp = yes; then
16121
16122 cat >>confdefs.h <<\_ACEOF
16123 #define HAVE_SIGSETJMP 1
16124 _ACEOF
16125
16126 fi
16127
16128 # Assume we'll default to using the included libiberty regex.
16129 gdb_use_included_regex=yes
16130
16131 # However, if the system regex is GNU regex, then default to *not*
16132 # using the included regex.
16133 echo "$as_me:$LINENO: checking for GNU regex" >&5
16134 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16135 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16136   echo $ECHO_N "(cached) $ECHO_C" >&6
16137 else
16138   cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h.  */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h.  */
16144 #include <gnu-versions.h>
16145 int
16146 main ()
16147 {
16148 #define REGEX_INTERFACE_VERSION 1
16149 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16150 # error "Version mismatch"
16151 #endif
16152   ;
16153   return 0;
16154 }
16155 _ACEOF
16156 rm -f conftest.$ac_objext
16157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16158   (eval $ac_compile) 2>conftest.er1
16159   ac_status=$?
16160   grep -v '^ *+' conftest.er1 >conftest.err
16161   rm -f conftest.er1
16162   cat conftest.err >&5
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); } &&
16165          { ac_try='test -z "$ac_c_werror_flag"
16166                          || test ! -s conftest.err'
16167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168   (eval $ac_try) 2>&5
16169   ac_status=$?
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); }; } &&
16172          { ac_try='test -s conftest.$ac_objext'
16173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174   (eval $ac_try) 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); }; }; then
16178   gdb_cv_have_gnu_regex=yes
16179 else
16180   echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 gdb_cv_have_gnu_regex=no
16184 fi
16185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16186 fi
16187 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16188 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16189 if test $gdb_cv_have_gnu_regex = yes; then
16190   gdb_use_included_regex=no
16191 fi
16192
16193
16194 # Check whether --with-included-regex or --without-included-regex was given.
16195 if test "${with_included_regex+set}" = set; then
16196   withval="$with_included_regex"
16197   gdb_with_regex=$withval
16198 else
16199   gdb_with_regex=$gdb_use_included_regex
16200 fi;
16201 if test "$gdb_with_regex" = yes; then
16202
16203 cat >>confdefs.h <<\_ACEOF
16204 #define USE_INCLUDED_REGEX 1
16205 _ACEOF
16206
16207 fi
16208
16209 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16210 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16211 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16212 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16213   echo $ECHO_N "(cached) $ECHO_C" >&6
16214 else
16215   cat >conftest.$ac_ext <<_ACEOF
16216 /* confdefs.h.  */
16217 _ACEOF
16218 cat confdefs.h >>conftest.$ac_ext
16219 cat >>conftest.$ac_ext <<_ACEOF
16220 /* end confdefs.h.  */
16221 #include <sys/param.h>
16222 #include <sys/proc.h>
16223
16224
16225 int
16226 main ()
16227 {
16228 static struct thread ac_aggr;
16229 if (ac_aggr.td_pcb)
16230 return 0;
16231   ;
16232   return 0;
16233 }
16234 _ACEOF
16235 rm -f conftest.$ac_objext
16236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16237   (eval $ac_compile) 2>conftest.er1
16238   ac_status=$?
16239   grep -v '^ *+' conftest.er1 >conftest.err
16240   rm -f conftest.er1
16241   cat conftest.err >&5
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } &&
16244          { ac_try='test -z "$ac_c_werror_flag"
16245                          || test ! -s conftest.err'
16246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247   (eval $ac_try) 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); }; } &&
16251          { ac_try='test -s conftest.$ac_objext'
16252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253   (eval $ac_try) 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); }; }; then
16257   ac_cv_member_struct_thread_td_pcb=yes
16258 else
16259   echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16261
16262 cat >conftest.$ac_ext <<_ACEOF
16263 /* confdefs.h.  */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h.  */
16268 #include <sys/param.h>
16269 #include <sys/proc.h>
16270
16271
16272 int
16273 main ()
16274 {
16275 static struct thread ac_aggr;
16276 if (sizeof ac_aggr.td_pcb)
16277 return 0;
16278   ;
16279   return 0;
16280 }
16281 _ACEOF
16282 rm -f conftest.$ac_objext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16284   (eval $ac_compile) 2>conftest.er1
16285   ac_status=$?
16286   grep -v '^ *+' conftest.er1 >conftest.err
16287   rm -f conftest.er1
16288   cat conftest.err >&5
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); } &&
16291          { ac_try='test -z "$ac_c_werror_flag"
16292                          || test ! -s conftest.err'
16293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294   (eval $ac_try) 2>&5
16295   ac_status=$?
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); }; } &&
16298          { ac_try='test -s conftest.$ac_objext'
16299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300   (eval $ac_try) 2>&5
16301   ac_status=$?
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); }; }; then
16304   ac_cv_member_struct_thread_td_pcb=yes
16305 else
16306   echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16308
16309 ac_cv_member_struct_thread_td_pcb=no
16310 fi
16311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16312 fi
16313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16314 fi
16315 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16316 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16317 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16318
16319 cat >>confdefs.h <<_ACEOF
16320 #define HAVE_STRUCT_THREAD_TD_PCB 1
16321 _ACEOF
16322
16323
16324 fi
16325
16326
16327 # See if <sys/lwp.h> defines `struct lwp`.
16328 echo "$as_me:$LINENO: checking for struct lwp" >&5
16329 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16330 if test "${gdb_cv_struct_lwp+set}" = set; then
16331   echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333   cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h.  */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h.  */
16339 #include <sys/param.h>
16340 #include <sys/lwp.h>
16341 int
16342 main ()
16343 {
16344 struct lwp l;
16345   ;
16346   return 0;
16347 }
16348 _ACEOF
16349 rm -f conftest.$ac_objext
16350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16351   (eval $ac_compile) 2>conftest.er1
16352   ac_status=$?
16353   grep -v '^ *+' conftest.er1 >conftest.err
16354   rm -f conftest.er1
16355   cat conftest.err >&5
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); } &&
16358          { ac_try='test -z "$ac_c_werror_flag"
16359                          || test ! -s conftest.err'
16360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361   (eval $ac_try) 2>&5
16362   ac_status=$?
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); }; } &&
16365          { ac_try='test -s conftest.$ac_objext'
16366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367   (eval $ac_try) 2>&5
16368   ac_status=$?
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); }; }; then
16371   gdb_cv_struct_lwp=yes
16372 else
16373   echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16375
16376 gdb_cv_struct_lwp=no
16377 fi
16378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16379 fi
16380 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16381 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16382 if test $gdb_cv_struct_lwp = yes; then
16383
16384 cat >>confdefs.h <<\_ACEOF
16385 #define HAVE_STRUCT_LWP 1
16386 _ACEOF
16387
16388 fi
16389
16390 # See if <machine/reg.h> degines `struct reg'.
16391 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16392 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16393 if test "${gdb_cv_struct_reg+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 #include <sys/types.h>
16403 #include <machine/reg.h>
16404 int
16405 main ()
16406 {
16407 struct reg r;
16408   ;
16409   return 0;
16410 }
16411 _ACEOF
16412 rm -f conftest.$ac_objext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16414   (eval $ac_compile) 2>conftest.er1
16415   ac_status=$?
16416   grep -v '^ *+' conftest.er1 >conftest.err
16417   rm -f conftest.er1
16418   cat conftest.err >&5
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); } &&
16421          { ac_try='test -z "$ac_c_werror_flag"
16422                          || test ! -s conftest.err'
16423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424   (eval $ac_try) 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); }; } &&
16428          { ac_try='test -s conftest.$ac_objext'
16429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430   (eval $ac_try) 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; }; then
16434   gdb_cv_struct_reg=yes
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439 gdb_cv_struct_reg=no
16440 fi
16441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16442 fi
16443 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16444 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16445 if test $gdb_cv_struct_reg = yes; then
16446
16447 cat >>confdefs.h <<\_ACEOF
16448 #define HAVE_STRUCT_REG 1
16449 _ACEOF
16450
16451 fi
16452
16453 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16454 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16455 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16456 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16457 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16458   echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460   cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h.  */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h.  */
16466 #include <machine/reg.h>
16467
16468 int
16469 main ()
16470 {
16471 static struct reg ac_aggr;
16472 if (ac_aggr.r_fs)
16473 return 0;
16474   ;
16475   return 0;
16476 }
16477 _ACEOF
16478 rm -f conftest.$ac_objext
16479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16480   (eval $ac_compile) 2>conftest.er1
16481   ac_status=$?
16482   grep -v '^ *+' conftest.er1 >conftest.err
16483   rm -f conftest.er1
16484   cat conftest.err >&5
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); } &&
16487          { ac_try='test -z "$ac_c_werror_flag"
16488                          || test ! -s conftest.err'
16489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490   (eval $ac_try) 2>&5
16491   ac_status=$?
16492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493   (exit $ac_status); }; } &&
16494          { ac_try='test -s conftest.$ac_objext'
16495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496   (eval $ac_try) 2>&5
16497   ac_status=$?
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); }; }; then
16500   ac_cv_member_struct_reg_r_fs=yes
16501 else
16502   echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16504
16505 cat >conftest.$ac_ext <<_ACEOF
16506 /* confdefs.h.  */
16507 _ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h.  */
16511 #include <machine/reg.h>
16512
16513 int
16514 main ()
16515 {
16516 static struct reg ac_aggr;
16517 if (sizeof ac_aggr.r_fs)
16518 return 0;
16519   ;
16520   return 0;
16521 }
16522 _ACEOF
16523 rm -f conftest.$ac_objext
16524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16525   (eval $ac_compile) 2>conftest.er1
16526   ac_status=$?
16527   grep -v '^ *+' conftest.er1 >conftest.err
16528   rm -f conftest.er1
16529   cat conftest.err >&5
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); } &&
16532          { ac_try='test -z "$ac_c_werror_flag"
16533                          || test ! -s conftest.err'
16534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535   (eval $ac_try) 2>&5
16536   ac_status=$?
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); }; } &&
16539          { ac_try='test -s conftest.$ac_objext'
16540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541   (eval $ac_try) 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; }; then
16545   ac_cv_member_struct_reg_r_fs=yes
16546 else
16547   echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16549
16550 ac_cv_member_struct_reg_r_fs=no
16551 fi
16552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16553 fi
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555 fi
16556 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16557 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16558 if test $ac_cv_member_struct_reg_r_fs = yes; then
16559
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_STRUCT_REG_R_FS 1
16562 _ACEOF
16563
16564
16565 fi
16566 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16567 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16568 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16569   echo $ECHO_N "(cached) $ECHO_C" >&6
16570 else
16571   cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h.  */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h.  */
16577 #include <machine/reg.h>
16578
16579 int
16580 main ()
16581 {
16582 static struct reg ac_aggr;
16583 if (ac_aggr.r_gs)
16584 return 0;
16585   ;
16586   return 0;
16587 }
16588 _ACEOF
16589 rm -f conftest.$ac_objext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591   (eval $ac_compile) 2>conftest.er1
16592   ac_status=$?
16593   grep -v '^ *+' conftest.er1 >conftest.err
16594   rm -f conftest.er1
16595   cat conftest.err >&5
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); } &&
16598          { ac_try='test -z "$ac_c_werror_flag"
16599                          || test ! -s conftest.err'
16600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601   (eval $ac_try) 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); }; } &&
16605          { ac_try='test -s conftest.$ac_objext'
16606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607   (eval $ac_try) 2>&5
16608   ac_status=$?
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); }; }; then
16611   ac_cv_member_struct_reg_r_gs=yes
16612 else
16613   echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16615
16616 cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622 #include <machine/reg.h>
16623
16624 int
16625 main ()
16626 {
16627 static struct reg ac_aggr;
16628 if (sizeof ac_aggr.r_gs)
16629 return 0;
16630   ;
16631   return 0;
16632 }
16633 _ACEOF
16634 rm -f conftest.$ac_objext
16635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16636   (eval $ac_compile) 2>conftest.er1
16637   ac_status=$?
16638   grep -v '^ *+' conftest.er1 >conftest.err
16639   rm -f conftest.er1
16640   cat conftest.err >&5
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); } &&
16643          { ac_try='test -z "$ac_c_werror_flag"
16644                          || test ! -s conftest.err'
16645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16646   (eval $ac_try) 2>&5
16647   ac_status=$?
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); }; } &&
16650          { ac_try='test -s conftest.$ac_objext'
16651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652   (eval $ac_try) 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; }; then
16656   ac_cv_member_struct_reg_r_gs=yes
16657 else
16658   echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661 ac_cv_member_struct_reg_r_gs=no
16662 fi
16663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16664 fi
16665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16666 fi
16667 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
16668 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
16669 if test $ac_cv_member_struct_reg_r_gs = yes; then
16670
16671 cat >>confdefs.h <<_ACEOF
16672 #define HAVE_STRUCT_REG_R_GS 1
16673 _ACEOF
16674
16675
16676 fi
16677
16678
16679 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16680 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16681 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
16682 if test "${gdb_cv_have_ptrace_getregs+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 #include <sys/ptrace.h>
16692 int
16693 main ()
16694 {
16695 PTRACE_GETREGS;
16696   ;
16697   return 0;
16698 }
16699 _ACEOF
16700 rm -f conftest.$ac_objext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702   (eval $ac_compile) 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } &&
16709          { ac_try='test -z "$ac_c_werror_flag"
16710                          || test ! -s conftest.err'
16711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712   (eval $ac_try) 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); }; } &&
16716          { ac_try='test -s conftest.$ac_objext'
16717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718   (eval $ac_try) 2>&5
16719   ac_status=$?
16720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721   (exit $ac_status); }; }; then
16722   gdb_cv_have_ptrace_getregs=yes
16723 else
16724   echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.$ac_ext >&5
16726
16727 gdb_cv_have_ptrace_getregs=no
16728 fi
16729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16730 fi
16731
16732 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16733 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
16734 if test $gdb_cv_have_ptrace_getregs = yes; then
16735
16736 cat >>confdefs.h <<\_ACEOF
16737 #define HAVE_PTRACE_GETREGS 1
16738 _ACEOF
16739
16740 fi
16741
16742 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16743 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16744 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
16745 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16746   echo $ECHO_N "(cached) $ECHO_C" >&6
16747 else
16748   cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h.  */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h.  */
16754 #include <sys/ptrace.h>
16755 int
16756 main ()
16757 {
16758 PTRACE_GETFPXREGS;
16759   ;
16760   return 0;
16761 }
16762 _ACEOF
16763 rm -f conftest.$ac_objext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16765   (eval $ac_compile) 2>conftest.er1
16766   ac_status=$?
16767   grep -v '^ *+' conftest.er1 >conftest.err
16768   rm -f conftest.er1
16769   cat conftest.err >&5
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -z "$ac_c_werror_flag"
16773                          || test ! -s conftest.err'
16774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775   (eval $ac_try) 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); }; } &&
16779          { ac_try='test -s conftest.$ac_objext'
16780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781   (eval $ac_try) 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }; }; then
16785   gdb_cv_have_ptrace_getfpxregs=yes
16786 else
16787   echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790 gdb_cv_have_ptrace_getfpxregs=no
16791 fi
16792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16793 fi
16794
16795 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16796 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
16797 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
16798
16799 cat >>confdefs.h <<\_ACEOF
16800 #define HAVE_PTRACE_GETFPXREGS 1
16801 _ACEOF
16802
16803 fi
16804
16805 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16806 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
16807 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
16808 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
16809   echo $ECHO_N "(cached) $ECHO_C" >&6
16810 else
16811   cat >conftest.$ac_ext <<_ACEOF
16812 /* confdefs.h.  */
16813 _ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h.  */
16817 #include <sys/types.h>
16818 #include <sys/ptrace.h>
16819 int
16820 main ()
16821 {
16822 PT_GETDBREGS;
16823   ;
16824   return 0;
16825 }
16826 _ACEOF
16827 rm -f conftest.$ac_objext
16828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16829   (eval $ac_compile) 2>conftest.er1
16830   ac_status=$?
16831   grep -v '^ *+' conftest.er1 >conftest.err
16832   rm -f conftest.er1
16833   cat conftest.err >&5
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); } &&
16836          { ac_try='test -z "$ac_c_werror_flag"
16837                          || test ! -s conftest.err'
16838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839   (eval $ac_try) 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; } &&
16843          { ac_try='test -s conftest.$ac_objext'
16844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845   (eval $ac_try) 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); }; }; then
16849   gdb_cv_have_pt_getdbregs=yes
16850 else
16851   echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16853
16854 gdb_cv_have_pt_getdbregs=no
16855 fi
16856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16857 fi
16858
16859 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
16860 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
16861 if test $gdb_cv_have_pt_getdbregs = yes; then
16862
16863 cat >>confdefs.h <<\_ACEOF
16864 #define HAVE_PT_GETDBREGS 1
16865 _ACEOF
16866
16867 fi
16868
16869 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16870 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
16871 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
16872 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
16873   echo $ECHO_N "(cached) $ECHO_C" >&6
16874 else
16875   cat >conftest.$ac_ext <<_ACEOF
16876 /* confdefs.h.  */
16877 _ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h.  */
16881 #include <sys/types.h>
16882 #include <sys/ptrace.h>
16883 int
16884 main ()
16885 {
16886 PT_GETXMMREGS;
16887   ;
16888   return 0;
16889 }
16890 _ACEOF
16891 rm -f conftest.$ac_objext
16892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16893   (eval $ac_compile) 2>conftest.er1
16894   ac_status=$?
16895   grep -v '^ *+' conftest.er1 >conftest.err
16896   rm -f conftest.er1
16897   cat conftest.err >&5
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); } &&
16900          { ac_try='test -z "$ac_c_werror_flag"
16901                          || test ! -s conftest.err'
16902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903   (eval $ac_try) 2>&5
16904   ac_status=$?
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); }; } &&
16907          { ac_try='test -s conftest.$ac_objext'
16908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909   (eval $ac_try) 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; }; then
16913   gdb_cv_have_pt_getxmmregs=yes
16914 else
16915   echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918 gdb_cv_have_pt_getxmmregs=no
16919 fi
16920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16921 fi
16922
16923 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
16924 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
16925 if test $gdb_cv_have_pt_getxmmregs = yes; then
16926
16927 cat >>confdefs.h <<\_ACEOF
16928 #define HAVE_PT_GETXMMREGS 1
16929 _ACEOF
16930
16931 fi
16932
16933 # Detect which type of /proc is in use, such as for Unixware or Solaris.
16934
16935 if test "${target}" = "${host}"; then
16936   case "${host}" in
16937   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
16938
16939 cat >>confdefs.h <<\_ACEOF
16940 #define NEW_PROC_API 1
16941 _ACEOF
16942
16943       ;;
16944   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
16945
16946 cat >>confdefs.h <<\_ACEOF
16947 #define NEW_PROC_API 1
16948 _ACEOF
16949
16950       ;;
16951   mips-sgi-irix5*)
16952       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
16953
16954 cat >>confdefs.h <<\_ACEOF
16955 #define _KMEMUSER 1
16956 _ACEOF
16957
16958       ;;
16959   esac
16960 fi
16961
16962 if test "$ac_cv_header_sys_procfs_h" = yes; then
16963   echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
16964 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
16965  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
16966   echo $ECHO_N "(cached) $ECHO_C" >&6
16967 else
16968   cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974
16975 #define _SYSCALL32
16976 #include <sys/procfs.h>
16977 int
16978 main ()
16979 {
16980 pstatus_t avar
16981   ;
16982   return 0;
16983 }
16984 _ACEOF
16985 rm -f conftest.$ac_objext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16987   (eval $ac_compile) 2>conftest.er1
16988   ac_status=$?
16989   grep -v '^ *+' conftest.er1 >conftest.err
16990   rm -f conftest.er1
16991   cat conftest.err >&5
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } &&
16994          { ac_try='test -z "$ac_c_werror_flag"
16995                          || test ! -s conftest.err'
16996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997   (eval $ac_try) 2>&5
16998   ac_status=$?
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); }; } &&
17001          { ac_try='test -s conftest.$ac_objext'
17002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003   (eval $ac_try) 2>&5
17004   ac_status=$?
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); }; }; then
17007   bfd_cv_have_sys_procfs_type_pstatus_t=yes
17008 else
17009   echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012 bfd_cv_have_sys_procfs_type_pstatus_t=no
17013
17014 fi
17015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17016 fi
17017
17018  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17019
17020 cat >>confdefs.h <<\_ACEOF
17021 #define HAVE_PSTATUS_T 1
17022 _ACEOF
17023
17024  fi
17025  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17026 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17027
17028   echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17029 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17030  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17031   echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033   cat >conftest.$ac_ext <<_ACEOF
17034 /* confdefs.h.  */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h.  */
17039
17040 #define _SYSCALL32
17041 #include <sys/procfs.h>
17042 int
17043 main ()
17044 {
17045 prrun_t avar
17046   ;
17047   return 0;
17048 }
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052   (eval $ac_compile) 2>conftest.er1
17053   ac_status=$?
17054   grep -v '^ *+' conftest.er1 >conftest.err
17055   rm -f conftest.er1
17056   cat conftest.err >&5
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); } &&
17059          { ac_try='test -z "$ac_c_werror_flag"
17060                          || test ! -s conftest.err'
17061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062   (eval $ac_try) 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; } &&
17066          { ac_try='test -s conftest.$ac_objext'
17067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068   (eval $ac_try) 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; }; then
17072   bfd_cv_have_sys_procfs_type_prrun_t=yes
17073 else
17074   echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17076
17077 bfd_cv_have_sys_procfs_type_prrun_t=no
17078
17079 fi
17080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081 fi
17082
17083  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17084
17085 cat >>confdefs.h <<\_ACEOF
17086 #define HAVE_PRRUN_T 1
17087 _ACEOF
17088
17089  fi
17090  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17091 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17092
17093   echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17094 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17095  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17096   echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098   cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h.  */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h.  */
17104
17105 #define _SYSCALL32
17106 #include <sys/procfs.h>
17107 int
17108 main ()
17109 {
17110 gregset_t avar
17111   ;
17112   return 0;
17113 }
17114 _ACEOF
17115 rm -f conftest.$ac_objext
17116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17117   (eval $ac_compile) 2>conftest.er1
17118   ac_status=$?
17119   grep -v '^ *+' conftest.er1 >conftest.err
17120   rm -f conftest.er1
17121   cat conftest.err >&5
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); } &&
17124          { ac_try='test -z "$ac_c_werror_flag"
17125                          || test ! -s conftest.err'
17126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127   (eval $ac_try) 2>&5
17128   ac_status=$?
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); }; } &&
17131          { ac_try='test -s conftest.$ac_objext'
17132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133   (eval $ac_try) 2>&5
17134   ac_status=$?
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); }; }; then
17137   bfd_cv_have_sys_procfs_type_gregset_t=yes
17138 else
17139   echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17141
17142 bfd_cv_have_sys_procfs_type_gregset_t=no
17143
17144 fi
17145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17146 fi
17147
17148  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17149
17150 cat >>confdefs.h <<\_ACEOF
17151 #define HAVE_GREGSET_T 1
17152 _ACEOF
17153
17154  fi
17155  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17156 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17157
17158   echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17159 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17160  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163   cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169
17170 #define _SYSCALL32
17171 #include <sys/procfs.h>
17172 int
17173 main ()
17174 {
17175 fpregset_t avar
17176   ;
17177   return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext
17181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182   (eval $ac_compile) 2>conftest.er1
17183   ac_status=$?
17184   grep -v '^ *+' conftest.er1 >conftest.err
17185   rm -f conftest.er1
17186   cat conftest.err >&5
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); } &&
17189          { ac_try='test -z "$ac_c_werror_flag"
17190                          || test ! -s conftest.err'
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); }; } &&
17196          { ac_try='test -s conftest.$ac_objext'
17197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198   (eval $ac_try) 2>&5
17199   ac_status=$?
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); }; }; then
17202   bfd_cv_have_sys_procfs_type_fpregset_t=yes
17203 else
17204   echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 bfd_cv_have_sys_procfs_type_fpregset_t=no
17208
17209 fi
17210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17211 fi
17212
17213  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17214
17215 cat >>confdefs.h <<\_ACEOF
17216 #define HAVE_FPREGSET_T 1
17217 _ACEOF
17218
17219  fi
17220  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17221 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17222
17223   echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17224 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17225  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17226   echo $ECHO_N "(cached) $ECHO_C" >&6
17227 else
17228   cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h.  */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h.  */
17234
17235 #define _SYSCALL32
17236 #include <sys/procfs.h>
17237 int
17238 main ()
17239 {
17240 prgregset_t avar
17241   ;
17242   return 0;
17243 }
17244 _ACEOF
17245 rm -f conftest.$ac_objext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247   (eval $ac_compile) 2>conftest.er1
17248   ac_status=$?
17249   grep -v '^ *+' conftest.er1 >conftest.err
17250   rm -f conftest.er1
17251   cat conftest.err >&5
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); } &&
17254          { ac_try='test -z "$ac_c_werror_flag"
17255                          || test ! -s conftest.err'
17256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257   (eval $ac_try) 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; } &&
17261          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17267   bfd_cv_have_sys_procfs_type_prgregset_t=yes
17268 else
17269   echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272 bfd_cv_have_sys_procfs_type_prgregset_t=no
17273
17274 fi
17275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17276 fi
17277
17278  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17279
17280 cat >>confdefs.h <<\_ACEOF
17281 #define HAVE_PRGREGSET_T 1
17282 _ACEOF
17283
17284  fi
17285  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17286 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17287
17288   echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17289 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17290  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17291   echo $ECHO_N "(cached) $ECHO_C" >&6
17292 else
17293   cat >conftest.$ac_ext <<_ACEOF
17294 /* confdefs.h.  */
17295 _ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h.  */
17299
17300 #define _SYSCALL32
17301 #include <sys/procfs.h>
17302 int
17303 main ()
17304 {
17305 prfpregset_t avar
17306   ;
17307   return 0;
17308 }
17309 _ACEOF
17310 rm -f conftest.$ac_objext
17311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17312   (eval $ac_compile) 2>conftest.er1
17313   ac_status=$?
17314   grep -v '^ *+' conftest.er1 >conftest.err
17315   rm -f conftest.er1
17316   cat conftest.err >&5
17317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318   (exit $ac_status); } &&
17319          { ac_try='test -z "$ac_c_werror_flag"
17320                          || test ! -s conftest.err'
17321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322   (eval $ac_try) 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); }; } &&
17326          { ac_try='test -s conftest.$ac_objext'
17327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328   (eval $ac_try) 2>&5
17329   ac_status=$?
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); }; }; then
17332   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17333 else
17334   echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17336
17337 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17338
17339 fi
17340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17341 fi
17342
17343  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17344
17345 cat >>confdefs.h <<\_ACEOF
17346 #define HAVE_PRFPREGSET_T 1
17347 _ACEOF
17348
17349  fi
17350  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17351 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17352
17353   echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17354 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17355  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17356   echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358   cat >conftest.$ac_ext <<_ACEOF
17359 /* confdefs.h.  */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h.  */
17364
17365 #define _SYSCALL32
17366 #include <sys/procfs.h>
17367 int
17368 main ()
17369 {
17370 prgregset32_t avar
17371   ;
17372   return 0;
17373 }
17374 _ACEOF
17375 rm -f conftest.$ac_objext
17376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17377   (eval $ac_compile) 2>conftest.er1
17378   ac_status=$?
17379   grep -v '^ *+' conftest.er1 >conftest.err
17380   rm -f conftest.er1
17381   cat conftest.err >&5
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); } &&
17384          { ac_try='test -z "$ac_c_werror_flag"
17385                          || test ! -s conftest.err'
17386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387   (eval $ac_try) 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); }; } &&
17391          { ac_try='test -s conftest.$ac_objext'
17392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393   (eval $ac_try) 2>&5
17394   ac_status=$?
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); }; }; then
17397   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17398 else
17399   echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17401
17402 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17403
17404 fi
17405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17406 fi
17407
17408  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17409
17410 cat >>confdefs.h <<\_ACEOF
17411 #define HAVE_PRGREGSET32_T 1
17412 _ACEOF
17413
17414  fi
17415  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17416 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17417
17418   echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17419 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17420  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17421   echo $ECHO_N "(cached) $ECHO_C" >&6
17422 else
17423   cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h.  */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h.  */
17429
17430 #define _SYSCALL32
17431 #include <sys/procfs.h>
17432 int
17433 main ()
17434 {
17435 prfpregset32_t avar
17436   ;
17437   return 0;
17438 }
17439 _ACEOF
17440 rm -f conftest.$ac_objext
17441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17442   (eval $ac_compile) 2>conftest.er1
17443   ac_status=$?
17444   grep -v '^ *+' conftest.er1 >conftest.err
17445   rm -f conftest.er1
17446   cat conftest.err >&5
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); } &&
17449          { ac_try='test -z "$ac_c_werror_flag"
17450                          || test ! -s conftest.err'
17451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452   (eval $ac_try) 2>&5
17453   ac_status=$?
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); }; } &&
17456          { ac_try='test -s conftest.$ac_objext'
17457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458   (eval $ac_try) 2>&5
17459   ac_status=$?
17460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461   (exit $ac_status); }; }; then
17462   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17463 else
17464   echo "$as_me: failed program was:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17466
17467 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17468
17469 fi
17470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17471 fi
17472
17473  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17474
17475 cat >>confdefs.h <<\_ACEOF
17476 #define HAVE_PRFPREGSET32_T 1
17477 _ACEOF
17478
17479  fi
17480  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17481 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17482
17483   echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17484 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17485  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17486   echo $ECHO_N "(cached) $ECHO_C" >&6
17487 else
17488   cat >conftest.$ac_ext <<_ACEOF
17489 /* confdefs.h.  */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h.  */
17494
17495 #define _SYSCALL32
17496 #include <sys/procfs.h>
17497 int
17498 main ()
17499 {
17500 lwpid_t avar
17501   ;
17502   return 0;
17503 }
17504 _ACEOF
17505 rm -f conftest.$ac_objext
17506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17507   (eval $ac_compile) 2>conftest.er1
17508   ac_status=$?
17509   grep -v '^ *+' conftest.er1 >conftest.err
17510   rm -f conftest.er1
17511   cat conftest.err >&5
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); } &&
17514          { ac_try='test -z "$ac_c_werror_flag"
17515                          || test ! -s conftest.err'
17516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517   (eval $ac_try) 2>&5
17518   ac_status=$?
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); }; } &&
17521          { ac_try='test -s conftest.$ac_objext'
17522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523   (eval $ac_try) 2>&5
17524   ac_status=$?
17525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526   (exit $ac_status); }; }; then
17527   bfd_cv_have_sys_procfs_type_lwpid_t=yes
17528 else
17529   echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17531
17532 bfd_cv_have_sys_procfs_type_lwpid_t=no
17533
17534 fi
17535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17536 fi
17537
17538  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17539
17540 cat >>confdefs.h <<\_ACEOF
17541 #define HAVE_LWPID_T 1
17542 _ACEOF
17543
17544  fi
17545  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17546 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17547
17548   echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17549 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17550  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17551   echo $ECHO_N "(cached) $ECHO_C" >&6
17552 else
17553   cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h.  */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h.  */
17559
17560 #define _SYSCALL32
17561 #include <sys/procfs.h>
17562 int
17563 main ()
17564 {
17565 psaddr_t avar
17566   ;
17567   return 0;
17568 }
17569 _ACEOF
17570 rm -f conftest.$ac_objext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17572   (eval $ac_compile) 2>conftest.er1
17573   ac_status=$?
17574   grep -v '^ *+' conftest.er1 >conftest.err
17575   rm -f conftest.er1
17576   cat conftest.err >&5
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); } &&
17579          { ac_try='test -z "$ac_c_werror_flag"
17580                          || test ! -s conftest.err'
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); }; } &&
17586          { ac_try='test -s conftest.$ac_objext'
17587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588   (eval $ac_try) 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; }; then
17592   bfd_cv_have_sys_procfs_type_psaddr_t=yes
17593 else
17594   echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17596
17597 bfd_cv_have_sys_procfs_type_psaddr_t=no
17598
17599 fi
17600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17601 fi
17602
17603  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
17604
17605 cat >>confdefs.h <<\_ACEOF
17606 #define HAVE_PSADDR_T 1
17607 _ACEOF
17608
17609  fi
17610  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
17611 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
17612
17613   echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
17614 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
17615  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
17616   echo $ECHO_N "(cached) $ECHO_C" >&6
17617 else
17618   cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h.  */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h.  */
17624
17625 #define _SYSCALL32
17626 #include <sys/procfs.h>
17627 int
17628 main ()
17629 {
17630 prsysent_t avar
17631   ;
17632   return 0;
17633 }
17634 _ACEOF
17635 rm -f conftest.$ac_objext
17636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17637   (eval $ac_compile) 2>conftest.er1
17638   ac_status=$?
17639   grep -v '^ *+' conftest.er1 >conftest.err
17640   rm -f conftest.er1
17641   cat conftest.err >&5
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); } &&
17644          { ac_try='test -z "$ac_c_werror_flag"
17645                          || test ! -s conftest.err'
17646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647   (eval $ac_try) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; } &&
17651          { ac_try='test -s conftest.$ac_objext'
17652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653   (eval $ac_try) 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; }; then
17657   bfd_cv_have_sys_procfs_type_prsysent_t=yes
17658 else
17659   echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662 bfd_cv_have_sys_procfs_type_prsysent_t=no
17663
17664 fi
17665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17666 fi
17667
17668  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
17669
17670 cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_PRSYSENT_T 1
17672 _ACEOF
17673
17674  fi
17675  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
17676 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
17677
17678   echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
17679 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
17680  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
17681   echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683   cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17689
17690 #define _SYSCALL32
17691 #include <sys/procfs.h>
17692 int
17693 main ()
17694 {
17695 pr_sigset_t avar
17696   ;
17697   return 0;
17698 }
17699 _ACEOF
17700 rm -f conftest.$ac_objext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17702   (eval $ac_compile) 2>conftest.er1
17703   ac_status=$?
17704   grep -v '^ *+' conftest.er1 >conftest.err
17705   rm -f conftest.er1
17706   cat conftest.err >&5
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); } &&
17709          { ac_try='test -z "$ac_c_werror_flag"
17710                          || test ! -s conftest.err'
17711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712   (eval $ac_try) 2>&5
17713   ac_status=$?
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); }; } &&
17716          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17722   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
17723 else
17724   echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
17728
17729 fi
17730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17731 fi
17732
17733  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
17734
17735 cat >>confdefs.h <<\_ACEOF
17736 #define HAVE_PR_SIGSET_T 1
17737 _ACEOF
17738
17739  fi
17740  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
17741 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
17742
17743   echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
17744 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
17745  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
17746   echo $ECHO_N "(cached) $ECHO_C" >&6
17747 else
17748   cat >conftest.$ac_ext <<_ACEOF
17749 /* confdefs.h.  */
17750 _ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h.  */
17754
17755 #define _SYSCALL32
17756 #include <sys/procfs.h>
17757 int
17758 main ()
17759 {
17760 pr_sigaction64_t avar
17761   ;
17762   return 0;
17763 }
17764 _ACEOF
17765 rm -f conftest.$ac_objext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17767   (eval $ac_compile) 2>conftest.er1
17768   ac_status=$?
17769   grep -v '^ *+' conftest.er1 >conftest.err
17770   rm -f conftest.er1
17771   cat conftest.err >&5
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); } &&
17774          { ac_try='test -z "$ac_c_werror_flag"
17775                          || test ! -s conftest.err'
17776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777   (eval $ac_try) 2>&5
17778   ac_status=$?
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); }; } &&
17781          { ac_try='test -s conftest.$ac_objext'
17782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783   (eval $ac_try) 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); }; }; then
17787   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
17788 else
17789   echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17791
17792 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
17793
17794 fi
17795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17796 fi
17797
17798  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
17799
17800 cat >>confdefs.h <<\_ACEOF
17801 #define HAVE_PR_SIGACTION64_T 1
17802 _ACEOF
17803
17804  fi
17805  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
17806 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
17807
17808   echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
17809 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
17810  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
17811   echo $ECHO_N "(cached) $ECHO_C" >&6
17812 else
17813   cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h.  */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h.  */
17819
17820 #define _SYSCALL32
17821 #include <sys/procfs.h>
17822 int
17823 main ()
17824 {
17825 pr_siginfo64_t avar
17826   ;
17827   return 0;
17828 }
17829 _ACEOF
17830 rm -f conftest.$ac_objext
17831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17832   (eval $ac_compile) 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } &&
17839          { ac_try='test -z "$ac_c_werror_flag"
17840                          || test ! -s conftest.err'
17841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842   (eval $ac_try) 2>&5
17843   ac_status=$?
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); }; } &&
17846          { ac_try='test -s conftest.$ac_objext'
17847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848   (eval $ac_try) 2>&5
17849   ac_status=$?
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); }; }; then
17852   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
17853 else
17854   echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17856
17857 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
17858
17859 fi
17860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17861 fi
17862
17863  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
17864
17865 cat >>confdefs.h <<\_ACEOF
17866 #define HAVE_PR_SIGINFO64_T 1
17867 _ACEOF
17868
17869  fi
17870  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
17871 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
17872
17873
17874
17875
17876
17877   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17878     echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
17879 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
17880     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
17881   echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883   if test "$cross_compiling" = yes; then
17884   gdb_cv_prfpregset_t_broken=yes
17885 else
17886   cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h.  */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h.  */
17892 #include <sys/procfs.h>
17893        int main ()
17894        {
17895          if (sizeof (prfpregset_t) == sizeof (void *))
17896            return 1;
17897          return 0;
17898        }
17899 _ACEOF
17900 rm -f conftest$ac_exeext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17902   (eval $ac_link) 2>&5
17903   ac_status=$?
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907   (eval $ac_try) 2>&5
17908   ac_status=$?
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); }; }; then
17911   gdb_cv_prfpregset_t_broken=no
17912 else
17913   echo "$as_me: program exited with status $ac_status" >&5
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17916
17917 ( exit $ac_status )
17918 gdb_cv_prfpregset_t_broken=yes
17919 fi
17920 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17921 fi
17922 fi
17923
17924     echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
17925 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
17926     if test $gdb_cv_prfpregset_t_broken = yes; then
17927
17928 cat >>confdefs.h <<\_ACEOF
17929 #define PRFPREGSET_T_BROKEN 1
17930 _ACEOF
17931
17932     fi
17933   fi
17934
17935
17936   echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
17937 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
17938   if test "${gdb_cv_have_procfs_piocset+set}" = set; then
17939   echo $ECHO_N "(cached) $ECHO_C" >&6
17940 else
17941   cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h.  */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h.  */
17947 #include <unistd.h>
17948 #include <sys/types.h>
17949 #include <sys/procfs.h>
17950
17951 int
17952 main ()
17953 {
17954
17955     int dummy;;
17956     dummy = ioctl(0, PIOCSET, &dummy);
17957
17958   ;
17959   return 0;
17960 }
17961 _ACEOF
17962 rm -f conftest.$ac_objext
17963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17964   (eval $ac_compile) 2>conftest.er1
17965   ac_status=$?
17966   grep -v '^ *+' conftest.er1 >conftest.err
17967   rm -f conftest.er1
17968   cat conftest.err >&5
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); } &&
17971          { ac_try='test -z "$ac_c_werror_flag"
17972                          || test ! -s conftest.err'
17973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974   (eval $ac_try) 2>&5
17975   ac_status=$?
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); }; } &&
17978          { ac_try='test -s conftest.$ac_objext'
17979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980   (eval $ac_try) 2>&5
17981   ac_status=$?
17982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); }; }; then
17984   gdb_cv_have_procfs_piocset=yes
17985 else
17986   echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17988
17989 gdb_cv_have_procfs_piocset=no
17990 fi
17991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17992 fi
17993
17994   echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
17995 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
17996   if test $gdb_cv_have_procfs_piocset = yes; then
17997
17998 cat >>confdefs.h <<\_ACEOF
17999 #define HAVE_PROCFS_PIOCSET 1
18000 _ACEOF
18001
18002   fi
18003 fi
18004
18005 if test ${host} = ${target} ; then
18006
18007   echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18008 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18009   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18010   echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012   cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h.  */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h.  */
18018 #include <link.h>
18019 int
18020 main ()
18021 {
18022 struct link_map lm; (void) lm.l_addr;
18023   ;
18024   return 0;
18025 }
18026 _ACEOF
18027 rm -f conftest.$ac_objext
18028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18029   (eval $ac_compile) 2>conftest.er1
18030   ac_status=$?
18031   grep -v '^ *+' conftest.er1 >conftest.err
18032   rm -f conftest.er1
18033   cat conftest.err >&5
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); } &&
18036          { ac_try='test -z "$ac_c_werror_flag"
18037                          || test ! -s conftest.err'
18038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039   (eval $ac_try) 2>&5
18040   ac_status=$?
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); }; } &&
18043          { ac_try='test -s conftest.$ac_objext'
18044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045   (eval $ac_try) 2>&5
18046   ac_status=$?
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); }; }; then
18049   gdb_cv_have_struct_link_map_with_l_members=yes
18050 else
18051   echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18053
18054 gdb_cv_have_struct_link_map_with_l_members=no
18055 fi
18056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18057 fi
18058
18059   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18060 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18061   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18062
18063 cat >>confdefs.h <<\_ACEOF
18064 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18065 _ACEOF
18066
18067   fi
18068
18069
18070   echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18071 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18072   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18073   echo $ECHO_N "(cached) $ECHO_C" >&6
18074 else
18075   cat >conftest.$ac_ext <<_ACEOF
18076 /* confdefs.h.  */
18077 _ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h.  */
18081 #include <sys/types.h>
18082 #include <link.h>
18083 int
18084 main ()
18085 {
18086 struct link_map lm; (void) lm.lm_addr;
18087   ;
18088   return 0;
18089 }
18090 _ACEOF
18091 rm -f conftest.$ac_objext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18093   (eval $ac_compile) 2>conftest.er1
18094   ac_status=$?
18095   grep -v '^ *+' conftest.er1 >conftest.err
18096   rm -f conftest.er1
18097   cat conftest.err >&5
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } &&
18100          { ac_try='test -z "$ac_c_werror_flag"
18101                          || test ! -s conftest.err'
18102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103   (eval $ac_try) 2>&5
18104   ac_status=$?
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); }; } &&
18107          { ac_try='test -s conftest.$ac_objext'
18108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109   (eval $ac_try) 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); }; }; then
18113   gdb_cv_have_struct_link_map_with_lm_members=yes
18114 else
18115   echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18117
18118 gdb_cv_have_struct_link_map_with_lm_members=no
18119 fi
18120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18121 fi
18122
18123   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18124 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18125   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18126
18127 cat >>confdefs.h <<\_ACEOF
18128 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18129 _ACEOF
18130
18131   fi
18132
18133
18134   echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18135 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18136   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18137   echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139   cat >conftest.$ac_ext <<_ACEOF
18140 /* confdefs.h.  */
18141 _ACEOF
18142 cat confdefs.h >>conftest.$ac_ext
18143 cat >>conftest.$ac_ext <<_ACEOF
18144 /* end confdefs.h.  */
18145 #include <sys/types.h>
18146 #ifdef HAVE_NLIST_H
18147 #include <nlist.h>
18148 #endif
18149 #include <link.h>
18150 int
18151 main ()
18152 {
18153 struct so_map lm; (void) lm.som_addr;
18154   ;
18155   return 0;
18156 }
18157 _ACEOF
18158 rm -f conftest.$ac_objext
18159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18160   (eval $ac_compile) 2>conftest.er1
18161   ac_status=$?
18162   grep -v '^ *+' conftest.er1 >conftest.err
18163   rm -f conftest.er1
18164   cat conftest.err >&5
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); } &&
18167          { ac_try='test -z "$ac_c_werror_flag"
18168                          || test ! -s conftest.err'
18169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170   (eval $ac_try) 2>&5
18171   ac_status=$?
18172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173   (exit $ac_status); }; } &&
18174          { ac_try='test -s conftest.$ac_objext'
18175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176   (eval $ac_try) 2>&5
18177   ac_status=$?
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); }; }; then
18180   gdb_cv_have_struct_so_map_with_som_members=yes
18181 else
18182   echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185 gdb_cv_have_struct_so_map_with_som_members=no
18186 fi
18187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18188 fi
18189
18190   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18191 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18192   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18193
18194 cat >>confdefs.h <<\_ACEOF
18195 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18196 _ACEOF
18197
18198   fi
18199
18200
18201   echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18202 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18203   if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18204   echo $ECHO_N "(cached) $ECHO_C" >&6
18205 else
18206   cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h.  */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h.  */
18212 #define _SYSCALL32
18213 #include <sys/link.h>
18214 int
18215 main ()
18216 {
18217 struct link_map32 l;
18218   ;
18219   return 0;
18220 }
18221 _ACEOF
18222 rm -f conftest.$ac_objext
18223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18224   (eval $ac_compile) 2>conftest.er1
18225   ac_status=$?
18226   grep -v '^ *+' conftest.er1 >conftest.err
18227   rm -f conftest.er1
18228   cat conftest.err >&5
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); } &&
18231          { ac_try='test -z "$ac_c_werror_flag"
18232                          || test ! -s conftest.err'
18233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234   (eval $ac_try) 2>&5
18235   ac_status=$?
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); }; } &&
18238          { ac_try='test -s conftest.$ac_objext'
18239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240   (eval $ac_try) 2>&5
18241   ac_status=$?
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); }; }; then
18244   gdb_cv_have_struct_link_map32=yes
18245 else
18246   echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18248
18249 gdb_cv_have_struct_link_map32=no
18250 fi
18251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18252 fi
18253
18254   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18255 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18256   if test $gdb_cv_have_struct_link_map32 = yes; then
18257
18258 cat >>confdefs.h <<\_ACEOF
18259 #define HAVE_STRUCT_LINK_MAP32 1
18260 _ACEOF
18261
18262
18263 cat >>confdefs.h <<\_ACEOF
18264 #define _SYSCALL32 1
18265 _ACEOF
18266
18267   fi
18268 fi
18269
18270 # Check if the compiler supports the `long long' type.
18271
18272 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18273 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18274 if test "${gdb_cv_c_long_long+set}" = set; then
18275   echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277   cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h.  */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h.  */
18283 extern long long foo;
18284 int
18285 main ()
18286 {
18287 switch (foo & 2) { case 0: return 1; }
18288   ;
18289   return 0;
18290 }
18291 _ACEOF
18292 rm -f conftest.$ac_objext
18293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18294   (eval $ac_compile) 2>conftest.er1
18295   ac_status=$?
18296   grep -v '^ *+' conftest.er1 >conftest.err
18297   rm -f conftest.er1
18298   cat conftest.err >&5
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); } &&
18301          { ac_try='test -z "$ac_c_werror_flag"
18302                          || test ! -s conftest.err'
18303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304   (eval $ac_try) 2>&5
18305   ac_status=$?
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); }; } &&
18308          { ac_try='test -s conftest.$ac_objext'
18309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310   (eval $ac_try) 2>&5
18311   ac_status=$?
18312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313   (exit $ac_status); }; }; then
18314   gdb_cv_c_long_long=yes
18315 else
18316   echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18318
18319 gdb_cv_c_long_long=no
18320 fi
18321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18322 fi
18323 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18324 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18325 if test $gdb_cv_c_long_long = yes; then
18326
18327 cat >>confdefs.h <<\_ACEOF
18328 #define CC_HAS_LONG_LONG 1
18329 _ACEOF
18330
18331 fi
18332
18333 # Check if the compiler and runtime support printing long longs.
18334
18335 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18336 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18337 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18338   echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340   if test "$cross_compiling" = yes; then
18341   gdb_cv_printf_has_long_long=no
18342 else
18343   cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h.  */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h.  */
18349 $ac_includes_default
18350 int
18351 main ()
18352 {
18353 char buf[32];
18354   long long l = 0;
18355   l = (l << 16) + 0x0123;
18356   l = (l << 16) + 0x4567;
18357   l = (l << 16) + 0x89ab;
18358   l = (l << 16) + 0xcdef;
18359   sprintf (buf, "0x%016llx", l);
18360   return (strcmp ("0x0123456789abcdef", buf));
18361   ;
18362   return 0;
18363 }
18364 _ACEOF
18365 rm -f conftest$ac_exeext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367   (eval $ac_link) 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372   (eval $ac_try) 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; }; then
18376   gdb_cv_printf_has_long_long=yes
18377 else
18378   echo "$as_me: program exited with status $ac_status" >&5
18379 echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18381
18382 ( exit $ac_status )
18383 gdb_cv_printf_has_long_long=no
18384 fi
18385 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18386 fi
18387 fi
18388 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18389 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18390 if test $gdb_cv_printf_has_long_long = yes; then
18391
18392 cat >>confdefs.h <<\_ACEOF
18393 #define PRINTF_HAS_LONG_LONG 1
18394 _ACEOF
18395
18396 fi
18397
18398 # Check if the compiler and runtime support printing decfloats.
18399
18400 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18401 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18402 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18403   echo $ECHO_N "(cached) $ECHO_C" >&6
18404 else
18405   if test "$cross_compiling" = yes; then
18406   gdb_cv_printf_has_decfloat=no
18407 else
18408   cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h.  */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h.  */
18414 $ac_includes_default
18415 int
18416 main ()
18417 {
18418 char buf[64];
18419   _Decimal32 d32 = 1.2345df;
18420   _Decimal64 d64 = 1.2345dd;
18421   _Decimal128 d128 = 1.2345dl;
18422   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18423   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18424   ;
18425   return 0;
18426 }
18427 _ACEOF
18428 rm -f conftest$ac_exeext
18429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18430   (eval $ac_link) 2>&5
18431   ac_status=$?
18432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; }; then
18439   gdb_cv_printf_has_decfloat=yes
18440 else
18441   echo "$as_me: program exited with status $ac_status" >&5
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18444
18445 ( exit $ac_status )
18446 gdb_cv_printf_has_decfloat=no
18447 fi
18448 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18449 fi
18450 fi
18451 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18452 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18453 if test $gdb_cv_printf_has_decfloat = yes; then
18454
18455 cat >>confdefs.h <<\_ACEOF
18456 #define PRINTF_HAS_DECFLOAT 1
18457 _ACEOF
18458
18459 fi
18460
18461 # Check if the compiler supports the `long double' type.  We can't use
18462 # AC_C_LONG_DOUBLE because that one does additional checks on the
18463 # constants defined in <float.h> that fail on some systems,
18464 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18465
18466 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18467 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18468 if test "${gdb_cv_c_long_double+set}" = set; then
18469   echo $ECHO_N "(cached) $ECHO_C" >&6
18470 else
18471   cat >conftest.$ac_ext <<_ACEOF
18472 /* confdefs.h.  */
18473 _ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h.  */
18477 long double foo;
18478 _ACEOF
18479 rm -f conftest.$ac_objext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18481   (eval $ac_compile) 2>conftest.er1
18482   ac_status=$?
18483   grep -v '^ *+' conftest.er1 >conftest.err
18484   rm -f conftest.er1
18485   cat conftest.err >&5
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); } &&
18488          { ac_try='test -z "$ac_c_werror_flag"
18489                          || test ! -s conftest.err'
18490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491   (eval $ac_try) 2>&5
18492   ac_status=$?
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); }; } &&
18495          { ac_try='test -s conftest.$ac_objext'
18496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497   (eval $ac_try) 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; }; then
18501   gdb_cv_c_long_double=yes
18502 else
18503   echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18505
18506 gdb_cv_c_long_double=no
18507 fi
18508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18509 fi
18510 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18511 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18512 if test $gdb_cv_c_long_double = yes; then
18513
18514 cat >>confdefs.h <<\_ACEOF
18515 #define HAVE_LONG_DOUBLE 1
18516 _ACEOF
18517
18518 fi
18519
18520 # Check if the compiler and runtime support printing long doubles.
18521
18522 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18523 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18524 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18525   echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527   if test "$cross_compiling" = yes; then
18528   gdb_cv_printf_has_long_double=no
18529 else
18530   cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h.  */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h.  */
18536 $ac_includes_default
18537 int
18538 main ()
18539 {
18540 char buf[16];
18541   long double f = 3.141592653;
18542   sprintf (buf, "%Lg", f);
18543   return (strncmp ("3.14159", buf, 7));
18544   ;
18545   return 0;
18546 }
18547 _ACEOF
18548 rm -f conftest$ac_exeext
18549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18550   (eval $ac_link) 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555   (eval $ac_try) 2>&5
18556   ac_status=$?
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); }; }; then
18559   gdb_cv_printf_has_long_double=yes
18560 else
18561   echo "$as_me: program exited with status $ac_status" >&5
18562 echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18564
18565 ( exit $ac_status )
18566 gdb_cv_printf_has_long_double=no
18567 fi
18568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18569 fi
18570 fi
18571 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
18572 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
18573 if test $gdb_cv_printf_has_long_double = yes; then
18574
18575 cat >>confdefs.h <<\_ACEOF
18576 #define PRINTF_HAS_LONG_DOUBLE 1
18577 _ACEOF
18578
18579 fi
18580
18581 # Check if the compiler and runtime support scanning long doubles.
18582
18583 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
18584 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
18585 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
18586   echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588   if test "$cross_compiling" = yes; then
18589   gdb_cv_scanf_has_long_double=no
18590 else
18591   cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597 #include <stdio.h>
18598 int
18599 main ()
18600 {
18601 char *buf = "3.141592653";
18602   long double f = 0;
18603   sscanf (buf, "%Lg", &f);
18604   return !(f > 3.14159 && f < 3.14160);
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest$ac_exeext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18611   (eval $ac_link) 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616   (eval $ac_try) 2>&5
18617   ac_status=$?
18618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619   (exit $ac_status); }; }; then
18620   gdb_cv_scanf_has_long_double=yes
18621 else
18622   echo "$as_me: program exited with status $ac_status" >&5
18623 echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18625
18626 ( exit $ac_status )
18627 gdb_cv_scanf_has_long_double=no
18628 fi
18629 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18630 fi
18631 fi
18632 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
18633 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
18634 if test $gdb_cv_scanf_has_long_double = yes; then
18635
18636 cat >>confdefs.h <<\_ACEOF
18637 #define SCANF_HAS_LONG_DOUBLE 1
18638 _ACEOF
18639
18640 fi
18641
18642 case ${host_os} in
18643 aix*)
18644   echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
18645 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
18646 if test "${gdb_cv_bigtoc+set}" = set; then
18647   echo $ECHO_N "(cached) $ECHO_C" >&6
18648 else
18649
18650     SAVE_LDFLAGS=$LDFLAGS
18651
18652     case $GCC in
18653     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
18654     *) gdb_cv_bigtoc=-bbigtoc ;;
18655     esac
18656
18657     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
18658     cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h.  */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h.  */
18664
18665 int
18666 main ()
18667 {
18668 int i;
18669   ;
18670   return 0;
18671 }
18672 _ACEOF
18673 rm -f conftest.$ac_objext conftest$ac_exeext
18674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18675   (eval $ac_link) 2>conftest.er1
18676   ac_status=$?
18677   grep -v '^ *+' conftest.er1 >conftest.err
18678   rm -f conftest.er1
18679   cat conftest.err >&5
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); } &&
18682          { ac_try='test -z "$ac_c_werror_flag"
18683                          || test ! -s conftest.err'
18684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685   (eval $ac_try) 2>&5
18686   ac_status=$?
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); }; } &&
18689          { ac_try='test -s conftest$ac_exeext'
18690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691   (eval $ac_try) 2>&5
18692   ac_status=$?
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); }; }; then
18695   :
18696 else
18697   echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18699
18700 gdb_cv_bigtoc=
18701 fi
18702 rm -f conftest.err conftest.$ac_objext \
18703       conftest$ac_exeext conftest.$ac_ext
18704     LDFLAGS="${SAVE_LDFLAGS}"
18705
18706 fi
18707 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
18708 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
18709   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
18710   ;;
18711 esac
18712
18713
18714
18715 if test ${build} = ${host} -a ${host} = ${target} ; then
18716    case ${host_os} in
18717    hpux*)
18718       echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
18719 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
18720       if test -f /usr/include/dce/cma_config.h ; then
18721          if test "$GCC" = "yes" ; then
18722             echo "$as_me:$LINENO: result: yes" >&5
18723 echo "${ECHO_T}yes" >&6
18724
18725 cat >>confdefs.h <<\_ACEOF
18726 #define HAVE_HPUX_THREAD_SUPPORT 1
18727 _ACEOF
18728
18729             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
18730             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
18731          else
18732             echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
18733 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
18734          fi
18735       else
18736          echo "$as_me:$LINENO: result: no" >&5
18737 echo "${ECHO_T}no" >&6
18738       fi
18739       ;;
18740    solaris*)
18741       # See if thread_db library is around for Solaris thread debugging.
18742       # Note that we must explicitly test for version 1 of the library
18743       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
18744       # the same API.
18745       echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
18746 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
18747       if test -f /usr/lib/libthread_db.so.1 ; then
18748          echo "$as_me:$LINENO: result: yes" >&5
18749 echo "${ECHO_T}yes" >&6
18750
18751 cat >>confdefs.h <<\_ACEOF
18752 #define HAVE_THREAD_DB_LIB 1
18753 _ACEOF
18754
18755          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
18756          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
18757
18758 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18759 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18760 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18761   echo $ECHO_N "(cached) $ECHO_C" >&6
18762 else
18763   ac_check_lib_save_LIBS=$LIBS
18764 LIBS="-ldl  $LIBS"
18765 cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h.  */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h.  */
18771
18772 /* Override any gcc2 internal prototype to avoid an error.  */
18773 #ifdef __cplusplus
18774 extern "C"
18775 #endif
18776 /* We use char because int might match the return type of a gcc2
18777    builtin and then its argument prototype would still apply.  */
18778 char dlopen ();
18779 int
18780 main ()
18781 {
18782 dlopen ();
18783   ;
18784   return 0;
18785 }
18786 _ACEOF
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18789   (eval $ac_link) 2>conftest.er1
18790   ac_status=$?
18791   grep -v '^ *+' conftest.er1 >conftest.err
18792   rm -f conftest.er1
18793   cat conftest.err >&5
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); } &&
18796          { ac_try='test -z "$ac_c_werror_flag"
18797                          || test ! -s conftest.err'
18798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799   (eval $ac_try) 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); }; } &&
18803          { ac_try='test -s conftest$ac_exeext'
18804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805   (eval $ac_try) 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; }; then
18809   ac_cv_lib_dl_dlopen=yes
18810 else
18811   echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814 ac_cv_lib_dl_dlopen=no
18815 fi
18816 rm -f conftest.err conftest.$ac_objext \
18817       conftest$ac_exeext conftest.$ac_ext
18818 LIBS=$ac_check_lib_save_LIBS
18819 fi
18820 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18821 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18822 if test $ac_cv_lib_dl_dlopen = yes; then
18823   cat >>confdefs.h <<_ACEOF
18824 #define HAVE_LIBDL 1
18825 _ACEOF
18826
18827   LIBS="-ldl $LIBS"
18828
18829 fi
18830
18831          if test "$GCC" = "yes" ; then
18832             # The GNU linker requires the -export-dynamic option to make
18833             # all symbols visible in the dynamic symbol table.
18834             hold_ldflags=$LDFLAGS
18835             echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
18836 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
18837             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
18838             cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h.  */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h.  */
18844
18845 int
18846 main ()
18847 {
18848 int i;
18849   ;
18850   return 0;
18851 }
18852 _ACEOF
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18855   (eval $ac_link) 2>conftest.er1
18856   ac_status=$?
18857   grep -v '^ *+' conftest.er1 >conftest.err
18858   rm -f conftest.er1
18859   cat conftest.err >&5
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); } &&
18862          { ac_try='test -z "$ac_c_werror_flag"
18863                          || test ! -s conftest.err'
18864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865   (eval $ac_try) 2>&5
18866   ac_status=$?
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); }; } &&
18869          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18875   found=yes
18876 else
18877   echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18879
18880 found=no
18881 fi
18882 rm -f conftest.err conftest.$ac_objext \
18883       conftest$ac_exeext conftest.$ac_ext
18884             LDFLAGS=$hold_ldflags
18885             echo "$as_me:$LINENO: result: $found" >&5
18886 echo "${ECHO_T}$found" >&6
18887             if test $found = yes; then
18888                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
18889             fi
18890          fi
18891          # Sun randomly tweaked the prototypes in <proc_service.h>
18892          # at one point.
18893          echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
18894 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
18895          if test "${gdb_cv_proc_service_is_old+set}" = set; then
18896   echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898
18899             cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h.  */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h.  */
18905
18906                 #include <proc_service.h>
18907                 ps_err_e ps_pdwrite
18908                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
18909
18910 int
18911 main ()
18912 {
18913
18914   ;
18915   return 0;
18916 }
18917 _ACEOF
18918 rm -f conftest.$ac_objext
18919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18920   (eval $ac_compile) 2>conftest.er1
18921   ac_status=$?
18922   grep -v '^ *+' conftest.er1 >conftest.err
18923   rm -f conftest.er1
18924   cat conftest.err >&5
18925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926   (exit $ac_status); } &&
18927          { ac_try='test -z "$ac_c_werror_flag"
18928                          || test ! -s conftest.err'
18929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930   (eval $ac_try) 2>&5
18931   ac_status=$?
18932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); }; } &&
18934          { ac_try='test -s conftest.$ac_objext'
18935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936   (eval $ac_try) 2>&5
18937   ac_status=$?
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); }; }; then
18940   gdb_cv_proc_service_is_old=no
18941 else
18942   echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18944
18945 gdb_cv_proc_service_is_old=yes
18946 fi
18947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18948
18949 fi
18950
18951          echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
18952 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
18953          if test $gdb_cv_proc_service_is_old = yes; then
18954
18955 cat >>confdefs.h <<\_ACEOF
18956 #define PROC_SERVICE_IS_OLD 1
18957 _ACEOF
18958
18959          fi
18960       else
18961          echo "$as_me:$LINENO: result: no" >&5
18962 echo "${ECHO_T}no" >&6
18963       fi
18964       ;;
18965    aix*)
18966       echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
18967 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
18968       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
18969   echo $ECHO_N "(cached) $ECHO_C" >&6
18970 else
18971   cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h.  */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h.  */
18977 #include <sys/pthdebug.h>
18978 int
18979 main ()
18980 {
18981 #ifndef PTHDB_VERSION_3
18982                                     #error
18983                                     #endif
18984   ;
18985   return 0;
18986 }
18987 _ACEOF
18988 rm -f conftest.$ac_objext
18989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18990   (eval $ac_compile) 2>conftest.er1
18991   ac_status=$?
18992   grep -v '^ *+' conftest.er1 >conftest.err
18993   rm -f conftest.er1
18994   cat conftest.err >&5
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); } &&
18997          { ac_try='test -z "$ac_c_werror_flag"
18998                          || test ! -s conftest.err'
18999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000   (eval $ac_try) 2>&5
19001   ac_status=$?
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); }; } &&
19004          { ac_try='test -s conftest.$ac_objext'
19005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006   (eval $ac_try) 2>&5
19007   ac_status=$?
19008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009   (exit $ac_status); }; }; then
19010   gdb_cv_have_aix_thread_debug=yes
19011 else
19012   echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19014
19015 gdb_cv_have_aix_thread_debug=no
19016 fi
19017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19018 fi
19019
19020       echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19021 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19022       if test $gdb_cv_have_aix_thread_debug = yes; then
19023          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19024          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19025          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19026       fi
19027       ;;
19028    esac
19029
19030 fi
19031
19032 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19033    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19034 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19035 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19036   echo $ECHO_N "(cached) $ECHO_C" >&6
19037 else
19038   cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h.  */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h.  */
19044 #include <thread_db.h>
19045 int
19046 main ()
19047 {
19048 int i = TD_NOTALLOC;
19049   ;
19050   return 0;
19051 }
19052 _ACEOF
19053 rm -f conftest.$ac_objext
19054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19055   (eval $ac_compile) 2>conftest.er1
19056   ac_status=$?
19057   grep -v '^ *+' conftest.er1 >conftest.err
19058   rm -f conftest.er1
19059   cat conftest.err >&5
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); } &&
19062          { ac_try='test -z "$ac_c_werror_flag"
19063                          || test ! -s conftest.err'
19064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065   (eval $ac_try) 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; } &&
19069          { ac_try='test -s conftest.$ac_objext'
19070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071   (eval $ac_try) 2>&5
19072   ac_status=$?
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); }; }; then
19075   gdb_cv_thread_db_h_has_td_notalloc=yes
19076 else
19077   echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080 gdb_cv_thread_db_h_has_td_notalloc=no
19081
19082 fi
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19084
19085 fi
19086 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19087 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19088    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19089 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19090 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19091   echo $ECHO_N "(cached) $ECHO_C" >&6
19092 else
19093   cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h.  */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h.  */
19099 #include <thread_db.h>
19100 int
19101 main ()
19102 {
19103 int i = TD_VERSION;
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 rm -f conftest.$ac_objext
19109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110   (eval $ac_compile) 2>conftest.er1
19111   ac_status=$?
19112   grep -v '^ *+' conftest.er1 >conftest.err
19113   rm -f conftest.er1
19114   cat conftest.err >&5
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); } &&
19117          { ac_try='test -z "$ac_c_werror_flag"
19118                          || test ! -s conftest.err'
19119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120   (eval $ac_try) 2>&5
19121   ac_status=$?
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); }; } &&
19124          { ac_try='test -s conftest.$ac_objext'
19125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126   (eval $ac_try) 2>&5
19127   ac_status=$?
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); }; }; then
19130   gdb_cv_thread_db_h_has_td_version=yes
19131 else
19132   echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19134
19135 gdb_cv_thread_db_h_has_td_version=no
19136
19137 fi
19138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19139
19140 fi
19141 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19142 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19143    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19144 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19145 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h.  */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h.  */
19154 #include <thread_db.h>
19155 int
19156 main ()
19157 {
19158 int i = TD_NOTLS;
19159   ;
19160   return 0;
19161 }
19162 _ACEOF
19163 rm -f conftest.$ac_objext
19164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19165   (eval $ac_compile) 2>conftest.er1
19166   ac_status=$?
19167   grep -v '^ *+' conftest.er1 >conftest.err
19168   rm -f conftest.er1
19169   cat conftest.err >&5
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); } &&
19172          { ac_try='test -z "$ac_c_werror_flag"
19173                          || test ! -s conftest.err'
19174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175   (eval $ac_try) 2>&5
19176   ac_status=$?
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); }; } &&
19179          { ac_try='test -s conftest.$ac_objext'
19180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181   (eval $ac_try) 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); }; }; then
19185   gdb_cv_thread_db_h_has_td_notls=yes
19186 else
19187   echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19189
19190 gdb_cv_thread_db_h_has_td_notls=no
19191
19192 fi
19193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19194
19195 fi
19196 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19197 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19198 fi
19199 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19200
19201 cat >>confdefs.h <<\_ACEOF
19202 #define THREAD_DB_HAS_TD_NOTALLOC 1
19203 _ACEOF
19204
19205 fi
19206 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19207
19208 cat >>confdefs.h <<\_ACEOF
19209 #define THREAD_DB_HAS_TD_VERSION 1
19210 _ACEOF
19211
19212 fi
19213 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19214
19215 cat >>confdefs.h <<\_ACEOF
19216 #define THREAD_DB_HAS_TD_NOTLS 1
19217 _ACEOF
19218
19219 fi
19220
19221 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19222    echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19223 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19224 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19225   echo $ECHO_N "(cached) $ECHO_C" >&6
19226 else
19227   cat >conftest.$ac_ext <<_ACEOF
19228 /* confdefs.h.  */
19229 _ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h.  */
19233 #include <sys/syscall.h>
19234 int
19235 main ()
19236 {
19237 int i = __NR_tkill;
19238   ;
19239   return 0;
19240 }
19241 _ACEOF
19242 rm -f conftest.$ac_objext
19243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19244   (eval $ac_compile) 2>conftest.er1
19245   ac_status=$?
19246   grep -v '^ *+' conftest.er1 >conftest.err
19247   rm -f conftest.er1
19248   cat conftest.err >&5
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); } &&
19251          { ac_try='test -z "$ac_c_werror_flag"
19252                          || test ! -s conftest.err'
19253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254   (eval $ac_try) 2>&5
19255   ac_status=$?
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); }; } &&
19258          { ac_try='test -s conftest.$ac_objext'
19259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260   (eval $ac_try) 2>&5
19261   ac_status=$?
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); }; }; then
19264   gdb_cv_sys_syscall_h_has_tkill=yes
19265 else
19266   echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19268
19269 gdb_cv_sys_syscall_h_has_tkill=no
19270
19271 fi
19272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19273
19274 fi
19275 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19276 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19277 fi
19278 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19279
19280 cat >>confdefs.h <<\_ACEOF
19281 #define HAVE_TKILL_SYSCALL 1
19282 _ACEOF
19283
19284 fi
19285
19286 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19287 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19288 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19289   echo $ECHO_N "(cached) $ECHO_C" >&6
19290 else
19291   cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h.  */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h.  */
19297 #include <sys/personality.h>
19298
19299 int
19300 main ()
19301 {
19302 #ifndef ADDR_NO_RANDOMIZE
19303   char *p = (char *) ADDR_NO_RANDOMIZE;
19304 #endif
19305
19306   ;
19307   return 0;
19308 }
19309 _ACEOF
19310 rm -f conftest.$ac_objext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19312   (eval $ac_compile) 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } &&
19319          { ac_try='test -z "$ac_c_werror_flag"
19320                          || test ! -s conftest.err'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; } &&
19326          { ac_try='test -s conftest.$ac_objext'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; }; then
19332   ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
19333 else
19334   echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
19338 fi
19339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340 fi
19341 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19342 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19343 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19344
19345 cat >>confdefs.h <<_ACEOF
19346 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19347 _ACEOF
19348
19349
19350 else
19351   cat >>confdefs.h <<_ACEOF
19352 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19353 _ACEOF
19354
19355
19356 fi
19357
19358
19359
19360 if test "$cross_compiling" = yes; then
19361   cat >conftest.$ac_ext <<_ACEOF
19362 /* confdefs.h.  */
19363 _ACEOF
19364 cat confdefs.h >>conftest.$ac_ext
19365 cat >>conftest.$ac_ext <<_ACEOF
19366 /* end confdefs.h.  */
19367 #include <sys/personality.h>
19368 int
19369 main ()
19370 {
19371
19372 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
19373 #       define ADDR_NO_RANDOMIZE 0x0040000
19374 #      endif
19375        /* Test the flag could be set and stays set.  */
19376        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19377        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19378            return 1
19379   ;
19380   return 0;
19381 }
19382 _ACEOF
19383 rm -f conftest.$ac_objext conftest$ac_exeext
19384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19385   (eval $ac_link) 2>conftest.er1
19386   ac_status=$?
19387   grep -v '^ *+' conftest.er1 >conftest.err
19388   rm -f conftest.er1
19389   cat conftest.err >&5
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); } &&
19392          { ac_try='test -z "$ac_c_werror_flag"
19393                          || test ! -s conftest.err'
19394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395   (eval $ac_try) 2>&5
19396   ac_status=$?
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); }; } &&
19399          { ac_try='test -s conftest$ac_exeext'
19400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401   (eval $ac_try) 2>&5
19402   ac_status=$?
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); }; }; then
19405   have_personality=true
19406 else
19407   echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19409
19410 have_personality=false
19411 fi
19412 rm -f conftest.err conftest.$ac_objext \
19413       conftest$ac_exeext conftest.$ac_ext
19414 else
19415   cat >conftest.$ac_ext <<_ACEOF
19416 /* confdefs.h.  */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h.  */
19421 #include <sys/personality.h>
19422 int
19423 main ()
19424 {
19425
19426 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
19427 #       define ADDR_NO_RANDOMIZE 0x0040000
19428 #      endif
19429        /* Test the flag could be set and stays set.  */
19430        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19431        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19432            return 1
19433   ;
19434   return 0;
19435 }
19436 _ACEOF
19437 rm -f conftest$ac_exeext
19438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19439   (eval $ac_link) 2>&5
19440   ac_status=$?
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444   (eval $ac_try) 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); }; }; then
19448   have_personality=true
19449 else
19450   echo "$as_me: program exited with status $ac_status" >&5
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454 ( exit $ac_status )
19455 have_personality=false
19456 fi
19457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19458 fi
19459 if $have_personality
19460 then
19461
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_PERSONALITY 1
19464 _ACEOF
19465
19466 fi
19467
19468
19469
19470 # Check whether --with-sysroot or --without-sysroot was given.
19471 if test "${with_sysroot+set}" = set; then
19472   withval="$with_sysroot"
19473
19474  case ${with_sysroot} in
19475  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19476  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19477  esac
19478
19479  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19480
19481  if test "x$prefix" = xNONE; then
19482   test_prefix=/usr/local
19483  else
19484   test_prefix=$prefix
19485  fi
19486  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19487   test_exec_prefix=$test_prefix
19488  else
19489   test_exec_prefix=$exec_prefix
19490  fi
19491  case ${TARGET_SYSTEM_ROOT} in
19492  "${test_prefix}"|"${test_prefix}/"*|\
19493  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19494  '${prefix}'|'${prefix}/'*|\
19495  '${exec_prefix}'|'${exec_prefix}/'*)
19496    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19497    TARGET_SYSTEM_ROOT_DEFINE="$t"
19498    ;;
19499  esac
19500
19501 else
19502
19503  TARGET_SYSTEM_ROOT=
19504  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19505
19506 fi;
19507
19508
19509
19510 system_gdbinit=
19511
19512 # Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19513 if test "${with_system_gdbinit+set}" = set; then
19514   withval="$with_system_gdbinit"
19515   system_gdbinit=${withval}
19516 fi;
19517
19518
19519   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19520   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19521   ac_define_dir=`eval echo $system_gdbinit`
19522   ac_define_dir=`eval echo $ac_define_dir`
19523
19524 cat >>confdefs.h <<_ACEOF
19525 #define SYSTEM_GDBINIT "$ac_define_dir"
19526 _ACEOF
19527
19528
19529
19530 if test "x$prefix" = xNONE; then
19531   test_prefix=$ac_default_prefix
19532 else
19533   test_prefix=$prefix
19534 fi
19535 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19536   test_exec_prefix=$test_prefix
19537 else
19538   test_exec_prefix=$exec_prefix
19539 fi
19540 case ${system_gdbinit} in
19541  "${test_prefix}"|"${test_prefix}/"*|\
19542  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19543  '${prefix}'|'${prefix}/'*|\
19544  '${exec_prefix}'|'${exec_prefix}/'*)
19545
19546 cat >>confdefs.h <<\_ACEOF
19547 #define SYSTEM_GDBINIT_RELOCATABLE 1
19548 _ACEOF
19549
19550    ;;
19551 esac
19552
19553 # Check whether --enable-werror or --disable-werror was given.
19554 if test "${enable_werror+set}" = set; then
19555   enableval="$enable_werror"
19556   case "${enableval}" in
19557      yes | y) ERROR_ON_WARNING="yes" ;;
19558      no | n)  ERROR_ON_WARNING="no" ;;
19559      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19560 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19561    { (exit 1); exit 1; }; } ;;
19562    esac
19563 fi;
19564
19565 # Enable -Werror by default when using gcc
19566 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19567     ERROR_ON_WARNING=yes
19568 fi
19569
19570 WERROR_CFLAGS=""
19571 if test "${ERROR_ON_WARNING}" = yes ; then
19572     WERROR_CFLAGS="-Werror"
19573 fi
19574
19575 # The entries after -Wno-pointer-sign are disabled warnings which may
19576 # be enabled in the future, which can not currently be used to build
19577 # GDB.
19578 # NOTE: If you change this list, remember to update
19579 # gdb/doc/gdbint.texinfo.
19580 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
19581 -Wformat-nonliteral -Wno-pointer-sign \
19582 -Wno-unused -Wno-switch -Wno-char-subscripts"
19583
19584 # Enable -Wno-format by default when using gcc on mingw since many
19585 # GCC versions complain about %I64.
19586 case "${host}" in
19587   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
19588 esac
19589
19590 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19591 if test "${enable_build_warnings+set}" = set; then
19592   enableval="$enable_build_warnings"
19593   case "${enableval}" in
19594   yes)  ;;
19595   no)   build_warnings="-w";;
19596   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19597         build_warnings="${build_warnings} ${t}";;
19598   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19599         build_warnings="${t} ${build_warnings}";;
19600   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19601 esac
19602 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19603   echo "Setting compiler warning flags = $build_warnings" 6>&1
19604 fi
19605 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19606 if test "${enable_gdb_build_warnings+set}" = set; then
19607   enableval="$enable_gdb_build_warnings"
19608   case "${enableval}" in
19609   yes)  ;;
19610   no)   build_warnings="-w";;
19611   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19612         build_warnings="${build_warnings} ${t}";;
19613   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19614         build_warnings="${t} ${build_warnings}";;
19615   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19616 esac
19617 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19618   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19619 fi
19620 fi; WARN_CFLAGS=""
19621 if test "x${build_warnings}" != x -a "x$GCC" = xyes
19622 then
19623     echo "$as_me:$LINENO: checking compiler warning flags" >&5
19624 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19625     # Separate out the -Werror flag as some files just cannot be
19626     # compiled with it enabled.
19627     for w in ${build_warnings}; do
19628         case $w in
19629         -Werr*) WERROR_CFLAGS=-Werror ;;
19630         *) # Check that GCC accepts it
19631             saved_CFLAGS="$CFLAGS"
19632             CFLAGS="$CFLAGS $w"
19633             cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h.  */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h.  */
19639
19640 int
19641 main ()
19642 {
19643
19644   ;
19645   return 0;
19646 }
19647 _ACEOF
19648 rm -f conftest.$ac_objext
19649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19650   (eval $ac_compile) 2>conftest.er1
19651   ac_status=$?
19652   grep -v '^ *+' conftest.er1 >conftest.err
19653   rm -f conftest.er1
19654   cat conftest.err >&5
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); } &&
19657          { ac_try='test -z "$ac_c_werror_flag"
19658                          || test ! -s conftest.err'
19659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660   (eval $ac_try) 2>&5
19661   ac_status=$?
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); }; } &&
19664          { ac_try='test -s conftest.$ac_objext'
19665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666   (eval $ac_try) 2>&5
19667   ac_status=$?
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); }; }; then
19670   WARN_CFLAGS="${WARN_CFLAGS} $w"
19671 else
19672   echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19674
19675 fi
19676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19677             CFLAGS="$saved_CFLAGS"
19678         esac
19679     done
19680     echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
19681 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
19682 fi
19683
19684
19685
19686 # In the Cygwin environment, we need some additional flags.
19687 echo "$as_me:$LINENO: checking for cygwin" >&5
19688 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19689 if test "${gdb_cv_os_cygwin+set}" = set; then
19690   echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692   cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h.  */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h.  */
19698
19699 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
19700 lose
19701 #endif
19702 _ACEOF
19703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19704   $EGREP "lose" >/dev/null 2>&1; then
19705   gdb_cv_os_cygwin=yes
19706 else
19707   gdb_cv_os_cygwin=no
19708 fi
19709 rm -f conftest*
19710
19711 fi
19712 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19713 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
19714
19715
19716 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
19717 case ${host} in
19718   *go32* ) SER_HARDWIRE=ser-go32.o ;;
19719   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
19720   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
19721 esac
19722
19723
19724 # libreadline needs libuser32.a in a cygwin environment
19725 WIN32LIBS=
19726 if test x$gdb_cv_os_cygwin = xyes; then
19727     WIN32LIBS="-luser32"
19728     case "${target}" in
19729         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19730         ;;
19731     esac
19732 fi
19733
19734 # The ser-tcp.c module requires sockets.
19735 case ${host} in
19736   *mingw32*)
19737
19738 cat >>confdefs.h <<\_ACEOF
19739 #define USE_WIN32API 1
19740 _ACEOF
19741
19742     WIN32LIBS="$WIN32LIBS -lws2_32"
19743     ;;
19744 esac
19745
19746
19747 # Add ELF support to GDB, but only if BFD includes ELF support.
19748 OLD_CFLAGS=$CFLAGS
19749 OLD_LDFLAGS=$LDFLAGS
19750 OLD_LIBS=$LIBS
19751 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
19752 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
19753 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
19754 LIBS="-lbfd -liberty $intl $LIBS"
19755 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
19756 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
19757 if test "${gdb_cv_var_elf+set}" = set; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760   cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h.  */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h.  */
19766 #include <stdlib.h>
19767 #include "bfd.h"
19768 #include "elf-bfd.h"
19769
19770 int
19771 main ()
19772 {
19773 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
19774   ;
19775   return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19780   (eval $ac_link) 2>conftest.er1
19781   ac_status=$?
19782   grep -v '^ *+' conftest.er1 >conftest.err
19783   rm -f conftest.er1
19784   cat conftest.err >&5
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); } &&
19787          { ac_try='test -z "$ac_c_werror_flag"
19788                          || test ! -s conftest.err'
19789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790   (eval $ac_try) 2>&5
19791   ac_status=$?
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); }; } &&
19794          { ac_try='test -s conftest$ac_exeext'
19795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796   (eval $ac_try) 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; }; then
19800   gdb_cv_var_elf=yes
19801 else
19802   echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805 gdb_cv_var_elf=no
19806 fi
19807 rm -f conftest.err conftest.$ac_objext \
19808       conftest$ac_exeext conftest.$ac_ext
19809 fi
19810 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
19811 echo "${ECHO_T}$gdb_cv_var_elf" >&6
19812 if test $gdb_cv_var_elf = yes; then
19813   CONFIG_OBS="$CONFIG_OBS elfread.o"
19814
19815 cat >>confdefs.h <<\_ACEOF
19816 #define HAVE_ELF 1
19817 _ACEOF
19818
19819 fi
19820 CFLAGS=$OLD_CFLAGS
19821 LDFLAGS=$OLD_LDFLAGS
19822 LIBS=$OLD_LIBS
19823
19824 # Add any host-specific objects to GDB.
19825 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
19826
19827 LIBGUI="../libgui/src/libgui.a"
19828 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19829
19830
19831
19832 WIN32LDAPP=
19833
19834
19835
19836 case "${host}" in
19837 *-*-cygwin* | *-*-mingw* )
19838     configdir="win"
19839     ;;
19840 *)
19841     configdir="unix"
19842     ;;
19843 esac
19844
19845 GDBTKLIBS=
19846 if test "${enable_gdbtk}" = "yes"; then
19847
19848     # Gdbtk must have an absolute path to srcdir in order to run
19849     # properly when not installed.
19850     here=`pwd`
19851     cd ${srcdir}
19852     GDBTK_SRC_DIR=`pwd`
19853     cd $here
19854
19855
19856     #
19857     # Ok, lets find the tcl configuration
19858     # First, look for one uninstalled.
19859     # the alternative search directory is invoked by --with-tcl
19860     #
19861
19862     if test x"${no_tcl}" = x ; then
19863         # we reset no_tcl in case something fails here
19864         no_tcl=true
19865
19866 # Check whether --with-tcl or --without-tcl was given.
19867 if test "${with_tcl+set}" = set; then
19868   withval="$with_tcl"
19869   with_tclconfig=${withval}
19870 fi;
19871         echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19872 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19873         if test "${ac_cv_c_tclconfig+set}" = set; then
19874   echo $ECHO_N "(cached) $ECHO_C" >&6
19875 else
19876
19877
19878             # First check to see if --with-tcl was specified.
19879             case "${host}" in
19880                 *-*-cygwin*) platDir="win" ;;
19881                 *) platDir="unix" ;;
19882             esac
19883             if test x"${with_tclconfig}" != x ; then
19884                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19885                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19886                 else
19887                     { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19888 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19889    { (exit 1); exit 1; }; }
19890                 fi
19891             fi
19892
19893             # then check for a private Tcl installation
19894             if test x"${ac_cv_c_tclconfig}" = x ; then
19895                 for i in \
19896                         ../tcl \
19897                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19898                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19899                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19900                         ../../tcl \
19901                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19902                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19903                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19904                         ../../../tcl \
19905                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19906                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19907                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
19908                     if test -f "$i/$platDir/tclConfig.sh" ; then
19909                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
19910                         break
19911                     fi
19912                 done
19913             fi
19914
19915             # on Darwin, check in Framework installation locations
19916             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
19917                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
19918                         `ls -d /Library/Frameworks 2>/dev/null` \
19919                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
19920                         `ls -d /System/Library/Frameworks 2>/dev/null` \
19921                         ; do
19922                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
19923                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
19924                         break
19925                     fi
19926                 done
19927             fi
19928
19929             # check in a few common install locations
19930             if test x"${ac_cv_c_tclconfig}" = x ; then
19931                 for i in `ls -d ${libdir} 2>/dev/null` \
19932                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
19933                         `ls -d ${prefix}/lib 2>/dev/null` \
19934                         `ls -d /usr/local/lib 2>/dev/null` \
19935                         `ls -d /usr/contrib/lib 2>/dev/null` \
19936                         `ls -d /usr/lib 2>/dev/null` \
19937                         ; do
19938                     if test -f "$i/tclConfig.sh" ; then
19939                         ac_cv_c_tclconfig=`(cd $i; pwd)`
19940                         break
19941                     fi
19942                 done
19943             fi
19944
19945             # check in a few other private locations
19946             if test x"${ac_cv_c_tclconfig}" = x ; then
19947                 for i in \
19948                         ${srcdir}/../tcl \
19949                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19950                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19951                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
19952                     if test -f "$i/$platDir/tclConfig.sh" ; then
19953                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
19954                     break
19955                 fi
19956                 done
19957             fi
19958
19959 fi
19960
19961
19962         if test x"${ac_cv_c_tclconfig}" = x ; then
19963             TCL_BIN_DIR="# no Tcl configs found"
19964             { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19965 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19966         else
19967             no_tcl=
19968             TCL_BIN_DIR=${ac_cv_c_tclconfig}
19969             echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
19970 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
19971         fi
19972     fi
19973
19974
19975     # If $no_tk is nonempty, then we can't do Tk, and there is no
19976     # point to doing Tcl.
19977
19978     #
19979     # Ok, lets find the tk configuration
19980     # First, look for one uninstalled.
19981     # the alternative search directory is invoked by --with-tk
19982     #
19983
19984     if test x"${no_tk}" = x ; then
19985         # we reset no_tk in case something fails here
19986         no_tk=true
19987
19988 # Check whether --with-tk or --without-tk was given.
19989 if test "${with_tk+set}" = set; then
19990   withval="$with_tk"
19991   with_tkconfig=${withval}
19992 fi;
19993         echo "$as_me:$LINENO: checking for Tk configuration" >&5
19994 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
19995         if test "${ac_cv_c_tkconfig+set}" = set; then
19996   echo $ECHO_N "(cached) $ECHO_C" >&6
19997 else
19998
19999
20000             # First check to see if --with-tkconfig was specified.
20001             if test x"${with_tkconfig}" != x ; then
20002                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20003                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20004                 else
20005                     { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20006 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20007    { (exit 1); exit 1; }; }
20008                 fi
20009             fi
20010
20011             # then check for a private Tk library
20012             case "${host}" in
20013                 *-*-cygwin*) platDir="win" ;;
20014                 *) platDir="unix" ;;
20015             esac
20016             if test x"${ac_cv_c_tkconfig}" = x ; then
20017                 for i in \
20018                         ../tk \
20019                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20020                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20021                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20022                         ../../tk \
20023                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20024                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20025                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20026                         ../../../tk \
20027                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20028                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20029                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20030                     if test -f "$i/$platDir/tkConfig.sh" ; then
20031                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20032                         break
20033                     fi
20034                 done
20035             fi
20036
20037             # on Darwin, check in Framework installation locations
20038             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
20039                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20040                         `ls -d /Library/Frameworks 2>/dev/null` \
20041                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
20042                         `ls -d /System/Library/Frameworks 2>/dev/null` \
20043                         ; do
20044                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
20045                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
20046                         break
20047                     fi
20048                 done
20049             fi
20050
20051             # check in a few common install locations
20052             if test x"${ac_cv_c_tkconfig}" = x ; then
20053                 for i in `ls -d ${libdir} 2>/dev/null` \
20054                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
20055                         `ls -d ${prefix}/lib 2>/dev/null` \
20056                         `ls -d /usr/local/lib 2>/dev/null` \
20057                         `ls -d /usr/contrib/lib 2>/dev/null` \
20058                         `ls -d /usr/lib 2>/dev/null` \
20059                         ; do
20060                     if test -f "$i/tkConfig.sh" ; then
20061                         ac_cv_c_tkconfig=`(cd $i; pwd)`
20062                         break
20063                     fi
20064                 done
20065             fi
20066             # check in a few other private locations
20067             if test x"${ac_cv_c_tkconfig}" = x ; then
20068                 for i in \
20069                         ${srcdir}/../tk \
20070                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20071                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20072                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20073                     if test -f "$i/$platDir/tkConfig.sh" ; then
20074                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20075                         break
20076                     fi
20077                 done
20078             fi
20079
20080 fi
20081
20082
20083         if test x"${ac_cv_c_tkconfig}" = x ; then
20084             TK_BIN_DIR="# no Tk configs found"
20085             { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20086 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20087         else
20088             no_tk=
20089             TK_BIN_DIR=${ac_cv_c_tkconfig}
20090             echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20091 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20092         fi
20093     fi
20094
20095
20096     if test -z "${no_tcl}" -a -z "${no_tk}"; then
20097
20098     echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20099 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20100
20101     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20102         echo "$as_me:$LINENO: result: loading" >&5
20103 echo "${ECHO_T}loading" >&6
20104         . ${TCL_BIN_DIR}/tclConfig.sh
20105     else
20106         echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20107 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20108     fi
20109
20110     # eval is required to do the TCL_DBGX substitution
20111     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20112     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20113
20114     # If the TCL_BIN_DIR is the build directory (not the install directory),
20115     # then set the common variable name to the value of the build variables.
20116     # For example, the variable TCL_LIB_SPEC will be set to the value
20117     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20118     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20119     # installed and uninstalled version of Tcl.
20120     if test -f "${TCL_BIN_DIR}/Makefile" ; then
20121         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20122         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20123         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20124     elif test "`uname -s`" = "Darwin"; then
20125         # If Tcl was built as a framework, attempt to use the libraries
20126         # from the framework at the given location so that linking works
20127         # against Tcl.framework installed in an arbitary location.
20128         case ${TCL_DEFS} in
20129             *TCL_FRAMEWORK*)
20130                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20131                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
20132                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20133                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20134                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20135                             break
20136                         fi
20137                     done
20138                 fi
20139                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20140                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20141                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20142                 fi
20143                 ;;
20144         esac
20145     fi
20146
20147     # eval is required to do the TCL_DBGX substitution
20148     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20149     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20150     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20151     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167         # Check for in-tree tcl
20168         here=`pwd`
20169         cd ${srcdir}/..
20170         topdir=`pwd`
20171         cd ${here}
20172
20173         intree="no"
20174         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20175           intree="yes"
20176         fi
20177
20178         # Find Tcl private headers
20179         if test x"${intree}" = xno; then
20180
20181   echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20182 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20183   private_dir=""
20184   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20185   if test -f ${dir}/tclInt.h ; then
20186     private_dir=${dir}
20187   fi
20188
20189   if test x"${private_dir}" = x; then
20190     { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20191 echo "$as_me: error: could not find private Tcl headers" >&2;}
20192    { (exit 1); exit 1; }; }
20193   else
20194     TCL_PRIVATE_INCLUDE="-I${private_dir}"
20195     echo "$as_me:$LINENO: result: ${private_dir}" >&5
20196 echo "${ECHO_T}${private_dir}" >&6
20197   fi
20198
20199           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20200           TCL_LIBRARY="${TCL_LIB_SPEC}"
20201           TCL_DEPS=""
20202         else
20203           # If building tcl in the same src tree, private headers
20204           # are not needed, but we need to be sure to use the right
20205           # headers library
20206           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
20207           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
20208           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
20209         fi
20210
20211
20212
20213
20214
20215     echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20216 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20217
20218     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20219         echo "$as_me:$LINENO: result: loading" >&5
20220 echo "${ECHO_T}loading" >&6
20221         . ${TK_BIN_DIR}/tkConfig.sh
20222     else
20223         echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20224 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20225     fi
20226
20227     # eval is required to do the TK_DBGX substitution
20228     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20229     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20230
20231     # If the TK_BIN_DIR is the build directory (not the install directory),
20232     # then set the common variable name to the value of the build variables.
20233     # For example, the variable TK_LIB_SPEC will be set to the value
20234     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20235     # instead of TK_BUILD_LIB_SPEC since it will work with both an
20236     # installed and uninstalled version of Tcl.
20237     if test -f "${TK_BIN_DIR}/Makefile" ; then
20238         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
20239         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
20240         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
20241     elif test "`uname -s`" = "Darwin"; then
20242         # If Tk was built as a framework, attempt to use the libraries
20243         # from the framework at the given location so that linking works
20244         # against Tk.framework installed in an arbitary location.
20245         case ${TK_DEFS} in
20246             *TK_FRAMEWORK*)
20247                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20248                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
20249                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20250                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20251                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20252                             break
20253                         fi
20254                     done
20255                 fi
20256                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20257                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20258                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20259                 fi
20260                 ;;
20261         esac
20262     fi
20263
20264     # eval is required to do the TK_DBGX substitution
20265     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20266     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20267     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20268     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283         # Check for in-tree Tk
20284         intree="no"
20285         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20286           intree="yes"
20287         fi
20288
20289         # Find Tk private headers
20290         if test x"${intree}" = xno; then
20291
20292   echo "$as_me:$LINENO: checking for Tk private headers" >&5
20293 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20294   private_dir=""
20295   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20296   if test -f ${dir}/tkInt.h; then
20297     private_dir=${dir}
20298   fi
20299
20300   if test x"${private_dir}" = x; then
20301     { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20302 echo "$as_me: error: could not find Tk private headers" >&2;}
20303    { (exit 1); exit 1; }; }
20304   else
20305     TK_PRIVATE_INCLUDE="-I${private_dir}"
20306     echo "$as_me:$LINENO: result: ${private_dir}" >&5
20307 echo "${ECHO_T}${private_dir}" >&6
20308   fi
20309
20310           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20311           TK_LIBRARY=${TK_LIB_SPEC}
20312           TK_DEPS=""
20313         else
20314           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
20315           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
20316           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
20317         fi
20318
20319
20320
20321
20322
20323         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20324
20325         # Include some libraries that Tcl and Tk want.
20326         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20327         # Yes, the ordering seems wrong here.  But it isn't.
20328         # TK_LIBS is the list of libraries that need to be linked
20329         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
20330         # were in LIBS then any link tests after this point would
20331         # try to include things like `$(LIBGUI)', which wouldn't work.
20332         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20333
20334         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20335         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20336         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20337         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20338         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20339         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20340         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20341
20342         if test x$gdb_cv_os_cygwin = xyes; then
20343           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20344           WIN32LDAPP="-Wl,--subsystem,console"
20345           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20346         fi
20347
20348
20349
20350 subdirs="$subdirs gdbtk"
20351
20352     fi
20353 fi
20354
20355
20356
20357
20358
20359
20360
20361
20362 echo "$as_me:$LINENO: checking for X" >&5
20363 echo $ECHO_N "checking for X... $ECHO_C" >&6
20364
20365
20366 # Check whether --with-x or --without-x was given.
20367 if test "${with_x+set}" = set; then
20368   withval="$with_x"
20369
20370 fi;
20371 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20372 if test "x$with_x" = xno; then
20373   # The user explicitly disabled X.
20374   have_x=disabled
20375 else
20376   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20377     # Both variables are already set.
20378     have_x=yes
20379   else
20380     if test "${ac_cv_have_x+set}" = set; then
20381   echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383   # One or both of the vars are not set, and there is no cached value.
20384 ac_x_includes=no ac_x_libraries=no
20385 rm -fr conftest.dir
20386 if mkdir conftest.dir; then
20387   cd conftest.dir
20388   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20389   cat >Imakefile <<'_ACEOF'
20390 acfindx:
20391         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20392 _ACEOF
20393   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20394     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20395     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20396     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20397     for ac_extension in a so sl; do
20398       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20399          test -f $ac_im_libdir/libX11.$ac_extension; then
20400         ac_im_usrlibdir=$ac_im_libdir; break
20401       fi
20402     done
20403     # Screen out bogus values from the imake configuration.  They are
20404     # bogus both because they are the default anyway, and because
20405     # using them would break gcc on systems where it needs fixed includes.
20406     case $ac_im_incroot in
20407         /usr/include) ;;
20408         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20409     esac
20410     case $ac_im_usrlibdir in
20411         /usr/lib | /lib) ;;
20412         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20413     esac
20414   fi
20415   cd ..
20416   rm -fr conftest.dir
20417 fi
20418
20419 # Standard set of common directories for X headers.
20420 # Check X11 before X11Rn because it is often a symlink to the current release.
20421 ac_x_header_dirs='
20422 /usr/X11/include
20423 /usr/X11R6/include
20424 /usr/X11R5/include
20425 /usr/X11R4/include
20426
20427 /usr/include/X11
20428 /usr/include/X11R6
20429 /usr/include/X11R5
20430 /usr/include/X11R4
20431
20432 /usr/local/X11/include
20433 /usr/local/X11R6/include
20434 /usr/local/X11R5/include
20435 /usr/local/X11R4/include
20436
20437 /usr/local/include/X11
20438 /usr/local/include/X11R6
20439 /usr/local/include/X11R5
20440 /usr/local/include/X11R4
20441
20442 /usr/X386/include
20443 /usr/x386/include
20444 /usr/XFree86/include/X11
20445
20446 /usr/include
20447 /usr/local/include
20448 /usr/unsupported/include
20449 /usr/athena/include
20450 /usr/local/x11r5/include
20451 /usr/lpp/Xamples/include
20452
20453 /usr/openwin/include
20454 /usr/openwin/share/include'
20455
20456 if test "$ac_x_includes" = no; then
20457   # Guess where to find include files, by looking for Intrinsic.h.
20458   # First, try using that file with no special directory specified.
20459   cat >conftest.$ac_ext <<_ACEOF
20460 /* confdefs.h.  */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h.  */
20465 #include <X11/Intrinsic.h>
20466 _ACEOF
20467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20469   ac_status=$?
20470   grep -v '^ *+' conftest.er1 >conftest.err
20471   rm -f conftest.er1
20472   cat conftest.err >&5
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); } >/dev/null; then
20475   if test -s conftest.err; then
20476     ac_cpp_err=$ac_c_preproc_warn_flag
20477     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20478   else
20479     ac_cpp_err=
20480   fi
20481 else
20482   ac_cpp_err=yes
20483 fi
20484 if test -z "$ac_cpp_err"; then
20485   # We can compile using X headers with no special include directory.
20486 ac_x_includes=
20487 else
20488   echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20490
20491   for ac_dir in $ac_x_header_dirs; do
20492   if test -r "$ac_dir/X11/Intrinsic.h"; then
20493     ac_x_includes=$ac_dir
20494     break
20495   fi
20496 done
20497 fi
20498 rm -f conftest.err conftest.$ac_ext
20499 fi # $ac_x_includes = no
20500
20501 if test "$ac_x_libraries" = no; then
20502   # Check for the libraries.
20503   # See if we find them without any special options.
20504   # Don't add to $LIBS permanently.
20505   ac_save_LIBS=$LIBS
20506   LIBS="-lXt $LIBS"
20507   cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h.  */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h.  */
20513 #include <X11/Intrinsic.h>
20514 int
20515 main ()
20516 {
20517 XtMalloc (0)
20518   ;
20519   return 0;
20520 }
20521 _ACEOF
20522 rm -f conftest.$ac_objext conftest$ac_exeext
20523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20524   (eval $ac_link) 2>conftest.er1
20525   ac_status=$?
20526   grep -v '^ *+' conftest.er1 >conftest.err
20527   rm -f conftest.er1
20528   cat conftest.err >&5
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); } &&
20531          { ac_try='test -z "$ac_c_werror_flag"
20532                          || test ! -s conftest.err'
20533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534   (eval $ac_try) 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; } &&
20538          { ac_try='test -s conftest$ac_exeext'
20539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540   (eval $ac_try) 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; }; then
20544   LIBS=$ac_save_LIBS
20545 # We can link X programs with no special library path.
20546 ac_x_libraries=
20547 else
20548   echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20550
20551 LIBS=$ac_save_LIBS
20552 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20553 do
20554   # Don't even attempt the hair of trying to link an X program!
20555   for ac_extension in a so sl; do
20556     if test -r $ac_dir/libXt.$ac_extension; then
20557       ac_x_libraries=$ac_dir
20558       break 2
20559     fi
20560   done
20561 done
20562 fi
20563 rm -f conftest.err conftest.$ac_objext \
20564       conftest$ac_exeext conftest.$ac_ext
20565 fi # $ac_x_libraries = no
20566
20567 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20568   # Didn't find X anywhere.  Cache the known absence of X.
20569   ac_cv_have_x="have_x=no"
20570 else
20571   # Record where we found X for the cache.
20572   ac_cv_have_x="have_x=yes \
20573                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20574 fi
20575 fi
20576
20577   fi
20578   eval "$ac_cv_have_x"
20579 fi # $with_x != no
20580
20581 if test "$have_x" != yes; then
20582   echo "$as_me:$LINENO: result: $have_x" >&5
20583 echo "${ECHO_T}$have_x" >&6
20584   no_x=yes
20585 else
20586   # If each of the values was on the command line, it overrides each guess.
20587   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20588   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20589   # Update the cache value to reflect the command line values.
20590   ac_cv_have_x="have_x=yes \
20591                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20592   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20593 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20594 fi
20595
20596
20597 # Unlike the sim directory, whether a simulator is linked is controlled by
20598 # presence of a gdb_sim definition in the target configure.tgt entry.
20599 # This code just checks for a few cases where we'd like to ignore those
20600 # definitions, even when they're present in the '.mt' file.  These cases
20601 # are when --disable-sim is specified, or if the simulator directory is
20602 # not part of the source tree.
20603 #
20604 # Check whether --enable-sim or --disable-sim was given.
20605 if test "${enable_sim+set}" = set; then
20606   enableval="$enable_sim"
20607   echo "enable_sim = $enable_sim";
20608  echo "enableval = ${enableval}";
20609  case "${enableval}" in
20610   yes) ignore_sim=false ;;
20611   no)  ignore_sim=true ;;
20612   *)   ignore_sim=false ;;
20613  esac
20614 else
20615   ignore_sim=false
20616 fi;
20617
20618 if test ! -d "${srcdir}/../sim"; then
20619   ignore_sim=true
20620 fi
20621
20622 SIM=
20623 SIM_OBS=
20624 if test "${ignore_sim}" = "false"; then
20625   if test x"${gdb_sim}" != x ; then
20626     SIM="${gdb_sim}"
20627     SIM_OBS="remote-sim.o"
20628
20629 cat >>confdefs.h <<\_ACEOF
20630 #define WITH_SIM 1
20631 _ACEOF
20632
20633   fi
20634 fi
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649 # List of host floatformats.
20650
20651 cat >>confdefs.h <<_ACEOF
20652 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
20653 _ACEOF
20654
20655
20656 cat >>confdefs.h <<_ACEOF
20657 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
20658 _ACEOF
20659
20660
20661 cat >>confdefs.h <<_ACEOF
20662 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
20663 _ACEOF
20664
20665
20666 # target_subdir is used by the testsuite to find the target libraries.
20667 target_subdir=
20668 if test "${host}" != "${target}"; then
20669     target_subdir="${target_alias}/"
20670 fi
20671
20672
20673 frags=
20674 if test "${gdb_native}" = "yes"; then
20675   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
20676   if test ! -f ${host_makefile_frag}; then
20677     { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
20678 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
20679    { (exit 1); exit 1; }; }
20680   fi
20681   frags="$frags $host_makefile_frag"
20682 else
20683   host_makefile_frag=/dev/null
20684 fi
20685
20686
20687
20688
20689 if test "${gdb_native}" = "yes"; then
20690 # We pick this up from the host configuration file (.mh) because we
20691 # do not have a native configuration Makefile fragment.
20692 nativefile=`sed -n '
20693 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
20694 ' ${host_makefile_frag}`
20695 fi
20696
20697
20698 if test x"${gdb_osabi}" != x ; then
20699
20700 cat >>confdefs.h <<_ACEOF
20701 #define GDB_OSABI_DEFAULT $gdb_osabi
20702 _ACEOF
20703
20704 fi
20705
20706 # Enable multi-ice-gdb-server.
20707 # Check whether --enable-multi-ice or --disable-multi-ice was given.
20708 if test "${enable_multi_ice+set}" = set; then
20709   enableval="$enable_multi_ice"
20710   case $enableval in
20711     yes | no)
20712       ;;
20713     *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
20714 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
20715    { (exit 1); exit 1; }; } ;;
20716   esac
20717 fi;
20718 if test "x$enable_multi_ice" = xyes; then
20719
20720
20721 subdirs="$subdirs multi-ice"
20722
20723 fi
20724
20725 # We only build gdbserver automatically in a native configuration.
20726 if test "$gdb_native" = "yes"; then
20727   echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
20728 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
20729   if test "x$build_gdbserver" = xyes; then
20730     echo "$as_me:$LINENO: result: yes" >&5
20731 echo "${ECHO_T}yes" >&6
20732
20733
20734 subdirs="$subdirs gdbserver"
20735
20736   else
20737     echo "$as_me:$LINENO: result: no" >&5
20738 echo "${ECHO_T}no" >&6
20739   fi
20740 fi
20741
20742 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
20743 # to an empty version.
20744
20745 files=
20746 links=
20747
20748 rm -f nm.h
20749 nm_h=""
20750 if test "${nativefile}" != ""; then
20751     nm_h=nm.h
20752     case "${nativefile}" in
20753       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
20754       * ) GDB_NM_FILE="${nativefile}"
20755     esac
20756     files="${files} ${GDB_NM_FILE}"
20757     links="${links} nm.h"
20758
20759 cat >>confdefs.h <<_ACEOF
20760 #define GDB_NM_FILE "${GDB_NM_FILE}"
20761 _ACEOF
20762
20763 fi
20764
20765
20766 ac_sources="$files"
20767 ac_dests="$links"
20768 while test -n "$ac_sources"; do
20769   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
20770   set $ac_sources; ac_source=$1; shift; ac_sources=$*
20771   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
20772 done
20773           ac_config_links="$ac_config_links $ac_config_links_1"
20774
20775
20776
20777
20778
20779
20780 cat >>confdefs.h <<\_ACEOF
20781 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
20782 _ACEOF
20783
20784
20785
20786
20787
20788 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
20789 if test "${with_libiconv_prefix+set}" = set; then
20790   withval="$with_libiconv_prefix"
20791
20792     for dir in `echo "$withval" | tr : ' '`; do
20793       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
20794       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
20795     done
20796
20797 fi;
20798
20799   echo "$as_me:$LINENO: checking for iconv" >&5
20800 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
20801 if test "${am_cv_func_iconv+set}" = set; then
20802   echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804
20805     am_cv_func_iconv="no, consider installing GNU libiconv"
20806     am_cv_lib_iconv=no
20807     cat >conftest.$ac_ext <<_ACEOF
20808 /* confdefs.h.  */
20809 _ACEOF
20810 cat confdefs.h >>conftest.$ac_ext
20811 cat >>conftest.$ac_ext <<_ACEOF
20812 /* end confdefs.h.  */
20813 #include <stdlib.h>
20814 #include <iconv.h>
20815 int
20816 main ()
20817 {
20818 iconv_t cd = iconv_open("","");
20819        iconv(cd,NULL,NULL,NULL,NULL);
20820        iconv_close(cd);
20821   ;
20822   return 0;
20823 }
20824 _ACEOF
20825 rm -f conftest.$ac_objext conftest$ac_exeext
20826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20827   (eval $ac_link) 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_exeext'
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   am_cv_func_iconv=yes
20848 else
20849   echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 fi
20853 rm -f conftest.err conftest.$ac_objext \
20854       conftest$ac_exeext conftest.$ac_ext
20855     if test "$am_cv_func_iconv" != yes; then
20856       am_save_LIBS="$LIBS"
20857       LIBS="$LIBS -liconv"
20858       cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h.  */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h.  */
20864 #include <stdlib.h>
20865 #include <iconv.h>
20866 int
20867 main ()
20868 {
20869 iconv_t cd = iconv_open("","");
20870          iconv(cd,NULL,NULL,NULL,NULL);
20871          iconv_close(cd);
20872   ;
20873   return 0;
20874 }
20875 _ACEOF
20876 rm -f conftest.$ac_objext conftest$ac_exeext
20877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20878   (eval $ac_link) 2>conftest.er1
20879   ac_status=$?
20880   grep -v '^ *+' conftest.er1 >conftest.err
20881   rm -f conftest.er1
20882   cat conftest.err >&5
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); } &&
20885          { ac_try='test -z "$ac_c_werror_flag"
20886                          || test ! -s conftest.err'
20887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888   (eval $ac_try) 2>&5
20889   ac_status=$?
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); }; } &&
20892          { ac_try='test -s conftest$ac_exeext'
20893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894   (eval $ac_try) 2>&5
20895   ac_status=$?
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); }; }; then
20898   am_cv_lib_iconv=yes
20899         am_cv_func_iconv=yes
20900 else
20901   echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20903
20904 fi
20905 rm -f conftest.err conftest.$ac_objext \
20906       conftest$ac_exeext conftest.$ac_ext
20907       LIBS="$am_save_LIBS"
20908     fi
20909
20910 fi
20911 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
20912 echo "${ECHO_T}$am_cv_func_iconv" >&6
20913   if test "$am_cv_func_iconv" = yes; then
20914
20915 cat >>confdefs.h <<\_ACEOF
20916 #define HAVE_ICONV 1
20917 _ACEOF
20918
20919     echo "$as_me:$LINENO: checking for iconv declaration" >&5
20920 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
20921     if test "${am_cv_proto_iconv+set}" = set; then
20922   echo $ECHO_N "(cached) $ECHO_C" >&6
20923 else
20924
20925       cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h.  */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h.  */
20931
20932 #include <stdlib.h>
20933 #include <iconv.h>
20934 extern
20935 #ifdef __cplusplus
20936 "C"
20937 #endif
20938 #if defined(__STDC__) || defined(__cplusplus)
20939 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20940 #else
20941 size_t iconv();
20942 #endif
20943
20944 int
20945 main ()
20946 {
20947
20948   ;
20949   return 0;
20950 }
20951 _ACEOF
20952 rm -f conftest.$ac_objext
20953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20954   (eval $ac_compile) 2>conftest.er1
20955   ac_status=$?
20956   grep -v '^ *+' conftest.er1 >conftest.err
20957   rm -f conftest.er1
20958   cat conftest.err >&5
20959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960   (exit $ac_status); } &&
20961          { ac_try='test -z "$ac_c_werror_flag"
20962                          || test ! -s conftest.err'
20963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964   (eval $ac_try) 2>&5
20965   ac_status=$?
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); }; } &&
20968          { ac_try='test -s conftest.$ac_objext'
20969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970   (eval $ac_try) 2>&5
20971   ac_status=$?
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); }; }; then
20974   am_cv_proto_iconv_arg1=""
20975 else
20976   echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20978
20979 am_cv_proto_iconv_arg1="const"
20980 fi
20981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20982       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);"
20983 fi
20984
20985     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20986     echo "$as_me:$LINENO: result: ${ac_t:-
20987          }$am_cv_proto_iconv" >&5
20988 echo "${ECHO_T}${ac_t:-
20989          }$am_cv_proto_iconv" >&6
20990
20991 cat >>confdefs.h <<_ACEOF
20992 #define ICONV_CONST $am_cv_proto_iconv_arg1
20993 _ACEOF
20994
20995   fi
20996   LIBICONV=
20997   if test "$am_cv_lib_iconv" = yes; then
20998     LIBICONV="-liconv"
20999   fi
21000
21001
21002
21003                               ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21004           ac_config_commands="$ac_config_commands default"
21005 cat >confcache <<\_ACEOF
21006 # This file is a shell script that caches the results of configure
21007 # tests run on this system so they can be shared between configure
21008 # scripts and configure runs, see configure's option --config-cache.
21009 # It is not useful on other systems.  If it contains results you don't
21010 # want to keep, you may remove or edit it.
21011 #
21012 # config.status only pays attention to the cache file if you give it
21013 # the --recheck option to rerun configure.
21014 #
21015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21017 # following values.
21018
21019 _ACEOF
21020
21021 # The following way of writing the cache mishandles newlines in values,
21022 # but we know of no workaround that is simple, portable, and efficient.
21023 # So, don't put newlines in cache variables' values.
21024 # Ultrix sh set writes to stderr and can't be redirected directly,
21025 # and sets the high bit in the cache file unless we assign to the vars.
21026 {
21027   (set) 2>&1 |
21028     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21029     *ac_space=\ *)
21030       # `set' does not quote correctly, so add quotes (double-quote
21031       # substitution turns \\\\ into \\, and sed turns \\ into \).
21032       sed -n \
21033         "s/'/'\\\\''/g;
21034           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21035       ;;
21036     *)
21037       # `set' quotes correctly as required by POSIX, so do not add quotes.
21038       sed -n \
21039         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21040       ;;
21041     esac;
21042 } |
21043   sed '
21044      t clear
21045      : clear
21046      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21047      t end
21048      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21049      : end' >>confcache
21050 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21051   if test -w $cache_file; then
21052     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21053     cat confcache >$cache_file
21054   else
21055     echo "not updating unwritable cache $cache_file"
21056   fi
21057 fi
21058 rm -f confcache
21059
21060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21061 # Let make expand exec_prefix.
21062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21063
21064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21066 # trailing colons and then remove the whole line if VPATH becomes empty
21067 # (actually we leave an empty line to preserve line numbers).
21068 if test "x$srcdir" = x.; then
21069   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21070 s/:*\$(srcdir):*/:/;
21071 s/:*\${srcdir}:*/:/;
21072 s/:*@srcdir@:*/:/;
21073 s/^\([^=]*=[     ]*\):*/\1/;
21074 s/:*$//;
21075 s/^[^=]*=[       ]*$//;
21076 }'
21077 fi
21078
21079 DEFS=-DHAVE_CONFIG_H
21080
21081 ac_libobjs=
21082 ac_ltlibobjs=
21083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21084   # 1. Remove the extension, and $U if already installed.
21085   ac_i=`echo "$ac_i" |
21086          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21087   # 2. Add them.
21088   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21089   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21090 done
21091 LIBOBJS=$ac_libobjs
21092
21093 LTLIBOBJS=$ac_ltlibobjs
21094
21095
21096 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21097   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21098 Usually this means the macro was only invoked conditionally." >&5
21099 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21100 Usually this means the macro was only invoked conditionally." >&2;}
21101    { (exit 1); exit 1; }; }
21102 fi
21103 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21104   { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21105 Usually this means the macro was only invoked conditionally." >&5
21106 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21107 Usually this means the macro was only invoked conditionally." >&2;}
21108    { (exit 1); exit 1; }; }
21109 fi
21110 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21111   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21112 Usually this means the macro was only invoked conditionally." >&5
21113 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21114 Usually this means the macro was only invoked conditionally." >&2;}
21115    { (exit 1); exit 1; }; }
21116 fi
21117
21118     gl_libobjs=
21119     gl_ltlibobjs=
21120     if test -n "$gl_LIBOBJS"; then
21121       # Remove the extension.
21122       sed_drop_objext='s/\.o$//;s/\.obj$//'
21123       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21124         gl_libobjs="$gl_libobjs $i.$ac_objext"
21125         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21126       done
21127     fi
21128     gl_LIBOBJS=$gl_libobjs
21129
21130     gl_LTLIBOBJS=$gl_ltlibobjs
21131
21132
21133
21134     gltests_libobjs=
21135     gltests_ltlibobjs=
21136     if test -n "$gltests_LIBOBJS"; then
21137       # Remove the extension.
21138       sed_drop_objext='s/\.o$//;s/\.obj$//'
21139       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21140         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21141         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21142       done
21143     fi
21144     gltests_LIBOBJS=$gltests_libobjs
21145
21146     gltests_LTLIBOBJS=$gltests_ltlibobjs
21147
21148
21149 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21150   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21151 Usually this means the macro was only invoked conditionally." >&5
21152 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21153 Usually this means the macro was only invoked conditionally." >&2;}
21154    { (exit 1); exit 1; }; }
21155 fi
21156 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21157   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21158 Usually this means the macro was only invoked conditionally." >&5
21159 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21160 Usually this means the macro was only invoked conditionally." >&2;}
21161    { (exit 1); exit 1; }; }
21162 fi
21163
21164 : ${CONFIG_STATUS=./config.status}
21165 ac_clean_files_save=$ac_clean_files
21166 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21167 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21168 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21169 cat >$CONFIG_STATUS <<_ACEOF
21170 #! $SHELL
21171 # Generated by $as_me.
21172 # Run this file to recreate the current configuration.
21173 # Compiler output produced by configure, useful for debugging
21174 # configure, is in config.log if it exists.
21175
21176 debug=false
21177 ac_cs_recheck=false
21178 ac_cs_silent=false
21179 SHELL=\${CONFIG_SHELL-$SHELL}
21180 _ACEOF
21181
21182 cat >>$CONFIG_STATUS <<\_ACEOF
21183 ## --------------------- ##
21184 ## M4sh Initialization.  ##
21185 ## --------------------- ##
21186
21187 # Be Bourne compatible
21188 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21189   emulate sh
21190   NULLCMD=:
21191   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21192   # is contrary to our usage.  Disable this feature.
21193   alias -g '${1+"$@"}'='"$@"'
21194 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21195   set -o posix
21196 fi
21197 DUALCASE=1; export DUALCASE # for MKS sh
21198
21199 # Support unset when possible.
21200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21201   as_unset=unset
21202 else
21203   as_unset=false
21204 fi
21205
21206
21207 # Work around bugs in pre-3.0 UWIN ksh.
21208 $as_unset ENV MAIL MAILPATH
21209 PS1='$ '
21210 PS2='> '
21211 PS4='+ '
21212
21213 # NLS nuisances.
21214 for as_var in \
21215   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21216   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21217   LC_TELEPHONE LC_TIME
21218 do
21219   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21220     eval $as_var=C; export $as_var
21221   else
21222     $as_unset $as_var
21223   fi
21224 done
21225
21226 # Required to use basename.
21227 if expr a : '\(a\)' >/dev/null 2>&1; then
21228   as_expr=expr
21229 else
21230   as_expr=false
21231 fi
21232
21233 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21234   as_basename=basename
21235 else
21236   as_basename=false
21237 fi
21238
21239
21240 # Name of the executable.
21241 as_me=`$as_basename "$0" ||
21242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21243          X"$0" : 'X\(//\)$' \| \
21244          X"$0" : 'X\(/\)$' \| \
21245          .     : '\(.\)' 2>/dev/null ||
21246 echo X/"$0" |
21247     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21248           /^X\/\(\/\/\)$/{ s//\1/; q; }
21249           /^X\/\(\/\).*/{ s//\1/; q; }
21250           s/.*/./; q'`
21251
21252
21253 # PATH needs CR, and LINENO needs CR and PATH.
21254 # Avoid depending upon Character Ranges.
21255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21258 as_cr_digits='0123456789'
21259 as_cr_alnum=$as_cr_Letters$as_cr_digits
21260
21261 # The user is always right.
21262 if test "${PATH_SEPARATOR+set}" != set; then
21263   echo "#! /bin/sh" >conf$$.sh
21264   echo  "exit 0"   >>conf$$.sh
21265   chmod +x conf$$.sh
21266   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21267     PATH_SEPARATOR=';'
21268   else
21269     PATH_SEPARATOR=:
21270   fi
21271   rm -f conf$$.sh
21272 fi
21273
21274
21275   as_lineno_1=$LINENO
21276   as_lineno_2=$LINENO
21277   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21278   test "x$as_lineno_1" != "x$as_lineno_2" &&
21279   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21280   # Find who we are.  Look in the path if we contain no path at all
21281   # relative or not.
21282   case $0 in
21283     *[\\/]* ) as_myself=$0 ;;
21284     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21285 for as_dir in $PATH
21286 do
21287   IFS=$as_save_IFS
21288   test -z "$as_dir" && as_dir=.
21289   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21290 done
21291
21292        ;;
21293   esac
21294   # We did not find ourselves, most probably we were run as `sh COMMAND'
21295   # in which case we are not to be found in the path.
21296   if test "x$as_myself" = x; then
21297     as_myself=$0
21298   fi
21299   if test ! -f "$as_myself"; then
21300     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21301 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21302    { (exit 1); exit 1; }; }
21303   fi
21304   case $CONFIG_SHELL in
21305   '')
21306     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21307 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21308 do
21309   IFS=$as_save_IFS
21310   test -z "$as_dir" && as_dir=.
21311   for as_base in sh bash ksh sh5; do
21312          case $as_dir in
21313          /*)
21314            if ("$as_dir/$as_base" -c '
21315   as_lineno_1=$LINENO
21316   as_lineno_2=$LINENO
21317   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21318   test "x$as_lineno_1" != "x$as_lineno_2" &&
21319   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21320              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21321              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21322              CONFIG_SHELL=$as_dir/$as_base
21323              export CONFIG_SHELL
21324              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21325            fi;;
21326          esac
21327        done
21328 done
21329 ;;
21330   esac
21331
21332   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21333   # uniformly replaced by the line number.  The first 'sed' inserts a
21334   # line-number line before each line; the second 'sed' does the real
21335   # work.  The second script uses 'N' to pair each line-number line
21336   # with the numbered line, and appends trailing '-' during
21337   # substitution so that $LINENO is not a special case at line end.
21338   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21339   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21340   sed '=' <$as_myself |
21341     sed '
21342       N
21343       s,$,-,
21344       : loop
21345       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21346       t loop
21347       s,-$,,
21348       s,^['$as_cr_digits']*\n,,
21349     ' >$as_me.lineno &&
21350   chmod +x $as_me.lineno ||
21351     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21352 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21353    { (exit 1); exit 1; }; }
21354
21355   # Don't try to exec as it changes $[0], causing all sort of problems
21356   # (the dirname of $[0] is not the place where we might find the
21357   # original and so on.  Autoconf is especially sensible to this).
21358   . ./$as_me.lineno
21359   # Exit status is that of the last command.
21360   exit
21361 }
21362
21363
21364 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21365   *c*,-n*) ECHO_N= ECHO_C='
21366 ' ECHO_T='      ' ;;
21367   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21368   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21369 esac
21370
21371 if expr a : '\(a\)' >/dev/null 2>&1; then
21372   as_expr=expr
21373 else
21374   as_expr=false
21375 fi
21376
21377 rm -f conf$$ conf$$.exe conf$$.file
21378 echo >conf$$.file
21379 if ln -s conf$$.file conf$$ 2>/dev/null; then
21380   # We could just check for DJGPP; but this test a) works b) is more generic
21381   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21382   if test -f conf$$.exe; then
21383     # Don't use ln at all; we don't have any links
21384     as_ln_s='cp -p'
21385   else
21386     as_ln_s='ln -s'
21387   fi
21388 elif ln conf$$.file conf$$ 2>/dev/null; then
21389   as_ln_s=ln
21390 else
21391   as_ln_s='cp -p'
21392 fi
21393 rm -f conf$$ conf$$.exe conf$$.file
21394
21395 if mkdir -p . 2>/dev/null; then
21396   as_mkdir_p=:
21397 else
21398   test -d ./-p && rmdir ./-p
21399   as_mkdir_p=false
21400 fi
21401
21402 as_executable_p="test -f"
21403
21404 # Sed expression to map a string onto a valid CPP name.
21405 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21406
21407 # Sed expression to map a string onto a valid variable name.
21408 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21409
21410
21411 # IFS
21412 # We need space, tab and new line, in precisely that order.
21413 as_nl='
21414 '
21415 IFS="   $as_nl"
21416
21417 # CDPATH.
21418 $as_unset CDPATH
21419
21420 exec 6>&1
21421
21422 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21423 # report actual input values of CONFIG_FILES etc. instead of their
21424 # values after options handling.  Logging --version etc. is OK.
21425 exec 5>>config.log
21426 {
21427   echo
21428   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21429 ## Running $as_me. ##
21430 _ASBOX
21431 } >&5
21432 cat >&5 <<_CSEOF
21433
21434 This file was extended by $as_me, which was
21435 generated by GNU Autoconf 2.59.  Invocation command line was
21436
21437   CONFIG_FILES    = $CONFIG_FILES
21438   CONFIG_HEADERS  = $CONFIG_HEADERS
21439   CONFIG_LINKS    = $CONFIG_LINKS
21440   CONFIG_COMMANDS = $CONFIG_COMMANDS
21441   $ $0 $@
21442
21443 _CSEOF
21444 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21445 echo >&5
21446 _ACEOF
21447
21448 # Files that config.status was made for.
21449 if test -n "$ac_config_files"; then
21450   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21451 fi
21452
21453 if test -n "$ac_config_headers"; then
21454   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21455 fi
21456
21457 if test -n "$ac_config_links"; then
21458   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21459 fi
21460
21461 if test -n "$ac_config_commands"; then
21462   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21463 fi
21464
21465 cat >>$CONFIG_STATUS <<\_ACEOF
21466
21467 ac_cs_usage="\
21468 \`$as_me' instantiates files from templates according to the
21469 current configuration.
21470
21471 Usage: $0 [OPTIONS] [FILE]...
21472
21473   -h, --help       print this help, then exit
21474   -V, --version    print version number, then exit
21475   -q, --quiet      do not print progress messages
21476   -d, --debug      don't remove temporary files
21477       --recheck    update $as_me by reconfiguring in the same conditions
21478   --file=FILE[:TEMPLATE]
21479                    instantiate the configuration file FILE
21480   --header=FILE[:TEMPLATE]
21481                    instantiate the configuration header FILE
21482
21483 Configuration files:
21484 $config_files
21485
21486 Configuration headers:
21487 $config_headers
21488
21489 Configuration links:
21490 $config_links
21491
21492 Configuration commands:
21493 $config_commands
21494
21495 Report bugs to <bug-autoconf@gnu.org>."
21496 _ACEOF
21497
21498 cat >>$CONFIG_STATUS <<_ACEOF
21499 ac_cs_version="\\
21500 config.status
21501 configured by $0, generated by GNU Autoconf 2.59,
21502   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21503
21504 Copyright (C) 2003 Free Software Foundation, Inc.
21505 This config.status script is free software; the Free Software Foundation
21506 gives unlimited permission to copy, distribute and modify it."
21507 srcdir=$srcdir
21508 INSTALL="$INSTALL"
21509 _ACEOF
21510
21511 cat >>$CONFIG_STATUS <<\_ACEOF
21512 # If no file are specified by the user, then we need to provide default
21513 # value.  By we need to know if files were specified by the user.
21514 ac_need_defaults=:
21515 while test $# != 0
21516 do
21517   case $1 in
21518   --*=*)
21519     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21520     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21521     ac_shift=:
21522     ;;
21523   -*)
21524     ac_option=$1
21525     ac_optarg=$2
21526     ac_shift=shift
21527     ;;
21528   *) # This is not an option, so the user has probably given explicit
21529      # arguments.
21530      ac_option=$1
21531      ac_need_defaults=false;;
21532   esac
21533
21534   case $ac_option in
21535   # Handling of the options.
21536 _ACEOF
21537 cat >>$CONFIG_STATUS <<\_ACEOF
21538   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21539     ac_cs_recheck=: ;;
21540   --version | --vers* | -V )
21541     echo "$ac_cs_version"; exit 0 ;;
21542   --he | --h)
21543     # Conflict between --help and --header
21544     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21545 Try \`$0 --help' for more information." >&5
21546 echo "$as_me: error: ambiguous option: $1
21547 Try \`$0 --help' for more information." >&2;}
21548    { (exit 1); exit 1; }; };;
21549   --help | --hel | -h )
21550     echo "$ac_cs_usage"; exit 0 ;;
21551   --debug | --d* | -d )
21552     debug=: ;;
21553   --file | --fil | --fi | --f )
21554     $ac_shift
21555     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21556     ac_need_defaults=false;;
21557   --header | --heade | --head | --hea )
21558     $ac_shift
21559     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21560     ac_need_defaults=false;;
21561   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21562   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21563     ac_cs_silent=: ;;
21564
21565   # This is an error.
21566   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21567 Try \`$0 --help' for more information." >&5
21568 echo "$as_me: error: unrecognized option: $1
21569 Try \`$0 --help' for more information." >&2;}
21570    { (exit 1); exit 1; }; } ;;
21571
21572   *) ac_config_targets="$ac_config_targets $1" ;;
21573
21574   esac
21575   shift
21576 done
21577
21578 ac_configure_extra_args=
21579
21580 if $ac_cs_silent; then
21581   exec 6>/dev/null
21582   ac_configure_extra_args="$ac_configure_extra_args --silent"
21583 fi
21584
21585 _ACEOF
21586 cat >>$CONFIG_STATUS <<_ACEOF
21587 if \$ac_cs_recheck; then
21588   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21589   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21590 fi
21591
21592 _ACEOF
21593
21594 cat >>$CONFIG_STATUS <<_ACEOF
21595 #
21596 # INIT-COMMANDS section.
21597 #
21598
21599 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21600 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21601
21602 gdb_host_cpu=$gdb_host_cpu
21603 nativefile=$nativefile
21604
21605
21606 _ACEOF
21607
21608
21609
21610 cat >>$CONFIG_STATUS <<\_ACEOF
21611 for ac_config_target in $ac_config_targets
21612 do
21613   case "$ac_config_target" in
21614   # Handling of arguments.
21615   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21616   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21617   "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
21618   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
21619   "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
21620   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21621   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21622   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21623   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21624 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21625    { (exit 1); exit 1; }; };;
21626   esac
21627 done
21628
21629 # If the user did not use the arguments to specify the items to instantiate,
21630 # then the envvar interface is used.  Set only those that are not.
21631 # We use the long form for the default assignment because of an extremely
21632 # bizarre bug on SunOS 4.1.3.
21633 if $ac_need_defaults; then
21634   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21635   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21636   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21637   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21638 fi
21639
21640 # Have a temporary directory for convenience.  Make it in the build tree
21641 # simply because there is no reason to put it here, and in addition,
21642 # creating and moving files from /tmp can sometimes cause problems.
21643 # Create a temporary directory, and hook for its removal unless debugging.
21644 $debug ||
21645 {
21646   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21647   trap '{ (exit 1); exit 1; }' 1 2 13 15
21648 }
21649
21650 # Create a (secure) tmp directory for tmp files.
21651
21652 {
21653   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21654   test -n "$tmp" && test -d "$tmp"
21655 }  ||
21656 {
21657   tmp=./confstat$$-$RANDOM
21658   (umask 077 && mkdir $tmp)
21659 } ||
21660 {
21661    echo "$me: cannot create a temporary directory in ." >&2
21662    { (exit 1); exit 1; }
21663 }
21664
21665 _ACEOF
21666
21667 cat >>$CONFIG_STATUS <<_ACEOF
21668
21669 #
21670 # CONFIG_FILES section.
21671 #
21672
21673 # No need to generate the scripts if there are no CONFIG_FILES.
21674 # This happens for instance when ./config.status config.h
21675 if test -n "\$CONFIG_FILES"; then
21676   # Protect against being on the right side of a sed subst in config.status.
21677   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21678    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21679 s,@SHELL@,$SHELL,;t t
21680 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21681 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21682 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21683 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21684 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21685 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21686 s,@exec_prefix@,$exec_prefix,;t t
21687 s,@prefix@,$prefix,;t t
21688 s,@program_transform_name@,$program_transform_name,;t t
21689 s,@bindir@,$bindir,;t t
21690 s,@sbindir@,$sbindir,;t t
21691 s,@libexecdir@,$libexecdir,;t t
21692 s,@datadir@,$datadir,;t t
21693 s,@sysconfdir@,$sysconfdir,;t t
21694 s,@sharedstatedir@,$sharedstatedir,;t t
21695 s,@localstatedir@,$localstatedir,;t t
21696 s,@libdir@,$libdir,;t t
21697 s,@includedir@,$includedir,;t t
21698 s,@oldincludedir@,$oldincludedir,;t t
21699 s,@infodir@,$infodir,;t t
21700 s,@mandir@,$mandir,;t t
21701 s,@build_alias@,$build_alias,;t t
21702 s,@host_alias@,$host_alias,;t t
21703 s,@target_alias@,$target_alias,;t t
21704 s,@DEFS@,$DEFS,;t t
21705 s,@ECHO_C@,$ECHO_C,;t t
21706 s,@ECHO_N@,$ECHO_N,;t t
21707 s,@ECHO_T@,$ECHO_T,;t t
21708 s,@LIBS@,$LIBS,;t t
21709 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21710 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21711 s,@MAINT@,$MAINT,;t t
21712 s,@CC@,$CC,;t t
21713 s,@CFLAGS@,$CFLAGS,;t t
21714 s,@LDFLAGS@,$LDFLAGS,;t t
21715 s,@CPPFLAGS@,$CPPFLAGS,;t t
21716 s,@ac_ct_CC@,$ac_ct_CC,;t t
21717 s,@EXEEXT@,$EXEEXT,;t t
21718 s,@OBJEXT@,$OBJEXT,;t t
21719 s,@CPP@,$CPP,;t t
21720 s,@EGREP@,$EGREP,;t t
21721 s,@RANLIB@,$RANLIB,;t t
21722 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21723 s,@build@,$build,;t t
21724 s,@build_cpu@,$build_cpu,;t t
21725 s,@build_vendor@,$build_vendor,;t t
21726 s,@build_os@,$build_os,;t t
21727 s,@host@,$host,;t t
21728 s,@host_cpu@,$host_cpu,;t t
21729 s,@host_vendor@,$host_vendor,;t t
21730 s,@host_os@,$host_os,;t t
21731 s,@target@,$target,;t t
21732 s,@target_cpu@,$target_cpu,;t t
21733 s,@target_vendor@,$target_vendor,;t t
21734 s,@target_os@,$target_os,;t t
21735 s,@am__leading_dot@,$am__leading_dot,;t t
21736 s,@DEPDIR@,$DEPDIR,;t t
21737 s,@CCDEPMODE@,$CCDEPMODE,;t t
21738 s,@MAKE@,$MAKE,;t t
21739 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21740 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21741 s,@SET_MAKE@,$SET_MAKE,;t t
21742 s,@USE_NLS@,$USE_NLS,;t t
21743 s,@LIBINTL@,$LIBINTL,;t t
21744 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21745 s,@INCINTL@,$INCINTL,;t t
21746 s,@XGETTEXT@,$XGETTEXT,;t t
21747 s,@GMSGFMT@,$GMSGFMT,;t t
21748 s,@POSUB@,$POSUB,;t t
21749 s,@CATALOGS@,$CATALOGS,;t t
21750 s,@DATADIRNAME@,$DATADIRNAME,;t t
21751 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21752 s,@GENCAT@,$GENCAT,;t t
21753 s,@CATOBJEXT@,$CATOBJEXT,;t t
21754 s,@localedir@,$localedir,;t t
21755 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
21756 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
21757 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
21758 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
21759 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
21760 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
21761 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
21762 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
21763 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
21764 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
21765 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
21766 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
21767 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
21768 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
21769 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
21770 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
21771 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
21772 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
21773 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
21774 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
21775 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
21776 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
21777 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
21778 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
21779 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
21780 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
21781 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
21782 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
21783 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
21784 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
21785 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
21786 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
21787 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
21788 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
21789 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
21790 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
21791 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
21792 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
21793 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
21794 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
21795 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
21796 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
21797 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
21798 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
21799 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
21800 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
21801 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
21802 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
21803 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
21804 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
21805 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
21806 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
21807 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
21808 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
21809 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
21810 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
21811 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
21812 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
21813 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
21814 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
21815 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
21816 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
21817 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
21818 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
21819 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
21820 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
21821 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
21822 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
21823 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
21824 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
21825 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
21826 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
21827 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
21828 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
21829 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
21830 s,@STDINT_H@,$STDINT_H,;t t
21831 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
21832 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
21833 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
21834 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
21835 s,@WCHAR_H@,$WCHAR_H,;t t
21836 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
21837 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
21838 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
21839 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
21840 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
21841 s,@PACKAGE@,$PACKAGE,;t t
21842 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21843 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21844 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21845 s,@CYGPATH_W@,$CYGPATH_W,;t t
21846 s,@PYTHON2_4@,$PYTHON2_4,;t t
21847 s,@ACLOCAL@,$ACLOCAL,;t t
21848 s,@AUTOCONF@,$AUTOCONF,;t t
21849 s,@AUTOMAKE@,$AUTOMAKE,;t t
21850 s,@AUTOHEADER@,$AUTOHEADER,;t t
21851 s,@MAKEINFO@,$MAKEINFO,;t t
21852 s,@install_sh@,$install_sh,;t t
21853 s,@STRIP@,$STRIP,;t t
21854 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21855 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21856 s,@mkdir_p@,$mkdir_p,;t t
21857 s,@AWK@,$AWK,;t t
21858 s,@AMTAR@,$AMTAR,;t t
21859 s,@am__tar@,$am__tar,;t t
21860 s,@am__untar@,$am__untar,;t t
21861 s,@am__include@,$am__include,;t t
21862 s,@am__quote@,$am__quote,;t t
21863 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21864 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21865 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21866 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21867 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21868 s,@subdirs@,$subdirs,;t t
21869 s,@TARGET_OBS@,$TARGET_OBS,;t t
21870 s,@PKGVERSION@,$PKGVERSION,;t t
21871 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21872 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21873 s,@LN_S@,$LN_S,;t t
21874 s,@YACC@,$YACC,;t t
21875 s,@AR@,$AR,;t t
21876 s,@ac_ct_AR@,$ac_ct_AR,;t t
21877 s,@DLLTOOL@,$DLLTOOL,;t t
21878 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21879 s,@WINDRES@,$WINDRES,;t t
21880 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21881 s,@MIG@,$MIG,;t t
21882 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
21883 s,@READLINE@,$READLINE,;t t
21884 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
21885 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
21886 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
21887 s,@LIBEXPAT@,$LIBEXPAT,;t t
21888 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
21889 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
21890 s,@ALLOCA@,$ALLOCA,;t t
21891 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
21892 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
21893 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
21894 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21895 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
21896 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
21897 s,@WIN32LIBS@,$WIN32LIBS,;t t
21898 s,@LIBGUI@,$LIBGUI,;t t
21899 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
21900 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
21901 s,@TCL_VERSION@,$TCL_VERSION,;t t
21902 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
21903 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
21904 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
21905 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
21906 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
21907 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
21908 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
21909 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
21910 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
21911 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
21912 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
21913 s,@TCL_DEPS@,$TCL_DEPS,;t t
21914 s,@TK_VERSION@,$TK_VERSION,;t t
21915 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
21916 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
21917 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
21918 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
21919 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
21920 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
21921 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
21922 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
21923 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
21924 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
21925 s,@TK_DEPS@,$TK_DEPS,;t t
21926 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
21927 s,@X_CFLAGS@,$X_CFLAGS,;t t
21928 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
21929 s,@X_LIBS@,$X_LIBS,;t t
21930 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
21931 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
21932 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
21933 s,@SIM@,$SIM,;t t
21934 s,@SIM_OBS@,$SIM_OBS,;t t
21935 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
21936 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
21937 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
21938 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
21939 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
21940 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
21941 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
21942 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
21943 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
21944 s,@target_subdir@,$target_subdir,;t t
21945 s,@frags@,$frags,;t t
21946 s,@nm_h@,$nm_h,;t t
21947 s,@LIBICONV@,$LIBICONV,;t t
21948 s,@LIBOBJS@,$LIBOBJS,;t t
21949 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21950 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
21951 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
21952 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
21953 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
21954 /@host_makefile_frag@/r $host_makefile_frag
21955 s,@host_makefile_frag@,,;t t
21956 CEOF
21957
21958 _ACEOF
21959
21960   cat >>$CONFIG_STATUS <<\_ACEOF
21961   # Split the substitutions into bite-sized pieces for seds with
21962   # small command number limits, like on Digital OSF/1 and HP-UX.
21963   ac_max_sed_lines=48
21964   ac_sed_frag=1 # Number of current file.
21965   ac_beg=1 # First line for current file.
21966   ac_end=$ac_max_sed_lines # Line after last line for current file.
21967   ac_more_lines=:
21968   ac_sed_cmds=
21969   while $ac_more_lines; do
21970     if test $ac_beg -gt 1; then
21971       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21972     else
21973       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21974     fi
21975     if test ! -s $tmp/subs.frag; then
21976       ac_more_lines=false
21977     else
21978       # The purpose of the label and of the branching condition is to
21979       # speed up the sed processing (if there are no `@' at all, there
21980       # is no need to browse any of the substitutions).
21981       # These are the two extra sed commands mentioned above.
21982       (echo ':t
21983   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21984       if test -z "$ac_sed_cmds"; then
21985         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21986       else
21987         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21988       fi
21989       ac_sed_frag=`expr $ac_sed_frag + 1`
21990       ac_beg=$ac_end
21991       ac_end=`expr $ac_end + $ac_max_sed_lines`
21992     fi
21993   done
21994   if test -z "$ac_sed_cmds"; then
21995     ac_sed_cmds=cat
21996   fi
21997 fi # test -n "$CONFIG_FILES"
21998
21999 _ACEOF
22000 cat >>$CONFIG_STATUS <<\_ACEOF
22001 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22002   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22003   case $ac_file in
22004   - | *:- | *:-:* ) # input from stdin
22005         cat >$tmp/stdin
22006         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22007         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22008   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22009         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22010   * )   ac_file_in=$ac_file.in ;;
22011   esac
22012
22013   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22014   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22016          X"$ac_file" : 'X\(//\)[^/]' \| \
22017          X"$ac_file" : 'X\(//\)$' \| \
22018          X"$ac_file" : 'X\(/\)' \| \
22019          .     : '\(.\)' 2>/dev/null ||
22020 echo X"$ac_file" |
22021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22022           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22023           /^X\(\/\/\)$/{ s//\1/; q; }
22024           /^X\(\/\).*/{ s//\1/; q; }
22025           s/.*/./; q'`
22026   { if $as_mkdir_p; then
22027     mkdir -p "$ac_dir"
22028   else
22029     as_dir="$ac_dir"
22030     as_dirs=
22031     while test ! -d "$as_dir"; do
22032       as_dirs="$as_dir $as_dirs"
22033       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22035          X"$as_dir" : 'X\(//\)[^/]' \| \
22036          X"$as_dir" : 'X\(//\)$' \| \
22037          X"$as_dir" : 'X\(/\)' \| \
22038          .     : '\(.\)' 2>/dev/null ||
22039 echo X"$as_dir" |
22040     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22041           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22042           /^X\(\/\/\)$/{ s//\1/; q; }
22043           /^X\(\/\).*/{ s//\1/; q; }
22044           s/.*/./; q'`
22045     done
22046     test ! -n "$as_dirs" || mkdir $as_dirs
22047   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22049    { (exit 1); exit 1; }; }; }
22050
22051   ac_builddir=.
22052
22053 if test "$ac_dir" != .; then
22054   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22055   # A "../" for each directory in $ac_dir_suffix.
22056   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22057 else
22058   ac_dir_suffix= ac_top_builddir=
22059 fi
22060
22061 case $srcdir in
22062   .)  # No --srcdir option.  We are building in place.
22063     ac_srcdir=.
22064     if test -z "$ac_top_builddir"; then
22065        ac_top_srcdir=.
22066     else
22067        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22068     fi ;;
22069   [\\/]* | ?:[\\/]* )  # Absolute path.
22070     ac_srcdir=$srcdir$ac_dir_suffix;
22071     ac_top_srcdir=$srcdir ;;
22072   *) # Relative path.
22073     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22074     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22075 esac
22076
22077 # Do not use `cd foo && pwd` to compute absolute paths, because
22078 # the directories may not exist.
22079 case `pwd` in
22080 .) ac_abs_builddir="$ac_dir";;
22081 *)
22082   case "$ac_dir" in
22083   .) ac_abs_builddir=`pwd`;;
22084   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22085   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22086   esac;;
22087 esac
22088 case $ac_abs_builddir in
22089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22090 *)
22091   case ${ac_top_builddir}. in
22092   .) ac_abs_top_builddir=$ac_abs_builddir;;
22093   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22094   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22095   esac;;
22096 esac
22097 case $ac_abs_builddir in
22098 .) ac_abs_srcdir=$ac_srcdir;;
22099 *)
22100   case $ac_srcdir in
22101   .) ac_abs_srcdir=$ac_abs_builddir;;
22102   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22103   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22104   esac;;
22105 esac
22106 case $ac_abs_builddir in
22107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22108 *)
22109   case $ac_top_srcdir in
22110   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22111   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22112   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22113   esac;;
22114 esac
22115
22116
22117   case $INSTALL in
22118   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22119   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22120   esac
22121
22122   if test x"$ac_file" != x-; then
22123     { echo "$as_me:$LINENO: creating $ac_file" >&5
22124 echo "$as_me: creating $ac_file" >&6;}
22125     rm -f "$ac_file"
22126   fi
22127   # Let's still pretend it is `configure' which instantiates (i.e., don't
22128   # use $as_me), people would be surprised to read:
22129   #    /* config.h.  Generated by config.status.  */
22130   if test x"$ac_file" = x-; then
22131     configure_input=
22132   else
22133     configure_input="$ac_file.  "
22134   fi
22135   configure_input=$configure_input"Generated from `echo $ac_file_in |
22136                                      sed 's,.*/,,'` by configure."
22137
22138   # First look for the input files in the build tree, otherwise in the
22139   # src tree.
22140   ac_file_inputs=`IFS=:
22141     for f in $ac_file_in; do
22142       case $f in
22143       -) echo $tmp/stdin ;;
22144       [\\/$]*)
22145          # Absolute (can't be DOS-style, as IFS=:)
22146          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22147 echo "$as_me: error: cannot find input file: $f" >&2;}
22148    { (exit 1); exit 1; }; }
22149          echo "$f";;
22150       *) # Relative
22151          if test -f "$f"; then
22152            # Build tree
22153            echo "$f"
22154          elif test -f "$srcdir/$f"; then
22155            # Source tree
22156            echo "$srcdir/$f"
22157          else
22158            # /dev/null tree
22159            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22160 echo "$as_me: error: cannot find input file: $f" >&2;}
22161    { (exit 1); exit 1; }; }
22162          fi;;
22163       esac
22164     done` || { (exit 1); exit 1; }
22165 _ACEOF
22166 cat >>$CONFIG_STATUS <<_ACEOF
22167   sed "$ac_vpsub
22168 $extrasub
22169 _ACEOF
22170 cat >>$CONFIG_STATUS <<\_ACEOF
22171 :t
22172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22173 s,@configure_input@,$configure_input,;t t
22174 s,@srcdir@,$ac_srcdir,;t t
22175 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22176 s,@top_srcdir@,$ac_top_srcdir,;t t
22177 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22178 s,@builddir@,$ac_builddir,;t t
22179 s,@abs_builddir@,$ac_abs_builddir,;t t
22180 s,@top_builddir@,$ac_top_builddir,;t t
22181 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22182 s,@INSTALL@,$ac_INSTALL,;t t
22183 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22184   rm -f $tmp/stdin
22185   if test x"$ac_file" != x-; then
22186     mv $tmp/out $ac_file
22187   else
22188     cat $tmp/out
22189     rm -f $tmp/out
22190   fi
22191
22192 done
22193 _ACEOF
22194 cat >>$CONFIG_STATUS <<\_ACEOF
22195
22196 #
22197 # CONFIG_HEADER section.
22198 #
22199
22200 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22201 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22202 #
22203 # ac_d sets the value in "#define NAME VALUE" lines.
22204 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22205 ac_dB='[         ].*$,\1#\2'
22206 ac_dC=' '
22207 ac_dD=',;t'
22208 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22209 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22210 ac_uB='$,\1#\2define\3'
22211 ac_uC=' '
22212 ac_uD=',;t'
22213
22214 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22215   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22216   case $ac_file in
22217   - | *:- | *:-:* ) # input from stdin
22218         cat >$tmp/stdin
22219         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22220         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22221   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22222         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22223   * )   ac_file_in=$ac_file.in ;;
22224   esac
22225
22226   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22227 echo "$as_me: creating $ac_file" >&6;}
22228
22229   # First look for the input files in the build tree, otherwise in the
22230   # src tree.
22231   ac_file_inputs=`IFS=:
22232     for f in $ac_file_in; do
22233       case $f in
22234       -) echo $tmp/stdin ;;
22235       [\\/$]*)
22236          # Absolute (can't be DOS-style, as IFS=:)
22237          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22238 echo "$as_me: error: cannot find input file: $f" >&2;}
22239    { (exit 1); exit 1; }; }
22240          # Do quote $f, to prevent DOS paths from being IFS'd.
22241          echo "$f";;
22242       *) # Relative
22243          if test -f "$f"; then
22244            # Build tree
22245            echo "$f"
22246          elif test -f "$srcdir/$f"; then
22247            # Source tree
22248            echo "$srcdir/$f"
22249          else
22250            # /dev/null tree
22251            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22252 echo "$as_me: error: cannot find input file: $f" >&2;}
22253    { (exit 1); exit 1; }; }
22254          fi;;
22255       esac
22256     done` || { (exit 1); exit 1; }
22257   # Remove the trailing spaces.
22258   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22259
22260 _ACEOF
22261
22262 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22263 # `conftest.undefs', that substitutes the proper values into
22264 # config.h.in to produce config.h.  The first handles `#define'
22265 # templates, and the second `#undef' templates.
22266 # And first: Protect against being on the right side of a sed subst in
22267 # config.status.  Protect against being in an unquoted here document
22268 # in config.status.
22269 rm -f conftest.defines conftest.undefs
22270 # Using a here document instead of a string reduces the quoting nightmare.
22271 # Putting comments in sed scripts is not portable.
22272 #
22273 # `end' is used to avoid that the second main sed command (meant for
22274 # 0-ary CPP macros) applies to n-ary macro definitions.
22275 # See the Autoconf documentation for `clear'.
22276 cat >confdef2sed.sed <<\_ACEOF
22277 s/[\\&,]/\\&/g
22278 s,[\\$`],\\&,g
22279 t clear
22280 : clear
22281 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22282 t end
22283 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22284 : end
22285 _ACEOF
22286 # If some macros were called several times there might be several times
22287 # the same #defines, which is useless.  Nevertheless, we may not want to
22288 # sort them, since we want the *last* AC-DEFINE to be honored.
22289 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22290 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22291 rm -f confdef2sed.sed
22292
22293 # This sed command replaces #undef with comments.  This is necessary, for
22294 # example, in the case of _POSIX_SOURCE, which is predefined and required
22295 # on some systems where configure will not decide to define it.
22296 cat >>conftest.undefs <<\_ACEOF
22297 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22298 _ACEOF
22299
22300 # Break up conftest.defines because some shells have a limit on the size
22301 # of here documents, and old seds have small limits too (100 cmds).
22302 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22303 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22304 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22305 echo '  :' >>$CONFIG_STATUS
22306 rm -f conftest.tail
22307 while grep . conftest.defines >/dev/null
22308 do
22309   # Write a limited-size here document to $tmp/defines.sed.
22310   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22311   # Speed up: don't consider the non `#define' lines.
22312   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22313   # Work around the forget-to-reset-the-flag bug.
22314   echo 't clr' >>$CONFIG_STATUS
22315   echo ': clr' >>$CONFIG_STATUS
22316   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22317   echo 'CEOF
22318   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22319   rm -f $tmp/in
22320   mv $tmp/out $tmp/in
22321 ' >>$CONFIG_STATUS
22322   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22323   rm -f conftest.defines
22324   mv conftest.tail conftest.defines
22325 done
22326 rm -f conftest.defines
22327 echo '  fi # grep' >>$CONFIG_STATUS
22328 echo >>$CONFIG_STATUS
22329
22330 # Break up conftest.undefs because some shells have a limit on the size
22331 # of here documents, and old seds have small limits too (100 cmds).
22332 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22333 rm -f conftest.tail
22334 while grep . conftest.undefs >/dev/null
22335 do
22336   # Write a limited-size here document to $tmp/undefs.sed.
22337   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22338   # Speed up: don't consider the non `#undef'
22339   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22340   # Work around the forget-to-reset-the-flag bug.
22341   echo 't clr' >>$CONFIG_STATUS
22342   echo ': clr' >>$CONFIG_STATUS
22343   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22344   echo 'CEOF
22345   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22346   rm -f $tmp/in
22347   mv $tmp/out $tmp/in
22348 ' >>$CONFIG_STATUS
22349   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22350   rm -f conftest.undefs
22351   mv conftest.tail conftest.undefs
22352 done
22353 rm -f conftest.undefs
22354
22355 cat >>$CONFIG_STATUS <<\_ACEOF
22356   # Let's still pretend it is `configure' which instantiates (i.e., don't
22357   # use $as_me), people would be surprised to read:
22358   #    /* config.h.  Generated by config.status.  */
22359   if test x"$ac_file" = x-; then
22360     echo "/* Generated by configure.  */" >$tmp/config.h
22361   else
22362     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22363   fi
22364   cat $tmp/in >>$tmp/config.h
22365   rm -f $tmp/in
22366   if test x"$ac_file" != x-; then
22367     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22368       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22369 echo "$as_me: $ac_file is unchanged" >&6;}
22370     else
22371       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22372 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22373          X"$ac_file" : 'X\(//\)[^/]' \| \
22374          X"$ac_file" : 'X\(//\)$' \| \
22375          X"$ac_file" : 'X\(/\)' \| \
22376          .     : '\(.\)' 2>/dev/null ||
22377 echo X"$ac_file" |
22378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22379           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22380           /^X\(\/\/\)$/{ s//\1/; q; }
22381           /^X\(\/\).*/{ s//\1/; q; }
22382           s/.*/./; q'`
22383       { if $as_mkdir_p; then
22384     mkdir -p "$ac_dir"
22385   else
22386     as_dir="$ac_dir"
22387     as_dirs=
22388     while test ! -d "$as_dir"; do
22389       as_dirs="$as_dir $as_dirs"
22390       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22392          X"$as_dir" : 'X\(//\)[^/]' \| \
22393          X"$as_dir" : 'X\(//\)$' \| \
22394          X"$as_dir" : 'X\(/\)' \| \
22395          .     : '\(.\)' 2>/dev/null ||
22396 echo X"$as_dir" |
22397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22398           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22399           /^X\(\/\/\)$/{ s//\1/; q; }
22400           /^X\(\/\).*/{ s//\1/; q; }
22401           s/.*/./; q'`
22402     done
22403     test ! -n "$as_dirs" || mkdir $as_dirs
22404   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22405 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22406    { (exit 1); exit 1; }; }; }
22407
22408       rm -f $ac_file
22409       mv $tmp/config.h $ac_file
22410     fi
22411   else
22412     cat $tmp/config.h
22413     rm -f $tmp/config.h
22414   fi
22415 # Compute $ac_file's index in $config_headers.
22416 _am_stamp_count=1
22417 for _am_header in $config_headers :; do
22418   case $_am_header in
22419     $ac_file | $ac_file:* )
22420       break ;;
22421     * )
22422       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22423   esac
22424 done
22425 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22426 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22427          X$ac_file : 'X\(//\)[^/]' \| \
22428          X$ac_file : 'X\(//\)$' \| \
22429          X$ac_file : 'X\(/\)' \| \
22430          .     : '\(.\)' 2>/dev/null ||
22431 echo X$ac_file |
22432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22433           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22434           /^X\(\/\/\)$/{ s//\1/; q; }
22435           /^X\(\/\).*/{ s//\1/; q; }
22436           s/.*/./; q'`/stamp-h$_am_stamp_count
22437 done
22438 _ACEOF
22439 cat >>$CONFIG_STATUS <<\_ACEOF
22440
22441 #
22442 # CONFIG_LINKS section.
22443 #
22444
22445 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22446   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22447   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22448
22449   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22450 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22451
22452   if test ! -r $srcdir/$ac_source; then
22453     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22454 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22455    { (exit 1); exit 1; }; }
22456   fi
22457   rm -f $ac_dest
22458
22459   # Make relative symlinks.
22460   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22461 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22462          X"$ac_dest" : 'X\(//\)[^/]' \| \
22463          X"$ac_dest" : 'X\(//\)$' \| \
22464          X"$ac_dest" : 'X\(/\)' \| \
22465          .     : '\(.\)' 2>/dev/null ||
22466 echo X"$ac_dest" |
22467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22469           /^X\(\/\/\)$/{ s//\1/; q; }
22470           /^X\(\/\).*/{ s//\1/; q; }
22471           s/.*/./; q'`
22472   { if $as_mkdir_p; then
22473     mkdir -p "$ac_dest_dir"
22474   else
22475     as_dir="$ac_dest_dir"
22476     as_dirs=
22477     while test ! -d "$as_dir"; do
22478       as_dirs="$as_dir $as_dirs"
22479       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22481          X"$as_dir" : 'X\(//\)[^/]' \| \
22482          X"$as_dir" : 'X\(//\)$' \| \
22483          X"$as_dir" : 'X\(/\)' \| \
22484          .     : '\(.\)' 2>/dev/null ||
22485 echo X"$as_dir" |
22486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22488           /^X\(\/\/\)$/{ s//\1/; q; }
22489           /^X\(\/\).*/{ s//\1/; q; }
22490           s/.*/./; q'`
22491     done
22492     test ! -n "$as_dirs" || mkdir $as_dirs
22493   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22494 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22495    { (exit 1); exit 1; }; }; }
22496
22497   ac_builddir=.
22498
22499 if test "$ac_dest_dir" != .; then
22500   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22501   # A "../" for each directory in $ac_dir_suffix.
22502   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22503 else
22504   ac_dir_suffix= ac_top_builddir=
22505 fi
22506
22507 case $srcdir in
22508   .)  # No --srcdir option.  We are building in place.
22509     ac_srcdir=.
22510     if test -z "$ac_top_builddir"; then
22511        ac_top_srcdir=.
22512     else
22513        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22514     fi ;;
22515   [\\/]* | ?:[\\/]* )  # Absolute path.
22516     ac_srcdir=$srcdir$ac_dir_suffix;
22517     ac_top_srcdir=$srcdir ;;
22518   *) # Relative path.
22519     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22520     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22521 esac
22522
22523 # Do not use `cd foo && pwd` to compute absolute paths, because
22524 # the directories may not exist.
22525 case `pwd` in
22526 .) ac_abs_builddir="$ac_dest_dir";;
22527 *)
22528   case "$ac_dest_dir" in
22529   .) ac_abs_builddir=`pwd`;;
22530   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22531   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22532   esac;;
22533 esac
22534 case $ac_abs_builddir in
22535 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22536 *)
22537   case ${ac_top_builddir}. in
22538   .) ac_abs_top_builddir=$ac_abs_builddir;;
22539   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22540   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22541   esac;;
22542 esac
22543 case $ac_abs_builddir in
22544 .) ac_abs_srcdir=$ac_srcdir;;
22545 *)
22546   case $ac_srcdir in
22547   .) ac_abs_srcdir=$ac_abs_builddir;;
22548   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22549   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22550   esac;;
22551 esac
22552 case $ac_abs_builddir in
22553 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22554 *)
22555   case $ac_top_srcdir in
22556   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22557   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22558   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22559   esac;;
22560 esac
22561
22562
22563   case $srcdir in
22564   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22565       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22566   esac
22567
22568   # Try a symlink, then a hard link, then a copy.
22569   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22570     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22571     cp -p $srcdir/$ac_source $ac_dest ||
22572     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22573 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22574    { (exit 1); exit 1; }; }
22575 done
22576 _ACEOF
22577 cat >>$CONFIG_STATUS <<\_ACEOF
22578
22579 #
22580 # CONFIG_COMMANDS section.
22581 #
22582 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22583   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22584   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22585   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22586 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22587          X"$ac_dest" : 'X\(//\)[^/]' \| \
22588          X"$ac_dest" : 'X\(//\)$' \| \
22589          X"$ac_dest" : 'X\(/\)' \| \
22590          .     : '\(.\)' 2>/dev/null ||
22591 echo X"$ac_dest" |
22592     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22593           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22594           /^X\(\/\/\)$/{ s//\1/; q; }
22595           /^X\(\/\).*/{ s//\1/; q; }
22596           s/.*/./; q'`
22597   { if $as_mkdir_p; then
22598     mkdir -p "$ac_dir"
22599   else
22600     as_dir="$ac_dir"
22601     as_dirs=
22602     while test ! -d "$as_dir"; do
22603       as_dirs="$as_dir $as_dirs"
22604       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22606          X"$as_dir" : 'X\(//\)[^/]' \| \
22607          X"$as_dir" : 'X\(//\)$' \| \
22608          X"$as_dir" : 'X\(/\)' \| \
22609          .     : '\(.\)' 2>/dev/null ||
22610 echo X"$as_dir" |
22611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22612           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22613           /^X\(\/\/\)$/{ s//\1/; q; }
22614           /^X\(\/\).*/{ s//\1/; q; }
22615           s/.*/./; q'`
22616     done
22617     test ! -n "$as_dirs" || mkdir $as_dirs
22618   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22620    { (exit 1); exit 1; }; }; }
22621
22622   ac_builddir=.
22623
22624 if test "$ac_dir" != .; then
22625   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22626   # A "../" for each directory in $ac_dir_suffix.
22627   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22628 else
22629   ac_dir_suffix= ac_top_builddir=
22630 fi
22631
22632 case $srcdir in
22633   .)  # No --srcdir option.  We are building in place.
22634     ac_srcdir=.
22635     if test -z "$ac_top_builddir"; then
22636        ac_top_srcdir=.
22637     else
22638        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22639     fi ;;
22640   [\\/]* | ?:[\\/]* )  # Absolute path.
22641     ac_srcdir=$srcdir$ac_dir_suffix;
22642     ac_top_srcdir=$srcdir ;;
22643   *) # Relative path.
22644     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22645     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22646 esac
22647
22648 # Do not use `cd foo && pwd` to compute absolute paths, because
22649 # the directories may not exist.
22650 case `pwd` in
22651 .) ac_abs_builddir="$ac_dir";;
22652 *)
22653   case "$ac_dir" in
22654   .) ac_abs_builddir=`pwd`;;
22655   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22656   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22657   esac;;
22658 esac
22659 case $ac_abs_builddir in
22660 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22661 *)
22662   case ${ac_top_builddir}. in
22663   .) ac_abs_top_builddir=$ac_abs_builddir;;
22664   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22665   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22666   esac;;
22667 esac
22668 case $ac_abs_builddir in
22669 .) ac_abs_srcdir=$ac_srcdir;;
22670 *)
22671   case $ac_srcdir in
22672   .) ac_abs_srcdir=$ac_abs_builddir;;
22673   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22674   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22675   esac;;
22676 esac
22677 case $ac_abs_builddir in
22678 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22679 *)
22680   case $ac_top_srcdir in
22681   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22682   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22683   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22684   esac;;
22685 esac
22686
22687
22688   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22689 echo "$as_me: executing $ac_dest commands" >&6;}
22690   case $ac_dest in
22691     depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
22692     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22693   # Strip MF so we end up with the name of the file.
22694   mf=`echo "$mf" | sed -e 's/:.*$//'`
22695   # Check whether this is an Automake generated Makefile or not.
22696   # We used to match only the files named `Makefile.in', but
22697   # some people rename them; so instead we look at the file content.
22698   # Grep'ing the first line is not enough: some people post-process
22699   # each Makefile.in and add a new line on top of each file to say so.
22700   # So let's grep whole file.
22701   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22702     dirpart=`(dirname "$mf") 2>/dev/null ||
22703 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22704          X"$mf" : 'X\(//\)[^/]' \| \
22705          X"$mf" : 'X\(//\)$' \| \
22706          X"$mf" : 'X\(/\)' \| \
22707          .     : '\(.\)' 2>/dev/null ||
22708 echo X"$mf" |
22709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22710           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22711           /^X\(\/\/\)$/{ s//\1/; q; }
22712           /^X\(\/\).*/{ s//\1/; q; }
22713           s/.*/./; q'`
22714   else
22715     continue
22716   fi
22717   # Extract the definition of DEPDIR, am__include, and am__quote
22718   # from the Makefile without running `make'.
22719   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22720   test -z "$DEPDIR" && continue
22721   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22722   test -z "am__include" && continue
22723   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22724   # When using ansi2knr, U may be empty or an underscore; expand it
22725   U=`sed -n 's/^U = //p' < "$mf"`
22726   # Find all dependency output files, they are included files with
22727   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22728   # simplest approach to changing $(DEPDIR) to its actual value in the
22729   # expansion.
22730   for file in `sed -n "
22731     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22732        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22733     # Make sure the directory exists.
22734     test -f "$dirpart/$file" && continue
22735     fdir=`(dirname "$file") 2>/dev/null ||
22736 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22737          X"$file" : 'X\(//\)[^/]' \| \
22738          X"$file" : 'X\(//\)$' \| \
22739          X"$file" : 'X\(/\)' \| \
22740          .     : '\(.\)' 2>/dev/null ||
22741 echo X"$file" |
22742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22743           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22744           /^X\(\/\/\)$/{ s//\1/; q; }
22745           /^X\(\/\).*/{ s//\1/; q; }
22746           s/.*/./; q'`
22747     { if $as_mkdir_p; then
22748     mkdir -p $dirpart/$fdir
22749   else
22750     as_dir=$dirpart/$fdir
22751     as_dirs=
22752     while test ! -d "$as_dir"; do
22753       as_dirs="$as_dir $as_dirs"
22754       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22756          X"$as_dir" : 'X\(//\)[^/]' \| \
22757          X"$as_dir" : 'X\(//\)$' \| \
22758          X"$as_dir" : 'X\(/\)' \| \
22759          .     : '\(.\)' 2>/dev/null ||
22760 echo X"$as_dir" |
22761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22762           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22763           /^X\(\/\/\)$/{ s//\1/; q; }
22764           /^X\(\/\).*/{ s//\1/; q; }
22765           s/.*/./; q'`
22766     done
22767     test ! -n "$as_dirs" || mkdir $as_dirs
22768   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22769 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22770    { (exit 1); exit 1; }; }; }
22771
22772     # echo "creating $dirpart/$file"
22773     echo '# dummy' > "$dirpart/$file"
22774   done
22775 done
22776  ;;
22777     default )
22778
22779 sed -e '/^NAT_FILE[     ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
22780 mv -f Makefile.tmp Makefile
22781
22782
22783 case x$CONFIG_HEADERS in
22784 xconfig.h:config.in)
22785 echo > stamp-h ;;
22786 esac
22787  ;;
22788   esac
22789 done
22790 _ACEOF
22791
22792 cat >>$CONFIG_STATUS <<\_ACEOF
22793
22794 { (exit 0); exit 0; }
22795 _ACEOF
22796 chmod +x $CONFIG_STATUS
22797 ac_clean_files=$ac_clean_files_save
22798
22799
22800 # configure is writing to config.log, and then calls config.status.
22801 # config.status does its own redirection, appending to config.log.
22802 # Unfortunately, on DOS this fails, as config.log is still kept open
22803 # by configure, so config.status won't be able to write to it; its
22804 # output is simply discarded.  So we exec the FD to /dev/null,
22805 # effectively closing config.log, so it can be properly (re)opened and
22806 # appended to by config.status.  When coming back to configure, we
22807 # need to make the FD available again.
22808 if test "$no_create" != yes; then
22809   ac_cs_success=:
22810   ac_config_status_args=
22811   test "$silent" = yes &&
22812     ac_config_status_args="$ac_config_status_args --quiet"
22813   exec 5>/dev/null
22814   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22815   exec 5>>config.log
22816   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22817   # would make configure fail if this is the last instruction.
22818   $ac_cs_success || { (exit 1); exit 1; }
22819 fi
22820
22821 #
22822 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
22823 #
22824 if test "$no_recursion" != yes; then
22825
22826   # Remove --cache-file and --srcdir arguments so they do not pile up.
22827   ac_sub_configure_args=
22828   ac_prev=
22829   eval "set x $ac_configure_args"
22830   shift
22831   for ac_arg
22832   do
22833     if test -n "$ac_prev"; then
22834       ac_prev=
22835       continue
22836     fi
22837     case $ac_arg in
22838     -cache-file | --cache-file | --cache-fil | --cache-fi \
22839     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22840       ac_prev=cache_file ;;
22841     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22842     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22843     | --c=*)
22844       ;;
22845     --config-cache | -C)
22846       ;;
22847     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22848       ac_prev=srcdir ;;
22849     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22850       ;;
22851     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22852       ac_prev=prefix ;;
22853     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22854       ;;
22855     *)
22856       case $ac_arg in
22857       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22858       esac
22859       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22860     esac
22861   done
22862
22863   # Always prepend --prefix to ensure using the same prefix
22864   # in subdir configurations.
22865   ac_arg="--prefix=$prefix"
22866   case $ac_arg in
22867   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22868   esac
22869   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22870
22871   ac_popdir=`pwd`
22872   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22873
22874     # Do not complain, so a configure script can configure whichever
22875     # parts of a large source tree are present.
22876     test -d "$srcdir/$ac_dir" || continue
22877
22878     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22879 echo "$as_me: configuring in $ac_dir" >&6;}
22880     { if $as_mkdir_p; then
22881     mkdir -p "$ac_dir"
22882   else
22883     as_dir="$ac_dir"
22884     as_dirs=
22885     while test ! -d "$as_dir"; do
22886       as_dirs="$as_dir $as_dirs"
22887       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22889          X"$as_dir" : 'X\(//\)[^/]' \| \
22890          X"$as_dir" : 'X\(//\)$' \| \
22891          X"$as_dir" : 'X\(/\)' \| \
22892          .     : '\(.\)' 2>/dev/null ||
22893 echo X"$as_dir" |
22894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22895           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22896           /^X\(\/\/\)$/{ s//\1/; q; }
22897           /^X\(\/\).*/{ s//\1/; q; }
22898           s/.*/./; q'`
22899     done
22900     test ! -n "$as_dirs" || mkdir $as_dirs
22901   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22902 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22903    { (exit 1); exit 1; }; }; }
22904
22905     ac_builddir=.
22906
22907 if test "$ac_dir" != .; then
22908   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22909   # A "../" for each directory in $ac_dir_suffix.
22910   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22911 else
22912   ac_dir_suffix= ac_top_builddir=
22913 fi
22914
22915 case $srcdir in
22916   .)  # No --srcdir option.  We are building in place.
22917     ac_srcdir=.
22918     if test -z "$ac_top_builddir"; then
22919        ac_top_srcdir=.
22920     else
22921        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22922     fi ;;
22923   [\\/]* | ?:[\\/]* )  # Absolute path.
22924     ac_srcdir=$srcdir$ac_dir_suffix;
22925     ac_top_srcdir=$srcdir ;;
22926   *) # Relative path.
22927     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22928     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22929 esac
22930
22931 # Do not use `cd foo && pwd` to compute absolute paths, because
22932 # the directories may not exist.
22933 case `pwd` in
22934 .) ac_abs_builddir="$ac_dir";;
22935 *)
22936   case "$ac_dir" in
22937   .) ac_abs_builddir=`pwd`;;
22938   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22939   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22940   esac;;
22941 esac
22942 case $ac_abs_builddir in
22943 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22944 *)
22945   case ${ac_top_builddir}. in
22946   .) ac_abs_top_builddir=$ac_abs_builddir;;
22947   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22948   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22949   esac;;
22950 esac
22951 case $ac_abs_builddir in
22952 .) ac_abs_srcdir=$ac_srcdir;;
22953 *)
22954   case $ac_srcdir in
22955   .) ac_abs_srcdir=$ac_abs_builddir;;
22956   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22957   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22958   esac;;
22959 esac
22960 case $ac_abs_builddir in
22961 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22962 *)
22963   case $ac_top_srcdir in
22964   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22965   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22966   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22967   esac;;
22968 esac
22969
22970
22971     cd "$ac_dir"
22972
22973     # Check for guested configure; otherwise get Cygnus style configure.
22974     if test -f "$ac_srcdir/configure.gnu"; then
22975       ac_sub_configure=$ac_srcdir/configure.gnu
22976     elif test -f "$ac_srcdir/configure"; then
22977       ac_sub_configure=$ac_srcdir/configure
22978     elif test -f "$ac_srcdir/configure.in"; then
22979       # This should be Cygnus configure.
22980       ac_sub_configure=$ac_aux_dir/configure
22981     else
22982       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22984       ac_sub_configure=
22985     fi
22986
22987     # The recursion is here.
22988     if test -n "$ac_sub_configure"; then
22989       # Make the cache file name correct relative to the subdirectory.
22990       case $cache_file in
22991       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22992       *) # Relative path.
22993         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
22994       esac
22995
22996       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22997 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22998       # The eval makes quoting arguments work.
22999       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23000            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23001         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23002 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23003    { (exit 1); exit 1; }; }
23004     fi
23005
23006     cd "$ac_popdir"
23007   done
23008 fi
23009
23010
23011 exit 0